@fox-js/foxui 4.0.1-76 → 4.0.1-78
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 +2 -6
- package/dist/index.esm.js +8236 -7858
- package/dist/index.umd.js +2 -6
- package/dist/locale/index.esm.js +30 -12
- package/dist/locale/index.umd.js +1 -3
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +261 -250
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0 Mon Mar 17 2025 14:20:56 GMT+0800 (中国标准时间)
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),rt=require("@fox-js/validator"),le=require("@fox-js/icons-vue"),ie=require("@fox-js/i18n"),nn=window,ti=typeof window<"u";function ni(){return typeof nn<"u"?nn.requestAnimationFrame||nn.webkitRequestAnimationFrame||function(e){nn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function es(e){ti?cancelAnimationFrame(e):clearTimeout(e)}const Ge=ni();/*!
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Nn(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=Be(e),n=Be(n),[e,n]=nl(Be(e),Be(n)),a==1&&(o==1?e=vo(e):n=vo(n));let l=ts(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(vo(l)):Be(l)}function vo(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 ts(n,r)}function Be(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 nl(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 ts(e,n){[e,n]=nl(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 jt(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=jt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,er(l[1],r,o,a)?(o?"-":"")+bo(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&&er(i,s,o,a)&&(s=bo(s),s.length>n)?(o?"-":"")+bo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function er(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 bo(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 $o(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 u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],d=s-1,m="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let b=n.length-1;b>=d&&b>=0;b--)c[b]>-1&&c[b]<e.length&&(h+=parseInt(e[c[b]--])*parseInt(n[b]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=Dt(oi(m,r)),a==1&&(m="-"+m),m}function oi(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 Eo(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=Be(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Be(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Be(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let m=e.length-d+l;e=Be(e.substring(0,m)+"."+e.substring(m))}else l==d&&(e=Be(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 d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Nn(c,"-"+n),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Be(jt(i,a-2))}function xo(e,n){return e=e.toString(),n=n.toString(),n=Do(n),Nn(e,n)}function Do(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function tr(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),nr(e),nr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=xo(e,$o(n,jt(Eo(e,n),0,Se.FLOOR)));return a+o}function nr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function or(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]=nl(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 ce{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=Be(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+Be(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=ce.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=ce.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 ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Se.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return jt(n,a,o)}round(n=0,a=Se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(jt(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Se.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Se.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),Nn(n,a)}add(n){return new ce(Nn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),xo(n,a)}subtract(n){return new ce(xo(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),$o(n,a)}multiply(n){return new ce($o(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),Eo(n,a,o)}divide(n,a){return new ce(Eo(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),tr(n,a)}modulus(n){return new ce(tr(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),or(n,a)}compareTo(n){return or(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Do(n)}negate(){return new ce(Do(this.value))}}function ns(e,n){return ce.multiply(`${e}`,`${n}`)}function ol(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function Io(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function os(e){return ce.negate(e)}function In(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="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let m;if(o>0){let u="",h=i.split("").reverse();for(let b=0;b<h.length;b++)u+=h[b]+((b+1)%o==0&&b+1!=h.length?l:"");c.length==0?m=`${s}${u.split("").reverse().join("")}`:m=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function ls(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const et=typeof window<"u",He=Ge;function as(e){return e==null}const qn=Array.isArray,li=e=>Mn(e)==="[object Map]",ai=e=>Mn(e)==="[object Set]",We=e=>e instanceof Date,Bn=e=>typeof e=="function",rs=e=>typeof e=="string",ri=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",St=e=>De(e)&&Bn(e.then)&&Bn(e.catch),ss=Object.prototype.toString,Mn=e=>ss.call(e),qo=e=>Mn(e)==="[object Object]",is=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function si(e){return e.__esModule||is&&e[Symbol.toStringTag]==="Module"}const ii=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ct(...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 d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=ct(l,d,c)}else c!==void 0&&(n[s]=c)}}return n}function Mo(e,n,a=!1){if(!a)ct(!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)&&!qo(s))continue;r=Mo(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)&&!qo(s))continue;r=Mo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const ko=ii?Promise.resolve():null;function ci(e,...n){ko!==null?n&&n.length>0?ko.then(()=>{e(n)}):ko.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ve(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const ui={"[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 ut(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ui[a]||"object"}function Pn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function cs(e){return e&&typeof e=="object"&&"setInterval"in e}function us(e){let n=!!e&&"length"in e&&e.length,a=ut(e);return a==="function"||cs(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ds(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 di(e,n=[]){let a=n;return e!=null&&(us(Object(e))?ds(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ie(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=ut(e),o=ut(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],d=n[i];if(!Ie(c,d))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(!Ie(r,s))return!1}return!0}return!1}function Po(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ll(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 fs(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 ms(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 lr(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 Lo(e,n=!0,a=!0){n?e=lr(e,".",/\./g):e=e.replace(/\./g,""),a?e=lr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function fi(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Ie(e,a))return!0}):n.indexOf(e)}function mi(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Ie(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 tt(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 ps=(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 zo(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()},je=(e,n,a)=>Math.min(Math.max(e,n),a),Ce=Symbol.for("BroadcastKey");class al{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;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.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,a,o){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=n.uniqueId,r={matched:n,action:a,args:o};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(a=>{n.push(a)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,a){if(!a||a.messagingPolicy==="Once"&&a.resolved===!0)return!1;let o=!1;return!a.name||a.name==="*"||a.name==="+"||Po(a.name)&&n&&a.name.test(n)?o=!0:typeof a.name=="function"?o=Reflect.apply(a.name,null,[n]):a.name===n&&(o=!0),o}trigger(n,a,o){let l=null;const r=this.callbacks.get(a);typeof r=="function"&&(l=Reflect.apply(r,this.proxy,[...o]));const s=this.proxy??{};typeof s[a]=="function"&&(l=Reflect.apply(s[a],s,[...o])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(l)}pull(){let n=this.parent;for(;n;){const a=n.getPersistantMessages();Array.isArray(a)&&a.length>0&&a.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),n=n.parent}}emit(n,a,...o){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,a,o),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,a,o)){const s=n.resolve,i=n.uniqueId??"",c=(...d)=>{this.deletePersistantMessage(i),typeof s=="function"&&s(...d)};n.resolve=c}n.cachePolicy="None"}let l=!1;!n.name||n.name==="*"?l=!0:n.name==="+"?(l=!1,n.name="*"):Po(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)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...r),n.messagingPolicy==="Once")return r}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){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,a,o),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,a,o)){const r=n.resolve,s=n.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...c)};n.resolve=i}n.cachePolicy="None"}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 Ln(e,n,a,o){const l=new al(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function pi(e,n,a){const o=a;if(o[Ce])return o[Ce];const l=t.inject(Ce,null),r=new al(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 Ot(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}const st=e=>e.default??e;class hi{error(n,a){const o=a,l=a||t.hasInjectionContext()?Ot(a):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?Ot(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?Ot(n):null;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=o||t.hasInjectionContext()?Ot(o):null,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 Ft=new hi;function gi(e){Ft=e}function yi(e){Ft?Object.assign(Ft,e):Ft=e}function vi(e,n){st(rt).setValidator(e,n)}function bi(e){st(rt).deleteValidator(e)}let hs=["blur","clear"];function ki(e){hs=e}function gs(){return hs}let ys=["focus","change","setValue"];function Si(e){ys=e}function vs(){return ys}function Ci(e){st(rt).messages(e)}function It(...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 on(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Le=Symbol("ValidateSchemaKey");class bs{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(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=on(It(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=on(o);const l=It(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Ft;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?st(rt).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?st(rt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return st(rt).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=It(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=on(n):this.rules=on([n]);const o=It(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=It(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=st(rt),c=new i(l),d=this.proxy??s;return c.validate(s,{context:d}).then(u=>{if(u.pass)this.success();else{let h="error";Array.isArray(u.errors)&&u.errors.length>0&&(h=u.errors[0].message??h,u.errors=[u.errors[0]],u.errors[0].ref=d),this.error(h)}return u}).catch(u=>{const h=u.message??`${u}`;return this.error(h),u})}}return Promise.resolve({pass:!0})}}function zn(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 bs(n,a,e)}const An=Symbol.for("EventEmitterKey");class ks{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 Me(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Oo(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function wi(e,n){const a=Me((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function Ni(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function rl(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 xe=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class On{_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 Bi=new On;function bt(){return Bi}function nt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const So=Symbol("OriginalDateKey");function sl(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(xe,null);s===null&&(s=bt());const i=e||n.prop||n.name;let c=new On(i);c.parent=s;const d=y=>{r[So]||h(y),c?.set("modelValue",y)},m=()=>c?.getForSelf("modelValue")??null,u=()=>r[So]??null,h=y=>{const k={};ct(!0,k,t.toRaw(y)),r[So]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c?.merge(y,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue);const b=(y,k)=>{c?.set(y,k)},g=y=>c?.getForSelf(y)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const y=t.inject(Ce,null),k=Ln(r,y,i,o);c.broadcast=k,r[Ce]=k,t.provide(Ce,k),r.broadcast=(p,N,...w)=>Reflect.apply(k.emit,k,[p,N,...w]);const f=t.inject(Le,null),v=zn(r,f,{componentName:""});c.validateSchema=v,r[Le]=v,t.provide(Le,v),r[gt]=new Map,r.validate=(p=!0)=>{const N=[];let w=null;const C={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const S=p;w={name:B=>B?S.indexOf(B)!==-1:!1}}else if(p!=null&&typeof p=="object"){const S=p;if(Object.assign(C,S),Array.isArray(S.include)&&S.include.length>0){const B=S.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const B=S.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const S=k?.emitToChildren(w,"validate",C);S&&Reflect.apply([].push,N,S)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(S=>{let B=[];return S.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(B=[...B,...A.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(p,N=!0,w=!1)=>{if(w===!0){Reflect.ownKeys(p).forEach(S=>{let B=String(S);const A={componentName:"",fieldName:B,pureDataValidate:!0};if(c){const T=Cs(c,B,A,k,v);r[gt].set(B,T);const $=p[B];$&&T.validateSchema.setRule($)}});return}if(N){const C=Reflect.ownKeys(p),S={name:B=>C.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"};k?.emitToChildren(S,"setNameValidateRules",p,!1)}},r.clearValidate=(p=!0)=>{let N=null;if(p===!0)N={name:"*"};else if(Array.isArray(p)&&p.length>0){const w=p;N={name:C=>C?w.indexOf(C)!==-1:!1}}else if(p!=null&&typeof p=="object"){const w=p;if(Array.isArray(w.include)&&w.include.length>0){const C=w.include;N={name:S=>S?C.indexOf(S)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const C=w.exclude;N={name:S=>S?C.indexOf(S)===-1:!1}}else N={name:"*"}}N&&k?.emitToChildren(N,"clearValidate",!1)},r.resetFields=p=>{const N=m();if(!N)return;const w={};if(ct(!0,w,u()??{}),Array.isArray(p))p.forEach(C=>{N[C]=w[C]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(S=>{N[S]=w[S]});else if(p&&Array.isArray(p.exclude)){let C=p.exclude??[];Reflect.ownKeys(w).forEach(S=>{C.includes(S)||(N[S]=w[S])})}else Object.assign(N,w);r.clearValidate(p)},r.setModelValue=(p,N)=>{if(!N||N===i)d(p);else{const w={name:N,messagingPolicy:"Once"};k?.emitToChildren(w,"setModelValue",p)}},r.getModelValue=()=>m(),r.setDomainProperty=(p,N)=>{b(p,N)},r.getDomainProperty=p=>g(p),setTimeout(function(){k?.pull()},0)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Le]=void 0,t.provide(Le,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Ce]=void 0,t.provide(Ce,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[gt]&&(r[gt].clear(),r[gt]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,c=null,r=null}),c}function Ss(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=bt());const s=e||n.prop||n.name;let i=new On(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[xe]=i,t.provide(xe,i),t.onUnmounted(()=>{i?.destroy(),l[xe]=void 0,t.provide(xe,null),i=null,l=null}),i}function Ae(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null);let i=Ln(l,s,r,a);l[Ce]=i,t.provide(Ce,i),l.broadcast=(g,y,...k)=>i?Reflect.apply(i.emit,i,[g,y,...k]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let d=zn(l,c,e);l[Le]=d,t.provide(Le,d),l.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const y=[];let k=!1,f=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)f=!0,k=!0;else if(g&&typeof g=="object"){const v=g,p=v.ignoreDisabled??!0,N=v.ignoreReadonly??!0,w=v.ignoreHidden??!0;p===!0&&e.disabled===!0||N===!0&&e.readonly===!0||w===!0&&Pn(l.$el)?f=!1:(Array.isArray(v.include)&&v.include.indexOf(r)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(r),f=!0),k=v.deep??!1}else typeof g=="boolean"&&(k=g),f=!0;if(f){const v=d?.validate();y.push(v)}if(k){let v=null;const p={deep:!1};if(g===!0)v={name:"*"};else if(Array.isArray(g)&&g.length>0){const N=g;v={name:w=>w?N.indexOf(w)!==-1:!1}}else if(g!=null&&typeof g=="object"){const N=g;if(Object.assign(p,N),Array.isArray(N.include)&&N.include.length>0){const w=N.include;v={name:C=>C?w.indexOf(C)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const w=N.exclude;v={name:C=>C?w.indexOf(C)===-1:!1}}else v={name:"*"}}if(v&&i){const N=i.emitToChildren(v,"validate",p);Reflect.apply([].push,y,N)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(v=>{let p=[];return v.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(p=[...p,...N.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>d?.setRule(g),l.setNameValidateRules=(g,y=!1)=>{const k=g[r];if(k&&d?.setRule(k),y&&i){const f={name:v=>Reflect.ownKeys(g).includes(v)};i.emitToChildren(f,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&d?.clear();let y=null;if(g===!0)y={name:"*"};else if(Array.isArray(g)&&g.length>0){const k=g;y={name:f=>f?k.indexOf(f)!==-1:!1}}else if(g!=null&&typeof g=="object"){const k=g;if(Array.isArray(k.include)&&k.include.length>0){const f=k.include;y={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;y={name:v=>v?f.indexOf(v)===-1:!1}}else y={name:"*"}}y&&i&&i.emitToChildren(y,"clearValidate",!1)};let m=new ks(l);l[An]=m;const u=Me((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:gs()).forEach(g=>{m&&m.on(g,y=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vs()).forEach(g=>{m&&m.on(g,y=>{u("reset")})}),setTimeout(function(){i?.pull()},0),t.onUnmounted(()=>{i?.destroy(),l[Ce]=void 0,t.provide(Ce,null),i=null,d?.destroy(),l[Le]=void 0,t.provide(Le,null),d=null,m?.destroy(),l[An]=void 0,m=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...y)=>{m&&Reflect.apply(m.emit,m,[g,...y])},onEvent:(g,y)=>{m&&Reflect.apply(m.on,m,[y])},offEvent:(g,y)=>{m&&Reflect.apply(m.off,m,[y])}}}function Cs(e,n,a,o,l){const r={},s=n??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return i.getValue()}};let c=zn({},l,a);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,b=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)b=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),b=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),b=!0;if(b&&c){const g=c.validate();u.push(g)}if(h){let g=null;const y={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const k=m;g={name:f=>f?k.indexOf(f)!==-1:!1}}else if(m!=null&&typeof m=="object"){const k=m;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;g={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;g={name:v=>v?f.indexOf(v)===-1:!1}}else g={name:"*"}}if(g&&d){const k=d.emitToChildren(g,"validate",y);Reflect.apply([].push,u,k)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(g=>{let y=[];return g.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const u=m[s];u&&c?.setRule(u)};let d=Ln(null,o,s,r);return t.onUnmounted(()=>{c=null,d=null}),{broadcast:d,validateSchema:c}}function $t(){let n=t.getCurrentInstance()?.proxy,a=new ks(n);return n[An]=a,t.onUnmounted(()=>{a?.destroy(),n[An]=void 0,a=null,n=null}),{emitEvent:(o,...l)=>{a&&Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{a&&Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{a&&Reflect.apply(a.off,a,[l])}}}const ge=e=>e?`${de(e)}px`:"";function de(e,n=-1){if(e==null)return 0;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(et){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}function Ai(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const Ze="PageStateKey";function Re(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=de(e.top)),e.left!==null&&e.left!==void 0&&(n.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=de(e.right))),n}function Ro(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=de(a.headerHeight??n.headerHeight??-1),e.headerPadding=Re(a.headerPadding??n.headerPadding),e.footerHeight=de(a.footerHeight??n.footerHeight??-1),e.footerPadding=Re(a.footerPadding??n.footerPadding),e.contentPadding=Re(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=de(c,r):e.height=de(r)-de(s,r)-de(i,r),e.width=de(a.width??n.width??0,l)}}function ws(e,n={}){const a={top:null,bottom:null,right:null,left: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=de(l.top),o.safeAreaBottom=de(l.bottom),o.safeAreaLeft=de(l.left),o.safeAreaRight=de(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,d=e.get("footerBarHeight")??0;Ro(o,r,n,!0,s,i,c,d);const m=t.reactive(o),u=e.getForParent(Ze);u&&(o.height=Vn(e,u),o.width=Tn(e,u),t.watch([()=>Vn(e,u),()=>Tn(e,u)],([b,g])=>{m.height=b,m.width=g}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,g,y=-1,k=-1,f=0,v=0])=>{Ro(m,g,n,h,y,k,f,v)}),e.set(Ze,m),m}function Rn(e){return e.get(Ze)}function Fn(e,n){if(n=n??e.get(Ze),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Kn(e,n){if(n=n??e.get(Ze),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Vn(e,n){if(n=n??e.get(Ze),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Fn(e,n),o=Kn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Tn(e,n){return n=n??e.get(Ze),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Vi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function Ti(e){return!!e.getForParent(Ze)}var $n=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))($n||{});function ln(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=nt();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(ln(c,o))return c}const s=e.value;return ln(s,o)?s:null}):t.computed(()=>{const r=e.value;if(ln(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(ln(c,o))return c}return null})}function Te(e){return Ve(e,"readonly",1)}function $e(e){return Ve(e,"disabled",1)}function Pe(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 Ns=new Map,En=new Map;let Fo=null;function $i(e){Fo=e}function Bs(e,n,a){if(a){let o=En.get(a);o||(o=new Map,En.set(a,o)),o.set(e,n)}else Ns.set(e,n)}function ot(e,n,a){!a&&Fo&&(a=Fo(e)??void 0);let o=null;if(a){let l=En.get(a);l&&(o=l.get(n))}return o||(o=Ns.get(n)),o}function Ei(e,n){for(let a in e){const o=e[a];Bs(a,o,n)}}function xi(e){En.delete(e)}function Di(){return{top:0,left:0,bottom:0,right:0}}function Ii(){if(et){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function qi(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class Mi{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=>{if(r.install)n.use(r);else if(r.name){const s=qi(r.name,a);n.component(s,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=bt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Me(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,l)},120);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=ct({},Di(),n.safeAreaInset),s=Ii(),i=ct({},s.pageLayout,n.pageLayout);a=a??bt(),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){$i(n)}setAPI(n,a,o){Bs(n,a,o)}getAPI(n,a,o){return ot(n,a,o)}batchSetAPI(n,a){Ei(n,a)}clearScopeAPI(n){xi(n)}getRootDomain(){return bt()}}function Z(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 Pi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(rs(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={};Bn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),d=n.components;return d&&d.forEach(m=>{c.use(m)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},As=(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 he={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},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}},Vs={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}},Ts={name:{type:String,required:!1},prop:{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}},$s=[];for(const e in Ts)$s.push(e);const Li=Symbol.for("InnerPageScopeKey"),zi={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}},Oi=(e,n)=>({inheritAttrs:!0,props:{...he,...Vs,...zi},setup(a,{slots:o}){const l=sl(a.name,a),r=t.inject(Li,!1);if(l){const m=ws(l,a);Ee({getPageContentHeight:()=>Vn(l,m),getPageContentWidth:()=>Tn(l,m),getPageHeaderHeight:()=>Fn(l,m),getPageFooterHeight:()=>Kn(l,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),d=(m,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(m,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([m,u],[h,b])=>{if(m&&h){const g=t.toRaw(h),y=t.toRaw(m),k=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{k.includes(v)||(y[v]=[])}),d(y)}if(u&&b){const g=t.toRaw(b),y=t.toRaw(u),k=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{k.includes(v)||(y[v]=[])}),d(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const m=t.toRaw(a.rules);d(m)}if(a.pureDataRules){const m=t.toRaw(a.pureDataRules);d(m,!0)}}),()=>{const m={class:s.value,style:i.value};return t.h("div",m,[o?.default?.()])}}}),{componentName:Ri,create:Fi,scope:jA}=Z("page"),il=Fi(Oi(Ri));function cl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Un(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 Ki=Symbol.for("InnerPageScopeKey"),Es={headerbar:{},radio:{},checkbox:{}};function Ui(e){Object.assign(Es,e)}function Hn(){return Es}const Hi=(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},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=nt(),i=s?Rn(s):null,c=t.inject(Ki,!1),d=Hn(),m=e,u=t.computed(()=>{const q={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(q[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),q}),h=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),b=l.height!==null&&l.height!==void 0?de(l.height):null,g=t.computed(()=>{const q={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const E=Re(l.padding??i.headerPadding);return Object.assign(q,E),b&&(i.headerHeight=b),i.headerHeight>0&&(q.height=i.headerHeight),q.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,q.safeAreaTop>0&&(q.top=q.safeAreaTop+(E.top??0),q.height&&q.height>0&&(q.height=q.height+q.safeAreaTop)),q}if(b&&(q.height=b),l.padding){const E=Re(l.padding);Object.assign(q,E)}return q}),y=t.ref(null),k=()=>{if(i&&y.value&&!Pn(y.value)){if(!o){const q=cl(y.value);i.headerAllHeight=q.height}return i.headerMounted=!0,!0}return!1},f=Me(k,120);let v=null;t.onMounted(()=>{i&&(rl(k,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(f),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const p=t.computed(()=>{const q={};return g.value.height!==null&&g.value.height!==void 0&&(q.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(q.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(q.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(q.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(q.paddingBottom=`${g.value.bottom}px`),q}),N=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function w(){r.emit("back")}function C(){r.emit("click-title")}function S(){r.emit("click-right")}function B(){r.emit("click-right-text")}const A=()=>{if(!l.leftShow)return null;const q=[];if(r.slots.left)q.push(r.slots.left());else{if(r.slots.leftIcon){const E=t.h("view",{class:"left-icon",onClick:w},[r.slots.leftIcon()]);q.push(E)}else{const E=l.leftIcon??d.headerbar.Left??a,V=t.h("view",{class:"left-icon",onClick:w},[t.h(E)]);q.push(V)}if(l.leftText){const E=t.h("view",{class:"left-text",onClick:w},[l.leftText]);q.push(E)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__left"},q)},T=()=>{if(!l.rightShow)return null;const q=[];if(r.slots.right)q.push(r.slots.right());else{if(l.rightText){const E=t.h("view",{class:"right-text",onClick:B},[l.rightText]);q.push(E)}if(r.slots.rightIcon){const E=t.h("view",{class:"right-icon",onClick:S},[r.slots.rightIcon()]);q.push(E)}else if(l.rightIcon){const E=t.h("view",{class:"right-icon",onClick:S},[t.h(l.rightIcon)]);q.push(E)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__right"},q)},$=()=>{if(!l.titleShow)return null;const q=[],E=r.slots.default?r.slots.default():null;if(E)q.push(E);else{if(l.title){const V=t.h("view",{class:"title-text"},[l.title]);q.push(V)}if(r.slots.titleIcon){const V=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);q.push(V)}else if(l.titleIcon){const V=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);q.push(V)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__title"},q)},U=()=>{const q=[],E=r.slots.bottom?r.slots.bottom():null;return E&&q.push(E),q.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},q)};return()=>{if(!N.value)return null;const q=[];if(r.slots.all)q.push(r.slots.all());else{const V=[],P=A();P&&V.push(P);const x=$();x&&V.push(x);const j=T();if(j&&V.push(j),V.length>0){const L=t.h("view",{class:h.value},V);q.push(L)}const H=U();H&&q.push(H)}if(q.length===0)return null;const E={class:u.value,style:p.value,ref:y};return t.h("view",E,q)}}}),{componentName:ji,create:Wi,scope:Yi}=Z("header-bar"),ul=Wi(Hi(ji,Yi,le.Left,!1)),Xi=Symbol.for("InnerPageScopeKey");function Qi(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=nt(),s=r?Rn(r):null,i=t.inject(Xi,!1),c=e,d=t.computed(()=>{const f={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(f[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),f}),m=o.height!==null&&o.height!==void 0?de(o.height):null,u=t.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const v=Re(o.padding??s.footerPadding);return Object.assign(f,v),m&&(s.footerHeight=m),s.footerHeight>0&&(f.height=s.footerHeight),f.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(v.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(m&&(f.height=m),o.padding){const v=Re(o.padding);Object.assign(f,v)}return f}),h=t.ref(null),b=()=>{if(s&&h.value&&!Pn(h.value)){if(!a){const f=cl(h.value);s.footerAllHeight=f.height}return s.footerMounted=!0,!0}return!1},g=Me(b,120);let y=null;t.onMounted(()=>{s&&(rl(b,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(g),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const k=t.computed(()=>{const f={};return u.value.height!==null&&u.value.height!==void 0&&(f.height=ge(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(f.paddingTop=ge(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(f.paddingLeft=ge(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(f.paddingRight=ge(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(f.paddingBottom=ge(u.value.bottom)),f});return()=>{const f=l.slots.default?l.slots.default():[],v={ref:h,class:d.value,style:k.value};return t.h("view",v,f)}}}}const{componentName:Gi,create:Zi,scope:Ji}=Z("footer-bar"),dl=Zi(Qi(Gi,Ji,!1));function _i(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:o,attrs:l}){const r=nt(),s=t.computed(()=>({[e]:!0})),i=r?Rn(r):null,c=t.computed(()=>{const b={};if(r&&i){if(a.padding){const w=Re(a.padding);Object.assign(i.contentPadding,w)}const g=Fn(r,i),y=Kn(r,i);let k="";i.contentHeight?k=`${i.contentHeight}`:k=`${i.height}px`,console.debug("[content]page height:",k),console.debug("[content]header height:",g),console.debug("[content]footer height:",y),console.debug("[content]padding:",i.contentPadding),b.height=k;let f=(i&&i.contentPadding&&i.contentPadding.top)??-1;(f>=0||g>0)&&(f=f<0?0:f,b.paddingTop=`${g+f}px`);let v=(i&&i.contentPadding&&i.contentPadding.bottom)??-1;(v>=0||y>0)&&(v=v<0?0:v,b.paddingBottom=`${y+v}px`);const p=(i&&i.contentPadding&&i.contentPadding.left)??-1;p>=0&&(b.paddingLeft=`${p}px`);const N=(i&&i.contentPadding&&i.contentPadding.right)??-1;return N>=0&&(b.paddingRight=`${N}px`),b}if(a.padding){const g=Re(a.padding);g.left&&(b.paddingLeft=`${g.left}px`),g.top&&(b.paddingTop=`${g.top}px`),g.right&&(b.paddingRight=`${g.right}px`),g.bottom&&(b.paddingBottom=`${g.bottom}px`)}return b}),d=t.ref(null),m=()=>{if(i&&d.value){const b=Un(d.value);i.contentInnerHeight=b.height,i.contentInnerWidth=b.width}},u=Me(m,120);let h=null;return t.onMounted(()=>{requestAnimationFrame(m),window.ResizeObserver&&d.value&&(h=new window.ResizeObserver(u),h.observe(d.value))}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)}),()=>{const b=a.tag??"view",g={...l,ref:d,class:s.value,style:c.value};return t.h(b,g,o)}}}}const{componentName:ec,create:tc,scope:WA}=Z("content"),fl=tc(_i(ec)),Ct="GroupStateKey",xs=Symbol.for("GroupScopeKey");function jn(){return t.inject(xs,!1)}function Wn(e=!0){t.provide(xs,e)}function nc(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];as(l)||(e[o]=l)})}function oc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};nc(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(Ct,r),r}function Co(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(Ct);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=de(r),u=de(s);i||(i=d.type??"grid");const h=()=>{const b=n===""||n===-1,g=de(n);let y=pe(a);const k=de(o);if(!b){let p=(g-(y-1)*k)/y;for(;u!==-1&&p>u;)y++,p=(g-(y-1)*k)/y;for(;m!==-1&&y>1&&p<m;)y--,p=(g-(y-1)*k)/y}let f=!1;const v=c.layout;v.value.width=n,v.value.column!==y&&(v.value.column=y,f=!0),v.value.gutter!==k&&(v.value.gutter=k,f=!0),v.value.type!==i&&(v.value.type=i,f=!0),f&&t.triggerRef(v)};if(l)h();else{const b=++c.passport;setTimeout(()=>{b===c.passport&&h()},50)}}function Yn(e,n=!1){let a;return n?a=e.getForParent(Ct):a=e.get(Ct),a.layout}function Xn(e,n=!1){let a;return n?a=e.getForParent(Ct):a=e.get(Ct),a.order}function ar(e,n=1){if(n==="stretch")return-1;const a=pe(n);return a===-1?100:100*a/e}function Qn(e,n,a=1,o=0,l){const r={};let s=0;l?s=de(l):s=ar(n.column,a),s>0&&(r.width=`${s}%`);const i=ar(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 Gn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=pe(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=pe(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 Ds=Symbol("RollingStateKey");function lc(e){t.provide(Ds,e)}function ac(){return t.inject(Ds,null)}function Ko(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 rc(e){let n=Ko(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=Ko(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function sc(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const ic={...he,...Vs,...Ts};function cc(e,n,a){return{props:ic,emits:["update:collapse","header-click"],setup(o,l){const r=sl(o.prop??o.name,o,$s),s=oc(r,{type:o.type}),i=jn();Wn(!0);const c=o.rollingDisplay?ac():null,d=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?Yn(r,!0).value:null),h=t.getCurrentInstance(),b=(z,Y=!1)=>{const I=h?.proxy;I&&typeof I.setNameValidateRules=="function"&&I.setNameValidateRules(z,!0,Y)};t.watch([()=>o.rules,()=>o.pureDataRules],([z,Y],[I,D])=>{if(z&&I){const F=t.toRaw(I),X=t.toRaw(z),ne=X?Reflect.ownKeys(X):[];(F?Reflect.ownKeys(F):[]).forEach(se=>{ne.includes(se)||(X[se]=[])}),b(X)}if(Y&&D){const F=t.toRaw(D),X=t.toRaw(Y),ne=X?Reflect.ownKeys(X):[];(F?Reflect.ownKeys(F):[]).forEach(se=>{ne.includes(se)||(X[se]=[])}),b(X,!0)}},{deep:!0});const g=e,y=t.computed(()=>{const z={};if(z.height=V.value,o.width)o.width!=="auto"&&(z.width=ge(o.width));else{const Y=i?Xn(r,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const I=Gn(Y,u.value,o.span,o.offset);Object.assign(z,I)}else if(u.value.type==="flow"){const I=Qn(Y,u.value,o.span,o.offset,o.width);Object.assign(z,I)}}}return z}),k=t.computed(()=>{const z=s.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${o.justify}`]:!0,[`${g}--${z}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let Y="";if(o.columnWidth)Y=`repeat(auto-fill, ${o.columnWidth})`;else{const I=sc(B.value,s.layout.value.column,s.layout.value.gutter);Y=`repeat(${s.layout.value.column}, ${I})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Y}}}),v=t.toRef(o,"gutter"),p=t.toRef(o,"column"),N=t.computed(()=>i||m.value?!0:ve(o.isWrap)),w=[],C=z=>{w.push(z)},S=()=>{let z=w.length;w.splice(0,z)},B=t.ref(-1),A=z=>{const Y=Un(z).width;Y>0&&Y!==B.value&&(B.value=Y)};Co(r,B.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,p,v],([z,Y,I])=>{s.order.index=0,Co(r,z,Y,I,!1,o.minItemWidth,o.maxItemWidth,o.type)});const T=t.computed(()=>P.value?o.expandText??"":o.collapseText??""),$=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),U=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),q=t.ref(),E=t.ref(),V=t.computed(()=>x.value||ge(o.height)||""),P=t.ref(!1),x=t.ref(""),j=t.ref(!1);let H=-1;const L=(z,Y=!0)=>{const I=q.value;if(I&&P.value!==z){if(H=H<=0?rc(I):H,j.value=!0,Y)if(I.style["will-change"]="height",I.ontransitionend=function(){I.ontransitionend=null,this.style["will-change"]="auto",z||(x.value="",j.value=!1)},z){let D=0;o.collapseHeight?D=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(D=E.value.offsetHeight),x.value=`${H}px`,t.nextTick(()=>{x.value=`${D}px`})}else x.value=`${H}px`;else if(z){let D=0;o.collapseHeight?D=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(D=E.value.offsetHeight),x.value=`${D}px`}else j.value=!1,x.value=`${H}px`;P.value=z,l.emit("update:collapse",z)}};t.watch(()=>o.collapse,z=>{L(z)});const _=z=>{l.emit("header-click",z)},ee=()=>{K()},K=z=>{z=z??!P.value,L(z)};Ee({toggleCollapse:K,doLayout:()=>{w[0]&&(A(w[0]),Co(r,B.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let M=null,Q=!0;const O=z=>{if(o.rules){const Y=t.toRaw(o.rules);b(Y)}if(o.pureDataRules){const Y=t.toRaw(o.pureDataRules);b(Y,!0)}if(et&&(z&&L(ve(o.collapse),!1),o.autoLayout&&Array.isArray(w)&&w.length>0)){const Y=w[0];if(A(Y),window.ResizeObserver){const I=Me(()=>A(Y),120);M=new window.ResizeObserver(I),M.observe(Y)}}},R=()=>{M?.disconnect(),M=null},J=!m.value||c?.acquire();J&&(d.value=m.value?!0:null),t.onMounted(()=>{if(J&&(O(Q),Q=!1),m.value&&c){let z=null,Y=c.initialHeight;c.observe(q.value,I=>{if(I!==d.value)if(I)d.value=!0,P.value||(x.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(O(Q),Q=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!P.value)if(Q)x.value=c.initialHeight;else{let D=Ko(q.value);D<=0?x.value=Y:(x.value=`${D}px`,Y=x.value)}Q||R()}})}}),t.onUnmounted(()=>{M?.disconnect(),c&&c.unobserve(q.value)});const G=(z="right")=>{const Y=[];if(T.value){const X={class:$.value},ne=t.h("span",X,[T.value]);Y.push(ne)}const I={class:U.value},D=o.collapseIcon??a,F=t.h(D,I);return Y.push(F),Y.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:ee},Y):null},te=(z,Y,I,D)=>{const F={...k.value};return Y===0&&(F[`${g}__first`]=!0),I>=D-1&&(F[`${g}__last`]=!0),t.h("div",{ref:C,key:`${Y}`,class:F,style:f.value},z)};return()=>{if(m.value&&d.value!==!0){const F=o.tag||"div";return t.h(F,{ref:q,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:y.value},[])}s.order.index=0;const z=[];let Y=0;if(l.slots.header){const F={key:`${Y++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:_},X=t.h("div",F,[l.slots.header()]);z.push(X)}else{const F=[],X=o.collapsePosition==="left";if(X&&o.showCollapse){const ne=G("left");ne&&F.push(ne)}if(o.title||l.slots.title){if(o.showMark){const ne={class:{[`${g}__header-mark`]:!0}};o.markColor&&(ne.style={background:o.markColor});const ae=t.h("div",ne);F.push(ae)}if(l.slots.title){const ne=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);F.push(ne)}else if(o.title){const ne=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.title]);F.push(ne)}}if(l.slots.toolbar&&F.push(l.slots.toolbar()),!X&&o.showCollapse){const ne=G("right");ne&&F.push(ne)}if(F.length>0){const ne={key:`${Y++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:_},ae=t.h("div",ne,F);z.push(ae)}}S();const I=l.slots.default?l.slots.default():[],D=s.layout.value.type;if(D==="grid"){const F=te(I,Y++,0,I.length);z.push(F)}else if(D==="flow"){const F=te(I,Y++,0,I.length);z.push(F)}else for(let F=0;F<I.length;F++){const X=I[F],ne=te([X],Y++,F,I.length);z.push(ne)}if(N.value){const F=o.tag||"div";return t.h(F,{ref:q,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:y.value},[z])}else return z}}}}const{componentName:uc,create:dc,scope:fc}=Z("group"),ml=dc(cc(uc,fc,le.RectUp));function mc(e){return e===window}const pc=/matrix\((.+)\)/,pl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(mc(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:d}=window.getComputedStyle(l);if(d){const m=pc.exec(d);if(m){let h=m[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 hc{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 gc{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 hc,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 Kt=new gc,Is={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:yc,create:vc}=Z("price"),bc=vc({props:{...Is},setup(e){const n=t.computed(()=>({[yc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>be(e.price)==0?"":In(e.price,e.decimalLength,!0,pe(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}}}),oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},kc=["innerHTML"],Sc=["innerHTML"];function Cc(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,kc)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Sc)):t.createCommentVNode("",!0)],2)}const Je=oe(bc,[["render",Cc]]),{componentName:wo,create:wc}=Z("hint-text"),Nc=wc({components:{Price:Je},props:{...Is,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=($,U,q,E,V,P)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,j=document.documentElement.clientHeight||document.body.clientHeight,H=$.split("-");let L=[];H[0]==="top"?L=["top","bottom","right","left"]:H[0]==="bottom"?L=["bottom","top","right","left"]:H[0]==="left"?L=["left","top","bottom","right"]:H[0]==="right"&&(L=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},ee=[];for(let K=0;K<L.length;K++){const W=L[K];if(ee[0]=W,H[1]&&(ee[1]=H[1]),W==="top"){const M=U.y-P-e.arrowSize-e.offset;if(M>=0){_.top=M;let Q=0;H[1]==="start"?Q=U.x:H[1]==="end"?Q=U.x+q-V:Q=U.x+q/2-V/2;const O=x-Q-V;O<0?(Q+=O,u.value=-O):u.value=0,_.left=Q<0?0:Q;break}}else if(W==="bottom"){const M=U.y+E+e.arrowSize+e.offset;if(M+P<=j){_.top=M;let Q=0;H[1]==="start"?Q=U.x:H[1]==="end"?Q=U.x+q-V:Q=U.x+q/2-V/2;const O=x-Q-V;O<0?(Q+=O,u.value=-O):u.value=0,_.left=Q<0?0:Q;break}}else if(W==="left"){const M=U.x-V-e.arrowSize-e.offset;if(M>=0){_.left=M;let Q=0;H[1]==="start"?Q=U.y:H[1]==="end"?Q=U.y+E-P:Q=U.y+E/2-P/2,_.top=Q<0?0:Q;break}}else if(W==="right"){const M=U.x+q+e.arrowSize+e.offset;if(M+V<=x){_.left=M;let Q=0;H[1]==="start"?Q=U.y:H[1]==="end"?Q=U.y+E-P:Q=U.y+E/2-P/2,_.top=Q<0?0:Q;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:_}},m=($,U,q=10)=>{if(!et||U===!1||!$)return;o.value=pl(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=c.value.offsetHeight,V=c.value.offsetWidth,{bestPlacement:P,bestInsetRect:x}=d(e.placement,o.value,l.value,r.value,V,E);s.value=P,a.value=x,i.value=!0},u=t.ref(0),h=Me(()=>{m(e.message,e.visible)},10),b=t.ref(e.visible);t.watch(()=>e.visible,$=>{b.value=$});const g=t.computed(()=>b.value&&y.value),y=t.ref(!0),k=Me($=>{const U=$[0];U&&(y.value=U.isIntersecting)},10),f=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([$,U])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Kt.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeUnmount(()=>{Kt.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const v=t.computed(()=>{const $={[wo]:!0};return s.value.startsWith("top")?$["is-top"]=!0:s.value.startsWith("right")?$["is-right"]=!0:s.value.startsWith("bottom")?$["is-bottom"]=!0:s.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),p=t.computed(()=>{const $={};a.value.top!==null&&($.top=`${a.value.top}px`),a.value.right!==null&&($.right=`${a.value.right}px`),a.value.bottom!==null&&($.bottom=`${a.value.bottom}px`),a.value.left!==null&&($.left=`${a.value.left}px`),e.autoFit&&($["min-width"]=`${l.value}px`);const U=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${U}px`,i.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),N=t.computed(()=>{const $=[`${wo}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),w=t.computed(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),C=t.computed(()=>({[`${wo}__arrow`]:!0})),S=t.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,s.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="top-start"?($.left=`${e.arrowOffset+u.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="top-end"?($.right=`${e.arrowOffset-u.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?($.left=`${e.arrowOffset+u.value}px`,$.top=`-${e.arrowSize}px`):s.value==="bottom-end"?($.right=`${e.arrowOffset-u.value}px`,$.top=`-${e.arrowSize}px`):s.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),B=t.computed(()=>g.value&&e.closeOnClick),A=t.computed(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:g,tipRef:c,classes:v,styles:p,textClasses:N,textStyles:w,arrowClasses:C,arrowStyles:S,overlayShow:B,overlayStyle:A,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),Bc=["innerHTML"];function Ac(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,Bc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const qs=oe(Nc,[["render",Ac]]);class Zn{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Uo={},Vc=new Zn,kt=new Map,xn=e=>{if(e){const n=document.getElementById(e);kt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of kt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}kt.clear()}},Tc=e=>{e.unmount=xn;const n=document.getElementById(e.id);if(n){const a=kt.get(e.id);a?e={...Uo,...a,...e}:e={...Uo,...e},e.transition=!1;const o=t.createVNode(qs,e);return t.render(o,n),e.id}},$c=e=>{e.unmount=xn;let n=e.id??`hinttext_${Vc.get()}`;e={...Uo,...e},e.id=n,kt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(qs,e);return t.render(o,a),document.body.appendChild(a),n},Ec=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Et={show(e,n,a={},o=!0){Ec(n);const l=a.id;return l&&kt.has(l)?Tc({...a,message:n,reference:e}):(o&&xn(),$c({...a,message:n,reference:e}))},hide(e){xn(e)},install(e){e.config.globalProperties.$hintText=Et}};function xc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...he,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=nt(),c=jn();Wn(!1);const d=t.computed(()=>c&&i?Yn(i,!1).value:null),m=e,u=t.ref(null),h=t.computed(()=>{const D={[m]:!0,[`${m}__gutter`]:d.value&&d.value.type!=="flow",[`${m}__stretch`]:l.span==="stretch",[`${m}__input--border`]:ve(l.hasBorder)};if(D[l.errorMarkClass]=!!P.value,D[l.warnMarkClass]=!!E.value,D[l.infoMarkClass]=!!U.value,typeof u.value=="function"){const F=u.value(s);D[F]=!0}else if(typeof u.value=="string"){const F=u.value;D[F]=!0}return D}),b=t.ref(null),g=t.computed(()=>{const D={};if(l.width)l.width!=="auto"&&(D.width=ge(l.width));else{const F=c&&i?Xn(i,!1):null;if(d.value&&F){if(d.value.type==="grid"){const X=Gn(F,d.value,l.span,l.offset);Object.assign(D,X)}else if(d.value.type==="flow"){const X=Qn(F,d.value,l.span,l.offset,l.width);Object.assign(D,X)}}}if(typeof b.value=="function"){const F=b.value(s);F&&Object.assign(D,F)}else if(b.value&&typeof b.value=="object"){const F=b.value;Object.assign(D,F)}return D}),y=t.ref(null),k=t.computed({get:()=>y.value??ve(l.isRequired),set:D=>{y.value=D}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",v=Ve(t.toRef(l,"labelPosition"),"labelPosition",$n.Near),p=t.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),N=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${p.value}`]:!0})),w=t.computed(()=>({label:!0,[`label--${p.value}`]:!0})),C=Ve(t.toRef(l,"labelWidth"),"labelWidth",$n.Near),S=t.computed(()=>C&&C.value?{width:ge(C.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":k.value})),A=t.computed(()=>({content:!0,[l.contentClass]:!0})),T=t.computed(()=>({...l.contentStyle})),$=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(D){k.value=D},setErrorTip(D){$.errorTip=D},setErrorIcon(D){$.errorIcon=D},setWarnTip(D){$.warnTip=D},setWarnIcon(D){$.warnIcon=D},setInfoTip(D){$.infoTip=D},setInfoIcon(D){$.infoIcon=D},setCustomClassName(D){u.value=D},setCustomStyle(D){b.value=D}});const U=t.computed(()=>l.infoTip||$.infoTip),q=t.computed(()=>l.infoIcon||$.infoIcon),E=t.computed(()=>l.warnTip||$.warnTip),V=t.computed(()=>l.warnIcon||$.warnIcon),P=t.computed(()=>l.errorTip||$.errorTip),x=t.computed(()=>l.errorIcon||$.errorIcon),j=t.computed(()=>P.value?"error":E.value?"warn":U.value?"info":""),H=()=>j.value.length>0,L=t.computed(()=>j.value==="error"?P.value:j.value==="warn"?E.value:j.value==="info"?U.value:""),_=t.computed(()=>j.value==="error"?x.value:j.value==="warn"?V.value:j.value==="info"?q.value:null),ee=t.computed(()=>{const D={[`${m}__tip`]:!0,[`${m}__tip--${j.value}`]:!0,[`${m}--animate`]:!0};return j.value==="error"&&l.errorClass?D[`${l.errorClass}`]=!0:j.value==="warn"&&l.warnClass?D[`${l.warnClass}`]=!0:j.value==="info"&&l.infoClass&&(D[`${l.infoClass}`]=!0),D}),K=t.computed(()=>{const D={};return v&&v.value==="top"||!f()?D["padding-left"]="0px":C&&C.value&&(D["padding-left"]=ge(C.value)),D}),W=t.ref();let M="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([D,F,X,ne])=>{W.value&&(D&&!ue(F)?M?a.show(W.value,F,{...ne,id:M,type:X},!0):M=a.show(W.value,F,{...ne,type:X},!0):a.hide(M))});let Q=null;const O=()=>{Q||!W.value||(Q=new IntersectionObserver(D=>{let F=!1;for(let X of D)if(X.intersectionRatio>0){F=!0,F&&r.emit("appear",X);break}F||r.emit("disappear")}),Q.observe(W.value))},R=()=>{!Q||!W.value||(Q.unobserve(W.value),Q=null)};t.watch(()=>ve(l.appearListen),D=>{D?O():R()}),t.onMounted(()=>{ve(l.appearListen)&&O()}),t.onUnmounted(R);const J=()=>{if(!f())return null;const D=[],F=r.slots?.label?.()??l.label,X={class:B.value},ne=t.h("div",X,[F]);if(D.push(ne),r.slots.fixedPreTip){const se=r.slots.fixedPreTip();D.push(se)}const ae={class:w.value,style:S.value};return t.h("div",ae,D)},G=()=>{const D=[];if(r.slots.prepend){const X=r.slots.prepend();D.push(X)}if(r.slots.default){const X=r.slots.default();D.push(X)}if(r.slots.append){const X=r.slots.append();D.push(X)}if(r.slots.fixedTip){const X={class:[`${m}__fixed-tip`]},ne=t.h("div",X,[r.slots.fixedTip()]);D.push(ne)}const F={ref:W,class:A.value,style:T.value};return t.h("div",F,D)},te=()=>{const D=_.value;return D?typeof D=="function"?t.h("div",{class:"fox-item__tip--icon"},[D()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(D)]):null},z=()=>{const D=L.value;return D?typeof D=="function"?t.h("div",{class:"fox-item__tip--text"},[D()]):t.h("div",{class:"fox-item__tip--text"},[D]):null},Y=()=>{if(!H())return null;const D=[],F=te();F&&D.push(F);const X=z();X&&D.push(X);const ne={class:ee.value,style:K.value};return t.h("div",ne,D)},I=()=>r.slots?.hide?.()??null;return()=>{const D=[],F=[],X=J();X&&F.push(X);const ne=G();ne&&F.push(ne);const ae={class:N.value},se=t.h("div",ae,F);D.push(se);const fe=Y();fe&&D.push(fe);const we=I();we&&D.push(we);const Xe={class:h.value,style:g.value,prop:l.prop};return t.h("div",Xe,D)}}}}const{componentName:Dc,create:Ic,scope:qc}=Z("item"),Ne=Ic(xc(Dc,qc,Et,!1));function Mc(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=nt(),i=jn();Wn(!1);const c=t.computed(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=ge(a.width));else if(i&&s){const m=Yn(s,!1),u=Xn(s,!1);if(m.value&&u){if(m.value.type==="grid"){const h=Gn(u,m.value,a.span,a.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=Qn(u,m.value,a.span,a.offset,a.width);Object.assign(d,h)}}}return d});return()=>{const d=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const b=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(b)}d.push(u[h])}else Reflect.apply([].push,d,u)}const m={class:r.value,style:c.value};return t.h("div",m,d)}}}}const{componentName:Pc,create:Lc,scope:YA}=Z("row-item"),hl=Lc(Mc(Pc));function zc(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=nt(),r=jn();Wn(!1);const s=t.computed(()=>r&&l?Yn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=ge(a.width));else{const u=r&&l?Xn(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=Gn(u,s.value,a.span,a.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=Qn(u,s.value,a.span,a.offset,a.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",m,o.slots.default()):t.h("div",m)}}}}const{componentName:Oc,create:Rc,scope:XA}=Z("slot-item"),gl=Rc(zc(Oc)),rr={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 Fc(e,n,a,o){return{props:{...he,...ye,...rr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(!1),h=Pe(l,"modelValue",null,c),b=e,g=t.computed(()=>({[b]:!0,"is-disabled":s.value,"is-readonly":i.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const V={};return y.value&&(V["text-align"]=y.value),V}),f=V=>{let x=V.target.value;l.type==="digit"&&(x=Lo(x,!0)),l.type==="number"&&(x=Lo(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),h.value=x,c("update:modelValue",x,V),c("change",x,V)};let v=Pe(l,"hintText"),p=t.ref(!1);const N=V=>{let x=V.target.value;u.value=!0,ue(v.value)||(p.value=!0),c("focus",x,V)},w=V=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let x=V.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,V)},C=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),S=t.computed(()=>{const V={};return r.slots.append&&!B.value&&!q.value&&(V.display="none"),V}),B=t.computed(()=>be(l.unit)>0),A=t.computed(()=>!q.value),T=t.computed(()=>({[`${b}__unit`]:!0,hidden:!A.value})),$=V=>{h.value="",c("update:modelValue","",V),c("change","",V),c("clear","")},U=t.computed(()=>ve(l.clearable)&&!s.value&&!i.value),q=t.computed(()=>{let V=be(h.value)>0;return ve(l.clearable)&&V&&u.value}),E=t.computed(()=>({action:!0,hidden:!q.value}));return()=>{const V={class:g.value,style:k.value,type:l.type,maxlength:l.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:N,onBlur:w},P=[],x=t.h("input",V);P.push(x);const j=[];if(U.value){const M={class:["action-icon"]},Q=t.h(o,M),O={class:E.value,onClick:$},R=t.h("view",O,{default:()=>[Q]});j.push(R)}if(B.value){const M=t.h("view",{class:T.value},[l.unit]);j.push(M)}const H={class:C.value,style:S.value},L=t.h("view",H,{default:()=>j});P.push(L);const _={default:()=>P};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const K={...tt(l,rr),hintText:v.value,hintVisible:p.value};return l.prop&&(K.prop=`${l.prop}_item`),t.h(a,K,_)}}}}const{componentName:Kc,create:Uc,scope:Hc}=Z("input-item"),yl=Uc(Fc(Kc,Hc,Ne,le.CircleClose));function sr(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 ir(e,n,a=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=ns(`${e}`,`${n}`);return sr(o)}else{let o=ol(`${e}`,os(`${n}`),20);return sr(o)}}function jc(e,n=-1,a=!1,o=3,l=","){return In(e,n,a,o,l)}function cr(e,n,a,o,l=!0){if(e==="")return"";if(e=ls(e),n=pe(n),n==1)return e;if(o)e=ir(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(pe(a)+2,"0"):e=ol(e,1,pe(a)));else{let r=-1*n;e=ir(e,r)}return e}function ur(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ve(n.minInclude),l=Io(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=ve(n.maxInclude),l=Io(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const dr={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Wc(e,n,a,o){return{props:{...he,...ye,...dr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=t.ref(!1),m=Pe(l,"modelValue",null,c),u=t.ref("");t.watch([()=>m.value,()=>l.rates,()=>l.precision],([H,L,_])=>{if(ue(H)){u.value="";return}const ee=cr(H,L,_,!1);u.value!==ee&&(u.value=ee)},{immediate:!0});const h=t.computed(()=>{let H="";return d.value&&(H=u.value),H}),{t:b}=ie.useFoxI18n(n),g=t.computed(()=>{let H=l.placeholder??"";return!d.value&&!ue(u.value)?H=jc(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?b(["placeholder"]):H,H}),y=e,k=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Ve(t.computed(()=>l.textAlign),"textAlign"),v=t.computed(()=>{const H={};return f.value&&(H["text-align"]=f.value),H}),p=t.ref(""),N=t.computed(()=>{let H=p.value;return ue(H)&&(H=l.errorTip??""),H}),w=t.ref(""),C=t.ref(!1),S=H=>{let _=H.target.value;if(ue(_)){u.value="",m.value="",c("update:modelValue","",H),c("change","",H),ve(l.showTip)&&C.value&&(C.value=!1);return}if(_.length>=2){let ee=_;if(ee.charAt(0)=="-"&&(ee=ee.substring(1)),ee.length>=2&&ee.charAt(0)=="0"&&ee.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!ll(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&fs(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&ms(_)>Number(l.decimalLength)){t.triggerRef(u);return}let ee=ur(_,l);if(ee.maxValid===!1){p.value=ee.message,t.triggerRef(u);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(u);return}w.value=_,ve(l.showTip)&&(C.value=_.length>0),u.value=_,m.value=cr(_,l.rates,l.precision,!0),c("update:modelValue",m.value,H),c("change",m.value,H)},B=H=>{if(d.value=!0,ve(l.showTip)){let L=u.value;ue(L)&&(L=l.hintText),ue(L)||(w.value=L,C.value=!0)}p.value="",c("focus",m.value,H)},A=H=>{if(setTimeout(()=>{d.value=!1,ve(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let L=ur(u.value,l);if(L.minValid===!1||L.maxValid===!1){p.value=L.message;return}}c("update:modelValue",m.value,H),c("blur",m.value,H)},T=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),$=t.computed(()=>{const H={};return r.slots.append&&!U.value&&!x.value&&(H.display="none"),H}),U=t.computed(()=>be(l.unit)>0),q=t.computed(()=>!x.value),E=t.computed(()=>({[`${y}__unit`]:!0,hidden:!q.value})),V=H=>{m.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},P=t.computed(()=>ve(l.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let H=be(m.value)>0;return ve(l.clearable)&&H&&d.value}),j=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let H={class:k.value,style:v.value,type:"digit",maxlength:l.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:S,onFocus:B,onBlur:A},L=[],_=t.h("input",H);L.push(_);let ee=[];if(P.value){const R={class:["action-icon"]},J=t.h(o,R),G={class:j.value,onClick:V},te=t.h("view",G,{default:()=>[J]});ee.push(te)}if(U.value){const R=t.h("view",{class:E.value},[l.unit]);ee.push(R)}const K={class:T.value,style:$.value},W=t.h("view",K,{default:()=>ee});L.push(W);const M={default:()=>L};M.label=r.slots.default,M.prepend=r.slots.prepend,M.append=r.slots.append,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const O={...tt(l,dr),errorTip:N.value,hintText:w.value,hintVisible:C.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(a,O,M)}}}}const{componentName:Yc,create:Xc,scope:Qc}=Z("money-item"),vl=Xc(Wc(Yc,Qc,Ne,le.CircleClose)),Ho={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:Gc,create:Zc,scope:Jc}=Z("textarea"),_c=Zc({props:{...Ho},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(Jc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Gc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=l.value;h.style.height="auto";let b=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:y}=e.autosize;g!==void 0&&(b=Math.min(b,g)),y!==void 0&&(b=Math.max(b,y))}b&&(console.info("----------- height",b),h.style.height=b+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,b)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,b),n("change",h,b)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const b=h.target;c(b.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),n("blur",{value:g,event:h})}}}}),eu=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],tu={key:0,class:"fox-textarea__limit"};function nu(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,eu),e.limitShow?(t.openBlock(),t.createElementBlock("view",tu,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Jn=oe(_c,[["render",nu]]);function ou(e,n,a,o){return{props:{...he,...ye,...Ho},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=Pe(l,"modelValue",null,c),m=y=>{d.value=y,c("update:modelValue",y,{}),c("change",y,{})};let u=Pe(l,"hintText"),h=t.ref(!1);const b=y=>{ue(u.value)||(h.value=!0),c("focus",d.value,y)},g=y=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,y)};return()=>{const k={...ke(l,Ho),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:b,onBlur:g},f=[],v=t.h(o,k);f.push(v);const p={default:()=>f};p.label=r.slots.default,p.prepend=r.slots.prepend,p.append=r.slots.append,p.fixedPreTip=r.slots.fixedPreTip,p.fixedTip=r.slots.fixedTip;const w={...ke(l,ye,he)};return l.prop&&(w.prop=`${l.prop}_item`),t.h(a,w,p)}}}}const{componentName:lu,create:au,scope:ru}=Z("textarea-item"),bl=au(ou(lu,ru,Ne,Jn));function su(e){return e===window}const qe=e=>{const n=t.unref(e);if(su(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}},fr=10;function Ms(e,n){return e>n&&e>fr?"horizontal":n>e&&n>fr?"vertical":""}function _n(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function eo(){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 d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.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=Ms(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.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 lt(){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),d=t.ref(0),m=t.ref(""),u=()=>m.value==="vertical",h=()=>m.value==="horizontal",b=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",a.value=0};return{move:k=>{if(k.touches){const p=k.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-n.value,l.value=p.clientX,r.value=p.clientY}else{const v=k;s.value=v.clientX-e.value,i.value=v.clientY-n.value,l.value=v.clientX,r.value=v.clientY}c.value=Math.abs(s.value),d.value=Math.abs(i.value),o.value=Date.now()-a.value,m.value||(m.value=Ms(c.value,d.value))},start:k=>{if(b(),k.touches){const p=k.touches[0];e.value=p.clientX,n.value=p.clientY}else{const v=k;e.value=v.clientX,n.value=v.clientY}a.value=Date.now()},reset:b,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:u,isHorizontal:h}}let iu=2e3;const mr=()=>iu++,Fe={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:{}}},cu=(e,n)=>({components:n,props:{...Fe},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=mr());const r=t.computed(()=>{const y=e,k=[y,`${y}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{k.push(f)}),k}),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=mr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},m=y=>{o("click-pop",y)},u=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},h=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},b=y=>{o("opend",y)},g=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():d()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:u,onClickOverlay:h,onOpened:b,onClosed:g}}}),Ps={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}},jo={...Fe,...Ps,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},poppable:{type:[Boolean],default:()=>!0}};let Ls=36;function uu(){return Ls}function du(e){Ls=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Wo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fu(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function pr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let mu=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function pu(){const e=t.getCurrentInstance();return new mu(e.proxy)}function hr(e,n,a){const o=Oe(e,n),l=Oe(e,a);if(o!==l)return!1;const r=dt(e,n),s=dt(e,a);return r===s}function hu(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 d=a[s].findIndex(m=>{if(r==="text")return Oe(e,m)===i;if(r==="value"){let u=dt(e,m);return u==null&&(u=Oe(e,m)),u===i}else if(r==="item")return hr(e,m,i)});if(d==-1)break;l.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let d=s.findIndex(u=>{if(r==="text")return Oe(e,u)===c;if(r==="value"){let h=dt(e,u);return h==null&&(h=Oe(e,u)),h===c}else if(r==="item")return hr(e,u,c)});if(d==-1)break;l.push(d);const m=Wo(e,s[d]);if(!Array.isArray(m))break;s=m}}return l}function gr(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 d=i[c],m=Oe(e,d);if(l.texts.push(m),l.items.push(d),r==="text")l.values.push(m);else if(r==="value"){let u=dt(e,d);u==null&&(u=m),l.values.push(u)}else l.values.push(d)}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 d=s[c],m=Object.assign({},d);m.children=null;const u=Oe(e,d);if(l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let h=dt(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(m);if(!Array.isArray(d.children))break;s=d.children}}return l}function yr(e){return{text:e,value:e}}const gu=15,yu=300,vu=200,{create:bu}=Z("picker-column");function ku(e){e.stopPropagation()}function Su(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),ku(e)}const Cu=bu({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},...Ps},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${pe(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=S=>S>=u.currIndex+8||S<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=S=>`transform: rotate3d(1, 0, 0, ${-u.rotation*S}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),m=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=S=>Oe(e,S),b=S=>dt(e,S),g=lt(),y=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},k=(S,B=!1,A=!1)=>{if(u.currIndex=S,B){const T=()=>{u.moving=!1,n("update:modelValue",S),n("change",S)};A?u.transitionEndTrigger=T:T()}},f=(S,B,A)=>{let T=S+u.startDistance;if(B==="end"){const $=-(e.source.length-1)*e.itemHeight;T<$&&(T=$),T>0&&(T=0);let U=Math.abs(Math.round(-T/e.itemHeight));const q=-U*e.itemHeight,E=`${(U+1)*u.rotation}deg`,V=A?A>0:!1;k(U,!0,V),v(q,B,A,E)}else{let $=(-T/e.itemHeight+1)*u.rotation;const U=(e.source.length+1)*u.rotation,q=0;if($=Math.min(Math.max($,q),U),e.threeDimensional&&($<q||$>U))return;v(T,null,void 0,`${$}deg`)}},v=(S=0,B,A=vu,T)=>{B==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=T,u.scrollDistance=S},p=(S,B)=>(S=Math.abs(S/B)/.003*(S<0?-1:1),S),N=S=>{e.readonly||(u.startDistance=u.scrollDistance,g.start(S),u.transitionEndTrigger=null)},w=S=>{e.readonly||(u.moving=!0,g.move(S),g.isVertical()&&(u.moving=!0,Su(S)),f(g.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const S=g.deltaY.value,B=g.duration.value;if(B<yu&&Math.abs(S)>gu){const T=p(S,B);f(T,"end",e.swipeDuration)}else f(S,"end",0)};return t.watch(()=>e.modelValue,S=>{const B=u.currIndex-S;if(B!==0){u.currIndex=S,u.startDistance=u.scrollDistance;const A=B*e.itemHeight;f(A,"",0)}}),t.watch(()=>e.source,S=>{if(u.currIndex>=S.length){const T=(S.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(T,"end",0)}}),t.watch(()=>e.visible,S=>{S===!1&&y()}),t.onMounted(()=>{const S=-e.modelValue*e.itemHeight;f(S)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:b,...t.toRefs(u),roller:m,getItemText:Oe,onTouchStart:N,onTouchMove:w,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:y}}}),wu={key:1,class:"fox-picker__item-tile"};function Nu(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",wu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Bu=oe(Cu,[["render",Nu]]);let qt=0;const vr="fox-overflow-hidden",br=()=>et?document.body:{classList:[]},Au=e=>[()=>{if(e())try{!qt&&br().classList.add(vr),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&br().classList.remove(vr)}catch{}}],Vu={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:Tu,create:$u}=Z("overlay"),Eu=$u({props:{...Vu},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Au(()=>e.lockScroll),l=t.computed(()=>({[Tu]:!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 xu(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 ft=oe(Eu,[["render",xu]]),{componentName:Du,create:Iu}=Z("popup"),qu=Iu(cu(Du,{FoxOverLay:ft,Close:le.Close}));function Mu(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 me=oe(qu,[["render",Mu]]),Pu=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=tt({...e},{poppable:!1});return t.h(me,a,n)}else return n?.default?.()??null}}}),{create:Lu,componentName:zu,scope:Ou}=Z("picker"),Ru=Lu({components:{Column:Bu,Wrapper:Pu},props:{...jo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n(Ou),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(uu());t.watch(()=>e.visible,E=>{E&&s.value<=0&&setTimeout(()=>{if(r.value){const V=qe(r.value);s.value=V.height,du(s.value)}},50)});const i=t.computed(()=>({[zu]:!0})),c=pu(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([E,V])=>{if(E){let P=await c.load("picker",E,V);if(P.length>0){let x=P[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let j=P,H=[];j.forEach(L=>{let _=L.map(ee=>yr(ee));H.push(_)}),m.value=H}else m.value=P;d.value="multipleColumn"}else if(typeof x=="string"){let j=P,H=[],L=j.map(_=>yr(_));H.push(L),m.value=H,d.value="singleColumn"}else{const j=Wo(e,x);Array.isArray(j)?(d.value="cascade",m.value=[P]):(d.value="singleColumn",m.value=[P])}}else m.value=[]}},{immediate:!0});const u=t.ref([]),h=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),b=t.ref([]);let g=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([E,V])=>{let P=hu(e,E,V,d.value);if(!Ie(P,y.value)){y.value=P,g||(g=P?[...P]:[]);let x=gr(e,P,V,d.value);x&&(u.value=x.texts,Ie(h.value,x.values)||(h.value=x.values),Ie(b.value,x.items)||(b.value=x.items),n("update:text",u.value))}});let k="";const f=t.ref(e.visible);t.watch(()=>e.visible,E=>{f.value=E,E&&(k="active",y.value.length>0&&(g=[...y.value]))});const v=E=>{let V=pr(e,E);return De(V)?V.defaultIndex??0:0},p=E=>{if(e.readonly===!0)return!0;let V=pr(e,E);return De(V)?V.readonly??!1:!1},N=(E,V)=>{let P=y.value;P[E]=V;for(let j=0;j<E;j++)P[j]==null&&(P[j]=v(j));if(d.value==="cascade")for(let j=E+1;j<C.value.length;j++){let H=v(j);j<P.length?P[j]=H:P.push(H)}else for(let j=P.length;j<C.value.length;j++){let H=v(j);P.push(H)}y.value=P;let x=gr(e,P,m.value,d.value);x&&(u.value=x.texts,h.value=x.values,b.value=x.items)},w=E=>E<y.value.length?y.value[E]:v(E),C=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let E=[],V=0,P=m.value[0],x=0;for(;;){let j=P.map(_=>{let ee=Object.assign({},_);return fu(e,ee,null),ee});E.push(j),V>=y.value.length?x=0:x=y.value[V],(x<0||x>=P.length)&&(x=0);let H=P[x];const L=Wo(e,H);if(!Array.isArray(L))break;P=L,V++}return E}),S=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value),B=(E=!1)=>{if(e.readonly===!0){E&&n("update:visible",!1);return}let V=m.value.length-1;for(;V>=0&&!(y.value[V]===null||y.value[V]===void 0);V--);if(V>=0&&N(V,0),d.value==="singleColumn"){let P=h.value.length>0?h.value[0]:"",x=b.value.length>0?b.value[0]:null;n("update:modelValue",P),n("update:text",u.value),n("change",P,x),E&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",u.value),n("change",h.value,b.value),E&&(n("confirm",h.value),n("update:visible",!1))},A=(E,V)=>{if(k!=="close"&&(N(E,V),e.isAutoBackFill)){const P=!f.value;B(P)}},T=()=>{k==="active"&&(k="confirm",g=Array.isArray(y.value)?[...y.value]:[],B(!0))},$=()=>{d.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],g=null};return{...l,pickerLineRef:r,classes:i,columns:C,dataType:d,show:f,itemHeight:s,top:S,isReadonly:p,getIndex:w,change:A,close:()=>{if(k==="active"){if(k="close",g===null||g.length===0)$();else{if(Array.isArray(g))for(let E=0;E<g.length;E++)N(E,g[E]);B(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(k==="active"){if(k="clear",e.readonly===!0){n("update:visible",!1);return}$(),g=null,n("clear",""),n("update:visible",!1)}}}}}),Fu={key:0,class:"fox-picker__bar"},Ku={class:"fox-picker__title"},Uu={class:"fox-picker__bar__action"},Hu={class:"fox-picker__column"};function ju(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom","pop-class":"fox-picker__popup",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,poppable:e.poppable},{default:t.withCtx(()=>[e.poppable?(t.openBlock(),t.createElementBlock("view",Fu,[t.createElementVNode("view",Ku,t.toDisplayString(e.title),1),t.createElementVNode("view",Uu,[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.createCommentVNode("",!0),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Hu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["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","poppable"])],2)}const tn=oe(Ru,[["render",ju]]);function Wu(e,n,a,o,l,r,s=!0){return{props:{...he,...ye,...jo,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 d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),b=h(i,["placeholder"]),g=t.ref(!1),y=Pe(i,"modelValue",null,u),k=t.ref([]),f=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),N=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const W={};return N.value&&(W["text-align"]=N.value),W}),C=t.ref(!1),S=()=>{C.value=!0},B=W=>{C.value=W},A=W=>{y.value=W,u("update:modelValue",W)},T=(W,M)=>{u("change",W,M)},$=W=>{let Q=W.target.value;g.value=!0,u("focus",Q,W)},U=W=>{setTimeout(()=>{g.value=!1},0);let Q=W.target.value;i.maxLength&&Q.length>Number(i.maxLength)&&(Q=Q.slice(0,Number(i.maxLength))),u("blur",Q,W)},q=W=>{k.value=W,Array.isArray(W)&&W.length===0?u("update:text",W[0]):u("update:text",W)},E=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),V=t.computed(()=>be(i.unit)>0),P=t.computed(()=>be(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!P.value})),j=W=>{y.value="",u("update:modelValue","",W),u("change","",W),u("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),L=t.computed(()=>be(y.value)>0&&g.value),_=W=>{L.value?j(W):S()},ee=t.computed(()=>L.value&&H.value?o:l),K=t.computed(()=>({action:!0}));return()=>{const W={class:p.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:S,onFocus:$,onBlur:U};s&&(W.disabled=!0);const M=[],Q=t.h("input",W);M.push(Q);const O=[],R={class:["action-icon"]},J=t.h(ee.value,R),G={class:K.value,onClick:_},te=t.h("view",G,{default:()=>[J]});if(O.push(te),V.value){const ae=t.h("view",{class:x.value},[i.unit]);O.push(ae)}const z={class:E.value},Y=t.h("view",z,{default:()=>O});M.push(Y);const I={default:()=>M};I.label=c.slots.default,I.prepend=c.slots.prepend,I.append=c.slots.append,I.fixedPreTip=c.slots.fixedPreTip,I.fixedTip=c.slots.fixedTip;const D=ke(i,jo);D.disabled=!1,D.readonly=d.value||m.value,D.visible=C.value,D["onUpdate:visible"]=B,D.modelValue=y.value,D["onUpdate:modelValue"]=A,D.text=k.value,D["onUpdate:text"]=q,D.onChange=T;const F=t.h(r,D);I.hide=()=>[F];const X=ke(i,ye,he);return i.prop&&(X.prop=`${i.prop}_item`),t.h(a,X,I)}}}}const{componentName:Yu,create:Xu,scope:Qu}=Z("picker-item"),kl=Xu(Wu(Yu,Qu,Ne,le.CircleClose,le.ArrowRight,tn,!1)),Gu=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(me,o,n)}else return n?.default?.()??null}}}),sn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:d,...m}=o,u={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:d,_parent:n};return u.children&&u.children.length&&(u.children=sn(u.children,u,a)),u}),zs=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&zs(o.children,n)},Zu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ju=(e,n)=>{const a={...Zu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(d=>{d={...d};const{[l]:m,[r]:u}=d,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,u)=>m[s]-u[s])}),c=null,i},_u={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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},kr=(e,n)=>n[e.textKey],Mt=(e,n)=>n[e.valueKey],ed=(e,n)=>n[e.visibleKey],Sr=(e,n)=>n[e.disabledKey],td=(e,n)=>{const a=n[e.doitKey];return ve(a)},nd=(e,n)=>{const a=n[e.numKey];return a==null?null:pe(n[a])},Cr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function od(e,n,a,o,l,r=!1){return{props:{..._u},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:c}){const d=t.computed(()=>{const I={};return I[`${e}`]=!0,I}),m=t.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${s.direction}`]=!0,s.align==="left"&&(I.left=!0),s.scroll===!0&&(I.scrollable=!0),s.shape&&(I[`${s.shape}`]=!0),s.showScrollArrow?(Q.value===!0&&(I["has-left-scroll-arrow "]=!0),O.value===!0&&(I["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(I["has-navigation"]=!0),I}),u=t.computed(()=>({})),h=t.computed(()=>{if(!s.gutter)return 0;const I=de(s.gutter);return I<=0?0:I}),b=t.ref(s.modelValue);t.watch(()=>s.modelValue,I=>{b.value!==I&&(b.value=I,H(!1))});const g=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=t.computed(()=>{const I={};return f.value||(I.display="none"),I}),k=t.ref(),f=t.ref(!1),v=()=>{const I=!f.value;p(I)},p=I=>{const D=I;D?(f.value=D,setTimeout(()=>{g.value["fox-tabs-bar__popup--show"]=!0,g.value["fox-tabs-bar__popup--hide"]=!1},0)):(g.value["fox-tabs-bar__popup--show"]=!1,g.value["fox-tabs-bar__popup--hide"]=!0,k.value?k.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},N=t.ref(),w=t.ref([]),C=(I,D)=>{w.value[D]=I},S=I=>D=>{C(D,I)},B=(I,D)=>{const F=N.value,X=w.value;if(!F||!X||!X[I])return;const ne=X[I];let ae=0;s.direction==="vertical"?ae=ne.offsetTop-(F.offsetHeight-ne.offsetHeight)/2:ae=ne.offsetLeft-(F.offsetWidth-ne.offsetWidth)/2,A(F,ae,D?0:.3,s.direction)},A=(I,D,F,X)=>{let ne=0;const ae=X==="horizontal"?I.scrollLeft:I.scrollTop,se=F===0?1:Math.round(F*1e3/16);function fe(){X==="horizontal"?I.scrollLeft+=(D-ae)/se:I.scrollTop+=(D-ae)/se,++ne<se&&He(fe)}fe()},T=(I,D)=>{const F=Mt(s,I),X={};return X[`${e}__titles-item`]=!0,X.disabled=Sr(s,I),X.active=F===b.value,s.shape&&(X[`${s.shape}`]=!0),s.ellipsis&&(X.ellipsis=!0),D&&(D.class&&(X[`${D.class}`]=!0),D.disabled===!0&&(X.disabled=D.disabled)),X},$=(I,D)=>{const F={};if(h.value>0){const X=Math.abs(h.value/2);s.direction==="vertical"?(F["margin-top"]=`${X}px`,F["margin-bottom"]=`${X}px`):(F["margin-left"]=`${X}px`,F["margin-right"]=`${X}px`)}return D&&D.style&&Object.assign(F,D.style),F},U=(I,D)=>`${Mt(s,I)??D}`,q=(I,D)=>{const F=Mt(s,I),X={};X[`${e}__popup-item`]=!0,X.disabled=Sr(s,I),X.active=F===b.value,s.shape&&(X[`${s.shape}`]=!0);const ne=Cr(s,I,D);return ne&&ne.disabled===!0&&(X.disabled=ne.disabled),X},E=t.computed(()=>(s.data??[]).filter(D=>ed(s,D)!==!1)),V=(I,D)=>{const F=Mt(s,I);if(c("click",I,D),b.value==F)return;const X=()=>{b.value=F,s.scroll&&B(D,!1),c("update:modelValue",F),c("change",I,D)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(I,D);St(ne)?ne.then(ae=>{ae!==!1&&X()}).catch(()=>{X()}):ne!==!1&&X()}else X()},P=(I,D)=>function(){V(I,D)},x=(I,D)=>{V(I,D),p(!1)},j=(I,D)=>function(){x(I,D)},H=I=>{if(!Array.isArray(s.data)||!s.scroll)return;M()&&te();const D=s.data.findIndex(F=>Mt(s,F)===b.value);D!==-1&&B(D,I)},L=()=>{M()||z()};t.watch(()=>s.data,()=>{setTimeout(H,0)}),t.onMounted(()=>{H(!0)}),t.onBeforeUnmount(()=>{L()});const _=(I,D)=>{if(i.item)return i.item({item:I,index:D});const F=Cr(s,I,D),X=[];if(i.text){const fe=i.text({item:I,index:D});X.push(fe)}else{const fe=[];if(F?.doit===!0||td(s,I)){const Ue={class:[`${e}__titles-item-tip`,"doit"]},mt=t.h("view",Ue);fe.push(mt)}const we=F?.num??nd(s,I);if(we){let Ue="";const mt=pe(we);mt>=100?Ue="99+":Ue=`${mt}`;const yo={class:[`${e}__titles-item-tip`,"num"]},ei=t.h("view",yo,[Ue]);fe.push(ei)}const Xe={class:`${e}__titles-item-text`};fe.push(kr(s,I));const Qe=t.h("view",Xe,fe);X.push(Qe)}const ne={class:`${e}__titles-item-line`},ae=t.h("view",ne);X.push(ae);const se={ref:S(D),class:T(I,F),style:$(I,F),key:U(I,D),onClick:P(I,D)};return t.h("view",se,X)},ee=()=>{const I=i.default?i.default():[];if(I.length===0)for(let F=0;F<E.value.length;F++){const X=E.value[F],ne=_(X,F);I.push(ne)}const D={ref:N,class:m.value,style:u.value};return t.h("view",D,I)},K=()=>{let I=null;i.navigation?I=i.navigation():I=t.h(a);const D={class:`${e}__navigation`,onClick:v};return t.h("view",D,[I])},W=()=>{const I=[];for(let F=0;F<E.value.length;F++){const X=E.value[F];let ne=null;i.popupItem?ne=i.popupItem({item:X,index:F}):ne=kr(s,X);const ae={class:q(X,F),key:U(X,F),onClick:j(X,F)},se=t.h("view",ae,[ne]);I.push(se)}const D={class:g.value,style:y.value};return t.h("view",D,I)},M=()=>s.showScrollArrow&&s.direction=="horizontal",Q=t.ref(!1),O=t.ref(!1),R=I=>{const D=N.value,F=w.value;if(!(!D||!F))if(I==="left"){const X=D.scrollLeft;let ne=X;for(let ae=0;ae<F.length;ae++){const se=F[ae].offsetLeft;if(X-se<0)break;ne=se}A(D,ne,.3,"horizontal")}else{const X=D.scrollLeft;let ne=X,ae=D.offsetWidth;for(let se=F.length-1;se>=0;se--){const fe=F[se].offsetLeft+F[se].offsetWidth;if(fe-X<D.offsetWidth){ne+=ae-fe;break}ae=fe}A(D,ne,.3,"horizontal")}},J=Me(()=>{const I=N.value;if(!I)return;let D=I.scrollLeft>0;D!==Q.value&&(Q.value=D);let F=I.scrollWidth-I.scrollLeft>I.offsetWidth;F!==O.value&&(O.value=F)},50),G=I=>{J()},te=()=>{const I=N.value;I&&(J(),I.addEventListener("scroll",G))},z=()=>{const I=N.value;I&&I.removeEventListener("scroll",G)},Y=I=>{if(I==="left"&&Q.value!==!0||I==="right"&&O.value!==!0)return null;let D=null;I==="left"?i.leftArrow?D=i.leftArrow():D=t.h(o):i.rightArrow?D=i.rightArrow():D=t.h(l);const F={class:[`${e}__scroll-arrow`,I],onClick:()=>{R(I)}};return t.h("view",F,[D])};return()=>{const I=[],D=ee();if(I.push(D),M()){const X=Y("left");X&&I.push(X);const ne=Y("right");ne&&I.push(ne)}else if(s.showQuickNavigation){const X=K();I.push(X);const ne=W();I.push(ne)}const F={class:d.value};return t.h("view",F,I)}}}}const{create:ld,componentName:ad,scope:rd}=Z("tabs-bar"),to=ld(od(ad,rd,le.MoreH,le.Left,le.Right,!1)),Os=Symbol("TabsStatesKey"),sd={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},id=15,cd=300,ud=200;function dd(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function wr(e,n=0,a,o,l=ud){a==="end"?e.style.transition=`transform ${l}ms linear`:e.style.transition="transform 0ms linear",o==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let fd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,a,o,l=1,r){this.onStart=n,this.onMove=a,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??_n()}open(n){this.el=n;const a=eo(),o=(l,r,s)=>{const i={delta:l,direction:r,type:s};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;a.start(l),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;a.move(l);let r=0;if(this.direction==="horizontal"){if(a.isVertical())return;r=a.state.deltaX}else{if(a.isHorizontal())return;r=a.state.deltaY}o(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(a.isVertical()){this.moving=!1;return}l=a.state.deltaX}else{if(a.isHorizontal()){this.moving=!1;return}l=a.state.deltaY}const r=a.state.duration;r<cd&&Math.abs(l)>id?(l=dd(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function md(e,n,a,o=1,l){return new fd(e,n,a,o,l)}function pd(e,n,a=!1){return{props:{...sd},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:C=>{const S={name:C};i.current.value===C&&(S.loaded=!0),s.value.push(S),t.triggerRef(s)},remove:C=>{const S=s.value.findIndex(B=>B.name===C);S!==-1&&s.value.splice(S,1)},isLoaded:C=>{if(!o.lazy)return!0;const S=s.value.findIndex(B=>B.name===C);return S!==-1?i.current.value?s.value[S].loaded??!1:S===0:!1}};t.provide(Os,i);const c=C=>{const S=s.value.findIndex(B=>B.name===C);S!==-1&&(s.value[S].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([C,S])=>{i.current.value!==C&&(i.current.value=C??"",c(C??"")),i.direction.value!==S&&(i.direction.value=S)});const d=t.ref(null),m=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const b=t.computed(()=>{const C={},S=s.value.length;if(S<=0)return C;const B=s.value.findIndex(A=>A.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(C.height=`${S*i.tabHeight.value}px`,B!==-1&&(C.transform=`translate(0, -${B*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(C.width=`${S*i.tabWidth.value}px`,B!==-1&&(C.transform=`translate(-${B*i.tabWidth.value}px, 0)`)),h&&(h=!1,C.transition="transform 0s ease"),C}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},y=C=>{const S=s.value.length,B=s.value.findIndex(A=>A.name===i.current.value);g.moved=0,C.direction==="vertical"?(g.min=-1*(i.tabHeight.value*(S-1)+i.tabHeight.value/4),g.max=i.tabHeight.value/4,g.start=-B*i.tabHeight.value,g.itemDistance=i.tabHeight.value):(g.min=-1*(i.tabWidth.value*(S-1)+i.tabWidth.value/4),g.max=i.tabWidth.value/4,g.start=-B*i.tabWidth.value,g.itemDistance=i.tabWidth.value)},k=C=>{const S=m.value;if(!S)return;let B=g.start+C.delta;if(B>g.max?B=g.max:B<g.min&&(B=g.min),C.type==="move")wr(S,B,"move",C.direction,300);else if(C.type==="end"){let A=Math.floor(Math.abs(B)*1/g.itemDistance);const T=Math.abs(B)%g.itemDistance;g.start>B?T>=g.itemDistance*g.triggerAutoMoveRatio&&(A+=1):T>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(A+=1),B=-1*A*g.itemDistance,wr(S,B,"end",C.direction,300),g.moved=B;const $=s.value[A].name;i.current.value=$??"",c($??""),l("update:modelValue",$)}},f=()=>{},v=()=>{if(!d.value)return;const C=Un(d.value);i.tabWidth.value=C.width,i.tabHeight.value=C.height},p=Me(v,120);let N=null,w=null;return t.onMounted(()=>{d.value&&(window.ResizeObserver&&(w=new window.ResizeObserver(p),w.observe(d.value)),v(),o.draggle&&(N=md(y,k,f),N.open(m.value)))}),t.onBeforeUnmount(()=>{w&&(w.disconnect(),w=null),N&&N.close()}),Ee({doLayout(){v()}}),()=>{const C={class:`${e}__panes`,style:b.value,ref:m},S=t.h("view",C,[r?.default?.()]),B={class:u.value,ref:d};return t.h("view",B,[S])}}}}const{create:hd,componentName:gd,scope:yd}=Z("tabs-container"),no=hd(pd(gd,yd,!1)),vd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function bd(e,n,a){return{props:{...vd},setup(o,{emit:l,slots:r}){const s=t.inject(Os);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),c=t.computed(()=>o.loaded!=null?ve(o.loaded):s.isLoaded(o.paneKey));return()=>{let d=[];if(c.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,b=t.h(h,u),g={class:`${e}__empty-text`},y=o.emptyText??"Loading",k=t.h("view",g,[y]),f={class:`${e}__empty`},v=t.h("view",f,[b,k]);d.push(v)}const m={class:`${e}`,style:i.value};return t.h("view",m,d)}}}}const{create:kd,componentName:Sd,scope:Cd}=Z("tabs-pane"),oo=kd(bd(Sd,Cd,le.Loading));class Nr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=sn(n,null,this.config)}updateChildren(n,a){a?a.children=sn(n,a,this.config):this.nodes=sn(n,null,this.config)}getNodeByValue(n){let a;return zs(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:wd,scope:Nd}=Z("cascader-pane"),Bd=wd({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:to,TabsContainer:no,TabsPane:oo},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}=ie.useFoxI18n(Nd),o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(),s=t.ref(!1),i=t.ref(e.modelValue),c=t.ref(new Nr([],{})),d=t.ref([]),m=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),u=t.computed(()=>s.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((p,N)=>({text:p.selectedNode?p.selectedNode.text:a("select"),value:N}))),h=new Map;let b;const g=async()=>{h.clear(),d.value=[],l.value=0,s.value=!1,b=null;let{options:p}=e;o.value.convertConfig&&(p=Ju(p,o.value.convertConfig)),c.value=new Nr(p,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),m.value&&!c.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:c.value.nodes,selectedNode:null}],y(!m.value)},y=async(p=!0)=>{const N=i.value;if(N===void 0||!c.value.nodes.length)return;if(N.length===0){l.value=0,d.value=[{nodes:c.value.nodes,selectedNode:null}];return}let w=N;if(m.value&&Array.isArray(N)&&N.length){w=[];let C=c.value.nodes.find(S=>S.value===N[0]);if(C){w=[C.value],s.value=!0;const S=await N.slice(1).reduce(async(B,A)=>{const T=await B;await k(T);const $=T?.children?.find(U=>U.value===A);return $&&w.push(A),Promise.resolve($)},Promise.resolve(C));await k(S),s.value=!1}}w.length&&N===e.modelValue&&c.value.getPathNodesByValue(w).map((S,B)=>{l.value=B,v.handleNode(S,p)})},k=async p=>{if(!p)return;if(!o.value.lazyLoad){p.leaf=!0;return}if(c.value.isLeaf(p,m.value)||c.value.hasChildren(p,m.value))return;p.loading=!0;const N=p.root?null:p;let w=h.get(p);w||(w=new Promise(S=>{o.value.lazyLoad?.(p,S)}),h.set(p,w));const C=await w;Array.isArray(C)&&C.length>0?c.value.updateChildren(C,N):p.leaf=!0,p.loading=!1,h.delete(p)},f=p=>{const N=p.map(w=>w.value);i.value=N,n("change",N,p),n("pathChange",p),n("update:modelValue",N)},v={async handleNode(p,N){const{disabled:w,loading:C}=p;if(!(!N&&w||!d.value[l.value])){if(c.value.isLeaf(p,m.value)){if(p.leaf=!0,d.value[l.value].selectedNode=p,d.value=d.value.slice(0,p.level+1),!N){const S=d.value.map(B=>B.selectedNode);f(S),n("pathChange",S)}return}if(c.value.hasChildren(p,m.value)){const S=p.level+1;if(d.value[l.value].selectedNode=p,d.value=d.value.slice(0,S),d.value.push({nodes:p.children||[],selectedNode:null}),l.value=S,!N){const B=d.value.map(A=>A.selectedNode);n("pathChange",B)}return}b=p,!C&&(await k(p),b===p&&(d.value[l.value].selectedNode=p,v.handleNode(p,N)))}},handleTabChange(p,N){b=null},formatTabTitle(p){return p.selectedNode?p.selectedNode.text:a("select")},isSelected(p,N){return p.selectedNode&&p.selectedNode.value===N.value}};return t.watch([o,()=>e.options],()=>{g()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,p=>{Ie(p,i.value)||(i.value=p,y(!m.value))}),t.watch(()=>e.visible,p=>{p&&Array.isArray(i.value)&&i.value.length>0&&y(),p&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:s,tabsCursor:l,tabsContainerRef:r,...v}}}),Ad={class:"fox-cascader"},Vd={role:"menu",class:"fox-cascader__pane"},Td=["aria-checked","aria-disabled","onClick"],$d={class:"fox-cascader__item__title"};function Ed(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Ad,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(m,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(d,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,b=>(t.openBlock(),t.createElementBlock("view",{key:b.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,b),disabled:b.disabled}]),"aria-checked":e.isSelected(u,b),"aria-disabled":b.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(b,!1)},[t.createElementVNode("view",$d,t.toDisplayString(b.text),1),b.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Td))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1}))]),_:1},8,["modelValue"])])}const xd=oe(Bd,[["render",Ed]]),{create:Dd}=Z("cascader"),Id=Dd({components:{CascaderPane:xd,Wrapper:Gu},props:{...Fe,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}}}),qd=["innerHTML"];function Md(e,n,a,o,l,r){const s=t.resolveComponent("CascaderPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,{poppable:e.poppable,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(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,qd)):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"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}const lo=oe(Id,[["render",Md]]);function wt(e,n){const a=e.textKey??"text";return n[a]??""}function Nt(e,n){const a=e.valueKey??"value";return n[a]}function Rs(e,n){const a=e.childrenKey??"children";return n[a]}function an(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=wt(e,l),s=Nt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Fs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(wt(e,n[s])===r){const c=Nt(e,n[s])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const m=Rs(e,n[s]);Array.isArray(m)&&Fs(e,m,a,o+1,l);return}}function Ks(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Nt(e,n[s])===r){const c=wt(e,n[s])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const m=Rs(e,n[s]);Array.isArray(m)&&Ks(e,m,a,o+1,l);return}}function No(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=wt(e,n[o]),r=wt(e,a[o]);if(l!==r)return!1;const s=Nt(e,n[o]),i=Nt(e,a[o]);if(s!==i)return!1}return!0}let Pd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a,o);const r=ot(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(De(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function Ld(){const e=t.getCurrentInstance();return new Pd(e.proxy)}const Br={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},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function zd(e,n,a,o,l,r,s=!1){return{props:{...he,...ye,...Br},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),b=h(i,["placeholder"]),g=t.ref(!1),y=Ld(),k=t.ref([]),f=t.ref([]),v=t.computed(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const R=f.value.length-1;return f.value[R]}return f.value.join(i.separator)}else return f.value}),p=t.ref([]),N=t.ref([]);t.watch([()=>i.modelValue,()=>k.value],async([R,J])=>{if(u("setValue",R),i.lazy===!0){N.value.length==0&&(p.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let G=R;if(!No(i,G,N.value)){N.value=G;let te=an(i,G);f.value=te.texts,p.value=te.values}}else if(i.valueType==="text"){let G=R,te=[];if(Fs(i,J,G,0,te),!No(i,te,N.value)){N.value=te;let z=an(i,te);G.value=z.texts,p.value=z.values}}else{let G=[];if(Ks(i,J,R,0,G),!No(i,G,N.value)){N.value=G;let te=an(i,G);f.value=te.texts,p.value=te.values}}}),i.lazy===!0&&(p.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([R,J])=>{i.lazy||R&&(k.value=await y.load(R,J))},{immediate:!0});const w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":m.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const R={};return S.value&&(R["text-align"]=S.value),R}),A=t.ref(!1),T=()=>{d.value===!0||m.value===!0||(A.value=!0)},$=R=>{A.value=R},U=(R,J)=>{let G=J.map(z=>{if(z==null)return z;let Y={...z};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=z.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=z.value??"",Y});N.value=G;let te=an(i,G);f.value=te.texts,p.value=te.values,i.valueType==="text"?(u("change",f.value,G),u("update:modelValue",f.value)):i.valueType==="item"?(u("change",G,G),u("update:modelValue",G)):(u("change",p.value,G),u("update:modelValue",p.value)),u("update:pathNodes",G)},q=R=>{let J=R.map(G=>{if(G==null)return G;let te={...G};return Reflect.deleteProperty(te,"text"),te[i.textKey]=G.text??"",Reflect.deleteProperty(te,"value"),te[i.valueKey]=G.value??"",te});u("pathChange",J)},E=R=>{g.value=!0,u("focus",p.value,R)},V=R=>{setTimeout(()=>{g.value=!1},0),u("blur",p.value,R)},P=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),x=t.computed(()=>be(i.unit)>0),j=t.computed(()=>be(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!j.value})),L=R=>{N.value=[],f.value=[],p.value=[],u("update:modelValue",[]),u("change",[],R),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!d.value&&!m.value),ee=t.computed(()=>{let R=p.value&&p.value.length>0;return i.clearable&&R&&g.value}),K=R=>{ee.value?L(R):T()},W=t.computed(()=>ee.value&&_.value?o:l),M=t.computed(()=>({action:!0}));let Q=null;const O=()=>typeof Q=="function"?Q:typeof i.lazyLoad=="function"?i.lazyLoad:(Q=async(R,J)=>{const G=[],te=[];let z=0;if(!R.root){let I=R;for(;I;){const D=wt(i,I),F=Nt(i,I);te.splice(0,0,D),G.splice(0,0,F),I=I._parent}z=G.length}const Y=await y.load(i.source,{...R,level:z,pathLabels:te,pathValues:G},!0);J(Y)},Q);return()=>{const R={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:T,onFocus:E,onBlur:V};s&&(R.disabled=!0);const J=[],G=t.h("input",R);J.push(G);const te=[],z={class:["action-icon"]},Y=t.h(W.value,z),I={class:M.value,onClick:K},D=t.h("view",I,{default:()=>[Y]});if(te.push(D),x.value){const Ue=t.h("view",{class:H.value},[i.unit]);te.push(Ue)}const F={class:P.value},X=t.h("view",F,{default:()=>te});J.push(X);const ne={default:()=>J};ne.label=c.slots.default,ne.prepend=c.slots.prepend,ne.append=c.slots.append,ne.fixedPreTip=c.slots.fixedPreTip,ne.fixedTip=c.slots.fixedTip;const ae={};ae.visible=A.value,ae["onUpdate:visible"]=$,ae.modelValue=p.value,ae.onChange=U,ae.onPathChange=q,ae.title=i.title,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig,i.lazy?(ae.lazy=!0,ae.lazyLoad=O()):ae.options=k.value;const se={};se.header=c.slots.header;const fe=t.h(r,ae,se);ne.hide=()=>[fe];const Xe={...tt(i,Br)};return i.prop&&(Xe.prop=`${i.prop}_item`),t.h(a,Xe,ne)}}}}const{componentName:Od,create:Rd,scope:Fd}=Z("cascader-item"),Sl=Rd(zd(Od,Fd,Ne,le.CircleClose,le.ArrowRight,lo,!1));function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cn={exports:{}},Kd=cn.exports,Ar;function Ud(){return Ar||(Ar=1,function(e,n){(function(a,o){e.exports=o()})(Kd,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",u="month",h="quarter",b="year",g="date",y="Invalid Date",k=/^(\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,v={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("_")},p=function(q,E,V){var P=String(q);return!P||P.length>=E?q:""+Array(E+1-P.length).join(V)+q},N={s:p,z:function(q){var E=-q.utcOffset(),V=Math.abs(E),P=Math.floor(V/60),x=V%60;return(E<=0?"+":"-")+p(P,2,"0")+":"+p(x,2,"0")},m:function q(E,V){if(E.date()<V.date())return-q(V,E);var P=12*(V.year()-E.year())+(V.month()-E.month()),x=E.clone().add(P,u),j=V-x<0,H=E.clone().add(P+(j?-1:1),u);return+(-(P+(V-x)/(j?x-H:H-x))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:u,y:b,w:m,d,D:g,h:c,m:i,s,ms:r,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},w="en",C={};C[w]=v;var S=function(q){return q instanceof $},B=function q(E,V,P){var x;if(!E)return w;if(typeof E=="string"){var j=E.toLowerCase();C[j]&&(x=j),V&&(C[j]=V,x=j);var H=E.split("-");if(!x&&H.length>1)return q(H[0])}else{var L=E.name;C[L]=E,x=L}return!P&&x&&(w=x),x||!P&&w},A=function(q,E){if(S(q))return q.clone();var V=typeof E=="object"?E:{};return V.date=q,V.args=arguments,new $(V)},T=N;T.l=B,T.i=S,T.w=function(q,E){return A(q,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var $=function(){function q(V){this.$L=B(V.locale,null,!0),this.parse(V)}var E=q.prototype;return E.parse=function(V){this.$d=function(P){var x=P.date,j=P.utc;if(x===null)return new Date(NaN);if(T.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var H=x.match(k);if(H){var L=H[2]-1||0,_=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],L,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],L,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(x)}(V),this.$x=V.x||{},this.init()},E.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},E.$utils=function(){return T},E.isValid=function(){return this.$d.toString()!==y},E.isSame=function(V,P){var x=A(V);return this.startOf(P)<=x&&x<=this.endOf(P)},E.isAfter=function(V,P){return A(V)<this.startOf(P)},E.isBefore=function(V,P){return this.endOf(P)<A(V)},E.$g=function(V,P,x){return T.u(V)?this[P]:this.set(x,V)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(V,P){var x=this,j=!!T.u(P)||P,H=T.p(V),L=function(R,J){var G=T.w(x.$u?Date.UTC(x.$y,J,R):new Date(x.$y,J,R),x);return j?G:G.endOf(d)},_=function(R,J){return T.w(x.toDate()[R].apply(x.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(J)),x)},ee=this.$W,K=this.$M,W=this.$D,M="set"+(this.$u?"UTC":"");switch(H){case b:return j?L(1,0):L(31,11);case u:return j?L(1,K):L(0,K+1);case m:var Q=this.$locale().weekStart||0,O=(ee<Q?ee+7:ee)-Q;return L(j?W-O:W+(6-O),K);case d:case g:return _(M+"Hours",0);case c:return _(M+"Minutes",1);case i:return _(M+"Seconds",2);case s:return _(M+"Milliseconds",3);default:return this.clone()}},E.endOf=function(V){return this.startOf(V,!1)},E.$set=function(V,P){var x,j=T.p(V),H="set"+(this.$u?"UTC":""),L=(x={},x[d]=H+"Date",x[g]=H+"Date",x[u]=H+"Month",x[b]=H+"FullYear",x[c]=H+"Hours",x[i]=H+"Minutes",x[s]=H+"Seconds",x[r]=H+"Milliseconds",x)[j],_=j===d?this.$D+(P-this.$W):P;if(j===u||j===b){var ee=this.clone().set(g,1);ee.$d[L](_),ee.init(),this.$d=ee.set(g,Math.min(this.$D,ee.daysInMonth())).$d}else L&&this.$d[L](_);return this.init(),this},E.set=function(V,P){return this.clone().$set(V,P)},E.get=function(V){return this[T.p(V)]()},E.add=function(V,P){var x,j=this;V=Number(V);var H=T.p(P),L=function(K){var W=A(j);return T.w(W.date(W.date()+Math.round(K*V)),j)};if(H===u)return this.set(u,this.$M+V);if(H===b)return this.set(b,this.$y+V);if(H===d)return L(1);if(H===m)return L(7);var _=(x={},x[i]=o,x[c]=l,x[s]=a,x)[H]||1,ee=this.$d.getTime()+V*_;return T.w(ee,this)},E.subtract=function(V,P){return this.add(-1*V,P)},E.format=function(V){var P=this,x=this.$locale();if(!this.isValid())return x.invalidDate||y;var j=V||"YYYY-MM-DDTHH:mm:ssZ",H=T.z(this),L=this.$H,_=this.$m,ee=this.$M,K=x.weekdays,W=x.months,M=function(J,G,te,z){return J&&(J[G]||J(P,j))||te[G].slice(0,z)},Q=function(J){return T.s(L%12||12,J,"0")},O=x.meridiem||function(J,G,te){var z=J<12?"AM":"PM";return te?z.toLowerCase():z},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:ee+1,MM:T.s(ee+1,2,"0"),MMM:M(x.monthsShort,ee,W,3),MMMM:M(W,ee),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:M(x.weekdaysMin,this.$W,K,2),ddd:M(x.weekdaysShort,this.$W,K,3),dddd:K[this.$W],H:String(L),HH:T.s(L,2,"0"),h:Q(1),hh:Q(2),a:O(L,_,!0),A:O(L,_,!1),m:String(_),mm:T.s(_,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:H};return j.replace(f,function(J,G){return G||R[J]||H.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(V,P,x){var j,H=T.p(P),L=A(V),_=(L.utcOffset()-this.utcOffset())*o,ee=this-L,K=T.m(this,L);return K=(j={},j[b]=K/12,j[u]=K,j[h]=K/3,j[m]=(ee-_)/6048e5,j[d]=(ee-_)/864e5,j[c]=ee/l,j[i]=ee/o,j[s]=ee/a,j)[H]||ee,x?K:T.a(K)},E.daysInMonth=function(){return this.endOf(u).$D},E.$locale=function(){return C[this.$L]},E.locale=function(V,P){if(!V)return this.$L;var x=this.clone(),j=B(V,P,!0);return j&&(x.$L=j),x},E.clone=function(){return T.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},q}(),U=$.prototype;return A.prototype=U,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",u],["$y",b],["$D",g]].forEach(function(q){U[q[1]]=function(E){return this.$g(E,q[0],q[1])}}),A.extend=function(q,E){return q.$i||(q(E,$,A),q.$i=!0),A},A.locale=B,A.isDayjs=S,A.unix=function(q){return A(1e3*q)},A.en=C[w],A.Ls=C,A.p={},A})}(cn)),cn.exports}var Hd=Ud();const Ke=Ye(Hd);var un={exports:{}},jd=un.exports,Vr;function Wd(){return Vr||(Vr=1,function(e,n){(function(a,o){e.exports=o()})(jd,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(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(k){this[y]=+k}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var f=k.match(/([+-]|\d\d)/g),v=60*f[1]+(+f[2]||0);return v===0?0:f[0]==="+"?-v:v}(y)}],u=function(y){var k=i[y];return k&&(k.indexOf?k:k.s.concat(k.f))},h=function(y,k){var f,v=i.meridiem;if(v){for(var p=1;p<=24;p+=1)if(y.indexOf(v(p,0,k))>-1){f=p>12;break}}else f=y===(k?"pm":"PM");return f},b={A:[s,function(y){this.afternoon=h(y,!1)}],a:[s,function(y){this.afternoon=h(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(y){var k=i.ordinal,f=y.match(/\d+/);if(this.day=f[0],k)for(var v=1;v<=31;v+=1)k(v).replace(/\[|\]/g,"")===y&&(this.day=v)}],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(y){var k=u("months"),f=(u("monthsShort")||k.map(function(v){return v.slice(0,3)})).indexOf(y)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[s,function(y){var k=u("months").indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function g(y){var k,f;k=y,f=i&&i.formats;for(var v=(y=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,T,$){var U=$&&$.toUpperCase();return T||f[$]||a[$]||f[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,E,V){return E||V.slice(1)})})).match(o),p=v.length,N=0;N<p;N+=1){var w=v[N],C=b[w],S=C&&C[0],B=C&&C[1];v[N]=B?{regex:S,parser:B}:w.replace(/^\[|\]$/g,"")}return function(A){for(var T={},$=0,U=0;$<p;$+=1){var q=v[$];if(typeof q=="string")U+=q.length;else{var E=q.regex,V=q.parser,P=A.slice(U),x=E.exec(P)[0];V.call(T,x),A=A.replace(x,"")}}return function(j){var H=j.afternoon;if(H!==void 0){var L=j.hours;H?L<12&&(j.hours+=12):L===12&&(j.hours=0),delete j.afternoon}}(T),T}}return function(y,k,f){f.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var v=k.prototype,p=v.parse;v.parse=function(N){var w=N.date,C=N.utc,S=N.args;this.$u=C;var B=S[1];if(typeof B=="string"){var A=S[2]===!0,T=S[3]===!0,$=A||T,U=S[2];T&&(U=S[2]),i=this.$locale(),!A&&U&&(i=f.Ls[U]),this.$d=function(P,x,j){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*P);var H=g(x)(P),L=H.year,_=H.month,ee=H.day,K=H.hours,W=H.minutes,M=H.seconds,Q=H.milliseconds,O=H.zone,R=new Date,J=ee||(L||_?1:R.getDate()),G=L||R.getFullYear(),te=0;L&&!_||(te=_>0?_-1:R.getMonth());var z=K||0,Y=W||0,I=M||0,D=Q||0;return O?new Date(Date.UTC(G,te,J,z,Y,I,D+60*O.offset*1e3)):j?new Date(Date.UTC(G,te,J,z,Y,I,D)):new Date(G,te,J,z,Y,I,D)}catch{return new Date("")}}(w,B,C),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),$&&w!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var q=B.length,E=1;E<=q;E+=1){S[1]=B[E-1];var V=f.apply(this,S);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}E===q&&(this.$d=new Date(""))}else p.call(this,N)}}})}(un)),un.exports}var Yd=Wd();const Xd=Ye(Yd);var dn={exports:{}},Qd=dn.exports,Tr;function Gd(){return Tr||(Tr=1,function(e,n){(function(a,o){e.exports=o()})(Qd,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(u)}}})}(dn)),dn.exports}var Zd=Gd();const Jd=Ye(Zd);var fn={exports:{}},_d=fn.exports,$r;function ef(){return $r||($r=1,function(e,n){(function(a,o){e.exports=o()})(_d,function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,b,g,y){var k=u.name?u:u.$locale(),f=s(k[h]),v=s(k[b]),p=f||v.map(function(w){return w.slice(0,g)});if(!y)return p;var N=k.weekStart;return p.map(function(w,C){return p[(C+(N||0))%7]})},c=function(){return l.Ls[l.locale()]},d=function(u,h){return u.formats[h]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,k){return y||k.slice(1)})}(u.formats[h.toUpperCase()])},m=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return d(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}})}(fn)),fn.exports}var tf=ef();const nf=Ye(tf);var mn={exports:{}},of=mn.exports,Er;function lf(){return Er||(Er=1,function(e,n){(function(a,o){e.exports=o()})(of,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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(o).add(1,o).date(d),u=s(this).endOf(a);if(m.isBefore(u))return 1}var h=s(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),b=this.diff(h,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(mn)),mn.exports}var af=lf();const rf=Ye(af);var pn={exports:{}},sf=pn.exports,xr;function cf(){return xr||(xr=1,function(e,n){(function(a,o){e.exports=o()})(sf,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}}})}(pn)),pn.exports}var uf=cf();const df=Ye(uf);var hn={exports:{}},ff=hn.exports,Dr;function mf(){return Dr||(Dr=1,function(e,n){(function(a,o){e.exports=o()})(ff,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")}}})}(hn)),hn.exports}var pf=mf();const hf=Ye(pf);var gn={exports:{}},gf=gn.exports,Ir;function yf(){return Ir||(Ir=1,function(e,n){(function(a,o){e.exports=o()})(gf,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})}(gn)),gn.exports}var vf=yf();const bf=Ye(vf);var yn={exports:{}},kf=yn.exports,qr;function Sf(){return qr||(qr=1,function(e,n){(function(a,o){e.exports=o()})(kf,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})}(yn)),yn.exports}var Cf=Sf();const wf=Ye(Cf);Ke.extend(nf);Ke.extend(Jd);Ke.extend(Xd);Ke.extend(rf);Ke.extend(df);Ke.extend(hf);Ke.extend(bf);Ke.extend(wf);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(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,a){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),a=a??"YYYY-MM-DD",this.format(o,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,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.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}},Mr=new Date().getFullYear(),Cl={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"},Dn=(e,n,a)=>{let o;if(We(n)?o=n:typeof n=="string"&&be(n)>0?o=re.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)=>{We(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),a)},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(Mr-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(Mr+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Nf,scope:Bf}=Z("date-picker"),Af=Nf({components:{Picker:tn},props:{...Xo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Bf),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},l=t.ref(!1);t.watch(()=>e.visible,p=>{l.value=p});function r(p,N){return new Date(p,N,0).getDate()}const s=(p,N)=>{const w=e[`${p}Date`],C=w.getFullYear();let S=1,B=1,A=0,T=0;p==="max"&&(S=12,B=r(N.getFullYear(),N.getMonth()+1),A=23,T=59);const $=T;return N.getFullYear()===C&&(S=w.getMonth()+1,N.getMonth()+1===S&&(B=w.getDate(),N.getDate()===B&&(A=w.getHours(),N.getHours()===A&&(T=w.getMinutes())))),{[`${p}Year`]:C,[`${p}Month`]:S,[`${p}Date`]:B,[`${p}Hour`]:A,[`${p}Minute`]:T,[`${p}Seconds`]:$}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:p,maxDate:N,maxMonth:w,maxHour:C,maxMinute:S,maxSeconds:B}=s("max",h.value),{minYear:A,minDate:T,minMonth:$,minHour:U,minMinute:q,minSeconds:E}=s("min",h.value);let V=[{type:"year",range:[A,p]},{type:"month",range:[$,w]},{type:"day",range:[T,N]},{type:"hour",range:[U,C]},{type:"minute",range:[q,S]},{type:"seconds",range:[E,B]}];switch(e.type){case"date":V=V.slice(0,3);break;case"datetime":V=V.slice(0,5);break;case"time":V=V.slice(3,6);break;case"year-month":V=V.slice(0,2);break;case"month-day":V=V.slice(1,3);break;case"datehour":V=V.slice(0,4);break;case"hour-minute":V=V.slice(3,5);break}return V}),c=(p,N,w,C,S)=>{const B=[];for(;p<=N;){let A=!0;if(typeof e.itemFilter=="function"){const T={text:`${p}`,value:p,type:w,currentYearMonth:C};A=e.itemFilter(T)}if(A)if(typeof e.itemFormatter=="function"){const T={text:`${p}`,value:p,type:w,currentYearMonth:C};e.itemFormatter(T),B.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${p}${o[w]}`;if(w==="day"){if(C[0]===S[0]&&C[1]===S[1]&&p===S[2])T=o.today;else{const U=new Date(C[0],C[1],p).getDay();T=`${T} ${o.fullWeekdays[U]}`}B.push({text:T,value:p})}else B.push({text:p+o[w],value:p})}else B.push({text:`${p}`,value:p});w==="minute"?p+=e.minuteStep:p++}return B},d=t.computed(()=>{const p=new Date,N=[p.getFullYear(),p.getMonth(),p.getDate()],w=[];h.value&&(w[0]=h.value.getFullYear(),w[1]=h.value.getMonth());let C=[];return i.value.forEach(S=>{let B=c(S.range[0],S.range[1],S.type,w,N);B&&C.push(B)}),C}),m=(p,N)=>p==="year"?N.getFullYear():p==="month"?N.getMonth()+1:p==="day"?N.getDate():p==="hour"?N.getHours():p==="minute"?N.getMinutes():p==="seconds"?N.getSeconds():0,u=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,p=>{let N;if(typeof p=="string"?p.length==0||p==="Invalid Date"?N=new Date:e.valueFormat?N=Dn(e,e.modelValue,e.valueFormat):N=Dn(e,p,Cl[e.type]):We(p)?N=p:N=new Date,!!N&&(!h.value||N.getTime()!==h.value.getTime())){h.value=N;let w=[];i.value.forEach(C=>{let S=m(C.type,N);w.push(S)}),u.value=w}},{immediate:!0});const b=p=>{if(!p||p.length===0){h.value=new Date;let N=[];i.value.forEach(w=>{let C=m(w.type,h.value);N.push(C)}),u.value=N;return}if(e.type==="date"){const N=p[0],w=p[1]-1,C=Math.min(p[2],r(N,w+1));C!==p[2]&&(p[2]=C),h.value=new Date(N,w,C)}else if(e.type==="datetime"){const N=p[0],w=p[1]-1,C=Math.min(p[2],r(N,w+1)),S=p[3],B=p[4];C!==p[2]&&(p[2]=C),h.value=new Date(N,w,C,S,B)}else if(e.type==="time"){const N=p[0],w=p[1],C=p[2],S=h.value??new Date,B=new Date(S.getFullYear(),S.getMonth(),S.getDate(),N,w,C);h.value=B}else if(e.type==="year-month"){const N=p[0],w=p[1]-1;h.value=new Date(N,w)}else if(e.type==="month-day"){const w=(h.value??new Date).getFullYear(),C=p[0]-1,S=Math.min(p[1],r(w,C+1));S!==p[1]&&(p[1]=S);const B=new Date(w,C,S);h.value=B}else if(e.type==="datehour"){const N=p[0],w=p[1]-1,C=Math.min(p[2],r(N,w+1)),S=p[3];C!==p[2]&&(p[2]=C),h.value=new Date(N,w,C,S)}else if(e.type==="hour-minute"){const N=p[0],w=p[1],C=h.value??new Date,S=new Date(C.getFullYear(),C.getMonth(),C.getDate(),N,w);h.value=S}u.value=p};return{columns:d,dateIndexs:u,show:l,onChange:p=>{b(p)},onClose:()=>{n("update:close",!1)},onConfirm:p=>{b(p);const N=h.value??new Date;if(e.valueFormat){let w=Yo(e,N,e.valueFormat);n("update:modelValue",w)}else n("update:modelValue",N);n("confirm",p)},onClear:()=>{n("clear")},onUpdateVisible:p=>{l.value=p,n("update:visible",p)}}}});function Vf(e,n,a,o,l,r){const s=t.resolveComponent("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,"onUpdate:visible":e.onUpdateVisible,"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","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const ao=oe(Af,[["render",Vf]]),Tf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function $f(e){let n=e.format;if(!n){let a=e.type??"date";n=Cl[a]}return n}function Ef(e,n,a,o,l,r,s=!1){return{props:{...he,...ye,...Xo,...Tf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),b=h(i,["placeholder"]),g=t.ref(!1),k=Pe(i,"modelValue",K=>K==null?null:typeof K=="string"?K.length==0?null:i.valueFormat?Dn(i,K,i.valueFormat)??K:Dn(i,K,Cl[i.type])??K:We(K)?K:null,u),f=t.computed(()=>{if(!k.value)return"";const K=$f(i);return Yo(i,k.value,K)}),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),N=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const K={};return N.value&&(K["text-align"]=N.value),K}),C=t.ref(!1),S=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:S,hidePicker:B});const A=K=>{C.value=K},T=K=>{if(k.value=K,i.valueFormat){let W=Yo(i,K,i.valueFormat);u("update:modelValue",W,{}),u("change",W,{})}else u("update:modelValue",K,{}),u("change",K,{})},$=K=>{let M=K.target.value;g.value=!0,u("focus",M,K)},U=K=>{setTimeout(()=>{g.value=!1},0);let M=K.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),u("blur",M,K)},q=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),E=t.computed(()=>be(i.unit)>0),V=t.computed(()=>be(i.unit)>0&&!g.value),P=t.computed(()=>({hidden:!V.value})),x=K=>{k.value="",u("update:modelValue","",K),u("change","",K),u("clear",""),B()},j=t.computed(()=>i.clearable&&!d.value&&!m.value),H=t.computed(()=>{let K=be(k.value)>0;return i.clearable&&K&&g.value}),L=K=>{H.value?x(K):S()},_=t.computed(()=>H.value&&j.value?o:l),ee=t.computed(()=>({action:!0}));return()=>{const K={class:p.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:S,onFocus:$,onBlur:U};s&&(K.disabled=!0);const W=[],M=t.h("input",K);W.push(M);const Q=[],O={class:["action-icon"]},R=t.h(_.value,O),J={class:ee.value,onClick:L},G=t.h("view",J,{default:()=>[R]});if(Q.push(G),E.value){const se=t.h("view",{class:P.value},[i.unit]);Q.push(se)}const te={class:q.value},z=t.h("view",te,{default:()=>Q});W.push(z);const Y={default:()=>W};Y.label=c.slots.default,Y.prepend=c.slots.prepend,Y.append=c.slots.append,Y.fixedPreTip=c.slots.fixedPreTip,Y.fixedTip=c.slots.fixedTip;const I=ke(i,Xo);I.valueFormat=null,I.disabled=!1,I.readonly=d.value||m.value,I.visible=C.value,I["onUpdate:visible"]=A,I.modelValue=k.value,I["onUpdate:modelValue"]=T,I.onClear=x;const D={};if(c.slots.top){const se=c.slots.top();D.top=()=>se}if(c.slots.bottom){const se=c.slots.bottom();D.default=()=>se}const F=t.h(r,I,D);Y.hide=()=>[F];const ne={...ke(i,ye,he)};return i.prop&&(ne.prop=`${i.prop}_item`),t.h(a,ne,Y)}}}}const{create:xf,componentName:Df,scope:If}=Z("date-item"),wl=xf(Ef(Df,If,Ne,le.CircleClose,le.Date,ao,!1)),qf=39,Mf=64,{create:Pf,scope:Lf}=Z("calendar-pane"),zf=Pf({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:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(Lf),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),d=t.ref(null),m=t.ref(null),u=t.ref(null),h=t.ref(0),b=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),g=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),k=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}),v=O=>O.split("-"),p=O=>re.isEqual(f.currDate[0],O),N=O=>re.isEqual(f.currDate[1],O),w=O=>f.currDate?.length>0?f.currDate?.some(R=>re.isEqual(R,O)):!1,C=(O,R)=>R.curData[0]+"-"+R.curData[1]+"-"+re.getNumTwoBit(+O.day),S=(O,R)=>{const J=C(O,R),{type:G}=e;return O.type=="curr"?re.isEqual(f.currDate,J)||(G=="range"||G=="week")&&(p(J)||N(J))||G=="multiple"&&w(J)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(J,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,J)?`${f.dayPrefix}--disabled`:(G=="range"||G=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],J)&&re.compareDate(J,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},B=()=>{const{type:O}=e;if(O=="range"&&f.chooseData.length==2||O!="range"){let R=f.chooseData.slice(0);O=="week"&&(R={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},A=(O,R,J=!1)=>{if(S(O,R)!=`${f.dayPrefix}--disabled`){const{type:G}=e;let[te,z]=R.curData,Y=[...R.curData];if(Y[2]=re.getNumTwoBit(Number(O.day)),Y[3]=`${Y[0]}-${Y[1]}-${Y[2]}`,Y[4]=re.getWhatDay(+Y[0],+Y[1],+Y[2]),G=="multiple")if(f.currDate?.length>0){let I;f.currDate?.forEach((D,F)=>{D==Y[3]&&(I=F)}),J?f.chooseData.push([...Y]):I!==void 0?(f.currDate.splice(I,1),f.chooseData.splice(I,1)):(f.currDate.push(Y[3]),f.chooseData.push([...Y]))}else f.currDate=[Y[3]],f.chooseData=[[...Y]];else if(G=="range"){let I=Object.values(f.currDate).length;I==2||I==0?f.currDate=[Y[3]]:re.compareDate(f.currDate[0],Y[3])?Array.isArray(f.currDate)&&f.currDate.push(Y[3]):Array.isArray(f.currDate)&&f.currDate.unshift(Y[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...Y]]:re.compareDate(f.chooseData[0][3],Y[3])?f.chooseData=[...f.chooseData,[...Y]]:f.chooseData=[[...Y],...f.chooseData]}else if(G=="week"){let I=re.getWeekDate(te,z,O.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(I[0],f.propStartDate)&&I.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,I[1])&&I.splice(1,1,f.propEndDate),f.currDate=I,f.chooseData=[re.formatResultDate(I[0]),re.formatResultDate(I[1])]}else f.currDate=Y[3],f.chooseData=[...Y];if(!J){let I=f.chooseData;G=="week"&&(I={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",I),(e.isAutoBackFill||!e.poppable)&&B()}}},T=O=>{let[R,J,G]=O;return{date:O,monthWeekNum:re.getMonthWeek(R,J,G,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(R,J,G,e.firstDayOfWeek)}},$=O=>{const R=f.monthsData[f.monthsData.length-1];let J=parseInt(R.curData[0]),G=parseInt(R.curData[1].toString().replace(/^0/,""));switch(O){case"prev":G==1&&(J-=1),G=G==1?12:--G;break;case"next":G==12&&(J+=1),G=G==12?1:++G;break}return[J+"",re.getNumTwoBit(G),re.getMonthDays(String(J),String(G))+""]},U=(O,R,J)=>{let{year:G,month:te}=J;return Array.from(Array(O),(z,Y)=>({day:String(Y+1),type:R,year:G,month:te}))},q=(O,R,J,G)=>{O=O-e.firstDayOfWeek;let{year:te,month:z}=J;return O>=7&&(O-=7),Array.from(Array(G),(I,D)=>({day:String(D+1),type:R,year:te,month:z})).slice(G-O)},E=(O,R)=>{const J=re.getMonthPreDay(+O[0],+O[1]);let G=Number(O[1])-1,te=Number(O[0]);G<=0&&(G=12,te+=1);const z=re.getMonthDays(String(O[0]),String(O[1])),Y=re.getMonthDays(te+"",G+""),I={year:O[0],month:O[1]},D={curData:O,title:l("monthTitle",{year:I.year,month:I.month}),monthData:[...q(J,"prev",{month:String(G),year:String(te)},Y),...U(z,"curr",I)],cssHeight:0,cssScrollHeight:0},F=D.monthData.length>35?6:5;D.cssHeight=qf+Mf*F;let X=0;f.monthsData.length>0&&(X=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),D.cssScrollHeight=X,(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${O[0]}-${O[1]}-${O[2]}`))&&f.monthsData.push(D)},V=()=>{let O=e.startDate?e.startDate:re.getDay(0),R=e.endDate?e.endDate:re.getDay(365);f.propStartDate=O,f.propEndDate=R,f.startData=v(O),f.endData=v(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const J={year:Number(f.startData[0]),month:Number(f.startData[1])},G={year:Number(f.endData[0]),month:Number(f.endData[1])};let te=G.month-J.month;G.year-J.year>0&&(te=te+12*(G.year-J.year)),te<=0&&(te=1),E(f.startData);let z=1;do E($("next"));while(z++<te);if(f.monthsNum=te,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(O&&re.compareDate(f.currDate[0],O)&&f.currDate.splice(0,1,O),R&&re.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let Y=[],I={};f.currDate.forEach(D=>{O&&!re.compareDate(D,O)&&R&&!re.compareDate(R,D)&&(Object.hasOwnProperty.call(I,D)||(Y.push(D),I[D]=D))}),f.currDate=[...Y],f.defaultData=[...v(Y[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[Y,I,D]=v(f.currDate[0]),F=re.getWeekDate(Y,I,D,e.firstDayOfWeek);f.currDate=F,O&&re.compareDate(f.currDate[0],O)&&f.currDate.splice(0,1,O),R&&re.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]}}else f.currDate&&(O&&re.compareDate(f.currDate,O)?f.currDate=O:R&&!re.compareDate(f.currDate,R)&&(f.currDate=R),f.defaultData=[...v(f.currDate)])};Ee({scrollToDate:O=>{re.compareDate(O,f.propStartDate)?O=f.propStartDate:re.compareDate(O,f.propEndDate)||(O=f.propEndDate);let R=v(O);f.monthsData.forEach((J,G)=>{if(J.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let te=f.monthsData[G].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let z=0,Y=setInterval(()=>{if(z++,c.value){let I=te/10;c.value.scrollTop=c.value.scrollTop+I}z>=10&&(clearInterval(Y),c.value&&(c.value.scrollTop=f.monthsData[G].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[G].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let O=0,R=0;f.defaultData.length>0&&f.monthsData.forEach((te,z)=>{te.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(O=z),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(R=z)}),H(f.monthsNum,O),f.currentIndex=O,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),A({day:f.defaultData[5],type:"curr"},f.monthsData[R],!0)):e.type=="week"?A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(te=>{let z=v(te),Y=f.currentIndex;f.monthsData.forEach((I,D)=>{I.title==l("monthTitle",{year:z[0],month:z[1]})&&(Y=D)}),A({day:z[2],type:"curr"},f.monthsData[Y],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let J=f.monthsData[f.monthsData.length-1],G=J.cssHeight+J.cssScrollHeight;Ge(()=>{c?.value&&d?.value&&u?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${G}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(G/(f.monthsNum+1))}});const H=(O,R)=>{O>=3?R>0&&R<O?f.defaultRange=[R-1,R+3]:R==0?f.defaultRange=[R,R+4]:R==O&&(f.defaultRange=[R-2,R+2]):f.defaultRange=[0,O+2];let J=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=J},L=(O,R)=>(e.type=="range"||e.type=="week")&&O.type=="curr"&&S(O,R)=="fox-calendar__day--active",_=(O,R)=>L(O,R)&&p(C(O,R)),ee=(O,R)=>f.currDate.length>=2&&N(C(O,R))?L(O,R):!1,K=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},W=O=>{const R=`${O.year}-${O.month}-${Number(O.day)<10?"0"+O.day:O.day}`;return re.isEqual(R,re.date2Str(new Date))},M=O=>{if(f.monthsData.length<=1)return;const R=O.target.scrollTop;let J=Math.floor(R/f.avgHeight);if(J==0)R>=f.monthsData[J+1].cssScrollHeight&&(J+=1);else if(J>0&&J<f.monthsNum-1)R>=f.monthsData[J+1].cssScrollHeight&&(J+=1),R<f.monthsData[J].cssScrollHeight&&(J-=1);else{const G=Math.round(R+h.value);G<f.monthsData[J].cssScrollHeight+f.monthsData[J].cssHeight&&R>f.monthsData[J-1].cssScrollHeight&&(J-=1),J+1<=f.monthsNum&&G>=f.monthsData[J+1].cssScrollHeight+f.monthsData[J+1].cssHeight&&(J+=1),J>=1&&R<f.monthsData[J-1].cssScrollHeight&&(J-=1)}f.currentIndex!==J&&(f.currentIndex=J,H(f.monthsNum,J)),f.yearMonthTitle=f.monthsData[J].title},Q=()=>{f.chooseData.splice(0),f.monthsData.splice(0),V()};return V(),t.watch(()=>e.defaultValue,O=>{O&&e.poppable&&Q()}),{weeks:i,compConthsData:b,showTopBtn:g,topInfo:y,bottomInfo:k,rangeTip:K,mothsViewScroll:M,getClass:S,isStartTip:_,isEndTip:ee,chooseDay:A,isCurrDay:W,confirm:B,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:u}}}),Of={class:"fox-calendar__header"},Rf={key:0,class:"fox-calendar__header-title"},Ff={key:1,class:"fox-calendar__header-slot"},Kf={key:2,class:"fox-calendar__header-subtitle"},Uf={class:"fox-calendar__weekdays",ref:"weeksPanel"},Hf={class:"fox-calendar__panel",ref:"monthsPanel"},jf={class:"fox-calendar__month-title"},Wf={class:"fox-calendar__days"},Yf=["onClick"],Xf={class:"fox-calendar__day-value"},Qf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Gf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Zf={key:2,class:"fox-calendar__day-tips--curr"},Jf={key:4,class:"fox-calendar__day-tip"},_f={key:0,class:"fox-calendar__footer"};function em(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",Of,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Rf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ff,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Kf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Uf,[(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",Hf,[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",jf,t.toDisplayString(s.title),1),t.createElementVNode("view",Wf,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Xf,[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",Qf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Gf,[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",Zf,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",Jf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Yf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",_f,[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 tm=oe(zf,[["render",em]]),nm=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=tt({...e},{poppable:!1});return t.h(me,a,n)}else return n?.default?.()??null}}}),om=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),vn={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:lm}=Z("calendar"),am=lm({components:{Wrapper:nm,CalendarPane:tm},props:{...vn},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=y=>{i.value?.scrollToDate(y)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:d});const m=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:m,close:u,select:y=>{n("select",y)},choose:y=>{u(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function rm(e,n,a,o,l,r){const s=t.resolveComponent("CalendarPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,t.mergeProps({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{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","poppable"])}const ro=oe(am,[["render",rm]]),Pr={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}},Bo=(e,n)=>{let a;return We(e)?a=e:typeof e=="string"&&be(e)>0?a=re.parser(e,n):a=new Date,a},pt=(e,n,a)=>(We(n)||(n=new Date),re.format(n,a)),ht=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function sm(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...he,...ye,...vn,...Pr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),b=h(i,["placeholder"]),g=t.ref(!1),y=t.computed(()=>i.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},v=(M,Q="one",O="YYYY-MM-DD")=>{if(om(M)){f();return}if(y.value&&Array.isArray(M)&&M.length==2){let R,J;typeof M[0]=="string"?(R=Bo(M[0],O),J=Bo(M[1],O)):(R=M[0],J=M[1]);let G=ht(R),te=ht(J);(k.startDate===null||k.startDate.getTime()!==R.getTime()||k.endDate?.getTime()!==J.getTime())&&(k.startDate=R,k.startArray=G,k.endDate=J,k.endArray=te)}else{let R;typeof M=="string"?R=Bo(M,O):R=M;let J=ht(R);(k.startDate===null||k.startDate.getTime()!==R.getTime())&&(k.startDate=R,k.startArray=J)}};v(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,M=>{v(M,i.type,i.valueFormat),u("setValue",M)});const p=t.computed(()=>{if(k.startDate===null)return"";if(y.value){let M=pt(i,k.startDate,i.format),Q=pt(i,k.endDate,i.format);return`${M} ${i.rangeSeparator} ${Q}`}else{let M=pt(i,k.startDate,i.format);return i.showWeek&&(M=`${M} ${k.startArray[4]}`),M}}),N=t.computed(()=>{if(k.startDate===null)return null;if(y.value){let M=re.date2Str(k.startDate),Q=re.date2Str(k.endDate??new Date);return[M,Q]}else return re.date2Str(k.startDate)}),w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":m.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),A=t.ref(!1),T=()=>{m.value||d.value||(A.value=!0)},$=M=>{A.value=M},U=M=>{if(M){if(y.value&&Array.isArray(M)){let Q=M[0],O=pe(Q[0]),R=pe(Q[1]),J=pe(Q[2]),G=new Date(O,R-1,J),te=M[1];O=pe(te[0]),R=pe(te[1]),J=pe(te[2]);let z=new Date(O,R-1,J);if(k.startDate=G,k.startArray=ht(G),k.endDate=z,k.endArray=ht(z),i.valueFormat){let Y=pt(i,G,i.valueFormat),I=pt(i,z,i.valueFormat);u("update:modelValue",[Y,I],{})}else u("update:modelValue",[G,z],{})}else{let Q=M,O=pe(Q[0]),R=pe(Q[1]),J=pe(Q[2]),G=new Date(O,R-1,J);if(k.startDate=G,k.startArray=ht(G),i.valueFormat){let te=pt(i,G,i.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",G,{})}u("change",M,{})}},q=M=>{let O=M.target.value;g.value=!0,u("focus",O,M)},E=M=>{setTimeout(()=>{g.value=!1},0);let O=M.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),u("blur",O,M)},V=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),P=t.computed(()=>be(i.unit)>0),x=t.computed(()=>be(i.unit)>0&&!g.value),j=t.computed(()=>({hidden:!x.value})),H=M=>{f(),u("update:modelValue",null,M),u("change","",M),u("clear","")},L=t.computed(()=>i.clearable&&!d.value&&!m.value),_=t.computed(()=>{let M=be(p.value)>0;return i.clearable&&M&&g.value}),ee=M=>{_.value?H(M):T()},K=t.computed(()=>_.value&&L.value?l:r),W=t.computed(()=>({action:!0}));return()=>{const M={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:T,onFocus:q,onBlur:E};s&&(M.disabled=!0);const Q=[],O=t.h("input",M);Q.push(O);const R=[],J={class:["action-icon"]},G=t.h(K.value,J),te={class:W.value,onClick:ee},z=t.h("view",te,{default:()=>[G]});if(R.push(z),P.value){const we=t.h("view",{class:j.value},[i.unit]);R.push(we)}const Y={class:V.value},I=t.h("view",Y,{default:()=>R});Q.push(I);const D={default:()=>Q};D.label=c.slots.default,D.prepend=c.slots.prepend,D.append=c.slots.append,D.fixedPreTip=c.slots.fixedPreTip,D.fixedTip=c.slots.fixedTip;const F=ke(i,vn);F.visible=A.value,F["onUpdate:visible"]=$,F["default-value"]=N.value,F.onChoose=U;const X={};if(c.slots.btn){const we=c.slots.btn();X.btn=()=>we}c.slots.day&&(X.day=c.slots.day),c.slots.topInfo&&(X.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(X.bottomInfo=c.slots.bottomInfo);const ne=t.h(a,F,X);D.hide=()=>[ne];const se={...tt(i,vn,Pr)};return i.prop&&(se.prop=`${i.prop}_item`),t.h(o,se,D)}}}}const{componentName:im,create:cm,scope:um}=Z("calendar-item"),Nl=cm(sm(im,um,ro,Ne,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),dm={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 fm(e,{CheckNormal:n,Checked:a}){return{props:{...dm},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=Hn(),c=t.computed(()=>s.label.value===o.label),d=t.computed(()=>s.position),m=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const k=de(o.iconSize),f=o.checkedIcon??i.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=de(o.iconSize),f=o.icon??i.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}},u=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},h=()=>{const y=[`${e}__button`];return c.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},b=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${g?`${e}--reverse`:""}`,onClick:b},[o.shape=="button"?h():g?[u(),m()]:[m(),u()]])}}}const{componentName:mm,create:pm}=Z("radio"),so=pm(fm(mm,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:Lr,create:hm}=Z("radio-group"),io=hm({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}=$t(),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:`${Lr} ${Lr}--${e.direction}`,style:l},n.default?.())}}});function zr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(bn(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(Rt(e,r)===a)return l}return-1}function bn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function gm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function ym(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let vm=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function bm(){const e=t.getCurrentInstance();return new vm(e.proxy)}function km(e){return{text:e,value:e}}const Or={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Sm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Cm={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,Object],default:""}};function wm(e,n,a,o,l){return{props:{...he,...ye,...Or,...Sm,...Cm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=$e(t.computed(()=>r.disabled)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),u=bm(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,v])=>{if(f){const p=await u.load("radio",f,v);if(p.length>0)if(typeof p[0]=="string"){const C=p.map(S=>km(S));h.value=C}else h.value=p;else h.value=[]}},{immediate:!0});let b=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([f,v])=>{b.value=zr(r,v,f,r.valueType),m("setValue",f)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(b.value===-1)return null;const f=h.value[b.value];return Rt(r,f)}),y=f=>{let v=null,p=null;if(h.value.length>0){let N=zr(r,h.value,f,"value");b.value=N,N>=0&&(p=h.value[N],r.valueType==="text"?v=bn(r,p):r.valueType==="item"?v=p:v=Rt(r,p))}else v=f;m("update:modelValue",v),m("change",v,p)},k=()=>{let f=null,v=null;if(h.value.length>0&&b.value!==-1){let p=h.value[b.value];r.valueType==="text"?f=bn(r,p):r.valueType==="item"?f=p:f=Rt(r,p)}m("update:modelValue",f),m("change",f,v)};if(Ee({clear(){b.value!==-1&&(b.value=-1,k())}}),r.source){const f=()=>{const v=[],p=ke(r,Or);return h.value.forEach((N,w)=>{const C=Rt(r,N),S=gm(r,N);let B={...p,label:C,disabled:S};const A=ym(r,N,w);B={...B,...A},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const U=s.slots.text(N);T.default=()=>[U]}else{const U=bn(r,N);T.default=()=>U}let $=t.h(l,B,T);v.push($)}),v};return()=>{const v=f(),p={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":y},N=t.h(o,p,{default:()=>v}),w={default:()=>N};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const S={...ke(r,ye,he)};return r.prop&&(S.prop=`${r.prop}_item`),t.h(a,S,w)}}else return()=>{const f=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":y},{default:()=>f})}}}}const{componentName:Nm,create:Bm,scope:Am}=Z("radio-item"),Bl=Bm(wm(Nm,Am,Ne,io,so)),Vm=(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}=$t(),i=Hn(),c=t.inject("parent",null),d=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,p=>{d.partialSelect=p});const m=t.computed(()=>!!c),u=t.computed(()=>m.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>m.value?c.position:l.textPosition);let b="";const g=(p,N)=>{b="click",s("update:modelValue",p),s("change",p,N)};t.watch(()=>l.modelValue,p=>{b=="click"?b="":s("change",p)});const y=()=>{const p=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const N=de(l.iconSize),w=l.indeterminateIcon??i.checkbox.Indeterminate??o;return p.push("fox-checkbox__icon--indeterminate"),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h(w,{width:N,height:N,class:p})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const N=de(l.iconSize),w=l.checkedIcon??i.checkbox.Checked??a;return p.push("fox-checkbox__icon"),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h(w,{width:N,height:N,class:p})}}else{if(r.icon)return r.icon();{const N=de(l.iconSize),w=l.icon??i.checkbox.CheckNormal??n;return p.push("fox-checkbox__icon--unchecked"),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h(w,{width:N,height:N,class:p})}}},k=()=>{const p=[`${e}__label`];return l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h("view",{class:p},r.default?.())},f=()=>{const p=[`${e}__button`];return u.value&&p.push(`${e}__button--active`),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h("view",{class:p},r.default?.())},v=p=>{if(!(l.disabled||l.readonly)){if(u.value&&d.partialSelect){d.partialSelect=!1,g(u.value,r.default?.()[0].children);return}if(g(!u.value,r.default?.()[0].children),m.value){const N=c.value.value,w=c.max.value,{label:C}=l,S=N.indexOf(C);S>-1?N.splice(S,1):S<=-1&&(N.length<w||!w)&&N.push(C),c.updateValue(N)}}};return t.onMounted(()=>{m.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{m.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:v},[l.shape=="button"?f():[y(),k()]])}}),{componentName:Tm,create:$m}=Z("checkbox"),co=$m(Vm(Tm,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Em,componentName:Rr}=Z("checkbox-group"),uo=Em({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}=$t(),o=t.reactive({children:[]}),l=d=>{d.proxy&&o.children.push(d.proxy)},r=d=>{d.proxy&&(o.children=o.children.filter(m=>m!==d.proxy))},s=d=>{a("update:modelValue",d),a("change",d)},i=d=>{const m=[];d&&o.children.forEach(u=>{u?.disabled||m.push(u?.label)}),a("update:modelValue",m)},c=()=>{const d=o.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);a("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,d=>{a("change",d)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${Rr} ${Rr}--${e.direction}`,style:d},n.default?.())}}});function Fr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Qo(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(kn(e,r)===a)return l}return-1}function Qo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function xm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Dm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Im=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function qm(){const e=t.getCurrentInstance();return new Im(e.proxy)}function Mm(e){return{text:e,value:e}}const Pm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Kr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Lm={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 zm(e,n,a,o,l){return{props:{...he,...ye,...Pm,...Kr,...Lm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e(t.computed(()=>r.disabled)),c=Te(t.computed(()=>r.readonly)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),u=qm(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,v])=>{if(f){const p=await u.load("checkbox",f,v);if(p.length>0)if(typeof p[0]=="string"){const C=p.map(S=>Mm(S));h.value=C}else h.value=p;else h.value=[]}},{immediate:!0});const b=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([f,v])=>{const p=[];Array.isArray(f)&&f.forEach(N=>{let w=Fr(r,v,N,r.valueType);w!==-1&&p.push(w)}),!Ie(p,b.value)&&(b.value=p,m("setValue",p))},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return b.value.forEach(v=>{let p=h.value[v];f.push(kn(r,p))}),f}),y=f=>{let v=[],p=[];if(h.value.length>0){const N=[];Array.isArray(f)&&f.forEach(w=>{let C=Fr(r,h.value,w,"value");C!==-1&&N.push(C);const S=h.value[C];p.push(S),r.valueType==="text"?v.push(Qo(r,S)):r.valueType==="item"?v.push(S):v.push(kn(r,S))}),b.value=N}else v=f;m("update:modelValue",v),m("change",v,p)},k=t.ref();if(Ee({toggleAll:f=>{k.value.toggleAll(f)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const f=()=>{const v=[],p=ke(r,Kr);return h.value.forEach((N,w)=>{const C=kn(r,N),S=xm(r,N);let B={...p,label:C,disabled:S};const A=Dm(r,N,w);B={...B,...A},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(T.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const U=s.slots.text(N);T.default=()=>[U]}else{const U=Qo(r,N);T.default=()=>U}let $=t.h(l,B,T);v.push($)}),v};return()=>{const v=f(),p={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":y},N=t.h(o,p,{default:()=>v}),w={default:()=>N};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const S={...ke(r,ye,he)};return r.prop&&(S.prop=`${r.prop}_item`),t.h(a,S,w)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:Om,create:Rm,scope:Fm}=Z("checkbox-item"),Al=Rm(zm(Om,Fm,Ne,uo,co)),Go={modelValue:{type:[String,Boolean,Number],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:Km,create:Um}=Z("switch"),Hm=Um({components:{Loading1:le.Loading1},props:{...Go},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=Km;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}}}),jm={class:"fox-switch-button"};function Wm(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",jm,[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 fo=oe(Hm,[["render",Wm]]);function Ym(e,n,a,o){return{props:{...he,...ye,...Go},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,m=Pe(l,"modelValue",null,c),u=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const b={...ke(l,Go),disabled:s.value||i.value,value:m.value,"onUpdate:modelValue":u},g=[],y=t.h(o,b);g.push(y);const k={default:()=>g};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const v={...ke(l,ye,he)};return l.prop&&(v.prop=`${l.prop}_item`),v["content-class"]=d,t.h(a,v,k)}}}}const{componentName:Xm,create:Qm,scope:Gm}=Z("switch-item"),Vl=Qm(Ym(Xm,Gm,Ne,fo));function Zm(e,n,a,o){return{props:{...he,...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=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,U=>{u.value=U,c("change",U)});const h=t.computed(()=>({[`${e}`]:!0})),b=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(u.value),"is-disabled":s.value,"is-readonly":i.value})),g=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const U={};return g.value&&(U["text-align"]=g.value),U}),k=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(u.value)?m.placeholder.value:u.value),v=t.computed(()=>!ue(l.desc)||r.slots.sub),p=t.computed(()=>({[`${e}__sub`]:!0})),N=t.computed(()=>{const U={};return g.value&&(U["text-align"]=g.value),U}),w=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},S=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=t.computed(()=>be(l.unit)>0),A=U=>{s.value==!0||i.value==!0||c("click")},T=t.computed(()=>l.icon??a),$=t.computed(()=>({action:!0}));return()=>{const U=[];if(typeof r.slots.content=="function"){const W=r.slots.content();U.push(W)}else{const W=[];if(k.value){const O={tabIndex:0,class:b.value,style:y.value,onFocus:w,onBlur:C};let R=null;r.slots.main?R=t.h("view",O,[r.slots.main(f.value)]):R=t.h("view",O,[f.value]),W.push(R)}if(v.value){const O={tabIndex:0,class:p.value,style:N.value,onFocus:w,onBlur:C};let R=null;r.slots.sub?R=t.h("view",O,[r.slots.sub(l.desc)]):R=t.h("view",O,[l.desc]),W.push(R)}const M={class:h.value,onClick:A},Q=t.h("view",M,W);U.push(Q)}const q=[],E=de(l.iconSize);let V=r.slots.icon;if(!V){const W={width:E,height:E,class:["action-icon"]};V=t.h(T.value,W)}const P={class:$.value,onClick:A},x=t.h("view",P,{default:()=>[V]});if(q.push(x),B.value){const W=t.h("view",{},[l.unit]);q.push(W)}const j={class:S.value},H=t.h("view",j,{default:()=>q});U.push(H);const L={default:()=>U};L.label=r.slots.default,L.prepend=r.slots.prepend,L.append=r.slots.append,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const ee={...ke(l,ye,he)};return l.prop&&(ee.prop=`${l.prop}_item`),t.h(o,ee,L)}}}}const{componentName:Jm,create:_m,scope:ep}=Z("link-item"),Tl=_m(Zm(Jm,ep,le.ArrowRight,Ne)),Zo={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:tp,componentName:np}=Z("rate"),op=tp({props:{...Zo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[np]:!0})),r=b=>{n("update:modelValue",b),n("change",b)},s=(b,g)=>{if(e.disabled||e.readonly)return;let y=0;g===1&&e.modelValue===g||(y=g,e.allowHalf&&b==2&&(y-=.5)),r(y)},i=(b,g,y)=>{let k=0;for(let f=g.value.length-1;f>=0;f--){const v=g.value[f];if(b>v.offsetLeft){y?k=f+(b>v.offsetLeft+v.clientWidth/2?1:.5):k=f+1;break}}return k},c=lt(),d={onTouchStart(b){!e.touchable||e.readonly||c.start(b)},onTouchMove(b){e.touchable&&(c.move(b),c.isHorizontal()&&o.value&&(b.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...d,onClick:s,toPxDesc:ge,renderIcon:(b,g)=>t.h(b,g),rateRefs:o,refRandomId:m,slots:a,customIcon:u}}}),lp=["id"],ap={class:"fox-rate-item__icon--full"},rp={key:0,class:"fox-rate-item__icon--half"},sp={key:1,class:"fox-rate-item__icon--half"};function ip(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",ap,[(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",rp,[(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",sp,[(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,lp))),128))],34)}const Bt=oe(op,[["render",ip]]);function cp(e,n,a,o){return{props:{...he,...ye,...Zo},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,m=Pe(l,"modelValue",null,c),u=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const b={...ke(l,Zo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":u},g=[],y=t.h(o,b);g.push(y);const k={default:()=>g};if(r.slots.default){const p=r.slots.default();k.label=()=>p}const f=ke(l,ye,he);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=d,t.h(a,f,k)}}}}const{componentName:up,create:dp,scope:fp}=Z("rate-item"),$l=dp(cp(up,fp,Ne,Bt)),mp=/scroll|auto|overlay/i,Us=window;function pp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jo(e,n=Us){let a=e;for(;a&&a!==n&&pp(a);){const{overflowY:o}=window.getComputedStyle(a);if(mp.test(o))return a;a=a.parentNode}return n}function Hs(e,n=Us){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Jo(e.value,n))}),a}const js=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,hp={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 gp(e,n,a){return{props:{...hp},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),d=Hs(c),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=v=>v?v.offsetTop+h(v.offsetParent):0,b=()=>{let v=0,p=0,N="down";if(d.value==window){const w=js();c.value&&(v=h(c.value)+c.value.offsetHeight-w-window.innerHeight),p=w}else{const{scrollHeight:w,clientHeight:C,scrollTop:S}=d.value;v=w-C-S,p=S}return m.beforeScrollTop>p?N="up":N="down",m.beforeScrollTop=p,l("scroll-change",p),v<=o.threshold&&N=="down"},g=()=>{Ge(()=>{if(!b()||!o.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",g,o.useCapture)},k=()=>{d.value&&d.value.removeEventListener("scroll",g,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&g()}),t.onUnmounted(()=>{k()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,k()}),t.watch(()=>o.modelValue,v=>{v||(m.isInfiniting=!1)}),()=>{const v={class:"fox-infinite__container"},p=t.h("view",v,[r?.default?.()]),N=[];if(m.isInfiniting){let B=r?.loading?.()??null;if(!B){let $=r?.loadingIcon?.()??null;if(!$){const E={class:["fox-infinite__bottom-box__img"]};$=t.h(a,E)}const U={class:"fox-infinite__bottom-box__text"},q=t.h("view",U,[i.loadText.value]);B=[$,q]}const A={class:"fox-infinite__bottom-box"},T=t.h("view",A,B);N.push(T)}else if(!o.hasMore){let B=r?.finished?.()??null;if(!B){const A={class:"fox-infinite__bottom-tips"};B=t.h("view",A,[i.loadMoreText.value]),N.push(B)}}const w={class:"fox-infinite__bottom"},C=t.h("view",w,N),S={class:u.value,ref:c};return t.h("view",S,[p,C])}}}}const{componentName:yp,create:vp,scope:bp}=Z("infinite-loading"),mo=vp(gp(yp,bp,le.Loading)),{componentName:kp,create:Sp}=Z("button"),Cp=Sp({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:d,block:m}=t.toRefs(e),u=g=>{!i.value&&!s.value&&n("click",g)},h=t.computed(()=>{const g=kp;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${l.value}`]:l.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),b=t.computed(()=>{const g={};return c?.value&&(d.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:u,classes:h,getStyle:b}}}),wp={class:"fox-button__wrap"};function Np(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",wp,[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 ze=oe(Cp,[["render",Np]]),Bp={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"}},Ap=(e,n,a)=>({props:{...Bp},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}=$t(),{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),d=t.computed(()=>({background:o.background})),m=t.computed(()=>({background:o.inputBackground})),u=A=>{let $=A.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),r("update:modelValue",$,A),r("change",$,A)},h=t.ref({}),b=A=>{let $=A.target.value;c.active=!0,h.value=o.focusStyle,r("focus",$,A)},g=A=>{setTimeout(()=>{c.active=!1},0);let $=A.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),h.value={},r("blur",$,A)},y=A=>{r("update:modelValue","",A),r("change","",A),r("clear","")},k=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const A={};return k.value||(A.display="none"),A}),v=A=>{o.autoblur&&S.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),r("search",o.modelValue)},p=A=>{r("keyup-input",A)},N=A=>{r("click-input",A)},w=A=>{r("click-left-icon",o.modelValue,A)},C=t.computed(()=>({textAlign:o.inputAlign})),S=t.ref(null);t.onMounted(()=>{o.autofocus&&S.value.focus()});const B=()=>{const A=[];if(l.leftin){const P={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:w},x=t.h("view",P,[l.leftin()]);A.push(x)}const T={class:`${e}__input-inner-input`,ref:S,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:N,onInput:u,onFocus:b,onBlur:g,onkeyup:p},$=t.h("input",T),U={class:[`${e}__input-inner`],action:"#",onSubmit:v},q=t.h("form",U,[$]);A.push(q);const E=[];if(o.clearable){const P={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},x=l?.clear?.()??o.clearIcon??a,j=t.h("view",P,[t.h(x)]);E.push(j)}if(l.rightin){const P={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",P,[l.rightin()]);E.push(x)}if(E.length>0){const P={class:`${e}__input-inner-right`},x=t.h("view",P,E);A.push(x)}const V={class:[`${e}__search-input`,`${o.shape}`],style:{...m.value,...h.value}};return t.h("view",V,A)};return()=>{const A=[];if(o.label){const U={class:`${e}__search-label`},q=t.h("span",U,[o.label]);A.push(q)}if(l.leftout){const U={class:[`${e}__search-icon`,`${e}__left-search-icon`]},q=t.h("view",U,[l.leftout()]);A.push(q)}const T=B();if(A.push(T),l.rightout){const U={class:[`${e}__search-icon`,`${e}__right-search-icon`]},q=t.h("view",U,[l.rightout()]);A.push(q)}const $={class:`${e}`,style:d.value};return t.h("view",$,A)}}}),{componentName:Vp,create:Tp,scope:$p}=Z("searchbar"),po=Tp(Ap(Vp,$p,le.CircleClose)),Sn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},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},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ep(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Cn(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(Ws(e,r)===a)return l}return-1}function Cn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ur(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ws(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function xp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Dp(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Ip=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let d=a;typeof i=="function"&&(d=d.filter(i));let m=(o-1)*l,u=m+l;u>d.length&&(u=d.length);const h=d.slice(m,u);return{totalSize:d.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=ot(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(De(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function qp(){const e=t.getCurrentInstance();return new Ip(e.proxy)}function Mp(e,n,a,o,l,r,s,i,c,d,m){return{props:{...Sn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:b}=$t(),{toLocaleRefs:g}=ie.useFoxI18n(n),y=g(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),k=qp(),f=t.ref([]),v=t.ref(0),p=t.ref(""),N=t.shallowRef(null),w=t.computed(()=>{const z={};return u.params&&Object.assign(z,u.params),ue(p.value)||(z[`${u.searchKey}`]=p.value),N.value&&Object.assign(z,N.value),z});let C=!0;const S=async(z,Y,I)=>{try{if(A.value===!1)return;let D=null;ue(p.value)||(D=X=>{const ne=Cn(u,X);if(typeof ne=="string"&&ne.includes(p.value))return!0;const ae=Ur(u,X);return!!(typeof ae=="string"&&ae.includes(p.value))});const F=await k.load("actionsheet",z,Y,I,w.value,C,D??void 0);C=!1,Array.isArray(F)?(f.value=F,v.value=1,A.value=!1):!Array.isArray(F.page)||F.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,f.value,F.page),v.value=Math.ceil(f.value.length/u.pageSize),(F.totalSize&&f.value.length>=F.totalSize||I<F.page.length)&&(A.value=!1)),B.value=!1}catch(D){console.error("[FoxUI] ActionSheet load more data fail",D),A.value=!0,v.value=0,f.value=[]}setTimeout(()=>{b("loaded-data")},250)},B=t.ref(!1),A=t.ref(!0),T=async()=>{if(!u.source){B.value=!1;return}await S(u.source,v.value+1,u.pageSize)};let $=null;t.watch(p,(z,Y)=>{$&&(clearTimeout($),$=null),ue(z)&&!ue(Y)&&($=setTimeout(()=>{q()},u.searchDelayTriggerClear))});const U=()=>{A.value=!0,v.value=0,f.value=[],u.source&&T()},q=()=>{U()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([z,Y,I])=>{u.source&&U()},{immediate:!0});const E=t.computed(()=>!u.multiple&&u.isAutoBackFill),V=t.ref([]);let P=null;const x=t.ref(u.visible);t.watch(()=>u.visible,z=>{x.value!==z&&(x.value=z),z?P=[...V.value]:P=null});const j=(z,Y)=>{const I=[];return Array.isArray(z)||(z=[z]),z.forEach(D=>{let F=Ep(u,Y,D,u.valueType);F!==-1&&I.push(F)}),Ie(I,V.value)?!1:(V.value=I,!0)};t.watch([()=>u.modelValue,()=>f.value],([z,Y],[I,D])=>{if(j(z,Y)){const X=H();L(X)}},{deep:!0});const H=()=>{const z=[],Y=[],I=[];for(let ne of V.value){const ae=f.value[ne];Y.push(ae);const se=Cn(u,ae);if(I.push(se),u.valueType==="item")z.push(ae);else if(u.valueType==="text")z.push(se);else{const fe=Ws(u,ae);z.push(fe)}}let D=null,F=null,X=null;return u.multiple?(D=z,F=I,X=Y):(D=z[0]??null,F=I[0]??null,X=Y[0]??null),{value:D,text:F,item:X}},L=z=>{b("update:modelValue",z.value),b("update:text",z.text),b("change",z.value,z.item,z.text)},_=()=>{P&&(V.value=P)},ee=z=>{const Y=V.value.indexOf(z);u.multiple?Y===-1?V.value.push(z):V.value.splice(Y,1):Y===-1?V.value=[z]:V.value=[],(E.value||!u.poppable&&!u.showFooter)&&M()},K=z=>{x.value=z,b("update:visible",z)},W=()=>{const z=()=>{_(),K(!1)},Y=u.beforeMethod??u.beforeClose;if(typeof Y=="function"){const I=Y("close");St(I)?I.then(D=>{D!==!1&&z()}).catch(()=>{z()}):I!==!1&&z()}else z()},M=()=>{const z=H(),Y=()=>{L(z),K(!1)},I=u.beforeMethod??u.beforeClose;if(typeof I=="function"){const D=I("confirm",z.value,z.item,z.text);St(D)?D.then(F=>{F!==!1&&Y()}).catch(()=>{Y()}):D!==!1&&Y()}else Y()},Q=()=>{let z=y.title.value??"";h.title&&(z=h.title());const Y=t.h("view",{class:["fox-actionsheet__header-title"]},[z]),I=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:W});return t.h("view",{class:["fox-actionsheet__header"]},[Y,I])},O=()=>{let z=null;if(h.search)z=h.search();else{const Y={onSearch:U,placeholder:y.seachPlaceholder.value,disabled:u.disabled,modelValue:p.value,"onUpdate:modelValue":I=>{p.value=I}};z=t.h(r,Y,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[z])},R=(z,Y,I,D,F)=>{if(h.optionLabel)return h.optionLabel({text:z,checked:Y,disabled:I,subText:D,item:F});const X=[],ne=t.h("view",{class:"fox-actionsheet__list-item-text"},[z]);if(X.push(ne),D){const ae=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[D]);X.push(ae)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},X)},J=(z,Y,I,D)=>{if(h.optionIcon)return h.optionIcon({checked:z,disabled:Y,iconSize:I,item:D});if(z){if(h.checkedIcon)return h.checkedIcon({disabled:Y,item:D});{const F=u.checkedIcon??i;return t.h(F,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:Y,item:D});{const F=u.icon??s;return t.h(F,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}},G=()=>{const z=[];for(let Y=0;Y<f.value.length;Y++){const I=f.value[Y],D=Cn(u,I),F=Ur(u,I),X=["fox-actionsheet__list-item"],ne={};let ae=xp(u,I),se=u.iconSize?de(u.iconSize):null;const fe=Dp(u,I,Y);fe&&(ae=ae||fe.disabled,fe.class&&X.push(fe.class),fe.style&&Object.assign(ne,fe.style)),ae=!!(u.disabled||ae);const we=V.value.includes(Y);ae&&X.push("is-disabled"),we&&X.push("is-checked");const Xe={class:X,style:ne,key:`${Y}`,onClick:()=>{ae||ee(Y)}};let Qe=[];if(h.option)Qe.push(h.option({item:I,checked:we,disabled:ae}));else{const mt=R(D,we,ae,F,I);Qe.push(mt);const yo=J(we,ae,se,I);Qe.push(yo),u.textPosition==="right"&&Qe.reverse()}const Ue=t.h("view",Xe,Qe);z.push(Ue)}return z},te=()=>{let z=[];if(h.buttons)z=h.buttons();else{const I=t.h(l,{type:"primary",block:"block",onClick:M,disabled:u.disabled},{default:()=>y.confirmText.value});z.push(I)}return t.h("view",{class:"fox-actionsheet__footer"},[z])};return Ee({search:async(z=null,Y=!0)=>{N.value=z&&t.toRaw(z),t.triggerRef(N),Y&&(A.value=!0,v.value=0,f.value=[]),t.nextTick(()=>{T()})},clear:()=>{A.value=!0,v.value=0,f.value=[]},confirm:()=>{M()},cancel:()=>{W()}}),()=>{const z=[];if(u.showHeader){const se=Q();z.push(se)}if(u.showSearchbar){const se=O();z.push(se)}let Y=null;if(h.content)Y=h.content();else{const se=G(),fe={hasMore:A.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:B.value,"onUpdate:modelValue":we=>{B.value=we},onLoadMore:T};Y=t.h(o,fe,{default:()=>se})}const I={};u.optionsHeight&&(I.height=u.optionsHeight);const D={"fox-actionsheet__list":!0};u.poppable||(D["fox-actionsheet__list--inner"]=!0);const F=t.h("view",{class:D,style:I},[Y]);if(z.push(F),u.showFooter&&!E.value){const se=te();z.push(se)}const X=t.h("view",{class:"fox-actionsheet"},z);if(!u.poppable)return X;const ne=["fox-actionsheet__popup"];u.popClass&&ne.push(u.popClass);const ae={popClass:ne.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":K,position:u.position,round:"round",onClickOverlay:W,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,ae,{default:()=>X})}}}}const{componentName:Pp,create:Lp,scope:zp}=Z("actionsheet-pane"),ho=Lp(Mp(Pp,zp,me,mo,ze,po,le.CheckNormal,le.Checked,le.Close,le.Search2)),Hr={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 Op(e,n,a,o,l,r,s){return{props:{...he,...ye,...Hr,...Sn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),b=h(i,["placeholder"]),g=t.ref(!1),y=Pe(i,"modelValue",null,u),k=t.ref(""),f=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),N=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const M={};return N.value&&(M["text-align"]=N.value),M}),C=t.ref(!1),S=()=>{C.value=!0},B=M=>{C.value=M},A=M=>{y.value=M,u("update:modelValue",M)},T=(M,Q)=>{u("change",M,Q)},$=M=>{let O=M.target.value;g.value=!0,u("focus",O,M)},U=M=>{setTimeout(()=>{g.value=!1},0);let O=M.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),u("blur",O,M)},q=M=>{k.value=M,u("update:text",M)},E=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),V=t.computed(()=>be(i.unit)>0),P=t.computed(()=>be(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!P.value})),j=M=>{y.value="",u("update:modelValue","",M),u("change","",M),u("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),L=t.computed(()=>be(y.value)>0&&g.value),_=M=>{L.value?j(M):S()},ee=t.computed(()=>L.value&&H.value?o:l),K=t.computed(()=>({action:!0})),W=t.ref(null);return Ee({search:M=>{W.value&&W.value.search(M)},clear:()=>{W.value&&W.value.clear},confirm:M=>{W.value&&W.value.confirm()},cancel:()=>{W.value&&W.value.cancel()}}),()=>{const M={class:p.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:S,onFocus:$,onBlur:U},Q=[],O=t.h("input",M);Q.push(O);const R=[],J={class:["action-icon"]},G=t.h(ee.value,J),te={class:K.value,onClick:_},z=t.h("view",te,{default:()=>[G]});if(R.push(z),V.value){const we=t.h("view",{class:x.value},[i.unit]);R.push(we)}const Y={class:E.value},I=t.h("view",Y,{default:()=>R});Q.push(I);const D={default:()=>Q};D.label=c.slots.default,D.prepend=c.slots.prepend,D.append=c.slots.append,D.fixedPreTip=c.slots.fixedPreTip,D.fixedTip=c.slots.fixedTip;const F=ke(i,Sn);F.ref=W,F.class=i.actionsheetProps,F.disabled=d.value||m.value,F.visible=C.value,F["onUpdate:visible"]=B,F.modelValue=y.value,F["onUpdate:modelValue"]=A,F.text=k.value,F["onUpdate:text"]=q,F.onChange=T,F.poppable=!0,F["text-position"]=i.textPosition;const X={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ne=t.h(r,F,X);D.hide=()=>[ne];const se={...tt(i,Hr,Sn)};return i.prop&&(se.prop=`${i.prop}_item`),t.h(a,se,D)}}}}const{componentName:Rp,create:Fp,scope:Kp}=Z("actionsheet-item"),El=Fp(Op(Rp,Kp,Ne,le.CircleClose,le.ArrowRight,ho)),_o={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:Up,create:Hp}=Z("input-number"),jp=Hp({components:{Minus:le.Minus,Plus:le.Plus},props:{..._o},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const b=Up;return{[b]:!0,[`${b}--disabled`]:e.disabled}}),o=b=>Number(b).toFixed(Number(e.decimalPlaces)),l=b=>{const g=b.target;n("update:modelValue",g.valueAsNumber,b)},r=(b,g)=>{let y=o(b);n("update:modelValue",y,g),n("change",y,g)},s=(b=Number(e.modelValue))=>b<Number(e.max)&&!e.disabled,i=(b=Number(e.modelValue))=>b>Number(e.min)&&!e.disabled,c=b=>{if(n("reduce",b),i()){let g=Number(e.modelValue)-Number(e.step);r(g,b)}else n("overlimit",b,"reduce")},d=b=>{if(n("add",b),s()){let g=Number(e.modelValue)+Number(e.step);r(g,b)}else n("overlimit",b,"add")},m=b=>{e.disabled||e.readonly||n("focus",b)},u=b=>{if(e.disabled||e.readonly)return;let y=b.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,b),n("blur",b)},h=b=>{let g=Number(b);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const b=h(e.modelValue);b!==Number(e.modelValue)&&r(b,{})}),{classes:a,change:l,blur:u,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),Wp=["min","max","disabled","readonly","value"];function Yp(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,Wp),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(jp,[["render",Yp]]);function Xp(e,n,a,o){return{props:{...he,...ye,..._o},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),d=t.computed(()=>{const g=[`${e}`];return l.textAlign==="left"?g.push("is-left"):l.textAlign==="center"?g.push("is-center"):l.textAlign==="right"&&g.push("is-right"),g.join(" ")}),m=Pe(l,"modelValue",null,c),u=g=>{m.value=g,c("update:modelValue",g,{}),c("change",g,{})},h=g=>{c("add",g)},b=g=>{c("reduce",g)};return()=>{const g={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=ke(l,_o),f={...r.attrs,...y,disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":u,onAdd:h,onReduce:b},v=t.h(o,f,g),p=[];p.push(v);const N={default:()=>p};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const C={...ke(l,ye,he)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=d.value,t.h(a,C,N)}}}}const{componentName:Qp,create:Gp,scope:Zp}=Z("inputnumber-item"),xl=Gp(Xp(Qp,Zp,Ne,_e)),Jp={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function _p(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function jr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Wr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function eh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Ao(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Yr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Xr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Vo(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let th=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function nh(){const e=t.getCurrentInstance();return new th(e.proxy)}function oh(e,n,a,o){return{props:{...Jp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=nh(),d=t.ref([]),m=t.computed(()=>d.value.filter(K=>eh(l,K)!==!1)),u=t.ref(-1),h=()=>{const K=l.modelValue,W=m.value.findIndex(M=>jr(l,M)===K);u.value!==W&&(u.value=W,l.scroll&&_(W))};t.watch([()=>l.modelValue,m],()=>{h()});const b=K=>u.value===K,g=K=>{if(K<0&&K>=m.value.length)return!1;const W=m.value[K],Q=(Vo(l,W,K)??{}).status??Ao(l,W);return b(K)||Q},y=t.computed(()=>{const K={[i]:!0};return l.mode?K[`is-${l.mode}`]=!0:l.direction&&(K[`is-${l.direction}`]=!0),l.scroll&&(K["is-scroll"]=!0),K}),k=t.computed(()=>({})),f=(K,W,M,Q,O)=>{const R={[`${i}__step`]:!0};return O&&(R[`${O}`]=!0),R[`${v.value}`]=!0,Q&&(R["is-doit"]=!0),K===u.value?R["is-active"]=!0:W==="done"?R["is-done"]=!0:W==="error"?R["is-error"]=!0:W==="half"?R["is-half"]=!0:M?R["is-disabled"]=!0:R["is-normal"]=!0,R},v=t.computed(()=>{if(l.mode==="simple")return"start";let K=l.align;return K||(l.direction==="vertical"?K="start":K="center"),K}),p=(K,W={})=>{const M={...W};return v.value==="start"&&K===m.value.length-1?M.flex="0 0 auto":l.step?l.direction==="vertical"?M.height=l.step:M.width=l.step:M.flex="1 1 100%",M},N=(K,W)=>{let M={};if(W<m.value.length-1){const Q=W+1;g(W)&&g(Q)?l.direction==="vertical"?M.height="100%":M.width="100%":M.opacity="0"}return M},w=K=>m.value.length-1===K,C=(K,W)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&W>u.value||u.value===W)return;const M=u.value,Q=W;u.value=W,l.scroll&&_(W);const O=jr(l,K);s("update:modelValue",O);const R={fromIndex:M,currentIndex:Q,item:K,items:m.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",O,R)},S=t.ref(!0),B=async(K,W)=>{try{const M=await c.load("stesbar",K,W);Array.isArray(M)&&(d.value=M),S.value=!1}catch(M){console.error("[FoxUI] Load StepsBar Data Fail",M),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([K,W])=>{K&&B(K,W)},{immediate:!0});const A=(K,W,M,Q,O,R)=>{const J=[];let G=null;if(!R)if(r.icon)G=r.icon({item:K,index:W,status:Q});else if(Q==="done"){const z={};l.iconSize&&(z.width=l.iconSize,z.height=l.iconSize);const Y=l.icon??a;G=t.h(Y,z)}else{const z=M??`${W+1}`;G=t.h("span",{},[z])}G&&J.push(G);const te={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:K,index:W}),!O&&C(K,W)}};return t.h("view",te,J)},T=(K,W,M)=>{const Q=t.h("i",{class:"fox-steps-bar__line-inner",style:N(K,W)});return t.h("view",{class:"fox-steps-bar__line"},[Q])},$=()=>{let K=null;if(r.markIcon)K=r.markIcon();else{const M={};l.iconSize&&(M.width=l.markIconSize,M.height=l.markIconSize);const Q=l.markIcon??o;K=t.h(Q,M)}return t.h("view",{class:"fox-steps-bar__mark"},[K])},U=(K,W,M,Q,O,R)=>{const J=[];if(!w(W)){const z=T(K,W);J.push(z)}const G=A(K,W,M,Q,O,R);J.push(G);const te={class:"fox-steps-bar__head"};return t.h("view",te,J)},q=(K,W,M,Q)=>{let O=null;r.main?O=r.main({item:K,index:W,status:M}):O=_p(l,K);const R={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:K,index:W}),!Q&&C(K,W)}};return t.h("view",R,[O])},E=(K,W,M)=>{let Q=null;if(r.sub){Q=r.sub({item:K,index:W,status:M});const O={class:"fox-steps-bar__sub"};return t.h("view",O,[Q])}return null},V=(K,W)=>{const M=Vo(l,K,W)??{},Q=M.status??Ao(l,K);let O=Wr(l,K);M.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);let R=Yr(l,K);M.doit===!0&&(R=!0);const J=M.label??Xr(l,K),G=[],te=A(K,W,J,Q,O,R);te&&G.push(te);const z=q(K,W,Q,O);if(z&&G.push(z),!w(W)){const X=T(K,W);X&&G.push(X)}const Y=t.h("view",{class:"fox-steps-bar__head"},G),I=M.class,D=M.style??{},F={ref:L(W),class:f(W,Q,O,R,I),style:p(W,D)};return t.h("view",F,[Y])},P=(K,W)=>{const M=Vo(l,K,W)??{},Q=M.status??Ao(l,K);let O=Wr(l,K);M.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);let R=Yr(l,K);M.doit===!0&&(R=!0);const J=M.label??Xr(l,K),G=[],te=l.layout;for(let D of te)if(D==="head"){const F=U(K,W,J,Q,O,R);G.push(F)}else if(D==="main"){const F=q(K,W,Q,O);G.push(F)}else if(D==="sub"){const F=E(K,W,Q);G.push(F)}else if(D==="mark"){const F=$();G.push(F)}const z=M.class,Y=M.style??{},I={ref:L(W),class:f(W,Q,O,R,z),style:p(W,Y)};return t.h("view",I,G)},x=t.ref(),j=t.ref([]),H=(K,W)=>{j.value[W]=K},L=K=>W=>{H(W,K)},_=(K,W)=>{const M=x.value,Q=j.value;if(!M||!Q||!Q[K])return;const O=Q[K];let R=0;l.direction==="vertical"?R=O.offsetTop-(M.offsetHeight-O.offsetHeight)/2:R=O.offsetLeft-(M.offsetWidth-O.offsetWidth)/2,ee(M,R,.3,l.direction)},ee=(K,W,M,Q)=>{let O=0;const R=Q==="horizontal"?K.scrollLeft:K.scrollTop,J=Math.round(M*1e3/16);function G(){Q==="horizontal"?K.scrollLeft+=(W-R)/J:K.scrollTop+=(W-R)/J,++O<J&&He(G)}G()};return()=>{const K=[];if(l.mode==="simple")for(let M=0;M<m.value.length;M++){const Q=m.value[M],O=V(Q,M);K.push(O)}else for(let M=0;M<m.value.length;M++){const Q=m.value[M],O=P(Q,M);K.push(O)}const W={ref:x,class:y.value,style:k.value};return t.h("view",W,K)}}}}const{componentName:lh,create:ah,scope:rh}=Z("steps-bar"),Dl=ah(oh(lh,rh,le.Checklist,le.ArrowRight));function sh(e){e.stopPropagation()}class ih{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=_n()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=eo(),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),sh(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 ch(e,n){return new ih(e,n)}const uh={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]},zIndex:{type:[String]}},dh=(e,n,a,o=!1)=>({props:{...uh},emits:["click"],setup(l,{slots:r,emit:s}){let i=-1,c=-1;const d=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:0,height:0}),m=t.computed(()=>{const w=[`${e}`];return l.customClass&&w.push(l.customClass),w}),u=w=>typeof w=="string"&&!ll(w)?w:`${w}px`,h=t.computed(()=>{const w={};return ue(d.top)||(w.top=u(d.top)),ue(d.right)||(w.right=u(d.right)),ue(d.bottom)||(w.bottom=u(d.bottom)),ue(d.left)||(w.left=u(d.left)),ue(l.width)||(w.width=u(l.width)),ue(l.height)||(w.height=u(l.height)),ue(l.color)||(w.color=l.color),ue(l.background)||(w.background=l.background),ue(l.borderRadius)||(w["border-radius"]=l.borderRadius),ue(l.zIndex)||(w["z-index"]=l.zIndex),w}),b=t.computed(()=>({[`${e}__icon`]:!0})),g=()=>{s("click")},y=t.ref(null),k=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},N=ch(w=>{if(!y.value)return;const C=y.value;k(),d.left=C.offsetLeft,d.top=C.offsetTop,C.style.left=`${d.left}px`,C.style.top=`${d.top}px`,C.style.right=null,C.style.bottom=null,f.x=d.left,f.y=d.top,d.width=C.offsetWidth,d.height=C.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},w=>{if(!y.value)return;const C=y.value;k();let S=f.x+w.x;S<0&&(S=0),S>i-d.width&&(S=i-d.width);let B=f.y+w.y;B<0&&(B=0),B>c-d.height&&(B=c-d.height),d.left=S,d.top=B,C.style.left=`${S}px`,C.style.top=`${B}px`});return t.onMounted(()=>{if(l.draggable&&y.value){const w=[y.value];N.open(w)}}),t.onBeforeUnmount(()=>{l.draggable&&y.value&&N.close()}),()=>{let w=[];const C=typeof r.default=="function"?r.default():[];if(C&&C.length>0)w=C;else{const B=t.h(a,{class:b.value});w.push(B)}const S={ref:B=>{y.value=B},class:m.value,style:h.value,onClick:g};return t.h("view",S,w)}}}),{componentName:fh,create:mh,scope:ph}=Z("floating-button"),Il=mh(dh(fh,ph,le.Uploader,!1)),hh={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 gh(e,n,a){return{props:{...hh},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const u={[`${e}`]:!0};return o.disabled?u[`${e}--disabled`]=!0:u[`${e}--${o.type}`]=!0,u}),s=Pe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),m=()=>{l("update:modelValue",!s.value)};return()=>{const u=[];if(i.value){const k={class:c.value},f=t.h("span",k,[i.value]);u.push(f)}const h={class:d.value},b=o.icon??a,g=t.h(b,h);return u.push(g),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:m},u)}}}}const{componentName:yh,create:vh,scope:bh}=Z("more-button"),ql=vh(gh(yh,bh,le.RectUp)),kh={visible:{type:[Boolean],default:!0},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}},Sh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Ch(e,n,a){return{props:{...kh},emits:["update:visible"],setup(o,{attrs:l,slots:r,emit:s}){const{toLocaleRefs:i}=ie.useFoxI18n(n),c=i(o,["confirmText","cancelText"]),d=e,m=t.ref(o.visible),u=w=>{m.value=w,s("update:visible",w)};t.watch(()=>o.visible,w=>{m.value!==w&&(m.value=w)});const h=w=>{if(typeof o.unmount=="function")try{o.unmount()}catch(C){console.error(C)}if(typeof o.callback=="function")try{o.callback(w)}catch(C){console.error(C)}},b=()=>{h("confirm")},g=()=>{h("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&h("close")},k=(w,C)=>Sh(w)?(C.src=w,t.h("img",C)):typeof w=="string"?(Array.isArray(C.class)?C.class.push(w):C.class&&typeof C.class=="object"?C[`${w}`]=!0:typeof C.class=="string"?C.class=`${C.class}, ${w}`:C.class=w,t.h(o.tag,C)):t.h(w,C),f=()=>{const w=[];if(o.icon){const S={class:[`${d}__header-icon`]},B=k(o.icon,S);w.push(B)}if(o.title){const S=t.h("view",{class:`${d}__header-title`},[o.title]);w.push(S)}if(o.showClose&&o.closeIcon){const S={class:[`${d}__header-close-icon`],onClick:y},B=k(o.closeIcon,S);w.push(B)}const C={class:[`${d}__header`]};return t.h("view",C,w)},v=(w,C)=>{const S=[];if(C){const A={class:`${d}__group-title`},T=t.h("view",A,[C]);S.push(T)}if(w){const A=[];Array.isArray(w)||(w=[w]);for(let T of w){const $={class:`${d}__group-row`,innerHTML:T},U=t.h("view",$);A.push(U)}if(A.length>0){const T={class:`${d}__group-rows`},$=t.h("view",T,A);S.push($)}}if(S.length===0)return null;const B={class:`${d}__group`};return t.h("view",B,S)},p=()=>{const w=[];if(typeof o.message=="string")w.push(o.message);else if(Array.isArray(o.message))for(let S of o.message)if(typeof S=="string"){const B=v(S);w.push(B)}else{const B=v(S.content,S.title);w.push(B)}else if(typeof o.message=="function"){const S=o.message();w.push(S)}else{const S=o.message;w.push(S)}const C={class:`${d}__body`};return t.h("view",C,w)},N=()=>{const w=[];if(o.showCancelButton){const S={class:[`${d}__footer-button`],style:{},onClick:g};o.cancelButtonClass&&S.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(S.style,o.cancleButtonStyle);const B=t.h("button",S,[o.cancelButtonText??c.cancelText.value]);w.push(B)}if(o.showConfirmButton){const S={class:[`${d}__footer-button`],style:{},onClick:b};o.confirmButtonClass&&S.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(S.style,o.confirmButtonStyle);const B=t.h("button",S,[o.confirmButtonText??c.confirmText.value]);w.push(B)}if(w.length===0)return null;const C={class:`${d}__footer`};return t.h("view",C,w)};return()=>{const w=[],C=f();C&&w.push(C);const S=p();S&&w.push(S);const B=N();B&&w.push(B);const A={class:{[`${d}`]:!0,[`${d}--${o.type||"info"}`]:!0}},T=t.h("view",A,w),$=[`${d}__popup`];o.popClass&&$.push(o.popClass);const U={};o.width&&(U.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(U.height=typeof o.height=="number"?`${o.height}px`:o.height);const q={popClass:$.join(" "),style:U,visible:m.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,q,{default:()=>T})}}}}const{componentName:wh,create:Nh,scope:Bh}=Z("messagebox"),Ah=Nh(Ch(wh,Bh,me)),Vh="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",Th="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",$h="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",Eh="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",xh=new Zn,Dh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Ih=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-${xh.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(Ah,e);n.appendChild(o),t.render(r,o)},it={show:(e,n,a,o)=>{const l={...Dh};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=$h:r==="warning"?l.icon=Eh:r==="error"?l.icon=Vh:l.icon=Th),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=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}s({action:d})},Ih(l)})},alert:(e,n,a)=>it.show("alert",e,n,a),confirm:(e,n,a)=>it.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},qh=(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)},Mh=new Zn,Ph=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Lh=e=>`${e}-${Mh.get()}`,zh=Symbol.for("InnerPageScopeKey"),Oh=Symbol.for("PageWrapperKey"),Rh="FoxLeave",Fh="FoxLeaveEnd",Kh={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 Uh(e,n,a,o){return{props:{...Fe,...Kh},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(zh,!0);const c={};t.provide(Oh,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},u=e,h=C=>{b.value=C,i("update:visible",C)},b=t.ref(!1),g=(C,S)=>Ph(C)?(S.src=C,t.h("img",S)):typeof C=="string"?(Array.isArray(S.class)?S.class.push(C):S.class&&typeof S.class=="object"?S[`${C}`]=!0:typeof S.class=="string"?S.class=`${S.class}, ${C}`:S.class=C,t.h(l.tag,S)):t.h(C,S),y=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const B=s.header();C.push(B)}else if(l.title){const B=t.h("view",{class:`${u}__header-title`},[l.title]);C.push(B)}if(C.length===0)return null;const S={class:[`${u}__header`]};return t.h("view",S,C)},k=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:m},S=l.closeIcon??o;return g(S,C)};let f=null;const v=C=>{qh(Fh,{},f)},p=Lh(e),N=()=>{h(!0)},w=()=>{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 S=f.querySelector(".fox-popup");S&&(S.classList.add(`fox-popup-slide-${l.position}-leave-active`),S.classList.add(`fox-popup-slide-${l.position}-leave-to`),S.addEventListener("animationend",v,{once:!0}),S.addEventListener("transitionend",v,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${p}`),f?.addEventListener(Rh,w,{once:!0}),N()}),()=>{const C=[],S=y();S&&C.push(S);const B=k();B&&C.push(B);const A=s.default?s.default():[];Reflect.apply([].push,C,A);const T={[`${u}`]:!0};l.mode&&(T[`${u}--${l.mode}`]=!0);const $={class:T},U=t.h("view",$,C),q=[`${u}__popup`,p];l.popClass&&q.push(l.popClass),l.position&&q.push(`${u}__popup--${l.position}`);const E={};l.width&&(E.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(E.height=typeof l.height=="number"?`${l.height}px`:l.height);const P={...ke(l,Fe),popClass:q.join(" "),style:E,visible:b.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},x=t.h(a,P,{default:()=>U});return t.h("div",{class:[`${u}__root`,p]},[x])}}}}const{componentName:Hh,create:jh,scope:Wh}=Z("popup-wrapper"),Ml=jh(Uh(Hh,Wh,me,le.Close)),Yh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Xh(e,n,a,o){return{props:{...Yh},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 d={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},m=t.h(a,d,s),u={class:`${e}`};return t.h("view",u,[m])}}}}const{componentName:Qh,create:Gh,scope:Zh}=Z("dropdown"),Pl=Gh(Xh(Qh,Zh,me)),Jh={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function _h(e,n,a=!1){return{props:{...Jh},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:s}){const i=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),d=t.ref(0),m=t.ref(0),u=t.ref(0),h=t.ref(o.placement),b=t.ref(!1),g=t.ref(!1),y=t.ref(null),k=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,f=(L,_,ee,K,W,M,Q,O=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,G=L.split("-");let te=[];O?G[0]==="top"?te=["top","bottom","right","left"]:G[0]==="bottom"?te=["bottom","top","right","left"]:G[0]==="left"?te=["left","top","bottom","right"]:G[0]==="right"&&(te=["right","top","bottom","left"]):te=[L[0]];const z={top:null,right:null,bottom:null,left:null},Y=[];for(let I=0;I<te.length;I++){const D=te[I];if(Y[0]=D,G[1]&&(Y[1]=G[1]),D==="top"){const F=ee-Q-o.arrowSize/2-o.offset;if(F>=0){z.top=F;let X=0;G[1]==="start"?X=_:G[1]==="end"?X=_+K-M:X=_+K/2-M/2;const ne=R-X-M;ne<0?(X+=ne,p.value=-ne):p.value=0,z.left=X<0?0:X;break}}else if(D==="bottom"){const F=ee+W+o.arrowSize/2+o.offset;if(F+Q<=J){z.top=F;let X=0;G[1]==="start"?X=_:G[1]==="end"?X=_+K-M:X=_+K/2-M/2;const ne=R-X-M;ne<0?(X+=ne,p.value=-ne):p.value=0,z.left=X<0?0:X;break}}else if(D==="left"){const F=_-M-o.arrowSize/2-o.offset;if(F>=0){z.left=F;let X=0;G[1]==="start"?X=ee:G[1]==="end"?X=ee+W-Q:X=ee+W/2-Q/2,z.top=X<0?0:X;break}}else if(D==="right"){const F=_+K+o.arrowSize/2+o.offset;if(F+M<=R){z.left=F;let X=0;G[1]==="start"?X=ee:G[1]==="end"?X=ee+W-Q:X=ee+W/2-Q/2,z.top=X<0?0:X;break}}}return{bestPlacement:Y.join("-"),bestInsetRect:z}},v=()=>{const L=o.visible,_=o.autoFit;if(!et||L===!1)return;if(o.reference){const Q=k(),O=pl(Q);c.value=O.x,d.value=O.y,m.value=Q.offsetWidth,u.value=Q.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,d.value=o.referenceInset.top,m.value=o.referenceInset.right-o.referenceInset.left,u.value=o.referenceInset.bottom-o.referenceInset.top);const ee=y.value.offsetWidth,K=y.value.offsetHeight,{bestPlacement:W,bestInsetRect:M}=f(o.placement,c.value,d.value,m.value,u.value,ee,K,_);h.value=W,i.value=M},p=t.ref(0),N=Me(()=>{v()},10),w=t.ref(o.visible);t.watch([()=>o.visible],([L])=>{w.value=L,L?(b.value=L,setTimeout(()=>{v(),g.value=!0},0)):g.value=!1});const C=t.computed(()=>w.value&&S.value),S=t.ref(!0),B=Me(L=>{const _=L[0];_&&(S.value=_.isIntersecting)},10),A=new IntersectionObserver(B);t.watch([()=>o.reference,()=>o.referenceInset],([L,_],[ee,K])=>{!L&&!_||(setTimeout(()=>{v()},0),o.autoFit&&(ee&&(Kt.unwatch(ee,N),A.unobserve(ee)),L&&(Kt.watch(L,N),A.observe(L))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Kt.unwatch(o.reference,N),A.unobserve(o.reference),A.disconnect())});const T=t.computed(()=>{const L={[e]:!0};return h.value.startsWith("top")?L["is-top"]=!0:h.value.startsWith("right")?L["is-right"]=!0:h.value.startsWith("bottom")?L["is-bottom"]=!0:h.value.startsWith("left")&&(L["is-left"]=!0),L[`is-${o.effect}`]=!0,!g.value&&C.value&&(L["is-opacity"]=!0),g.value&&C.value&&(L["is-show"]=!0),C.value||(L["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(L[`${o.customClass}`]=!0),L}),$=t.computed(()=>{const L={};return i.value.top!==null&&(L.top=`${i.value.top}px`),i.value.right!==null&&(L.right=`${i.value.right}px`),i.value.bottom!==null&&(L.bottom=`${i.value.bottom}px`),i.value.left!==null&&(L.left=`${i.value.left}px`),o.width&&(L.width=o.width),o.zIndex&&(L["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(L,o.customStyle),L}),U=()=>{w.value=!1,l("update:visible",!1)},q=()=>{if(!o.showOverlay)return null;const L={class:`${e}__overlay`,onClick:U};return t.h("div",L)},E=()=>{let L=null;return r.title?L=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(L=t.h("div",{class:`${e}__title`},[o.title])),L},V=t.computed(()=>({[`${e}__arrow`]:!0})),P=t.computed(()=>{const L={};return o.showArrow?(L.width=`${o.arrowSize}px`,L.height=`${o.arrowSize}px`,h.value==="top"?(L.left="50%",L.bottom="0",L.transform="translate(-50%, 50%)"):h.value==="top-start"?(L.left=`${o.arrowOffset+p.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):h.value==="top-end"?(L.right=`${o.arrowOffset-p.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):h.value==="right"?(L.left="0",L.top="50%",L.transform="translate(-50%, -50%)"):h.value==="right-start"?(L.left="0",L.top=`${o.arrowOffset}px`,L.transform="translate(-50%, 50%)"):h.value==="right-end"?(L.left="0",L.bottom=`-${o.arrowOffset}px`,L.transform="translate(-50%, 50%)"):h.value==="bottom"?(L.left="50%",L.top="0",L.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(L.left=`${o.arrowOffset+p.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(L.right=`${o.arrowOffset-p.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):h.value==="left"?(L.right="0",L.top="50%",L.transform="translate(50%, -50%)"):h.value==="left-start"?(L.right="0",L.top=`${o.arrowOffset}px`,L.transform="translate(50%, -50%)"):h.value==="left-end"&&(L.right="0",L.bottom=`-${o.arrowOffset}px`,L.transform="translate(50%, -50%)"),L):{display:"none"}}),x=()=>{const L={class:V.value,style:P.value};return t.h("div",L)},j=()=>{w.value===!1&&(b.value=!1)},H=L=>{if(!y.value||w.value===!1)return;const{relatedTarget:_}=L;y.value.contains(_)||(w.value=!1,l("update:visible",!1))};return s({doLayout:v}),()=>{if(!b.value)return null;const L=[],_=q();_&&L.push(_);const ee=[],K=E();if(K&&ee.push(K),r.default){const O=r.default();ee.push(O)}const W=x();W&&ee.push(W);const M={ref:y,class:T.value,style:$.value,onAnimationend:j};o.leaveHide&&(M.onMouseleave=H);const Q=t.h("div",M,{default:()=>ee});return L.push(Q),L}}}}const{componentName:eg,create:tg,scope:ng}=Z("popover-dialog"),Ll=tg(_h(eg,ng,!1));function og(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 lg={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 ag(e,n,a,o=!1){return{props:{...lg},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const p={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(p[`${e}--${l.type??"default"}`]=!0),l.size&&(p[`${e}--${l.size}`]=!0),p}),c=t.computed(()=>{const p={},N=l.textColor??l.color;return N&&(p.color=N),p}),d=(p,N)=>{let w=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(p.indexOf(C)!==-1){const B=p.replace(new RegExp(C,"g"),`<span>${C}</span>`);N.innerHTML=B,N.class["is-highlight"]=!0,w=t.h(l.tag,N)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(p);C&&(N.innerHTML=C,N.class["is-highlight"]=!0,w=t.h(l.tag,N))}return w},m=p=>{r.emit("click",p)};let u="";const h=()=>{const p=s.value;if(!p)return;const N=p.clientWidth;og(p,w=>{const C=p.innerHTML??"";ue(C)||w<N||(u?a?.show(p,C,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(p,C,{type:"text",showArrow:l.showArrow},!0)??"")})},b=()=>{u&&a?.hide(u)};let g=null;const y=p=>{g||(g=setTimeout(()=>{h(),g=null},l.showAfter??0))},k=p=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{b()},l.hideAfter??0)},f=()=>{const p=s.value;p&&(p.addEventListener("mouseover",y),p.addEventListener("mouseleave",k))},v=()=>{const p=s.value;p&&(p.removeEventListener("mouseover",y),p.removeEventListener("mouseleave",k))};return t.onMounted(()=>{!ve(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!ve(l.showOverflowTooltip)||!a||v()}),()=>{const p={onClick:m,class:i.value,style:c.value,ref:s};let N=null;if(ve(l.numberFormat)&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const A=B[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const T=pe(l.digits),$=pe(l.decimalLength),U=ve(l.autoPadding);let q=`${B[0].children}`,E=q.split("").reverse().join("");E=In(E,$,U,T,l.separator),q=E.split("").reverse().join(""),l.highlightFilter!==void 0&&(N=d(q,p)),N||(p.innerHTML=q,N=t.h(l.tag,p))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const A=B[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const T=`${B[0].children}`;N=d(T,p),N||(p.innerHTML=T,N=t.h(l.tag,p))}}}N||(N=t.h(l.tag,p,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return N;let C=null;if(l.icon){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const A={},T=l.color;T&&(A.color=T);const $={class:B,style:A};C=t.h("view",$,t.h(l.icon))}else if(r.slots.mark){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const A={},T=l.color;T&&(A.color=T);const $={class:B,style:A};C=t.h("view",$,{default:r.slots.mark})}else{const B={[`${e}__mark`]:!0};l.type&&(B[`${e}__mark--${l.type??"default"}`]=!0);const A={},T=l.color;T&&(A["background-color"]=T);const $={class:B,style:A};C=t.h("view",$)}const S={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",S,[C,N])}}}}const{componentName:rg,create:sg,scope:ig}=Z("text"),zl=sg(ag(rg,ig,Et,!1));function cg(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 d=0;c&&d<r.length;d++){let m=r[d],u=c.find(h=>h[o]===m);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],m=r[c];const u=d.find(h=>h[o]===m);if(!u)break;s.push(u[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let m=r[d],u=c.find(h=>h[o]===m);if(!u)break;s.push(u[a]),c=u[l]}}return s}class ug{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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function dg(){const e=t.getCurrentInstance();return new ug(e.proxy)}const fg={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 mg(e,n,a=!1){return{props:{...fg},setup(o,{attrs:l,slots:r}){const s=dg(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,u])=>{i.value=await s.load(o.sourceType,m,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=cg(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return m.length==0?o.emptyText??"":m.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${m[0]}`:m[0]:m.join(o.separator)}),d=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const m={...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(d,m,{default:()=>c.value}):t.h(d,m,c.value)}}}}const{componentName:pg,create:hg,scope:gg}=Z("mapping"),Ol=hg(mg(pg,gg,!1));function yg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Ss(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:n2,create:vg,scope:o2}=Z("domain-provider"),Rl=vg(yg()),bg={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 kg(e,n){return{inheritAttrs:!1,props:bg,setup(a,{slots:o}){if(et&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,b)=>{if(m===null){r.set(h,{visible:null,callback:b});return}l.has(h)&&m.unobserve(h),l.set(h,{visible:null,callback:b}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}l.has(h)&&(l.delete(h),m.unobserve(h))};let c=a.initialVisibleObserverSize;lc({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const u=(h,b,g)=>{m=new IntersectionObserver(y=>{for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const v=l.get(k.target);if(v)try{if(a.loadPolicy==="lazy"&&!f&&v.visible!==null)return;v.visible=f,v.callback(f)}catch(p){console.error(p)}}},{root:h,rootMargin:b,threshold:g}),r.forEach((y,k)=>{l.set(k,y),m?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,b])=>{if(b||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&u(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:l2,create:Sg,scope:a2}=Z("rolling-provider"),Fl=Sg(kg()),{componentName:Cg,create:wg}=Z("cell"),Ng=wg({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=Cg;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}}}),Bg={key:0,class:"fox-cell__icon"},Ag={key:1,class:"fox-cell__title"},Vg={class:"title"},Tg={class:"fox-cell__title-desc"};function $g(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",Bg,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Ag,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Vg,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Tg,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(Ng,[["render",$g]]),{componentName:Eg,create:xg}=Z("cell-group"),Dg=xg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Eg]:!0}))}}}),Ig={key:1,class:"fox-cell-group__title"},qg={key:3,class:"fox-cell-group__desc"},Mg={class:"fox-cell-group__wrap"};function Pg(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",Ig,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",qg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Mg,[t.renderSlot(e.$slots,"default")])],2)}const Ul=oe(Dg,[["render",Pg]]),{componentName:Lg,create:zg}=Z("image"),Og=zg({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 b=Lg;return{[b]:!0,[`${b}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const b={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(g=>{g.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},b),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let b={};return e.width&&(b.width=ge(e.width)),e.height&&(b.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(b.overflow="hidden",b.borderRadius=ge(e.radius)),b}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,b=>{a.isError=!1,a.loading=!0});const m=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=b=>{n("click",b)};return{...t.toRefs(a),imageClick:h,classes:o,styles:d,stylebox:c,error:u,load:m,show:r,imgRef:s}}}),Rg=["src","date-src","alt"],Fg={key:0,class:"fox-img-loading"},Kg={key:1,class:"fox-img-error"};function Ug(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,Rg),e.loading?(t.openBlock(),t.createElementBlock("div",Fg,[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",Kg,[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 Hl=oe(Og,[["render",Ug]]),{create:Hg}=Z("layout"),jl=Hg({}),{componentName:jg,create:Wg}=Z("col"),Yg=Wg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=jg,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 Xg(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 Wl=oe(Yg,[["render",Xg]]),{componentName:Qg,create:Gg}=Z("row"),Zg=Gg({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=Qg;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"?`
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),rt=require("@fox-js/validator"),le=require("@fox-js/icons-vue"),ie=require("@fox-js/i18n"),on=window,si=typeof window<"u";function ii(){return typeof on<"u"?on.requestAnimationFrame||on.webkitRequestAnimationFrame||function(e){on.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function as(e){si?cancelAnimationFrame(e):clearTimeout(e)}const Ge=ii();function Bn(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=Be(e),n=Be(n),[e,n]=rl(Be(e),Be(n)),a==1&&(o==1?e=So(e):n=So(n));let l=rs(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(So(l)):Be(l)}function So(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 rs(n,r)}function Be(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 rl(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 rs(e,n){[e,n]=rl(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 Ht(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=Ht(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,lr(l[1],r,o,a)?(o?"-":"")+Co(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&&lr(i,s,o,a)&&(s=Co(s),s.length>n)?(o?"-":"")+Co(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function lr(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 Co(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 Do(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=xt(e),n=xt(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=xt(e.replace(".","")),n=xt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],d=s-1,m="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let S=n.length-1;S>=d&&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),m=h%10+m,d--}return m=xt(ci(m,r)),a==1&&(m="-"+m),m}function ci(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 xt(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 Io(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=Be(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Be(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Be(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let m=e.length-d+l;e=Be(e.substring(0,m)+"."+e.substring(m))}else l==d&&(e=Be(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 d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Bn(c,"-"+n),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Be(Ht(i,a-2))}function qo(e,n){return e=e.toString(),n=n.toString(),n=Po(n),Bn(e,n)}function Po(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ar(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),rr(e),rr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=qo(e,Do(n,Ht(Io(e,n),0,Se.FLOOR)));return a+o}function rr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function sr(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]=rl(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 ce{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=Be(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+Be(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=ce.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=ce.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 ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Se.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ht(n,a,o)}round(n=0,a=Se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Ht(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Se.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Se.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),Bn(n,a)}add(n){return new ce(Bn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),qo(n,a)}subtract(n){return new ce(qo(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),Do(n,a)}multiply(n){return new ce(Do(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),Io(n,a,o)}divide(n,a){return new ce(Io(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),ar(n,a)}modulus(n){return new ce(ar(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),sr(n,a)}compareTo(n){return sr(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Po(n)}negate(){return new ce(Po(this.value))}}function ss(e,n){return ce.multiply(`${e}`,`${n}`)}function sl(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function Mo(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function is(e){return ce.negate(e)}function Pn(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="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let m;if(o>0){let u="",h=i.split("").reverse();for(let S=0;S<h.length;S++)u+=h[S]+((S+1)%o==0&&S+1!=h.length?l:"");c.length==0?m=`${s}${u.split("").reverse().join("")}`:m=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function cs(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const et=typeof window<"u",He=Ge;function il(e){return e==null}const Mn=Array.isArray,ui=e=>Ln(e)==="[object Map]",di=e=>Ln(e)==="[object Set]",We=e=>e instanceof Date,An=e=>typeof e=="function",us=e=>typeof e=="string",fi=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",kt=e=>De(e)&&An(e.then)&&An(e.catch),ds=Object.prototype.toString,Ln=e=>ds.call(e),Lo=e=>Ln(e)==="[object Object]",fs=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function mi(e){return e.__esModule||fs&&e[Symbol.toStringTag]==="Module"}const pi=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...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 d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=it(l,d,c)}else c!==void 0&&(n[s]=c)}}return n}function zo(e,n,a=!1){if(!a)it(!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)&&!Lo(s))continue;r=zo(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)&&!Lo(s))continue;r=zo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const wo=pi?Promise.resolve():null;function hi(e,...n){wo!==null?n&&n.length>0?wo.then(()=>{e(n)}):wo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function be(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}const gi={"[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 ct(e){let a=Object.prototype.toString.call(e);return e==null?String(e):gi[a]||"object"}function zn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function ms(e){return e&&typeof e=="object"&&"setInterval"in e}function ps(e){let n=!!e&&"length"in e&&e.length,a=ct(e);return a==="function"||ms(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function hs(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 yi(e,n=[]){let a=n;return e!=null&&(ps(Object(e))?hs(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ie(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=ct(e),o=ct(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],d=n[i];if(!Ie(c,d))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(!Ie(r,s))return!1}return!0}return!1}function Oo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function cl(e){return ue(e)?!1:(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 gs(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 ys(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 ir(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 Ro(e,n=!0,a=!0){n?e=ir(e,".",/\./g):e=e.replace(/\./g,""),a?e=ir(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function vi(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Ie(e,a))return!0}):n.indexOf(e)}function bi(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Ie(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function tt(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 vs=(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 Fo(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()},je=(e,n,a)=>Math.min(Math.max(e,n),a),Ce=Symbol.for("BroadcastKey");class ul{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;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.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,a,o){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=n.uniqueId,r={matched:n,action:a,args:o};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(a=>{n.push(a)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,a){if(!a||a.messagingPolicy==="Once"&&a.resolved===!0)return!1;let o=!1;return!a.name||a.name==="*"||a.name==="+"||Oo(a.name)&&n&&a.name.test(n)?o=!0:typeof a.name=="function"?o=Reflect.apply(a.name,null,[n]):a.name===n&&(o=!0),o}trigger(n,a,o){let l=null;const r=this.callbacks.get(a);typeof r=="function"&&(l=Reflect.apply(r,this.proxy,[...o]));const s=this.proxy??{};typeof s[a]=="function"&&(l=Reflect.apply(s[a],s,[...o])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(l)}pull(){let n=this.parent;for(;n;){const a=n.getPersistantMessages();Array.isArray(a)&&a.length>0&&a.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),n=n.parent}}emit(n,a,...o){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,a,o),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,a,o)){const s=n.resolve,i=n.uniqueId??"",c=(...d)=>{this.deletePersistantMessage(i),typeof s=="function"&&s(...d)};n.resolve=c}n.cachePolicy="None"}let l=!1;!n.name||n.name==="*"?l=!0:n.name==="+"?(l=!1,n.name="*"):Oo(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)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...r),n.messagingPolicy==="Once")return r}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){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,a,o),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,a,o)){const r=n.resolve,s=n.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...c)};n.resolve=i}n.cachePolicy="None"}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 On(e,n,a,o){const l=new ul(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ki(e,n,a){const o=a;if(o[Ce])return o[Ce];const l=t.inject(Ce,null),r=new ul(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 zt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}class Si{error(n,a){const o=a,l=a||t.hasInjectionContext()?zt(a):null;l?l.emit({name:"*"},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?zt(n):null;o?o.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?zt(n):null;o?o.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=o||t.hasInjectionContext()?zt(o):null,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 Rt=new Si;function Ci(e){Rt=e}function wi(e){Rt?Object.assign(Rt,e):Rt=e}function Ni(e,n){rt.Schema.setValidator(e,n)}function Bi(e){rt.Schema.deleteValidator(e)}let bs=["blur","clear"];function Ai(e){bs=e}function ks(){return bs}let Ss=["focus","change","setValue"];function Vi(e){Ss=e}function Cs(){return Ss}function Ti(e){rt.Schema.messages(e)}function Dt(...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 ln(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Le=Symbol("ValidateSchemaKey");class ws{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(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=ln(Dt(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=ln(o);const l=Dt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Rt;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.Schema.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.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt.Schema.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=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=ln(n):this.rules=ln([n]);const o=Dt(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=Dt(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=new rt.Schema(l),c=this.proxy??s;return i.validate(s,{context:c}).then(m=>{if(m.pass)this.success();else{let u="error";Array.isArray(m.errors)&&m.errors.length>0&&(u=m.errors[0].message??u,m.errors=[m.errors[0]],m.errors[0].ref=c),this.error(u)}return m}).catch(m=>{const u=m.message??`${m}`;return this.error(u),m})}}return Promise.resolve({pass:!0})}}function Rn(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 ws(n,a,e)}const Vn=Symbol.for("EventEmitterKey");class Ns{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 Pe(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Tn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function $i(e,n){const a=Pe((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function Ei(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function dl(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 xe=Symbol("DomainKey"),ht=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 xi=new Fn;function vt(){return xi}function nt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const No=Symbol("OriginalDateKey");function fl(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(xe,null);s===null&&(s=vt());const i=e||n.prop||n.name;let c=new Fn(i);c.parent=s;const d=y=>{r[No]||h(y),c?.set("modelValue",y)},m=()=>c?.getForSelf("modelValue")??null,u=()=>r[No]??null,h=y=>{const b={};it(!0,b,t.toRaw(y)),r[No]=b};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c?.merge(y,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue);const S=(y,b)=>{c?.set(y,b)},g=y=>c?.getForSelf(y)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const y=t.inject(Ce,null),b=On(r,y,i,o);c.broadcast=b,r[Ce]=b,t.provide(Ce,b),r.broadcast=(p,B,...w)=>Reflect.apply(b.emit,b,[p,B,...w]);const f=t.inject(Le,null),v=Rn(r,f,{componentName:""});c.validateSchema=v,r[Le]=v,t.provide(Le,v),r[ht]=new Map,r.validate=(p=!0)=>{const B=[];let w=null;const C={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:N=>N?k.indexOf(N)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(C,k),Array.isArray(k.include)&&k.include.length>0){const N=k.include;w={name:A=>A?N.indexOf(A)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const N=k.exclude;w={name:A=>A?N.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const k=b?.emitToChildren(w,"validate",C);k&&Reflect.apply([].push,B,k)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(k=>{let N=[];return k.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(N=[...N,...A.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(p,B=!0,w=!1)=>{if(w===!0){Reflect.ownKeys(p).forEach(k=>{let N=String(k);const A={componentName:"",fieldName:N,pureDataValidate:!0};if(c){const $=As(c,N,A,b,v);r[ht].set(N,$);const V=p[N];V&&$.validateSchema.setRule(V)}});return}if(B){const C=Reflect.ownKeys(p),k={name:N=>C.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"};b?.emitToChildren(k,"setNameValidateRules",p,!1)}},r.clearValidate=(p=!0)=>{let B=null;if(p===!0)B={name:"*"};else if(Array.isArray(p)&&p.length>0){const w=p;B={name:C=>C?w.indexOf(C)!==-1:!1}}else if(p!=null&&typeof p=="object"){const w=p;if(Array.isArray(w.include)&&w.include.length>0){const C=w.include;B={name:k=>k?C.indexOf(k)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const C=w.exclude;B={name:k=>k?C.indexOf(k)===-1:!1}}else B={name:"*"}}B&&b?.emitToChildren(B,"clearValidate",!1)},r.resetFields=p=>{const B=m();if(!B)return;const w={};if(it(!0,w,u()??{}),Array.isArray(p))p.forEach(C=>{B[C]=w[C]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(k=>{B[k]=w[k]});else if(p&&Array.isArray(p.exclude)){let C=p.exclude??[];Reflect.ownKeys(w).forEach(k=>{C.includes(k)||(B[k]=w[k])})}else Object.assign(B,w);r.clearValidate(p)},r.setModelValue=(p,B)=>{if(!B||B===i)d(p);else{const w={name:B,messagingPolicy:"Once"};b?.emitToChildren(w,"setModelValue",p)}},r.getModelValue=()=>m(),r.setDomainProperty=(p,B)=>{S(p,B)},r.getDomainProperty=p=>g(p),setTimeout(function(){b?.pull()},0)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Le]=void 0,t.provide(Le,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Ce]=void 0,t.provide(Ce,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[ht]&&(r[ht].clear(),r[ht]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,c=null,r=null}),c}function Bs(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=vt());const s=e||n.prop||n.name;let 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[xe]=i,t.provide(xe,i),t.onUnmounted(()=>{i?.destroy(),l[xe]=void 0,t.provide(xe,null),i=null,l=null}),i}function Ae(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null);let i=On(l,s,r,a);l[Ce]=i,t.provide(Ce,i),l.broadcast=(g,y,...b)=>i?Reflect.apply(i.emit,i,[g,y,...b]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let d=Rn(l,c,e);l[Le]=d,t.provide(Le,d),l.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const y=[];let b=!1,f=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)f=!0,b=!0;else if(g&&typeof g=="object"){const v=g,p=v.ignoreDisabled??!0,B=v.ignoreReadonly??!0,w=v.ignoreHidden??!0;p===!0&&e.disabled===!0||B===!0&&e.readonly===!0||w===!0&&zn(l.$el)?f=!1:(Array.isArray(v.include)&&v.include.indexOf(r)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(r),f=!0),b=v.deep??!1}else typeof g=="boolean"&&(b=g),f=!0;if(f){const v=d?.validate();y.push(v)}if(b){let v=null;const p={deep:!1};if(g===!0)v={name:"*"};else if(Array.isArray(g)&&g.length>0){const B=g;v={name:w=>w?B.indexOf(w)!==-1:!1}}else if(g!=null&&typeof g=="object"){const B=g;if(Object.assign(p,B),Array.isArray(B.include)&&B.include.length>0){const w=B.include;v={name:C=>C?w.indexOf(C)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const w=B.exclude;v={name:C=>C?w.indexOf(C)===-1:!1}}else v={name:"*"}}if(v&&i){const B=i.emitToChildren(v,"validate",p);Reflect.apply([].push,y,B)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(v=>{let p=[];return v.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(p=[...p,...B.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>d?.setRule(g),l.setNameValidateRules=(g,y=!1)=>{const b=g[r];if(b&&d?.setRule(b),y&&i){const f={name:v=>Reflect.ownKeys(g).includes(v)};i.emitToChildren(f,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&d?.clear();let y=null;if(g===!0)y={name:"*"};else if(Array.isArray(g)&&g.length>0){const b=g;y={name:f=>f?b.indexOf(f)!==-1:!1}}else if(g!=null&&typeof g=="object"){const b=g;if(Array.isArray(b.include)&&b.include.length>0){const f=b.include;y={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;y={name:v=>v?f.indexOf(v)===-1:!1}}else y={name:"*"}}y&&i&&i.emitToChildren(y,"clearValidate",!1)};let m=new Ns(l);l[Vn]=m;const u=Pe((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ks()).forEach(g=>{m&&m.on(g,y=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Cs()).forEach(g=>{m&&m.on(g,y=>{u("reset")})}),setTimeout(function(){i?.pull()},0),t.onUnmounted(()=>{i?.destroy(),l[Ce]=void 0,t.provide(Ce,null),i=null,d?.destroy(),l[Le]=void 0,t.provide(Le,null),d=null,m?.destroy(),l[Vn]=void 0,m=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...y)=>{m&&Reflect.apply(m.emit,m,[g,...y])},onEvent:(g,y)=>{m&&Reflect.apply(m.on,m,[y])},offEvent:(g,y)=>{m&&Reflect.apply(m.off,m,[y])}}}function As(e,n,a,o,l){const r={},s=n??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return i.getValue()}};let c=Rn({},l,a);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,S=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)S=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),S=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),S=!0;if(S&&c){const g=c.validate();u.push(g)}if(h){let g=null;const y={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const b=m;g={name:f=>f?b.indexOf(f)!==-1:!1}}else if(m!=null&&typeof m=="object"){const b=m;if(Object.assign(y,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;g={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;g={name:v=>v?f.indexOf(v)===-1:!1}}else g={name:"*"}}if(g&&d){const b=d.emitToChildren(g,"validate",y);Reflect.apply([].push,u,b)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(g=>{let y=[];return g.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(y=[...y,...b.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const u=m[s];u&&c?.setRule(u)};let d=On(null,o,s,r);return t.onUnmounted(()=>{c=null,d=null}),{broadcast:d,validateSchema:c}}function Tt(){let n=t.getCurrentInstance()?.proxy,a=new Ns(n);return n[Vn]=a,t.onUnmounted(()=>{a?.destroy(),n[Vn]=void 0,a=null,n=null}),{emitEvent:(o,...l)=>{a&&Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{a&&Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{a&&Reflect.apply(a.off,a,[l])}}}const me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e)}px`:"",Di=me;function de(e,n=-1){if(e==null)return 0;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(et){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}function Ii(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const Ze="PageStateKey";function Re(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=de(e.top)),e.left!==null&&e.left!==void 0&&(n.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=de(e.right))),n}function Ko(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=de(a.headerHeight??n.headerHeight??-1),e.headerPadding=Re(a.headerPadding??n.headerPadding),e.footerHeight=de(a.footerHeight??n.footerHeight??-1),e.footerPadding=Re(a.footerPadding??n.footerPadding),e.contentPadding=Re(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=de(c,r):e.height=de(r)-de(s,r)-de(i,r),e.width=de(a.width??n.width??0,l)}}function Vs(e,n={}){const a={top:null,bottom:null,right:null,left: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=de(l.top),o.safeAreaBottom=de(l.bottom),o.safeAreaLeft=de(l.left),o.safeAreaRight=de(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,d=e.get("footerBarHeight")??0;Ko(o,r,n,!0,s,i,c,d);const m=t.reactive(o),u=e.getForParent(Ze);u&&(o.height=$n(e,u),o.width=En(e,u),t.watch([()=>$n(e,u),()=>En(e,u)],([S,g])=>{m.height=S,m.width=g}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,g,y=-1,b=-1,f=0,v=0])=>{Ko(m,g,n,h,y,b,f,v)}),e.set(Ze,m),m}function Kn(e){return e.get(Ze)}function Un(e,n){if(n=n??e.get(Ze),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(Ze),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function $n(e,n){if(n=n??e.get(Ze),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Un(e,n),o=Hn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function En(e,n){return n=n??e.get(Ze),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function qi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function Pi(e){return!!e.getForParent(Ze)}var xn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(xn||{});function an(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=nt();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(an(c,o))return c}const s=e.value;return an(s,o)?s:null}):t.computed(()=>{const r=e.value;if(an(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(an(c,o))return c}return null})}function Te(e){return Ve(e,"readonly",1)}function $e(e){return Ve(e,"disabled",1)}function Me(e,n="modelValue",a=null,o){const l=t.toRef(e,n);let r=l.value;typeof a=="function"&&(r=a(l.value));const s=t.ref(r);return t.watch(l,i=>{if(typeof a=="function"){const c=a(i);c!==s.value&&(s.value=c,o&&o("setValue",c))}else i!==s.value&&(s.value=i,o&&o("setValue",i))}),s}const Ts=new Map,Dn=new Map;let Uo=null;function Mi(e){Uo=e}function $s(e,n,a){if(a){let o=Dn.get(a);o||(o=new Map,Dn.set(a,o)),o.set(e,n)}else Ts.set(e,n)}function ot(e,n,a){!a&&Uo&&(a=Uo(e)??void 0);let o=null;if(a){let l=Dn.get(a);l&&(o=l.get(n))}return o||(o=Ts.get(n)),o}function Li(e,n){for(let a in e){const o=e[a];$s(a,o,n)}}function zi(e){Dn.delete(e)}function Oi(){return{top:0,left:0,bottom:0,right:0}}function Ri(){if(et){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Fi(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}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(l=>{if(l.install)n.use(l);else if(l.name){const r=Fi(l.name,a);n.component(r,l)}});const o=vt();if(a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...a},r=Pe(()=>{const i={...l};this.updateLayout(i,o)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(a,o)}updateLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=it({},Oi(),n.safeAreaInset),s=Ri(),i=it({},s.pageLayout,n.pageLayout);a=a??vt(),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);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const d in n)c.indexOf(d)===-1&&a.set(d,n[d])}setScopeGetter(n){Mi(n)}setAPI(n,a,o){$s(n,a,o)}getAPI(n,a,o){return ot(n,a,o)}batchSetAPI(n,a){Li(n,a)}clearScopeAPI(n){zi(n)}getRootDomain(){return vt()}}function J(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 Ui=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(us(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={};An(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),d=n.components;return d&&d.forEach(m=>{c.use(m)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},Es=(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 ge={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ve={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}},xs={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}},Ds={name:{type:String,required:!1},prop:{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}},Is=[];for(const e in Ds)Is.push(e);const qs=Symbol.for("InnerPageScopeKey"),Hi={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}},ji=(e,n)=>({inheritAttrs:!0,props:{...ge,...xs,...Hi},setup(a,{slots:o}){const l=fl(a.name,a),r=t.inject(qs,!1);if(l){const m=Vs(l,a);Ee({getPageContentHeight:()=>$n(l,m),getPageContentWidth:()=>En(l,m),getPageHeaderHeight:()=>Un(l,m),getPageFooterHeight:()=>Hn(l,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),d=(m,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(m,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([m,u],[h,S])=>{if(m&&h){const g=t.toRaw(h),y=t.toRaw(m),b=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{b.includes(v)||(y[v]=[])}),d(y)}if(u&&S){const g=t.toRaw(S),y=t.toRaw(u),b=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{b.includes(v)||(y[v]=[])}),d(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const m=t.toRaw(a.rules);d(m)}if(a.pureDataRules){const m=t.toRaw(a.pureDataRules);d(m,!0)}}),()=>{const m={class:s.value,style:i.value};return t.h("div",m,[o?.default?.()])}}}),{componentName:Wi,create:Yi}=J("page"),ml=Yi(ji(Wi));function pl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function jn(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 Xi=Symbol.for("InnerPageScopeKey"),Ps={headerbar:{},radio:{},checkbox:{}};function Qi(e){Object.assign(Ps,e)}function Wn(){return Ps}const Gi=(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},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=nt(),i=s?Kn(s):null,c=t.inject(Xi,!1),d=Wn(),m=e,u=t.computed(()=>{const R={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(R[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),R}),h=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),S=l.height!==null&&l.height!==void 0?de(l.height):null,g=t.computed(()=>{const R={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const q=Re(l.padding??i.headerPadding);return Object.assign(R,q),S&&(i.headerHeight=S),i.headerHeight>0&&(R.height=i.headerHeight),R.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,R.safeAreaTop>0&&(R.top=R.safeAreaTop+(q.top??0),R.height&&R.height>0&&(R.height=R.height+R.safeAreaTop)),R}if(S&&(R.height=S),l.padding){const q=Re(l.padding);Object.assign(R,q)}return R}),y=t.ref(null),b=()=>{if(i&&y.value&&!zn(y.value)){if(!o){const R=pl(y.value);i.headerAllHeight=R.height}return i.headerMounted=!0,!0}return!1},f=Pe(b,120);let v=null;t.onMounted(()=>{i&&(dl(b,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(f),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const p=t.computed(()=>{const R={};return g.value.height!==null&&g.value.height!==void 0&&(R.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(R.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(R.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(R.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(R.paddingBottom=`${g.value.bottom}px`),R}),B=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function w(){r.emit("back")}function C(){r.emit("click-title")}function k(){r.emit("click-right")}function N(){r.emit("click-right-text")}const A=()=>{if(!l.leftShow)return null;const R=[];if(r.slots.left)R.push(r.slots.left());else{if(r.slots.leftIcon){const q=t.h("view",{class:"left-icon",onClick:w},[r.slots.leftIcon()]);R.push(q)}else{const q=l.leftIcon??d.headerbar.Left??a,T=t.h("view",{class:"left-icon",onClick:w},[t.h(q)]);R.push(T)}if(l.leftText){const q=t.h("view",{class:"left-text",onClick:w},[l.leftText]);R.push(q)}}return R.length===0?null:t.h("view",{class:"fox-header-bar__left"},R)},$=()=>{if(!l.rightShow)return null;const R=[];if(r.slots.right)R.push(r.slots.right());else{if(l.rightText){const q=t.h("view",{class:"right-text",onClick:N},[l.rightText]);R.push(q)}if(r.slots.rightIcon){const q=t.h("view",{class:"right-icon",onClick:k},[r.slots.rightIcon()]);R.push(q)}else if(l.rightIcon){const q=t.h("view",{class:"right-icon",onClick:k},[t.h(l.rightIcon)]);R.push(q)}}return R.length===0?null:t.h("view",{class:"fox-header-bar__right"},R)},V=()=>{if(!l.titleShow)return null;const R=[],q=r.slots.default?r.slots.default():null;if(q)R.push(q);else{if(l.title){const T=t.h("view",{class:"title-text"},[l.title]);R.push(T)}if(r.slots.titleIcon){const T=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);R.push(T)}else if(l.titleIcon){const T=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);R.push(T)}}return R.length===0?null:t.h("view",{class:"fox-header-bar__title"},R)},H=()=>{const R=[],q=r.slots.bottom?r.slots.bottom():null;return q&&R.push(q),R.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},R)};return()=>{if(!B.value)return null;const R=[];if(r.slots.all)R.push(r.slots.all());else{const T=[],I=A();I&&T.push(I);const E=V();E&&T.push(E);const z=$();if(z&&T.push(z),T.length>0){const M=t.h("view",{class:h.value},T);R.push(M)}const j=H();j&&R.push(j)}if(R.length===0)return null;const q={class:u.value,style:p.value,ref:y};return t.h("view",q,R)}}}),{componentName:Zi,create:Ji,scope:_i}=J("header-bar"),hl=Ji(Gi(Zi,_i,le.Left,!1)),ec=Symbol.for("InnerPageScopeKey");function tc(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=nt(),s=r?Kn(r):null,i=t.inject(ec,!1),c=e,d=t.computed(()=>{const f={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(f[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),f}),m=o.height!==null&&o.height!==void 0?de(o.height):null,u=t.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const v=Re(o.padding??s.footerPadding);return Object.assign(f,v),m&&(s.footerHeight=m),s.footerHeight>0&&(f.height=s.footerHeight),f.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(v.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(m&&(f.height=m),o.padding){const v=Re(o.padding);Object.assign(f,v)}return f}),h=t.ref(null),S=()=>{if(s&&h.value&&!zn(h.value)){if(!a){const f=pl(h.value);s.footerAllHeight=f.height}return s.footerMounted=!0,!0}return!1},g=Pe(S,120);let y=null;t.onMounted(()=>{s&&(dl(S,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(g),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const b=t.computed(()=>{const f={};return u.value.height!==null&&u.value.height!==void 0&&(f.height=me(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(f.paddingTop=me(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(f.paddingLeft=me(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(f.paddingRight=me(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(f.paddingBottom=me(u.value.bottom)),f});return()=>{const f=l.slots.default?l.slots.default():[],v={ref:h,class:d.value,style:b.value};return t.h("view",v,f)}}}}const{componentName:nc,create:oc,scope:lc}=J("footer-bar"),gl=oc(tc(nc,lc,!1));function ac(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:o,attrs:l}){const r=nt(),s=t.computed(()=>({[e]:!0})),i=r?Kn(r):null,c=t.computed(()=>{const S={};if(r&&i){if(a.padding){const w=Re(a.padding);Object.assign(i.contentPadding,w)}const g=Un(r,i),y=Hn(r,i);let b="";i.contentHeight?b=`${i.contentHeight}`:b=`${i.height}px`,console.debug("[content]page height:",b),console.debug("[content]header height:",g),console.debug("[content]footer height:",y),console.debug("[content]padding:",i.contentPadding),S.height=b;let f=(i&&i.contentPadding&&i.contentPadding.top)??-1;(f>=0||g>0)&&(f=f<0?0:f,S.paddingTop=`${g+f}px`);let v=(i&&i.contentPadding&&i.contentPadding.bottom)??-1;(v>=0||y>0)&&(v=v<0?0:v,S.paddingBottom=`${y+v}px`);const p=(i&&i.contentPadding&&i.contentPadding.left)??-1;p>=0&&(S.paddingLeft=`${p}px`);const B=(i&&i.contentPadding&&i.contentPadding.right)??-1;return B>=0&&(S.paddingRight=`${B}px`),S}if(a.padding){const g=Re(a.padding);g.left&&(S.paddingLeft=`${g.left}px`),g.top&&(S.paddingTop=`${g.top}px`),g.right&&(S.paddingRight=`${g.right}px`),g.bottom&&(S.paddingBottom=`${g.bottom}px`)}return S}),d=t.ref(null),m=()=>{if(i&&d.value){const S=jn(d.value);i.contentInnerHeight=S.height,i.contentInnerWidth=S.width}},u=Pe(m,120);let h=null;return t.onMounted(()=>{requestAnimationFrame(m),window.ResizeObserver&&d.value&&(h=new window.ResizeObserver(u),h.observe(d.value))}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)}),()=>{const S=a.tag??"view",g={...l,ref:d,class:s.value,style:c.value};return t.h(S,g,o)}}}}const{componentName:rc,create:sc}=J("content"),yl=sc(ac(rc)),St="GroupStateKey",Ms=Symbol.for("GroupScopeKey");function Yn(){return t.inject(Ms,!1)}function Xn(e=!0){t.provide(Ms,e)}function ic(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];il(l)||(e[o]=l)})}function cc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ic(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(St,r),r}function Bo(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(St);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=de(r),u=de(s);i||(i=d.type??"grid");const h=()=>{const S=n===""||n===-1,g=de(n);let y=he(a);const b=de(o);if(!S){let p=(g-(y-1)*b)/y;for(;u!==-1&&p>u;)y++,p=(g-(y-1)*b)/y;for(;m!==-1&&y>1&&p<m;)y--,p=(g-(y-1)*b)/y}let f=!1;const v=c.layout;v.value.width=n,v.value.column!==y&&(v.value.column=y,f=!0),v.value.gutter!==b&&(v.value.gutter=b,f=!0),v.value.type!==i&&(v.value.type=i,f=!0),f&&t.triggerRef(v)};if(l)h();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&h()},50)}}function Qn(e,n=!1){let a;return n?a=e.getForParent(St):a=e.get(St),a.layout}function Gn(e,n=!1){let a;return n?a=e.getForParent(St):a=e.get(St),a.order}function cr(e,n=1){if(n==="stretch")return-1;const a=he(n);return a===-1?100:100*a/e}function Zn(e,n,a=1,o=0,l){const r={};let s=0;l?s=de(l):s=cr(n.column,a),s>0&&(r.width=`${s}%`);const i=cr(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 Jn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=he(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=he(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 Ls=Symbol("RollingStateKey");function uc(e){t.provide(Ls,e)}function dc(){return t.inject(Ls,null)}function Ho(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 fc(e){let n=Ho(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=Ho(a),document.body.removeChild(a)}return n}function mc(e,n,a){const o=typeof e=="number"?e:parseInt(e),l=typeof n=="number"?n:parseInt(n),r=typeof a=="number"?a:parseInt(a);if(o<=0)return"1fr";const s=(o-(l-1)*r)/l;return s>0?`${s}px`:"1fr"}const pc={...ge,...xs,...Ds};function hc(e,n,a){return{props:pc,emits:["update:collapse","header-click"],setup(o,l){const r=fl(o.prop??o.name,o,Is),s=cc(r,{type:o.type}),i=Yn();Xn(!0);const c=o.rollingDisplay?dc():null,d=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?Qn(r,!0).value:null),h=t.getCurrentInstance(),S=(L,Y=!1)=>{const D=h?.proxy;D&&typeof D.setNameValidateRules=="function"&&D.setNameValidateRules(L,!0,Y)};t.watch([()=>o.rules,()=>o.pureDataRules],([L,Y],[D,x])=>{if(L&&D){const K=t.toRaw(D),X=t.toRaw(L),ne=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(se=>{ne.includes(se)||(X[se]=[])}),S(X)}if(Y&&x){const K=t.toRaw(x),X=t.toRaw(Y),ne=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(se=>{ne.includes(se)||(X[se]=[])}),S(X,!0)}},{deep:!0});const g=e,y=t.computed(()=>{const L={};if(L.height=T.value,o.width)o.width!=="auto"&&(L.width=me(o.width));else{const Y=i?Gn(r,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const D=Jn(Y,u.value,o.span,o.offset);Object.assign(L,D)}else if(u.value.type==="flow"){const D=Zn(Y,u.value,o.span,o.offset,o.width);Object.assign(L,D)}}}return L}),b=t.computed(()=>{const L=s.layout.value.type;return L==="grid"||L==="flow"?{[`${g}--${L}`]:!0,[`${g}--${L}-justify-${o.justify}`]:!0,[`${g}--${L}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${L}`]:!0,[`${g}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let Y="";if(o.columnWidth)Y=`repeat(auto-fill, ${o.columnWidth})`;else{const D=mc(N.value,s.layout.value.column,s.layout.value.gutter);Y=`repeat(${s.layout.value.column}, ${D})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Y}}}),v=t.toRef(o,"gutter"),p=t.toRef(o,"column"),B=t.computed(()=>i||m.value?!0:be(o.isWrap)),w=[],C=L=>{w.push(L)},k=()=>{let L=w.length;w.splice(0,L)},N=t.ref(-1),A=L=>{const Y=jn(L).width;Y>0&&Y!==N.value&&(N.value=Y)};Bo(r,N.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([N,p,v],([L,Y,D])=>{s.order.index=0,Bo(r,L,Y,D,!1,o.minItemWidth,o.maxItemWidth,o.type)});const $=t.computed(()=>I.value?o.expandText??"":o.collapseText??""),V=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),R=t.ref(),q=t.ref(),T=t.computed(()=>E.value||me(o.height)||""),I=t.ref(!1),E=t.ref(""),z=t.ref(!1);let j=-1;const M=(L,Y=!0)=>{const D=R.value;if(D&&I.value!==L){if(j=j<=0?fc(D):j,z.value=!0,Y)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",L||(E.value="",z.value=!1)},L){let x=0;o.collapseHeight?x=o.collapseHeight:q.value&&q.value.classList.contains(`${e}__header`)&&(x=q.value.offsetHeight),E.value=`${j}px`,t.nextTick(()=>{E.value=`${x}px`})}else E.value=`${j}px`;else if(L){let x=0;o.collapseHeight?x=o.collapseHeight:q.value&&q.value.classList.contains(`${e}__header`)&&(x=q.value.offsetHeight),E.value=`${x}px`}else z.value=!1,E.value=`${j}px`;I.value=L,l.emit("update:collapse",L)}};t.watch(()=>o.collapse,L=>{M(L)});const Z=L=>{l.emit("header-click",L)},ee=()=>{F()},F=L=>{L=L??!I.value,M(L)};Ee({toggleCollapse:F,doLayout:()=>{w[0]&&(A(w[0]),Bo(r,N.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let P=null,G=!0;const O=L=>{if(o.rules){const Y=t.toRaw(o.rules);S(Y)}if(o.pureDataRules){const Y=t.toRaw(o.pureDataRules);S(Y,!0)}if(et&&(L&&M(be(o.collapse),!1),o.autoLayout&&Array.isArray(w)&&w.length>0)){const Y=w[0];if(A(Y),window.ResizeObserver){const D=Pe(()=>A(Y),120);P=new window.ResizeObserver(D),P.observe(Y)}}},U=()=>{P?.disconnect(),P=null},_=!m.value||c?.acquire();_&&(d.value=m.value?!0:null),t.onMounted(()=>{if(_&&(O(G),G=!1),m.value&&c){let L=null,Y=c.initialHeight;c.observe(R.value,D=>{if(D!==d.value)if(D)d.value=!0,I.value||(E.value=""),L=setTimeout(()=>{L=null,d.value!==!1&&(O(G),G=!1)},100);else{if(L!==null&&clearTimeout(L),d.value=!1,!I.value)if(G)E.value=c.initialHeight;else{let x=Ho(R.value);x<=0?E.value=Y:(E.value=`${x}px`,Y=E.value)}G||U()}})}}),t.onUnmounted(()=>{P?.disconnect(),c&&c.unobserve(R.value)});const Q=(L="right")=>{const Y=[];if($.value){const X={class:V.value},ne=t.h("span",X,[$.value]);Y.push(ne)}const D={class:H.value},x=o.collapseIcon??a,K=t.h(x,D);return Y.push(K),Y.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${L}`]:!0},onClick:ee},Y):null},te=(L,Y,D,x)=>{const K={...b.value};if(Y===0&&(K[`${g}__first`]=!0),D>=x-1&&(K[`${g}__last`]=!0),B.value===!1){const X=l.attrs.class;X&&(K[`${X}`]=!0)}return t.h("div",{ref:C,key:`${Y}`,class:K,style:f.value},L)};return()=>{if(m.value&&d.value!==!0){const K=o.tag||"div";return t.h(K,{ref:R,prop:o.name,class:{[`${g}`]:!0,"is-collapse":z.value},style:y.value},[])}s.order.index=0;const L=[];let Y=0;if(l.slots.header){const K={key:`${Y++}`,ref:q,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:Z},X=t.h("div",K,[l.slots.header()]);L.push(X)}else{const K=[],X=o.collapsePosition==="left";if(X&&o.showCollapse){const ne=Q("left");ne&&K.push(ne)}if(o.title||l.slots.title){if(o.showMark){const ne={class:{[`${g}__header-mark`]:!0}};o.markColor&&(ne.style={background:o.markColor});const ae=t.h("div",ne);K.push(ae)}if(l.slots.title){const ne=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);K.push(ne)}else if(o.title){const ne=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.title]);K.push(ne)}}if(l.slots.toolbar&&K.push(l.slots.toolbar()),!X&&o.showCollapse){const ne=Q("right");ne&&K.push(ne)}if(K.length>0){const ne={key:`${Y++}`,ref:q,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:Z},ae=t.h("div",ne,K);L.push(ae)}}k();const D=l.slots.default?l.slots.default():[],x=s.layout.value.type;if(x==="grid"){const K=te(D,Y++,0,D.length);L.push(K)}else if(x==="flow"){const K=te(D,Y++,0,D.length);L.push(K)}else for(let K=0;K<D.length;K++){const X=D[K],ne=te([X],Y++,K,D.length);L.push(ne)}if(B.value){const K=o.tag||"div";return t.h(K,{ref:R,prop:o.name,class:{[`${g}`]:!0,"is-collapse":z.value},style:y.value},[L])}else return L}}}}const{componentName:gc,create:yc,scope:vc}=J("group"),vl=yc(hc(gc,vc,le.RectUp));function bc(e){return e===window}const kc=/matrix\((.+)\)/,bl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(bc(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:d}=window.getComputedStyle(l);if(d){const m=kc.exec(d);if(m){let h=m[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 Sc{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 Cc{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 Sc,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 Ft=new Cc,zs={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:wc,create:Nc}=J("price"),Bc=Nc({props:{...zs},setup(e){const n=t.computed(()=>({[wc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ke(e.price)==0?"":Pn(e.price,e.decimalLength,!0,he(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}}}),oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Ac=["innerHTML"],Vc=["innerHTML"];function Tc(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,Vc)):t.createCommentVNode("",!0)],2)}const Je=oe(Bc,[["render",Tc]]),{componentName:Ao,create:$c}=J("hint-text"),Ec=$c({components:{Price:Je},props:{...zs,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),d=(V,H,R,q,T,I)=>{const E=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,j=V.split("-");let M=[];j[0]==="top"?M=["top","bottom","right","left"]:j[0]==="bottom"?M=["bottom","top","right","left"]:j[0]==="left"?M=["left","top","bottom","right"]:j[0]==="right"&&(M=["right","top","bottom","left"]);const Z={top:null,right:null,bottom:null,left:null},ee=[];for(let F=0;F<M.length;F++){const W=M[F];if(ee[0]=W,j[1]&&(ee[1]=j[1]),W==="top"){const P=H.y-I-e.arrowSize-e.offset;if(P>=0){Z.top=P;let G=0;j[1]==="start"?G=H.x:j[1]==="end"?G=H.x+R-T:G=H.x+R/2-T/2;const O=E-G-T;O<0?(G+=O,u.value=-O):u.value=0,Z.left=G<0?0:G;break}}else if(W==="bottom"){const P=H.y+q+e.arrowSize+e.offset;if(P+I<=z){Z.top=P;let G=0;j[1]==="start"?G=H.x:j[1]==="end"?G=H.x+R-T:G=H.x+R/2-T/2;const O=E-G-T;O<0?(G+=O,u.value=-O):u.value=0,Z.left=G<0?0:G;break}}else if(W==="left"){const P=H.x-T-e.arrowSize-e.offset;if(P>=0){Z.left=P;let G=0;j[1]==="start"?G=H.y:j[1]==="end"?G=H.y+q-I:G=H.y+q/2-I/2,Z.top=G<0?0:G;break}}else if(W==="right"){const P=H.x+R+e.arrowSize+e.offset;if(P+T<=E){Z.left=P;let G=0;j[1]==="start"?G=H.y:j[1]==="end"?G=H.y+q-I:G=H.y+q/2-I/2,Z.top=G<0?0:G;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:Z}},m=(V,H,R=10)=>{if(!et||H===!1||!V)return;o.value=bl(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const q=c.value.offsetHeight,T=c.value.offsetWidth,{bestPlacement:I,bestInsetRect:E}=d(e.placement,o.value,l.value,r.value,T,q);s.value=I,a.value=E,i.value=!0},u=t.ref(0),h=Pe(()=>{m(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,V=>{S.value=V});const g=t.computed(()=>S.value&&y.value),y=t.ref(!0),b=Pe(V=>{const H=V[0];H&&(y.value=H.isIntersecting)},10),f=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([V,H])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Ft.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeUnmount(()=>{Ft.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const v=t.computed(()=>{const V={[Ao]:!0};return s.value.startsWith("top")?V["is-top"]=!0:s.value.startsWith("right")?V["is-right"]=!0:s.value.startsWith("bottom")?V["is-bottom"]=!0:s.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),p=t.computed(()=>{const V={};a.value.top!==null&&(V.top=`${a.value.top}px`),a.value.right!==null&&(V.right=`${a.value.right}px`),a.value.bottom!==null&&(V.bottom=`${a.value.bottom}px`),a.value.left!==null&&(V.left=`${a.value.left}px`),e.autoFit&&(V["min-width"]=`${l.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return V["max-width"]=`${H}px`,i.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),B=t.computed(()=>{const V=[`${Ao}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),w=t.computed(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),C=t.computed(()=>({[`${Ao}__arrow`]:!0})),k=t.computed(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,s.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="top-start"?(V.left=`${e.arrowOffset+u.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(V.right=`${e.arrowOffset-u.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(V.left=`${e.arrowOffset+u.value}px`,V.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(V.right=`${e.arrowOffset-u.value}px`,V.top=`-${e.arrowSize}px`):s.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),N=t.computed(()=>g.value&&e.closeOnClick),A=t.computed(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:g,tipRef:c,classes:v,styles:p,textClasses:B,textStyles:w,arrowClasses:C,arrowStyles:k,overlayShow:N,overlayStyle:A,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),xc=["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,xc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Os=oe(Ec,[["render",Dc]]);class _n{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const jo={},Ic=new _n,bt=new Map,In=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},qc=e=>{e.unmount=In;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...jo,...a,...e}:e={...jo,...e},e.transition=!1;const o=t.createVNode(Os,e);return t.render(o,n),e.id}},Pc=e=>{e.unmount=In;let n=e.id??`hinttext_${Ic.get()}`;e={...jo,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Os,e);return t.render(o,a),document.body.appendChild(a),n},Mc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},$t={show(e,n,a={},o=!0){Mc(n);const l=a.id;return l&&bt.has(l)?qc({...a,message:n,reference:e}):(o&&In(),Pc({...a,message:n,reference:e}))},hide(e){In(e)},install(e){e.config.globalProperties.$hintText=$t}};function Lc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...ge,...ve},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=nt(),c=Yn();Xn(!1);const d=t.computed(()=>c&&i?Qn(i,!1).value:null),m=e,u=t.ref(null),h=t.computed(()=>{const x={[m]:!0,[`${m}__gutter`]:d.value&&d.value.type!=="flow",[`${m}__stretch`]:l.span==="stretch",[`${m}__input--border`]:be(l.hasBorder)};if(x[l.errorMarkClass]=!!I.value,x[l.warnMarkClass]=!!q.value,x[l.infoMarkClass]=!!H.value,typeof u.value=="function"){const K=u.value(s);x[K]=!0}else if(typeof u.value=="string"){const K=u.value;x[K]=!0}return x}),S=t.ref(null),g=t.computed(()=>{const x={};if(l.width)l.width!=="auto"&&(x.width=me(l.width));else{const K=c&&i?Gn(i,!1):null;if(d.value&&K){if(d.value.type==="grid"){const X=Jn(K,d.value,l.span,l.offset);Object.assign(x,X)}else if(d.value.type==="flow"){const X=Zn(K,d.value,l.span,l.offset,l.width);Object.assign(x,X)}}}if(typeof S.value=="function"){const K=S.value(s);K&&Object.assign(x,K)}else if(S.value&&typeof S.value=="object"){const K=S.value;Object.assign(x,K)}return x}),y=t.ref(null),b=t.computed({get:()=>y.value??be(l.isRequired),set:x=>{y.value=x}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",v=Ve(t.toRef(l,"labelPosition"),"labelPosition",xn.Near),p=t.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),B=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${p.value}`]:!0})),w=t.computed(()=>({label:!0,[`label--${p.value}`]:!0})),C=Ve(t.toRef(l,"labelWidth"),"labelWidth",xn.Near),k=t.computed(()=>C&&C.value?{width:me(C.value)}:{}),N=t.computed(()=>({"label--string":!0,"label--required":b.value})),A=t.computed(()=>({content:!0,[l.contentClass]:!0})),$=t.computed(()=>({...l.contentStyle})),V=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(x){b.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x},setCustomClassName(x){u.value=x},setCustomStyle(x){S.value=x}});const H=t.computed(()=>l.infoTip||V.infoTip),R=t.computed(()=>l.infoIcon||V.infoIcon),q=t.computed(()=>l.warnTip||V.warnTip),T=t.computed(()=>l.warnIcon||V.warnIcon),I=t.computed(()=>l.errorTip||V.errorTip),E=t.computed(()=>l.errorIcon||V.errorIcon),z=t.computed(()=>I.value?"error":q.value?"warn":H.value?"info":""),j=()=>z.value.length>0,M=t.computed(()=>z.value==="error"?I.value:z.value==="warn"?q.value:z.value==="info"?H.value:""),Z=t.computed(()=>z.value==="error"?E.value:z.value==="warn"?T.value:z.value==="info"?R.value:null),ee=t.computed(()=>{const x={[`${m}__tip`]:!0,[`${m}__tip--${z.value}`]:!0,[`${m}--animate`]:!0};return z.value==="error"&&l.errorClass?x[`${l.errorClass}`]=!0:z.value==="warn"&&l.warnClass?x[`${l.warnClass}`]=!0:z.value==="info"&&l.infoClass&&(x[`${l.infoClass}`]=!0),x}),F=t.computed(()=>{const x={};return v&&v.value==="top"||!f()?x["padding-left"]="0px":C&&C.value&&(x["padding-left"]=me(C.value)),x}),W=t.ref();let P="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([x,K,X,ne])=>{W.value&&(x&&!ue(K)?P?a.show(W.value,K,{...ne,id:P,type:X},!0):P=a.show(W.value,K,{...ne,type:X},!0):a.hide(P))});let G=null;const O=()=>{G||!W.value||(G=new IntersectionObserver(x=>{let K=!1;for(let X of x)if(X.intersectionRatio>0){K=!0,K&&r.emit("appear",X);break}K||r.emit("disappear")}),G.observe(W.value))},U=()=>{!G||!W.value||(G.unobserve(W.value),G=null)};t.watch(()=>be(l.appearListen),x=>{x?O():U()}),t.onMounted(()=>{be(l.appearListen)&&O()}),t.onUnmounted(U);const _=()=>{if(!f())return null;const x=[],K=r.slots?.label?.()??l.label,X={class:N.value},ne=t.h("div",X,[K]);if(x.push(ne),r.slots.fixedPreTip){const se=r.slots.fixedPreTip();x.push(se)}const ae={class:w.value,style:k.value};return t.h("div",ae,x)},Q=()=>{const x=[];if(r.slots.prepend){const X=r.slots.prepend();x.push(X)}if(r.slots.default){const X=r.slots.default();x.push(X)}if(r.slots.append){const X=r.slots.append();x.push(X)}if(r.slots.fixedTip){const X={class:[`${m}__fixed-tip`]},ne=t.h("div",X,[r.slots.fixedTip()]);x.push(ne)}const K={ref:W,class:A.value,style:$.value};return t.h("div",K,x)},te=()=>{const x=Z.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--icon"},[x()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(x)]):null},L=()=>{const x=M.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--text"},[x()]):t.h("div",{class:"fox-item__tip--text"},[x]):null},Y=()=>{if(!j())return null;const x=[],K=te();K&&x.push(K);const X=L();X&&x.push(X);const ne={class:ee.value,style:F.value};return t.h("div",ne,x)},D=()=>r.slots?.hide?.()??null;return()=>{const x=[],K=[],X=_();X&&K.push(X);const ne=Q();ne&&K.push(ne);const ae={class:B.value},se=t.h("div",ae,K);x.push(se);const fe=Y();fe&&x.push(fe);const we=D();we&&x.push(we);const Xe={class:h.value,style:g.value,prop:l.prop};return t.h("div",Xe,x)}}}}const{componentName:zc,create:Oc,scope:Rc}=J("item"),Ne=Oc(Lc(zc,Rc,$t,!1)),Rs={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Fc(e,n){return{props:{...Rs},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=nt(),i=Yn();Xn(!1);const c=t.computed(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=me(a.width));else if(i&&s){const m=Qn(s,!1),u=Gn(s,!1);if(m.value&&u){if(m.value.type==="grid"){const h=Jn(u,m.value,a.span,a.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=Zn(u,m.value,a.span,a.offset,a.width);Object.assign(d,h)}}}return a.gutter&&(d.gap=me(a.gutter)),d});return()=>{const d=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(S)}d.push(u[h])}else Reflect.apply([].push,d,u)}const m={class:r.value,style:c.value};return t.h("div",m,d)}}}}const{componentName:Kc,create:Uc}=J("row-item"),eo=Uc(Fc(Kc));var Hc=t.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),jc=Hc;function Wc(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 Yc={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 Xc(e,n,a,o=!1){return{props:{...Yc},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const p={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(p[`${e}--${l.type??"default"}`]=!0),l.size&&(p[`${e}--${l.size}`]=!0),p}),c=t.computed(()=>{const p={},B=l.textColor??l.color;return B&&(p.color=B),p}),d=(p,B)=>{let w=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(p.indexOf(C)!==-1){const N=p.replace(new RegExp(C,"g"),`<span>${C}</span>`);B.innerHTML=N,B.class["is-highlight"]=!0,w=t.h(l.tag,B)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(p);C&&(B.innerHTML=C,B.class["is-highlight"]=!0,w=t.h(l.tag,B))}return w},m=p=>{r.emit("click",p)};let u="";const h=()=>{const p=s.value;if(!p)return;const B=p.clientWidth;Wc(p,w=>{const C=p.innerHTML??"";ue(C)||w<B||(u?a?.show(p,C,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(p,C,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{u&&a?.hide(u)};let g=null;const y=p=>{g||(g=setTimeout(()=>{h(),g=null},l.showAfter??0))},b=p=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{S()},l.hideAfter??0)},f=()=>{const p=s.value;p&&(p.addEventListener("mouseover",y),p.addEventListener("mouseleave",b))},v=()=>{const p=s.value;p&&(p.removeEventListener("mouseover",y),p.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!be(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!be(l.showOverflowTooltip)||!a||v()}),()=>{const p={onClick:m,class:i.value,style:c.value,ref:s};let B=null;if(be(l.numberFormat)&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const A=N[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const $=he(l.digits),V=he(l.decimalLength),H=be(l.autoPadding);let R=`${N[0].children}`,q=R.split("").reverse().join("");q=Pn(q,V,H,$,l.separator),R=q.split("").reverse().join(""),l.highlightFilter!==void 0&&(B=d(R,p)),B||(p.innerHTML=R,B=t.h(l.tag,p))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const A=N[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const $=`${N[0].children}`;B=d($,p),B||(p.innerHTML=$,B=t.h(l.tag,p))}}}B||(B=t.h(l.tag,p,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return B;let C=null;if(l.icon){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const A={},$=l.color;$&&(A.color=$);const V={class:N,style:A};C=t.h("view",V,t.h(l.icon))}else if(r.slots.mark){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const A={},$=l.color;$&&(A.color=$);const V={class:N,style:A};C=t.h("view",V,{default:r.slots.mark})}else{const N={[`${e}__mark`]:!0};l.type&&(N[`${e}__mark--${l.type??"default"}`]=!0);const A={},$=l.color;$&&(A["background-color"]=$);const V={class:N,style:A};C=t.h("view",V)}const k={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",k,[C,B])}}}}const{componentName:Qc,create:Gc,scope:Zc}=J("text"),to=Gc(Xc(Qc,Zc,$t,!1)),Jc={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function _c(e,n,a=!1){return{props:{...Jc},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:s}){const i=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),d=t.ref(0),m=t.ref(0),u=t.ref(0),h=t.ref(o.placement),S=t.ref(!1),g=t.ref(!1),y=t.ref(null),b=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,f=(M,Z,ee,F,W,P,G,O=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,_=document.documentElement.clientHeight||document.body.clientHeight,Q=M.split("-");let te=[];O?Q[0]==="top"?te=["top","bottom","right","left"]:Q[0]==="bottom"?te=["bottom","top","right","left"]:Q[0]==="left"?te=["left","top","bottom","right"]:Q[0]==="right"&&(te=["right","top","bottom","left"]):te=[M[0]];const L={top:null,right:null,bottom:null,left:null},Y=[];for(let D=0;D<te.length;D++){const x=te[D];if(Y[0]=x,Q[1]&&(Y[1]=Q[1]),x==="top"){const K=ee-G-o.arrowSize/2-o.offset;if(K>=0){L.top=K;let X=0;Q[1]==="start"?X=Z:Q[1]==="end"?X=Z+F-P:X=Z+F/2-P/2;const ne=U-X-P;ne<0?(X+=ne,p.value=-ne):p.value=0,L.left=X<0?0:X;break}}else if(x==="bottom"){const K=ee+W+o.arrowSize/2+o.offset;if(K+G<=_){L.top=K;let X=0;Q[1]==="start"?X=Z:Q[1]==="end"?X=Z+F-P:X=Z+F/2-P/2;const ne=U-X-P;ne<0?(X+=ne,p.value=-ne):p.value=0,L.left=X<0?0:X;break}}else if(x==="left"){const K=Z-P-o.arrowSize/2-o.offset;if(K>=0){L.left=K;let X=0;Q[1]==="start"?X=ee:Q[1]==="end"?X=ee+W-G:X=ee+W/2-G/2,L.top=X<0?0:X;break}}else if(x==="right"){const K=Z+F+o.arrowSize/2+o.offset;if(K+P<=U){L.left=K;let X=0;Q[1]==="start"?X=ee:Q[1]==="end"?X=ee+W-G:X=ee+W/2-G/2,L.top=X<0?0:X;break}}}return{bestPlacement:Y.join("-"),bestInsetRect:L}},v=()=>{const M=o.visible,Z=o.autoFit;if(!et||M===!1)return;if(o.reference){const G=b(),O=bl(G);c.value=O.x,d.value=O.y,m.value=G.offsetWidth,u.value=G.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,d.value=o.referenceInset.top,m.value=o.referenceInset.right-o.referenceInset.left,u.value=o.referenceInset.bottom-o.referenceInset.top);const ee=y.value.offsetWidth,F=y.value.offsetHeight,{bestPlacement:W,bestInsetRect:P}=f(o.placement,c.value,d.value,m.value,u.value,ee,F,Z);h.value=W,i.value=P},p=t.ref(0),B=Pe(()=>{v()},10),w=t.ref(o.visible);t.watch([()=>o.visible],([M])=>{w.value=M,M?(S.value=M,setTimeout(()=>{v(),g.value=!0},0)):g.value=!1});const C=t.computed(()=>w.value&&k.value),k=t.ref(!0),N=Pe(M=>{const Z=M[0];Z&&(k.value=Z.isIntersecting)},10),A=new IntersectionObserver(N);t.watch([()=>o.reference,()=>o.referenceInset],([M,Z],[ee,F])=>{!M&&!Z||(setTimeout(()=>{v()},0),o.autoFit&&(ee&&(Ft.unwatch(ee,B),A.unobserve(ee)),M&&(Ft.watch(M,B),A.observe(M))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Ft.unwatch(o.reference,B),A.unobserve(o.reference),A.disconnect())});const $=t.computed(()=>{const M={[e]:!0};return h.value.startsWith("top")?M["is-top"]=!0:h.value.startsWith("right")?M["is-right"]=!0:h.value.startsWith("bottom")?M["is-bottom"]=!0:h.value.startsWith("left")&&(M["is-left"]=!0),M[`is-${o.effect}`]=!0,!g.value&&C.value&&(M["is-opacity"]=!0),g.value&&C.value&&(M["is-show"]=!0),C.value||(M["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(M[`${o.customClass}`]=!0),M}),V=t.computed(()=>{const M={};return i.value.top!==null&&(M.top=`${i.value.top}px`),i.value.right!==null&&(M.right=`${i.value.right}px`),i.value.bottom!==null&&(M.bottom=`${i.value.bottom}px`),i.value.left!==null&&(M.left=`${i.value.left}px`),o.width&&(M.width=o.width),o.zIndex&&(M["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(M,o.customStyle),M}),H=()=>{w.value=!1,l("update:visible",!1)},R=()=>{if(!o.showOverlay)return null;const M={class:`${e}__overlay`,onClick:H};return t.h("div",M)},q=()=>{let M=null;return r.title?M=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(M=t.h("div",{class:`${e}__title`},[o.title])),M},T=t.computed(()=>({[`${e}__arrow`]:!0})),I=t.computed(()=>{const M={};return o.showArrow?(M.width=`${o.arrowSize}px`,M.height=`${o.arrowSize}px`,h.value==="top"?(M.left="50%",M.bottom="0",M.transform="translate(-50%, 50%)"):h.value==="top-start"?(M.left=`${o.arrowOffset+p.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):h.value==="top-end"?(M.right=`${o.arrowOffset-p.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):h.value==="right"?(M.left="0",M.top="50%",M.transform="translate(-50%, -50%)"):h.value==="right-start"?(M.left="0",M.top=`${o.arrowOffset}px`,M.transform="translate(-50%, 50%)"):h.value==="right-end"?(M.left="0",M.bottom=`-${o.arrowOffset}px`,M.transform="translate(-50%, 50%)"):h.value==="bottom"?(M.left="50%",M.top="0",M.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(M.left=`${o.arrowOffset+p.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(M.right=`${o.arrowOffset-p.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):h.value==="left"?(M.right="0",M.top="50%",M.transform="translate(50%, -50%)"):h.value==="left-start"?(M.right="0",M.top=`${o.arrowOffset}px`,M.transform="translate(50%, -50%)"):h.value==="left-end"&&(M.right="0",M.bottom=`-${o.arrowOffset}px`,M.transform="translate(50%, -50%)"),M):{display:"none"}}),E=()=>{const M={class:T.value,style:I.value};return t.h("div",M)},z=()=>{w.value===!1&&(S.value=!1)},j=M=>{if(!y.value||w.value===!1)return;const{relatedTarget:Z}=M;y.value.contains(Z)||(w.value=!1,l("update:visible",!1))};return s({doLayout:v}),()=>{if(!S.value)return null;const M=[],Z=R();Z&&M.push(Z);const ee=[],F=q();if(F&&ee.push(F),r.default){const U=r.default();ee.push(U)}const W=E();W&&ee.push(W);const P={ref:y,class:$.value,style:V.value,onAnimationend:z};o.leaveHide&&(P.onMouseleave=j);const G=t.h("div",P,{default:()=>ee});return M.push(G),t.h(t.Teleport,{to:o.teleport,disabled:o.teleportDisable},{default:()=>M})}}}}const{componentName:eu,create:tu,scope:nu}=J("popover-dialog"),no=tu(_c(eu,nu,!1)),ou={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function lu(e,n,a){return{props:{...Rs,...ou},emits:["click"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["moreText"]),c=e,d=t.computed(()=>({[c]:!0}));function m(C){return C.props||{}}function u(C){return!!m(C).disabled}function h(C){return C.children??[]}const S=t.ref(),g=t.computed(()=>S.value?.$el??null),y=t.ref(!1),b=C=>{y.value=C},f=()=>{y.value=!y.value};function v(C,k){return()=>{if(k)return;y.value=!1,m(C)?.onClick?.()}}function p(C,k){const N=h(C),A=u(C),$=v(C,A),V=[`${c}__dropdown-item`];A&&V.push("is-disabled");const H={class:V,onClick:$};return t.h("span",H,N)}const B=C=>{const k=o.maxDisplayCount??C.length;if(k>=C.length)return C;const N=[],A=k-1;for(let I=0;I<A;I++)N.push(C[I]);const $=(r.moreIcon&&r.moreIcon())??(o.moreIcon&&t.h(o.moreIcon))??t.h(a),V={ref:I=>S.value=I,class:`${c}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:o.type,onClick:f},H=t.h(to,V,{default:()=>i.moreText.value,mark:()=>$});N.push(H);const R=[];for(let I=A;I<C.length;I++){const E=p(C[I]);R.push(E)}const q={placement:o.dropdownPlacement,"onUpdate:visible":b,visible:y.value,reference:g.value,"custom-class":`${c}__popover`},T=t.h(no,q,{default:()=>R});return N.push(T),N},w=()=>(r.default?.()||[]).filter(k=>k.type!==Comment);return()=>{const C=w(),k=B(C),N={class:d.value};return t.h(eo,N,{default:()=>k})}}}}const{componentName:au,create:ru,scope:su}=J("buttons-item"),kl=ru(lu(au,su,jc)),iu={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function cu(e,n){return{props:{...iu},setup(a,o){const l=nt(),r=Yn();Xn(!1);const s=t.computed(()=>r&&l?Qn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=me(a.width));else{const u=r&&l?Gn(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=Jn(u,s.value,a.span,a.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=Zn(u,s.value,a.span,a.offset,a.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",m,o.slots.default()):t.h("div",m)}}}}const{componentName:uu,create:du}=J("slot-item"),Sl=du(cu(uu)),ur={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 fu(e,n,a,o){return{props:{...ge,...ve,...ur},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(!1),h=Me(l,"modelValue",null,c),S=e,g=t.computed(()=>({[S]:!0,"is-disabled":s.value,"is-readonly":i.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const T={};return y.value&&(T["text-align"]=y.value),T}),f=T=>{let E=T.target.value;l.type==="digit"&&(E=Ro(E,!0)),l.type==="number"&&(E=Ro(E,!1)),l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),h.value=E,c("update:modelValue",E,T),c("change",E,T)};let v=Me(l,"hintText"),p=t.ref(!1);const B=T=>{let E=T.target.value;u.value=!0,ue(v.value)||(p.value=!0),c("focus",E,T)},w=T=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let E=T.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),c("blur",E,T)},C=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),k=t.computed(()=>{const T={};return r.slots.append&&!N.value&&!R.value&&(T.display="none"),T}),N=t.computed(()=>ke(l.unit)>0),A=t.computed(()=>!R.value),$=t.computed(()=>({[`${S}__unit`]:!0,hidden:!A.value})),V=T=>{h.value="",c("update:modelValue","",T),c("change","",T),c("clear","")},H=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),R=t.computed(()=>{let T=ke(h.value)>0;return be(l.clearable)&&T&&u.value}),q=t.computed(()=>({action:!0,hidden:!R.value}));return()=>{const T={class:g.value,style:b.value,type:l.type,maxlength:l.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:B,onBlur:w},I=[],E=t.h("input",T);I.push(E);const z=[];if(H.value){const P={class:["action-icon"]},G=t.h(o,P),O={class:q.value,onClick:V},U=t.h("view",O,{default:()=>[G]});z.push(U)}if(N.value){const P=t.h("view",{class:$.value},[l.unit]);z.push(P)}const j={class:C.value,style:k.value},M=t.h("view",j,{default:()=>z});I.push(M);const Z={default:()=>I};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const F={...tt(l,ur),hintText:v.value,hintVisible:p.value};return l.prop&&(F.prop=`${l.prop}_item`),t.h(a,F,Z)}}}}const{componentName:mu,create:pu,scope:hu}=J("input-item"),Cl=pu(fu(mu,hu,Ne,le.CircleClose));function dr(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 fr(e,n,a=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=ss(`${e}`,`${n}`);return dr(o)}else{let o=sl(`${e}`,is(`${n}`),20);return dr(o)}}function gu(e,n=-1,a=!1,o=3,l=","){return Pn(e,n,a,o,l)}function mr(e,n,a,o,l=!0){if(e==="")return"";if(e=cs(e),n=he(n),n==1)return e;if(o)e=fr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(he(a)+2,"0"):e=sl(e,1,he(a)));else{let r=-1*n;e=fr(e,r)}return e}function pr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=be(n.minInclude),l=Mo(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=be(n.maxInclude),l=Mo(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const hr={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 yu(e,n,a,o){return{props:{...ge,...ve,...hr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=t.ref(!1),m=Me(l,"modelValue",null,c),u=t.ref("");t.watch([()=>m.value,()=>l.rates,()=>l.precision],([j,M,Z])=>{if(ue(j)){u.value="";return}const ee=mr(j,M,Z,!1);u.value!==ee&&(u.value=ee)},{immediate:!0});const h=t.computed(()=>{let j="";return d.value&&(j=u.value),j}),{t:S}=ie.useFoxI18n(n),g=t.computed(()=>{let j=l.placeholder??"";return!d.value&&!ue(u.value)?j=gu(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):j=ue(j)?S(["placeholder"]):j,j}),y=e,b=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Ve(t.computed(()=>l.textAlign),"textAlign"),v=t.computed(()=>{const j={};return f.value&&(j["text-align"]=f.value),j}),p=t.ref(""),B=t.computed(()=>{let j=p.value;return ue(j)&&(j=l.errorTip??""),j}),w=t.ref(""),C=t.ref(!1),k=j=>{let Z=j.target.value;if(ue(Z)){u.value="",m.value="",c("update:modelValue","",j),c("change","",j),be(l.showTip)&&C.value&&(C.value=!1);return}if(Z.length>=2){let ee=Z;if(ee.charAt(0)=="-"&&(ee=ee.substring(1)),ee.length>=2&&ee.charAt(0)=="0"&&ee.charAt(1)!="."){t.triggerRef(u);return}}if(Z!="-"){if(!cl(Z)){t.triggerRef(u);return}if(l.integerLength!=-1&&gs(Z)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&ys(Z)>Number(l.decimalLength)){t.triggerRef(u);return}let ee=pr(Z,l);if(ee.maxValid===!1){p.value=ee.message,t.triggerRef(u);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(u);return}w.value=Z,be(l.showTip)&&(C.value=Z.length>0),u.value=Z,m.value=mr(Z,l.rates,l.precision,!0),c("update:modelValue",m.value,j),c("change",m.value,j)},N=j=>{if(d.value=!0,be(l.showTip)){let M=u.value;ue(M)&&(M=l.hintText),ue(M)||(w.value=M,C.value=!0)}p.value="",c("focus",m.value,j)},A=j=>{if(setTimeout(()=>{d.value=!1,be(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let M=pr(u.value,l);if(M.minValid===!1||M.maxValid===!1){p.value=M.message;return}}c("update:modelValue",m.value,j),c("blur",m.value,j)},$=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),V=t.computed(()=>{const j={};return r.slots.append&&!H.value&&!E.value&&(j.display="none"),j}),H=t.computed(()=>ke(l.unit)>0),R=t.computed(()=>!E.value),q=t.computed(()=>({[`${y}__unit`]:!0,hidden:!R.value})),T=j=>{m.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},I=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),E=t.computed(()=>{let j=ke(m.value)>0;return be(l.clearable)&&j&&d.value}),z=t.computed(()=>({action:!0,hidden:!E.value}));return()=>{let j={class:b.value,style:v.value,type:"digit",maxlength:l.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:k,onFocus:N,onBlur:A},M=[],Z=t.h("input",j);M.push(Z);let ee=[];if(I.value){const U={class:["action-icon"]},_=t.h(o,U),Q={class:z.value,onClick:T},te=t.h("view",Q,{default:()=>[_]});ee.push(te)}if(H.value){const U=t.h("view",{class:q.value},[l.unit]);ee.push(U)}const F={class:$.value,style:V.value},W=t.h("view",F,{default:()=>ee});M.push(W);const P={default:()=>M};P.label=r.slots.default,P.prepend=r.slots.prepend,P.append=r.slots.append,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const O={...tt(l,hr),errorTip:B.value,hintText:w.value,hintVisible:C.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(a,O,P)}}}}const{componentName:vu,create:bu,scope:ku}=J("money-item"),wl=bu(yu(vu,ku,Ne,le.CircleClose)),Wo={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:Su,create:Cu,scope:wu}=J("textarea"),Nu=Cu({props:{...Wo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(wu);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Su;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:g,minHeight:y}=e.autosize;g!==void 0&&(S=Math.min(S,g)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",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 g=h.target.value;c(g,h),n("blur",{value:g,event:h})}}}}),Bu=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Au={key:0,class:"fox-textarea__limit"};function Vu(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,Bu),e.limitShow?(t.openBlock(),t.createElementBlock("view",Au,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const oo=oe(Nu,[["render",Vu]]);function Tu(e,n,a,o){return{props:{...ge,...ve,...Wo},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=Me(l,"modelValue",null,c),m=y=>{d.value=y,c("update:modelValue",y,{}),c("change",y,{})};let u=Me(l,"hintText"),h=t.ref(!1);const S=y=>{ue(u.value)||(h.value=!0),c("focus",d.value,y)},g=y=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,y)};return()=>{const b={...ye(l,Wo),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:S,onBlur:g},f=[],v=t.h(o,b);f.push(v);const p={default:()=>f};p.label=r.slots.default,p.prepend=r.slots.prepend,p.append=r.slots.append,p.fixedPreTip=r.slots.fixedPreTip,p.fixedTip=r.slots.fixedTip;const w={...ye(l,ve,ge)};return l.prop&&(w.prop=`${l.prop}_item`),t.h(a,w,p)}}}}const{componentName:$u,create:Eu,scope:xu}=J("textarea-item"),Nl=Eu(Tu($u,xu,Ne,oo));function Du(e){return e===window}const qe=e=>{const n=t.unref(e);if(Du(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}},gr=10;function Fs(e,n){return e>n&&e>gr?"horizontal":n>e&&n>gr?"vertical":""}function lo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function ao(){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 d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Fs(e.offsetX,e.offsetY))}),start:(s=>{if(o(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.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 lt(){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),d=t.ref(0),m=t.ref(""),u=()=>m.value==="vertical",h=()=>m.value==="horizontal",S=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",a.value=0};return{move:(b=>{if(b.touches){const p=b.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-n.value,l.value=p.clientX,r.value=p.clientY}else{const v=b;s.value=v.clientX-e.value,i.value=v.clientY-n.value,l.value=v.clientX,r.value=v.clientY}c.value=Math.abs(s.value),d.value=Math.abs(i.value),o.value=Date.now()-a.value,m.value||(m.value=Fs(c.value,d.value))}),start:(b=>{if(S(),b.touches){const p=b.touches[0];e.value=p.clientX,n.value=p.clientY}else{const v=b;e.value=v.clientX,n.value=v.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:d,direction:m,isVertical:u,isHorizontal:h}}let Iu=2e3;const yr=()=>Iu++,Fe={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:{}}},qu=(e,n)=>({components:n,props:{...Fe},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=yr());const r=t.computed(()=>{const y=e,b=[y,`${y}--${a.position}`];return a.round&&b.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&b.push(`${y}--${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=yr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},m=y=>{o("click-pop",y)},u=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},h=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},S=y=>{o("opend",y)},g=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():d()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:u,onClickOverlay:h,onOpened:S,onClosed:g}}}),Ks={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}},Yo={...Fe,...Ks,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},poppable:{type:[Boolean],default:()=>!0}};let Us=36;function Pu(){return Us}function Mu(e){Us=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Lu(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function vr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let zu=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Ou(){const e=t.getCurrentInstance();return new zu(e.proxy)}function br(e,n,a){const o=Oe(e,n),l=Oe(e,a);if(o!==l)return!1;const r=ut(e,n),s=ut(e,a);return r===s}function Ru(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 d=a[s].findIndex(m=>{if(r==="text")return Oe(e,m)===i;if(r==="value"){let u=ut(e,m);return u==null&&(u=Oe(e,m)),u===i}else if(r==="item")return br(e,m,i)});if(d==-1)break;l.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let d=s.findIndex(u=>{if(r==="text")return Oe(e,u)===c;if(r==="value"){let h=ut(e,u);return h==null&&(h=Oe(e,u)),h===c}else if(r==="item")return br(e,u,c)});if(d==-1)break;l.push(d);const m=Xo(e,s[d]);if(!Array.isArray(m))break;s=m}}return l}function kr(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 d=i[c],m=Oe(e,d);if(l.texts.push(m),l.items.push(d),r==="text")l.values.push(m);else if(r==="value"){let u=ut(e,d);u==null&&(u=m),l.values.push(u)}else l.values.push(d)}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 d=s[c],m=Object.assign({},d);m.children=null;const u=Oe(e,d);if(l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let h=ut(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(m);if(!Array.isArray(d.children))break;s=d.children}}return l}function Sr(e){return{text:e,value:e}}const Fu=15,Ku=300,Uu=200,{create:Hu}=J("picker-column");function ju(e){e.stopPropagation()}function Wu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),ju(e)}const Yu=Hu({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Ks},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${he(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=k=>k>=u.currIndex+8||k<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=k=>`transform: rotate3d(1, 0, 0, ${-u.rotation*k}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),m=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=k=>Oe(e,k),S=k=>ut(e,k),g=lt(),y=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},b=(k,N=!1,A=!1)=>{if(u.currIndex=k,N){const $=()=>{u.moving=!1,n("update:modelValue",k),n("change",k)};A?u.transitionEndTrigger=$:$()}},f=(k,N,A)=>{let $=k+u.startDistance;if(N==="end"){const V=-(e.source.length-1)*e.itemHeight;$<V&&($=V),$>0&&($=0);let H=Math.abs(Math.round(-$/e.itemHeight));const R=-H*e.itemHeight,q=`${(H+1)*u.rotation}deg`,T=A?A>0:!1;b(H,!0,T),v(R,N,A,q)}else{let V=(-$/e.itemHeight+1)*u.rotation;const H=(e.source.length+1)*u.rotation,R=0;if(V=Math.min(Math.max(V,R),H),e.threeDimensional&&(V<R||V>H))return;v($,null,void 0,`${V}deg`)}},v=(k=0,N,A=Uu,$)=>{N==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=$,u.scrollDistance=k},p=(k,N)=>(k=Math.abs(k/N)/.003*(k<0?-1:1),k),B=k=>{e.readonly||(u.startDistance=u.scrollDistance,g.start(k),u.transitionEndTrigger=null)},w=k=>{e.readonly||(u.moving=!0,g.move(k),g.isVertical()&&(u.moving=!0,Wu(k)),f(g.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const k=g.deltaY.value,N=g.duration.value;if(N<Ku&&Math.abs(k)>Fu){const $=p(k,N);f($,"end",e.swipeDuration)}else f(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const N=u.currIndex-k;if(N!==0){u.currIndex=k,u.startDistance=u.scrollDistance;const A=N*e.itemHeight;f(A,"",0)}}),t.watch(()=>e.source,k=>{if(u.currIndex>=k.length){const $=(k.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f($,"end",0)}}),t.watch(()=>e.visible,k=>{k===!1&&y()}),t.onMounted(()=>{const k=-e.modelValue*e.itemHeight;f(k)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:S,...t.toRefs(u),roller:m,getItemText:Oe,onTouchStart:B,onTouchMove:w,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:y}}}),Xu={key:1,class:"fox-picker__item-tile"};function Qu(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",Xu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Gu=oe(Yu,[["render",Qu]]);let It=0;const Cr="fox-overflow-hidden",wr=()=>et?document.body:{classList:[]},Zu=e=>[()=>{if(e())try{!It&&wr().classList.add(Cr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&wr().classList.remove(Cr)}catch{}}],Ju={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:_u,create:ed}=J("overlay"),td=ed({props:{...Ju},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Zu(()=>e.lockScroll),l=t.computed(()=>({[_u]:!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 nd(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 dt=oe(td,[["render",nd]]),{componentName:od,create:ld}=J("popup"),ad=ld(qu(od,{FoxOverLay:dt,Close:le.Close}));function rd(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 pe=oe(ad,[["render",rd]]),sd=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=tt({...e},{poppable:!1});return t.h(pe,a,n)}else return n?.default?.()??null}}}),{create:id,componentName:Nr,scope:cd}=J("picker"),ud=id({components:{Column:Gu,Wrapper:sd},props:{...Yo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n(cd),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Pu());t.watch(()=>e.visible,T=>{T&&s.value<=0&&setTimeout(()=>{if(r.value){const I=qe(r.value);s.value=I.height,Mu(s.value)}},50)});const i=t.computed(()=>({[Nr]:!0})),c=t.computed(()=>{const T=[];return Array.isArray(e.popClass)?T.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&T.push(e.popClass),T.push(`${Nr}__popup`),T.join(" ")}),d=Ou(),m=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([T,I])=>{if(T){let E=await d.load("picker",T,I);if(E.length>0){let z=E[0];if(Array.isArray(z)){if(typeof z[0]=="string"){let j=E,M=[];j.forEach(Z=>{let ee=Z.map(F=>Sr(F));M.push(ee)}),u.value=M}else u.value=E;m.value="multipleColumn"}else if(typeof z=="string"){let j=E,M=[],Z=j.map(ee=>Sr(ee));M.push(Z),u.value=M,m.value="singleColumn"}else{const j=Xo(e,z);Array.isArray(j)?(m.value="cascade",u.value=[E]):(m.value="singleColumn",u.value=[E])}}else u.value=[]}},{immediate:!0});const h=t.ref([]),S=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),g=t.ref([]);let y=null;const b=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([T,I])=>{let E=Ru(e,T,I,m.value);if(!Ie(E,b.value)){b.value=E,y||(y=E?[...E]:[]);let z=kr(e,E,I,m.value);z&&(h.value=z.texts,Ie(S.value,z.values)||(S.value=z.values),Ie(g.value,z.items)||(g.value=z.items),n("update:text",h.value))}});let f="";const v=t.ref(e.visible);t.watch(()=>e.visible,T=>{v.value=T,T&&(f="active",b.value.length>0&&(y=[...b.value]))});const p=T=>{let I=vr(e,T);return De(I)?I.defaultIndex??0:0},B=T=>{if(e.readonly===!0)return!0;let I=vr(e,T);return De(I)?I.readonly??!1:!1},w=(T,I)=>{let E=b.value;E[T]=I;for(let j=0;j<T;j++)E[j]==null&&(E[j]=p(j));if(m.value==="cascade")for(let j=T+1;j<k.value.length;j++){let M=p(j);j<E.length?E[j]=M:E.push(M)}else for(let j=E.length;j<k.value.length;j++){let M=p(j);E.push(M)}b.value=E;let z=kr(e,E,u.value,m.value);z&&(h.value=z.texts,S.value=z.values,g.value=z.items)},C=T=>T<b.value.length?b.value[T]:p(T),k=t.computed(()=>{if(u.value.length==0)return[];if(m.value=="singleColumn"||m.value=="multipleColumn")return u.value;let T=[],I=0,E=u.value[0],z=0;for(;;){let j=E.map(ee=>{let F=Object.assign({},ee);return Lu(e,F,null),F});T.push(j),I>=b.value.length?z=0:z=b.value[I],(z<0||z>=E.length)&&(z=0);let M=E[z];const Z=Xo(e,M);if(!Array.isArray(Z))break;E=Z,I++}return T}),N=t.computed(()=>he(+e.visibleItemCount-1)/2*s.value),A=(T=!1)=>{if(e.readonly===!0){T&&n("update:visible",!1);return}let I=u.value.length-1;for(;I>=0&&!(b.value[I]===null||b.value[I]===void 0);I--);if(I>=0&&w(I,0),m.value==="singleColumn"){let E=S.value.length>0?S.value[0]:"",z=g.value.length>0?g.value[0]:null;n("update:modelValue",E),n("update:text",h.value),n("change",E,z),T&&(n("confirm",E),n("update:visible",!1))}else n("update:modelValue",S.value),n("update:text",h.value),n("change",S.value,g.value),T&&(n("confirm",S.value),n("update:visible",!1))},$=(T,I)=>{if(f!=="close"&&(w(T,I),e.isAutoBackFill)){const E=!v.value;A(E)}},V=()=>{f==="active"&&(f="confirm",y=Array.isArray(b.value)?[...b.value]:[],A(!0))},H=()=>{m.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],y=null};return{...l,pickerLineRef:r,classes:i,popClasses:c,columns:k,dataType:m,show:v,itemHeight:s,top:N,isReadonly:B,getIndex:C,change:$,close:()=>{if(f==="active"){if(f="close",y===null||y.length===0)H();else{if(Array.isArray(y))for(let T=0;T<y.length;T++)w(T,y[T]);A(!1)}n("close"),n("update:visible",!1)}},confirm:V,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}H(),y=null,n("clear",""),n("update:visible",!1)}}}}}),dd={key:0,class:"fox-picker__bar"},fd={class:"fox-picker__title"},md={class:"fox-picker__bar__action"},pd={class:"fox-picker__column"};function hd(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom","pop-class":e.popClasses,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,poppable:e.poppable},{default:t.withCtx(()=>[e.poppable?(t.openBlock(),t.createElementBlock("view",dd,[t.createElementVNode("view",fd,t.toDisplayString(e.title),1),t.createElementVNode("view",md,[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.createCommentVNode("",!0),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",pd,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["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,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}const en=oe(ud,[["render",hd]]);function gd(e,n,a,o,l,r,s=!0){return{props:{...ge,...ve,...Yo,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 d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=Me(i,"modelValue",null,u),b=t.ref([]),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),B=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const W={};return B.value&&(W["text-align"]=B.value),W}),C=t.ref(!1),k=()=>{C.value=!0},N=W=>{C.value=W},A=W=>{y.value=W,u("update:modelValue",W)},$=(W,P)=>{u("change",W,P)},V=W=>{let G=W.target.value;g.value=!0,u("focus",G,W)},H=W=>{setTimeout(()=>{g.value=!1},0);let G=W.target.value;i.maxLength&&G.length>Number(i.maxLength)&&(G=G.slice(0,Number(i.maxLength))),u("blur",G,W)},R=W=>{b.value=W,Array.isArray(W)&&W.length===0?u("update:text",W[0]):u("update:text",W)},q=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),T=t.computed(()=>ke(i.unit)>0),I=t.computed(()=>ke(i.unit)>0&&!g.value),E=t.computed(()=>({hidden:!I.value})),z=W=>{y.value="",u("update:modelValue","",W),u("change","",W),u("clear","")},j=t.computed(()=>i.clearable&&!d.value&&!m.value),M=t.computed(()=>ke(y.value)>0&&g.value),Z=W=>{M.value?z(W):k()},ee=t.computed(()=>M.value&&j.value?o:l),F=t.computed(()=>({action:!0}));return()=>{const W={class:p.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:V,onBlur:H};s&&(W.disabled=!0);const P=[],G=t.h("input",W);P.push(G);const O=[],U={class:["action-icon"]},_=t.h(ee.value,U),Q={class:F.value,onClick:Z},te=t.h("view",Q,{default:()=>[_]});if(O.push(te),T.value){const ae=t.h("view",{class:E.value},[i.unit]);O.push(ae)}const L={class:q.value},Y=t.h("view",L,{default:()=>O});P.push(Y);const D={default:()=>P};D.label=c.slots.default,D.prepend=c.slots.prepend,D.append=c.slots.append,D.fixedPreTip=c.slots.fixedPreTip,D.fixedTip=c.slots.fixedTip;const x=ye(i,Yo);x.disabled=!1,x.readonly=d.value||m.value,x.visible=C.value,x["onUpdate:visible"]=N,x.modelValue=y.value,x["onUpdate:modelValue"]=A,x.text=b.value,x["onUpdate:text"]=R,x.onChange=$;const K=t.h(r,x);D.hide=()=>[K];const X=ye(i,ve,ge);return i.prop&&(X.prop=`${i.prop}_item`),t.h(a,X,D)}}}}const{componentName:yd,create:vd,scope:bd}=J("picker-item"),Bl=vd(gd(yd,bd,Ne,le.CircleClose,le.ArrowRight,en,!1)),kd=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(pe,o,n)}else return n?.default?.()??null}}}),cn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:d,...m}=o,u={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:d,_parent:n};return u.children&&u.children.length&&(u.children=cn(u.children,u,a)),u}),Hs=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Hs(o.children,n)},Sd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Cd=(e,n)=>{const a={...Sd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(d=>{d={...d};const{[l]:m,[r]:u}=d,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,u)=>m[s]-u[s])}),c=null,i},Qo={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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Br=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],wd=(e,n)=>n[e.visibleKey],Ar=(e,n)=>n[e.disabledKey],Nd=(e,n)=>{const a=n[e.doitKey];return be(a)},Bd=(e,n)=>{const a=n[e.numKey];return a==null?null:he(n[a])},Vr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Ad(e,n,a,o,l,r=!1){return{props:{...Qo},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:c}){const d=t.computed(()=>{const D={};return D[`${e}`]=!0,D}),m=t.computed(()=>{const D={};return D[`${e}__titles`]=!0,D[`${s.direction}`]=!0,s.align==="left"&&(D.left=!0),s.scroll===!0&&(D.scrollable=!0),s.shape&&(D[`${s.shape}`]=!0),s.showScrollArrow?(G.value===!0&&(D["has-left-scroll-arrow "]=!0),O.value===!0&&(D["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(D["has-navigation"]=!0),D}),u=t.computed(()=>({})),h=t.computed(()=>{if(!s.gutter)return 0;const D=de(s.gutter);return D<=0?0:D}),S=t.ref(s.modelValue);t.watch(()=>s.modelValue,D=>{S.value!==D&&(S.value=D,j(!1))});const g=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=t.computed(()=>{const D={};return f.value||(D.display="none"),D}),b=t.ref(),f=t.ref(!1),v=()=>{const D=!f.value;p(D)},p=D=>{const x=D;x?(f.value=x,setTimeout(()=>{g.value["fox-tabs-bar__popup--show"]=!0,g.value["fox-tabs-bar__popup--hide"]=!1},0)):(g.value["fox-tabs-bar__popup--show"]=!1,g.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},B=t.ref(),w=t.ref([]),C=(D,x)=>{w.value[x]=D},k=D=>x=>{C(x,D)},N=(D,x)=>{const K=B.value,X=w.value;if(!K||!X||!X[D])return;const ne=X[D];let ae=0;s.direction==="vertical"?ae=ne.offsetTop-(K.offsetHeight-ne.offsetHeight)/2:ae=ne.offsetLeft-(K.offsetWidth-ne.offsetWidth)/2,A(K,ae,x?0:.3,s.direction)},A=(D,x,K,X)=>{let ne=0;const ae=X==="horizontal"?D.scrollLeft:D.scrollTop,se=K===0?1:Math.round(K*1e3/16);function fe(){X==="horizontal"?D.scrollLeft+=(x-ae)/se:D.scrollTop+=(x-ae)/se,++ne<se&&He(fe)}fe()},$=(D,x)=>{const K=qt(s,D),X={};return X[`${e}__titles-item`]=!0,X.disabled=Ar(s,D),X.active=K===S.value,s.shape&&(X[`${s.shape}`]=!0),s.ellipsis&&(X.ellipsis=!0),x&&(x.class&&(X[`${x.class}`]=!0),x.disabled===!0&&(X.disabled=x.disabled)),X},V=(D,x)=>{const K={};if(h.value>0){const X=Math.abs(h.value/2);s.direction==="vertical"?(K["margin-top"]=`${X}px`,K["margin-bottom"]=`${X}px`):(K["margin-left"]=`${X}px`,K["margin-right"]=`${X}px`)}return x&&x.style&&Object.assign(K,x.style),K},H=(D,x)=>`${qt(s,D)??x}`,R=(D,x)=>{const K=qt(s,D),X={};X[`${e}__popup-item`]=!0,X.disabled=Ar(s,D),X.active=K===S.value,s.shape&&(X[`${s.shape}`]=!0);const ne=Vr(s,D,x);return ne&&ne.disabled===!0&&(X.disabled=ne.disabled),X},q=t.computed(()=>(s.data??[]).filter(x=>wd(s,x)!==!1)),T=(D,x)=>{const K=qt(s,D);if(c("click",D,x),S.value==K)return;const X=()=>{S.value=K,s.scroll&&N(x,!1),c("update:modelValue",K),c("change",D,x)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(D,x);kt(ne)?ne.then(ae=>{ae!==!1&&X()}).catch(()=>{X()}):ne!==!1&&X()}else X()},I=(D,x)=>function(){T(D,x)},E=(D,x)=>{T(D,x),p(!1)},z=(D,x)=>function(){E(D,x)},j=D=>{if(!Array.isArray(s.data)||!s.scroll)return;P()&&te();const x=s.data.findIndex(K=>qt(s,K)===S.value);x!==-1&&N(x,D)},M=()=>{P()||L()};t.watch(()=>s.data,()=>{setTimeout(j,0)}),t.onMounted(()=>{j(!0)}),t.onBeforeUnmount(()=>{M()});const Z=(D,x)=>{if(i.item)return i.item({item:D,index:x});const K=Vr(s,D,x),X=[];if(i.text){const fe=i.text({item:D,index:x});X.push(fe)}else{const fe=[];if(K?.doit===!0||Nd(s,D)){const Ue={class:[`${e}__titles-item-tip`,"doit"]},ft=t.h("view",Ue);fe.push(ft)}const we=K?.num??Bd(s,D);if(we){let Ue="";const ft=he(we);ft>=100?Ue="99+":Ue=`${ft}`;const ko={class:[`${e}__titles-item-tip`,"num"]},ri=t.h("view",ko,[Ue]);fe.push(ri)}const Xe={class:`${e}__titles-item-text`};fe.push(Br(s,D));const Qe=t.h("view",Xe,fe);X.push(Qe)}const ne={class:`${e}__titles-item-line`},ae=t.h("view",ne);X.push(ae);const se={ref:k(x),class:$(D,K),style:V(D,K),key:H(D,x),onClick:I(D,x)};return t.h("view",se,X)},ee=()=>{const D=i.default?i.default():[];if(D.length===0)for(let K=0;K<q.value.length;K++){const X=q.value[K],ne=Z(X,K);D.push(ne)}const x={ref:B,class:m.value,style:u.value};return t.h("view",x,D)},F=()=>{let D=null;i.navigation?D=i.navigation():D=t.h(a);const x={class:`${e}__navigation`,onClick:v};return t.h("view",x,[D])},W=()=>{const D=[];for(let K=0;K<q.value.length;K++){const X=q.value[K];let ne=null;i.popupItem?ne=i.popupItem({item:X,index:K}):ne=Br(s,X);const ae={class:R(X,K),key:H(X,K),onClick:z(X,K)},se=t.h("view",ae,[ne]);D.push(se)}const x={class:g.value,style:y.value};return t.h("view",x,D)},P=()=>s.showScrollArrow&&s.direction=="horizontal",G=t.ref(!1),O=t.ref(!1),U=D=>{const x=B.value,K=w.value;if(!(!x||!K))if(D==="left"){const X=x.scrollLeft;let ne=X;for(let ae=0;ae<K.length;ae++){const se=K[ae].offsetLeft;if(X-se<0)break;ne=se}A(x,ne,.3,"horizontal")}else{const X=x.scrollLeft;let ne=X,ae=x.offsetWidth;for(let se=K.length-1;se>=0;se--){const fe=K[se].offsetLeft+K[se].offsetWidth;if(fe-X<x.offsetWidth){ne+=ae-fe;break}ae=fe}A(x,ne,.3,"horizontal")}},_=Pe(()=>{const D=B.value;if(!D)return;let x=D.scrollLeft>0;x!==G.value&&(G.value=x);let K=D.scrollWidth-D.scrollLeft>D.offsetWidth;K!==O.value&&(O.value=K)},50),Q=D=>{_()},te=()=>{const D=B.value;D&&(_(),D.addEventListener("scroll",Q))},L=()=>{const D=B.value;D&&D.removeEventListener("scroll",Q)},Y=D=>{if(D==="left"&&G.value!==!0||D==="right"&&O.value!==!0)return null;let x=null;D==="left"?i.leftArrow?x=i.leftArrow():x=t.h(o):i.rightArrow?x=i.rightArrow():x=t.h(l);const K={class:[`${e}__scroll-arrow`,D],onClick:()=>{U(D)}};return t.h("view",K,[x])};return()=>{const D=[],x=ee();if(D.push(x),P()){const X=Y("left");X&&D.push(X);const ne=Y("right");ne&&D.push(ne)}else if(s.showQuickNavigation){const X=F();D.push(X);const ne=W();D.push(ne)}const K={class:d.value};return t.h("view",K,D)}}}}const{create:Vd,componentName:Td,scope:$d}=J("tabs-bar"),tn=Vd(Ad(Td,$d,le.MoreH,le.Left,le.Right,!1)),js=Symbol("TabsStatesKey"),Go={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Ed=15,xd=300,Dd=200;function Id(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function Tr(e,n=0,a,o,l=Dd){a==="end"?e.style.transition=`transform ${l}ms linear`:e.style.transition="transform 0ms linear",o==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let qd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,a,o,l=1,r){this.onStart=n,this.onMove=a,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??lo()}open(n){this.el=n;const a=ao(),o=(l,r,s)=>{const i={delta:l,direction:r,type:s};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;a.start(l),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;a.move(l);let r=0;if(this.direction==="horizontal"){if(a.isVertical())return;r=a.state.deltaX}else{if(a.isHorizontal())return;r=a.state.deltaY}o(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(a.isVertical()){this.moving=!1;return}l=a.state.deltaX}else{if(a.isHorizontal()){this.moving=!1;return}l=a.state.deltaY}const r=a.state.duration;r<xd&&Math.abs(l)>Ed?(l=Id(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Pd(e,n,a,o=1,l){return new qd(e,n,a,o,l)}function Md(e,n,a=!1){return{props:{...Go},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 N={name:k};i.current.value===k&&(N.loaded=!0),s.value.push(N),t.triggerRef(s)},remove:k=>{const N=s.value.findIndex(A=>A.name===k);N!==-1&&s.value.splice(N,1)},isLoaded:k=>{if(!o.lazy)return!0;const N=s.value.findIndex(A=>A.name===k);return N!==-1?i.current.value?s.value[N].loaded??!1:N===0:!1}};t.provide(js,i);const c=k=>{const N=s.value.findIndex(A=>A.name===k);N!==-1&&(s.value[N].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([k,N])=>{i.current.value!==k&&(i.current.value=k??"",c(k??"")),i.direction.value!==N&&(i.direction.value=N)});const d=t.ref(null),m=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0})),h=t.computed(()=>{const k={};if(o.width){const N=me(o.width);N&&(k.width=N)}if(o.height){const N=me(o.height);N&&(k.height=N)}return k});let S=!0;const g=t.computed(()=>{const k={},N=s.value.length;if(N<=0)return k;const A=s.value.findIndex($=>$.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(k.height=`${N*i.tabHeight.value}px`,A!==-1&&(k.transform=`translate(0, -${A*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(k.width=`${N*i.tabWidth.value}px`,A!==-1&&(k.transform=`translate(-${A*i.tabWidth.value}px, 0)`)),S&&(S=!1,k.transition="transform 0s ease"),k}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},b=k=>{const N=s.value.length,A=s.value.findIndex($=>$.name===i.current.value);y.moved=0,k.direction==="vertical"?(y.min=-1*(i.tabHeight.value*(N-1)+i.tabHeight.value/4),y.max=i.tabHeight.value/4,y.start=-A*i.tabHeight.value,y.itemDistance=i.tabHeight.value):(y.min=-1*(i.tabWidth.value*(N-1)+i.tabWidth.value/4),y.max=i.tabWidth.value/4,y.start=-A*i.tabWidth.value,y.itemDistance=i.tabWidth.value)},f=k=>{const N=m.value;if(!N)return;let A=y.start+k.delta;if(A>y.max?A=y.max:A<y.min&&(A=y.min),k.type==="move")Tr(N,A,"move",k.direction,300);else if(k.type==="end"){let $=Math.floor(Math.abs(A)*1/y.itemDistance);const V=Math.abs(A)%y.itemDistance;y.start>A?V>=y.itemDistance*y.triggerAutoMoveRatio&&($+=1):V>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&($+=1),A=-1*$*y.itemDistance,Tr(N,A,"end",k.direction,300),y.moved=A;const H=s.value[$].name;i.current.value=H??"",c(H??""),l("update:modelValue",H)}},v=()=>{},p=()=>{if(!d.value)return;const k=jn(d.value);i.tabWidth.value=k.width,i.tabHeight.value=k.height},B=Tn(p,120);let w=null,C=null;return t.onMounted(()=>{d.value&&(p(),window.ResizeObserver&&(C=new window.ResizeObserver(B),C.observe(d.value)),o.draggle&&(w=Pd(b,f,v),w.open(m.value)))}),t.onBeforeUnmount(()=>{C&&(C.disconnect(),C=null),w&&w.close()}),Ee({doLayout(){p()}}),()=>{const k={class:`${e}__panes`,style:g.value,ref:m},N=t.h("view",k,[r?.default?.()]),A={class:u.value,style:h.value,ref:d};return t.h("view",A,[N])}}}}const{create:Ld,componentName:zd,scope:Od}=J("tabs-container"),nn=Ld(Md(zd,Od,!1)),Rd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Fd(e,n,a){return{props:{...Rd},setup(o,{emit:l,slots:r}){const s=t.inject(js);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),c=t.computed(()=>o.loaded!=null?be(o.loaded):s.isLoaded(o.paneKey));return()=>{let d=[];if(c.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,S=t.h(h,u),g={class:`${e}__empty-text`},y=o.emptyText??"Loading",b=t.h("view",g,[y]),f={class:`${e}__empty`},v=t.h("view",f,[S,b]);d.push(v)}const m={class:`${e}`,style:i.value};return t.h("view",m,d)}}}}const{create:Kd,componentName:Ud,scope:Hd}=J("tabs-pane"),ro=Kd(Fd(Ud,Hd,le.Loading));class $r{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=cn(n,null,this.config)}updateChildren(n,a){a?a.children=cn(n,a,this.config):this.nodes=cn(n,null,this.config)}getNodeByValue(n){let a;return Hs(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:jd,scope:Wd}=J("cascader-pane"),Yd=jd({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:tn,TabsContainer:nn,TabsPane:ro},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}=ie.useFoxI18n(Wd),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(),s=t.ref(!1),i=t.ref(e.modelValue),c=t.ref(new $r([],{})),d=t.ref([]),m=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),u=t.computed(()=>s.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((p,B)=>({text:p.selectedNode?p.selectedNode.text:a("select"),value:B}))),h=new Map;let S;const g=async()=>{h.clear(),d.value=[],l.value=0,s.value=!1,S=null;let{options:p}=e;o.value.convertConfig&&(p=Cd(p,o.value.convertConfig)),c.value=new $r(p,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),m.value&&!c.value.nodes.length&&await b({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:c.value.nodes,selectedNode:null}],y(!m.value)},y=async(p=!0)=>{const B=i.value;if(B===void 0||!c.value.nodes.length)return;if(B.length===0){l.value=0,d.value=[{nodes:c.value.nodes,selectedNode:null}];return}let w=B;if(m.value&&Array.isArray(B)&&B.length){w=[];let C=c.value.nodes.find(k=>k.value===B[0]);if(C){w=[C.value],s.value=!0;const k=await B.slice(1).reduce(async(N,A)=>{const $=await N;await b($);const V=$?.children?.find(H=>H.value===A);return V&&w.push(A),Promise.resolve(V)},Promise.resolve(C));await b(k),s.value=!1}}w.length&&B===e.modelValue&&c.value.getPathNodesByValue(w).map((k,N)=>{l.value=N,v.handleNode(k,p)})},b=async p=>{if(!p)return;if(!o.value.lazyLoad){p.leaf=!0;return}if(c.value.isLeaf(p,m.value)||c.value.hasChildren(p,m.value))return;p.loading=!0;const B=p.root?null:p;let w=h.get(p);w||(w=new Promise(k=>{o.value.lazyLoad?.(p,k)}),h.set(p,w));const C=await w;Array.isArray(C)&&C.length>0?c.value.updateChildren(C,B):p.leaf=!0,p.loading=!1,h.delete(p)},f=p=>{const B=p.map(w=>w.value);i.value=B,n("change",B,p),n("pathChange",p),n("update:modelValue",B)},v={async handleNode(p,B){const{disabled:w,loading:C}=p;if(!(!B&&w||!d.value[l.value])){if(c.value.isLeaf(p,m.value)){if(p.leaf=!0,d.value[l.value].selectedNode=p,d.value=d.value.slice(0,p.level+1),!B){const k=d.value.map(N=>N.selectedNode);f(k),n("pathChange",k)}return}if(c.value.hasChildren(p,m.value)){const k=p.level+1;if(d.value[l.value].selectedNode=p,d.value=d.value.slice(0,k),d.value.push({nodes:p.children||[],selectedNode:null}),l.value=k,!B){const N=d.value.map(A=>A.selectedNode);n("pathChange",N)}return}S=p,!C&&(await b(p),S===p&&(d.value[l.value].selectedNode=p,v.handleNode(p,B)))}},handleTabChange(p,B){S=null},formatTabTitle(p){return p.selectedNode?p.selectedNode.text:a("select")},isSelected(p,B){return p.selectedNode&&p.selectedNode.value===B.value}};return t.watch([o,()=>e.options],()=>{g()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,p=>{Ie(p,i.value)||(i.value=p,y(!m.value))}),t.watch(()=>e.visible,p=>{p&&Array.isArray(i.value)&&i.value.length>0&&y(),p&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:s,tabsCursor:l,tabsContainerRef:r,...v}}}),Xd={class:"fox-cascader"},Qd={role:"menu",class:"fox-cascader__pane"},Gd=["aria-checked","aria-disabled","onClick"],Zd={class:"fox-cascader__item__title"};function Jd(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Xd,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(m,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(d,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Qd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,S),disabled:S.disabled}]),"aria-checked":e.isSelected(u,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(S,!1)},[t.createElementVNode("view",Zd,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,Gd))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[...n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}const _d=oe(Yd,[["render",Jd]]),{create:ef}=J("cascader"),tf=ef({components:{CascaderPane:_d,Wrapper:kd},props:{...Fe,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}}}),nf=["innerHTML"];function of(e,n,a,o,l,r){const s=t.resolveComponent("CascaderPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,{poppable:e.poppable,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(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,nf)):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"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}const so=oe(tf,[["render",of]]);function Ct(e,n){const a=e.textKey??"text";return n[a]??""}function wt(e,n){const a=e.valueKey??"value";return n[a]}function Ws(e,n){const a=e.childrenKey??"children";return n[a]}function rn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Ct(e,l),s=wt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Ys(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const c=wt(e,n[s])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const m=Ws(e,n[s]);Array.isArray(m)&&Ys(e,m,a,o+1,l);return}}function Xs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(wt(e,n[s])===r){const c=Ct(e,n[s])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const m=Ws(e,n[s]);Array.isArray(m)&&Xs(e,m,a,o+1,l);return}}function Vo(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=Ct(e,n[o]),r=Ct(e,a[o]);if(l!==r)return!1;const s=wt(e,n[o]),i=wt(e,a[o]);if(s!==i)return!1}return!0}let lf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a,o);const r=ot(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(De(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function af(){const e=t.getCurrentInstance();return new lf(e.proxy)}const Er={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},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function rf(e,n,a,o,l,r,s=!1){return{props:{...ge,...ve,...Er},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=af(),b=t.ref([]),f=t.ref([]),v=t.computed(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const U=f.value.length-1;return f.value[U]}return f.value.join(i.separator)}else return f.value}),p=t.ref([]),B=t.ref([]);t.watch([()=>i.modelValue,()=>b.value],async([U,_])=>{if(u("setValue",U),i.lazy===!0){B.value.length==0&&(p.value=Array.isArray(U)?U:[]);return}if(i.valueType==="item"){let Q=U;if(!Vo(i,Q,B.value)){B.value=Q;let te=rn(i,Q);f.value=te.texts,p.value=te.values}}else if(i.valueType==="text"){let Q=U,te=[];if(Ys(i,_,Q,0,te),!Vo(i,te,B.value)){B.value=te;let L=rn(i,te);Q.value=L.texts,p.value=L.values}}else{let Q=[];if(Xs(i,_,U,0,Q),!Vo(i,Q,B.value)){B.value=Q;let te=rn(i,Q);f.value=te.texts,p.value=te.values}}}),i.lazy===!0&&(p.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([U,_])=>{i.lazy||U&&(b.value=await y.load(U,_))},{immediate:!0});const w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":m.value})),k=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const U={};return k.value&&(U["text-align"]=k.value),U}),A=t.ref(!1),$=()=>{d.value===!0||m.value===!0||(A.value=!0)},V=U=>{A.value=U},H=(U,_)=>{let Q=_.map(L=>{if(L==null)return L;let Y={...L};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=L.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=L.value??"",Y});B.value=Q;let te=rn(i,Q);f.value=te.texts,p.value=te.values,i.valueType==="text"?(u("change",f.value,Q),u("update:modelValue",f.value)):i.valueType==="item"?(u("change",Q,Q),u("update:modelValue",Q)):(u("change",p.value,Q),u("update:modelValue",p.value)),u("update:pathNodes",Q)},R=U=>{let _=U.map(Q=>{if(Q==null)return Q;let te={...Q};return Reflect.deleteProperty(te,"text"),te[i.textKey]=Q.text??"",Reflect.deleteProperty(te,"value"),te[i.valueKey]=Q.value??"",te});u("pathChange",_)},q=U=>{g.value=!0,u("focus",p.value,U)},T=U=>{setTimeout(()=>{g.value=!1},0),u("blur",p.value,U)},I=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),E=t.computed(()=>ke(i.unit)>0),z=t.computed(()=>ke(i.unit)>0&&!g.value),j=t.computed(()=>({hidden:!z.value})),M=U=>{B.value=[],f.value=[],p.value=[],u("update:modelValue",[]),u("change",[],U),u("clear",[]),u("update:pathNodes",[])},Z=t.computed(()=>i.clearable&&!d.value&&!m.value),ee=t.computed(()=>{let U=p.value&&p.value.length>0;return i.clearable&&U&&g.value}),F=U=>{ee.value?M(U):$()},W=t.computed(()=>ee.value&&Z.value?o:l),P=t.computed(()=>({action:!0}));let G=null;const O=()=>typeof G=="function"?G:typeof i.lazyLoad=="function"?i.lazyLoad:(G=async(U,_)=>{const Q=[],te=[];let L=0;if(!U.root){let D=U;for(;D;){const x=Ct(i,D),K=wt(i,D);te.splice(0,0,x),Q.splice(0,0,K),D=D._parent}L=Q.length}const Y=await y.load(i.source,{...U,level:L,pathLabels:te,pathValues:Q},!0);_(Y)},G);return()=>{const U={class:C.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:$,onFocus:q,onBlur:T};s&&(U.disabled=!0);const _=[],Q=t.h("input",U);_.push(Q);const te=[],L={class:["action-icon"]},Y=t.h(W.value,L),D={class:P.value,onClick:F},x=t.h("view",D,{default:()=>[Y]});if(te.push(x),E.value){const Ue=t.h("view",{class:j.value},[i.unit]);te.push(Ue)}const K={class:I.value},X=t.h("view",K,{default:()=>te});_.push(X);const ne={default:()=>_};ne.label=c.slots.default,ne.prepend=c.slots.prepend,ne.append=c.slots.append,ne.fixedPreTip=c.slots.fixedPreTip,ne.fixedTip=c.slots.fixedTip;const ae={};ae.visible=A.value,ae["onUpdate:visible"]=V,ae.modelValue=p.value,ae.onChange=H,ae.onPathChange=R,ae.title=i.title,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig,i.lazy?(ae.lazy=!0,ae.lazyLoad=O()):ae.options=b.value;const se={};se.header=c.slots.header;const fe=t.h(r,ae,se);ne.hide=()=>[fe];const Xe={...tt(i,Er)};return i.prop&&(Xe.prop=`${i.prop}_item`),t.h(a,Xe,ne)}}}}const{componentName:sf,create:cf,scope:uf}=J("cascader-item"),Al=cf(rf(sf,uf,Ne,le.CircleClose,le.ArrowRight,so,!1));function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var un={exports:{}},df=un.exports,xr;function ff(){return xr||(xr=1,(function(e,n){(function(a,o){e.exports=o()})(df,(function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",u="month",h="quarter",S="year",g="date",y="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,v={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("_"),ordinal:function(q){var T=["th","st","nd","rd"],I=q%100;return"["+q+(T[(I-20)%10]||T[I]||T[0])+"]"}},p=function(q,T,I){var E=String(q);return!E||E.length>=T?q:""+Array(T+1-E.length).join(I)+q},B={s:p,z:function(q){var T=-q.utcOffset(),I=Math.abs(T),E=Math.floor(I/60),z=I%60;return(T<=0?"+":"-")+p(E,2,"0")+":"+p(z,2,"0")},m:function q(T,I){if(T.date()<I.date())return-q(I,T);var E=12*(I.year()-T.year())+(I.month()-T.month()),z=T.clone().add(E,u),j=I-z<0,M=T.clone().add(E+(j?-1:1),u);return+(-(E+(I-z)/(j?z-M:M-z))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:u,y:S,w:m,d,D:g,h:c,m:i,s,ms:r,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},w="en",C={};C[w]=v;var k="$isDayjsObject",N=function(q){return q instanceof H||!(!q||!q[k])},A=function q(T,I,E){var z;if(!T)return w;if(typeof T=="string"){var j=T.toLowerCase();C[j]&&(z=j),I&&(C[j]=I,z=j);var M=T.split("-");if(!z&&M.length>1)return q(M[0])}else{var Z=T.name;C[Z]=T,z=Z}return!E&&z&&(w=z),z||!E&&w},$=function(q,T){if(N(q))return q.clone();var I=typeof T=="object"?T:{};return I.date=q,I.args=arguments,new H(I)},V=B;V.l=A,V.i=N,V.w=function(q,T){return $(q,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var H=(function(){function q(I){this.$L=A(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[k]=!0}var T=q.prototype;return T.parse=function(I){this.$d=(function(E){var z=E.date,j=E.utc;if(z===null)return new Date(NaN);if(V.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var M=z.match(b);if(M){var Z=M[2]-1||0,ee=(M[7]||"0").substring(0,3);return j?new Date(Date.UTC(M[1],Z,M[3]||1,M[4]||0,M[5]||0,M[6]||0,ee)):new Date(M[1],Z,M[3]||1,M[4]||0,M[5]||0,M[6]||0,ee)}}return new Date(z)})(I),this.init()},T.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()},T.$utils=function(){return V},T.isValid=function(){return this.$d.toString()!==y},T.isSame=function(I,E){var z=$(I);return this.startOf(E)<=z&&z<=this.endOf(E)},T.isAfter=function(I,E){return $(I)<this.startOf(E)},T.isBefore=function(I,E){return this.endOf(E)<$(I)},T.$g=function(I,E,z){return V.u(I)?this[E]:this.set(z,I)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(I,E){var z=this,j=!!V.u(E)||E,M=V.p(I),Z=function(_,Q){var te=V.w(z.$u?Date.UTC(z.$y,Q,_):new Date(z.$y,Q,_),z);return j?te:te.endOf(d)},ee=function(_,Q){return V.w(z.toDate()[_].apply(z.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Q)),z)},F=this.$W,W=this.$M,P=this.$D,G="set"+(this.$u?"UTC":"");switch(M){case S:return j?Z(1,0):Z(31,11);case u:return j?Z(1,W):Z(0,W+1);case m:var O=this.$locale().weekStart||0,U=(F<O?F+7:F)-O;return Z(j?P-U:P+(6-U),W);case d:case g:return ee(G+"Hours",0);case c:return ee(G+"Minutes",1);case i:return ee(G+"Seconds",2);case s:return ee(G+"Milliseconds",3);default:return this.clone()}},T.endOf=function(I){return this.startOf(I,!1)},T.$set=function(I,E){var z,j=V.p(I),M="set"+(this.$u?"UTC":""),Z=(z={},z[d]=M+"Date",z[g]=M+"Date",z[u]=M+"Month",z[S]=M+"FullYear",z[c]=M+"Hours",z[i]=M+"Minutes",z[s]=M+"Seconds",z[r]=M+"Milliseconds",z)[j],ee=j===d?this.$D+(E-this.$W):E;if(j===u||j===S){var F=this.clone().set(g,1);F.$d[Z](ee),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else Z&&this.$d[Z](ee);return this.init(),this},T.set=function(I,E){return this.clone().$set(I,E)},T.get=function(I){return this[V.p(I)]()},T.add=function(I,E){var z,j=this;I=Number(I);var M=V.p(E),Z=function(W){var P=$(j);return V.w(P.date(P.date()+Math.round(W*I)),j)};if(M===u)return this.set(u,this.$M+I);if(M===S)return this.set(S,this.$y+I);if(M===d)return Z(1);if(M===m)return Z(7);var ee=(z={},z[i]=o,z[c]=l,z[s]=a,z)[M]||1,F=this.$d.getTime()+I*ee;return V.w(F,this)},T.subtract=function(I,E){return this.add(-1*I,E)},T.format=function(I){var E=this,z=this.$locale();if(!this.isValid())return z.invalidDate||y;var j=I||"YYYY-MM-DDTHH:mm:ssZ",M=V.z(this),Z=this.$H,ee=this.$m,F=this.$M,W=z.weekdays,P=z.months,G=z.meridiem,O=function(Q,te,L,Y){return Q&&(Q[te]||Q(E,j))||L[te].slice(0,Y)},U=function(Q){return V.s(Z%12||12,Q,"0")},_=G||function(Q,te,L){var Y=Q<12?"AM":"PM";return L?Y.toLowerCase():Y};return j.replace(f,(function(Q,te){return te||(function(L){switch(L){case"YY":return String(E.$y).slice(-2);case"YYYY":return V.s(E.$y,4,"0");case"M":return F+1;case"MM":return V.s(F+1,2,"0");case"MMM":return O(z.monthsShort,F,P,3);case"MMMM":return O(P,F);case"D":return E.$D;case"DD":return V.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return O(z.weekdaysMin,E.$W,W,2);case"ddd":return O(z.weekdaysShort,E.$W,W,3);case"dddd":return W[E.$W];case"H":return String(Z);case"HH":return V.s(Z,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return _(Z,ee,!0);case"A":return _(Z,ee,!1);case"m":return String(ee);case"mm":return V.s(ee,2,"0");case"s":return String(E.$s);case"ss":return V.s(E.$s,2,"0");case"SSS":return V.s(E.$ms,3,"0");case"Z":return M}return null})(Q)||M.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(I,E,z){var j,M=this,Z=V.p(E),ee=$(I),F=(ee.utcOffset()-this.utcOffset())*o,W=this-ee,P=function(){return V.m(M,ee)};switch(Z){case S:j=P()/12;break;case u:j=P();break;case h:j=P()/3;break;case m:j=(W-F)/6048e5;break;case d:j=(W-F)/864e5;break;case c:j=W/l;break;case i:j=W/o;break;case s:j=W/a;break;default:j=W}return z?j:V.a(j)},T.daysInMonth=function(){return this.endOf(u).$D},T.$locale=function(){return C[this.$L]},T.locale=function(I,E){if(!I)return this.$L;var z=this.clone(),j=A(I,E,!0);return j&&(z.$L=j),z},T.clone=function(){return V.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},q})(),R=H.prototype;return $.prototype=R,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",u],["$y",S],["$D",g]].forEach((function(q){R[q[1]]=function(T){return this.$g(T,q[0],q[1])}})),$.extend=function(q,T){return q.$i||(q(T,H,$),q.$i=!0),$},$.locale=A,$.isDayjs=N,$.unix=function(q){return $(1e3*q)},$.en=C[w],$.Ls=C,$.p={},$}))})(un)),un.exports}var mf=ff();const Ke=Ye(mf);var dn={exports:{}},pf=dn.exports,Dr;function hf(){return Dr||(Dr=1,(function(e,n){(function(a,o){e.exports=o()})(pf,(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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d/,r=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,c={},d=function(b){return(b=+b)+(b>68?1900:2e3)},m=function(b){return function(f){this[b]=+f}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var v=f.match(/([+-]|\d\d)/g),p=60*v[1]+(+v[2]||0);return p===0?0:v[0]==="+"?-p:p})(b)}],h=function(b){var f=c[b];return f&&(f.indexOf?f:f.s.concat(f.f))},S=function(b,f){var v,p=c.meridiem;if(p){for(var B=1;B<=24;B+=1)if(b.indexOf(p(B,0,f))>-1){v=B>12;break}}else v=b===(f?"pm":"PM");return v},g={A:[i,function(b){this.afternoon=S(b,!1)}],a:[i,function(b){this.afternoon=S(b,!0)}],Q:[l,function(b){this.month=3*(b-1)+1}],S:[l,function(b){this.milliseconds=100*+b}],SS:[r,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[r,m("day")],Do:[i,function(b){var f=c.ordinal,v=b.match(/\d+/);if(this.day=v[0],f)for(var p=1;p<=31;p+=1)f(p).replace(/\[|\]/g,"")===b&&(this.day=p)}],w:[s,m("week")],ww:[r,m("week")],M:[s,m("month")],MM:[r,m("month")],MMM:[i,function(b){var f=h("months"),v=(h("monthsShort")||f.map((function(p){return p.slice(0,3)}))).indexOf(b)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[i,function(b){var f=h("months").indexOf(b)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,m("year")],YY:[r,function(b){this.year=d(b)}],YYYY:[/\d{4}/,m("year")],Z:u,ZZ:u};function y(b){var f,v;f=b,v=c&&c.formats;for(var p=(b=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,V,H){var R=H&&H.toUpperCase();return V||v[H]||a[H]||v[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(q,T,I){return T||I.slice(1)}))}))).match(o),B=p.length,w=0;w<B;w+=1){var C=p[w],k=g[C],N=k&&k[0],A=k&&k[1];p[w]=A?{regex:N,parser:A}:C.replace(/^\[|\]$/g,"")}return function($){for(var V={},H=0,R=0;H<B;H+=1){var q=p[H];if(typeof q=="string")R+=q.length;else{var T=q.regex,I=q.parser,E=$.slice(R),z=T.exec(E)[0];I.call(V,z),$=$.replace(z,"")}}return(function(j){var M=j.afternoon;if(M!==void 0){var Z=j.hours;M?Z<12&&(j.hours+=12):Z===12&&(j.hours=0),delete j.afternoon}})(V),V}}return function(b,f,v){v.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(d=b.parseTwoDigitYear);var p=f.prototype,B=p.parse;p.parse=function(w){var C=w.date,k=w.utc,N=w.args;this.$u=k;var A=N[1];if(typeof A=="string"){var $=N[2]===!0,V=N[3]===!0,H=$||V,R=N[2];V&&(R=N[2]),c=this.$locale(),!$&&R&&(c=v.Ls[R]),this.$d=(function(E,z,j,M){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*E);var Z=y(z)(E),ee=Z.year,F=Z.month,W=Z.day,P=Z.hours,G=Z.minutes,O=Z.seconds,U=Z.milliseconds,_=Z.zone,Q=Z.week,te=new Date,L=W||(ee||F?1:te.getDate()),Y=ee||te.getFullYear(),D=0;ee&&!F||(D=F>0?F-1:te.getMonth());var x,K=P||0,X=G||0,ne=O||0,ae=U||0;return _?new Date(Date.UTC(Y,D,L,K,X,ne,ae+60*_.offset*1e3)):j?new Date(Date.UTC(Y,D,L,K,X,ne,ae)):(x=new Date(Y,D,L,K,X,ne,ae),Q&&(x=M(x).week(Q).toDate()),x)}catch{return new Date("")}})(C,A,k,v),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),H&&C!=this.format(A)&&(this.$d=new Date("")),c={}}else if(A instanceof Array)for(var q=A.length,T=1;T<=q;T+=1){N[1]=A[T-1];var I=v.apply(this,N);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}T===q&&(this.$d=new Date(""))}else B.call(this,w)}}}))})(dn)),dn.exports}var gf=hf();const yf=Ye(gf);var fn={exports:{}},vf=fn.exports,Ir;function bf(){return Ir||(Ir=1,(function(e,n){(function(a,o){e.exports=o()})(vf,(function(){return function(a,o){var l=o.prototype,r=l.format;l.format=function(s){var i=this,c=this.$locale();if(!this.isValid())return r.bind(this)(s);var d=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(u){switch(u){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),u==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return u}}));return r.bind(this)(m)}}}))})(fn)),fn.exports}var kf=bf();const Sf=Ye(kf);var mn={exports:{}},Cf=mn.exports,qr;function wf(){return qr||(qr=1,(function(e,n){(function(a,o){e.exports=o()})(Cf,(function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,S,g,y){var b=u.name?u:u.$locale(),f=s(b[h]),v=s(b[S]),p=f||v.map((function(w){return w.slice(0,g)}));if(!y)return p;var B=b.weekStart;return p.map((function(w,C){return p[(C+(B||0))%7]}))},c=function(){return l.Ls[l.locale()]},d=function(u,h){return u.formats[h]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(g,y,b){return y||b.slice(1)}))})(u.formats[h.toUpperCase()])},m=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return d(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}}))})(mn)),mn.exports}var Nf=wf();const Bf=Ye(Nf);var pn={exports:{}},Af=pn.exports,Pr;function Vf(){return Pr||(Pr=1,(function(e,n){(function(a,o){e.exports=o()})(Af,(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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(o).add(1,o).date(d),u=s(this).endOf(a);if(m.isBefore(u))return 1}var h=s(this).startOf(o).date(d).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)}}}))})(pn)),pn.exports}var Tf=Vf();const $f=Ye(Tf);var hn={exports:{}},Ef=hn.exports,Mr;function xf(){return Mr||(Mr=1,(function(e,n){(function(a,o){e.exports=o()})(Ef,(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}}}))})(hn)),hn.exports}var Df=xf();const If=Ye(Df);var gn={exports:{}},qf=gn.exports,Lr;function Pf(){return Lr||(Lr=1,(function(e,n){(function(a,o){e.exports=o()})(qf,(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")}}}))})(gn)),gn.exports}var Mf=Pf();const Lf=Ye(Mf);var yn={exports:{}},zf=yn.exports,zr;function Of(){return zr||(zr=1,(function(e,n){(function(a,o){e.exports=o()})(zf,(function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}}))})(yn)),yn.exports}var Rf=Of();const Ff=Ye(Rf);var vn={exports:{}},Kf=vn.exports,Or;function Uf(){return Or||(Or=1,(function(e,n){(function(a,o){e.exports=o()})(Kf,(function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}}))})(vn)),vn.exports}var Hf=Uf();const jf=Ye(Hf);Ke.extend(Bf);Ke.extend(Sf);Ke.extend(yf);Ke.extend($f);Ke.extend(If);Ke.extend(Lf);Ke.extend(Ff);Ke.extend(jf);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(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,a){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),a=a??"YYYY-MM-DD",this.format(o,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,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}else{s=s==0?7:s;const i=1440*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.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}},Rr=new Date().getFullYear(),Vl={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"},qn=(e,n,a)=>{let o;if(We(n)?o=n:typeof n=="string"&&ke(n)>0?o=re.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)},Zo=(e,n,a)=>{We(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),a)},Jo={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(Rr-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(Rr+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Wf,scope:Yf}=J("date-picker"),Xf=Wf({components:{Picker:en},props:{...Jo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Yf),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},l=t.ref(!1);t.watch(()=>e.visible,p=>{l.value=p});function r(p,B){return new Date(p,B,0).getDate()}const s=(p,B)=>{const w=e[`${p}Date`],C=w.getFullYear();let k=1,N=1,A=0,$=0;p==="max"&&(k=12,N=r(B.getFullYear(),B.getMonth()+1),A=23,$=59);const V=$;return B.getFullYear()===C&&(k=w.getMonth()+1,B.getMonth()+1===k&&(N=w.getDate(),B.getDate()===N&&(A=w.getHours(),B.getHours()===A&&($=w.getMinutes())))),{[`${p}Year`]:C,[`${p}Month`]:k,[`${p}Date`]:N,[`${p}Hour`]:A,[`${p}Minute`]:$,[`${p}Seconds`]:V}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:p,maxDate:B,maxMonth:w,maxHour:C,maxMinute:k,maxSeconds:N}=s("max",h.value),{minYear:A,minDate:$,minMonth:V,minHour:H,minMinute:R,minSeconds:q}=s("min",h.value);let T=[{type:"year",range:[A,p]},{type:"month",range:[V,w]},{type:"day",range:[$,B]},{type:"hour",range:[H,C]},{type:"minute",range:[R,k]},{type:"seconds",range:[q,N]}];switch(e.type){case"date":T=T.slice(0,3);break;case"datetime":T=T.slice(0,5);break;case"time":T=T.slice(3,6);break;case"year-month":T=T.slice(0,2);break;case"month-day":T=T.slice(1,3);break;case"datehour":T=T.slice(0,4);break;case"hour-minute":T=T.slice(3,5);break}return T}),c=(p,B,w,C,k)=>{const N=[];for(;p<=B;){let A=!0;if(typeof e.itemFilter=="function"){const $={text:`${p}`,value:p,type:w,currentYearMonth:C};A=e.itemFilter($)}if(A)if(typeof e.itemFormatter=="function"){const $={text:`${p}`,value:p,type:w,currentYearMonth:C};e.itemFormatter($),N.push({text:$.text,value:$.value})}else if(e.isShowChinese){let $=`${p}${o[w]}`;if(w==="day"){if(C[0]===k[0]&&C[1]===k[1]&&p===k[2])$=o.today;else{const H=new Date(C[0],C[1],p).getDay();$=`${$} ${o.fullWeekdays[H]}`}N.push({text:$,value:p})}else N.push({text:p+o[w],value:p})}else N.push({text:`${p}`,value:p});w==="minute"?p+=e.minuteStep:p++}return N},d=t.computed(()=>{const p=new Date,B=[p.getFullYear(),p.getMonth(),p.getDate()],w=[];h.value&&(w[0]=h.value.getFullYear(),w[1]=h.value.getMonth());let C=[];return i.value.forEach(k=>{let N=c(k.range[0],k.range[1],k.type,w,B);N&&C.push(N)}),C}),m=(p,B)=>p==="year"?B.getFullYear():p==="month"?B.getMonth()+1:p==="day"?B.getDate():p==="hour"?B.getHours():p==="minute"?B.getMinutes():p==="seconds"?B.getSeconds():0,u=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,p=>{let B;if(typeof p=="string"?p.length==0||p==="Invalid Date"?B=new Date:e.valueFormat?B=qn(e,e.modelValue,e.valueFormat):B=qn(e,p,Vl[e.type]):We(p)?B=p:B=new Date,!!B&&(!h.value||B.getTime()!==h.value.getTime())){h.value=B;let w=[];i.value.forEach(C=>{let k=m(C.type,B);w.push(k)}),u.value=w}},{immediate:!0});const S=p=>{if(!p||p.length===0){h.value=new Date;let B=[];i.value.forEach(w=>{let C=m(w.type,h.value);B.push(C)}),u.value=B;return}if(e.type==="date"){const B=p[0],w=p[1]-1,C=Math.min(p[2],r(B,w+1));C!==p[2]&&(p[2]=C),h.value=new Date(B,w,C)}else if(e.type==="datetime"){const B=p[0],w=p[1]-1,C=Math.min(p[2],r(B,w+1)),k=p[3],N=p[4];C!==p[2]&&(p[2]=C),h.value=new Date(B,w,C,k,N)}else if(e.type==="time"){const B=p[0],w=p[1],C=p[2],k=h.value??new Date,N=new Date(k.getFullYear(),k.getMonth(),k.getDate(),B,w,C);h.value=N}else if(e.type==="year-month"){const B=p[0],w=p[1]-1;h.value=new Date(B,w)}else if(e.type==="month-day"){const w=(h.value??new Date).getFullYear(),C=p[0]-1,k=Math.min(p[1],r(w,C+1));k!==p[1]&&(p[1]=k);const N=new Date(w,C,k);h.value=N}else if(e.type==="datehour"){const B=p[0],w=p[1]-1,C=Math.min(p[2],r(B,w+1)),k=p[3];C!==p[2]&&(p[2]=C),h.value=new Date(B,w,C,k)}else if(e.type==="hour-minute"){const B=p[0],w=p[1],C=h.value??new Date,k=new Date(C.getFullYear(),C.getMonth(),C.getDate(),B,w);h.value=k}u.value=p};return{columns:d,dateIndexs:u,show:l,onChange:p=>{S(p)},onClose:()=>{n("update:close",!1)},onConfirm:p=>{S(p);const B=h.value??new Date;if(e.valueFormat){let w=Zo(e,B,e.valueFormat);n("update:modelValue",w)}else n("update:modelValue",B);n("confirm",p)},onClear:()=>{n("clear")},onUpdateVisible:p=>{l.value=p,n("update:visible",p)}}}});function Qf(e,n,a,o,l,r){const s=t.resolveComponent("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,"onUpdate:visible":e.onUpdateVisible,"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","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const io=oe(Xf,[["render",Qf]]),Gf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Zf(e){let n=e.format;if(!n){let a=e.type??"date";n=Vl[a]}return n}function Jf(e,n,a,o,l,r,s=!1){return{props:{...ge,...ve,...Jo,...Gf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),b=Me(i,"modelValue",F=>F==null?null:typeof F=="string"?F.length==0?null:i.valueFormat?qn(i,F,i.valueFormat)??F:qn(i,F,Vl[i.type])??F:We(F)?F:null,u),f=t.computed(()=>{if(!b.value)return"";const F=Zf(i);return Zo(i,b.value,F)}),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),B=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const F={};return B.value&&(F["text-align"]=B.value),F}),C=t.ref(!1),k=()=>{C.value=!0},N=()=>{C.value=!1};c.expose({showPicker:k,hidePicker:N});const A=F=>{C.value=F},$=F=>{if(b.value=F,i.valueFormat){let W=Zo(i,F,i.valueFormat);u("update:modelValue",W,{}),u("change",W,{})}else u("update:modelValue",F,{}),u("change",F,{})},V=F=>{let P=F.target.value;g.value=!0,u("focus",P,F)},H=F=>{setTimeout(()=>{g.value=!1},0);let P=F.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),u("blur",P,F)},R=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),q=t.computed(()=>ke(i.unit)>0),T=t.computed(()=>ke(i.unit)>0&&!g.value),I=t.computed(()=>({hidden:!T.value})),E=F=>{b.value="",u("update:modelValue","",F),u("change","",F),u("clear",""),N()},z=t.computed(()=>i.clearable&&!d.value&&!m.value),j=t.computed(()=>{let F=ke(b.value)>0;return i.clearable&&F&&g.value}),M=F=>{j.value?E(F):k()},Z=t.computed(()=>j.value&&z.value?o:l),ee=t.computed(()=>({action:!0}));return()=>{const F={class:p.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:V,onBlur:H};s&&(F.disabled=!0);const W=[],P=t.h("input",F);W.push(P);const G=[],O={class:["action-icon"]},U=t.h(Z.value,O),_={class:ee.value,onClick:M},Q=t.h("view",_,{default:()=>[U]});if(G.push(Q),q.value){const se=t.h("view",{class:I.value},[i.unit]);G.push(se)}const te={class:R.value},L=t.h("view",te,{default:()=>G});W.push(L);const Y={default:()=>W};Y.label=c.slots.default,Y.prepend=c.slots.prepend,Y.append=c.slots.append,Y.fixedPreTip=c.slots.fixedPreTip,Y.fixedTip=c.slots.fixedTip;const D=ye(i,Jo);D.valueFormat=null,D.disabled=!1,D.readonly=d.value||m.value,D.visible=C.value,D["onUpdate:visible"]=A,D.modelValue=b.value,D["onUpdate:modelValue"]=$,D.onClear=E;const x={};if(c.slots.top){const se=c.slots.top();x.top=()=>se}if(c.slots.bottom){const se=c.slots.bottom();x.default=()=>se}const K=t.h(r,D,x);Y.hide=()=>[K];const ne={...ye(i,ve,ge)};return i.prop&&(ne.prop=`${i.prop}_item`),t.h(a,ne,Y)}}}}const{create:_f,componentName:em,scope:tm}=J("date-item"),Tl=_f(Jf(em,tm,Ne,le.CircleClose,le.Date,io,!1)),nm=39,om=64,{create:lm,scope:am}=J("calendar-pane"),rm=lm({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:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(am),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),d=t.ref(null),m=t.ref(null),u=t.ref(null),h=t.ref(0),S=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),g=t.computed(()=>a.btn),y=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}),v=O=>O.split("-"),p=O=>re.isEqual(f.currDate[0],O),B=O=>re.isEqual(f.currDate[1],O),w=O=>f.currDate?.length>0?f.currDate?.some(U=>re.isEqual(U,O)):!1,C=(O,U)=>U.curData[0]+"-"+U.curData[1]+"-"+re.getNumTwoBit(+O.day),k=(O,U)=>{const _=C(O,U),{type:Q}=e;return O.type=="curr"?re.isEqual(f.currDate,_)||(Q=="range"||Q=="week")&&(p(_)||B(_))||Q=="multiple"&&w(_)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(_,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,_)?`${f.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],_)&&re.compareDate(_,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},N=()=>{const{type:O}=e;if(O=="range"&&f.chooseData.length==2||O!="range"){let U=f.chooseData.slice(0);O=="week"&&(U={weekDate:[$(f.chooseData[0]),$(f.chooseData[1])]}),n("choose",U),e.poppable&&n("update")}},A=(O,U,_=!1)=>{if(k(O,U)!=`${f.dayPrefix}--disabled`){const{type:Q}=e;let[te,L]=U.curData,Y=[...U.curData];if(Y[2]=re.getNumTwoBit(Number(O.day)),Y[3]=`${Y[0]}-${Y[1]}-${Y[2]}`,Y[4]=re.getWhatDay(+Y[0],+Y[1],+Y[2]),Q=="multiple")if(f.currDate?.length>0){let D;f.currDate?.forEach((x,K)=>{x==Y[3]&&(D=K)}),_?f.chooseData.push([...Y]):D!==void 0?(f.currDate.splice(D,1),f.chooseData.splice(D,1)):(f.currDate.push(Y[3]),f.chooseData.push([...Y]))}else f.currDate=[Y[3]],f.chooseData=[[...Y]];else if(Q=="range"){let D=Object.values(f.currDate).length;D==2||D==0?f.currDate=[Y[3]]:re.compareDate(f.currDate[0],Y[3])?Array.isArray(f.currDate)&&f.currDate.push(Y[3]):Array.isArray(f.currDate)&&f.currDate.unshift(Y[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...Y]]:re.compareDate(f.chooseData[0][3],Y[3])?f.chooseData=[...f.chooseData,[...Y]]:f.chooseData=[[...Y],...f.chooseData]}else if(Q=="week"){let D=re.getWeekDate(te,L,O.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(D[0],f.propStartDate)&&D.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,D[1])&&D.splice(1,1,f.propEndDate),f.currDate=D,f.chooseData=[re.formatResultDate(D[0]),re.formatResultDate(D[1])]}else f.currDate=Y[3],f.chooseData=[...Y];if(!_){let D=f.chooseData;Q=="week"&&(D={weekDate:[$(f.chooseData[0]),$(f.chooseData[1])]}),n("select",D),(e.isAutoBackFill||!e.poppable)&&N()}}},$=O=>{let[U,_,Q]=O;return{date:O,monthWeekNum:re.getMonthWeek(U,_,Q,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(U,_,Q,e.firstDayOfWeek)}},V=O=>{const U=f.monthsData[f.monthsData.length-1];let _=parseInt(U.curData[0]),Q=parseInt(U.curData[1].toString().replace(/^0/,""));switch(O){case"prev":Q==1&&(_-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(_+=1),Q=Q==12?1:++Q;break}return[_+"",re.getNumTwoBit(Q),re.getMonthDays(String(_),String(Q))+""]},H=(O,U,_)=>{let{year:Q,month:te}=_;return Array.from(Array(O),(L,Y)=>({day:String(Y+1),type:U,year:Q,month:te}))},R=(O,U,_,Q)=>{O=O-e.firstDayOfWeek;let{year:te,month:L}=_;return O>=7&&(O-=7),Array.from(Array(Q),(D,x)=>({day:String(x+1),type:U,year:te,month:L})).slice(Q-O)},q=(O,U)=>{const _=re.getMonthPreDay(+O[0],+O[1]);let Q=Number(O[1])-1,te=Number(O[0]);Q<=0&&(Q=12,te+=1);const L=re.getMonthDays(String(O[0]),String(O[1])),Y=re.getMonthDays(te+"",Q+""),D={year:O[0],month:O[1]},x={curData:O,title:l("monthTitle",{year:D.year,month:D.month}),monthData:[...R(_,"prev",{month:String(Q),year:String(te)},Y),...H(L,"curr",D)],cssHeight:0,cssScrollHeight:0},K=x.monthData.length>35?6:5;x.cssHeight=nm+om*K;let X=0;f.monthsData.length>0&&(X=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),x.cssScrollHeight=X,(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${O[0]}-${O[1]}-${O[2]}`))&&f.monthsData.push(x)},T=()=>{let O=e.startDate?e.startDate:re.getDay(0),U=e.endDate?e.endDate:re.getDay(365);f.propStartDate=O,f.propEndDate=U,f.startData=v(O),f.endData=v(U),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const _={year:Number(f.startData[0]),month:Number(f.startData[1])},Q={year:Number(f.endData[0]),month:Number(f.endData[1])};let te=Q.month-_.month;Q.year-_.year>0&&(te=te+12*(Q.year-_.year)),te<=0&&(te=1),q(f.startData);let L=1;do q(V("next"));while(L++<te);if(f.monthsNum=te,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(O&&re.compareDate(f.currDate[0],O)&&f.currDate.splice(0,1,O),U&&re.compareDate(U,f.currDate[1])&&f.currDate.splice(1,1,U),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let Y=[],D={};f.currDate.forEach(x=>{O&&!re.compareDate(x,O)&&U&&!re.compareDate(U,x)&&(Object.hasOwnProperty.call(D,x)||(Y.push(x),D[x]=x))}),f.currDate=[...Y],f.defaultData=[...v(Y[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[Y,D,x]=v(f.currDate[0]),K=re.getWeekDate(Y,D,x,e.firstDayOfWeek);f.currDate=K,O&&re.compareDate(f.currDate[0],O)&&f.currDate.splice(0,1,O),U&&re.compareDate(U,f.currDate[1])&&f.currDate.splice(1,1,U),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]}}else f.currDate&&(O&&re.compareDate(f.currDate,O)?f.currDate=O:U&&!re.compareDate(f.currDate,U)&&(f.currDate=U),f.defaultData=[...v(f.currDate)])};Ee({scrollToDate:O=>{re.compareDate(O,f.propStartDate)?O=f.propStartDate:re.compareDate(O,f.propEndDate)||(O=f.propEndDate);let U=v(O);f.monthsData.forEach((_,Q)=>{if(_.title==l("monthTitle",{year:U[0],month:U[1]})&&c.value){let te=f.monthsData[Q].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let L=0,Y=setInterval(()=>{if(L++,c.value){let D=te/10;c.value.scrollTop=c.value.scrollTop+D}L>=10&&(clearInterval(Y),c.value&&(c.value.scrollTop=f.monthsData[Q].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[Q].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let O=0,U=0;f.defaultData.length>0&&f.monthsData.forEach((te,L)=>{te.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(O=L),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(U=L)}),j(f.monthsNum,O),f.currentIndex=O,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),A({day:f.defaultData[5],type:"curr"},f.monthsData[U],!0)):e.type=="week"?A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(te=>{let L=v(te),Y=f.currentIndex;f.monthsData.forEach((D,x)=>{D.title==l("monthTitle",{year:L[0],month:L[1]})&&(Y=x)}),A({day:L[2],type:"curr"},f.monthsData[Y],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let _=f.monthsData[f.monthsData.length-1],Q=_.cssHeight+_.cssScrollHeight;Ge(()=>{c?.value&&d?.value&&u?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Q}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Q/(f.monthsNum+1))}});const j=(O,U)=>{O>=3?U>0&&U<O?f.defaultRange=[U-1,U+3]:U==0?f.defaultRange=[U,U+4]:U==O&&(f.defaultRange=[U-2,U+2]):f.defaultRange=[0,O+2];let _=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=_},M=(O,U)=>(e.type=="range"||e.type=="week")&&O.type=="curr"&&k(O,U)=="fox-calendar__day--active",Z=(O,U)=>M(O,U)&&p(C(O,U)),ee=(O,U)=>f.currDate.length>=2&&B(C(O,U))?M(O,U):!1,F=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},W=O=>{const U=`${O.year}-${O.month}-${Number(O.day)<10?"0"+O.day:O.day}`;return re.isEqual(U,re.date2Str(new Date))},P=O=>{if(f.monthsData.length<=1)return;const U=O.target.scrollTop;let _=Math.floor(U/f.avgHeight);if(_==0)U>=f.monthsData[_+1].cssScrollHeight&&(_+=1);else if(_>0&&_<f.monthsNum-1)U>=f.monthsData[_+1].cssScrollHeight&&(_+=1),U<f.monthsData[_].cssScrollHeight&&(_-=1);else{const Q=Math.round(U+h.value);Q<f.monthsData[_].cssScrollHeight+f.monthsData[_].cssHeight&&U>f.monthsData[_-1].cssScrollHeight&&(_-=1),_+1<=f.monthsNum&&Q>=f.monthsData[_+1].cssScrollHeight+f.monthsData[_+1].cssHeight&&(_+=1),_>=1&&U<f.monthsData[_-1].cssScrollHeight&&(_-=1)}f.currentIndex!==_&&(f.currentIndex=_,j(f.monthsNum,_)),f.yearMonthTitle=f.monthsData[_].title},G=()=>{f.chooseData.splice(0),f.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,O=>{O&&e.poppable&&G()}),{weeks:i,compConthsData:S,showTopBtn:g,topInfo:y,bottomInfo:b,rangeTip:F,mothsViewScroll:P,getClass:k,isStartTip:Z,isEndTip:ee,chooseDay:A,isCurrDay:W,confirm:N,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:u}}}),sm={class:"fox-calendar__header"},im={key:0,class:"fox-calendar__header-title"},cm={key:1,class:"fox-calendar__header-slot"},um={key:2,class:"fox-calendar__header-subtitle"},dm={class:"fox-calendar__weekdays",ref:"weeksPanel"},fm={class:"fox-calendar__panel",ref:"monthsPanel"},mm={class:"fox-calendar__month-title"},pm={class:"fox-calendar__days"},hm=["onClick"],gm={class:"fox-calendar__day-value"},ym={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},vm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},bm={key:2,class:"fox-calendar__day-tips--curr"},km={key:4,class:"fox-calendar__day-tip"},Sm={key:0,class:"fox-calendar__footer"};function Cm(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",sm,[e.showTitle?(t.openBlock(),t.createElementBlock("view",im,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",cm,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",um,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",dm,[(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",fm,[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",mm,t.toDisplayString(s.title),1),t.createElementVNode("view",pm,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",gm,[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",ym,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",vm,[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",bm,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",km,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,hm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Sm,[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 wm=oe(rm,[["render",Cm]]),Nm=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=tt({...e},{poppable:!1});return t.h(pe,a,n)}else return n?.default?.()??null}}}),Bm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),bn={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:Am}=J("calendar"),Vm=Am({components:{Wrapper:Nm,CalendarPane:wm},props:{...bn},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=y=>{i.value?.scrollToDate(y)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:d});const m=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:m,close:u,select:y=>{n("select",y)},choose:y=>{u(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Tm(e,n,a,o,l,r){const s=t.resolveComponent("CalendarPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,t.mergeProps({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{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","poppable"])}const co=oe(Vm,[["render",Tm]]),Fr={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}},To=(e,n)=>{let a;return We(e)?a=e:typeof e=="string"&&ke(e)>0?a=re.parser(e,n):a=new Date,a},mt=(e,n,a)=>(We(n)||(n=new Date),re.format(n,a)),pt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function $m(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...ge,...ve,...bn,...Fr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=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=[])},v=(P,G="one",O="YYYY-MM-DD")=>{if(Bm(P)){f();return}if(y.value&&Array.isArray(P)&&P.length==2){let U,_;typeof P[0]=="string"?(U=To(P[0],O),_=To(P[1],O)):(U=P[0],_=P[1]);let Q=pt(U),te=pt(_);(b.startDate===null||b.startDate.getTime()!==U.getTime()||b.endDate?.getTime()!==_.getTime())&&(b.startDate=U,b.startArray=Q,b.endDate=_,b.endArray=te)}else{let U;typeof P=="string"?U=To(P,O):U=P;let _=pt(U);(b.startDate===null||b.startDate.getTime()!==U.getTime())&&(b.startDate=U,b.startArray=_)}};v(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,P=>{v(P,i.type,i.valueFormat),u("setValue",P)});const p=t.computed(()=>{if(b.startDate===null)return"";if(y.value){let P=mt(i,b.startDate,i.format),G=mt(i,b.endDate,i.format);return`${P} ${i.rangeSeparator} ${G}`}else{let P=mt(i,b.startDate,i.format);return i.showWeek&&(P=`${P} ${b.startArray[4]}`),P}}),B=t.computed(()=>{if(b.startDate===null)return null;if(y.value){let P=re.date2Str(b.startDate),G=re.date2Str(b.endDate??new Date);return[P,G]}else return re.date2Str(b.startDate)}),w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":m.value})),k=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const P={};return k.value&&(P["text-align"]=k.value),P}),A=t.ref(!1),$=()=>{m.value||d.value||(A.value=!0)},V=P=>{A.value=P},H=P=>{if(P){if(y.value&&Array.isArray(P)){let G=P[0],O=he(G[0]),U=he(G[1]),_=he(G[2]),Q=new Date(O,U-1,_),te=P[1];O=he(te[0]),U=he(te[1]),_=he(te[2]);let L=new Date(O,U-1,_);if(b.startDate=Q,b.startArray=pt(Q),b.endDate=L,b.endArray=pt(L),i.valueFormat){let Y=mt(i,Q,i.valueFormat),D=mt(i,L,i.valueFormat);u("update:modelValue",[Y,D],{})}else u("update:modelValue",[Q,L],{})}else{let G=P,O=he(G[0]),U=he(G[1]),_=he(G[2]),Q=new Date(O,U-1,_);if(b.startDate=Q,b.startArray=pt(Q),i.valueFormat){let te=mt(i,Q,i.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",Q,{})}u("change",P,{})}},R=P=>{let O=P.target.value;g.value=!0,u("focus",O,P)},q=P=>{setTimeout(()=>{g.value=!1},0);let O=P.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),u("blur",O,P)},T=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),I=t.computed(()=>ke(i.unit)>0),E=t.computed(()=>ke(i.unit)>0&&!g.value),z=t.computed(()=>({hidden:!E.value})),j=P=>{f(),u("update:modelValue",null,P),u("change","",P),u("clear","")},M=t.computed(()=>i.clearable&&!d.value&&!m.value),Z=t.computed(()=>{let P=ke(p.value)>0;return i.clearable&&P&&g.value}),ee=P=>{Z.value?j(P):$()},F=t.computed(()=>Z.value&&M.value?l:r),W=t.computed(()=>({action:!0}));return()=>{const P={class:C.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:$,onFocus:R,onBlur:q};s&&(P.disabled=!0);const G=[],O=t.h("input",P);G.push(O);const U=[],_={class:["action-icon"]},Q=t.h(F.value,_),te={class:W.value,onClick:ee},L=t.h("view",te,{default:()=>[Q]});if(U.push(L),I.value){const we=t.h("view",{class:z.value},[i.unit]);U.push(we)}const Y={class:T.value},D=t.h("view",Y,{default:()=>U});G.push(D);const x={default:()=>G};x.label=c.slots.default,x.prepend=c.slots.prepend,x.append=c.slots.append,x.fixedPreTip=c.slots.fixedPreTip,x.fixedTip=c.slots.fixedTip;const K=ye(i,bn);K.visible=A.value,K["onUpdate:visible"]=V,K["default-value"]=B.value,K.onChoose=H;const X={};if(c.slots.btn){const we=c.slots.btn();X.btn=()=>we}c.slots.day&&(X.day=c.slots.day),c.slots.topInfo&&(X.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(X.bottomInfo=c.slots.bottomInfo);const ne=t.h(a,K,X);x.hide=()=>[ne];const se={...tt(i,bn,Fr)};return i.prop&&(se.prop=`${i.prop}_item`),t.h(o,se,x)}}}}const{componentName:Em,create:xm,scope:Dm}=J("calendar-item"),$l=xm($m(Em,Dm,co,Ne,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),Im={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 qm(e,{CheckNormal:n,Checked:a}){return{props:{...Im},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=Wn(),c=t.computed(()=>s.label.value===o.label),d=t.computed(()=>s.position),m=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const b=de(o.iconSize),f=o.checkedIcon??i.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:b,height:b,class:y})}}else{if(r.icon)return r.icon();{const b=de(o.iconSize),f=o.icon??i.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:b,height:b,class:y})}}},u=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},h=()=>{const y=[`${e}__button`];return c.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},S=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${g?`${e}--reverse`:""}`,onClick:S},[o.shape=="button"?h():g?[u(),m()]:[m(),u()]])}}}const{componentName:Pm,create:Mm}=J("radio"),uo=Mm(qm(Pm,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:Kr,create:Lm}=J("radio-group"),fo=Lm({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}=Tt(),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:`${Kr} ${Kr}--${e.direction}`,style:l},n.default?.())}}});function Ur(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(Ie(a,r))return l}else if(Ot(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 Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function zm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Om(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Rm=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Fm(){const e=t.getCurrentInstance();return new Rm(e.proxy)}function Km(e){return{text:e,value:e}}const Hr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Um={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Hm={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,Object],default:""}};function jm(e,n,a,o,l){return{props:{...ge,...ve,...Hr,...Um,...Hm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=$e(t.computed(()=>r.disabled)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),u=Fm(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,v])=>{if(f){const p=await u.load("radio",f,v);if(p.length>0)if(typeof p[0]=="string"){const C=p.map(k=>Km(k));h.value=C}else h.value=p;else h.value=[]}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([f,v])=>{S.value=Ur(r,v,f,r.valueType),m("setValue",f)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const f=h.value[S.value];return Ot(r,f)}),y=f=>{let v=null,p=null;if(h.value.length>0){let B=Ur(r,h.value,f,"value");S.value=B,B>=0&&(p=h.value[B],r.valueType==="text"?v=kn(r,p):r.valueType==="item"?v=p:v=Ot(r,p))}else v=f;m("update:modelValue",v),m("change",v,p)},b=()=>{let f=null,v=null;if(h.value.length>0&&S.value!==-1){let p=h.value[S.value];r.valueType==="text"?f=kn(r,p):r.valueType==="item"?f=p:f=Ot(r,p)}m("update:modelValue",f),m("change",f,v)};if(Ee({clear(){S.value!==-1&&(S.value=-1,b())}}),r.source){const f=()=>{const v=[],p=ye(r,Hr);return h.value.forEach((B,w)=>{const C=Ot(r,B),k=zm(r,B);let N={...p,label:C,disabled:k};const A=Om(r,B,w);N={...N,...A},c.value&&(N.disabled=!0),i.value&&(N.readonly=!0);const $={};if(s.slots.icon&&($.icon=s.slots.icon),s.slots.checkedIcon&&($.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const H=s.slots.text(B);$.default=()=>[H]}else{const H=kn(r,B);$.default=()=>H}let V=t.h(l,N,$);v.push(V)}),v};return()=>{const v=f(),p={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":y},B=t.h(o,p,{default:()=>v}),w={default:()=>B};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const k={...ye(r,ve,ge)};return r.prop&&(k.prop=`${r.prop}_item`),t.h(a,k,w)}}else return()=>{const f=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":y},{default:()=>f})}}}}const{componentName:Wm,create:Ym,scope:Xm}=J("radio-item"),El=Ym(jm(Wm,Xm,Ne,fo,uo)),Qm=(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}=Tt(),i=Wn(),c=t.inject("parent",null),d=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,p=>{d.partialSelect=p});const m=t.computed(()=>!!c),u=t.computed(()=>m.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>m.value?c.position:l.textPosition);let S="";const g=(p,B)=>{S="click",s("update:modelValue",p),s("change",p,B)};t.watch(()=>l.modelValue,p=>{S=="click"?S="":s("change",p)});const y=()=>{const p=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const B=de(l.iconSize),w=l.indeterminateIcon??i.checkbox.Indeterminate??o;return p.push("fox-checkbox__icon--indeterminate"),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h(w,{width:B,height:B,class:p})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const B=de(l.iconSize),w=l.checkedIcon??i.checkbox.Checked??a;return p.push("fox-checkbox__icon"),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h(w,{width:B,height:B,class:p})}}else{if(r.icon)return r.icon();{const B=de(l.iconSize),w=l.icon??i.checkbox.CheckNormal??n;return p.push("fox-checkbox__icon--unchecked"),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h(w,{width:B,height:B,class:p})}}},b=()=>{const p=[`${e}__label`];return l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h("view",{class:p},r.default?.())},f=()=>{const p=[`${e}__button`];return u.value&&p.push(`${e}__button--active`),l.disabled&&p.push("is-disabled"),l.readonly&&p.push("is-readonly"),t.h("view",{class:p},r.default?.())},v=p=>{if(!(l.disabled||l.readonly)){if(u.value&&d.partialSelect){d.partialSelect=!1,g(u.value,r.default?.()[0].children);return}if(g(!u.value,r.default?.()[0].children),m.value){const B=c.value.value,w=c.max.value,{label:C}=l,k=B.indexOf(C);k>-1?B.splice(k,1):k<=-1&&(B.length<w||!w)&&B.push(C),c.updateValue(B)}}};return t.onMounted(()=>{m.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{m.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:v},[l.shape=="button"?f():[y(),b()]])}}),{componentName:Gm,create:Zm}=J("checkbox"),mo=Zm(Qm(Gm,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Jm,componentName:jr}=J("checkbox-group"),po=Jm({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}=Tt(),o=t.reactive({children:[]}),l=d=>{d.proxy&&o.children.push(d.proxy)},r=d=>{d.proxy&&(o.children=o.children.filter(m=>m!==d.proxy))},s=d=>{a("update:modelValue",d),a("change",d)},i=d=>{const m=[];d&&o.children.forEach(u=>{u?.disabled||m.push(u?.label)}),a("update:modelValue",m)},c=()=>{const d=o.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);a("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,d=>{a("change",d)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${jr} ${jr}--${e.direction}`,style:d},n.default?.())}}});function Wr(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(Ie(a,r))return l}else if(Sn(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 Sn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _m(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function ep(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let tp=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function np(){const e=t.getCurrentInstance();return new tp(e.proxy)}function op(e){return{text:e,value:e}}const lp={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Yr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},ap={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 rp(e,n,a,o,l){return{props:{...ge,...ve,...lp,...Yr,...ap},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e(t.computed(()=>r.disabled)),c=Te(t.computed(()=>r.readonly)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),u=np(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,v])=>{if(f){const p=await u.load("checkbox",f,v);if(p.length>0)if(typeof p[0]=="string"){const C=p.map(k=>op(k));h.value=C}else h.value=p;else h.value=[]}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([f,v])=>{const p=[];Array.isArray(f)&&f.forEach(B=>{let w=Wr(r,v,B,r.valueType);w!==-1&&p.push(w)}),!Ie(p,S.value)&&(S.value=p,m("setValue",p))},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return S.value.forEach(v=>{let p=h.value[v];f.push(Sn(r,p))}),f}),y=f=>{let v=[],p=[];if(h.value.length>0){const B=[];Array.isArray(f)&&f.forEach(w=>{let C=Wr(r,h.value,w,"value");C!==-1&&B.push(C);const k=h.value[C];p.push(k),r.valueType==="text"?v.push(_o(r,k)):r.valueType==="item"?v.push(k):v.push(Sn(r,k))}),S.value=B}else v=f;m("update:modelValue",v),m("change",v,p)},b=t.ref();if(Ee({toggleAll:f=>{b.value.toggleAll(f)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const f=()=>{const v=[],p=ye(r,Yr);return h.value.forEach((B,w)=>{const C=Sn(r,B),k=_m(r,B);let N={...p,label:C,disabled:k};const A=ep(r,B,w);N={...N,...A},i.value&&(N.disabled=!0),c.value&&(N.readonly=!0);const $={};if(s.slots.icon&&($.icon=s.slots.icon),s.slots.checkedIcon&&($.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&($.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const H=s.slots.text(B);$.default=()=>[H]}else{const H=_o(r,B);$.default=()=>H}let V=t.h(l,N,$);v.push(V)}),v};return()=>{const v=f(),p={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":y},B=t.h(o,p,{default:()=>v}),w={default:()=>B};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const k={...ye(r,ve,ge)};return r.prop&&(k.prop=`${r.prop}_item`),t.h(a,k,w)}}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:d.value,modelValue:g,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:sp,create:ip,scope:cp}=J("checkbox-item"),xl=ip(rp(sp,cp,Ne,po,mo)),el={modelValue:{type:[String,Boolean,Number],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:up,create:dp}=J("switch"),fp=dp({components:{Loading1:le.Loading1},props:{...el},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=up;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}}}),mp={class:"fox-switch-button"};function pp(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",mp,[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 ho=oe(fp,[["render",pp]]);function hp(e,n,a,o){return{props:{...ge,...ve,...el},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,m=Me(l,"modelValue",null,c),u=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...ye(l,el),disabled:s.value||i.value,value:m.value,"onUpdate:modelValue":u},g=[],y=t.h(o,S);g.push(y);const b={default:()=>g};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const v={...ye(l,ve,ge)};return l.prop&&(v.prop=`${l.prop}_item`),v["content-class"]=d,t.h(a,v,b)}}}}const{componentName:gp,create:yp,scope:vp}=J("switch-item"),Dl=yp(hp(gp,vp,Ne,ho));function bp(e,n,a,o){return{props:{...ge,...ve,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=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,H=>{u.value=H,c("change",H)});const h=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(u.value),"is-disabled":s.value,"is-readonly":i.value})),g=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const H={};return g.value&&(H["text-align"]=g.value),H}),b=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(u.value)?m.placeholder.value:u.value),v=t.computed(()=>!ue(l.desc)||r.slots.sub),p=t.computed(()=>({[`${e}__sub`]:!0})),B=t.computed(()=>{const H={};return g.value&&(H["text-align"]=g.value),H}),w=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},k=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),N=t.computed(()=>ke(l.unit)>0),A=H=>{s.value==!0||i.value==!0||c("click")},$=t.computed(()=>l.icon??a),V=t.computed(()=>({action:!0}));return()=>{const H=[];if(typeof r.slots.content=="function"){const W=r.slots.content();H.push(W)}else{const W=[];if(b.value){const O={tabIndex:0,class:S.value,style:y.value,onFocus:w,onBlur:C};let U=null;r.slots.main?U=t.h("view",O,[r.slots.main(f.value)]):U=t.h("view",O,[f.value]),W.push(U)}if(v.value){const O={tabIndex:0,class:p.value,style:B.value,onFocus:w,onBlur:C};let U=null;r.slots.sub?U=t.h("view",O,[r.slots.sub(l.desc)]):U=t.h("view",O,[l.desc]),W.push(U)}const P={class:h.value,onClick:A},G=t.h("view",P,W);H.push(G)}const R=[],q=de(l.iconSize);let T=r.slots.icon;if(!T){const W={width:q,height:q,class:["action-icon"]};T=t.h($.value,W)}const I={class:V.value,onClick:A},E=t.h("view",I,{default:()=>[T]});if(R.push(E),N.value){const W=t.h("view",{},[l.unit]);R.push(W)}const z={class:k.value},j=t.h("view",z,{default:()=>R});H.push(j);const M={default:()=>H};M.label=r.slots.default,M.prepend=r.slots.prepend,M.append=r.slots.append,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const ee={...ye(l,ve,ge)};return l.prop&&(ee.prop=`${l.prop}_item`),t.h(o,ee,M)}}}}const{componentName:kp,create:Sp,scope:Cp}=J("link-item"),Il=Sp(bp(kp,Cp,le.ArrowRight,Ne)),tl={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:wp,componentName:Np}=J("rate"),Bp=wp({props:{...tl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[Np]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},s=(S,g)=>{if(e.disabled||e.readonly)return;let y=0;g===1&&e.modelValue===g||(y=g,e.allowHalf&&S==2&&(y-=.5)),r(y)},i=(S,g,y)=>{let b=0;for(let f=g.value.length-1;f>=0;f--){const v=g.value[f];if(S>v.offsetLeft){y?b=f+(S>v.offsetLeft+v.clientWidth/2?1:.5):b=f+1;break}}return b},c=lt(),d={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))))}},m=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...d,onClick:s,toPxString:me,renderIcon:(S,g)=>t.h(S,g),rateRefs:o,refRandomId:m,slots:a,customIcon:u}}}),Ap=["id"],Vp={class:"fox-rate-item__icon--full"},Tp={key:0,class:"fox-rate-item__icon--half"},$p={key:1,class:"fox-rate-item__icon--half"};function Ep(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.toPxString(e.spacing)}:{})},[t.createElementVNode("view",Vp,[(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",Tp,[(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",$p,[(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,Ap))),128))],34)}const Nt=oe(Bp,[["render",Ep]]);function xp(e,n,a,o){return{props:{...ge,...ve,...tl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,m=Me(l,"modelValue",null,c),u=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...ye(l,tl),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":u},g=[],y=t.h(o,S);g.push(y);const b={default:()=>g};if(r.slots.default){const p=r.slots.default();b.label=()=>p}const f=ye(l,ve,ge);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=d,t.h(a,f,b)}}}}const{componentName:Dp,create:Ip,scope:qp}=J("rate-item"),ql=Ip(xp(Dp,qp,Ne,Nt)),Pp=/scroll|auto|overlay/i,Qs=window;function Mp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function nl(e,n=Qs){let a=e;for(;a&&a!==n&&Mp(a);){const{overflowY:o}=window.getComputedStyle(a);if(Pp.test(o))return a;a=a.parentNode}return n}function Gs(e,n=Qs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=nl(e.value,n))}),a}const Zs=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Lp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function zp(e,n,a){return{props:{...Lp},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullText","loadText","noMoreText"]),c=t.ref(),d=Gs(c),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=v=>v?v.offsetTop+h(v.offsetParent):0,S=()=>{let v=0,p=0,B="down";if(d.value==window){const w=Zs();c.value&&(v=h(c.value)+c.value.offsetHeight-w-window.innerHeight),p=w}else{const{scrollHeight:w,clientHeight:C,scrollTop:k}=d.value;v=w-C-k,p=k}return m.beforeScrollTop>p?B="up":B="down",m.beforeScrollTop=p,l("scroll-change",p),v<=o.threshold&&B=="down"},g=()=>{Ge(()=>{if(!S()||!o.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",g,o.useCapture)},b=()=>{d.value&&d.value.removeEventListener("scroll",g,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&g()}),t.onUnmounted(()=>{b()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,b()}),t.watch(()=>o.modelValue,v=>{v||(m.isInfiniting=!1)}),()=>{const v={class:"fox-infinite__container"},p=t.h("view",v,[r?.default?.()]),B=[];if(m.isInfiniting){let N=r?.loading?.()??null;if(!N){let V=r?.loadingIcon?.()??null;if(!V){const q={class:["fox-infinite__bottom-box__img"]};V=t.h(a,q)}const H={class:"fox-infinite__bottom-box__text"},R=t.h("view",H,[i.loadText.value]);N=[V,R]}const A={class:"fox-infinite__bottom-box"},$=t.h("view",A,N);B.push($)}else if(!o.hasMore){let N=r?.finished?.()??null;if(!N){const A={class:"fox-infinite__bottom-tips"};N=t.h("view",A,[i.noMoreText.value]),B.push(N)}}const w={class:"fox-infinite__bottom"},C=t.h("view",w,B),k={class:u.value,ref:c};return t.h("view",k,[p,C])}}}}const{componentName:Op,create:Rp,scope:Fp}=J("infinite-loading"),go=Rp(zp(Op,Fp,le.Loading)),{componentName:Kp,create:Up}=J("button"),Hp=Up({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:d,block:m}=t.toRefs(e),u=g=>{!i.value&&!s.value&&n("click",g)},h=t.computed(()=>{const g=Kp;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${l.value}`]:l.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),S=t.computed(()=>{const g={};return c?.value&&(d.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:u,classes:h,getStyle:S}}}),jp={class:"fox-button__wrap"};function Wp(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",jp,[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 ze=oe(Hp,[["render",Wp]]),Yp={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"}},Xp=(e,n,a)=>({props:{...Yp},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}=Tt(),{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),d=t.computed(()=>({background:o.background})),m=t.computed(()=>({background:o.inputBackground})),u=A=>{let V=A.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),r("update:modelValue",V,A),r("change",V,A)},h=t.ref({}),S=A=>{let V=A.target.value;c.active=!0,h.value=o.focusStyle,r("focus",V,A)},g=A=>{setTimeout(()=>{c.active=!1},0);let V=A.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),h.value={},r("blur",V,A)},y=A=>{r("update:modelValue","",A),r("change","",A),r("clear","")},b=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const A={};return b.value||(A.display="none"),A}),v=A=>{o.autoblur&&k.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),r("search",o.modelValue)},p=A=>{r("keyup-input",A)},B=A=>{r("click-input",A)},w=A=>{r("click-left-icon",o.modelValue,A)},C=t.computed(()=>({textAlign:o.inputAlign})),k=t.ref(null);t.onMounted(()=>{o.autofocus&&k.value.focus()});const N=()=>{const A=[];if(l.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:w},E=t.h("view",I,[l.leftin()]);A.push(E)}const $={class:`${e}__input-inner-input`,ref:k,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:B,onInput:u,onFocus:S,onBlur:g,onkeyup:p},V=t.h("input",$),H={class:[`${e}__input-inner`],action:"#",onSubmit:v},R=t.h("form",H,[V]);A.push(R);const q=[];if(o.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},E=l?.clear?.()??o.clearIcon??a,z=t.h("view",I,[t.h(E)]);q.push(z)}if(l.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",I,[l.rightin()]);q.push(E)}if(q.length>0){const I={class:`${e}__input-inner-right`},E=t.h("view",I,q);A.push(E)}const T={class:[`${e}__search-input`,`${o.shape}`],style:{...m.value,...h.value}};return t.h("view",T,A)};return()=>{const A=[];if(o.label){const H={class:`${e}__search-label`},R=t.h("span",H,[o.label]);A.push(R)}if(l.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},R=t.h("view",H,[l.leftout()]);A.push(R)}const $=N();if(A.push($),l.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},R=t.h("view",H,[l.rightout()]);A.push(R)}const V={class:`${e}`,style:d.value};return t.h("view",V,A)}}}),{componentName:Qp,create:Gp,scope:Zp}=J("searchbar"),yo=Gp(Xp(Qp,Zp,le.CircleClose)),Cn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},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]},noMoreText:{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},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Jp(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(wn(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(Js(e,r)===a)return l}return-1}function wn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Js(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _p(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function eh(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let th=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let d=a;typeof i=="function"&&(d=d.filter(i));let m=(o-1)*l,u=m+l;u>d.length&&(u=d.length);const h=d.slice(m,u);return{totalSize:d.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=ot(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(De(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function nh(){const e=t.getCurrentInstance();return new th(e.proxy)}function oh(e,n,a,o,l,r,s,i,c,d,m){return{props:{...Cn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:S}=Tt(),{toLocaleRefs:g}=ie.useFoxI18n(n),y=g(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),b=nh(),f=t.ref([]),v=t.ref(0),p=t.ref(""),B=t.shallowRef(null),w=t.computed(()=>{const L={};return u.params&&Object.assign(L,u.params),ue(p.value)||(L[`${u.searchKey}`]=p.value),B.value&&Object.assign(L,B.value),L});let C=!0;const k=async(L,Y,D)=>{try{if(A.value===!1)return;let x=null;ue(p.value)||(x=X=>{const ne=wn(u,X);if(typeof ne=="string"&&ne.includes(p.value))return!0;const ae=Xr(u,X);return!!(typeof ae=="string"&&ae.includes(p.value))});const K=await b.load("actionsheet",L,Y,D,w.value,C,x??void 0);C=!1,Array.isArray(K)?(f.value=K,v.value=1,A.value=!1):!Array.isArray(K.page)||K.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,f.value,K.page),v.value=Math.ceil(f.value.length/u.pageSize),(K.totalSize&&f.value.length>=K.totalSize||D<K.page.length)&&(A.value=!1)),N.value=!1}catch(x){console.error("[FoxUI] ActionSheet load more data fail",x),A.value=!0,v.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},N=t.ref(!1),A=t.ref(!0),$=async()=>{if(!u.source){N.value=!1;return}await k(u.source,v.value+1,u.pageSize)};let V=null;t.watch(p,(L,Y)=>{V&&(clearTimeout(V),V=null),ue(L)&&!ue(Y)&&(V=setTimeout(()=>{R()},u.searchDelayTriggerClear))});const H=()=>{A.value=!0,v.value=0,f.value=[],u.source&&$()},R=()=>{H()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([L,Y,D])=>{u.source&&H()},{immediate:!0});const q=t.computed(()=>!u.multiple&&u.isAutoBackFill),T=t.ref([]);let I=null;const E=t.ref(u.visible);t.watch(()=>u.visible,L=>{E.value!==L&&(E.value=L),L?I=[...T.value]:I=null});const z=(L,Y)=>{const D=[];return Array.isArray(L)||(L=[L]),L.forEach(x=>{let K=Jp(u,Y,x,u.valueType);K!==-1&&D.push(K)}),Ie(D,T.value)?!1:(T.value=D,!0)};t.watch([()=>u.modelValue,()=>f.value],([L,Y],[D,x])=>{if(z(L,Y)){const X=j();M(X)}},{deep:!0});const j=()=>{const L=[],Y=[],D=[];for(let ne of T.value){const ae=f.value[ne];Y.push(ae);const se=wn(u,ae);if(D.push(se),u.valueType==="item")L.push(ae);else if(u.valueType==="text")L.push(se);else{const fe=Js(u,ae);L.push(fe)}}let x=null,K=null,X=null;return u.multiple?(x=L,K=D,X=Y):(x=L[0]??null,K=D[0]??null,X=Y[0]??null),{value:x,text:K,item:X}},M=L=>{S("update:modelValue",L.value),S("update:text",L.text),S("change",L.value,L.item,L.text)},Z=()=>{I&&(T.value=I)},ee=L=>{const Y=T.value.indexOf(L);u.multiple?Y===-1?T.value.push(L):T.value.splice(Y,1):Y===-1?T.value=[L]:T.value=[],(q.value||!u.poppable&&!u.showFooter)&&P()},F=L=>{E.value=L,S("update:visible",L)},W=()=>{const L=()=>{Z(),F(!1)},Y=u.beforeMethod??u.beforeClose;if(typeof Y=="function"){const D=Y("close");kt(D)?D.then(x=>{x!==!1&&L()}).catch(()=>{L()}):D!==!1&&L()}else L()},P=()=>{const L=j(),Y=()=>{M(L),F(!1)},D=u.beforeMethod??u.beforeClose;if(typeof D=="function"){const x=D("confirm",L.value,L.item,L.text);kt(x)?x.then(K=>{K!==!1&&Y()}).catch(()=>{Y()}):x!==!1&&Y()}else Y()},G=()=>{let L=y.title.value??"";h.title&&(L=h.title());const Y=t.h("view",{class:["fox-actionsheet__header-title"]},[L]),D=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:W});return t.h("view",{class:["fox-actionsheet__header"]},[Y,D])},O=()=>{let L=null;if(h.search)L=h.search();else{const Y={onSearch:H,placeholder:y.seachPlaceholder.value,disabled:u.disabled,modelValue:p.value,"onUpdate:modelValue":D=>{p.value=D}};L=t.h(r,Y,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[L])},U=(L,Y,D,x,K)=>{if(h.optionLabel)return h.optionLabel({text:L,checked:Y,disabled:D,subText:x,item:K});const X=[],ne=t.h("view",{class:"fox-actionsheet__list-item-text"},[L]);if(X.push(ne),x){const ae=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[x]);X.push(ae)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},X)},_=(L,Y,D,x)=>{if(h.optionIcon)return h.optionIcon({checked:L,disabled:Y,iconSize:D,item:x});if(L){if(h.checkedIcon)return h.checkedIcon({disabled:Y,item:x});{const K=u.checkedIcon??i;return t.h(K,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:Y,item:x});{const K=u.icon??s;return t.h(K,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]})}}},Q=()=>{const L=[];for(let Y=0;Y<f.value.length;Y++){const D=f.value[Y],x=wn(u,D),K=Xr(u,D),X=["fox-actionsheet__list-item"],ne={};let ae=_p(u,D),se=u.iconSize?de(u.iconSize):null;const fe=eh(u,D,Y);fe&&(ae=ae||fe.disabled,fe.class&&X.push(fe.class),fe.style&&Object.assign(ne,fe.style)),ae=!!(u.disabled||ae);const we=T.value.includes(Y);ae&&X.push("is-disabled"),we&&X.push("is-checked");const Xe={class:X,style:ne,key:`${Y}`,onClick:()=>{ae||ee(Y)}};let Qe=[];if(h.option)Qe.push(h.option({item:D,checked:we,disabled:ae}));else{const ft=U(x,we,ae,K,D);Qe.push(ft);const ko=_(we,ae,se,D);Qe.push(ko),u.textPosition==="right"&&Qe.reverse()}const Ue=t.h("view",Xe,Qe);L.push(Ue)}return L},te=()=>{let L=[];if(h.buttons)L=h.buttons();else{const D=t.h(l,{type:"primary",block:"block",onClick:P,disabled:u.disabled},{default:()=>y.confirmText.value});L.push(D)}return t.h("view",{class:"fox-actionsheet__footer"},[L])};return Ee({search:async(L=null,Y=!0)=>{B.value=L&&t.toRaw(L),t.triggerRef(B),Y&&(A.value=!0,v.value=0,f.value=[]),t.nextTick(()=>{$()})},clear:()=>{A.value=!0,v.value=0,f.value=[]},confirm:()=>{P()},cancel:()=>{W()}}),()=>{const L=[];if(u.showHeader){const se=G();L.push(se)}if(u.showSearchbar){const se=O();L.push(se)}let Y=null;if(h.content)Y=h.content();else{const se=Q(),fe={hasMore:A.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":we=>{N.value=we},onLoadMore:$};Y=t.h(o,fe,{default:()=>se})}const D={};u.optionsHeight&&(D.height=u.optionsHeight);const x={"fox-actionsheet__list":!0};u.poppable||(x["fox-actionsheet__list--inner"]=!0);const K=t.h("view",{class:x,style:D},[Y]);if(L.push(K),u.showFooter&&!q.value){const se=te();L.push(se)}const X=t.h("view",{class:"fox-actionsheet"},L);if(!u.poppable)return X;const ne=["fox-actionsheet__popup"];u.popClass&&ne.push(u.popClass);const ae={popClass:ne.join(" "),visible:E.value,closeable:!1,"onUpdate:visible":F,position:u.position,round:"round",onClickOverlay:W,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,ae,{default:()=>X})}}}}const{componentName:lh,create:ah,scope:rh}=J("actionsheet-pane"),vo=ah(oh(lh,rh,pe,go,ze,yo,le.CheckNormal,le.Checked,le.Close,le.Search2)),Qr={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 sh(e,n,a,o,l,r,s){return{props:{...ge,...ve,...Qr,...Cn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=Me(i,"modelValue",null,u),b=t.ref(""),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),B=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const P={};return B.value&&(P["text-align"]=B.value),P}),C=t.ref(!1),k=()=>{C.value=!0},N=P=>{C.value=P},A=P=>{y.value=P,u("update:modelValue",P)},$=(P,G)=>{u("change",P,G)},V=P=>{let O=P.target.value;g.value=!0,u("focus",O,P)},H=P=>{setTimeout(()=>{g.value=!1},0);let O=P.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),u("blur",O,P)},R=P=>{b.value=P,u("update:text",P)},q=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),T=t.computed(()=>ke(i.unit)>0),I=t.computed(()=>ke(i.unit)>0&&!g.value),E=t.computed(()=>({hidden:!I.value})),z=P=>{y.value="",u("update:modelValue","",P),u("change","",P),u("clear","")},j=t.computed(()=>i.clearable&&!d.value&&!m.value),M=t.computed(()=>ke(y.value)>0&&g.value),Z=P=>{M.value?z(P):k()},ee=t.computed(()=>M.value&&j.value?o:l),F=t.computed(()=>({action:!0})),W=t.ref(null);return Ee({search:P=>{W.value&&W.value.search(P)},clear:()=>{W.value&&W.value.clear},confirm:P=>{W.value&&W.value.confirm()},cancel:()=>{W.value&&W.value.cancel()}}),()=>{const P={class:p.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:V,onBlur:H},G=[],O=t.h("input",P);G.push(O);const U=[],_={class:["action-icon"]},Q=t.h(ee.value,_),te={class:F.value,onClick:Z},L=t.h("view",te,{default:()=>[Q]});if(U.push(L),T.value){const we=t.h("view",{class:E.value},[i.unit]);U.push(we)}const Y={class:q.value},D=t.h("view",Y,{default:()=>U});G.push(D);const x={default:()=>G};x.label=c.slots.default,x.prepend=c.slots.prepend,x.append=c.slots.append,x.fixedPreTip=c.slots.fixedPreTip,x.fixedTip=c.slots.fixedTip;const K=ye(i,Cn);K.ref=W,K.class=i.actionsheetProps,K.disabled=d.value||m.value,K.visible=C.value,K["onUpdate:visible"]=N,K.modelValue=y.value,K["onUpdate:modelValue"]=A,K.text=b.value,K["onUpdate:text"]=R,K.onChange=$,K.poppable=!0,K["text-position"]=i.textPosition;const X={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ne=t.h(r,K,X);x.hide=()=>[ne];const se={...tt(i,Qr,Cn)};return i.prop&&(se.prop=`${i.prop}_item`),t.h(a,se,x)}}}}const{componentName:ih,create:ch,scope:uh}=J("actionsheet-item"),Pl=ch(sh(ih,uh,Ne,le.CircleClose,le.ArrowRight,vo)),ol={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:dh,create:fh}=J("input-number"),mh=fh({components:{Minus:le.Minus,Plus:le.Plus},props:{...ol},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=dh;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const g=S.target;n("update:modelValue",g.valueAsNumber,S)},r=(S,g)=>{let y=o(S);n("update:modelValue",y,g),n("change",y,g)},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 g=Number(e.modelValue)-Number(e.step);r(g,S)}else n("overlimit",S,"reduce")},d=S=>{if(n("add",S),s()){let g=Number(e.modelValue)+Number(e.step);r(g,S)}else n("overlimit",S,"add")},m=S=>{e.disabled||e.readonly||n("focus",S)},u=S=>{if(e.disabled||e.readonly)return;let y=S.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,S),n("blur",S)},h=S=>{let g=Number(S);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=h(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:u,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxString:me}}}),ph=["min","max","disabled","readonly","value"];function hh(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.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxString(e.inputWidth),height:e.toPxString(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,ph),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.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}const _e=oe(mh,[["render",hh]]);function gh(e,n,a,o){return{props:{...ge,...ve,...ol},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),d=t.computed(()=>{const g=[`${e}`];return l.textAlign==="left"?g.push("is-left"):l.textAlign==="center"?g.push("is-center"):l.textAlign==="right"&&g.push("is-right"),g.join(" ")}),m=Me(l,"modelValue",null,c),u=g=>{m.value=g,c("update:modelValue",g,{}),c("change",g,{})},h=g=>{c("add",g)},S=g=>{c("reduce",g)};return()=>{const g={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=ye(l,ol),f={...r.attrs,...y,disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":u,onAdd:h,onReduce:S},v=t.h(o,f,g),p=[];p.push(v);const B={default:()=>p};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const C={...ye(l,ve,ge)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=d.value,t.h(a,C,B)}}}}const{componentName:yh,create:vh,scope:bh}=J("inputnumber-item"),Ml=vh(gh(yh,bh,Ne,_e));function kh(e,n,a,o){return{props:{...Qo,...Go,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(l,{emit:r,slots:s}){const i=e,c=t.computed(()=>{const y=[`${i}`];return l.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),d=t.computed(()=>{const y={};if(l.width){const b=me(l.width);b&&(y.width=b)}if(l.height){const b=me(l.height);b&&(y.height=b)}return y}),m=t.computed(()=>[`${i}__bars`]),u=t.computed(()=>[`${i}__container`]),h=t.ref(l.modelValue);t.watch(()=>l.modelValue,y=>{h.value!==y&&(h.value=y)});const S=y=>{r("change",y)},g=y=>{h.value!==y&&(h.value=y,r("update:modelValue",y))};return()=>{const y=s.default?.()??[],b=[];if(Array.isArray(l.data))b.push(...l.data);else for(let N=0;N<y.length;N++){const A=y[N].props??{},$={text:A.label??"",value:A["pane-key"]??A.paneKey??""};b.push($)}const f={};for(let N in s)N!=="default"&&(f[N]=s[N]);const v=ye(l,Qo);Object.assign(v,{data:b,class:m.value,modelValue:h.value,direction:l.direction,onChange:S,"onUpdate:modelValue":g});const p=t.h(a,v,f),B={default:s.default},w=ye(l,Go);Object.assign(w,{class:u.value,modelValue:h.value,onChange:S,"onUpdate:modelValue":g});const C=t.h(o,w,B),k={class:c.value,style:d.value};return t.h("view",k,[p,C])}}}}const{create:Sh,componentName:Ch,scope:wh}=J("tabs-frame"),Ll=Sh(kh(Ch,wh,tn,nn)),Nh={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Bh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Gr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ah(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function $o(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Jr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function _r(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Eo(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Vh=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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function Th(){const e=t.getCurrentInstance();return new Vh(e.proxy)}function $h(e,n,a,o){return{props:{...Nh},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=Th(),d=t.ref([]),m=t.computed(()=>d.value.filter(F=>Ah(l,F)!==!1)),u=t.ref(-1),h=()=>{const F=l.modelValue,W=m.value.findIndex(P=>Gr(l,P)===F);u.value!==W&&(u.value=W,l.scroll&&Z(W))};t.watch([()=>l.modelValue,m],()=>{h()});const S=F=>u.value===F,g=F=>{if(F<0&&F>=m.value.length)return!1;const W=m.value[F],G=(Eo(l,W,F)??{}).status??$o(l,W);return S(F)||G},y=t.computed(()=>{const F={[i]:!0};return l.mode?F[`is-${l.mode}`]=!0:l.direction&&(F[`is-${l.direction}`]=!0),l.scroll&&(F["is-scroll"]=!0),F}),b=t.computed(()=>({})),f=(F,W,P,G,O)=>{const U={[`${i}__step`]:!0};return O&&(U[`${O}`]=!0),U[`${v.value}`]=!0,G&&(U["is-doit"]=!0),F===u.value?U["is-active"]=!0:W==="done"?U["is-done"]=!0:W==="error"?U["is-error"]=!0:W==="half"?U["is-half"]=!0:P?U["is-disabled"]=!0:U["is-normal"]=!0,U},v=t.computed(()=>{if(l.mode==="simple")return"start";let F=l.align;return F||(l.direction==="vertical"?F="start":F="center"),F}),p=(F,W={})=>{const P={...W};return v.value==="start"&&F===m.value.length-1?P.flex="0 0 auto":l.step?l.direction==="vertical"?P.height=l.step:P.width=l.step:P.flex="1 1 100%",P},B=(F,W)=>{let P={};if(W<m.value.length-1){const G=W+1;g(W)&&g(G)?l.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},w=F=>m.value.length-1===F,C=(F,W)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&W>u.value||u.value===W)return;const P=u.value,G=W;u.value=W,l.scroll&&Z(W);const O=Gr(l,F);s("update:modelValue",O);const U={fromIndex:P,currentIndex:G,item:F,items:m.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",O,U)},k=t.ref(!0),N=async(F,W)=>{try{const P=await c.load("stesbar",F,W);Array.isArray(P)&&(d.value=P),k.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([F,W])=>{F&&N(F,W)},{immediate:!0});const A=(F,W,P,G,O,U)=>{const _=[];let Q=null;if(!U)if(r.icon)Q=r.icon({item:F,index:W,status:G});else if(G==="done"){const L={};l.iconSize&&(L.width=l.iconSize,L.height=l.iconSize);const Y=l.icon??a;Q=t.h(Y,L)}else{const L=P??`${W+1}`;Q=t.h("span",{},[L])}Q&&_.push(Q);const te={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:F,index:W}),!O&&C(F,W)}};return t.h("view",te,_)},$=(F,W,P)=>{const G=t.h("i",{class:"fox-steps-bar__line-inner",style:B(F,W)});return t.h("view",{class:"fox-steps-bar__line"},[G])},V=()=>{let F=null;if(r.markIcon)F=r.markIcon();else{const P={};l.iconSize&&(P.width=l.markIconSize,P.height=l.markIconSize);const G=l.markIcon??o;F=t.h(G,P)}return t.h("view",{class:"fox-steps-bar__mark"},[F])},H=(F,W,P,G,O,U)=>{const _=[];if(!w(W)){const L=$(F,W);_.push(L)}const Q=A(F,W,P,G,O,U);_.push(Q);const te={class:"fox-steps-bar__head"};return t.h("view",te,_)},R=(F,W,P,G)=>{let O=null;r.main?O=r.main({item:F,index:W,status:P}):O=Bh(l,F);const U={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:F,index:W}),!G&&C(F,W)}};return t.h("view",U,[O])},q=(F,W,P)=>{let G=null;if(r.sub){G=r.sub({item:F,index:W,status:P});const O={class:"fox-steps-bar__sub"};return t.h("view",O,[G])}return null},T=(F,W)=>{const P=Eo(l,F,W)??{},G=P.status??$o(l,F);let O=Zr(l,F);P.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);let U=Jr(l,F);P.doit===!0&&(U=!0);const _=P.label??_r(l,F),Q=[],te=A(F,W,_,G,O,U);te&&Q.push(te);const L=R(F,W,G,O);if(L&&Q.push(L),!w(W)){const X=$(F,W);X&&Q.push(X)}const Y=t.h("view",{class:"fox-steps-bar__head"},Q),D=P.class,x=P.style??{},K={ref:M(W),class:f(W,G,O,U,D),style:p(W,x)};return t.h("view",K,[Y])},I=(F,W)=>{const P=Eo(l,F,W)??{},G=P.status??$o(l,F);let O=Zr(l,F);P.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);let U=Jr(l,F);P.doit===!0&&(U=!0);const _=P.label??_r(l,F),Q=[],te=l.layout;for(let x of te)if(x==="head"){const K=H(F,W,_,G,O,U);Q.push(K)}else if(x==="main"){const K=R(F,W,G,O);Q.push(K)}else if(x==="sub"){const K=q(F,W,G);Q.push(K)}else if(x==="mark"){const K=V();Q.push(K)}const L=P.class,Y=P.style??{},D={ref:M(W),class:f(W,G,O,U,L),style:p(W,Y)};return t.h("view",D,Q)},E=t.ref(),z=t.ref([]),j=(F,W)=>{z.value[W]=F},M=F=>W=>{j(W,F)},Z=(F,W)=>{const P=E.value,G=z.value;if(!P||!G||!G[F])return;const O=G[F];let U=0;l.direction==="vertical"?U=O.offsetTop-(P.offsetHeight-O.offsetHeight)/2:U=O.offsetLeft-(P.offsetWidth-O.offsetWidth)/2,ee(P,U,.3,l.direction)},ee=(F,W,P,G)=>{let O=0;const U=G==="horizontal"?F.scrollLeft:F.scrollTop,_=Math.round(P*1e3/16);function Q(){G==="horizontal"?F.scrollLeft+=(W-U)/_:F.scrollTop+=(W-U)/_,++O<_&&He(Q)}Q()};return()=>{const F=[];if(l.mode==="simple")for(let P=0;P<m.value.length;P++){const G=m.value[P],O=T(G,P);F.push(O)}else for(let P=0;P<m.value.length;P++){const G=m.value[P],O=I(G,P);F.push(O)}const W={ref:E,class:y.value,style:b.value};return t.h("view",W,F)}}}}const{componentName:Eh,create:xh,scope:Dh}=J("steps-bar"),zl=xh($h(Eh,Dh,le.Checklist,le.ArrowRight));function Ih(e){e.stopPropagation()}class qh{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=ao(),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),Ih(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 Ph(e,n){return new qh(e,n)}const Mh={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]},zIndex:{type:[String]}},Lh=(e,n,a,o=!1)=>({props:{...Mh},emits:["click"],setup(l,{slots:r,emit:s}){let i=-1,c=-1;const d=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:0,height:0}),m=t.computed(()=>{const w=[`${e}`];return l.customClass&&w.push(l.customClass),w}),u=w=>typeof w=="string"&&!cl(w)?w:`${w}px`,h=t.computed(()=>{const w={};return ue(d.top)||(w.top=u(d.top)),ue(d.right)||(w.right=u(d.right)),ue(d.bottom)||(w.bottom=u(d.bottom)),ue(d.left)||(w.left=u(d.left)),ue(l.width)||(w.width=u(l.width)),ue(l.height)||(w.height=u(l.height)),ue(l.color)||(w.color=l.color),ue(l.background)||(w.background=l.background),ue(l.borderRadius)||(w["border-radius"]=l.borderRadius),ue(l.zIndex)||(w["z-index"]=l.zIndex),w}),S=t.computed(()=>({[`${e}__icon`]:!0})),g=()=>{s("click")},y=t.ref(null),b=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},B=Ph(w=>{if(!y.value)return;const C=y.value;b(),d.left=C.offsetLeft,d.top=C.offsetTop,C.style.left=`${d.left}px`,C.style.top=`${d.top}px`,C.style.right=null,C.style.bottom=null,f.x=d.left,f.y=d.top,d.width=C.offsetWidth,d.height=C.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},w=>{if(!y.value)return;const C=y.value;b();let k=f.x+w.x;k<0&&(k=0),k>i-d.width&&(k=i-d.width);let N=f.y+w.y;N<0&&(N=0),N>c-d.height&&(N=c-d.height),d.left=k,d.top=N,C.style.left=`${k}px`,C.style.top=`${N}px`});return t.onMounted(()=>{if(l.draggable&&y.value){const w=[y.value];B.open(w)}}),t.onBeforeUnmount(()=>{l.draggable&&y.value&&B.close()}),()=>{let w=[];const C=typeof r.default=="function"?r.default():[];if(C&&C.length>0)w=C;else{const N=t.h(a,{class:S.value});w.push(N)}const k={ref:N=>{y.value=N},class:m.value,style:h.value,onClick:g};return t.h("view",k,w)}}}),{componentName:zh,create:Oh,scope:Rh}=J("floating-button"),Ol=Oh(Lh(zh,Rh,le.Uploader,!1)),Fh={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},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Kh(e,n,a){return{props:{...Fh},emits:["click","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["collapseText","expandText"]),c=t.computed(()=>{const g={[`${e}`]:!0};return o.disabled?g[`${e}--disabled`]=!0:g[`${e}--${o.type}`]=!0,g}),d=Me(o,"modelValue"),m=t.computed(()=>d.value?i.expandText.value??"":i.collapseText.value??""),u=t.computed(()=>({[`${e}__text`]:!0})),h=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{l("update:modelValue",!d.value)};return()=>{const g=[];if(m.value){const v={class:u.value},p=t.h("span",v,[m.value]);g.push(p)}const y={class:h.value},b=(r.icon&&r.icon())??(o.icon&&t.h(o.icon))??t.h(a);if(b){const v=t.h("view",y,[b]);g.push(v)}return o.textPosition==="right"&&g.reverse(),t.h("view",{class:c.value,onClick:S},g)}}}}const{componentName:Uh,create:Hh,scope:jh}=J("more-button"),Rl=Hh(Kh(Uh,jh,le.RectUp)),Wh={visible:{type:[Boolean],default:!0},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}},Yh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Xh(e,n,a){return{props:{...Wh},emits:["update:visible"],setup(o,{attrs:l,slots:r,emit:s}){const{toLocaleRefs:i}=ie.useFoxI18n(n),c=i(o,["confirmText","cancelText"]),d=e,m=t.ref(o.visible),u=w=>{m.value=w,s("update:visible",w)};t.watch(()=>o.visible,w=>{m.value!==w&&(m.value=w)});const h=w=>{if(typeof o.unmount=="function")try{o.unmount()}catch(C){console.error(C)}if(typeof o.callback=="function")try{o.callback(w)}catch(C){console.error(C)}},S=()=>{h("confirm")},g=()=>{h("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&h("close")},b=(w,C)=>Yh(w)?(C.src=w,t.h("img",C)):typeof w=="string"?(Array.isArray(C.class)?C.class.push(w):C.class&&typeof C.class=="object"?C[`${w}`]=!0:typeof C.class=="string"?C.class=`${C.class}, ${w}`:C.class=w,t.h(o.tag,C)):t.h(w,C),f=()=>{const w=[];if(o.icon){const k={class:[`${d}__header-icon`]},N=b(o.icon,k);w.push(N)}if(o.title){const k=t.h("view",{class:`${d}__header-title`},[o.title]);w.push(k)}if(o.showClose&&o.closeIcon){const k={class:[`${d}__header-close-icon`],onClick:y},N=b(o.closeIcon,k);w.push(N)}const C={class:[`${d}__header`]};return t.h("view",C,w)},v=(w,C)=>{const k=[];if(C){const A={class:`${d}__group-title`},$=t.h("view",A,[C]);k.push($)}if(w){const A=[];Array.isArray(w)||(w=[w]);for(let $ of w){const V={class:`${d}__group-row`,innerHTML:$},H=t.h("view",V);A.push(H)}if(A.length>0){const $={class:`${d}__group-rows`},V=t.h("view",$,A);k.push(V)}}if(k.length===0)return null;const N={class:`${d}__group`};return t.h("view",N,k)},p=()=>{const w=[];if(typeof o.message=="string")w.push(o.message);else if(Array.isArray(o.message))for(let k of o.message)if(typeof k=="string"){const N=v(k);w.push(N)}else{const N=v(k.content,k.title);w.push(N)}else if(typeof o.message=="function"){const k=o.message();w.push(k)}else{const k=o.message;w.push(k)}const C={class:`${d}__body`};return t.h("view",C,w)},B=()=>{const w=[];if(o.showCancelButton){const k={class:[`${d}__footer-button`],style:{},onClick:g};o.cancelButtonClass&&k.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(k.style,o.cancleButtonStyle);const N=t.h("button",k,[o.cancelButtonText??c.cancelText.value]);w.push(N)}if(o.showConfirmButton){const k={class:[`${d}__footer-button`],style:{},onClick:S};o.confirmButtonClass&&k.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(k.style,o.confirmButtonStyle);const N=t.h("button",k,[o.confirmButtonText??c.confirmText.value]);w.push(N)}if(w.length===0)return null;const C={class:`${d}__footer`};return t.h("view",C,w)};return()=>{const w=[],C=f();C&&w.push(C);const k=p();k&&w.push(k);const N=B();N&&w.push(N);const A={class:{[`${d}`]:!0,[`${d}--${o.type||"info"}`]:!0}},$=t.h("view",A,w),V=[`${d}__popup`];o.popClass&&V.push(o.popClass);const H={};o.width&&(H.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(H.height=typeof o.height=="number"?`${o.height}px`:o.height);const R={popClass:V.join(" "),style:H,visible:m.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,R,{default:()=>$})}}}}const{componentName:Qh,create:Gh,scope:Zh}=J("messagebox"),Jh=Gh(Xh(Qh,Zh,pe)),_h="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",eg="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",tg="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",ng="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",og=new _n,lg={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},ag=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-${og.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(Jh,e);n.appendChild(o),t.render(r,o)},st={show:(e,n,a,o)=>{const l={...lg};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=tg:r==="warning"?l.icon=ng:r==="error"?l.icon=_h:l.icon=eg),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=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}s({action:d})},ag(l)})},alert:(e,n,a)=>st.show("alert",e,n,a),confirm:(e,n,a)=>st.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=st.alert,e.config.globalProperties.$confirm=st.confirm}},rg=(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)},sg=new _n,ig=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),cg=e=>`${e}-${sg.get()}`,ug=Symbol.for("InnerPageScopeKey"),dg=Symbol.for("PageWrapperKey"),fg="FoxLeave",mg="FoxLeaveEnd",pg={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 hg(e,n,a,o){return{props:{...Fe,...pg},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(ug,!0);const c={};t.provide(dg,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},u=e,h=C=>{S.value=C,i("update:visible",C)},S=t.ref(!1),g=(C,k)=>ig(C)?(k.src=C,t.h("img",k)):typeof C=="string"?(Array.isArray(k.class)?k.class.push(C):k.class&&typeof k.class=="object"?k[`${C}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${C}`:k.class=C,t.h(l.tag,k)):t.h(C,k),y=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const N=s.header();C.push(N)}else if(l.title){const N=t.h("view",{class:`${u}__header-title`},[l.title]);C.push(N)}if(C.length===0)return null;const k={class:[`${u}__header`]};return t.h("view",k,C)},b=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:m},k=l.closeIcon??o;return g(k,C)};let f=null;const v=C=>{rg(mg,{},f)},p=cg(e),B=()=>{h(!0)},w=()=>{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 k=f.querySelector(".fox-popup");k&&(k.classList.add(`fox-popup-slide-${l.position}-leave-active`),k.classList.add(`fox-popup-slide-${l.position}-leave-to`),k.addEventListener("animationend",v,{once:!0}),k.addEventListener("transitionend",v,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${p}`),f?.addEventListener(fg,w,{once:!0}),B()}),()=>{const C=[],k=y();k&&C.push(k);const N=b();N&&C.push(N);const A=s.default?s.default():[];Reflect.apply([].push,C,A);const $={[`${u}`]:!0};l.mode&&($[`${u}--${l.mode}`]=!0);const V={class:$},H=t.h("view",V,C),R=[`${u}__popup`,p];l.popClass&&R.push(l.popClass),l.position&&R.push(`${u}__popup--${l.position}`);const q={};l.width&&(q.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(q.height=typeof l.height=="number"?`${l.height}px`:l.height);const I={...ye(l,Fe),popClass:R.join(" "),style:q,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},E=t.h(a,I,{default:()=>H});return t.h("div",{class:[`${u}__root`,p]},[E])}}}}const{componentName:gg,create:yg,scope:vg}=J("popup-wrapper"),Fl=yg(hg(gg,vg,pe,le.Close)),bg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function kg(e,n,a,o){return{props:{...bg},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 d={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},m=t.h(a,d,s),u={class:`${e}`};return t.h("view",u,[m])}}}}const{componentName:Sg,create:Cg,scope:wg}=J("dropdown"),Kl=Cg(kg(Sg,wg,pe));function Ng(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 d=0;c&&d<r.length;d++){let m=r[d],u=c.find(h=>h[o]===m);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],m=r[c];const u=d.find(h=>h[o]===m);if(!u)break;s.push(u[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let m=r[d],u=c.find(h=>h[o]===m);if(!u)break;s.push(u[a]),c=u[l]}}return s}class Bg{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=ot(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Ag(){const e=t.getCurrentInstance();return new Bg(e.proxy)}const Vg={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 Tg(e,n,a=!1){return{props:{...Vg},setup(o,{attrs:l,slots:r}){const s=Ag(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,u])=>{i.value=await s.load(o.sourceType,m,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=Ng(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return m.length==0?o.emptyText??"":m.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${m[0]}`:m[0]:m.join(o.separator)}),d=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const m={...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(d,m,{default:()=>c.value}):t.h(d,m,c.value)}}}}const{componentName:$g,create:Eg,scope:xg}=J("mapping"),Ul=Eg(Tg($g,xg,!1));function Dg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1}},setup(a,{slots:o}){return Bs(a.name,()=>a.config),il(a.innerPageScope)||t.provide(qs,a.innerPageScope),()=>typeof o.default=="function"?o.default():null}}}const{create:Ig}=J("domain-provider"),Hl=Ig(Dg()),qg={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 Pg(e,n){return{inheritAttrs:!1,props:qg,setup(a,{slots:o}){if(et&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,S)=>{if(m===null){r.set(h,{visible:null,callback:S});return}l.has(h)&&m.unobserve(h),l.set(h,{visible:null,callback:S}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}l.has(h)&&(l.delete(h),m.unobserve(h))};let c=a.initialVisibleObserverSize;uc({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const u=(h,S,g)=>{m=new IntersectionObserver(y=>{for(let b of y){let f=!1;b.intersectionRatio>0&&(f=!0);const v=l.get(b.target);if(v)try{if(a.loadPolicy==="lazy"&&!f&&v.visible!==null)return;v.visible=f,v.callback(f)}catch(p){console.error(p)}}},{root:h,rootMargin:S,threshold:g}),r.forEach((y,b)=>{l.set(b,y),m?.observe(b)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,S])=>{if(S||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&u(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{create:Mg}=J("rolling-provider"),jl=Mg(Pg()),{componentName:Lg,create:zg}=J("cell"),Og=zg({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=Lg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Rg={key:0,class:"fox-cell__icon"},Fg={key:1,class:"fox-cell__title"},Kg={class:"title"},Ug={class:"fox-cell__title-desc"};function Hg(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",Rg,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Fg,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Kg,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Ug,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 Wl=oe(Og,[["render",Hg]]),{componentName:jg,create:Wg}=J("cell-group"),Yg=Wg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[jg]:!0}))}}}),Xg={key:1,class:"fox-cell-group__title"},Qg={key:3,class:"fox-cell-group__desc"},Gg={class:"fox-cell-group__wrap"};function Zg(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",Xg,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",Qg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Gg,[t.renderSlot(e.$slots,"default")])],2)}const Yl=oe(Yg,[["render",Zg]]),{componentName:Jg,create:_g}=J("image"),ey=_g({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=Jg;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(g=>{g.forEach(y=>{y.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=me(e.width)),e.height&&(S.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=me(e.radius)),S}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const m=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=S=>{n("click",S)};return{...t.toRefs(a),imageClick:h,classes:o,styles:d,stylebox:c,error:u,load:m,show:r,imgRef:s}}}),ty=["src","date-src","alt"],ny={key:0,class:"fox-img-loading"},oy={key:1,class:"fox-img-error"};function ly(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,ty),e.loading?(t.openBlock(),t.createElementBlock("div",ny,[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",oy,[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 Xl=oe(ey,[["render",ly]]),{create:ay}=J("layout"),Ql=ay({}),{componentName:ry,create:sy}=J("col"),iy=sy({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ry,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 cy(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 Gl=oe(iy,[["render",cy]]),{componentName:uy,create:dy}=J("row"),fy=dy({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=uy;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
2
|
${a("",e.type)}
|
|
7
3
|
${a("justify",e.justify)}
|
|
8
4
|
${a("align",e.align)}
|
|
@@ -10,4 +6,4 @@
|
|
|
10
6
|
${n}
|
|
11
7
|
`:`
|
|
12
8
|
${n}
|
|
13
|
-
`)}}});function Jg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Yl=oe(Zg,[["render",Jg]]),{create:_g}=Z("sticky"),ey=_g({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 d=e.container;if(!a.value&&!d)return;const m=qe(a),u=o.value,h=qe(u),b=qe(d);l.height=m.height;const g=()=>{let k=!1;if(e.position==="top")k=d?r.value>m.top&&b.bottom>0:r.value>m.top;else{const f=document.documentElement.clientHeight;k=d?b.bottom>0&&f-r.value-h.height>b.top:f-r.value<m.bottom}return k},y=()=>{if(d)if(e.position==="top"){const k=b.bottom-r.value-h.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=b.bottom-(k-r.value);return f<0?f:0}return 0};l.transform=y(),l.fixed=g()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),Jo(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Jo(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function ty(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 Wt=oe(ey,[["render",ty]]),{componentName:ny,create:oy}=Z("divider"),ly=oy({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=ny;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 ay(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 Xl=oe(ly,[["render",ay]]);function ry(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 sy(e,n,a){const o=ry(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function iy(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),sy(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:Qr}=Z("grid"),Ys=Symbol("grid"),cy={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}},uy={props:cy,setup(e,{slots:n}){iy(Ys,`${Qr}-item`)({props:e});const a=t.computed(()=>{const l=Qr;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:dy}=Z("grid"),Ql=dy(uy);function fy(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:my,componentName:Gr}=Z("grid-item"),py=my({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=fy(Ys);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Gr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+l.columnNum}%`};return l.square?d.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(d.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(d.marginTop=ge(l.gutter))),d}),i=t.computed(()=>{const d=`${Gr}__content`;return{[`${d}`]:!0,[`${d}--border`]:l.border,[`${d}--surround`]:l.border&&l.gutter,[`${d}--center`]:l.center,[`${d}--square`]:l.square,[`${d}--reverse`]:l.reverse,[`${d}--${l.direction}`]:!!l.direction,[`${d}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{n("click",d)}}}}),hy={class:"fox-grid-item__text"};function gy(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",hy,[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 Gl=oe(py,[["render",gy]]),{componentName:yy,create:vy}=Z("navbar"),by=vy({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 d=t.ref();const m=t.computed(()=>{const k=yy;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){n("on-click-back")}function b(){n("on-click-title")}function g(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:u,handleLeft:h,handleCenter:b,handleCenterIcon:g,handleRight:y}}}),ky={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Sy={key:1,class:"fox-navbar__text"},Cy={class:"fox-navbar__title"},wy={key:0,class:"fox-navbar__text"},Ny={key:1,class:"fox-navbar__text"},By={class:"fox-navbar__title"},Ay={key:0,class:"fox-navbar__text"};function Vy(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",ky,[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",Sy,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Cy,[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",wy,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",Ny,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",By,[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",Ay,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Zl=oe(by,[["render",Vy]]),Ty=(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}=ie.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:$y,create:Ey,scope:xy}=Z("fixednav"),Dy=Ey(Ty($y,xy,{[ft.name]:ft,Left:le.Left})),Iy={class:"fox-fixednav__list"},qy=["onClick"],My=["src"],Py={class:"span"},Ly={key:0,class:"b"},zy={class:"text"};function Oy(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",Iy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,My),t.createElementVNode("view",Py,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ly,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,qy))),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",zy,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Jl=oe(Dy,[["render",Oy]]),{componentName:Ry,create:Fy}=Z("menu"),Ky=Fy({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 k=t.reactive([]),f=t.reactive([]);return{children:k,linkChildren:p=>{const N=C=>{C.proxy&&(f.push(C),k.push(C.proxy))},w=C=>{if(C.proxy){let S=f.indexOf(C);S>-1&&f.splice(S,1);let B=k.indexOf(C.proxy);S>-1&&k.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:N,children:k,internalChildren:f},p))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(k=>k.state.showWrapper)),m=t.computed(()=>({[Ry]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const k=qe(o);e.direction==="down"?l.value=k.bottom:l.value=window.innerHeight-k.top}};c({props:e,offset:l});const h=k=>{i.forEach((f,v)=>{v===k?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},b=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),g=()=>{const{scrollFixed:k}=e,f=b(window);r.value=f>(typeof k=="boolean"?30:Number(k))},y=k=>{let f="";const{titleClass:v}=e;return k&&(f+="active"),v&&(f+=` ${v}`),f};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:o,getClasses:y}}}),Uy=["onClick"],Hy={class:"fox-menu__title-text"},jy={class:"fox-menu__title-icon"};function Wy(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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Hy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",jy,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Uy))),128))],2),t.renderSlot(e.$slots,"default")],2)}const _l=oe(Ky,[["render",Wy]]),{componentName:Yy,create:Xy}=Z("menu-item"),Qy=Xy({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:{[me.name]:me,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 b=t.inject("menuParent",null);if(b){const g=t.getCurrentInstance(),{link:y,removeLink:k}=b;return y(g),t.onUnmounted(()=>{k(g)}),{parent:b}}},{parent:r}=l(),s=t.computed(()=>({[Yy]:!0})),i=t.computed(()=>{const b={height:r.offset.value+"px"};return r.props.direction==="down"?b:{...b,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const b=e.options?.find(g=>g.value===e.modelValue);return b?b.text:""},state:o,parent:r,toggle:(b=!o.showPopup,g={})=>{b!==o.showPopup&&(o.showPopup=b,o.isShowPlaceholderElement=b,b&&(o.showWrapper=!0,n("open")))},onClick:b=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,b.value!==e.modelValue&&(n("update:modelValue",b.value),n("change",b.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),Gy={class:"fox-menu-item__content fox-menu-item__overflow"},Zy=["onClick"];function Jy(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",Gy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps({ref_for:!0},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,Zy))),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 ea=oe(Qy,[["render",Jy]]),{create:_y}=Z("tabbar"),ev=_y({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 tv(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 ta=oe(ev,[["render",tv]]),{create:nv}=Z("tabbar-item"),ov=nv({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&&(d=>{if(d.proxy){let m=a.children.length;o.index=m;let u=Object.assign(d.proxy,{index:m});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),lv={class:"fox-tabbar-item_icon-box"},av={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},rv={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},sv={key:1,class:"fox-tabbar-item_icon-box_dot"},iv={key:2},cv={key:0};function uv(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",lv,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",av,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",rv,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",sv)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",iv,[(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",cv,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const na=oe(ov,[["render",uv]]),{componentName:dv,create:fv}=Z("elevator"),mv=fv({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(()=>({[dv]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,v)=>f.getAttribute("data-"+v),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},d=()=>{let f=0;o.listHeight.push(f);for(let v=0;v<o.listGroup.length;v++){let p=o.listGroup[v];f+=Math.floor(p.clientHeight),o.listHeight.push(f)}},m=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},u=f=>{o.scrollStart=!0;let v=i(f.target,"index"),p=f.touches[0];o.touchState.y1=p.pageY,o.anchorIndex=+v,o.codeIndex=+v,m(+v)},h=f=>{let v=f.touches[0];o.touchState.y2=v.pageY;let p=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+p,m(o.codeIndex)},b=()=>{o.scrollStart=!1},g=(f,v)=>{n.emit("click-item",f,v),o.currentData=v,o.currentKey=f},y=f=>{n.emit("click-index",f)},k=f=>{let p=f.target.scrollTop;const N=o.listHeight;o.scrollY=p;for(let w=0;w<N.length-1;w++){let C=N[w],S=N[w+1];if(o.scrollY>=C&&o.scrollY<S){o.currentIndex=w,o.diff=S-o.scrollY;return}}o.currentIndex=N.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",k)}),Ee({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(d)}),t.watch(()=>o.diff,f=>{const v=o.listHeight;let p=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===v[v.length-1]&&p!==0&&(p=0),o.fixedTop!==p&&(o.fixedTop=p)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:b,handleClickItem:g,handleClickIndex:y}}}),pv={class:"fox-elevator__list__item__code"},hv=["onClick"],gv=["innerHTML"],yv={class:"fox-elevator__fixed-title"},vv={class:"fox-elevator__bars__inner"},bv=["data-index","onClick"];function kv(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",pv,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,gv))],10,hv))),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",yv,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",vv,[(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,bv))),128))])],32)],2)}const Yt=oe(mv,[["render",kv]]),{componentName:r2,create:Sv,scope:Cv}=Z("pagination"),wv=Sv({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}=ie.useFoxI18n(Cv),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:b,itemsPerPage:g}=t.toRefs(e),y=+h.value||Math.ceil(+b.value/+g.value);return Math.max(1,y)}),d=(h,b)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),b&&n("change",h))},m=(h,b,g=!1)=>({number:h,text:b,active:g}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const b=c.value,g=+s.value;let y=1,k=b;const f=b>g;f&&(y=Math.max(l.value-Math.floor(g/2),1),k=y+g-1,k>b&&(k=b,y=k-g+1));for(var v=y;v<=k;v++){const p=m(v,v,l.value==v);h.push(p)}if(f&&g>0&&i.value){if(y>1){const p=m(y-1,"...");h.unshift(p)}if(k<b){const p=m(k+1,"...");h.push(p)}}return h});return t.watchEffect(()=>{d(l.value,!1)}),{...o,modelValue:l,select:d,countRef:c,mode:r,pages:u,forceEllipses:i}}}),Nv={class:"fox-pagination"},Bv={key:0,class:"fox-pagination-contain"},Av=["onClick"],Vv={key:1,class:"fox-pagination-contain"},Tv={class:"fox-pagination-simple"};function $v(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Nv,[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",Bv,[(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,Av))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Vv,[t.createElementVNode("view",Tv,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 oa=oe(wv,[["render",$v]]),Ev=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{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=lt();let d="";const m=(h,b)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=b>0?"bottom":"top",g=b,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class xv{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Dv}=Z("tabs"),Iv=Dv({components:{[Wt.name]:Wt,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=T=>{T.forEach(($,U)=>{let q=$.type;if(q=q.name||q,q=="fox-tab-pane"){let E=new xv;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let V=ut($.props?.["pane-key"]),P=V=="number"||V=="string"?String($.props?.["pane-key"]):null,x=ut($.props?.paneKey),j=x=="number"||x=="string"?String($.props?.paneKey):null;E.title=$.props?.title,E.paneKey=P||j||String(U),E.disabled=$.props?.disabled}r.value.push(E)}else{if($.children==" ")return;Array.isArray($.children)&&s($.children)}})},i=t.ref(e.modelValue||0),c=T=>{let $=r.value.findIndex(U=>U.paneKey==T);r.value.length==0||$==-1||(i.value=$)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),u=t.ref([]),h=T=>{const $=m.value,U=u.value;if(!$||!U||!U[i.value])return;const q=U[i.value];let E=0;e.direction==="vertical"?E=q.offsetTop-$.offsetTop+10-($.offsetHeight-q.offsetHeight)/2:E=q.offsetLeft-($.offsetWidth-q.offsetWidth)/2,b($,E,.3,e.direction)},b=(T,$,U,q)=>{let E=0;const V=q==="horizontal"?T.scrollLeft:T.scrollTop,P=Math.round(U*1e3/16);function x(){q==="horizontal"?T.scrollLeft+=($-V)/P:T.scrollTop+=($-V)/P,++E<P&&He(x)}x()},g=(T=a.default?.())=>{r.value=[],T=T?.filter($=>typeof $.children!="string"),T&&T.length&&s(T),c(e.modelValue),t.nextTick(()=>{h()})},y=T=>{l=T.fixed};t.watch(()=>a.default?.(),T=>{g(T)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,T=>{if(c(T),h(),l){let $=qe(o.value).top+k(),U=Math.ceil($-e.top);window.scrollTo({top:U,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const f={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,f.updateValue(r.value[i.value])},prev:()=>{i.value-=1,f.updateValue(r.value[i.value])},updateValue:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,$)=>{n("click",T),!(T.disabled||i.value==$)&&(i.value=$,f.updateValue(T))},setTabItemRef:(T,$)=>{u.value[$]=T}},{tabsContentRef:v,touchState:p,touchMethods:N}=Ev(e,f),w=t.computed(()=>{let T=i.value*100;p.moving&&(T+=p.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:p.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&($={}),$}),C=t.computed(()=>({background:e.background})),S=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const T=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),A=t.computed(()=>a.fixedTitle);return{navRef:m,tabsContentRef:v,titles:r,contentStyle:w,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:S,container:o,getScrollY:d,onStickyScroll:y,...f,...N,hasFixedTitle:A}}}),qv=["onClick"],Mv={key:0,class:"fox-tabs__titles-fixed-item"},Pv=["onClick"],Lv={key:0,class:"fox-tabs__titles-fixed-item"};function zv(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,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,qv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Mv,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Pv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Lv,[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 la=oe(Iv,[["render",zv]]),{create:Ov}=Z("tab-pane"),Rv=Ov({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 Fv(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 aa=oe(Rv,[["render",Fv]]),{componentName:Zr,create:Kv}=Z("indicator"),Uv=Kv({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=Zr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Zr,padZero:at}}});function Hv(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 ra=oe(Uv,[["render",Hv]]),{componentName:jv,create:Wv}=Z("side-navbar"),Yv=Wv({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(()=>({[jv]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||l(Array.from(d.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}}}),Xv={class:"fox-side-navbar__content"},Qv={class:"fox-side-navbar__content__list",ref:"list"};function Gv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Xv,[t.createElementVNode("view",Qv,[t.renderSlot(e.$slots,"default")],512)])],2)}const sa=oe(Yv,[["render",Gv]]),{componentName:Zv,create:Jv}=Z("side-navbar-item"),_v=Jv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Zv]:!0})),handleClick:()=>{n.emit("click")}})}),e0=["ikey"],t0={class:"fox-side-navbar-item__title"};function n0(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",t0,t.toDisplayString(e.title),1)],10,e0)}const ia=oe(_v,[["render",n0]]),{componentName:o0,create:l0}=Z("sub-side-navbar"),a0=l0({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(()=>({[o0]:!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}}}),r0=["ikey"],s0={class:"fox-sub-side-navbar__title__text"},i0={class:"fox-sub-side-navbar__title__icon"};function c0(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",s0,t.toDisplayString(e.title),1),t.createElementVNode("span",i0,[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,r0)}const ca=oe(a0,[["render",c0]]),{componentName:u0,create:d0}=Z("range"),f0=d0({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=lt(),c=t.computed(()=>{const{marks:E,max:V,min:P}=e;return Object.keys(E).map(parseFloat).sort((H,L)=>H-L).filter(H=>H>=P&&H<=V)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const E=u0;return{[E]:!0,[`${E}-disabled`]:e.disabled,[`${E}-vertical`]:e.vertical,[`${E}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const E="fox-range-container";return{[E]:!0,[`${E}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),b=t.computed(()=>({borderColor:e.buttonColor})),g=E=>!!e.range&&Array.isArray(E),y=()=>{const{modelValue:E,min:V}=e;return g(E)?`${(E[1]-E[0])*100/d.value}%`:`${(E-Number(V))*100/d.value}%`},k=()=>{const{modelValue:E,min:V}=e;return g(E)?`${(E[0]-Number(V))*100/d.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:k(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:k(),background:e.activeColor,transition:s.value?"none":void 0}),v=E=>{const V="fox-range-mark",{modelValue:P,max:x,min:j}=e;let H=Number(j),L=Number(x);if(e.range){const[ee,K]=P;H=ee,L=K}else L=P;let _=E<=L&&E>=H;return{[`${V}-text`]:!0,[`${V}-text-active`]:_}},p=E=>{const{min:V,vertical:P}=e;let x={left:`${(E-Number(V))/d.value*100}%`};return P&&(x={top:`${(E-Number(V))/d.value*100}%`}),x},N=E=>{const{modelValue:V,max:P,min:x}=e;let j=Number(x),H=Number(P);if(e.range){const[ee,K]=V;j=ee,H=K}return{background:E<=H&&E>=j?e.activeColor:e.inactiveColor}},w=E=>{const{min:V,max:P,step:x}=e;return E=Math.max(+V,Math.min(E,+P)),Math.round(E/+x)*+x},C=(E,V)=>JSON.stringify(E)===JSON.stringify(V),S=E=>E[0]>E[1]?E.slice(0).reverse():E,B=(E,V)=>{g(E)?E=S(E).map(w):E=w(E),C(E,e.modelValue)||n("update:modelValue",E),V&&!C(E,o)&&n("change",E)},A=E=>{if(e.disabled)return;const{min:V,modelValue:P}=e,x=qe(r);let j=E.clientX-x.left,H=x.width;e.vertical&&(j=E.clientY-x.top,H=x.height);const L=Number(V)+j/H*d.value;if(g(P)){const[_,ee]=P,K=(_+ee)/2;L<=K?B([L,ee],!0):B([_,L],!0)}else B(L,!0)},T=E=>{e.disabled||(i.start(E),l=e.modelValue,g(l)?o=l.map(w):o=w(l),s.value="start")},$=E=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(E),s.value="draging";const V=qe(r);let P=i.deltaX.value,x=V.width,j=P/x*d.value;e.vertical&&(P=i.deltaY.value,x=V.height,j=P/x*d.value),g(o)?l[a.value]=o[a.value]+j:l=o+j,B(l),E.stopPropagation(),E.preventDefault()},U=()=>{e.disabled||(s.value==="draging"&&(B(l,!0),n("drag-end")),s.value="")},q=E=>qn(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:b,onClick:A,onTouchStart:T,onTouchMove:$,onTouchEnd:U,...t.toRefs(e),barStyle:f,curValue:q,buttonIndex:a,containerClasses:u,markClassName:v,marksStyle:p,marksList:c,tickStyle:N}}}),m0={key:0,class:"fox-range-min"},p0={key:0,class:"fox-range-mark"},h0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],g0={key:0,class:"number"},y0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],v0={key:0,class:"number"},b0={key:1,class:"fox-range-max"};function k0(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",m0,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",p0,[(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",g0,t.toDisplayString(e.curValue(s)),1))],4))],42,h0)),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",v0,t.toDisplayString(e.curValue()),1))],4))],40,y0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",b0,t.toDisplayString(+e.max),1))],2)}const Xt=oe(f0,[["render",k0]]),{create:S0,scope:C0}=Z("short-password"),w0=S0({components:{[me.name]:me,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}=ie.useFoxI18n(C0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:d,close:c,onTips:()=>{n("tips")},show:s,...o}}}),N0={class:"fox-short-password-title"},B0={class:"fox-short-password-subtitle"},A0={class:"fox-short-password-wrapper"},V0={key:0,class:"fox-short-password__item-icon"},T0={class:"fox-short-password__message"},$0={class:"fox-short-password--error"},E0={key:0,class:"fox-short-password--forget"};function x0(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",N0,t.toDisplayString(e.title),1),t.createElementVNode("view",B0,t.toDisplayString(e.desc),1),t.createElementVNode("div",A0,[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,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",V0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",T0,[t.createElementVNode("view",$0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",E0,[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 ua=oe(w0,[["render",x0]]);class D0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let I0=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 q0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Xs=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);St(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:M0}=Z("progress"),P0=M0({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}}}),L0={class:"fox-progress"},z0={key:0,class:"fox-progress-text"};function O0(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",L0,[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",z0,[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 Qt=oe(P0,[["render",O0]]),{componentName:R0,create:F0,scope:K0}=Z("uploader"),U0=F0({components:{[Qt.name]:Qt,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}=ie.useFoxI18n(K0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[R0]:!0})),s=()=>{let v={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(v.capture="camera"),t.h("input",v)},i=v=>{v.value=""},c=v=>{n("file-item-click",{fileItem:v})},d=(v,p)=>{const N=new D0;N.url=e.url,N.formData=v.formData,N.timeout=e.timeout*1,N.method=e.method,N.xhrState=e.xhrState,N.headers=e.headers,N.withCredentials=e.withCredentials,N.beforeXhrUpload=e.beforeXhrUpload;try{N.sourceFile=v.formData.get(e.name)}catch{}N.onStart=C=>{v.status="ready",v.message=a("readyUpload"),m(p),n("start",C)},N.onProgress=(C,S)=>{v.status="uploading",v.message=a("uploading"),v.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:S,percentage:v.percentage})},N.onSuccess=(C,S)=>{v.status="success",v.message=a("success"),n("success",{responseText:C,option:S,fileItem:v}),n("update:fileList",o)},N.onFailure=(C,S)=>{v.status="error",v.message=a("error"),n("failure",{responseText:C,option:S,fileItem:v})};let w=new I0(N);e.autoUpload?w.upload():l.push(new Promise((C,S)=>{C(w)}))},m=(v=-1)=>{v>-1?l.splice(v,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(v=>{v.forEach(p=>p.upload())})},h=v=>{v.forEach((p,N)=>{const w=new FormData;for(const[S,B]of Object.entries(e.data))w.append(S,B);w.append(e.name,p);const C=t.reactive(new q0);if(C.name=p.name,C.status="ready",C.type=p.type,C.formData=w,C.message=a("waitingUpload"),d(C,N),e.isPreview&&p.type.includes("image")){const S=new FileReader;S.onload=B=>{C.url=B.target.result,o.push(C)},S.readAsDataURL(p)}else o.push(C)})},b=v=>{const p=e.maximum*1,N=e.maximize*1,w=new Array;v=v.filter(S=>S.size>N?(w.push(S),!1):!0),w.length&&n("oversize",w);let C=v.length+o.length;return C>p&&v.splice(v.length-(C-p)),v},g=(v,p)=>{o.splice(p,1),n("delete",{file:v,fileList:o,index:p})},y=(v,p)=>{m(p),Xs(e.beforeDelete,{args:[v,o],done:()=>g(v,p)})},k=v=>{if(e.disabled)return;const p=v.target;let{files:N}=p;e.beforeUpload?e.beforeUpload(N).then(w=>f(w)):f(N),n("change",{fileList:o,event:v}),e.clearInput&&i(p)},f=v=>{const p=b(new Array().slice.call(v));h(p)};return{onChange:k,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:u,renderInput:s}}}),H0={key:0,class:"fox-uploader__slot"},j0={key:0,class:"fox-uploader__preview-img"},W0={key:0,class:"fox-uploader__preview__progress"},Y0={class:"fox-uploader__preview__progress__msg"},X0=["onClick"],Q0=["onClick","src"],G0={key:3,class:"fox-uploader__preview-img__file"},Z0=["onClick"],J0={class:"file__name_tips"},_0={class:"tips"},eb={key:1,class:"fox-uploader__preview-list"},tb=["onClick"],nb={class:"file__name_tips"};function ob(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",H0,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,b)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",j0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",W0,[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",Y0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,b)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,X0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,Q0)):(t.openBlock(),t.createElementBlock("view",G0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",J0,t.toDisplayString(h.name),1)],8,Z0)])),t.createElementVNode("view",_0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",eb,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",nb,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,b)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,tb),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const da=oe(U0,[["render",ob]]),lb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJl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0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:rb,scope:sb}=Z("number-keyboard"),ib=rb({components:{[me.name]:me},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}=ie.useFoxI18n(sb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let v={id:"lock",type:"lock"},p=Array.isArray(f)?f:[f];return p.length===1&&(v={id:p[0],type:"custom"}),[...c(),v,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let v=1;v<=9;v++)f.push({id:v,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function d(){const f=c(),{customKey:v}=e;let p=Array.isArray(v)?v:[v];return p.length>2&&(p=[p[0],p[1]]),p.length==2&&e.title&&e.type!="rightColumn"&&(p=[p[0]]),p.length===1?e.title&&e.type!="rightColumn"?f.push({id:p[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:p[0],type:"custom"}):p.length===2&&f.push({id:p[0],type:"custom"},{id:0,type:"number"},{id:p[1],type:"custom"}),f}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),u=()=>{e.visible&&n("blur")},h=f=>{const v=s.value;v&&!v.contains(f.target)&&u()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function b(f,v){v.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"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(f){f.stopPropagation()}function y(f){f.preventDefault(),l.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:lb,lockImg:ab,clickKeyIndex:l,defaultKey:i,closeBoard:k,onTouchEnd:y,onTouchMove:g,onTouchstart:b,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),cb={ref:"root"},ub={class:"fox-number-keyboard"},db={key:0,class:"fox-number-keyboard__header"},fb={class:"fox-number-keyboard__title"},mb={class:"fox-number-keyboard__body"},pb={class:"fox-number-keyboard__keys"},hb=["onTouchstart"],gb=["src"],yb=["src"],vb={key:0,class:"fox-number-keyboard__sidebar"},bb={class:"fox-key__wrapper"},kb=["src"];function Sb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",cb,[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",ub,[e.title?(t.openBlock(),t.createElementBlock("div",db,[t.createElementVNode("h3",fb,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",mb,[t.createElementVNode("div",pb,[(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,gb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,yb)):t.createCommentVNode("",!0)],42,hb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",vb,[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,kb)],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 fa=oe(ib,[["render",Sb]]),{componentName:Cb,create:wb}=Z("swipe"),Nb=wb({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(()=>({[Cb]:!0})),o=v=>v.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,d="",m="";const u=t.reactive({offset:0,moving:!1}),h=(v="")=>{c=!0,v&&(u.offset=v==="left"?-i.value:r.value),n("open",{name:e.name,position:d||v})},b=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:d})},g=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),y=v=>{d=v>0?"right":"left";let p=v;switch(d){case"left":c&&m===d?p=-i.value:p=Math.abs(v)>i.value?-i.value:v;break;case"right":c&&m===d?p=r.value:p=Math.abs(v)>r.value?r.value:v;break}u.offset=p},k=lt();return{classes:a,touchStyle:g,...{onTouchStart(v){e.disabled||k.start(v)},onTouchMove(v){e.disabled||(k.move(v),k.isHorizontal()&&(u.moving=!0,y(k.deltaX.value),e.touchMovePreventDefault&&v.preventDefault(),e.touchMoveStopPropagation&&v.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,m=d,d){case"left":Math.abs(u.offset)<=i.value/2?b():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?b():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:b}}}),Bb={class:"fox-swipe__left",ref:"leftRef"},Ab={class:"fox-swipe__content"},Vb={class:"fox-swipe__right",ref:"rightRef"};function Tb(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",Bb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Ab,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Vb,[t.renderSlot(e.$slots,"right")],512)],38)}const Gt=oe(Nb,[["render",Tb]]),{componentName:$b,create:Eb}=Z("action-sheet"),xb=Eb({components:{Popup:me,Loading:le.Loading},props:{...Fe,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(()=>({[$b]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(n("choose",c,d),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Db={key:0,class:"fox-action-sheet__title"},Ib={key:1},qb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Mb={key:1,class:"fox-action-sheet__menu"},Pb=["onClick"],Lb={key:1},zb={class:"fox-action-sheet__subdesc"};function Ob(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("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",Db,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ib,[e.description?(t.openBlock(),t.createElementBlock("view",qb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Mb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Lb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",zb,t.toDisplayString(c[e.optionSubTag]),1)],14,Pb))),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 ma=oe(xb,[["render",Ob]]),{componentName:Rb,create:Fb}=Z("backtop"),pa=Fb({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(()=>({[Rb]:!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(g=0){o.scrollEl instanceof Window?window.scrollTo(0,g):o.scrollEl.scrollTop=g}function c(){let g=Ge(function y(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=k*-o.scrollTop/e.duration+o.scrollTop;i(f),g=Ge(y),(k==e.duration||f==0)&&es(g)})}function d(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function m(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",g)}function h(){b.value?o.scrollEl=b.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,m()});const b=t.computed(()=>{if(typeof a.content=="function"){const g=a.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];b.value&&g.push(b.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const f=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const k=t.h("div",{class:l.value,style:r.value,onClick:u},y);return g.push(k),g}}}),{componentName:Kb,create:Ub}=Z("drag"),Hb=Ub({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(()=>({[Kb]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",He(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",He(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",He(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const b=u.targetTouches[0];o.nx=b.clientX-o.position.x,o.ny=b.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const g=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>g?o.xPum=g: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 d(u){const h=u.currentTarget;let g=u.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;g>y?g=y:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?He(()=>{s(h)}):He(()=>{i(h,y)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function m(u){const h=u.currentTarget,b=u.touches[0],g=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=b.clientX,o.position.y=b.clientY,o.nx=g.clientX-o.position.x,o.ny=g.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",m),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",d)}),{classes:l,myDrag:a,touchStart:m,touchMove:c,touchEnd:d}}});function jb(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 ha=oe(Hb,[["render",jb]]),Wb={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}},Yb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Xb(e,n,a,o,l){return{props:{...Fe,...Wb},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ie.useFoxI18n(n),m=d(r,["confirmText","cancelText"]),u=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const b=C=>{h.value=C,c("update:visible",C),c("update",C)},g=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const S=r.beforeClose(C);St(S)?S.then(B=>{B&&(b(!1),c("closed",C))}):S===!0&&(b(!1),c("closed",C))}else b(!1),c("closed",C)},y=()=>{g("confirm")},k=()=>{g("cancel")},f=()=>{g("close")},v=(C,S)=>Yb(C)?(S.src=C,t.h("img",S)):typeof C=="string"?(Array.isArray(S.class)?S.class.push(C):S.class&&typeof S.class=="object"?S[`${C}`]=!0:typeof S.class=="string"?S.class=`${S.class}, ${C}`:S.class=C,t.h(r.tag,S)):t.h(C,S),p=()=>{const C=[];if(i.header){const B=i.header();C.push(B)}else{if(r.title){const B=t.h("view",{class:`${u}__header-title`},[r.title]);C.push(B)}if(r.showClose){const B={class:[`${u}__header-close-icon`],onClick:f},A=r.closeIcon??l,T=v(A,B);C.push(T)}}if(C.length===0)return null;const S={class:[`${u}__header`]};return t.h("view",S,C)},N=()=>{const C=[];if(i.default)C.push(i.default());else{const B={class:[`${u}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const A=t.h("view",B);C.push(A)}else if(typeof r.content=="function"){const A=t.h("view",B,[r.content()]);C.push(A)}else{const A=t.h("view",B,[r.content]);C.push(A)}}if(C.length===0)return null;const S={class:[`${u}__body`]};return t.h("view",S,C)},w=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const A=t.h("view",B,[r.cancelButtonText??m.cancelText.value]);C.push(A)}if(r.showConfirmButton){const B={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const A=t.h("view",B,[r.confirmButtonText??m.confirmText.value]);C.push(A)}}else{if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const A=t.h(o,B,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(A)}if(r.showConfirmButton){const B={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const A=t.h(o,B,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(A)}}if(C.length===0)return null;const S={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",S,C)};return()=>{const C=[],S=p();S&&C.push(S);const B=N();B&&C.push(B);const A=w();A&&C.push(A);const T={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},$=t.h("view",T,C),U=[`${u}__popup`];r.popClass&&U.push(r.popClass);const q={};r.width&&(q.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(q.height=typeof r.height=="number"?`${r.height}px`:r.height);const V={...ke(r,Fe),popClass:U.join(" "),style:q,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":b,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,V,{default:()=>$})}}}}const{componentName:Qb,create:Gb,scope:Zb}=Z("dialog"),Qs=Gb(Xb(Qb,Zb,me,ze,le.Close));class Jb{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 _b{options=new Jb;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=d=>{if(d===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},a?.onOpened&&a?.onOpened(),()=>t.h(Qs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Zt=function(e){return new _b(e)};Zt.install=e=>{e.use(Qs),e.config.globalProperties.$dialog=Zt};const ek={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}},tk=(e,n,a)=>({props:{...ek},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=eo(),d=t.ref(),m=Hs(d),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),b=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),g=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),y=t.computed(()=>{const S={};return o.headHeight!=50&&(S.height=ge(o.headHeight)),S}),k=S=>{const B=+(o.pullDistance||o.headHeight);let A=S;return S>B&&(S<B*2?A=(S+B)/2:A=B+S/4),Math.round(A)},f=(S,B)=>{const A=+(o.pullDistance||o.headHeight);u.distance=S,B?u.status="loading":S===0?u.status="normal":S<A?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:S})},v=()=>u.status!=="loading"&&u.status!=="complete",p=()=>m.value==window?js()==0:m.value&&m.value.scrollTop==0,N=S=>{v()&&(p()?(c.start(S),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},w=S=>{v()&&u.moving&&(c.move(S),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(S.cancelable&&S.preventDefault(),f(k(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&v()&&c.state.deltaY&&(u.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,S=>{S?f(+o.headHeight,!0):f(0)}),()=>{const S=[];let B=null;if(u.status==="loading"){if(B=r?.loading?.()??null,!B){const P={class:["fox-pull-refresh-container-topbox-icon"]};B=t.h(a,P)}}else u.status==="pulling"?B=r?.pulling?.()??null:u.status==="loosing"&&(B=r?.loosing?.()??null);B&&S.push(B);const A={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",A,[b.value]);S.push(T);const $={class:["fox-pull-refresh-container-topbox"],style:y.value},U=t.h("div",$,S),q={class:"fox-pull-refresh-container",style:g.value},E=t.h("div",q,[U,r?.default?.()]),V={ref:d,class:h.value};return _n()?Object.assign(V,{onTouchstart:N,onTouchmove:w,onTouchend:C}):Object.assign(V,{onMousedown:N,onMousemove:w,onMouseup:C}),t.h("div",V,[E])}}}),{componentName:nk,create:ok,scope:lk}=Z("pull-refresh"),ga=ok(tk(nk,lk,le.Loading)),{create:ak}=Z("notify"),rk=ak({components:{[me.name]:me},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,d=>{s.value=e.visible;const m=e.duration;d&&m&&(o=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function sk(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 ya=oe(rk,[["render",sk]]),el={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let yt=[],Ut=[];const Gs=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(a=>a.id!==e),yt=yt.filter(a=>a!==e),n&&document.body.removeChild(n)}else yt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ut=[],yt=[]},ik=e=>{const n=document.getElementById(e.id);if(n){const a=Ut.find(l=>l.id===e.id);a?e={...el,...a,...e}:e={...el,...e};const o=t.createVNode(ya,e);return t.render(o,n),o.component.data}},Pt=e=>{e.unmount=Gs;let n;if(e.id){if(n=e.id,yt.find(r=>r===e.id))return ik(e)}else n=new Date().getTime()+"";e={...el,...e},e.id=n,yt.push(e.id),Ut.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(ya,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Lt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},va={text(e,n={}){return Lt(e),Pt({...n,msg:e})},primary(e,n={}){return Lt(e),Pt({...n,msg:e,type:"primary"})},success(e,n={}){return Lt(e),Pt({...n,msg:e,type:"success"})},danger(e,n={}){return Lt(e),Pt({...n,msg:e,type:"danger"})},warn(e,n={}){return Lt(e),Pt({...n,msg:e,type:"warning"})},hide(){Gs()},install(e){e.use(ya)}},{create:ck}=Z("toast"),uk=ck({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,b=>{b&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const b=de(e.iconSize);return t.h(e.icon,{width:b,height:b,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),dk={key:1,class:"fox-toast-title"},fk=["innerHTML"];function mk(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",dk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,fk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const ba=oe(uk,[["render",mk]]),tl={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 vt=[],Ht=[];const Zs=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(a=>a.id!==e),vt=vt.filter(a=>a!==e),n&&document.body.removeChild(n)}else vt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ht=[],vt=[]},pk=e=>{const n=document.getElementById(e.id);if(n){const a=Ht.find(l=>l.id===e.id);a?e={...tl,...a,...e}:e={...tl,...e};const o=t.createVNode(ba,e);return t.render(o,n),xt}},zt=e=>{e.unmount=Zs;let n;if(e.id){if(n=e.id,vt.find(l=>l===e.id))return pk(e)}else n=new Date().getTime()+"";e={...tl,...e},e.id=n,vt.push(e.id),Ht.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ba,e);return t.render(o,a),document.body.appendChild(a),xt},rn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},xt={text(e,n={}){return rn(e),zt({...n,type:"text",msg:e})},success(e,n={}){return rn(e),zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return rn(e),zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return rn(e),zt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return zt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Zs(e)},install(e){e.use(ba),e.config.globalProperties.$toast=xt}},{componentName:i2,create:hk}=Z("audio"),gk=hk({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,[Xt.name]:Xt},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 y=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<y.length;k++)document.addEventListener(y[k],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=y=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),l.second=k.duration,l.duration=g(k.duration),n("can-play",y)},s=y=>{l.currentTime=parseInt(y.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const y=o.value;l.playing?(y.pause(),l.handPlaying=!1):(y.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},d=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},m=y=>{l.currentDuration=g(y),l.percent=y/l.second*100},u=()=>{l.playing=!1,n("ended")},h=y=>{const k=o.value;k.currentTime=l.second*y/100,n("changeProgress",k.currentTime)},b=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},g=y=>{if(!y)return"00:00:00";let k=parseInt(y),f=Math.floor(k/3600),v=Math.floor((k-f*3600)/60),p=k-f*3600-v*60,N="";return N+=("0"+f.toString()).slice(-2)+":",N+=("0"+v.toString()).slice(-2)+":",N+=("0"+p.toString()).slice(-2),N};return t.watch(()=>l.currentTime,y=>{m(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:b,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:b,onCanplay:r,slots:a}}}),yk={class:"fox-audio"},vk={key:0,class:"fox-audio__progress"},bk={class:"fox-audio__time"},kk={class:"fox-audio__bar"},Sk={class:"fox-audio__time"},Ck={key:1,class:"fox-audio__icon"},wk=["controls","src","preload","autoplay","loop","muted"];function Nk(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",yk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",vk,[t.createElementVNode("div",bk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",kk,[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(()=>n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Sk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Ck,[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,wk)])}const ka=oe(gk,[["render",Nk]]),{componentName:c2,create:Bk,scope:Ak}=Z("audio-operate"),Vk=Bk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Ak),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}}}),Tk={class:"fox-audio-operate"};function $k(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Tk,[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 Sa=oe(Vk,[["render",$k]]),{componentName:Ek,create:xk}=Z("avatar"),Dk=xk({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}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&b(g)});const m=t.computed(()=>({[Ek]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),b=g=>{d.maxIndex=g.length;for(let y=0;y<g.length;y++)g[y]&&g[y].classList&&g[y].classList[0]=="fox-avatar"&&g[y].setAttribute("data-index",y+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Ik(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 Jt=oe(Dk,[["render",Ik]]),{componentName:qk,create:Mk}=Z("avatar-group"),Pk=Mk({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(()=>({[qk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Lk(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 Ca=oe(Pk,[["render",Lk]]);var wn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(wn||{});function zk(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:Ok,create:Rk}=Z("list"),Jr=document.documentElement.clientHeight||document.body.clientHeight||667,Fk=Rk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Jr},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,Jr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[Ok]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},b=()=>{let f=l.value.childNodes;f=Array.from(f).filter(S=>S.nodeType===1);const v=f[0];f.forEach((S,B)=>{if(!S)return;const A=qe(S),{height:T}=A,U=r.cachePositions[B+r.start].height-T;U&&(r.cachePositions[B+r.start].bottom-=U,r.cachePositions[B+r.start].height=T,r.cachePositions[B+r.start].dValue=U)});let p=0;v&&(p=r.start);const N=r.cachePositions.length;let w=r.cachePositions[p].dValue;r.cachePositions[p].dValue=0;for(let S=p+1;S<N;++S){const B=r.cachePositions[S];r.cachePositions[S].top=r.cachePositions[S-1].bottom,r.cachePositions[S].bottom=r.cachePositions[S].bottom-w,B.dValue!==0&&(w+=B.dValue,B.dValue=0)}const C=r.cachePositions[N-1].bottom;r.phantomHeight=C},g=(f=0)=>{let v=zk(r.cachePositions,f,(N,w)=>{const C=N.bottom;return C===w?wn.eq:C<w?wn.lt:wn.gt});return r.cachePositions[v].bottom<f&&(v+=1),v},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=a.value?.scrollTop,{originStartIndex:v}=r,p=g(f);p!==v&&(r.originStartIndex=p,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return t.watch(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)h(),b();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&b()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:k}}});function Kk(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 wa=oe(Fk,[["render",Kk]]),{componentName:Uk,create:Hk}=Z("circleprogress"),jk=Hk({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(()=>({[Uk]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>De(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let m=283,u=m*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!De(e.color))return;let m=e.color;const u=Object.keys(m).sort((b,g)=>parseFloat(b)-parseFloat(g));let h=[];return u.map((b,g)=>{let y={key:"",value:""};y.key=b,y.value=m[b],h.push(y)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:a,refRandomId:o}}}),Wk={viewBox:"0 0 100 100"},Yk=["id"],Xk=["offset","stop-color"],Qk=["d","stroke-width"],Gk=["d","stroke","stroke-linecap","stroke-width"],Zk={class:"fox-circleprogress-text"},Jk={key:0};function _k(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",Wk,[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,Xk))),128))],8,Yk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Qk),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,Gk)])),t.createElementVNode("div",Zk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Jk,t.toDisplayString(e.progress)+"%",1))])],6)}const Na=oe(jk,[["render",_k]]),{componentName:eS,create:tS}=Z("noticebar"),nS=tS({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(()=>({[eS]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let S={};return e.color&&(S.color=e.color),e.background&&(S.background=e.background),e.direction=="vertical"&&(S.height=`${e.height}px`),S}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let S={};if(e.complexAm)S={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);S={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return S});t.watch(()=>e.text,S=>{h()}),t.watch(()=>e.list,S=>{r.scrollList=[...S]});const h=S=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const B=o.value.getBoundingClientRect().width,A=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?A>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=A,r.duration=A/e.speed,r.animationClass="play"):r.animationClass=""},0)},b=S=>{n("click",S)},g=S=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",S)},y=S=>{r.firstRound=!1,n("across-end",S),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{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))},v=()=>{r.timer=setInterval(()=>{let S=100;for(let B=0;B<S;B++)p(B,!(B<S-1))},e.standTime+100*e.speed)},p=(S,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},S*e.speed)},N=S=>{n("click",S)},w=()=>{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?v():k()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],S=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(S))});const C=S=>{S&&S.length>0&&(r.scrollList=S[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:m,horseLampStyle:u,wrap:o,content:l,handleClick:b,onClickIcon:g,onAnimationEnd:y,go:N,handleClickIcon:w,slots:a,toPxDesc:ge,wrapContentClass:c}}}),oS={key:0,class:"fox-noticebar__page-lefticon"},lS={ref:"wrap",class:"fox-noticebar__page-wrap"},aS={class:"showNotica"},rS=["onClick"];function sS(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]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",oS,[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",lS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",aS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:u=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,rS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Ba=oe(nS,[["render",sS]]),iS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb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l+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:u2,create:dS,scope:fS}=Z("empty"),mS={empty:iS,error:cS,network:uS},pS=dS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(fS),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:mS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),hS={class:"fox-empty"},gS=["src"],yS={key:1,class:"fox-empty-description"};function vS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",hS,[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,gS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",yS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Aa=oe(pS,[["render",vS]]),{create:bS,scope:kS}=Z("video"),SS=bS({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}=ie.useFoxI18n(kS),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)),g(),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",Oo(u,1e3)))},i=()=>{const C=l.value,S=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=S,o.progressBar.pos=S.getBoundingClientRect(),o.videoSet.progress.width=Math.round(S.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",()=>{m()}),o.videoElm.addEventListener("timeupdate",Oo(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{b()}else o.videoElm.pause(),n("pause",o.videoElm)},d=C=>{var S=Math.floor(C/3600);S<10&&(S="0"+S);var B=Math.floor(C%3600/60);B<10&&(B="0"+B);var A=Math.round(C%3600%60);A<10&&(A="0"+A);var T="";return S!=0?T=S+":"+B+":"+A:T=B+":"+A,T},m=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),o.videoSet.totalTime=d(o.videoElm.duration),o.videoSet.displayTime=d(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},b=()=>{o.state.isError=!0},g=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},f=C=>{let B=C.targetTouches[0].pageX-o.progressBar.pos.left;B<=0&&(B=0),B>=o.videoSet.progress.width&&(B=o.videoSet.progress.width),o.videoSet.progress.current=B;let A=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&p(A,o.videoElm.duration)},v=C=>{let B=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=B;let A=B/o.videoSet.progress.width;o.videoElm.duration&&p(A,o.videoElm.duration)},p=(C,S)=>{o.videoElm.currentTime=Math.floor(C*S)},N=()=>{o.state.isError=!1,s()},w=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:b,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:v,retry:N,fullScreen:w,t:a}}}),CS={class:"fox-video",ref:"videocon"},wS=["muted","autoplay","loop","poster","controls","preload"],NS=["src","type"],BS={class:"fox-video-controller__now"},AS={class:"fox-video-controller__progress"},VS={class:"fox-video-controller__progress-value",ref:"progressBar"},TS={class:"fox-video-controller__played",ref:"playedBar"},$S={class:"fox-video-controller__total"},ES={class:"fox-video-error"},xS={class:"fox-video-error-tip"};function DS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",CS,[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,NS)],40,wS),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",BS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",AS,[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"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",TS,null,512)],512)]),t.createElementVNode("div",$S,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",ES,[t.createElementVNode("p",xS,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(SS,[["render",DS]]),{create:IS,componentName:qS}=Z("steps"),Va=IS({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=qS;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:MS,componentName:PS}=Z("step"),LS=MS({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=PS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),zS={class:"fox-step-head"},OS={class:"fox-step-icon-inner"},RS={key:1,class:"fox-step-inner"},FS={class:"fox-step-main"},KS={class:"fox-step-title"},US={key:0},HS={key:0,class:"fox-step-content"},jS=["innerHTML"];function WS(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",zS,[n[1]||(n[1]=t.createElementVNode("view",{class:"fox-step-line"},null,-1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",OS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",RS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",FS,[t.createElementVNode("view",KS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",US,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",HS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,jS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Ta=oe(LS,[["render",WS]]),{create:YS,componentName:To}=Z("swiper"),XS=YS({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=lt(),s=t.computed(()=>({[To]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=To;return{[`${x}-inner`]:!0,[`${x}-vertical`]:i.value}}),d=t.computed(()=>{const x=To;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),b=t.computed(()=>l[i.value?"height":"width"]),g=t.computed(()=>h.value*b.value),y=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-b.value*h.value:0),k=t.computed(()=>(l.active+h.value)%h.value),f=()=>{let x=0;x=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${x}px)`,[i.value?"height":"width"]:`${b.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},v=x=>{let j=[];const H=l.childrenVNode.length;let L=a?.default?.();if(L=L.filter(_=>_.children&&Array.isArray(_.children)),L.forEach(_=>{j=j.concat(_.children)}),!H)l.childrenVNode=j.slice(),x.proxy&&l.children.push(x.proxy);else if(H>j.length)l.children=l.children.filter(_=>x.proxy!==_);else if(H<j.length){for(let _=0;_<H;_++)if(j[_].key!==l.childrenVNode[_].key){x.proxy&&l.children.splice(_,0,x.proxy),x.vnode&&l.childrenVNode.splice(_,0,x.vnode);break}H!==j.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=j.slice(),x.proxy&&l.children.push(x.proxy)},p=(x,j=0)=>{let H=x*b.value;e.loop||(H=Math.min(H,-y.value));let L=j-H;return e.loop||(L=je(L,y.value,0)),L},N=x=>{const{active:j}=l;return x?e.loop?je(j+x,-1,h.value):je(j+x,0,h.value-1):j},w=({pace:x=0,offset:j=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:L}=l,_=N(x),ee=p(_,j);if(e.loop){if(l.children[0]&&ee!==y.value){const K=ee<y.value;l.children[0].setOffset(K?g.value:0)}if(l.children[h.value-1]&&ee!==0){const K=ee>0;l.children[h.value-1].setOffset(K?-g.value:0)}}l.active=_,l.offset=ee,H&&L!==l.active&&n("change",k.value),f()},C=()=>{l.moving=!0,l.active<=-1&&w({pace:h.value}),l.active>=h.value&&w({pace:-h.value})},S=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},B=x=>{C(),r.reset(),Ge(()=>{Ge(()=>{l.moving=!1,w({pace:x,isEmit:!0})})})},A=()=>{B(-1)},T=()=>{B(1)},$=x=>{C(),r.reset(),Ge(()=>{l.moving=!1;let j;e.loop&&h.value===x?j=l.active===0?0:x:j=x%h.value,w({pace:j-l.active,isEmit:!0})})},U=()=>{e.autoPlay<=0||h.value<=1||(S(),l.autoplayTimer=setTimeout(()=>{T(),U()},Number(e.autoPlay)))},q=(x=+e.initPage)=>{S(),l.rect=o.value.getBoundingClientRect(),x=Math.min(h.value-1,x),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=x,l.offset=p(l.active),l.moving=!0,f(),U()},E=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),S(),C())},V=x=>{e.touchable&&l.moving&&(r.move(x),u.value&&w({offset:m.value}))},P=x=>{if(!e.touchable||!l.moving)return;const j=m.value/(Date.now()-l.touchTime);if((Math.abs(j)>.3||Math.abs(m.value)>+(b.value/2).toFixed(2))&&u.value){let L=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?L=_>0?m.value>0?-1:1:0:L=-Math[m.value>0?"ceil":"floor"](m.value/b.value),w({pace:L,isEmit:!0})}else m.value&&w({pace:0});l.moving=!1,f(),U()};return t.provide("parent",{props:e,size:b,relation:v}),Ee({prev:A,next:T,to:$}),t.onDeactivated(()=>{S()}),t.onBeforeUnmount(()=>{S()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{q(Number(x))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{q()})}),t.watch(()=>e.autoPlay,x=>{x>0?U():S()}),{state:l,classes:s,classesInner:c,classesPagination:d,container:o,activePagination:k,onTouchStart:E,onTouchMove:V,onTouchEnd:P}}});function QS(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(XS,[["render",QS]]),{create:GS,componentName:ZS}=Z("swiper-item"),JS=GS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[ZS]:!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 _S(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 Tt=oe(JS,[["render",_S]]),Js={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:e1}=Z("image-preview-item"),t1=e1({props:{...Js,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,[Tt.name]:Tt},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=lt(),l=t.computed(()=>{const{rootWidth:A,rootHeight:T}=e,$=T/A;return a.imageRatio>$}),r=t.computed(()=>{const A=e.image;if(A&&A.src){const{scale:T,moveX:$,moveY:U,moving:q,zooming:E}=a,V={transitionDuration:E||q?"0s":".3s"};if(T!==1){const P=$/T,x=U/T;V.transform=`scale(${T}, ${T}) translate(${P}px, ${x}px)`}return V}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:T}=e,$=l.value?T/a.imageRatio:A;return Math.max(0,(a.scale*$-A)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:T}=e,$=l.value?T:A*a.imageRatio;return Math.max(0,(a.scale*$-T)/2)}return 0}),c=A=>{const{naturalWidth:T,naturalHeight:$}=A.target;a.imageRatio=$/T},d=()=>{m(1),a.moveX=0,a.moveY=0},m=A=>{A=je(A,+e.minZoom,+e.maxZoom+1),A!==a.scale&&(a.scale=A,n("scale",{scale:A,index:e.initNo}))},u=()=>{const A=a.scale>1?1:2;m(A),a.moveX=0,a.moveY=0},h=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let b,g,y,k,f,v,p;const N=A=>{const{touches:T}=A,{offsetX:$}=o;o.start(A),p=T.length,b=a.moveX,g=a.moveY,v=Date.now(),a.moving=p===1&&a.scale!==1,a.zooming=p===2&&!$.value,a.zooming&&(y=a.scale,k=h(A.touches))},w=A=>{const{touches:T}=A;if(o.move(A),(a.moving||a.zooming)&&zo(A,!0),a.moving){const{deltaX:$,deltaY:U}=o,q=$.value+b,E=U.value+g;a.moveX=je(q,-s.value,s.value),a.moveY=je(E,-i.value,i.value)}if(a.zooming&&T.length===2){const $=h(T),U=y*$/k;m(U)}},C=()=>{if(p==1&&e.video&&e.video.source||p>1)return;const{offsetX:A,offsetY:T}=o,$=Date.now()-v,U=250,q=5;A.value<q&&T.value<q&&$<U&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},U))},S=A=>{let T=!1;(a.moving||a.zooming)&&(T=!0,a.moving&&b===a.moveX&&g===a.moveY&&(T=!1),A.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-s.value,s.value),a.moveY=je(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,b=0,g=0,y=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),zo(A,T),C(),o.reset()},B=()=>{n("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,A=>{A||d()}),{...t.toRefs(a),onTouchStart:N,onTouchMove:w,onTouchEnd:S,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),n1=["src"];function o1(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,n1)):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 l1=oe(t1,[["render",o1]]),{create:a1}=Z("image-preview"),r1=a1({props:{...Js,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:l1,CircleClose:le.CircleClose,[me.name]:me,[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 m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>qn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==o.active&&(o.active=m,n("change",o.active))},i=()=>{Xs(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},d=()=>{if(a.value){const m=qe(a.value);o.rootHeight=m.height,o.rootWidth=m.width}};return t.watch(()=>e.show,m=>{o.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=o.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),s1={class:"fox-image-preview",ref:"swipeRef"},i1={key:0,class:"fox-image-preview-index"};function c1(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",s1,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?m:{},image:u>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",i1,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]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const _s=oe(r1,[["render",c1]]);class u1{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 d1{options=new u1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Pi(a,{name:"image-preview",components:[me,At,Vt,Tt,ft],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(_s,a))}})})}}const go=e=>new d1(e);go.install=e=>{e.use(_s)};function f1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:d2,create:m1}=Z("countup"),p1=m1({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=B=>{B&&o.value.push(B)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,A)=>{u(),k(0)}),t.watch(()=>e.machinePrizeLevel,(B,A)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,A)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,A)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&k():(y(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,A,T)=>{const $=(B.toString().split(".")[1]||"").length,U=(A.toString().split(".")[1]||"").length,q=Math.pow(10,Math.max($,U));return Number((B*q-A*q).toFixed(0))/q},b=B=>{let{num_total_len:A,pointNum:T,initDigit1:$,initDigit2:U,sortFlag:q}=r,E=q=="add"||q=="equal"?String(U)[B-(A-T)]:10-Number(String(U)[B-(A-T)]),V=q=="add"||q=="equal"?String($)[B]:10-Number(String($)[B]),P=B>A-T-1?-E*100+"%":B<=String($).length-1?-V*100+"%":0;return P=="-1000%"&&(P=0),P},g=B=>{let{num_total_len:A,pointNum:T,initDigit1:$,initDigit2:U,sortFlag:q}=r,E=String(U)[B-(A-T)];return B>A-T-1?E||0:B<=String($).length-1?String($)[B]:0},y=()=>{let{endNum:B,initNum:A,speed:T,toFixed:$}=e,U=setInterval(()=>{if(A>B)if(r.current<=B||r.current<=T)r.current=B.toFixed($),clearInterval(U),n("scroll-end"),r.valFlag=!1;else{let q=parseFloat(String(r.current))-parseFloat(String(T));r.current=q.toFixed($)}else if(r.current>=B)r.current=B.toFixed($),clearInterval(U),n("scroll-end"),r.valFlag=!1;else{let q=parseFloat(String(r.current))+parseFloat(String(T));r.current=q.toFixed($)}},e.during)},k=B=>{let{initNum:A,endNum:T,toFixed:$,customBgImg:U}=e;U&&(A=e.customChangeNum);let q,E,V,P;A!=0?($!=0&&(A=Number(A.toFixed($))),String(A).indexOf(".")>-1?(q=String(A).split(".")[0].length,E=String(A).split(".")[1].length):(q=String(A).length,E=0)):(q=1,E=0),T!=0?($!=0&&(T=Number(T.toFixed($))),String(T).indexOf(".")>-1?(V=String(T).split(".")[0].length,P=String(T).split(".")[1].length):(V=String(T).length,P=0)):(V=1,P=0);let x=q>=V?q:V,j=E>=P?E:P;r.num_total_len=x+j,r.pointNum=j,A>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(A,T),r.numberVal=Number(String(A))):A<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(T,A),r.numberVal=Number(String(T))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var L=r.numberVal*H;if(r.relNum=L,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(L).length),String(A).indexOf(".")>-1){let _=String(A).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=A,r.initDigit2=0;i&&!U?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];f(_)}):B!==0&&N()},f=B=>{u();var A=1;r.pointNum!=0&&(A=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{v(B),r.totalCount=h(r.totalCount,A),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},v=B=>{let A=B.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(A))+1:T=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,B.setAttribute("turn-number",String(T)),(B.style.transition=="none 0s ease 0s"||T==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var $=null;B.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,B.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),B.style.transition="none",B.style.top="0",p(B,T)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&v(B.previousSibling)},p=(B,A)=>{setTimeout(()=>{A==10&&B.previousSibling&&v(B.previousSibling)},200)},N=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},w=()=>{for(r.notPrize=[];r.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(B)==-1&&r.notPrize.push(B)}};f1({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let $=A*(T+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let U=r.prizeYPrev[T]?r.prizeYPrev[T]:0,q=$+U+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-U);r.prizeLevelTrun<0&&(q+=e.numHeight*r.notPrize[T]),S(T,q,U)},500*T)}});const S=(B,A,T)=>{let $=setInterval(()=>{if(T<=A)T+=10,r.prizeY[B]=parseFloat(String(T));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[B]=A,r.finshMachine==e.machineNum){let U=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let V=E;for(;V>U;)V-=U;r.prizeYPrev.push(V)}),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(()=>{m()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:b,turnNumber:g}}}),h1={class:"fox-countup"},g1=["turn-number"];function y1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",h1,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,g1))),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 $a=oe(p1,[["render",y1]]),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:b1,create:k1}=Z("countdown"),S1=k1({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(()=>({[b1]:!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 b=Date.now()-o.diffTime,g=Math.max(o.handleEndTime-b,0);o.restTime=g,g||(o.counting=!1,u(),n("on-end")),g>0&&i()}}))},c=(b,g)=>{const y=b;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,v=60*f,p=60*v,N=24*p;return y>0&&(k.d=y>=f?Math.floor(y/N):0,k.h=Math.floor(y%N/p),k.m=Math.floor(y%p/v),k.s=Math.floor(y%v/f),k.ms=Math.floor(y%f)),g=="custom"?k:d({...k})},d=b=>{let{d:g,h:y,m:k,s:f,ms:v}=b,p=e.format;if(p.includes("DD")?p=p.replace("DD",at(g)):y+=Number(g)*24,p.includes("HH")?p=p.replace("HH",at(y)):k+=Number(y)*60,p.includes("mm")?p=p.replace("mm",at(k)):f+=Number(k)*60,p.includes("ss")?p=p.replace("ss",at(f)):v+=Number(f)*1e3,p.includes("S")){const N=at(v,3).toString();p.includes("SSS")?p=p.replace("SSS",N):p.includes("SS")?p=p.replace("SS",N.slice(0,2)):p.includes("S")&&(p=p.replace("SS",N.slice(0,1)))}return p},m=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,b=>{let g=c(b,"custom");n("update:modelValue",g),n("input",g)}),t.watch(()=>e.paused,(b,g)=>{g?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,b=>{s()}),t.watch(()=>e.startTime,b=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:m,pause:u,renderTime:r,reset:h}}}),C1=["innerHTML"];function w1(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,C1))],2)}const Ea=oe(S1,[["render",w1]]),{create:N1}=Z("badge"),B1=N1({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}}}),A1={class:"fox-badge"},V1=["textContent"];function T1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",A1,[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,V1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const xa=oe(B1,[["render",T1]]),{componentName:$1,create:E1}=Z("tag"),x1=E1({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=$1;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 D1(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 _t=oe(x1,[["render",D1]]),{create:I1}=Z("popover"),q1=I1({components:{FoxPopup:me},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 v="fox-popover-arrow",p=e.location,N=p.split("-")[0];return`${v} ${v}-${N} ${v}--${p}`}),c=t.computed(()=>{const v={},{bgColor:p,arrowOffset:N,location:w}=e,C=w.split("-")[0],S=w.split("-")[1],B=16;return p&&(v[`border${d(C)}Color`]=p),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(S||(v.left=`calc(50% + ${N}px)`),S=="start"&&(v.left=`${B+N}px`),S=="end"&&(v.right=`${B-N}px`)),["left","right"].includes(C)&&(S||(v.top=`calc(50% - ${N}px)`),S=="start"&&(v.top=`${B-N}px`),S=="end"&&(v.bottom=`${B+N}px`))),v}),d=v=>(v=v.toLowerCase(),v=v.replace(/\b\w+\b/g,p=>p.substring(0,1).toUpperCase()+p.substring(1)),v),m=t.computed(()=>{let v={};if(!r.value||!s.value)return{};const p=s.value.width,N=s.value.height,{width:w,height:C,left:S,top:B}=r.value,{location:A,offset:T}=e,$=A.split("-")[0],U=A.split("-")[1];let q=0,E=0;if(qn(T)&&T.length==2&&(q+=Number(T[1]),E+=Number(T[0])),w){if(["bottom","top"].includes($)){const V=$=="bottom"?C+q:-(N+q);v.top=`${B+V}px`,U||(v.left=`${-(p-w)/2+S+E}px`),U=="start"&&(v.left=`${S+E}px`),U=="end"&&(v.left=`${r.value.right+E}px`)}if(["left","right"].includes($)){const V=$=="left"?-(p+q):w+q;v.left=`${S+V}px`,U||(v.top=`${B-N/2+C/2-4+E}px`),U=="start"&&(v.top=`${B+E}px`),U=="end"&&(v.top=`${B+C+E}px`)}}return v}),u=t.computed(()=>{const v={};return e.bgColor&&(v.background=e.bgColor),v}),h=()=>{let v=qe(a.value);e.targetId&&(v=qe(document.querySelector(`#${e.targetId}`))),r.value=v,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,v=>{l.value=v,v?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const b=v=>{n("update",v),n("update:visible",v)},g=()=>{b(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},k=(v,p)=>{!v.disabled&&n("choose",v,p),e.closeOnClickAction&&y()},f=v=>{const p=a.value,N=o.value;let w=p&&!p.contains(v.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);w=C&&!C.contains(v.target)}w&&N&&!N.contains(v.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:g,popoverArrow:i,closePopover:y,chooseItem:k,popoverRef:a,popoverContentRef:o,getRootPosition:m,customStyle:u,popoverArrowStyle:c,renderIcon:As}}}),M1={ref:"popoverContentRef",class:"fox-popover-content-group"},P1=["onClick"],L1={class:"fox-popover-menu-item-name"};function z1(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",M1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",L1,t.toDisplayString(i.name),1)],10,P1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const en=oe(q1,[["render",z1]]),O1=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:R1}=Z("skeleton"),F1=R1(O1({[Jt.name]:Jt})),K1={key:0},U1={key:1,class:"fox-skeleton"},H1={key:0,class:"fox-skeleton-animation"},j1={class:"fox-skeleton-content"};function W1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",U1,[e.animated?(t.openBlock(),t.createElementBlock("view",H1)):t.createCommentVNode("",!0),t.createElementVNode("view",j1,[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",K1,[t.renderSlot(e.$slots,"default")]))}const Da=oe(F1,[["render",W1]]),{create:Y1,componentName:X1}=Z("collapse"),Q1=Y1({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(()=>({[X1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,d,m=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,d,m)},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 d=o.value.filter(m=>m!==c);r(d,c,!1)}else{const d=o.value.concat([c]);r(d,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 G1(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 Ia=oe(Q1,[["render",G1]]),{create:Z1,componentName:J1}=Z("collapse-item"),_1=Z1({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=J1;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)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():u()}),{classes:r,renderIcon:As,wrapperRef:n,contentRef:a,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),eC={class:"fox-collapse-item__title-main"},tC={class:"fox-collapse-item__title-main-value"},nC=["innerHTML"],oC={key:2,class:"fox-collapse-item__title-label"},lC={key:0,class:"fox-collapse-item__title-sub"},aC=["innerHTML"],rC={key:0,class:"fox-collapse__item-extraWrapper"},sC={class:"fox-collapse__item-extraWrapper__extraRender"},iC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function cC(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",eC,[t.createElementVNode("view",tC,[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,nC)),e.label?(t.openBlock(),t.createElementBlock("view",oC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",lC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,aC)),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",rC,[t.createElementVNode("div",sC,[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",iC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const qa=oe(_1,[["render",cC]]),uC=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:dC,create:fC,scope:mC}=Z("table"),pC=fC({components:{RenderColumn:uC,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}=ie.useFoxI18n(mC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[dC]:!0})),s=b=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${b.align?b.align:""}`]:!0}),i=b=>b.stylehead?b.stylehead:"",c=b=>b.stylecolumn?b.stylecolumn:"",d=b=>e.columns.filter(g=>g.key===b)[0],m=b=>{const g=e.columns.filter(y=>y.key===b);return g[0].stylecolumn?g[0].stylecolumn:""},u=b=>{b.sorter&&(n("sorter",b),l.curData=typeof b.sorter=="function"?l.curData.sort(b.sorter):b.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(b=>[b.key,b.render]);return t.watch(()=>e.data,b=>{l.curData=b.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),hC={class:"fox-table__main__head"},gC={class:"fox-table__main__head__tr"},yC=["onClick"],vC={class:"fox-table__main__body"},bC={key:1},kC={key:0,class:"fox-table__nodata"},SC={key:0,class:"fox-table__nodata__text"},CC={key:1,class:"fox-table__summary"},wC=["innerHTML"];function NC(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",hC,[t.createElementVNode("view",gC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,yC))),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(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",bC,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",kC,[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",SC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",CC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,wC)])):t.createCommentVNode("",!0)],2)}const Ma=oe(pC,[["render",NC]]),{componentName:BC,create:AC}=Z("ellipsis"),VC=AC({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(()=>({[BC]:!0}));t.watch(()=>e.content,(y,k)=>{y!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const y=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(v=>{o.style.setProperty(v,y.getPropertyValue(v))}),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(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+h(y.paddingTop)+h(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),d()},d=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const y=e.content.length,k=Math.floor((0+y)/2),f=e.direction==="middle"?u([0,k],[k,y]):m(0,y);r.value=f,document.body.removeChild(o)}},m=(y,k)=>{const f=s.expanded?e.collapseText:e.expandText,v=e.content.length;if(k-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(k,v)};const p=Math.round((y+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,p)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(p,v),o.offsetHeight<=l?e.direction==="end"?m(p,k):m(y,p):e.direction==="end"?m(y,p):m(p,k)},u=(y,k)=>{const f=s.expanded?e.collapseText:e.expandText,v=e.content.length;if(y[1]-y[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],v)};const p=Math.floor((y[0]+y[1])/2),N=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,p)+e.symbol+f+e.symbol+e.content.slice(N,v),o.offsetHeight<=l?u([p,y[1]],[k[0],N]):u([y[0],p],[N,k[1]])},h=y=>{if(!y)return 0;const k=y.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},b=y=>{y==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:b,handleClick:g}}}),TC={key:0},$C={key:1},EC={key:2};function xC(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",TC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",$C,[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",EC,[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 Pa=oe(VC,[["render",xC]]),{componentName:DC,create:IC}=Z("animate"),qC=IC({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,[`${DC}-${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}}}),MC={class:"fox-animate"};function PC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",MC,[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 La=oe(qC,[["render",PC]]),{componentName:LC,create:zC}=Z("watermark"),OC=zC({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:d,imageWidth:m,imageHeight:u,content:h,fontStyle:b,fontWeight:g,fontColor:y,fontSize:k,fontFamily:f}=e,v=()=>{const N=document.createElement("canvas"),w=window.devicePixelRatio,C=N.getContext("2d"),S=`${(l+s)*w}px`,B=`${(r+i)*w}px`,A=s*w,T=i*w;if(N.setAttribute("width",S),N.setAttribute("height",B),C){if(d){C.translate(A/2,T/2),C.rotate(Math.PI/180*Number(c));const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=d,$.onload=()=>{C.drawImage($,-m*w/2,-u*w/2,m*w,u*w),C.restore(),a.base64Url=N.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(A/2,T/2),C.rotate(Math.PI/180*Number(c));const $=Number(k)*w;C.font=`${b} normal ${g} ${$}px/${T}px ${f}`,C.fillStyle=y,C.fillText(h,0,0),C.restore(),a.base64Url=N.toDataURL()}}else throw new Error("当前环境不支持Canvas")};v(),t.watch(()=>[o,l,r,s,i,c,d,m,u,h,b,g,y,k,f],()=>{v()});const p=t.computed(()=>{const N=LC;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:p}}});function RC(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 za=oe(OC,[["render",RC]]);function FC(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:KC,create:UC}=Z("trend-arrow"),HC=UC({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(()=>({[KC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${FC(Number(d),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function jC(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 Oa=oe(HC,[["render",jC]]),{create:WC}=Z("tour"),YC=WC({components:{[en.name]:en,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:m,maskWidth:u,maskHeight:h}=e,{width:b,height:g,left:y,top:k}=o.value,f=[y+b/2,k+g/2],v=Number(u||b),p=Number(h||g);return{width:`${v+ +m[1]*2}px`,height:`${p+ +m[0]*2}px`,top:`${f[1]-p/2-+m[0]}px`,left:`${f[0]-v/2-+m[1]}px`}}),s=m=>{m=="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 m=document.querySelector(`#${e.steps[a.active].target}`),u=qe(m);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),a.active=0,a.showTour=m,a.showPopup=m}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),XC={key:0,class:"fox-tour-content"},QC={key:0,class:"fox-tour-content-top"},GC={class:"fox-tour-content-inner"},ZC={class:"fox-tour-content-bottom"},JC={class:"fox-tour-content-bottom-init"},_C={class:"fox-tour-content-bottom-operate"},ew={key:1,class:"fox-tour-content fox-tour-content-tile"},tw={class:"fox-tour-content-inner"};function nw(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,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",XC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",QC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",GC,t.toDisplayString(c.content),1),t.createElementVNode("div",ZC,[t.createElementVNode("div",JC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",_C,[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]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",ew,[t.createElementVNode("div",tw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Ra=oe(YC,[["render",nw]]),{componentName:f2,create:ow,scope:lw}=Z("address"),aw=ow({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[me.name]:me,[Yt.name]:Yt},inheritAttrs:!1,props:{...Fe,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}=ie.useFoxI18n(lw),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),d=t.ref(["province","city","country","town"]),m=t.ref(null),u=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),b=V=>{if(!Array.isArray(V))throw new TypeError("params muse be array.");if(!V.length)return[];V.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const P=[];return V=V.sort((x,j)=>x.title.localeCompare(j.title)),V.forEach(x=>{const j=P.findIndex(H=>H.title===x.title);j<=-1?P.push({title:x.title,list:[].concat(x)}):P[j].list.push(x)}),P};let g=t.ref([]),y=t.reactive({});const k=t.ref("self"),f=t.ref(20),v=()=>{const V=e.modelValue,P=V.length;if(P>0){if(i.value=P-1,h.value.length==0){i.value=0;return}for(let x=0;x<P;x++){let j=[];switch(x){case 0:j=e.province;break;case 1:j=e.city;break;case 2:j=e.country;break;default:j=e.town}g.value[x]=j.filter(H=>H.id==V[x])[0]}N()}},p=(V,P)=>V&&V.name||i.value<P&&V?V.name:e.columnsPlaceholder[P]||a("select"),N=()=>{S(),t.nextTick(()=>{const V=l.value&&l.value.getElementsByClassName("active")[0];if(V){const P=V.offsetLeft;f.value=P||20}})},w=V=>{const P=i.value;c.value=i.value;const x={custom:d.value[P]};g.value[P]=V;for(let j=P+2;j<4;j++)g.value.splice(j,1);P<3?(i.value=P+1,N(),x.next=d.value[i.value],x.value=V,n("change",x)):(T(),n("update:modelValue"))},C=(V,P)=>{c.value=i.value,p(V,P)&&(i.value=P,N())},S=()=>{const V=m.value,P=c.value,x=u.value[i.value];V?.scrollTop&&(u.value[P]=V?.scrollTop),t.nextTick(()=>{V?.scrollTo({top:x,behavior:"auto"})})},B=V=>{const P=e.existAddress;let x={};P.forEach(j=>{j&&j.selectedAddress&&(x=j),j.selectedAddress=!1}),V.selectedAddress=!0,y=V,n("selected",x,V,P),T()},A=()=>{g.value=[],i.value=0,N()},T=(V="self")=>{k.value=V=="cross"?"cross":"self",r.value=!1},$=()=>{k.value="mask"},U=()=>{const V={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},P={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(x=>{const j=g.value[x];V.addressIdStr+=`${x?"_":""}${j&&j.id||0}`,V.addressStr+=j&&j.name||""}),P.data=V):P.data=y,A(),k.value=="self"?n("close",P):n("close-mask",{closeWay:k}),n("update:visible",!1)},q=()=>{const V=s.value;s.value=V=="exist"?"custom":"exist",A(),n("switch-module",{type:s.value})},E=(V,P)=>{w(P)};return t.watch(()=>e.visible,V=>{r.value=V}),t.watch(()=>r.value,V=>{V&&v()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:q,closeWay:k,close:U,getTabName:p,nextAreaList:w,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:C,selectedExist:B,clickOverlay:$,handClose:T,handleElevatorItem:E,initCustomSelected:v,...t.toRefs(e),t:a,regionList:h,transformData:b,scrollDom:m}}}),rw={class:"fox-address"},sw={class:"fox-address__header"},iw={class:"fox-address__header__title"},cw={key:0,class:"fox-address__custom"},uw={class:"fox-address__region",ref:"tabRegion"},dw=["onClick"],fw={key:0,class:"active fox-address__region-item"},mw={key:0,class:"fox-address__detail"},pw={class:"fox-address__detail-list",ref:"scrollDom"},hw=["onClick"],gw={key:1,class:"fox-address__elevator-group"},yw={key:1,class:"fox-address__exist"},vw={class:"fox-address__exist-group"},bw={class:"fox-address__exist-group-list"},kw=["onClick"],Sw={class:"fox-address__exist-item-info"},Cw={key:0,class:"fox-address__exist-item-info-name"},ww={key:1,class:"fox-address__exist-item-info-phone"},Nw={class:"fox-address__exist-item-info-bottom"},Bw={class:"fox-address__exist-choose-btn"};function Aw(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",rw,[t.createElementVNode("view",sw,[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",iw,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",cw,[t.createElementVNode("view",uw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,b)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",b==e.tabIndex?"active":""]),key:b,onClick:g=>e.changeRegionTab(h,b)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,b)),1)],10,dw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",fw,[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",mw,[t.createElementVNode("ul",pw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,b)=>(t.openBlock(),t.createElementBlock("li",{key:b,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,hw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",gw,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",yw,[t.createElementVNode("div",vw,[t.createElementVNode("ul",bw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,b)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:b,onClick:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",Sw,[h.name?(t.openBlock(),t.createElementBlock("div",Cw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",ww,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Nw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,kw))),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",Bw,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 Fa=oe(aw,[["render",Aw]]),{componentName:Vw,create:Tw}=Z("barrage"),$w=Tw({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(()=>({[Vw]:!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),d=t.ref(e.top),m=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{b(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),m.value=0,g("hidden")):document.visibilityState==="visible"&&b()})}),t.onUnmounted(()=>{i.value=[],y()});const b=()=>{h.value=l.value.offsetWidth,a&&g("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},g=p=>{let w=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];Array.from(w).forEach(S=>{p=="init"?(S.style.opacity="0",C.push(S)):(S.classList="",S.style={})}),p=="init"&&(i.value=C)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,p=>{e.danmu.length>0&&(i.value=[...p])});const k=p=>{const N=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,p):i.value.splice(N,0,p)},f=()=>{y(),s=setTimeout(()=>{v()},e.frequency)},v=()=>{const p=e.loop?m.value%i.value.length:m.value;let N=document.createElement("view");a&&typeof i.value[p]=="object"?(N=i.value[p],N?.classList?.add("fox-barrage__item")):(N.innerHTML=i.value[p],N.classList.add("fox-barrage__item"),r.value.appendChild(N)),t.nextTick(()=>{const w=N.offsetHeight;if(N?.classList?.add("move"),N.style.animationDuration=`${u}ms`,N.style.top=p%c.value*(w+d.value)+20+"px",N.style.opacity="1",!a){const C=N.offsetWidth;N.style.width=C+20+"px"}N.addEventListener("animationend",()=>{a?N.classList.remove("move"):r.value.removeChild(N)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),N.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:k}}});function Ew(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 Ka=oe($w,[["render",Ew]]),{componentName:xw,create:Dw,scope:Iw}=Z("signature"),qw=Dw({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:{[ze.name]:ze},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Iw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[xw]:!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 v=document.createElement("canvas");return!!(v.getContext&&v.getContext("2d"))},d=()=>{l.value.addEventListener(i.events[0],m,!1)},m=v=>{v.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],b,!1)},u=v=>{v.preventDefault();let p=i.isSupportTouch?v.touches[0]:v;n("signing",p);let N=l.value.getBoundingClientRect(),w=p.clientX-N.left,C=p.clientY-N.top;i.ctx.lineTo(w,C),i.ctx.stroke()},h=v=>{v.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},b=v=>{v.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},g=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},y=()=>{f(l.value)},k=v=>{if(!v)return!0;var p=document.createElement("canvas");return p.width=v.width,p.height=v.height,v?.toDataURL()==p.toDataURL()},f=v=>{let p;switch(e.type){case"png":p=v.toDataURL("image/png");break;case"jpg":p=v.toDataURL("image/jpeg",.8);break}const N=k(v)?"请绘制签名":v,w=k(v)?"":p;n("confirm",N,w)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:g,classes:s}}}),Mw={class:"fox-signature-inner",ref:"wrap"},Pw=["height","width"],Lw={key:0,class:"fox-signature-unsopport"};function zw(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",Mw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Pw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Lw,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 Ua=oe(qw,[["render",zw]]),{componentName:Ow,create:Rw,scope:Fw}=Z("time-select"),Kw=Rw({components:{[me.name]:me},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}=ie.useFoxI18n(Fw),o=t.computed(()=>({[Ow]:!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}}}),Uw={class:"fox-time-select__title"},Hw={class:"fox-time-select__title__fixed"},jw={key:0},Ww={class:"fox-time-select__content"},Yw={class:"fox-time-select__content__pannel"},Xw={class:"fox-time-select__content__detail"};function Qw(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",Uw,[t.createElementVNode("view",Hw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",jw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",Ww,[t.createElementVNode("view",Yw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Xw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ha=oe(Kw,[["render",Qw]]),{componentName:Gw,create:Zw}=Z("time-pannel"),Jw=Zw({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(()=>({[Gw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function _w(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 ja=oe(Jw,[["render",_w]]),{componentName:eN,create:tN}=Z("time-detail"),nN=tN({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(()=>({[eN]:!0})),s=d=>{let m=l.currentTime.find(u=>u.key==l.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(u=>u===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==l.currentKey).list),c=d=>{n.emit("select",d)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),oN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},lN={class:"fox-time-detail__detail__list"},aN=["onClick"];function rN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",oN,[t.createElementVNode("view",lN,[(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,aN))),128))])])],2)}const Wa=oe(nN,[["render",rN]]),{componentName:m2,create:sN,scope:iN}=Z("sku-header"),cN=sN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Je.name]:Je},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(iN);return{getSlots:r=>a[r],t:o}}}),uN={class:"fox-sku-header"},dN=["src"],fN={class:"fox-sku-header-right"},mN={key:3,class:"fox-sku-header-right-extra"};function pN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",uN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,dN),t.createElementVNode("view",fN,[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",mN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const hN=oe(cN,[["render",pN]]),{componentName:p2,create:gN}=Z("sku-select"),yN=gN({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"},bN={class:"fox-sku-select-item-title"},kN={class:"fox-sku-select-item-skus"},SN=["onClick"];function CN(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",bN,t.toDisplayString(s.name),1),t.createElementVNode("view",kN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,SN))),128))])]))),128))])}const wN=oe(yN,[["render",CN]]),{componentName:h2,create:NN}=Z("sku-stepper"),BN=NN({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,d)=>{n("overLimit",{action:d,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&ut(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),AN={class:"fox-sku-stepper"},VN={class:"fox-sku-stepper-title"},TN=["innerHTML"],$N={class:"fox-sku-stepper-count"};function EN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",AN,[t.createElementVNode("view",VN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,TN),t.createElementVNode("view",$N,[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 xN=oe(BN,[["render",EN]]),{componentName:g2,create:DN}=Z("sku-operate"),IN=DN({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]}}}),qN={key:0,class:"fox-sku-operate"},MN={key:0,class:"fox-sku-operate-desc"},PN={key:1,class:"fox-sku-operate-btn"},LN=["onClick"];function zN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",qN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",MN,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",PN,[(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,LN))),128))]))])):t.createCommentVNode("",!0)}const ON=oe(IN,[["render",zN]]),{componentName:y2,create:RN,scope:FN}=Z("sku"),KN=RN({props:{...Fe,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:hN,SkuSelect:wN,SkuStepper:xN,SkuOperate:ON,[me.name]:me},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(FN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&y()}),t.onMounted(()=>{});const i=k=>a[k],c=k=>{n("select-sku",k)},d=k=>{s.value=k,n("change-stepper",k)},m=k=>{n("add",k)},u=k=>{n("reduce",k)},h=k=>{n("over-limit",k)},b=k=>{n("click-btn-operate",{type:k,value:s.value})},g=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:b,add:m,reduce:u,getSlots:i,...l}}}),UN={class:"fox-sku"},HN={class:"fox-sku-content"};function jN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",UN,[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",HN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Ya=oe(KN,[["render",jN]]),{create:WN}=Z("card"),YN=WN({components:{[Je.name]:Je,[_t.name]:_t},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]}}}),XN={class:"fox-card"},QN={class:"fox-card__left"},GN=["src"],ZN={class:"fox-card__right"},JN={class:"fox-card__right__title"},_N={key:0,class:"fox-card__right__price"},eB={class:"fox-card__right__other"},tB={class:"fox-card__right__shop"},nB={class:"fox-card__right__shop__name"};function oB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",XN,[t.createElementVNode("div",QN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,GN)]),t.createElementVNode("div",ZN,[t.createElementVNode("div",JN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",_N,[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",eB,[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",tB,[t.createElementVNode("div",nB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Xa=oe(YN,[["render",oB]]),{create:lB,scope:aB}=Z("ecard"),rB=lB({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}=ie.useFoxI18n(aB),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,b)=>{o.value=b,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},d=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,l.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},m=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:d,inputClick:m,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),sB={class:"fox-ecard"},iB={class:"fox-ecard__title"},cB={class:"fox-ecard__list"},uB=["onClick"],dB={class:"fox-ecard__list__input--con"},fB=["placeholder"],mB={class:"fox-ecard__list__step"};function pB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",sB,[t.createElementVNode("view",iB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",cB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,uB))),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",dB,[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,fB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",mB,[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 Qa=oe(rB,[["render",pB]]),{create:hB,scope:gB}=Z("address-list-item"),yB=hB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(gB);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"},bB={class:"fox-address-list-item__info-contact"},kB={class:"fox-address-list-item__info-contact-name"},SB={class:"fox-address-list-item__info-contact-tel"},CB={key:0,class:"fox-address-list-item__info-contact-default"},wB={class:"fox-address-list-item__info-handle"},NB={class:"fox-address-list-item__addr"};function BB(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",bB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",kB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",SB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",CB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",wB,[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",NB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const _r=oe(yB,[["render",BB]]),{create:AB}=Z("address-list-general"),VB=AB({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:_r,[ze.name]:ze,[Gt.name]:Gt},setup(e,{emit:n}){const a=()=>t.h(_r,{item:e.item,onDelIcon(w){s(w)},onEditIcon(w){i(w)},onClickItem(w){c(w)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=w=>{n("delIcon",w,e.item),w.stopPropagation()},i=w=>{n("editIcon",w,e.item),w.stopPropagation()},c=w=>{l.value||(n("clickItem",w,e.item),w.stopPropagation())},d=w=>{n("longDel",w,e.item),w.stopPropagation()},m=w=>{o=0,r.value=!0,n("longDown",w,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:w=>{o=setTimeout(()=>{m(w)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:w=>{n("longCopy",w,e.item),w.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:w=>{n("longSet",w,e.item),w.stopPropagation()},maskClick:w=>{o!=0&&(r.value=!1),w.stopPropagation(),w.preventDefault()},swipeDelClick:w=>{n("swipeDel",w,e.item),w.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),TB={key:0,class:"fox-address-list-general"},$B={class:"fox-address-list-swipe"};function EB(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(()=>n[5]||(n[5]=[t.createTextVNode("删除")])),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",$B,[(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",TB,[(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 xB=oe(VB,[["render",EB]]),{componentName:DB,create:IB,scope:qB}=Z("address-list"),MB=IB({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:xB,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(qB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[DB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>ps(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,k)=>{n("delIcon",y,k),y.stopPropagation()},c=(y,k)=>{n("editIcon",y,k),y.stopPropagation()},d=(y,k)=>{n("clickItem",y,k),y.stopPropagation()},m=(y,k)=>{n("longCopy",y,k),y.stopPropagation()},u=(y,k)=>{n("longSet",y,k),y.stopPropagation()},h=(y,k)=>{n("longDel",y,k),y.stopPropagation()},b=(y,k)=>{n("swipeDel",y,k),y.stopPropagation()},g=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:u,clickLongDel:h,clickSwipeDel:b,addAddress:g,dataArray:o,t:a}}});function PB(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,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick: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 Ga=oe(MB,[["render",PB]]),{componentName:v2,create:LB}=Z("category"),zB=LB({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}}}),OB={class:"fox-category"},RB={class:"fox-category__cateList"},FB={key:0},KB=["onClick"];function UB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",OB,[t.createElementVNode("div",RB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",FB,[(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,KB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Za=oe(zB,[["render",UB]]),{componentName:b2,create:HB}=Z("category-pane"),jB=HB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),WB={class:"fox-category-pane"},YB={key:0,class:"fox-category-pane__cateListRight"},XB={class:"fox-category-pane__childTitle"},QB={key:0,class:"fox-category-pane__childItemList"},GB=["onClick"],ZB=["src"],JB={class:"fox-category-pane__skuImg"},_B={key:1,class:"fox-category-pane__cateListRight"},eA={class:"fox-category-pane__childTitle"},tA={key:0,class:"fox-category-pane__childItemList"},nA=["onClick"],oA={class:"fox-category-pane__skuName"},lA={key:2,class:"fox-category-pane__selfItemList"},aA=["onClick"];function rA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",WB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",YB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",XB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",QB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,ZB),t.createElementVNode("div",JB,t.toDisplayString(c?.catName),1)],8,GB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",_B,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",eA,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",tA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",oA,t.toDisplayString(c?.catName),1)],8,nA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",lA,[(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,aA))),128))])):t.createCommentVNode("",!0)])}const Ja=oe(jB,[["render",rA]]),{componentName:k2,create:sA}=Z("comment-header"),iA=sA({components:{[Bt.name]:Bt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),cA={class:"fox-comment-header__user"},uA={class:"fox-comment-header__user-avter"},dA=["src"],fA={class:"fox-comment-header__user-score"},mA={key:0,class:"fox-comment-header__time"};function pA(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",cA,[t.createElementVNode("view",uA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,dA)):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",fA,[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",mA,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 hA=oe(iA,[["render",pA]]),{componentName:S2,create:gA}=Z("comment-images"),yA=gA({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:d}=e,m=s=="img"?i-c.length:i;n("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:l}}}),vA=["onClick"],bA=["src"],kA=["onClick"],SA=["src"],CA={key:0,class:"fox-comment-images__mask"};function wA(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:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,bA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,vA))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,SA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",CA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,kA)):t.createCommentVNode("",!0)],64))),128))],2)}const NA=oe(yA,[["render",wA]]),{componentName:C2,create:BA,scope:AA}=Z("comment-bottom"),VA=BA({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}=ie.useFoxI18n(AA),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}}}),TA={class:"fox-comment-bottom"},$A={key:0},EA={class:"fox-comment-bottom__cpx"},xA=["onClick"];function DA(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",TA,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",$A,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",EA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:u=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,xA))),128))])])}const IA=oe(VA,[["render",DA]]),{componentName:qA,create:MA,scope:PA}=Z("comment"),LA=MA({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:hA,CommentImages:NA,CommentBottom:IA,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(PA),o=t.computed(()=>({[qA]:!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}}}),zA=["innerHTML"],OA={class:"fox-comment__follow-title"},RA={class:"fox-comment__follow-com"},FA={key:0,class:"fox-comment__follow-img"};function KA(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,zA),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]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",OA,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",RA,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",FA,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const _a=oe(LA,[["render",KA]]),UA=[il,ul,dl,fl,ml,Ne,hl,gl,yl,vl,bl,Jn,kl,Sl,wl,Nl,so,io,Bl,co,uo,Al,Vl,Et,Tl,$l,ho,El,xl,to,no,oo,Dl,Il,ql,it,Ml,Pl,Ll,zl,Ol,Rl,Fl,ze,Kl,Ul,ft,me,Hl,jl,Wl,Yl,Wt,Xl,Ql,Gl,Zl,Jl,_l,ea,ta,na,Yt,oa,la,aa,ra,sa,ia,ca,Xt,po,lo,ro,ao,_e,Bt,tn,ua,da,fa,Gt,ma,pa,ha,Zt,mo,ga,va,fo,xt,ka,Sa,Jt,Ca,wa,Qt,Na,Ba,Aa,At,Va,Ta,Vt,Tt,Je,go,$a,Ea,xa,_t,en,Da,Ia,qa,Ma,Pa,La,za,Oa,Ra,Fa,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga,Za,Ja,_a],HA=new Mi(UA,"4.0.0");exports.ActionSheet=ma;exports.ActionsheetItem=El;exports.ActionsheetPane=ho;exports.Address=Fa;exports.AddressList=Ga;exports.Animate=La;exports.Audio=ka;exports.AudioOperate=Sa;exports.Avatar=Jt;exports.AvatarGroup=Ca;exports.BackTop=pa;exports.Badge=xa;exports.Barrage=Ka;exports.Broadcast=al;exports.BroadcastKey=Ce;exports.Button=ze;exports.Calendar=ro;exports.CalendarItem=Nl;exports.Card=Xa;exports.Cascader=lo;exports.CascaderItem=Sl;exports.Category=Za;exports.CategoryPane=Ja;exports.Cell=Kl;exports.CellGroup=Ul;exports.Checkbox=co;exports.CheckboxGroup=uo;exports.CheckboxItem=Al;exports.CircleProgress=Na;exports.Col=Wl;exports.Collapse=Ia;exports.CollapseItem=qa;exports.Comment=_a;exports.Content=fl;exports.CountDown=Ea;exports.CountUp=$a;exports.DataItemsKey=gt;exports.DateItem=wl;exports.DatePicker=ao;exports.DateUtils=re;exports.Dialog=Zt;exports.Divider=Xl;exports.Domain=On;exports.DomainKey=xe;exports.DomainProvider=Rl;exports.Drag=ha;exports.Dropdown=Pl;exports.Ecard=Qa;exports.Elevator=Yt;exports.Ellipsis=Pa;exports.Empty=Aa;exports.FixedNav=Jl;exports.FloatingButton=Il;exports.FooterBar=dl;exports.FoxActionSheet=ma;exports.FoxActionsheetItem=El;exports.FoxActionsheetPane=ho;exports.FoxAddress=Fa;exports.FoxAddressList=Ga;exports.FoxAnimate=La;exports.FoxAudio=ka;exports.FoxAudioOperate=Sa;exports.FoxAvatar=Jt;exports.FoxAvatarGroup=Ca;exports.FoxBackTop=pa;exports.FoxBadge=xa;exports.FoxBarrage=Ka;exports.FoxButton=ze;exports.FoxCalendar=ro;exports.FoxCalendarItem=Nl;exports.FoxCard=Xa;exports.FoxCascader=lo;exports.FoxCascaderItem=Sl;exports.FoxCategory=Za;exports.FoxCategoryPane=Ja;exports.FoxCell=Kl;exports.FoxCellGroup=Ul;exports.FoxCheckbox=co;exports.FoxCheckboxGroup=uo;exports.FoxCheckboxItem=Al;exports.FoxCircleProgress=Na;exports.FoxCol=Wl;exports.FoxCollapse=Ia;exports.FoxCollapseItem=qa;exports.FoxComment=_a;exports.FoxContent=fl;exports.FoxCountDown=Ea;exports.FoxCountUp=$a;exports.FoxDateItem=wl;exports.FoxDatePicker=ao;exports.FoxDialog=Zt;exports.FoxDivider=Xl;exports.FoxDomainProvider=Rl;exports.FoxDrag=ha;exports.FoxDropdown=Pl;exports.FoxEcard=Qa;exports.FoxElevator=Yt;exports.FoxEllipsis=Pa;exports.FoxEmpty=Aa;exports.FoxFixedNav=Jl;exports.FoxFloatingButton=Il;exports.FoxFooterBar=dl;exports.FoxGrid=Ql;exports.FoxGridItem=Gl;exports.FoxGroup=ml;exports.FoxHeaderBar=ul;exports.FoxHintText=Et;exports.FoxImage=Hl;exports.FoxImagePreview=go;exports.FoxIndicator=ra;exports.FoxInfiniteLoading=mo;exports.FoxInputItem=yl;exports.FoxInputNumber=_e;exports.FoxInputnumberItem=xl;exports.FoxItem=Ne;exports.FoxLayout=jl;exports.FoxLinkItem=Tl;exports.FoxList=wa;exports.FoxMapping=Ol;exports.FoxMenu=_l;exports.FoxMenuItem=ea;exports.FoxMessageBox=it;exports.FoxMoneyItem=vl;exports.FoxMoreButton=ql;exports.FoxNavbar=Zl;exports.FoxNoticeBar=Ba;exports.FoxNotify=va;exports.FoxNumberKeyboard=fa;exports.FoxOverLay=ft;exports.FoxPage=il;exports.FoxPagination=oa;exports.FoxPicker=tn;exports.FoxPickerItem=kl;exports.FoxPopover=en;exports.FoxPopoverDialog=Ll;exports.FoxPopup=me;exports.FoxPopupWrapper=Ml;exports.FoxPrice=Je;exports.FoxProgress=Qt;exports.FoxPullRefresh=ga;exports.FoxRadio=so;exports.FoxRadioGroup=io;exports.FoxRadioItem=Bl;exports.FoxRange=Xt;exports.FoxRate=Bt;exports.FoxRateItem=$l;exports.FoxRollingProvider=Fl;exports.FoxRow=Yl;exports.FoxRowItem=hl;exports.FoxSearchBar=po;exports.FoxShortPassword=ua;exports.FoxSideNavBar=sa;exports.FoxSideNavBarItem=ia;exports.FoxSignature=Ua;exports.FoxSkeleton=Da;exports.FoxSku=Ya;exports.FoxSlotItem=gl;exports.FoxStep=Ta;exports.FoxSteps=Va;exports.FoxStepsBar=Dl;exports.FoxSticky=Wt;exports.FoxSubSideNavBar=ca;exports.FoxSwipe=Gt;exports.FoxSwiper=Vt;exports.FoxSwiperItem=Tt;exports.FoxSwitch=fo;exports.FoxSwitchItem=Vl;exports.FoxTabPane=aa;exports.FoxTabbar=ta;exports.FoxTabbarItem=na;exports.FoxTable=Ma;exports.FoxTabs=la;exports.FoxTabsBar=to;exports.FoxTabsContainer=no;exports.FoxTabsPane=oo;exports.FoxTag=_t;exports.FoxText=zl;exports.FoxTextarea=Jn;exports.FoxTextareaItem=bl;exports.FoxTimeDetail=Wa;exports.FoxTimePannel=ja;exports.FoxTimeSelect=Ha;exports.FoxToast=xt;exports.FoxTour=Ra;exports.FoxTrendArrow=Oa;exports.FoxUploader=da;exports.FoxVideo=At;exports.FoxWaterMark=za;exports.Grid=Ql;exports.GridItem=Gl;exports.Group=ml;exports.HeaderBar=ul;exports.HintText=Et;exports.Image=Hl;exports.ImagePreview=go;exports.Indicator=ra;exports.InfiniteLoading=mo;exports.InputItem=yl;exports.InputNumber=_e;exports.InputnumberItem=xl;exports.Item=Ne;exports.Layout=jl;exports.LinkItem=Tl;exports.List=wa;exports.Mapping=Ol;exports.Menu=_l;exports.MenuItem=ea;exports.MessageBox=it;exports.MoneyItem=vl;exports.MoreButton=ql;exports.Navbar=Zl;exports.NoticeBar=Ba;exports.Notify=va;exports.NumberKeyboard=fa;exports.OverLay=ft;exports.Page=il;exports.Pagination=oa;exports.Picker=tn;exports.PickerItem=kl;exports.Popover=en;exports.PopoverDialog=Ll;exports.Popup=me;exports.PopupWrapper=Ml;exports.Price=Je;exports.PriorityPolicy=$n;exports.Progress=Qt;exports.PullRefresh=ga;exports.Radio=so;exports.RadioGroup=io;exports.RadioItem=Bl;exports.Range=Xt;exports.Rate=Bt;exports.RateItem=$l;exports.RollingProvider=Fl;exports.Row=Yl;exports.RowItem=hl;exports.SearchBar=po;exports.ShortPassword=ua;exports.SideNavBar=sa;exports.SideNavBarItem=ia;exports.Signature=Ua;exports.Skeleton=Da;exports.Sku=Ya;exports.SlotItem=gl;exports.Step=Ta;exports.Steps=Va;exports.StepsBar=Dl;exports.Sticky=Wt;exports.SubSideNavBar=ca;exports.Swipe=Gt;exports.Swiper=Vt;exports.SwiperItem=Tt;exports.Switch=fo;exports.SwitchItem=Vl;exports.TabPane=aa;exports.Tabbar=ta;exports.TabbarItem=na;exports.Table=Ma;exports.Tabs=la;exports.TabsBar=to;exports.TabsContainer=no;exports.TabsPane=oo;exports.Tag=_t;exports.Text=zl;exports.Textarea=Jn;exports.TextareaItem=bl;exports.TimeDetail=Wa;exports.TimePannel=ja;exports.TimeSelect=Ha;exports.Toast=xt;exports.Tour=Ra;exports.TrendArrow=Oa;exports.UniqueID=Zn;exports.Uploader=da;exports.ValidateSchema=bs;exports.ValidateSchemaKey=Le;exports.Video=At;exports.WaterMark=za;exports.cancelRaf=es;exports.clamp=je;exports.clearNonNumber=Lo;exports.clone=Mo;exports.compareTo=Io;exports.createBroadcast=Ln;exports.createValidateSchema=zn;exports.debounce=Me;exports.debounceRef=wi;exports.decimalLength=ms;exports.default=HA;exports.defineBroadcast=pi;exports.defineConfigDomain=Ss;exports.defineDataItem=Cs;exports.defineDomain=sl;exports.defineItem=Ae;exports.definePageState=ws;exports.defineSimpleItem=$t;exports.deleteGlobalValidator=bi;exports.disabledProperty=$e;exports.divide=ol;exports.excludeProps=tt;exports.extend=ct;exports.floatData=ps;exports.getGlobalIcons=Hn;exports.getGlobalValidateCheckEvents=gs;exports.getGlobalValidateResetEvents=vs;exports.getPageContentAreaHeight=Vn;exports.getPageContentAreaWidth=Tn;exports.getPageFooterAreaHeight=Kn;exports.getPageHeaderAreaHeight=Fn;exports.getRootDomain=bt;exports.hasSymbol=is;exports.includeProps=ke;exports.indexOf=fi;exports.integerLength=fs;exports.isArray=qn;exports.isArrayLike=us;exports.isBrowser=et;exports.isDate=We;exports.isESModule=si;exports.isEmptyString=ue;exports.isEqual=Ie;exports.isFunction=Bn;exports.isHidden=Pn;exports.isInnerPage=Vi;exports.isMap=li;exports.isNil=as;exports.isNumberString=ll;exports.isObject=De;exports.isPlainObject=qo;exports.isPromise=St;exports.isRegExp=Po;exports.isSet=ai;exports.isString=rs;exports.isSubPage=Ti;exports.isSymbol=ri;exports.isTouch=_n;exports.isWindow=cs;exports.lastIndexOf=mi;exports.makeArray=di;exports.merge=ds;exports.multiply=ns;exports.negate=os;exports.nextTick=ci;exports.numberFormat=In;exports.objectToString=ss;exports.once=Ni;exports.overrideGlobalIcons=Ui;exports.overrideGlobalValidateHandler=yi;exports.padZero=at;exports.preventDefault=zo;exports.property=Ve;exports.px2Number=Ai;exports.raf=He;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=ki;exports.setGlobalValidateHandler=gi;exports.setGlobalValidateMessages=Ci;exports.setGlobalValidateResetEvents=Si;exports.setGlobalValidator=vi;exports.throttle=Oo;exports.toBoolean=ve;exports.toNumber=pe;exports.toPadding=Re;exports.toPx=de;exports.toPxDesc=ge;exports.toTypeString=Mn;exports.toValue=Pe;exports.tryTimes=rl;exports.typeOf=ut;exports.unNumberFormat=ls;exports.updatePageState=Ro;exports.useBroadcast=Ot;exports.useDomain=nt;exports.useExpose=Ee;exports.useInnerSize=Un;exports.usePageState=Rn;exports.usePosition=pl;exports.useRawTouch=eo;exports.useRect=qe;exports.useSize=cl;exports.useTouch=lt;exports.valueLength=be;
|
|
9
|
+
`)}}});function my(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Zl=oe(fy,[["render",my]]),{create:py}=J("sticky"),hy=py({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 d=e.container;if(!a.value&&!d)return;const m=qe(a),u=o.value,h=qe(u),S=qe(d);l.height=m.height;const g=()=>{let b=!1;if(e.position==="top")b=d?r.value>m.top&&S.bottom>0:r.value>m.top;else{const f=document.documentElement.clientHeight;b=d?S.bottom>0&&f-r.value-h.height>S.top:f-r.value<m.bottom}return b},y=()=>{if(d)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=y(),l.fixed=g()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),nl(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{nl(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function gy(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 jt=oe(hy,[["render",gy]]),{componentName:yy,create:vy}=J("divider"),by=vy({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=yy;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 ky(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 Jl=oe(by,[["render",ky]]);function Sy(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 Cy(e,n,a){const o=Sy(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function wy(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),Cy(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}=J("grid"),_s=Symbol("grid"),Ny={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}},By={props:Ny,setup(e,{slots:n}){wy(_s,`${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=me(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:Ay}=J("grid"),_l=Ay(By);function Vy(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:Ty,componentName:ts}=J("grid-item"),$y=Ty({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Vy(_s);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[ts]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+l.columnNum}%`};return l.square?d.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(d.paddingRight=me(l.gutter),o.value>=l.columnNum&&(d.marginTop=me(l.gutter))),d}),i=t.computed(()=>{const d=`${ts}__content`;return{[`${d}`]:!0,[`${d}--border`]:l.border,[`${d}--surround`]:l.border&&l.gutter,[`${d}--center`]:l.center,[`${d}--square`]:l.square,[`${d}--reverse`]:l.reverse,[`${d}--${l.direction}`]:!!l.direction,[`${d}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{n("click",d)}}}}),Ey={class:"fox-grid-item__text"};function xy(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",Ey,[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 ea=oe($y,[["render",xy]]),{componentName:Dy,create:Iy}=J("navbar"),qy=Iy({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 d=t.ref();const m=t.computed(()=>{const b=Dy;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){n("on-click-back")}function S(){n("on-click-title")}function g(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:u,handleLeft:h,handleCenter:S,handleCenterIcon:g,handleRight:y}}}),Py={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},My={key:1,class:"fox-navbar__text"},Ly={class:"fox-navbar__title"},zy={key:0,class:"fox-navbar__text"},Oy={key:1,class:"fox-navbar__text"},Ry={class:"fox-navbar__title"},Fy={key:0,class:"fox-navbar__text"};function Ky(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Py,[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",My,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ly,[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",zy,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",Oy,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ry,[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",Fy,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const ta=oe(qy,[["render",Ky]]),Uy=(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}=ie.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Hy,create:jy,scope:Wy}=J("fixednav"),Yy=jy(Uy(Hy,Wy,{[dt.name]:dt,Left:le.Left})),Xy={class:"fox-fixednav__list"},Qy=["onClick"],Gy=["src"],Zy={class:"span"},Jy={key:0,class:"b"},_y={class:"text"};function ev(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",Xy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,Gy),t.createElementVNode("view",Zy,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Jy,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Qy))),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",_y,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const na=oe(Yy,[["render",ev]]),{componentName:tv,create:nv}=J("menu"),ov=nv({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:p=>{const B=C=>{C.proxy&&(f.push(C),b.push(C.proxy))},w=C=>{if(C.proxy){let k=f.indexOf(C);k>-1&&f.splice(k,1);let N=b.indexOf(C.proxy);k>-1&&b.splice(N,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:B,children:b,internalChildren:f},p))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(b=>b.state.showWrapper)),m=t.computed(()=>({[tv]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const b=qe(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,v)=>{v===b?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),g=()=>{const{scrollFixed:b}=e,f=S(window);r.value=f>(typeof b=="boolean"?30:Number(b))},y=b=>{let f="";const{titleClass:v}=e;return b&&(f+="active"),v&&(f+=` ${v}`),f};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:o,getClasses:y}}}),lv=["onClick"],av={class:"fox-menu__title-text"},rv={class:"fox-menu__title-icon"};function sv(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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",av,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",rv,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,lv))),128))],2),t.renderSlot(e.$slots,"default")],2)}const oa=oe(ov,[["render",sv]]),{componentName:iv,create:cv}=J("menu-item"),uv=cv({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:{[pe.name]:pe,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 g=t.getCurrentInstance(),{link:y,removeLink:b}=S;return y(g),t.onUnmounted(()=>{b(g)}),{parent:S}}},{parent:r}=l(),s=t.computed(()=>({[iv]:!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(g=>g.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,g={})=>{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")}}}}),dv={class:"fox-menu-item__content fox-menu-item__overflow"},fv=["onClick"];function mv(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",dv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps({ref_for:!0},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,fv))),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 la=oe(uv,[["render",mv]]),{create:pv}=J("tabbar"),hv=pv({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 gv(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 aa=oe(hv,[["render",gv]]),{create:yv}=J("tabbar-item"),vv=yv({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&&(d=>{if(d.proxy){let m=a.children.length;o.index=m;let u=Object.assign(d.proxy,{index:m});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),bv={class:"fox-tabbar-item_icon-box"},kv={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Sv={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Cv={key:1,class:"fox-tabbar-item_icon-box_dot"},wv={key:2},Nv={key:0};function Bv(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",bv,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",kv,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Sv,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Cv)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",wv,[(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",Nv,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const ra=oe(vv,[["render",Bv]]),{componentName:Av,create:Vv}=J("elevator"),Tv=Vv({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(()=>({[Av]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,v)=>f.getAttribute("data-"+v),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},d=()=>{let f=0;o.listHeight.push(f);for(let v=0;v<o.listGroup.length;v++){let p=o.listGroup[v];f+=Math.floor(p.clientHeight),o.listHeight.push(f)}},m=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},u=f=>{o.scrollStart=!0;let v=i(f.target,"index"),p=f.touches[0];o.touchState.y1=p.pageY,o.anchorIndex=+v,o.codeIndex=+v,m(+v)},h=f=>{let v=f.touches[0];o.touchState.y2=v.pageY;let p=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+p,m(o.codeIndex)},S=()=>{o.scrollStart=!1},g=(f,v)=>{n.emit("click-item",f,v),o.currentData=v,o.currentKey=f},y=f=>{n.emit("click-index",f)},b=f=>{let p=f.target.scrollTop;const B=o.listHeight;o.scrollY=p;for(let w=0;w<B.length-1;w++){let C=B[w],k=B[w+1];if(o.scrollY>=C&&o.scrollY<k){o.currentIndex=w,o.diff=k-o.scrollY;return}}o.currentIndex=B.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",b)}),Ee({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(d)}),t.watch(()=>o.diff,f=>{const v=o.listHeight;let p=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===v[v.length-1]&&p!==0&&(p=0),o.fixedTop!==p&&(o.fixedTop=p)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:S,handleClickItem:g,handleClickIndex:y}}}),$v={class:"fox-elevator__list__item__code"},Ev=["onClick"],xv=["innerHTML"],Dv={class:"fox-elevator__fixed-title"},Iv={class:"fox-elevator__bars__inner"},qv=["data-index","onClick"];function Pv(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",$v,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,xv))],10,Ev))),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",Dv,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",Iv,[(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,qv))),128))])],32)],2)}const Wt=oe(Tv,[["render",Pv]]),{create:Mv,scope:Lv}=J("pagination"),zv=Mv({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}=ie.useFoxI18n(Lv),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:g}=t.toRefs(e),y=+h.value||Math.ceil(+S.value/+g.value);return Math.max(1,y)}),d=(h,S)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),S&&n("change",h))},m=(h,S,g=!1)=>({number:h,text:S,active:g}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const S=c.value,g=+s.value;let y=1,b=S;const f=S>g;f&&(y=Math.max(l.value-Math.floor(g/2),1),b=y+g-1,b>S&&(b=S,y=b-g+1));for(var v=y;v<=b;v++){const p=m(v,v,l.value==v);h.push(p)}if(f&&g>0&&i.value){if(y>1){const p=m(y-1,"...");h.unshift(p)}if(b<S){const p=m(b+1,"...");h.push(p)}}return h});return t.watchEffect(()=>{d(l.value,!1)}),{...o,modelValue:l,select:d,countRef:c,mode:r,pages:u,forceEllipses:i}}}),Ov={class:"fox-pagination"},Rv={key:0,class:"fox-pagination-contain"},Fv=["onClick"],Kv={key:1,class:"fox-pagination-contain"},Uv={class:"fox-pagination-simple"};function Hv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ov,[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",Rv,[(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,Fv))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Kv,[t.createElementVNode("view",Uv,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 sa=oe(zv,[["render",Hv]]),jv=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{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=lt();let d="";const m=(h,S)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=S>0?"bottom":"top",g=S,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Wv{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Yv}=J("tabs"),Xv=Yv({components:{[jt.name]:jt,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=$=>{$.forEach((V,H)=>{let R=V.type;if(R=R.name||R,R=="fox-tab-pane"){let q=new Wv;if(V.props?.title||V.props?.["pane-key"]||V.props?.paneKey){let T=ct(V.props?.["pane-key"]),I=T=="number"||T=="string"?String(V.props?.["pane-key"]):null,E=ct(V.props?.paneKey),z=E=="number"||E=="string"?String(V.props?.paneKey):null;q.title=V.props?.title,q.paneKey=I||z||String(H),q.disabled=V.props?.disabled}r.value.push(q)}else{if(V.children==" ")return;Array.isArray(V.children)&&s(V.children)}})},i=t.ref(e.modelValue||0),c=$=>{let V=r.value.findIndex(H=>H.paneKey==$);r.value.length==0||V==-1||(i.value=V)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),u=t.ref([]),h=$=>{const V=m.value,H=u.value;if(!V||!H||!H[i.value])return;const R=H[i.value];let q=0;e.direction==="vertical"?q=R.offsetTop-V.offsetTop+10-(V.offsetHeight-R.offsetHeight)/2:q=R.offsetLeft-(V.offsetWidth-R.offsetWidth)/2,S(V,q,.3,e.direction)},S=($,V,H,R)=>{let q=0;const T=R==="horizontal"?$.scrollLeft:$.scrollTop,I=Math.round(H*1e3/16);function E(){R==="horizontal"?$.scrollLeft+=(V-T)/I:$.scrollTop+=(V-T)/I,++q<I&&He(E)}E()},g=($=a.default?.())=>{r.value=[],$=$?.filter(V=>typeof V.children!="string"),$&&$.length&&s($),c(e.modelValue),t.nextTick(()=>{h()})},y=$=>{l=$.fixed};t.watch(()=>a.default?.(),$=>{g($)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,$=>{if(c($),h(),l){let V=qe(o.value).top+b(),H=Math.ceil(V-e.top);window.scrollTo({top:H,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);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:$=>{n("update:modelValue",$.paneKey),n("change",$)},tabChange:($,V)=>{n("click",$),!($.disabled||i.value==V)&&(i.value=V,f.updateValue($))},setTabItemRef:($,V)=>{u.value[V]=$}},{tabsContentRef:v,touchState:p,touchMethods:B}=jv(e,f),w=t.computed(()=>{let $=i.value*100;p.moving&&($+=p.offset);let V={transform:e.direction=="horizontal"?`translate3d(-${$}%, 0, 0)`:`translate3d( 0,-${$}%, 0)`,transitionDuration:p.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(V={}),V}),C=t.computed(()=>({background:e.background})),k=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),N=t.computed(()=>{if(!e.titleGutter)return{};const $=me(e.titleGutter);return e.direction==="vertical"?{marginTop:$,marginBottom:$}:{marginLeft:$,marginRight:$}}),A=t.computed(()=>a.fixedTitle);return{navRef:m,tabsContentRef:v,titles:r,contentStyle:w,tabsNavStyle:C,titleStyle:N,tabsActiveStyle:k,container:o,getScrollY:d,onStickyScroll:y,...f,...B,hasFixedTitle:A}}}),Qv=["onClick"],Gv={key:0,class:"fox-tabs__titles-fixed-item"},Zv=["onClick"],Jv={key:0,class:"fox-tabs__titles-fixed-item"};function _v(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,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Qv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Gv,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Zv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Jv,[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 ia=oe(Xv,[["render",_v]]),{create:e0}=J("tab-pane"),t0=e0({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 n0(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 ca=oe(t0,[["render",n0]]),{componentName:ns,create:o0}=J("indicator"),l0=o0({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=ns;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:ns,padZero:at}}});function a0(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 ua=oe(l0,[["render",a0]]),{componentName:r0,create:s0}=J("side-navbar"),i0=s0({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(()=>({[r0]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||l(Array.from(d.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}}}),c0={class:"fox-side-navbar__content"},u0={class:"fox-side-navbar__content__list",ref:"list"};function d0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",c0,[t.createElementVNode("view",u0,[t.renderSlot(e.$slots,"default")],512)])],2)}const da=oe(i0,[["render",d0]]),{componentName:f0,create:m0}=J("side-navbar-item"),p0=m0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[f0]:!0})),handleClick:()=>{n.emit("click")}})}),h0=["ikey"],g0={class:"fox-side-navbar-item__title"};function y0(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",g0,t.toDisplayString(e.title),1)],10,h0)}const fa=oe(p0,[["render",y0]]),{componentName:v0,create:b0}=J("sub-side-navbar"),k0=b0({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(()=>({[v0]:!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}}}),S0=["ikey"],C0={class:"fox-sub-side-navbar__title__text"},w0={class:"fox-sub-side-navbar__title__icon"};function N0(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",C0,t.toDisplayString(e.title),1),t.createElementVNode("span",w0,[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,S0)}const ma=oe(k0,[["render",N0]]),{componentName:B0,create:A0}=J("range"),V0=A0({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=lt(),c=t.computed(()=>{const{marks:q,max:T,min:I}=e;return Object.keys(q).map(parseFloat).sort((j,M)=>j-M).filter(j=>j>=I&&j<=T)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const q=B0;return{[q]:!0,[`${q}-disabled`]:e.disabled,[`${q}-vertical`]:e.vertical,[`${q}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const q="fox-range-container";return{[q]:!0,[`${q}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),g=q=>!!e.range&&Array.isArray(q),y=()=>{const{modelValue:q,min:T}=e;return g(q)?`${(q[1]-q[0])*100/d.value}%`:`${(q-Number(T))*100/d.value}%`},b=()=>{const{modelValue:q,min:T}=e;return g(q)?`${(q[0]-Number(T))*100/d.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),v=q=>{const T="fox-range-mark",{modelValue:I,max:E,min:z}=e;let j=Number(z),M=Number(E);if(e.range){const[ee,F]=I;j=ee,M=F}else M=I;let Z=q<=M&&q>=j;return{[`${T}-text`]:!0,[`${T}-text-active`]:Z}},p=q=>{const{min:T,vertical:I}=e;let E={left:`${(q-Number(T))/d.value*100}%`};return I&&(E={top:`${(q-Number(T))/d.value*100}%`}),E},B=q=>{const{modelValue:T,max:I,min:E}=e;let z=Number(E),j=Number(I);if(e.range){const[ee,F]=T;z=ee,j=F}return{background:q<=j&&q>=z?e.activeColor:e.inactiveColor}},w=q=>{const{min:T,max:I,step:E}=e;return q=Math.max(+T,Math.min(q,+I)),Math.round(q/+E)*+E},C=(q,T)=>JSON.stringify(q)===JSON.stringify(T),k=q=>q[0]>q[1]?q.slice(0).reverse():q,N=(q,T)=>{g(q)?q=k(q).map(w):q=w(q),C(q,e.modelValue)||n("update:modelValue",q),T&&!C(q,o)&&n("change",q)},A=q=>{if(e.disabled)return;const{min:T,modelValue:I}=e,E=qe(r);let z=q.clientX-E.left,j=E.width;e.vertical&&(z=q.clientY-E.top,j=E.height);const M=Number(T)+z/j*d.value;if(g(I)){const[Z,ee]=I,F=(Z+ee)/2;M<=F?N([M,ee],!0):N([Z,M],!0)}else N(M,!0)},$=q=>{e.disabled||(i.start(q),l=e.modelValue,g(l)?o=l.map(w):o=w(l),s.value="start")},V=q=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(q),s.value="draging";const T=qe(r);let I=i.deltaX.value,E=T.width,z=I/E*d.value;e.vertical&&(I=i.deltaY.value,E=T.height,z=I/E*d.value),g(o)?l[a.value]=o[a.value]+z:l=o+z,N(l),q.stopPropagation(),q.preventDefault()},H=()=>{e.disabled||(s.value==="draging"&&(N(l,!0),n("drag-end")),s.value="")},R=q=>Mn(e.modelValue)&&typeof q=="number"?e.modelValue[q]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:S,onClick:A,onTouchStart:$,onTouchMove:V,onTouchEnd:H,...t.toRefs(e),barStyle:f,curValue:R,buttonIndex:a,containerClasses:u,markClassName:v,marksStyle:p,marksList:c,tickStyle:B}}}),T0={key:0,class:"fox-range-min"},$0={key:0,class:"fox-range-mark"},E0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],x0={key:0,class:"number"},D0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],I0={key:0,class:"number"},q0={key:1,class:"fox-range-max"};function P0(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",T0,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",$0,[(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",x0,t.toDisplayString(e.curValue(s)),1))],4))],42,E0)),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",I0,t.toDisplayString(e.curValue()),1))],4))],40,D0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",q0,t.toDisplayString(+e.max),1))],2)}const Yt=oe(V0,[["render",P0]]),{create:M0,scope:L0}=J("short-password"),z0=M0({components:{[pe.name]:pe,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}=ie.useFoxI18n(L0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:d,close:c,onTips:()=>{n("tips")},show:s,...o}}}),O0={class:"fox-short-password-title"},R0={class:"fox-short-password-subtitle"},F0={class:"fox-short-password-wrapper"},K0={key:0,class:"fox-short-password__item-icon"},U0={class:"fox-short-password__message"},H0={class:"fox-short-password--error"},j0={key:0,class:"fox-short-password--forget"};function W0(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",O0,t.toDisplayString(e.title),1),t.createElementVNode("view",R0,t.toDisplayString(e.desc),1),t.createElementVNode("div",F0,[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,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",K0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",U0,[t.createElementVNode("view",H0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",j0,[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 pa=oe(z0,[["render",W0]]);class Y0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let X0=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 Q0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const ei=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);kt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:G0}=J("progress"),Z0=G0({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}}}),J0={class:"fox-progress"},_0={key:0,class:"fox-progress-text"};function eb(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",J0,[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",_0,[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 Xt=oe(Z0,[["render",eb]]),{componentName:tb,create:nb,scope:ob}=J("uploader"),lb=nb({components:{[Xt.name]:Xt,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}=ie.useFoxI18n(ob),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[tb]:!0})),s=()=>{let v={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(v.capture="camera"),t.h("input",v)},i=v=>{v.value=""},c=v=>{n("file-item-click",{fileItem:v})},d=(v,p)=>{const B=new Y0;B.url=e.url,B.formData=v.formData,B.timeout=e.timeout*1,B.method=e.method,B.xhrState=e.xhrState,B.headers=e.headers,B.withCredentials=e.withCredentials,B.beforeXhrUpload=e.beforeXhrUpload;try{B.sourceFile=v.formData.get(e.name)}catch{}B.onStart=C=>{v.status="ready",v.message=a("readyUpload"),m(p),n("start",C)},B.onProgress=(C,k)=>{v.status="uploading",v.message=a("uploading"),v.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:k,percentage:v.percentage})},B.onSuccess=(C,k)=>{v.status="success",v.message=a("success"),n("success",{responseText:C,option:k,fileItem:v}),n("update:fileList",o)},B.onFailure=(C,k)=>{v.status="error",v.message=a("error"),n("failure",{responseText:C,option:k,fileItem:v})};let w=new X0(B);e.autoUpload?w.upload():l.push(new Promise((C,k)=>{C(w)}))},m=(v=-1)=>{v>-1?l.splice(v,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(v=>{v.forEach(p=>p.upload())})},h=v=>{v.forEach((p,B)=>{const w=new FormData;for(const[k,N]of Object.entries(e.data))w.append(k,N);w.append(e.name,p);const C=t.reactive(new Q0);if(C.name=p.name,C.status="ready",C.type=p.type,C.formData=w,C.message=a("waitingUpload"),d(C,B),e.isPreview&&p.type.includes("image")){const k=new FileReader;k.onload=N=>{C.url=N.target.result,o.push(C)},k.readAsDataURL(p)}else o.push(C)})},S=v=>{const p=e.maximum*1,B=e.maximize*1,w=new Array;v=v.filter(k=>k.size>B?(w.push(k),!1):!0),w.length&&n("oversize",w);let C=v.length+o.length;return C>p&&v.splice(v.length-(C-p)),v},g=(v,p)=>{o.splice(p,1),n("delete",{file:v,fileList:o,index:p})},y=(v,p)=>{m(p),ei(e.beforeDelete,{args:[v,o],done:()=>g(v,p)})},b=v=>{if(e.disabled)return;const p=v.target;let{files:B}=p;e.beforeUpload?e.beforeUpload(B).then(w=>f(w)):f(B),n("change",{fileList:o,event:v}),e.clearInput&&i(p)},f=v=>{const p=S(new Array().slice.call(v));h(p)};return{onChange:b,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:u,renderInput:s}}}),ab={key:0,class:"fox-uploader__slot"},rb={key:0,class:"fox-uploader__preview-img"},sb={key:0,class:"fox-uploader__preview__progress"},ib={class:"fox-uploader__preview__progress__msg"},cb=["onClick"],ub=["onClick","src"],db={key:3,class:"fox-uploader__preview-img__file"},fb=["onClick"],mb={class:"file__name_tips"},pb={class:"tips"},hb={key:1,class:"fox-uploader__preview-list"},gb=["onClick"],yb={class:"file__name_tips"};function vb(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",ab,[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",rb,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",sb,[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",ib,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,cb)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,ub)):(t.openBlock(),t.createElementBlock("view",db,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",mb,t.toDisplayString(h.name),1)],8,fb)])),t.createElementVNode("view",pb,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",hb,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",yb,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,gb),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const ha=oe(lb,[["render",vb]]),bb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBi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jlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Sb,scope:Cb}=J("number-keyboard"),wb=Sb({components:{[pe.name]:pe},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}=ie.useFoxI18n(Cb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let v={id:"lock",type:"lock"},p=Array.isArray(f)?f:[f];return p.length===1&&(v={id:p[0],type:"custom"}),[...c(),v,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let v=1;v<=9;v++)f.push({id:v,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function d(){const f=c(),{customKey:v}=e;let p=Array.isArray(v)?v:[v];return p.length>2&&(p=[p[0],p[1]]),p.length==2&&e.title&&e.type!="rightColumn"&&(p=[p[0]]),p.length===1?e.title&&e.type!="rightColumn"?f.push({id:p[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:p[0],type:"custom"}):p.length===2&&f.push({id:p[0],type:"custom"},{id:0,type:"number"},{id:p[1],type:"custom"}),f}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),u=()=>{e.visible&&n("blur")},h=f=>{const v=s.value;v&&!v.contains(f.target)&&u()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function S(f,v){v.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 g(f){f.stopPropagation()}function y(f){f.preventDefault(),l.value=void 0}function b(){n("update:visible",!1),n("close")}return{...o,delImg:bb,lockImg:kb,clickKeyIndex:l,defaultKey:i,closeBoard:b,onTouchEnd:y,onTouchMove:g,onTouchstart:S,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),Nb={ref:"root"},Bb={class:"fox-number-keyboard"},Ab={key:0,class:"fox-number-keyboard__header"},Vb={class:"fox-number-keyboard__title"},Tb={class:"fox-number-keyboard__body"},$b={class:"fox-number-keyboard__keys"},Eb=["onTouchstart"],xb=["src"],Db=["src"],Ib={key:0,class:"fox-number-keyboard__sidebar"},qb={class:"fox-key__wrapper"},Pb=["src"];function Mb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Nb,[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",Bb,[e.title?(t.openBlock(),t.createElementBlock("div",Ab,[t.createElementVNode("h3",Vb,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",Tb,[t.createElementVNode("div",$b,[(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,xb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Db)):t.createCommentVNode("",!0)],42,Eb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Ib,[t.createElementVNode("div",qb,[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,Pb)],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 ga=oe(wb,[["render",Mb]]),{componentName:Lb,create:zb}=J("swipe"),Ob=zb({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(()=>({[Lb]:!0})),o=v=>v.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,d="",m="";const u=t.reactive({offset:0,moving:!1}),h=(v="")=>{c=!0,v&&(u.offset=v==="left"?-i.value:r.value),n("open",{name:e.name,position:d||v})},S=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:d})},g=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),y=v=>{d=v>0?"right":"left";let p=v;switch(d){case"left":c&&m===d?p=-i.value:p=Math.abs(v)>i.value?-i.value:v;break;case"right":c&&m===d?p=r.value:p=Math.abs(v)>r.value?r.value:v;break}u.offset=p},b=lt();return{classes:a,touchStyle:g,...{onTouchStart(v){e.disabled||b.start(v)},onTouchMove(v){e.disabled||(b.move(v),b.isHorizontal()&&(u.moving=!0,y(b.deltaX.value),e.touchMovePreventDefault&&v.preventDefault(),e.touchMoveStopPropagation&&v.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,m=d,d){case"left":Math.abs(u.offset)<=i.value/2?S():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?S():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:S}}}),Rb={class:"fox-swipe__left",ref:"leftRef"},Fb={class:"fox-swipe__content"},Kb={class:"fox-swipe__right",ref:"rightRef"};function Ub(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",Rb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Fb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Kb,[t.renderSlot(e.$slots,"right")],512)],38)}const Qt=oe(Ob,[["render",Ub]]),{componentName:Hb,create:jb}=J("action-sheet"),Wb=jb({components:{Popup:pe,Loading:le.Loading},props:{...Fe,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(()=>({[Hb]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(n("choose",c,d),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Yb={key:0,class:"fox-action-sheet__title"},Xb={key:1},Qb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Gb={key:1,class:"fox-action-sheet__menu"},Zb=["onClick"],Jb={key:1},_b={class:"fox-action-sheet__subdesc"};function ek(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("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",Yb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Xb,[e.description?(t.openBlock(),t.createElementBlock("view",Qb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Gb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Jb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",_b,t.toDisplayString(c[e.optionSubTag]),1)],14,Zb))),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 ya=oe(Wb,[["render",ek]]),{componentName:tk,create:nk}=J("backtop"),va=nk({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(()=>({[tk]:!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(g=0){o.scrollEl instanceof Window?window.scrollTo(0,g):o.scrollEl.scrollTop=g}function c(){let g=Ge(function y(){var b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=b*-o.scrollTop/e.duration+o.scrollTop;i(f),g=Ge(y),(b==e.duration||f==0)&&as(g)})}function d(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function m(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",g)}function h(){S.value?o.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,m()});const S=t.computed(()=>{if(typeof a.content=="function"){const g=a.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];S.value&&g.push(S.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const f=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const b=t.h("div",{class:l.value,style:r.value,onClick:u},y);return g.push(b),g}}}),{componentName:ok,create:lk}=J("drag"),ak=lk({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(()=>({[ok]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",He(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",He(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",He(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const S=u.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 g=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>g?o.xPum=g: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 d(u){const h=u.currentTarget;let g=u.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;g>y?g=y:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?He(()=>{s(h)}):He(()=>{i(h,y)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function m(u){const h=u.currentTarget,S=u.touches[0],g=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=S.clientX,o.position.y=S.clientY,o.nx=g.clientX-o.position.x,o.ny=g.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",m),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",d)}),{classes:l,myDrag:a,touchStart:m,touchMove:c,touchEnd:d}}});function rk(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 ba=oe(ak,[["render",rk]]),sk={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}},ik=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function ck(e,n,a,o,l){return{props:{...Fe,...sk},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ie.useFoxI18n(n),m=d(r,["confirmText","cancelText"]),u=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)},g=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const k=r.beforeClose(C);kt(k)?k.then(N=>{N&&(S(!1),c("closed",C))}):k===!0&&(S(!1),c("closed",C))}else S(!1),c("closed",C)},y=()=>{g("confirm")},b=()=>{g("cancel")},f=()=>{g("close")},v=(C,k)=>ik(C)?(k.src=C,t.h("img",k)):typeof C=="string"?(Array.isArray(k.class)?k.class.push(C):k.class&&typeof k.class=="object"?k[`${C}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${C}`:k.class=C,t.h(r.tag,k)):t.h(C,k),p=()=>{const C=[];if(i.header){const N=i.header();C.push(N)}else{if(r.title){const N=t.h("view",{class:`${u}__header-title`},[r.title]);C.push(N)}if(r.showClose){const N={class:[`${u}__header-close-icon`],onClick:f},A=r.closeIcon??l,$=v(A,N);C.push($)}}if(C.length===0)return null;const k={class:[`${u}__header`]};return t.h("view",k,C)},B=()=>{const C=[];if(i.default)C.push(i.default());else{const N={class:[`${u}__content`]};if(r.textAlign&&N.class.push(r.textAlign),typeof r.content=="string"){N.innerHTML=r.content;const A=t.h("view",N);C.push(A)}else if(typeof r.content=="function"){const A=t.h("view",N,[r.content()]);C.push(A)}else{const A=t.h("view",N,[r.content]);C.push(A)}}if(C.length===0)return null;const k={class:[`${u}__body`]};return t.h("view",k,C)},w=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const N={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const A=t.h("view",N,[r.cancelButtonText??m.cancelText.value]);C.push(A)}if(r.showConfirmButton){const N={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const A=t.h("view",N,[r.confirmButtonText??m.confirmText.value]);C.push(A)}}else{if(r.showCancelButton){const N={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const A=t.h(o,N,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(A)}if(r.showConfirmButton){const N={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const A=t.h(o,N,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(A)}}if(C.length===0)return null;const k={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",k,C)};return()=>{const C=[],k=p();k&&C.push(k);const N=B();N&&C.push(N);const A=w();A&&C.push(A);const $={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},V=t.h("view",$,C),H=[`${u}__popup`];r.popClass&&H.push(r.popClass);const R={};r.width&&(R.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(R.height=typeof r.height=="number"?`${r.height}px`:r.height);const T={...ye(r,Fe),popClass:H.join(" "),style:R,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,T,{default:()=>V})}}}}const{componentName:uk,create:dk,scope:fk}=J("dialog"),ti=dk(ck(uk,fk,pe,ze,le.Close));class mk{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 pk{options=new mk;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=d=>{if(d===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},a?.onOpened&&a?.onOpened(),()=>t.h(ti,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Gt=function(e){return new pk(e)};Gt.install=e=>{e.use(ti),e.config.globalProperties.$dialog=Gt};const hk={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}},gk=(e,n,a)=>({props:{...hk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=ao(),d=t.ref(),m=Gs(d),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),g=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),y=t.computed(()=>{const k={};return o.headHeight!=50&&(k.height=me(o.headHeight)),k}),b=k=>{const N=+(o.pullDistance||o.headHeight);let A=k;return k>N&&(k<N*2?A=(k+N)/2:A=N+k/4),Math.round(A)},f=(k,N)=>{const A=+(o.pullDistance||o.headHeight);u.distance=k,N?u.status="loading":k===0?u.status="normal":k<A?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:k})},v=()=>u.status!=="loading"&&u.status!=="complete",p=()=>m.value==window?Zs()==0:m.value&&m.value.scrollTop==0,B=k=>{v()&&(p()?(c.start(k),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},w=k=>{v()&&u.moving&&(c.move(k),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(k.cancelable&&k.preventDefault(),f(b(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&v()&&c.state.deltaY&&(u.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,k=>{k?f(+o.headHeight,!0):f(0)}),()=>{const k=[];let N=null;if(u.status==="loading"){if(N=r?.loading?.()??null,!N){const I={class:["fox-pull-refresh-container-topbox-icon"]};N=t.h(a,I)}}else u.status==="pulling"?N=r?.pulling?.()??null:u.status==="loosing"&&(N=r?.loosing?.()??null);N&&k.push(N);const A={class:["fox-pull-refresh-container-topbox-text"]},$=t.h("dive",A,[S.value]);k.push($);const V={class:["fox-pull-refresh-container-topbox"],style:y.value},H=t.h("div",V,k),R={class:"fox-pull-refresh-container",style:g.value},q=t.h("div",R,[H,r?.default?.()]),T={ref:d,class:h.value};return lo()?Object.assign(T,{onTouchstart:B,onTouchmove:w,onTouchend:C}):Object.assign(T,{onMousedown:B,onMousemove:w,onMouseup:C}),t.h("div",T,[q])}}}),{componentName:yk,create:vk,scope:bk}=J("pull-refresh"),ka=vk(gk(yk,bk,le.Loading)),{create:kk}=J("notify"),Sk=kk({components:{[pe.name]:pe},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,d=>{s.value=e.visible;const m=e.duration;d&&m&&(o=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function Ck(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 Sa=oe(Sk,[["render",Ck]]),ll={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let gt=[],Kt=[];const ni=e=>{if(e){const n=document.getElementById(e);Kt=Kt.filter(a=>a.id!==e),gt=gt.filter(a=>a!==e),n&&document.body.removeChild(n)}else gt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Kt=[],gt=[]},wk=e=>{const n=document.getElementById(e.id);if(n){const a=Kt.find(l=>l.id===e.id);a?e={...ll,...a,...e}:e={...ll,...e};const o=t.createVNode(Sa,e);return t.render(o,n),o.component.data}},Pt=e=>{e.unmount=ni;let n;if(e.id){if(n=e.id,gt.find(r=>r===e.id))return wk(e)}else n=new Date().getTime()+"";e={...ll,...e},e.id=n,gt.push(e.id),Kt.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(Sa,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Mt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Ca={text(e,n={}){return Mt(e),Pt({...n,msg:e})},primary(e,n={}){return Mt(e),Pt({...n,msg:e,type:"primary"})},success(e,n={}){return Mt(e),Pt({...n,msg:e,type:"success"})},danger(e,n={}){return Mt(e),Pt({...n,msg:e,type:"danger"})},warn(e,n={}){return Mt(e),Pt({...n,msg:e,type:"warning"})},hide(){ni()},install(e){e.use(Sa)}},{create:Nk}=J("toast"),Bk=Nk({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),d=()=>{const S=de(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ak={key:1,class:"fox-toast-title"},Vk=["innerHTML"];function Tk(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",Ak,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Vk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const wa=oe(Bk,[["render",Tk]]),al={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 yt=[],Ut=[];const oi=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(a=>a.id!==e),yt=yt.filter(a=>a!==e),n&&document.body.removeChild(n)}else yt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ut=[],yt=[]},$k=e=>{const n=document.getElementById(e.id);if(n){const a=Ut.find(l=>l.id===e.id);a?e={...al,...a,...e}:e={...al,...e};const o=t.createVNode(wa,e);return t.render(o,n),Et}},Lt=e=>{e.unmount=oi;let n;if(e.id){if(n=e.id,yt.find(l=>l===e.id))return $k(e)}else n=new Date().getTime()+"";e={...al,...e},e.id=n,yt.push(e.id),Ut.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(wa,e);return t.render(o,a),document.body.appendChild(a),Et},sn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Et={text(e,n={}){return sn(e),Lt({...n,type:"text",msg:e})},success(e,n={}){return sn(e),Lt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return sn(e),Lt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return sn(e),Lt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Lt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){oi(e)},install(e){e.use(wa),e.config.globalProperties.$toast=Et}},{create:Ek}=J("audio"),xk=Ek({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,[Yt.name]:Yt},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 y=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<y.length;b++)document.addEventListener(y[b],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(b){b.message}});const r=y=>{const b=o.value;e.autoplay&&b&&b.paused&&b.play(),l.second=b.duration,l.duration=g(b.duration),n("can-play",y)},s=y=>{l.currentTime=parseInt(y.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const y=o.value;l.playing?(y.pause(),l.handPlaying=!1):(y.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},d=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},m=y=>{l.currentDuration=g(y),l.percent=y/l.second*100},u=()=>{l.playing=!1,n("ended")},h=y=>{const b=o.value;b.currentTime=l.second*y/100,n("changeProgress",b.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},g=y=>{if(!y)return"00:00:00";let b=parseInt(y),f=Math.floor(b/3600),v=Math.floor((b-f*3600)/60),p=b-f*3600-v*60,B="";return B+=("0"+f.toString()).slice(-2)+":",B+=("0"+v.toString()).slice(-2)+":",B+=("0"+p.toString()).slice(-2),B};return t.watch(()=>l.currentTime,y=>{m(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:S,onCanplay:r,slots:a}}}),Dk={class:"fox-audio"},Ik={key:0,class:"fox-audio__progress"},qk={class:"fox-audio__time"},Pk={class:"fox-audio__bar"},Mk={class:"fox-audio__time"},Lk={key:1,class:"fox-audio__icon"},zk=["controls","src","preload","autoplay","loop","muted"];function Ok(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Dk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Ik,[t.createElementVNode("div",qk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Pk,[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(()=>[...n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Mk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Lk,[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,zk)])}const Na=oe(xk,[["render",Ok]]),{create:Rk,scope:Fk}=J("audio-operate"),Kk=Rk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Fk),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}}}),Uk={class:"fox-audio-operate"};function Hk(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Uk,[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 Ba=oe(Kk,[["render",Hk]]),{componentName:jk,create:Wk}=J("avatar"),Yk=Wk({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}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&S(g)});const m=t.computed(()=>({[jk]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),S=g=>{d.maxIndex=g.length;for(let y=0;y<g.length;y++)g[y]&&g[y].classList&&g[y].classList[0]=="fox-avatar"&&g[y].setAttribute("data-index",y+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Xk(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 Zt=oe(Yk,[["render",Xk]]),{componentName:Qk,create:Gk}=J("avatar-group"),Zk=Gk({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}){const{size:o}=t.toRefs(e),l=t.ref(null),r=t.ref(0),s=t.computed(()=>({[Qk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:s,avatarGroupRef:l}}});function Jk(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 Aa=oe(Zk,[["render",Jk]]);var Nn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Nn||{});function _k(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:eS,create:tS}=J("list"),os=document.documentElement.clientHeight||document.body.clientHeight||667,nS=tS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:os},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,os)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[eS]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=l.value.childNodes;f=Array.from(f).filter(k=>k.nodeType===1);const v=f[0];f.forEach((k,N)=>{if(!k)return;const A=qe(k),{height:$}=A,H=r.cachePositions[N+r.start].height-$;H&&(r.cachePositions[N+r.start].bottom-=H,r.cachePositions[N+r.start].height=$,r.cachePositions[N+r.start].dValue=H)});let p=0;v&&(p=r.start);const B=r.cachePositions.length;let w=r.cachePositions[p].dValue;r.cachePositions[p].dValue=0;for(let k=p+1;k<B;++k){const N=r.cachePositions[k];r.cachePositions[k].top=r.cachePositions[k-1].bottom,r.cachePositions[k].bottom=r.cachePositions[k].bottom-w,N.dValue!==0&&(w+=N.dValue,N.dValue=0)}const C=r.cachePositions[B-1].bottom;r.phantomHeight=C},g=(f=0)=>{let v=_k(r.cachePositions,f,(B,w)=>{const C=B.bottom;return C===w?Nn.eq:C<w?Nn.lt:Nn.gt});return r.cachePositions[v].bottom<f&&(v+=1),v},y=()=>{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:v}=r,p=g(f);p!==v&&(r.originStartIndex=p,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{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:b}}});function oS(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 Va=oe(nS,[["render",oS]]),{componentName:lS,create:aS}=J("circleprogress"),rS=aS({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(()=>({[lS]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>De(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let m=283,u=m*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!De(e.color))return;let m=e.color;const u=Object.keys(m).sort((S,g)=>parseFloat(S)-parseFloat(g));let h=[];return u.map((S,g)=>{let y={key:"",value:""};y.key=S,y.value=m[S],h.push(y)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:a,refRandomId:o}}}),sS={viewBox:"0 0 100 100"},iS=["id"],cS=["offset","stop-color"],uS=["d","stroke-width"],dS=["d","stroke","stroke-linecap","stroke-width"],fS={class:"fox-circleprogress-text"},mS={key:0};function pS(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",sS,[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,cS))),128))],8,iS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,uS),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,dS)])),t.createElementVNode("div",fS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",mS,t.toDisplayString(e.progress)+"%",1))])],6)}const Ta=oe(rS,[["render",pS]]),{componentName:hS,create:gS}=J("noticebar"),yS=gS({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(()=>({[hS]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let k={};return e.color&&(k.color=e.color),e.background&&(k.background=e.background),e.direction=="vertical"&&(k.height=`${e.height}px`),k}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let k={};if(e.complexAm)k={transform:`translateY(${r.distance}px)`};else if(r.animate){let N=~~(e.height/e.speed/4);k={transition:`all ${N==0?~~(e.height/e.speed):N}s`,"margin-top":`-${e.height}px`}}return k});t.watch(()=>e.text,k=>{h()}),t.watch(()=>e.list,k=>{r.scrollList=[...k]});const h=k=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const N=o.value.getBoundingClientRect().width,A=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?A>N:e.scrollable,r.isCanScroll?(r.wrapWidth=N,r.offsetWidth=A,r.duration=A/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=k=>{n("click",k)},g=k=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",k)},y=k=>{r.firstRound=!1,n("across-end",k),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))},v=()=>{r.timer=setInterval(()=>{let k=100;for(let N=0;N<k;N++)p(N,!(N<k-1))},e.standTime+100*e.speed)},p=(k,N)=>{setTimeout(()=>{r.distance-=e.height/100,N&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},k*e.speed)},B=k=>{n("click",k)},w=()=>{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?v():b()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],k=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(k))});const C=k=>{k&&k.length>0&&(r.scrollList=k[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:m,horseLampStyle:u,wrap:o,content:l,handleClick:S,onClickIcon:g,onAnimationEnd:y,go:B,handleClickIcon:w,slots:a,toPxString:me,wrapContentClass:c}}}),vS={key:0,class:"fox-noticebar__page-lefticon"},bS={ref:"wrap",class:"fox-noticebar__page-wrap"},kS={class:"showNotica"},SS=["onClick"];function CS(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]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",vS,[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",bS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",kS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:u=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,SS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const $a=oe(yS,[["render",CS]]),wS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2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kAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{create:AS,scope:VS}=J("empty"),TS={empty:wS,error:NS,network:BS},$S=AS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(VS),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:TS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),ES={class:"fox-empty"},xS=["src"],DS={key:1,class:"fox-empty-description"};function IS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",ES,[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,xS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",DS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Ea=oe($S,[["render",IS]]),{create:qS,scope:PS}=J("video"),MS=qS({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}=ie.useFoxI18n(PS),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)),g(),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",Tn(u,1e3)))},i=()=>{const C=l.value,k=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=k,o.progressBar.pos=k.getBoundingClientRect(),o.videoSet.progress.width=Math.round(k.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",()=>{m()}),o.videoElm.addEventListener("timeupdate",Tn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},d=C=>{var k=Math.floor(C/3600);k<10&&(k="0"+k);var N=Math.floor(C%3600/60);N<10&&(N="0"+N);var A=Math.round(C%3600%60);A<10&&(A="0"+A);var $="";return k!=0?$=k+":"+N+":"+A:$=N+":"+A,$},m=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),o.videoSet.totalTime=d(o.videoElm.duration),o.videoSet.displayTime=d(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},g=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},b=()=>{},f=C=>{let N=C.targetTouches[0].pageX-o.progressBar.pos.left;N<=0&&(N=0),N>=o.videoSet.progress.width&&(N=o.videoSet.progress.width),o.videoSet.progress.current=N;let A=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&p(A,o.videoElm.duration)},v=C=>{let N=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=N;let A=N/o.videoSet.progress.width;o.videoElm.duration&&p(A,o.videoElm.duration)},p=(C,k)=>{o.videoElm.currentTime=Math.floor(C*k)},B=()=>{o.state.isError=!1,s()},w=()=>{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:y,touchSlidSrart:b,touchSlidMove:f,touchSlidEnd:v,retry:B,fullScreen:w,t:a}}}),LS={class:"fox-video",ref:"videocon"},zS=["muted","autoplay","loop","poster","controls","preload"],OS=["src","type"],RS={class:"fox-video-controller__now"},FS={class:"fox-video-controller__progress"},KS={class:"fox-video-controller__progress-value",ref:"progressBar"},US={class:"fox-video-controller__played",ref:"playedBar"},HS={class:"fox-video-controller__total"},jS={class:"fox-video-error"},WS={class:"fox-video-error-tip"};function YS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",LS,[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,OS)],40,zS),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",RS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",FS,[t.createElementVNode("div",KS,[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"]))},[...n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),t.createElementVNode("div",US,null,512)],512)]),t.createElementVNode("div",HS,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",jS,[t.createElementVNode("p",WS,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 Bt=oe(MS,[["render",YS]]),{create:XS,componentName:QS}=J("steps"),xa=XS({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=QS;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:GS,componentName:ZS}=J("step"),JS=GS({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=ZS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),_S={class:"fox-step-head"},e1={class:"fox-step-icon-inner"},t1={key:1,class:"fox-step-inner"},n1={class:"fox-step-main"},o1={class:"fox-step-title"},l1={key:0},a1={key:0,class:"fox-step-content"},r1=["innerHTML"];function s1(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",_S,[n[1]||(n[1]=t.createElementVNode("view",{class:"fox-step-line"},null,-1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",e1,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",t1,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",n1,[t.createElementVNode("view",o1,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",l1,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",a1,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,r1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Da=oe(JS,[["render",s1]]),{create:i1,componentName:xo}=J("swiper"),c1=i1({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=lt(),s=t.computed(()=>({[xo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const E=xo;return{[`${E}-inner`]:!0,[`${E}-vertical`]:i.value}}),d=t.computed(()=>{const E=xo;return{[`${E}-pagination`]:!0,[`${E}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),S=t.computed(()=>l[i.value?"height":"width"]),g=t.computed(()=>h.value*S.value),y=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 E=0;E=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${E}px)`,[i.value?"height":"width"]:`${S.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},v=E=>{let z=[];const j=l.childrenVNode.length;let M=a?.default?.();if(M=M.filter(Z=>Z.children&&Array.isArray(Z.children)),M.forEach(Z=>{z=z.concat(Z.children)}),!j)l.childrenVNode=z.slice(),E.proxy&&l.children.push(E.proxy);else if(j>z.length)l.children=l.children.filter(Z=>E.proxy!==Z);else if(j<z.length){for(let Z=0;Z<j;Z++)if(z[Z].key!==l.childrenVNode[Z].key){E.proxy&&l.children.splice(Z,0,E.proxy),E.vnode&&l.childrenVNode.splice(Z,0,E.vnode);break}j!==z.length&&(E.proxy&&l.children.push(E.proxy),E.vnode&&l.childrenVNode.push(E.vnode))}else l.childrenVNode=z.slice(),E.proxy&&l.children.push(E.proxy)},p=(E,z=0)=>{let j=E*S.value;e.loop||(j=Math.min(j,-y.value));let M=z-j;return e.loop||(M=je(M,y.value,0)),M},B=E=>{const{active:z}=l;return E?e.loop?je(z+E,-1,h.value):je(z+E,0,h.value-1):z},w=({pace:E=0,offset:z=0,isEmit:j=!1})=>{if(h.value<=1)return;const{active:M}=l,Z=B(E),ee=p(Z,z);if(e.loop){if(l.children[0]&&ee!==y.value){const F=ee<y.value;l.children[0].setOffset(F?g.value:0)}if(l.children[h.value-1]&&ee!==0){const F=ee>0;l.children[h.value-1].setOffset(F?-g.value:0)}}l.active=Z,l.offset=ee,j&&M!==l.active&&n("change",b.value),f()},C=()=>{l.moving=!0,l.active<=-1&&w({pace:h.value}),l.active>=h.value&&w({pace:-h.value})},k=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},N=E=>{C(),r.reset(),Ge(()=>{Ge(()=>{l.moving=!1,w({pace:E,isEmit:!0})})})},A=()=>{N(-1)},$=()=>{N(1)},V=E=>{C(),r.reset(),Ge(()=>{l.moving=!1;let z;e.loop&&h.value===E?z=l.active===0?0:E:z=E%h.value,w({pace:z-l.active,isEmit:!0})})},H=()=>{e.autoPlay<=0||h.value<=1||(k(),l.autoplayTimer=setTimeout(()=>{$(),H()},Number(e.autoPlay)))},R=(E=+e.initPage)=>{k(),l.rect=o.value.getBoundingClientRect(),E=Math.min(h.value-1,E),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=E,l.offset=p(l.active),l.moving=!0,f(),H()},q=E=>{e.isPreventDefault&&E.preventDefault(),e.isStopPropagation&&E.stopPropagation(),e.touchable&&(r.start(E),l.touchTime=Date.now(),k(),C())},T=E=>{e.touchable&&l.moving&&(r.move(E),u.value&&w({offset:m.value}))},I=E=>{if(!e.touchable||!l.moving)return;const z=m.value/(Date.now()-l.touchTime);if((Math.abs(z)>.3||Math.abs(m.value)>+(S.value/2).toFixed(2))&&u.value){let M=0;const Z=i.value?r.offsetY.value:r.offsetX.value;e.loop?M=Z>0?m.value>0?-1:1:0:M=-Math[m.value>0?"ceil":"floor"](m.value/S.value),w({pace:M,isEmit:!0})}else m.value&&w({pace:0});l.moving=!1,f(),H()};return t.provide("parent",{props:e,size:S,relation:v}),Ee({prev:A,next:$,to:V}),t.onDeactivated(()=>{k()}),t.onBeforeUnmount(()=>{k()}),t.watch(()=>e.initPage,E=>{t.nextTick(()=>{R(Number(E))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{R()})}),t.watch(()=>e.autoPlay,E=>{E>0?H():k()}),{state:l,classes:s,classesInner:c,classesPagination:d,container:o,activePagination:b,onTouchStart:q,onTouchMove:T,onTouchEnd:I}}});function u1(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 At=oe(c1,[["render",u1]]),{create:d1,componentName:f1}=J("swiper-item"),m1=d1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[f1]:!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 p1(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 Vt=oe(m1,[["render",p1]]),li={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:h1}=J("image-preview-item"),g1=h1({props:{...li,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Bt.name]:Bt,[Vt.name]:Vt},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=lt(),l=t.computed(()=>{const{rootWidth:A,rootHeight:$}=e,V=$/A;return a.imageRatio>V}),r=t.computed(()=>{const A=e.image;if(A&&A.src){const{scale:$,moveX:V,moveY:H,moving:R,zooming:q}=a,T={transitionDuration:q||R?"0s":".3s"};if($!==1){const I=V/$,E=H/$;T.transform=`scale(${$}, ${$}) translate(${I}px, ${E}px)`}return T}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:$}=e,V=l.value?$/a.imageRatio:A;return Math.max(0,(a.scale*V-A)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:$}=e,V=l.value?$:A*a.imageRatio;return Math.max(0,(a.scale*V-$)/2)}return 0}),c=A=>{const{naturalWidth:$,naturalHeight:V}=A.target;a.imageRatio=V/$},d=()=>{m(1),a.moveX=0,a.moveY=0},m=A=>{A=je(A,+e.minZoom,+e.maxZoom+1),A!==a.scale&&(a.scale=A,n("scale",{scale:A,index:e.initNo}))},u=()=>{const A=a.scale>1?1:2;m(A),a.moveX=0,a.moveY=0},h=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let S,g,y,b,f,v,p;const B=A=>{const{touches:$}=A,{offsetX:V}=o;o.start(A),p=$.length,S=a.moveX,g=a.moveY,v=Date.now(),a.moving=p===1&&a.scale!==1,a.zooming=p===2&&!V.value,a.zooming&&(y=a.scale,b=h(A.touches))},w=A=>{const{touches:$}=A;if(o.move(A),(a.moving||a.zooming)&&Fo(A,!0),a.moving){const{deltaX:V,deltaY:H}=o,R=V.value+S,q=H.value+g;a.moveX=je(R,-s.value,s.value),a.moveY=je(q,-i.value,i.value)}if(a.zooming&&$.length===2){const V=h($),H=y*V/b;m(H)}},C=()=>{if(p==1&&e.video&&e.video.source||p>1)return;const{offsetX:A,offsetY:$}=o,V=Date.now()-v,H=250,R=5;A.value<R&&$.value<R&&V<H&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},H))},k=A=>{let $=!1;(a.moving||a.zooming)&&($=!0,a.moving&&S===a.moveX&&g===a.moveY&&($=!1),A.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-s.value,s.value),a.moveY=je(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,S=0,g=0,y=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Fo(A,$),C(),o.reset()},N=()=>{n("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,A=>{A||d()}),{...t.toRefs(a),onTouchStart:B,onTouchMove:w,onTouchEnd:k,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:N}}}),y1=["src"];function v1(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,y1)):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 b1=oe(g1,[["render",v1]]),{create:k1}=J("image-preview"),S1=k1({props:{...li,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:b1,CircleClose:le.CircleClose,[pe.name]:pe,[At.name]:At},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>Mn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==o.active&&(o.active=m,n("change",o.active))},i=()=>{ei(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},d=()=>{if(a.value){const m=qe(a.value);o.rootHeight=m.height,o.rootWidth=m.width}};return t.watch(()=>e.show,m=>{o.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=o.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),C1={class:"fox-image-preview",ref:"swipeRef"},w1={key:0,class:"fox-image-preview-index"};function N1(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",C1,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?m:{},image:u>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",w1,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]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const ai=oe(S1,[["render",N1]]);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 A1{options=new B1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Ui(a,{name:"image-preview",components:[pe,Bt,At,Vt,dt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(ai,a))}})})}}const bo=e=>new A1(e);bo.install=e=>{e.use(ai)};function V1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{create:T1}=J("countup"),$1=T1({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=N=>{N&&o.value.push(N)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(N,A)=>{u(),b(0)}),t.watch(()=>e.machinePrizeLevel,(N,A)=>{r.prizeLevelTrun=N}),t.watch(()=>e.initNum,(N,A)=>{r.current=N,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(N,A)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&b():(y(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(N,A,$)=>{const V=(N.toString().split(".")[1]||"").length,H=(A.toString().split(".")[1]||"").length,R=Math.pow(10,Math.max(V,H));return Number((N*R-A*R).toFixed(0))/R},S=N=>{let{num_total_len:A,pointNum:$,initDigit1:V,initDigit2:H,sortFlag:R}=r,q=R=="add"||R=="equal"?String(H)[N-(A-$)]:10-Number(String(H)[N-(A-$)]),T=R=="add"||R=="equal"?String(V)[N]:10-Number(String(V)[N]),I=N>A-$-1?-q*100+"%":N<=String(V).length-1?-T*100+"%":0;return I=="-1000%"&&(I=0),I},g=N=>{let{num_total_len:A,pointNum:$,initDigit1:V,initDigit2:H,sortFlag:R}=r,q=String(H)[N-(A-$)];return N>A-$-1?q||0:N<=String(V).length-1?String(V)[N]:0},y=()=>{let{endNum:N,initNum:A,speed:$,toFixed:V}=e,H=setInterval(()=>{if(A>N)if(r.current<=N||r.current<=$)r.current=N.toFixed(V),clearInterval(H),n("scroll-end"),r.valFlag=!1;else{let R=parseFloat(String(r.current))-parseFloat(String($));r.current=R.toFixed(V)}else if(r.current>=N)r.current=N.toFixed(V),clearInterval(H),n("scroll-end"),r.valFlag=!1;else{let R=parseFloat(String(r.current))+parseFloat(String($));r.current=R.toFixed(V)}},e.during)},b=N=>{let{initNum:A,endNum:$,toFixed:V,customBgImg:H}=e;H&&(A=e.customChangeNum);let R,q,T,I;A!=0?(V!=0&&(A=Number(A.toFixed(V))),String(A).indexOf(".")>-1?(R=String(A).split(".")[0].length,q=String(A).split(".")[1].length):(R=String(A).length,q=0)):(R=1,q=0),$!=0?(V!=0&&($=Number($.toFixed(V))),String($).indexOf(".")>-1?(T=String($).split(".")[0].length,I=String($).split(".")[1].length):(T=String($).length,I=0)):(T=1,I=0);let E=R>=T?R:T,z=q>=I?q:I;r.num_total_len=E+z,r.pointNum=z,A>$?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(A,$),r.numberVal=Number(String(A))):A<$?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h($,A),r.numberVal=Number(String($))):r.sortFlag="equal";var j=1;for(let Z=0;Z<r.pointNum;Z++)j*=10;var M=r.numberVal*j;if(r.relNum=M,V!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(M).length),String(A).indexOf(".")>-1){let Z=String(A).split(".");r.initDigit1=Number(Z[0]),r.initDigit2=Number(Z[1])}else r.initDigit1=A,r.initDigit2=0;i&&!H?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let Z=o.value[r.num_total_len-1];f(Z)}):N!==0&&B()},f=N=>{u();var A=1;r.pointNum!=0&&(A=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{v(N),r.totalCount=h(r.totalCount,A),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},v=N=>{let A=N.getAttribute("turn-number"),$;if(r.sortFlag=="add"?$=parseInt(String(A))+1:$=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,N.setAttribute("turn-number",String($)),(N.style.transition=="none 0s ease 0s"||$==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),$==10||r.sortFlag=="reduce"&&$==0){var V=null;N.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`,N.setAttribute("turn-number","0"),V=setTimeout(()=>{V&&clearTimeout(V),N.style.transition="none",N.style.top="0",p(N,$)},.975*e.during)}else N.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`;N.style.top=="-100%"&&r.sortFlag=="reduce"&&v(N.previousSibling)},p=(N,A)=>{setTimeout(()=>{A==10&&N.previousSibling&&v(N.previousSibling)},200)},B=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},w=()=>{for(r.notPrize=[];r.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(N)==-1&&r.notPrize.push(N)}};V1({machineLuck:()=>{const N=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let $=0;$<e.machineNum;$++)setTimeout(()=>{let V=A*($+1+parseFloat(String(N)));r.prizeYPrev.length!=0&&(r.prizeY[$]=r.prizeYPrev[$]);let H=r.prizeYPrev[$]?r.prizeYPrev[$]:0,R=V+H+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-H);r.prizeLevelTrun<0&&(R+=e.numHeight*r.notPrize[$]),k($,R,H)},500*$)}});const k=(N,A,$)=>{let V=setInterval(()=>{if($<=A)$+=10,r.prizeY[N]=parseFloat(String($));else if(clearInterval(V),V=null,r.finshMachine+=1,r.prizeY[N]=A,r.finshMachine==e.machineNum){let H=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(q=>{let T=q;for(;T>H;)T-=H;r.prizeYPrev.push(T)}),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(()=>{m()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:g}}}),E1={class:"fox-countup"},x1=["turn-number"];function D1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",E1,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,x1))),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 Ia=oe($1,[["render",D1]]),I1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:q1,create:P1}=J("countdown"),M1=P1({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(()=>({[q1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-I1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,g=Math.max(o.handleEndTime-S,0);o.restTime=g,g||(o.counting=!1,u(),n("on-end")),g>0&&i()}}))},c=(S,g)=>{const y=S;let b={d:0,h:0,m:0,s:0,ms:0};const f=1e3,v=60*f,p=60*v,B=24*p;return y>0&&(b.d=y>=f?Math.floor(y/B):0,b.h=Math.floor(y%B/p),b.m=Math.floor(y%p/v),b.s=Math.floor(y%v/f),b.ms=Math.floor(y%f)),g=="custom"?b:d({...b})},d=S=>{let{d:g,h:y,m:b,s:f,ms:v}=S,p=e.format;if(p.includes("DD")?p=p.replace("DD",at(g)):y+=Number(g)*24,p.includes("HH")?p=p.replace("HH",at(y)):b+=Number(y)*60,p.includes("mm")?p=p.replace("mm",at(b)):f+=Number(b)*60,p.includes("ss")?p=p.replace("ss",at(f)):v+=Number(f)*1e3,p.includes("S")){const B=at(v,3).toString();p.includes("SSS")?p=p.replace("SSS",B):p.includes("SS")?p=p.replace("SS",B.slice(0,2)):p.includes("S")&&(p=p.replace("SS",B.slice(0,1)))}return p},m=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let g=c(S,"custom");n("update:modelValue",g),n("input",g)}),t.watch(()=>e.paused,(S,g)=>{g?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,S=>{s()}),t.watch(()=>e.startTime,S=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:m,pause:u,renderTime:r,reset:h}}}),L1=["innerHTML"];function z1(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,L1))],2)}const qa=oe(M1,[["render",z1]]),{create:O1}=J("badge"),R1=O1({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}}}),F1={class:"fox-badge"},K1=["textContent"];function U1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",F1,[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,K1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Pa=oe(R1,[["render",U1]]),{componentName:H1,create:j1}=J("tag"),W1=j1({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=H1;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 Y1(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 Jt=oe(W1,[["render",Y1]]),{create:X1}=J("popover"),Q1=X1({components:{FoxPopup:pe},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 v="fox-popover-arrow",p=e.location,B=p.split("-")[0];return`${v} ${v}-${B} ${v}--${p}`}),c=t.computed(()=>{const v={},{bgColor:p,arrowOffset:B,location:w}=e,C=w.split("-")[0],k=w.split("-")[1],N=16;return p&&(v[`border${d(C)}Color`]=p),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(k||(v.left=`calc(50% + ${B}px)`),k=="start"&&(v.left=`${N+B}px`),k=="end"&&(v.right=`${N-B}px`)),["left","right"].includes(C)&&(k||(v.top=`calc(50% - ${B}px)`),k=="start"&&(v.top=`${N-B}px`),k=="end"&&(v.bottom=`${N+B}px`))),v}),d=v=>(v=v.toLowerCase(),v=v.replace(/\b\w+\b/g,p=>p.substring(0,1).toUpperCase()+p.substring(1)),v),m=t.computed(()=>{let v={};if(!r.value||!s.value)return{};const p=s.value.width,B=s.value.height,{width:w,height:C,left:k,top:N}=r.value,{location:A,offset:$}=e,V=A.split("-")[0],H=A.split("-")[1];let R=0,q=0;if(Mn($)&&$.length==2&&(R+=Number($[1]),q+=Number($[0])),w){if(["bottom","top"].includes(V)){const T=V=="bottom"?C+R:-(B+R);v.top=`${N+T}px`,H||(v.left=`${-(p-w)/2+k+q}px`),H=="start"&&(v.left=`${k+q}px`),H=="end"&&(v.left=`${r.value.right+q}px`)}if(["left","right"].includes(V)){const T=V=="left"?-(p+R):w+R;v.left=`${k+T}px`,H||(v.top=`${N-B/2+C/2-4+q}px`),H=="start"&&(v.top=`${N+q}px`),H=="end"&&(v.top=`${N+C+q}px`)}}return v}),u=t.computed(()=>{const v={};return e.bgColor&&(v.background=e.bgColor),v}),h=()=>{let v=qe(a.value);e.targetId&&(v=qe(document.querySelector(`#${e.targetId}`))),r.value=v,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,v=>{l.value=v,v?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const S=v=>{n("update",v),n("update:visible",v)},g=()=>{S(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},b=(v,p)=>{!v.disabled&&n("choose",v,p),e.closeOnClickAction&&y()},f=v=>{const p=a.value,B=o.value;let w=p&&!p.contains(v.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);w=C&&!C.contains(v.target)}w&&B&&!B.contains(v.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:g,popoverArrow:i,closePopover:y,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:m,customStyle:u,popoverArrowStyle:c,renderIcon:Es}}}),G1={ref:"popoverContentRef",class:"fox-popover-content-group"},Z1=["onClick"],J1={class:"fox-popover-menu-item-name"};function _1(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",G1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",J1,t.toDisplayString(i.name),1)],10,Z1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const _t=oe(Q1,[["render",_1]]),eC=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:tC}=J("skeleton"),nC=tC(eC({[Zt.name]:Zt})),oC={key:0},lC={key:1,class:"fox-skeleton"},aC={key:0,class:"fox-skeleton-animation"},rC={class:"fox-skeleton-content"};function sC(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",lC,[e.animated?(t.openBlock(),t.createElementBlock("view",aC)):t.createCommentVNode("",!0),t.createElementVNode("view",rC,[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",oC,[t.renderSlot(e.$slots,"default")]))}const Ma=oe(nC,[["render",sC]]),{create:iC,componentName:cC}=J("collapse"),uC=iC({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(()=>({[cC]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,d,m=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,d,m)},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 d=o.value.filter(m=>m!==c);r(d,c,!1)}else{const d=o.value.concat([c]);r(d,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 dC(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 La=oe(uC,[["render",dC]]),{create:fC,componentName:mC}=J("collapse-item"),pC=fC({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=mC;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)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():u()}),{classes:r,renderIcon:Es,wrapperRef:n,contentRef:a,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),hC={class:"fox-collapse-item__title-main"},gC={class:"fox-collapse-item__title-main-value"},yC=["innerHTML"],vC={key:2,class:"fox-collapse-item__title-label"},bC={key:0,class:"fox-collapse-item__title-sub"},kC=["innerHTML"],SC={key:0,class:"fox-collapse__item-extraWrapper"},CC={class:"fox-collapse__item-extraWrapper__extraRender"},wC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function NC(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",hC,[t.createElementVNode("view",gC,[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,yC)),e.label?(t.openBlock(),t.createElementBlock("view",vC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",bC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,kC)),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",SC,[t.createElementVNode("div",CC,[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",wC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const za=oe(pC,[["render",NC]]),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:AC,create:VC,scope:TC}=J("table"),$C=VC({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}=ie.useFoxI18n(TC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[AC]:!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:"",d=S=>e.columns.filter(g=>g.key===S)[0],m=S=>{const g=e.columns.filter(y=>y.key===S);return g[0].stylecolumn?g[0].stylecolumn:""},u=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:d,getColumnItemStyle:m,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),EC={class:"fox-table__main__head"},xC={class:"fox-table__main__head__tr"},DC=["onClick"],IC={class:"fox-table__main__body"},qC={key:1},PC={key:0,class:"fox-table__nodata"},MC={key:0,class:"fox-table__nodata__text"},LC={key:1,class:"fox-table__summary"},zC=["innerHTML"];function OC(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",EC,[t.createElementVNode("view",xC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,DC))),128))])]),t.createElementVNode("view",IC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",qC,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",PC,[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",MC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",LC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,zC)])):t.createCommentVNode("",!0)],2)}const Oa=oe($C,[["render",OC]]),{componentName:RC,create:FC}=J("ellipsis"),KC=FC({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(()=>({[RC]:!0}));t.watch(()=>e.content,(y,b)=>{y!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const y=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(v=>{o.style.setProperty(v,y.getPropertyValue(v))}),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(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+h(y.paddingTop)+h(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),d()},d=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const y=e.content.length,b=Math.floor((0+y)/2),f=e.direction==="middle"?u([0,b],[b,y]):m(0,y);r.value=f,document.body.removeChild(o)}},m=(y,b)=>{const f=s.expanded?e.collapseText:e.expandText,v=e.content.length;if(b-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(b,v)};const p=Math.round((y+b)/2);return e.direction==="end"?o.innerText=e.content.slice(0,p)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(p,v),o.offsetHeight<=l?e.direction==="end"?m(p,b):m(y,p):e.direction==="end"?m(y,p):m(p,b)},u=(y,b)=>{const f=s.expanded?e.collapseText:e.expandText,v=e.content.length;if(y[1]-y[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],v)};const p=Math.floor((y[0]+y[1])/2),B=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,p)+e.symbol+f+e.symbol+e.content.slice(B,v),o.offsetHeight<=l?u([p,y[1]],[b[0],B]):u([y[0],p],[B,b[1]])},h=y=>{if(!y)return 0;const b=y.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},S=y=>{y==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:S,handleClick:g}}}),UC={key:0},HC={key:1},jC={key:2};function WC(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",UC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",HC,[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",jC,[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 Ra=oe(KC,[["render",WC]]),{componentName:YC,create:XC}=J("animate"),QC=XC({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,[`${YC}-${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}}}),GC={class:"fox-animate"};function ZC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",GC,[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 Fa=oe(QC,[["render",ZC]]),{componentName:JC,create:_C}=J("watermark"),ew=_C({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:d,imageWidth:m,imageHeight:u,content:h,fontStyle:S,fontWeight:g,fontColor:y,fontSize:b,fontFamily:f}=e,v=()=>{const B=document.createElement("canvas"),w=window.devicePixelRatio,C=B.getContext("2d"),k=`${(l+s)*w}px`,N=`${(r+i)*w}px`,A=s*w,$=i*w;if(B.setAttribute("width",k),B.setAttribute("height",N),C){if(d){C.translate(A/2,$/2),C.rotate(Math.PI/180*Number(c));const V=new Image;V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=d,V.onload=()=>{C.drawImage(V,-m*w/2,-u*w/2,m*w,u*w),C.restore(),a.base64Url=B.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(A/2,$/2),C.rotate(Math.PI/180*Number(c));const V=Number(b)*w;C.font=`${S} normal ${g} ${V}px/${$}px ${f}`,C.fillStyle=y,C.fillText(h,0,0),C.restore(),a.base64Url=B.toDataURL()}}else throw new Error("当前环境不支持Canvas")};v(),t.watch(()=>[o,l,r,s,i,c,d,m,u,h,S,g,y,b,f],()=>{v()});const p=t.computed(()=>{const B=JC;return{[B]:!0,[`${B}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:p}}});function tw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const Ka=oe(ew,[["render",tw]]);function nw(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:ow,create:lw}=J("trend-arrow"),aw=lw({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(()=>({[ow]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${nw(Number(d),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function rw(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 Ua=oe(aw,[["render",rw]]),{create:sw}=J("tour"),iw=sw({components:{[_t.name]:_t,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:m,maskWidth:u,maskHeight:h}=e,{width:S,height:g,left:y,top:b}=o.value,f=[y+S/2,b+g/2],v=Number(u||S),p=Number(h||g);return{width:`${v+ +m[1]*2}px`,height:`${p+ +m[0]*2}px`,top:`${f[1]-p/2-+m[0]}px`,left:`${f[0]-v/2-+m[1]}px`}}),s=m=>{m=="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 m=document.querySelector(`#${e.steps[a.active].target}`),u=qe(m);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),a.active=0,a.showTour=m,a.showPopup=m}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),cw={key:0,class:"fox-tour-content"},uw={key:0,class:"fox-tour-content-top"},dw={class:"fox-tour-content-inner"},fw={class:"fox-tour-content-bottom"},mw={class:"fox-tour-content-bottom-init"},pw={class:"fox-tour-content-bottom-operate"},hw={key:1,class:"fox-tour-content fox-tour-content-tile"},gw={class:"fox-tour-content-inner"};function yw(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,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",cw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",uw,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",dw,t.toDisplayString(c.content),1),t.createElementVNode("div",fw,[t.createElementVNode("div",mw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",pw,[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]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",hw,[t.createElementVNode("div",gw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Ha=oe(iw,[["render",yw]]),{create:vw,scope:bw}=J("address"),kw=vw({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[pe.name]:pe,[Wt.name]:Wt},inheritAttrs:!1,props:{...Fe,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}=ie.useFoxI18n(bw),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),d=t.ref(["province","city","country","town"]),m=t.ref(null),u=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),S=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach(E=>{if(!E.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const I=[];return T=T.sort((E,z)=>E.title.localeCompare(z.title)),T.forEach(E=>{const z=I.findIndex(j=>j.title===E.title);z<=-1?I.push({title:E.title,list:[].concat(E)}):I[z].list.push(E)}),I};let g=t.ref([]),y=t.reactive({});const b=t.ref("self"),f=t.ref(20),v=()=>{const T=e.modelValue,I=T.length;if(I>0){if(i.value=I-1,h.value.length==0){i.value=0;return}for(let E=0;E<I;E++){let z=[];switch(E){case 0:z=e.province;break;case 1:z=e.city;break;case 2:z=e.country;break;default:z=e.town}g.value[E]=z.filter(j=>j.id==T[E])[0]}B()}},p=(T,I)=>T&&T.name||i.value<I&&T?T.name:e.columnsPlaceholder[I]||a("select"),B=()=>{k(),t.nextTick(()=>{const T=l.value&&l.value.getElementsByClassName("active")[0];if(T){const I=T.offsetLeft;f.value=I||20}})},w=T=>{const I=i.value;c.value=i.value;const E={custom:d.value[I]};g.value[I]=T;for(let z=I+2;z<4;z++)g.value.splice(z,1);I<3?(i.value=I+1,B(),E.next=d.value[i.value],E.value=T,n("change",E)):($(),n("update:modelValue"))},C=(T,I)=>{c.value=i.value,p(T,I)&&(i.value=I,B())},k=()=>{const T=m.value,I=c.value,E=u.value[i.value];T?.scrollTop&&(u.value[I]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:E,behavior:"auto"})})},N=T=>{const I=e.existAddress;let E={};I.forEach(z=>{z&&z.selectedAddress&&(E=z),z.selectedAddress=!1}),T.selectedAddress=!0,y=T,n("selected",E,T,I),$()},A=()=>{g.value=[],i.value=0,B()},$=(T="self")=>{b.value=T=="cross"?"cross":"self",r.value=!1},V=()=>{b.value="mask"},H=()=>{const T={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},I={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(E=>{const z=g.value[E];T.addressIdStr+=`${E?"_":""}${z&&z.id||0}`,T.addressStr+=z&&z.name||""}),I.data=T):I.data=y,A(),b.value=="self"?n("close",I):n("close-mask",{closeWay:b}),n("update:visible",!1)},R=()=>{const T=s.value;s.value=T=="exist"?"custom":"exist",A(),n("switch-module",{type:s.value})},q=(T,I)=>{w(I)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&v()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:R,closeWay:b,close:H,getTabName:p,nextAreaList:w,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:C,selectedExist:N,clickOverlay:V,handClose:$,handleElevatorItem:q,initCustomSelected:v,...t.toRefs(e),t:a,regionList:h,transformData:S,scrollDom:m}}}),Sw={class:"fox-address"},Cw={class:"fox-address__header"},ww={class:"fox-address__header__title"},Nw={key:0,class:"fox-address__custom"},Bw={class:"fox-address__region",ref:"tabRegion"},Aw=["onClick"],Vw={key:0,class:"active fox-address__region-item"},Tw={key:0,class:"fox-address__detail"},$w={class:"fox-address__detail-list",ref:"scrollDom"},Ew=["onClick"],xw={key:1,class:"fox-address__elevator-group"},Dw={key:1,class:"fox-address__exist"},Iw={class:"fox-address__exist-group"},qw={class:"fox-address__exist-group-list"},Pw=["onClick"],Mw={class:"fox-address__exist-item-info"},Lw={key:0,class:"fox-address__exist-item-info-name"},zw={key:1,class:"fox-address__exist-item-info-phone"},Ow={class:"fox-address__exist-item-info-bottom"},Rw={class:"fox-address__exist-choose-btn"};function Fw(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",Sw,[t.createElementVNode("view",Cw,[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",ww,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",Nw,[t.createElementVNode("view",Bw,[(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:g=>e.changeRegionTab(h,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,S)),1)],10,Aw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",Vw,[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",Tw,[t.createElementVNode("ul",$w,[(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:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,Ew))),128))],512)])):(t.openBlock(),t.createElementBlock("view",xw,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",Dw,[t.createElementVNode("div",Iw,[t.createElementVNode("ul",qw,[(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:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",Mw,[h.name?(t.openBlock(),t.createElementBlock("div",Lw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",zw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Ow,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,Pw))),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",Rw,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 ja=oe(kw,[["render",Fw]]),{componentName:Kw,create:Uw}=J("barrage"),Hw=Uw({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(()=>({[Kw]:!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),d=t.ref(e.top),m=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),m.value=0,g("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{i.value=[],y()});const S=()=>{h.value=l.value.offsetWidth,a&&g("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},g=p=>{let w=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];w&&Array.from(w).forEach(k=>{p=="init"?(k.style.opacity="0",C.push(k)):(k.classList="",k.style={})}),p=="init"&&(i.value=C)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,p=>{e.danmu.length>0&&(i.value=[...p])});const b=p=>{const B=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,p):i.value.splice(B,0,p)},f=()=>{y(),s=setTimeout(()=>{v()},e.frequency)},v=()=>{const p=e.loop?m.value%i.value.length:m.value;let B=document.createElement("view");a&&typeof i.value[p]=="object"?(B=i.value[p],B?.classList?.add("fox-barrage__item")):(B.innerHTML=i.value[p],B.classList.add("fox-barrage__item"),r.value.appendChild(B)),t.nextTick(()=>{const w=B.offsetHeight;if(B?.classList?.add("move"),B.style.animationDuration=`${u}ms`,B.style.top=p%c.value*(w+d.value)+20+"px",B.style.opacity="1",!a){const C=B.offsetWidth;B.style.width=C+20+"px"}B.addEventListener("animationend",()=>{a?B.classList.remove("move"):r.value.removeChild(B)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),B.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:b}}});function jw(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(Hw,[["render",jw]]),{componentName:Ww,create:Yw,scope:Xw}=J("signature"),Qw=Yw({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:{[ze.name]:ze},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Xw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[Ww]:!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 v=document.createElement("canvas");return!!(v.getContext&&v.getContext("2d"))},d=()=>{l.value.addEventListener(i.events[0],m,!1)},m=v=>{v.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],S,!1)},u=v=>{v.preventDefault();let p=i.isSupportTouch?v.touches[0]:v;n("signing",p);let B=l.value.getBoundingClientRect(),w=p.clientX-B.left,C=p.clientY-B.top;i.ctx.lineTo(w,C),i.ctx.stroke()},h=v=>{v.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},S=v=>{v.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},g=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},y=()=>{f(l.value)},b=v=>{if(!v)return!0;var p=document.createElement("canvas");return p.width=v.width,p.height=v.height,v?.toDataURL()==p.toDataURL()},f=v=>{let p;switch(e.type){case"png":p=v.toDataURL("image/png");break;case"jpg":p=v.toDataURL("image/jpeg",.8);break}const B=b(v)?"请绘制签名":v,w=b(v)?"":p;n("confirm",B,w)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:g,classes:s}}}),Gw={class:"fox-signature-inner",ref:"wrap"},Zw=["height","width"],Jw={key:0,class:"fox-signature-unsopport"};function _w(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",Gw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Zw),[[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 Ya=oe(Qw,[["render",_w]]),{componentName:eN,create:tN,scope:nN}=J("time-select"),oN=tN({components:{[pe.name]:pe},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}=ie.useFoxI18n(nN),o=t.computed(()=>({[eN]:!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}}}),lN={class:"fox-time-select__title"},aN={class:"fox-time-select__title__fixed"},rN={key:0},sN={class:"fox-time-select__content"},iN={class:"fox-time-select__content__pannel"},cN={class:"fox-time-select__content__detail"};function uN(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",lN,[t.createElementVNode("view",aN,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",rN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",sN,[t.createElementVNode("view",iN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",cN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Xa=oe(oN,[["render",uN]]),{componentName:dN,create:fN}=J("time-pannel"),mN=fN({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(()=>({[dN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function pN(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 Qa=oe(mN,[["render",pN]]),{componentName:hN,create:gN}=J("time-detail"),yN=gN({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(()=>({[hN]:!0})),s=d=>{let m=l.currentTime.find(u=>u.key==l.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(u=>u===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==l.currentKey).list),c=d=>{n.emit("select",d)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),vN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},bN={class:"fox-time-detail__detail__list"},kN=["onClick"];function SN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",vN,[t.createElementVNode("view",bN,[(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,kN))),128))])])],2)}const Ga=oe(yN,[["render",SN]]),{create:CN,scope:wN}=J("sku-header"),NN=CN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Je.name]:Je},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(wN);return{getSlots:r=>a[r],t:o}}}),BN={class:"fox-sku-header"},AN=["src"],VN={class:"fox-sku-header-right"},TN={key:3,class:"fox-sku-header-right-extra"};function $N(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,AN),t.createElementVNode("view",VN,[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",TN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const EN=oe(NN,[["render",$N]]),{create:xN}=J("sku-select"),DN=xN({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})}}}}),IN={class:"fox-sku-select"},qN={class:"fox-sku-select-item-title"},PN={class:"fox-sku-select-item-skus"},MN=["onClick"];function LN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",IN,[(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",qN,t.toDisplayString(s.name),1),t.createElementVNode("view",PN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,MN))),128))])]))),128))])}const zN=oe(DN,[["render",LN]]),{create:ON}=J("sku-stepper"),RN=ON({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,d)=>{n("overLimit",{action:d,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&ct(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),FN={class:"fox-sku-stepper"},KN={class:"fox-sku-stepper-title"},UN=["innerHTML"],HN={class:"fox-sku-stepper-count"};function jN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",FN,[t.createElementVNode("view",KN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,UN),t.createElementVNode("view",HN,[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 WN=oe(RN,[["render",jN]]),{create:YN}=J("sku-operate"),XN=YN({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]}}}),QN={key:0,class:"fox-sku-operate"},GN={key:0,class:"fox-sku-operate-desc"},ZN={key:1,class:"fox-sku-operate-btn"},JN=["onClick"];function _N(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",QN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",GN,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",ZN,[(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 eB=oe(XN,[["render",_N]]),{create:tB,scope:nB}=J("sku"),oB=tB({props:{...Fe,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:EN,SkuSelect:zN,SkuStepper:WN,SkuOperate:eB,[pe.name]:pe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(nB),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&&y()}),t.onMounted(()=>{});const i=b=>a[b],c=b=>{n("select-sku",b)},d=b=>{s.value=b,n("change-stepper",b)},m=b=>{n("add",b)},u=b=>{n("reduce",b)},h=b=>{n("over-limit",b)},S=b=>{n("click-btn-operate",{type:b,value:s.value})},g=b=>{b=="icon"&&n("click-close-icon"),b=="overlay"&&n("click-overlay"),b=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:S,add:m,reduce:u,getSlots:i,...l}}}),lB={class:"fox-sku"},aB={class:"fox-sku-content"};function rB(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",lB,[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",aB,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Za=oe(oB,[["render",rB]]),{create:sB}=J("card"),iB=sB({components:{[Je.name]:Je,[Jt.name]:Jt},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]}}}),cB={class:"fox-card"},uB={class:"fox-card__left"},dB=["src"],fB={class:"fox-card__right"},mB={class:"fox-card__right__title"},pB={key:0,class:"fox-card__right__price"},hB={class:"fox-card__right__other"},gB={class:"fox-card__right__shop"},yB={class:"fox-card__right__shop__name"};function vB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",cB,[t.createElementVNode("div",uB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,dB)]),t.createElementVNode("div",fB,[t.createElementVNode("div",mB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",pB,[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",hB,[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",gB,[t.createElementVNode("div",yB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ja=oe(iB,[["render",vB]]),{create:bB,scope:kB}=J("ecard"),SB=bB({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}=ie.useFoxI18n(kB),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)},d=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,l.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},m=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:d,inputClick:m,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),CB={class:"fox-ecard"},wB={class:"fox-ecard__title"},NB={class:"fox-ecard__list"},BB=["onClick"],AB={class:"fox-ecard__list__input--con"},VB=["placeholder"],TB={class:"fox-ecard__list__step"};function $B(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",CB,[t.createElementVNode("view",wB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",NB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,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",AB,[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,VB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",TB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const _a=oe(SB,[["render",$B]]),{create:EB,scope:xB}=J("address-list-item"),DB=EB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(xB);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}}}),IB={class:"fox-address-list-item__info"},qB={class:"fox-address-list-item__info-contact"},PB={class:"fox-address-list-item__info-contact-name"},MB={class:"fox-address-list-item__info-contact-tel"},LB={key:0,class:"fox-address-list-item__info-contact-default"},zB={class:"fox-address-list-item__info-handle"},OB={class:"fox-address-list-item__addr"};function RB(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",IB,[t.createElementVNode("div",qB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",PB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",MB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",LB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",zB,[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",OB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const ls=oe(DB,[["render",RB]]),{create:FB}=J("address-list-general"),KB=FB({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:ls,[ze.name]:ze,[Qt.name]:Qt},setup(e,{emit:n}){const a=()=>t.h(ls,{item:e.item,onDelIcon(w){s(w)},onEditIcon(w){i(w)},onClickItem(w){c(w)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=w=>{n("delIcon",w,e.item),w.stopPropagation()},i=w=>{n("editIcon",w,e.item),w.stopPropagation()},c=w=>{l.value||(n("clickItem",w,e.item),w.stopPropagation())},d=w=>{n("longDel",w,e.item),w.stopPropagation()},m=w=>{o=0,r.value=!0,n("longDown",w,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:w=>{o=setTimeout(()=>{m(w)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:w=>{n("longCopy",w,e.item),w.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:w=>{n("longSet",w,e.item),w.stopPropagation()},maskClick:w=>{o!=0&&(r.value=!1),w.stopPropagation(),w.preventDefault()},swipeDelClick:w=>{n("swipeDel",w,e.item),w.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),UB={key:0,class:"fox-address-list-general"},HB={class:"fox-address-list-swipe"};function jB(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(()=>[...n[5]||(n[5]=[t.createTextVNode("删除",-1)])]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",HB,[(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",UB,[(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 WB=oe(KB,[["render",jB]]),{componentName:YB,create:XB,scope:QB}=J("address-list"),GB=XB({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:WB,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(QB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[YB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>vs(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,b)=>{n("delIcon",y,b),y.stopPropagation()},c=(y,b)=>{n("editIcon",y,b),y.stopPropagation()},d=(y,b)=>{n("clickItem",y,b),y.stopPropagation()},m=(y,b)=>{n("longCopy",y,b),y.stopPropagation()},u=(y,b)=>{n("longSet",y,b),y.stopPropagation()},h=(y,b)=>{n("longDel",y,b),y.stopPropagation()},S=(y,b)=>{n("swipeDel",y,b),y.stopPropagation()},g=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:u,clickLongDel:h,clickSwipeDel:S,addAddress:g,dataArray:o,t:a}}});function ZB(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,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick: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 er=oe(GB,[["render",ZB]]),{create:JB}=J("category"),_B=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}}}),e2={class:"fox-category"},t2={class:"fox-category__cateList"},n2={key:0},o2=["onClick"];function l2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",e2,[t.createElementVNode("div",t2,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",n2,[(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,o2)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const tr=oe(_B,[["render",l2]]),{create:a2}=J("category-pane"),r2=a2({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),s2={class:"fox-category-pane"},i2={key:0,class:"fox-category-pane__cateListRight"},c2={class:"fox-category-pane__childTitle"},u2={key:0,class:"fox-category-pane__childItemList"},d2=["onClick"],f2=["src"],m2={class:"fox-category-pane__skuImg"},p2={key:1,class:"fox-category-pane__cateListRight"},h2={class:"fox-category-pane__childTitle"},g2={key:0,class:"fox-category-pane__childItemList"},y2=["onClick"],v2={class:"fox-category-pane__skuName"},b2={key:2,class:"fox-category-pane__selfItemList"},k2=["onClick"];function S2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",s2,[e.type=="classify"?(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",u2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,f2),t.createElementVNode("div",m2,t.toDisplayString(c?.catName),1)],8,d2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",p2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",h2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",g2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",v2,t.toDisplayString(c?.catName),1)],8,y2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",b2,[(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,k2))),128))])):t.createCommentVNode("",!0)])}const nr=oe(r2,[["render",S2]]),{create:C2}=J("comment-header"),w2=C2({components:{[Nt.name]:Nt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),N2={class:"fox-comment-header__user"},B2={class:"fox-comment-header__user-avter"},A2=["src"],V2={class:"fox-comment-header__user-score"},T2={key:0,class:"fox-comment-header__time"};function $2(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",N2,[t.createElementVNode("view",B2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,A2)):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",V2,[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",T2,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 E2=oe(w2,[["render",$2]]),{create:x2}=J("comment-images"),D2=x2({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:d}=e,m=s=="img"?i-c.length:i;n("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:l}}}),I2=["onClick"],q2=["src"],P2=["onClick"],M2=["src"],L2={key:0,class:"fox-comment-images__mask"};function z2(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:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,q2),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,I2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,M2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",L2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,P2)):t.createCommentVNode("",!0)],64))),128))],2)}const O2=oe(D2,[["render",z2]]),{create:R2,scope:F2}=J("comment-bottom"),K2=R2({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}=ie.useFoxI18n(F2),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}}}),U2={class:"fox-comment-bottom"},H2={key:0},j2={class:"fox-comment-bottom__cpx"},W2=["onClick"];function Y2(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",U2,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",H2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",j2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:u=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,W2))),128))])])}const X2=oe(K2,[["render",Y2]]),{componentName:Q2,create:G2,scope:Z2}=J("comment"),J2=G2({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:E2,CommentImages:O2,CommentBottom:X2,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Z2),o=t.computed(()=>({[Q2]:!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}}}),_2=["innerHTML"],eA={class:"fox-comment__follow-title"},tA={class:"fox-comment__follow-com"},nA={key:0,class:"fox-comment__follow-img"};function oA(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,_2),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]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",eA,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",tA,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",nA,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const or=oe(J2,[["render",oA]]),lA=[ml,hl,gl,yl,vl,Ne,eo,kl,Sl,Cl,wl,Nl,oo,Bl,Al,Tl,$l,uo,fo,El,mo,po,xl,Dl,$t,Il,ql,vo,Pl,Ml,tn,nn,ro,Ll,zl,Ol,Rl,st,Fl,Kl,no,to,Ul,Hl,jl,ze,Wl,Yl,dt,pe,Xl,Ql,Gl,Zl,jt,Jl,_l,ea,ta,na,oa,la,aa,ra,Wt,sa,ia,ca,ua,da,fa,ma,Yt,yo,so,co,io,_e,Nt,en,pa,ha,ga,Qt,ya,va,ba,Gt,go,ka,Ca,ho,Et,Na,Ba,Zt,Aa,Va,Xt,Ta,$a,Ea,Bt,xa,Da,At,Vt,Je,bo,Ia,qa,Pa,Jt,_t,Ma,La,za,Oa,Ra,Fa,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga,Za,Ja,_a,er,tr,nr,or],aA=new Ki(lA,"4.0.0");exports.ActionSheet=ya;exports.ActionsheetItem=Pl;exports.ActionsheetPane=vo;exports.Address=ja;exports.AddressList=er;exports.Animate=Fa;exports.Audio=Na;exports.AudioOperate=Ba;exports.Avatar=Zt;exports.AvatarGroup=Aa;exports.BackTop=va;exports.Badge=Pa;exports.Barrage=Wa;exports.Broadcast=ul;exports.BroadcastKey=Ce;exports.Button=ze;exports.ButtonsItem=kl;exports.Calendar=co;exports.CalendarItem=$l;exports.Card=Ja;exports.Cascader=so;exports.CascaderItem=Al;exports.Category=tr;exports.CategoryPane=nr;exports.Cell=Wl;exports.CellGroup=Yl;exports.Checkbox=mo;exports.CheckboxGroup=po;exports.CheckboxItem=xl;exports.CircleProgress=Ta;exports.Col=Gl;exports.Collapse=La;exports.CollapseItem=za;exports.Comment=or;exports.Content=yl;exports.CountDown=qa;exports.CountUp=Ia;exports.DataItemsKey=ht;exports.DateItem=Tl;exports.DatePicker=io;exports.DateUtils=re;exports.Dialog=Gt;exports.Divider=Jl;exports.Domain=Fn;exports.DomainKey=xe;exports.DomainProvider=Hl;exports.Drag=ba;exports.Dropdown=Kl;exports.Ecard=_a;exports.Elevator=Wt;exports.Ellipsis=Ra;exports.Empty=Ea;exports.FixedNav=na;exports.FloatingButton=Ol;exports.FooterBar=gl;exports.FoxActionSheet=ya;exports.FoxActionsheetItem=Pl;exports.FoxActionsheetPane=vo;exports.FoxAddress=ja;exports.FoxAddressList=er;exports.FoxAnimate=Fa;exports.FoxAudio=Na;exports.FoxAudioOperate=Ba;exports.FoxAvatar=Zt;exports.FoxAvatarGroup=Aa;exports.FoxBackTop=va;exports.FoxBadge=Pa;exports.FoxBarrage=Wa;exports.FoxButton=ze;exports.FoxButtonsItem=kl;exports.FoxCalendar=co;exports.FoxCalendarItem=$l;exports.FoxCard=Ja;exports.FoxCascader=so;exports.FoxCascaderItem=Al;exports.FoxCategory=tr;exports.FoxCategoryPane=nr;exports.FoxCell=Wl;exports.FoxCellGroup=Yl;exports.FoxCheckbox=mo;exports.FoxCheckboxGroup=po;exports.FoxCheckboxItem=xl;exports.FoxCircleProgress=Ta;exports.FoxCol=Gl;exports.FoxCollapse=La;exports.FoxCollapseItem=za;exports.FoxComment=or;exports.FoxContent=yl;exports.FoxCountDown=qa;exports.FoxCountUp=Ia;exports.FoxDateItem=Tl;exports.FoxDatePicker=io;exports.FoxDialog=Gt;exports.FoxDivider=Jl;exports.FoxDomainProvider=Hl;exports.FoxDrag=ba;exports.FoxDropdown=Kl;exports.FoxEcard=_a;exports.FoxElevator=Wt;exports.FoxEllipsis=Ra;exports.FoxEmpty=Ea;exports.FoxFixedNav=na;exports.FoxFloatingButton=Ol;exports.FoxFooterBar=gl;exports.FoxGrid=_l;exports.FoxGridItem=ea;exports.FoxGroup=vl;exports.FoxHeaderBar=hl;exports.FoxHintText=$t;exports.FoxImage=Xl;exports.FoxImagePreview=bo;exports.FoxIndicator=ua;exports.FoxInfiniteLoading=go;exports.FoxInputItem=Cl;exports.FoxInputNumber=_e;exports.FoxInputnumberItem=Ml;exports.FoxItem=Ne;exports.FoxLayout=Ql;exports.FoxLinkItem=Il;exports.FoxList=Va;exports.FoxMapping=Ul;exports.FoxMenu=oa;exports.FoxMenuItem=la;exports.FoxMessageBox=st;exports.FoxMoneyItem=wl;exports.FoxMoreButton=Rl;exports.FoxNavbar=ta;exports.FoxNoticeBar=$a;exports.FoxNotify=Ca;exports.FoxNumberKeyboard=ga;exports.FoxOverLay=dt;exports.FoxPage=ml;exports.FoxPagination=sa;exports.FoxPicker=en;exports.FoxPickerItem=Bl;exports.FoxPopover=_t;exports.FoxPopoverDialog=no;exports.FoxPopup=pe;exports.FoxPopupWrapper=Fl;exports.FoxPrice=Je;exports.FoxProgress=Xt;exports.FoxPullRefresh=ka;exports.FoxRadio=uo;exports.FoxRadioGroup=fo;exports.FoxRadioItem=El;exports.FoxRange=Yt;exports.FoxRate=Nt;exports.FoxRateItem=ql;exports.FoxRollingProvider=jl;exports.FoxRow=Zl;exports.FoxRowItem=eo;exports.FoxSearchBar=yo;exports.FoxShortPassword=pa;exports.FoxSideNavBar=da;exports.FoxSideNavBarItem=fa;exports.FoxSignature=Ya;exports.FoxSkeleton=Ma;exports.FoxSku=Za;exports.FoxSlotItem=Sl;exports.FoxStep=Da;exports.FoxSteps=xa;exports.FoxStepsBar=zl;exports.FoxSticky=jt;exports.FoxSubSideNavBar=ma;exports.FoxSwipe=Qt;exports.FoxSwiper=At;exports.FoxSwiperItem=Vt;exports.FoxSwitch=ho;exports.FoxSwitchItem=Dl;exports.FoxTabPane=ca;exports.FoxTabbar=aa;exports.FoxTabbarItem=ra;exports.FoxTable=Oa;exports.FoxTabs=ia;exports.FoxTabsBar=tn;exports.FoxTabsContainer=nn;exports.FoxTabsFrame=Ll;exports.FoxTabsPane=ro;exports.FoxTag=Jt;exports.FoxText=to;exports.FoxTextarea=oo;exports.FoxTextareaItem=Nl;exports.FoxTimeDetail=Ga;exports.FoxTimePannel=Qa;exports.FoxTimeSelect=Xa;exports.FoxToast=Et;exports.FoxTour=Ha;exports.FoxTrendArrow=Ua;exports.FoxUploader=ha;exports.FoxVideo=Bt;exports.FoxWaterMark=Ka;exports.Grid=_l;exports.GridItem=ea;exports.Group=vl;exports.HeaderBar=hl;exports.HintText=$t;exports.Image=Xl;exports.ImagePreview=bo;exports.Indicator=ua;exports.InfiniteLoading=go;exports.InputItem=Cl;exports.InputNumber=_e;exports.InputnumberItem=Ml;exports.Item=Ne;exports.Layout=Ql;exports.LinkItem=Il;exports.List=Va;exports.Mapping=Ul;exports.Menu=oa;exports.MenuItem=la;exports.MessageBox=st;exports.MoneyItem=wl;exports.MoreButton=Rl;exports.Navbar=ta;exports.NoticeBar=$a;exports.Notify=Ca;exports.NumberKeyboard=ga;exports.OverLay=dt;exports.Page=ml;exports.Pagination=sa;exports.Picker=en;exports.PickerItem=Bl;exports.Popover=_t;exports.PopoverDialog=no;exports.Popup=pe;exports.PopupWrapper=Fl;exports.Price=Je;exports.PriorityPolicy=xn;exports.Progress=Xt;exports.PullRefresh=ka;exports.Radio=uo;exports.RadioGroup=fo;exports.RadioItem=El;exports.Range=Yt;exports.Rate=Nt;exports.RateItem=ql;exports.RollingProvider=jl;exports.Row=Zl;exports.RowItem=eo;exports.SearchBar=yo;exports.ShortPassword=pa;exports.SideNavBar=da;exports.SideNavBarItem=fa;exports.Signature=Ya;exports.Skeleton=Ma;exports.Sku=Za;exports.SlotItem=Sl;exports.Step=Da;exports.Steps=xa;exports.StepsBar=zl;exports.Sticky=jt;exports.SubSideNavBar=ma;exports.Swipe=Qt;exports.Swiper=At;exports.SwiperItem=Vt;exports.Switch=ho;exports.SwitchItem=Dl;exports.TabPane=ca;exports.Tabbar=aa;exports.TabbarItem=ra;exports.Table=Oa;exports.Tabs=ia;exports.TabsBar=tn;exports.TabsContainer=nn;exports.TabsFrame=Ll;exports.TabsPane=ro;exports.Tag=Jt;exports.Text=to;exports.Textarea=oo;exports.TextareaItem=Nl;exports.TimeDetail=Ga;exports.TimePannel=Qa;exports.TimeSelect=Xa;exports.Toast=Et;exports.Tour=Ha;exports.TrendArrow=Ua;exports.UniqueID=_n;exports.Uploader=ha;exports.ValidateSchema=ws;exports.ValidateSchemaKey=Le;exports.Video=Bt;exports.WaterMark=Ka;exports.cancelRaf=as;exports.clamp=je;exports.clearNonNumber=Ro;exports.clone=zo;exports.compareTo=Mo;exports.createBroadcast=On;exports.createValidateSchema=Rn;exports.debounce=Pe;exports.debounceRef=$i;exports.decimalLength=ys;exports.default=aA;exports.defineBroadcast=ki;exports.defineConfigDomain=Bs;exports.defineDataItem=As;exports.defineDomain=fl;exports.defineItem=Ae;exports.definePageState=Vs;exports.defineSimpleItem=Tt;exports.deleteGlobalValidator=Bi;exports.disabledProperty=$e;exports.divide=sl;exports.excludeProps=tt;exports.extend=it;exports.floatData=vs;exports.getGlobalIcons=Wn;exports.getGlobalValidateCheckEvents=ks;exports.getGlobalValidateResetEvents=Cs;exports.getPageContentAreaHeight=$n;exports.getPageContentAreaWidth=En;exports.getPageFooterAreaHeight=Hn;exports.getPageHeaderAreaHeight=Un;exports.getRootDomain=vt;exports.hasSymbol=fs;exports.includeProps=ye;exports.indexOf=vi;exports.integerLength=gs;exports.isArray=Mn;exports.isArrayLike=ps;exports.isBrowser=et;exports.isDate=We;exports.isESModule=mi;exports.isEmptyString=ue;exports.isEqual=Ie;exports.isFunction=An;exports.isHidden=zn;exports.isInnerPage=qi;exports.isMap=ui;exports.isNil=il;exports.isNumberString=cl;exports.isObject=De;exports.isPlainObject=Lo;exports.isPromise=kt;exports.isRegExp=Oo;exports.isSet=di;exports.isString=us;exports.isSubPage=Pi;exports.isSymbol=fi;exports.isTouch=lo;exports.isWindow=ms;exports.lastIndexOf=bi;exports.makeArray=yi;exports.merge=hs;exports.multiply=ss;exports.negate=is;exports.nextTick=hi;exports.numberFormat=Pn;exports.objectToString=ds;exports.once=Ei;exports.overrideGlobalIcons=Qi;exports.overrideGlobalValidateHandler=wi;exports.padZero=at;exports.preventDefault=Fo;exports.property=Ve;exports.px2Number=Ii;exports.raf=He;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=Ai;exports.setGlobalValidateHandler=Ci;exports.setGlobalValidateMessages=Ti;exports.setGlobalValidateResetEvents=Vi;exports.setGlobalValidator=Ni;exports.throttle=Tn;exports.toBoolean=be;exports.toNumber=he;exports.toPadding=Re;exports.toPx=de;exports.toPxDesc=Di;exports.toPxString=me;exports.toTypeString=Ln;exports.toValue=Me;exports.tryTimes=dl;exports.typeOf=ct;exports.unNumberFormat=cs;exports.updatePageState=Ko;exports.useBroadcast=zt;exports.useDomain=nt;exports.useExpose=Ee;exports.useInnerSize=jn;exports.usePageState=Kn;exports.usePosition=bl;exports.useRawTouch=ao;exports.useRect=qe;exports.useSize=pl;exports.useTouch=lt;exports.valueLength=ke;
|