@fox-js/foxui 4.0.1-74 → 4.0.1-75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Wed Jan 08 2025 16:22:20 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),lt=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),se=require("@fox-js/i18n"),en=window,ei=typeof window<"u";function ti(){return typeof en<"u"?en.requestAnimationFrame||en.webkitRequestAnimationFrame||function(e){en.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Zr(e){ei?cancelAnimationFrame(e):clearTimeout(e)}const We=ti();/*!
2
+ * @fox-js/foxui-base v4.0.0 Tue Jan 21 2025 10:42:49 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),ot=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),se=require("@fox-js/i18n"),en=window,ei=typeof window<"u";function ti(){return typeof en<"u"?en.requestAnimationFrame||en.webkitRequestAnimationFrame||function(e){en.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Jr(e){ei?cancelAnimationFrame(e):clearTimeout(e)}const Ye=ti();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function Cn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Be(e),n=Be(n),[e,n]=_o(Be(e),Be(n)),a==1&&(o==1?e=go(e):n=go(n));let l=Jr(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(go(l)):Be(l)}function go(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Jr(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 _o(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 Jr(e,n){[e,n]=_o(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 ke=(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))(ke||{});function Kt(e,n=0,a=ke.HALF_EVEN){if(a===ke.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],i=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)+i,c=Kt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Za(l[1],r,o,a)?(o?"-":"")+yo(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");i=l[1].substring(0,n);let s=l[1].substring(n);return s&&Za(s,i,o,a)&&(i=yo(i),i.length>n)?(o?"-":"")+yo(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function Za(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===ke.DOWN||!a&&o===ke.FLOOR||a&&o===ke.CEILING)return!1;if(o===ke.UP||a&&o===ke.FLOOR||!a&&o===ke.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 ke.HALF_DOWN:return!1;case ke.HALF_UP:return!0;case ke.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function yo(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 Vo(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=$t(e),n=$t(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=$t(e.replace(".","")),n=$t(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let i=n.length,s=0,c=[],d=i-1,f="";for(let u=0;u<i;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let k=n.length-1;k>=d&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(h+=parseInt(e[c[k]--])*parseInt(n[k]));h+=s,s=Math.floor(h/10),f=h%10+f,d--}return f=$t(ni(f,r)),a==1&&(f="-"+f),f}function ni(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 $t(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 To(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 f=e.length-d+l;e=Be(e.substring(0,f)+"."+e.substring(f))}else l==d&&(e=Be(e.replace(".","")))}let r=0,i=n.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(d+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=d,s="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Cn(c,"-"+n),d++;s+=d,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+Be(Kt(s,a-2))}function $o(e,n){return e=e.toString(),n=n.toString(),n=Eo(n),Cn(e,n)}function Eo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ja(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),_a(e),_a(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=$o(e,Vo(n,Kt(To(e,n),0,ke.FLOOR)));return a+o}function _a(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(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]=_o(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ie{value;static RoundingModes=ke;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=ie.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ie.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=0?o:"")+i;return(l?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return ie.getPrettyValue(this.value,n,a)}static round(n,a=0,o=ke.HALF_EVEN){if(n=ie.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Kt(n,a,o)}round(n=0,a=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ie(Kt(this.value,n,a))}static floor(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,ke.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,ke.FLOOR)}static ceil(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,ke.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,ke.CEILING)}static add(n,a){return n=ie.validate(n),a=ie.validate(a),Cn(n,a)}add(n){return new ie(Cn(this.value,n.getValue()))}static subtract(n,a){return n=ie.validate(n),a=ie.validate(a),$o(n,a)}subtract(n){return new ie($o(this.value,n.getValue()))}static multiply(n,a){return n=ie.validate(n),a=ie.validate(a),Vo(n,a)}multiply(n){return new ie(Vo(this.value,n.getValue()))}static divide(n,a,o){return n=ie.validate(n),a=ie.validate(a),To(n,a,o)}divide(n,a){return new ie(To(this.value,n.getValue(),a))}static modulus(n,a){return n=ie.validate(n),a=ie.validate(a),Ja(n,a)}modulus(n){return new ie(Ja(this.value,n.getValue()))}static compareTo(n,a){return n=ie.validate(n),a=ie.validate(a),er(n,a)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=ie.validate(n),Eo(n)}negate(){return new ie(Eo(this.value))}}function _r(e,n){return ie.multiply(`${e}`,`${n}`)}function el(e,n,a=8){return ie.divide(`${e}`,`${n}`,a)}function xo(e,n){return e=`${e}`,n=`${n}`,ie.compareTo(e,n)}function es(e){return ie.negate(e)}function Dn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",d=r.indexOf(".");d!=-1&&(s=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 f;if(o>0){let u="",h=s.split("").reverse();for(let k=0;k<h.length;k++)u+=h[k]+((k+1)%o==0&&k+1!=h.length?l:"");c.length==0?f=`${i}${u.split("").reverse().join("")}`:f=`${i}${u.split("").reverse().join("")}.${c}`}else c.length==0?f=`${i}${s}`:f=`${i}${s}.${c}`;return f}function ts(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Ze=typeof window<"u",Ke=We;function ns(e){return e==null}const In=Array.isArray,oi=e=>qn(e)==="[object Map]",li=e=>qn(e)==="[object Set]",He=e=>e instanceof Date,wn=e=>typeof e=="function",os=e=>typeof e=="string",ai=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",vt=e=>De(e)&&wn(e.then)&&wn(e.catch),ls=Object.prototype.toString,qn=e=>ls.call(e),Do=e=>qn(e)==="[object Object]",as=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ri(e){return e.__esModule||as&&e[Symbol.toStringTag]==="Module"}const si=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function st(...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 i in r){let s=n[i],c=r[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=st(l,d,c)}else c!==void 0&&(n[i]=c)}}return n}function Io(e,n,a=!1){if(!a)st(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Do(i))continue;r=Io(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Do(i))continue;r=Io(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}}return e}const vo=si?Promise.resolve():null;function ii(e,...n){vo!==null?n&&n.length>0?vo.then(()=>{e(n)}):vo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const ci={"[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 it(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ci[a]||"object"}function Mn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function rs(e){return e&&typeof e=="object"&&"setInterval"in e}function ss(e){let n=!!e&&"length"in e&&e.length,a=it(e);return a==="function"||rs(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function is(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 ui(e,n=[]){let a=n;return e!=null&&(ss(Object(e))?is(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=it(e),o=it(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 i=0;i<l.length;i++){let s=l[i],c=e[s],d=n[s];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],i=n[l];if(!Ie(r,i))return!1}return!0}return!1}function qo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function tl(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 cs(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 us(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function tr(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function Mo(e,n=!0,a=!0){n?e=tr(e,".",/\./g):e=e.replace(/\./g,""),a?e=tr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function di(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Ie(e,a))return!0}):n.indexOf(e)}function fi(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 ve(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Je(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 ds=(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 Po(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const ot=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,a)=>Math.min(Math.max(e,n),a),Se=Symbol.for("BroadcastKey");class nl{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==="+"||qo(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 i=this.proxy??{};typeof i[a]=="function"&&(l=Reflect.apply(i[a],i,[...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 i=n.resolve,s=n.uniqueId??"",c=(...d)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...d)};n.resolve=c}n.cachePolicy="None"}let l=!1;!n.name||n.name==="*"?l=!0:n.name==="+"?(l=!1,n.name="*"):qo(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 i=this.callbacks.get(a);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[a]=="function"){const c=Reflect.apply(s[a],s,[...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(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),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,i=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...c)};n.resolve=s}n.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(n,a){this.callbacks.set(n,a)}}function Pn(e,n,a,o){const l=new nl(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function mi(e,n,a){const o=a;if(o[Se])return o[Se];const l=t.inject(Se,null),r=new nl(l,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[Se]=r,t.provide(Se,r),t.onUnmounted(()=>{r.destroy(),o[Se]=void 0}),r}function Pt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}const at=e=>e.default??e;class pi{error(n,a){const o=a,l=a||t.hasInjectionContext()?Pt(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()?Pt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?Pt(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()?Pt(o):null,i=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let zt=new pi;function hi(e){zt=e}function gi(e){zt?Object.assign(zt,e):zt=e}function yi(e,n){at(lt).setValidator(e,n)}function vi(e){at(lt).deleteValidator(e)}let fs=["blur","clear"];function bi(e){fs=e}function ms(){return fs}let ps=["focus","change","setValue"];function ki(e){ps=e}function hs(){return ps}function Si(e){at(lt).messages(e)}function Et(...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 tn(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 Pe=Symbol("ValidateSchemaKey");class gs{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=tn(Et(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=tn(o);const l=Et(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=zt;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?at(lt).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?at(lt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return at(lt).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=Et(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=tn(n):this.rules=tn([n]);const o=Et(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=Et(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),i={[`${o}`]:r},s=at(lt),c=new s(l),d=this.proxy??i;return c.validate(i,{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 Ln(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 gs(n,a,e)}const Nn=Symbol.for("EventEmitterKey");class ys{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 Ye(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Bn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function Ci(e,n){const a=Ye((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function wi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function ol(e,n,a,o=0,l=!0){let r=n,i=0;if(l){const c=e();if(i++,c||i>a)return}const s=()=>{const c=e();i++,!(c||i>a)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const xe=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class zn{_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 Ni=new zn;function gt(){return Ni}function _e(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const bo=Symbol("OriginalDateKey");function ll(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,i=t.inject(xe,null);i===null&&(i=gt());const s=e||n.prop||n.name;let c=new zn(s);c.parent=i;const d=y=>{r[bo]||h(y),c?.set("modelValue",y)},f=()=>c?.getForSelf("modelValue")??null,u=()=>r[bo]??null,h=y=>{const b={};st(!0,b,t.toRaw(y)),r[bo]=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 k=(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(Se,null),b=Pn(r,y,s,o);c.broadcast=b,r[Se]=b,t.provide(Se,b),r.broadcast=(p,N,...w)=>Reflect.apply(b.emit,b,[p,N,...w]);const m=t.inject(Pe,null),v=Ln(r,m,{componentName:""});c.validateSchema=v,r[Pe]=v,t.provide(Pe,v),r[mt]=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=b?.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 V=bs(c,B,A,b,v);r[mt].set(B,V);const $=p[B];$&&V.validateSchema.setRule($)}});return}if(N){const C=Reflect.ownKeys(p),S={name:B=>C.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"};b?.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&&b?.emitToChildren(N,"clearValidate",!1)},r.resetFields=p=>{const N=f();if(!N)return;const w={};if(st(!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===s)d(p);else{const w={name:N,messagingPolicy:"Once"};b?.emitToChildren(w,"setModelValue",p)}},r.getModelValue=()=>f(),r.setDomainProperty=(p,N)=>{k(p,N)},r.getDomainProperty=p=>g(p),setTimeout(function(){b?.pull()},0)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Pe]=void 0,t.provide(Pe,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Se]=void 0,t.provide(Se,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[mt]&&(r[mt].clear(),r[mt]=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 vs(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=gt());const i=e||n.prop||n.name;let s=new zn(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s?.merge(c,a)},{immediate:!0}):s.merge(n,a),l[xe]=s,t.provide(xe,s),t.onUnmounted(()=>{s?.destroy(),l[xe]=void 0,t.provide(xe,null),s=null,l=null}),s}function Ae(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Se,null);let s=Pn(l,i,r,a);l[Se]=s,t.provide(Se,s),l.broadcast=(g,y,...b)=>s?Reflect.apply(s.emit,s,[g,y,...b]):null;const c=t.inject(Pe,null);e.fieldName=e.fieldName??r;let d=Ln(l,c,e);l[Pe]=d,t.provide(Pe,d),l.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const y=[];let b=!1,m=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)m=!0,b=!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&&Mn(l.$el)?m=!1:(Array.isArray(v.include)&&v.include.indexOf(r)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(r),m=!0),b=v.deep??!1}else typeof g=="boolean"&&(b=g),m=!0;if(m){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 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&&s){const N=s.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 b=g[r];if(b&&d?.setRule(b),y&&s){const m={name:v=>Reflect.ownKeys(g).includes(v)};s.emitToChildren(m,"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:m=>m?b.indexOf(m)!==-1:!1}}else if(g!=null&&typeof g=="object"){const b=g;if(Array.isArray(b.include)&&b.include.length>0){const m=b.include;y={name:v=>v?m.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const m=b.exclude;y={name:v=>v?m.indexOf(v)===-1:!1}}else y={name:"*"}}y&&s&&s.emitToChildren(y,"clearValidate",!1)};let f=new ys(l);l[Nn]=f;const u=Ye((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ms()).forEach(g=>{f&&f.on(g,y=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:hs()).forEach(g=>{f&&f.on(g,y=>{u("reset")})}),setTimeout(function(){s?.pull()},0),t.onUnmounted(()=>{s?.destroy(),l[Se]=void 0,t.provide(Se,null),s=null,d?.destroy(),l[Pe]=void 0,t.provide(Pe,null),d=null,f?.destroy(),l[Nn]=void 0,f=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:s,validateSchema:d,emitEvent:(g,...y)=>{f&&Reflect.apply(f.emit,f,[g,...y])},onEvent:(g,y)=>{f&&Reflect.apply(f.on,f,[y])},offEvent:(g,y)=>{f&&Reflect.apply(f.off,f,[y])}}}function bs(e,n,a,o,l){const r={},i=n??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};a.fieldName=i,a.validateHandler={getValue(f){return s.getValue()}};let c=Ln({},l,a);r.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,k=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)k=!0,h=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),k=!0,h=g.deep??!1}else typeof f=="boolean"&&(h=f),k=!0;if(k&&c){const g=c.validate();u.push(g)}if(h){let g=null;const y={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const b=f;g={name:m=>m?b.indexOf(m)!==-1:!1}}else if(f!=null&&typeof f=="object"){const b=f;if(Object.assign(y,b),Array.isArray(b.include)&&b.include.length>0){const m=b.include;g={name:v=>v?m.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const m=b.exclude;g={name:v=>v?m.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=f=>c?.setRule(f),r.setNameValidateRules=f=>{const u=f[i];u&&c?.setRule(u)};let d=Pn(null,o,i,r);return t.onUnmounted(()=>{c=null,d=null}),{broadcast:d,validateSchema:c}}function At(){let n=t.getCurrentInstance()?.proxy,a=new ys(n);return n[Nn]=a,t.onUnmounted(()=>{a?.destroy(),n[Nn]=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 he=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(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}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 Bi(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const Xe="PageStateKey";function Oe(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 Lo(e,n,a={},o=!0,l=-1,r=-1,i=0,s=0){if(e.headerHeight=de(a.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=de(a.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=de(c,r):e.height=de(r)-de(i,r)-de(s,r),e.width=de(a.width??n.width??0,l)}}function ks(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 i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Lo(o,r,n,!0,i,s,c,d);const f=t.reactive(o),u=e.getForParent(Xe);u&&(o.height=An(e,u),o.width=Vn(e,u),t.watch([()=>An(e,u),()=>Vn(e,u)],([k,g])=>{f.height=k,f.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")],([k,g,y=-1,b=-1,m=0,v=0])=>{Lo(f,g,n,h,y,b,m,v)}),e.set(Xe,f),f}function On(e){return e.get(Xe)}function Rn(e,n){if(n=n??e.get(Xe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Fn(e,n){if(n=n??e.get(Xe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function An(e,n){if(n=n??e.get(Xe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Rn(e,n),o=Fn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Vn(e,n){return n=n??e.get(Xe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ai(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function Vi(e){return!!e.getForParent(Xe)}var Tn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Tn||{});function nn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=_e();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(nn(c,o))return c}const i=e.value;return nn(i,o)?i:null}):t.computed(()=>{const r=e.value;if(nn(r,o))return r;const i=l.getAll(n);for(let s=0;s<i.length;s++){const c=i[s];if(nn(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 i=t.ref(r);return t.watch(l,s=>{if(typeof a=="function"){const c=a(s);c!==i.value&&(i.value=c,o&&o("setValue",c))}else s!==i.value&&(i.value=s,o&&o("setValue",s))}),i}const Ss=new Map,$n=new Map;let zo=null;function Ti(e){zo=e}function Cs(e,n,a){if(a){let o=$n.get(a);o||(o=new Map,$n.set(a,o)),o.set(e,n)}else Ss.set(e,n)}function et(e,n,a){!a&&zo&&(a=zo(e)??void 0);let o=null;if(a){let l=$n.get(a);l&&(o=l.get(n))}return o||(o=Ss.get(n)),o}function $i(e,n){for(let a in e){const o=e[a];Cs(a,o,n)}}function Ei(e){$n.delete(e)}function xi(){return{top:0,left:0,bottom:0,right:0}}function Di(){if(Ze){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 Ii(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class qi{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 i=Ii(r.name,a);n.component(i,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=gt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Bn(()=>{const s={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=d,this.initPageLayout(s,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=st({},xi(),n.safeAreaInset),i=Di(),s=st({},i.pageLayout,n.pageLayout);a=a??gt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ti(n)}setAPI(n,a,o){Cs(n,a,o)}getAPI(n,a,o){return et(n,a,o)}batchSetAPI(n,a){$i(n,a)}clearScopeAPI(n){Ei(n)}getRootDomain(){return gt()}}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 Mi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(os(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",i=e.id||new Date().getTime();l.id=r+i;let s={};wn(n.wrapper)?s=n.wrapper(a,l):s=n.wrapper;const c=t.createApp(s,e),d=n.components;return d&&d.forEach(f=>{c.use(f)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},ws=(e,n)=>e?t.h(e,n):"";function Ee(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={disabled:{type:[Boolean,String],required:!1,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}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Ns={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Bs={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}},As=[];for(const e in Bs)As.push(e);const Pi=Symbol.for("InnerPageScopeKey"),Li={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}},zi=(e,n)=>({inheritAttrs:!0,props:{...pe,...Ns,...Li},setup(a,{slots:o}){const l=ll(a.name,a),r=t.inject(Pi,!1);if(l){const f=ks(l,a);Ee({getPageContentHeight:()=>An(l,f),getPageContentWidth:()=>Vn(l,f),getPageHeaderHeight:()=>Rn(l,f),getPageFooterHeight:()=>Fn(l,f)}),f&&r&&(f.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),c=t.getCurrentInstance(),d=(f,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(f,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([f,u],[h,k])=>{if(f&&h){const g=t.toRaw(h),y=t.toRaw(f),b=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{b.includes(v)||(y[v]=[])}),d(y)}if(u&&k){const g=t.toRaw(k),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 f=t.toRaw(a.rules);d(f)}if(a.pureDataRules){const f=t.toRaw(a.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return t.h("div",f,[o?.default?.()])}}}),{componentName:Oi,create:Ri,scope:HA}=J("page"),al=Ri(zi(Oi));function rl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Kn(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")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-i}}const Fi=Symbol.for("InnerPageScopeKey"),Vs={headerbar:{},radio:{},checkbox:{}};function Ki(e){Object.assign(Vs,e)}function Un(){return Vs}const Ui=(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 i=_e(),s=i?On(i):null,c=t.inject(Fi,!1),d=Un(),f=e,u=t.computed(()=>{const q={[f]:!0,[`${f}--border`]:l.border,[`${f}--fixed`]:l.fixed};return c||(q[`${f}--safe-area-inset-top`]=l.safeAreaInsetTop),q}),h=t.computed(()=>({[`${f}__inner`]:!0,[`${f}__inner--${l.align}`]:!0})),k=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(i&&s){const F=Oe(l.padding??s.headerPadding);return Object.assign(q,F),k&&(s.headerHeight=k),s.headerHeight>0&&(q.height=s.headerHeight),q.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,q.safeAreaTop>0&&(q.top=q.safeAreaTop+(F.top??0),q.height&&q.height>0&&(q.height=q.height+q.safeAreaTop)),q}if(k&&(q.height=k),l.padding){const F=Oe(l.padding);Object.assign(q,F)}return q}),y=t.ref(null),b=()=>{if(s&&y.value&&!Mn(y.value)){if(!o){const q=rl(y.value);s.headerAllHeight=q.height}return s.headerMounted=!0,!0}return!1};let m=null;t.onMounted(()=>{s&&(ol(b,50,5,50,!0),window.ResizeObserver&&y.value&&(m=new window.ResizeObserver(()=>{b()}),m.observe(y.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,m&&(m.disconnect(),m=null))});const v=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}),p=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function N(){r.emit("back")}function w(){r.emit("click-title")}function C(){r.emit("click-right")}function S(){r.emit("click-right-text")}const B=()=>{if(!l.leftShow)return null;const q=[];if(r.slots.left)q.push(r.slots.left());else{if(r.slots.leftIcon){const F=t.h("view",{class:"left-icon",onClick:N},[r.slots.leftIcon()]);q.push(F)}else{const F=l.leftIcon??d.headerbar.Left??a,x=t.h("view",{class:"left-icon",onClick:N},[t.h(F)]);q.push(x)}if(l.leftText){const F=t.h("view",{class:"left-text",onClick:N},[l.leftText]);q.push(F)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__left"},q)},A=()=>{if(!l.rightShow)return null;const q=[];if(r.slots.right)q.push(r.slots.right());else{if(l.rightText){const F=t.h("view",{class:"right-text",onClick:S},[l.rightText]);q.push(F)}if(r.slots.rightIcon){const F=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);q.push(F)}else if(l.rightIcon){const F=t.h("view",{class:"right-icon",onClick:C},[t.h(l.rightIcon)]);q.push(F)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__right"},q)},V=()=>{if(!l.titleShow)return null;const q=[],F=r.slots.default?r.slots.default():null;if(F)q.push(F);else{if(l.title){const x=t.h("view",{class:"title-text"},[l.title]);q.push(x)}if(r.slots.titleIcon){const x=t.h("view",{class:"title-icon",onClick:w},[r.slots.titleIcon()]);q.push(x)}else if(l.titleIcon){const x=t.h("view",{class:"title-icon",onClick:w},[t.h(l.titleIcon)]);q.push(x)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__title"},q)},$=()=>{const q=[],F=r.slots.bottom?r.slots.bottom():null;return F&&q.push(F),q.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},q)};return()=>{if(!p.value)return null;const q=[];if(r.slots.all)q.push(r.slots.all());else{const x=[],T=B();T&&x.push(T);const P=V();P&&x.push(P);const E=A();if(E&&x.push(E),x.length>0){const H=t.h("view",{class:h.value},x);q.push(H)}const j=$();j&&q.push(j)}if(q.length===0)return null;const F={class:u.value,style:v.value,ref:y};return t.h("view",F,q)}}}),{componentName:Hi,create:ji,scope:Wi}=J("header-bar"),sl=ji(Ui(Hi,Wi,oe.Left,!1)),Yi=Symbol.for("InnerPageScopeKey");function Xi(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=_e(),i=r?On(r):null,s=t.inject(Yi,!1),c=e,d=t.computed(()=>{const b={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return s||(b[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),b}),f=o.height!==null&&o.height!==void 0?de(o.height):null,u=t.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const m=Oe(o.padding??i.footerPadding);return Object.assign(b,m),f&&(i.footerHeight=f),i.footerHeight>0&&(b.height=i.footerHeight),b.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,b.safeAreaBottom>0&&(b.bottom=b.safeAreaBottom+(m.bottom??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)),b}if(f&&(b.height=f),o.padding){const m=Oe(o.padding);Object.assign(b,m)}return b}),h=t.ref(null),k=()=>{if(i&&h.value&&!Mn(h.value)){if(!a){const b=rl(h.value);i.footerAllHeight=b.height}return i.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{i&&(ol(k,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{k()}),g.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,g&&(g.disconnect(),g=null))});const y=t.computed(()=>{const b={};return u.value.height!==null&&u.value.height!==void 0&&(b.height=he(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(b.paddingTop=he(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(b.paddingLeft=he(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(b.paddingRight=he(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(b.paddingBottom=he(u.value.bottom)),b});return()=>{const b=l.slots.default?l.slots.default():[],m={ref:h,class:d.value,style:y.value};return t.h("view",m,b)}}}}const{componentName:Qi,create:Gi,scope:Zi}=J("footer-bar"),il=Gi(Xi(Qi,Zi,!1));function Ji(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:o,attrs:l}){const r=_e(),i=t.computed(()=>({[e]:!0})),s=r?On(r):null,c=t.computed(()=>{const h={};if(r&&s){if(a.padding){const N=Oe(a.padding);Object.assign(s.contentPadding,N)}const k=Rn(r,s),g=Fn(r,s);let y="";s.contentHeight?y=`${s.contentHeight}`:y=`${s.height}px`,console.debug("[content]page height:",y),console.debug("[content]header height:",k),console.debug("[content]footer height:",g),console.debug("[content]padding:",s.contentPadding),h.height=y;let b=(s&&s.contentPadding&&s.contentPadding.top)??-1;(b>=0||k>0)&&(b=b<0?0:b,h.paddingTop=`${k+b}px`);let m=(s&&s.contentPadding&&s.contentPadding.bottom)??-1;(m>=0||g>0)&&(m=m<0?0:m,h.paddingBottom=`${g+m}px`);const v=(s&&s.contentPadding&&s.contentPadding.left)??-1;v>=0&&(h.paddingLeft=`${v}px`);const p=(s&&s.contentPadding&&s.contentPadding.right)??-1;return p>=0&&(h.paddingRight=`${p}px`),h}if(a.padding){const k=Oe(a.padding);k.left&&(h.paddingLeft=`${k.left}px`),k.top&&(h.paddingTop=`${k.top}px`),k.right&&(h.paddingRight=`${k.right}px`),k.bottom&&(h.paddingBottom=`${k.bottom}px`)}return h}),d=t.ref(null),f=Ye(()=>{if(s&&d.value){const h=Kn(d.value);s.contentInnerHeight=h.height,s.contentInnerWidth=h.width}},0);let u=null;return t.onMounted(()=>{f(),window.ResizeObserver&&d.value&&(u=new window.ResizeObserver(()=>{f()}),u.observe(d.value))}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)}),()=>{const h=a.tag??"view",k={...l,ref:d,class:i.value,style:c.value};return t.h(h,k,o)}}}}const{componentName:_i,create:ec,scope:jA}=J("content"),cl=ec(Ji(_i)),bt="GroupStateKey",Ts=Symbol.for("GroupScopeKey");function Hn(){return t.inject(Ts,!1)}function jn(e=!0){t.provide(Ts,e)}function tc(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];ns(l)||(e[o]=l)})}function nc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};tc(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(bt,r),r}function ko(e,n,a=-1,o=-1,l=!1,r,i,s){const c=e.get(bt);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),i||(i=d.maxItemWidth??-1);const f=de(r),u=de(i);s||(s=d.type??"grid");const h=()=>{const k=n===""||n===-1,g=de(n);let y=me(a);const b=de(o);if(!k){let p=(g-(y-1)*b)/y;for(;u!==-1&&p>u;)y++,p=(g-(y-1)*b)/y;for(;f!==-1&&y>1&&p<f;)y--,p=(g-(y-1)*b)/y}let m=!1;const v=c.layout;v.value.width=n,v.value.column!==y&&(v.value.column=y,m=!0),v.value.gutter!==b&&(v.value.gutter=b,m=!0),v.value.type!==s&&(v.value.type=s,m=!0),m&&t.triggerRef(v)};if(l)h();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&h()},50)}}function Wn(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.layout}function Yn(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.order}function nr(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function Xn(e,n,a=1,o=0,l){const r={};let i=0;l?i=de(l):i=nr(n.column,a),i>0&&(r.width=`${i}%`);const s=nr(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Qn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=me(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=me(o)%n.column;let i=(e.index+r)%n.column,s=i+l;return s>n.column?(i=0,s=i+l,e.index=e.index+(n.column-i)+l):e.index=e.index+r+l,r>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const $s=Symbol("RollingStateKey");function oc(e){t.provide($s,e)}function lc(){return t.inject($s,null)}function Oo(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 ac(e){let n=Oo(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=Oo(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function rc(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const sc={...pe,...Ns,...Bs};function ic(e,n,a){return{props:sc,emits:["update:collapse","header-click"],setup(o,l){const r=ll(o.prop??o.name,o,As),i=nc(r,{type:o.type}),s=Hn();jn(!0);const c=o.rollingDisplay?lc():null,d=t.ref(null),f=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>s&&r?Wn(r,!0).value:null),h=t.getCurrentInstance(),k=(z,W=!1)=>{const X=h?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(z,!0,W)};t.watch([()=>o.rules,()=>o.pureDataRules],([z,W],[X,K])=>{if(z&&X){const G=t.toRaw(X),ee=t.toRaw(z),le=ee?Reflect.ownKeys(ee):[];(G?Reflect.ownKeys(G):[]).forEach(ce=>{le.includes(ce)||(ee[ce]=[])}),k(ee)}if(W&&K){const G=t.toRaw(K),ee=t.toRaw(W),le=ee?Reflect.ownKeys(ee):[];(G?Reflect.ownKeys(G):[]).forEach(ce=>{le.includes(ce)||(ee[ce]=[])}),k(ee,!0)}},{deep:!0});const g=e,y=t.computed(()=>{const z={};if(z.height=T.value,o.width)o.width!=="auto"&&(z.width=he(o.width));else{const W=s?Yn(r,!0):null;if(u.value&&W){if(u.value.type==="grid"){const X=Qn(W,u.value,o.span,o.offset);Object.assign(z,X)}else if(u.value.type==="flow"){const X=Xn(W,u.value,o.span,o.offset,o.width);Object.assign(z,X)}}}return z}),b=t.computed(()=>{const z=i.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}}),m=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const X=rc(B.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),v=t.toRef(o,"gutter"),p=t.toRef(o,"column"),N=t.computed(()=>s||f.value?!0:ye(o.isWrap)),w=[],C=z=>{w.push(z)},S=()=>{let z=w.length;w.splice(0,z)},B=t.ref(-1),A=z=>{const W=Kn(z).width;W>0&&W!==B.value&&(B.value=W)};ko(r,B.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,p,v],([z,W,X])=>{i.order.index=0,ko(r,z,W,X,!1,o.minItemWidth,o.maxItemWidth,o.type)});const V=t.computed(()=>P.value?o.expandText??"":o.collapseText??""),$=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),F=t.ref(),x=t.ref(),T=t.computed(()=>E.value||he(o.height)||""),P=t.ref(!1),E=t.ref(""),j=t.ref(!1);let H=-1;const O=(z,W=!0)=>{const X=F.value;if(X&&P.value!==z){if(H=H<=0?ac(X):H,j.value=!0,W)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",z||(E.value="",j.value=!1)},z){let K=0;o.collapseHeight?K=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(K=x.value.offsetHeight),E.value=`${H}px`,t.nextTick(()=>{E.value=`${K}px`})}else E.value=`${H}px`;else if(z){let K=0;o.collapseHeight?K=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(K=x.value.offsetHeight),E.value=`${K}px`}else j.value=!1,E.value=`${H}px`;P.value=z,l.emit("update:collapse",z)}};t.watch(()=>o.collapse,z=>{O(z)});const _=z=>{l.emit("header-click",z)},U=()=>{I()},I=z=>{z=z??!P.value,O(z)};Ee({toggleCollapse:I,doLayout:()=>{w[0]&&(A(w[0]),ko(r,B.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let D=null,Y=!0;const L=z=>{if(o.rules){const W=t.toRaw(o.rules);k(W)}if(o.pureDataRules){const W=t.toRaw(o.pureDataRules);k(W,!0)}if(Ze&&(z&&O(ye(o.collapse),!1),o.autoLayout&&Array.isArray(w)&&w.length>0)){const W=w[0];A(W),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{A(W)}),D.observe(W))}},R=()=>{D?.disconnect(),D=null},Z=!f.value||c?.acquire();Z&&(d.value=f.value?!0:null),t.onMounted(()=>{if(Z&&(L(Y),Y=!1),f.value&&c){let z=null,W=c.initialHeight;c.observe(F.value,X=>{if(X!==d.value)if(X)d.value=!0,P.value||(E.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(L(Y),Y=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!P.value)if(Y)E.value=c.initialHeight;else{let K=Oo(F.value);K<=0?E.value=W:(E.value=`${K}px`,W=E.value)}Y||R()}})}}),t.onUnmounted(()=>{D?.disconnect(),c&&c.unobserve(F.value)});const Q=(z="right")=>{const W=[];if(V.value){const ee={class:$.value},le=t.h("span",ee,[V.value]);W.push(le)}const X={class:q.value},K=o.collapseIcon??a,G=t.h(K,X);return W.push(G),W.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:U},W):null},te=(z,W,X,K)=>{const G={...b.value};return W===0&&(G[`${g}__first`]=!0),X>=K-1&&(G[`${g}__last`]=!0),t.h("div",{ref:C,key:`${W}`,class:G,style:m.value},z)};return()=>{if(f.value&&d.value!==!0){const G=o.tag||"div";return t.h(G,{ref:F,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:y.value},[])}i.order.index=0;const z=[];let W=0;if(l.slots.header){const G={key:`${W++}`,ref:x,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:_},ee=t.h("div",G,[l.slots.header()]);z.push(ee)}else{const G=[],ee=o.collapsePosition==="left";if(ee&&o.showCollapse){const le=Q("left");le&&G.push(le)}if(o.title||l.slots.title){if(o.showMark){const le={class:{[`${g}__header-mark`]:!0}};o.markColor&&(le.style={background:o.markColor});const re=t.h("div",le);G.push(re)}if(l.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);G.push(le)}else if(o.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.title]);G.push(le)}}if(l.slots.toolbar&&G.push(l.slots.toolbar()),!ee&&o.showCollapse){const le=Q("right");le&&G.push(le)}if(G.length>0){const le={key:`${W++}`,ref:x,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:_},re=t.h("div",le,G);z.push(re)}}S();const X=l.slots.default?l.slots.default():[],K=i.layout.value.type;if(K==="grid"){const G=te(X,W++,0,X.length);z.push(G)}else if(K==="flow"){const G=te(X,W++,0,X.length);z.push(G)}else for(let G=0;G<X.length;G++){const ee=X[G],le=te([ee],W++,G,X.length);z.push(le)}if(N.value){const G=o.tag||"div";return t.h(G,{ref:F,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:y.value},[z])}else return z}}}}const{componentName:cc,create:uc,scope:dc}=J("group"),ul=uc(ic(cc,dc,oe.RectUp));function fc(e){return e===window}const mc=/matrix\((.+)\)/,dl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(fc(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,i=0,s=0,c=0;for(l=n;l!==document;){i+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const f=mc.exec(d);if(f){let h=f[1].split(/\s*,\s*/);h.length==6&&(s+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=i,a+=s,o+=c,{x:a,y:o}};class pc{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 hc{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 pc,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 Ot=new hc,Es={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:gc,create:yc}=J("price"),vc=yc({props:{...Es},setup(e){const n=t.computed(()=>({[gc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ve(e.price)==0?"":Dn(e.price,e.decimalLength,!0,me(e.digits),e.separator)),l=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),ne=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},bc=["innerHTML"],kc=["innerHTML"];function Sc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,bc)):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,kc)):t.createCommentVNode("",!0)],2)}const Qe=ne(vc,[["render",Sc]]),{componentName:So,create:Cc}=J("hint-text"),wc=Cc({components:{Price:Qe},props:{...Es,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),i=t.ref(e.placement),s=t.ref(!1),c=t.ref(null),d=($,q,F,x,T,P)=>{const E=document.documentElement.clientWidth||document.body.clientWidth,j=document.documentElement.clientHeight||document.body.clientHeight,H=$.split("-");let O=[];H[0]==="top"?O=["top","bottom","right","left"]:H[0]==="bottom"?O=["bottom","top","right","left"]:H[0]==="left"?O=["left","top","bottom","right"]:H[0]==="right"&&(O=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},U=[];for(let I=0;I<O.length;I++){const M=O[I];if(U[0]=M,H[1]&&(U[1]=H[1]),M==="top"){const D=q.y-P-e.arrowSize-e.offset;if(D>=0){_.top=D;let Y=0;H[1]==="start"?Y=q.x:H[1]==="end"?Y=q.x+F-T:Y=q.x+F/2-T/2;const L=E-Y-T;L<0?(Y+=L,u.value=-L):u.value=0,_.left=Y<0?0:Y;break}}else if(M==="bottom"){const D=q.y+x+e.arrowSize+e.offset;if(D+P<=j){_.top=D;let Y=0;H[1]==="start"?Y=q.x:H[1]==="end"?Y=q.x+F-T:Y=q.x+F/2-T/2;const L=E-Y-T;L<0?(Y+=L,u.value=-L):u.value=0,_.left=Y<0?0:Y;break}}else if(M==="left"){const D=q.x-T-e.arrowSize-e.offset;if(D>=0){_.left=D;let Y=0;H[1]==="start"?Y=q.y:H[1]==="end"?Y=q.y+x-P:Y=q.y+x/2-P/2,_.top=Y<0?0:Y;break}}else if(M==="right"){const D=q.x+F+e.arrowSize+e.offset;if(D+T<=E){_.left=D;let Y=0;H[1]==="start"?Y=q.y:H[1]==="end"?Y=q.y+x-P:Y=q.y+x/2-P/2,_.top=Y<0?0:Y;break}}}return{bestPlacement:U.join("-"),bestInsetRect:_}},f=($,q,F=10)=>{if(!Ze||q===!1||!$)return;o.value=dl(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const x=c.value.offsetHeight,T=c.value.offsetWidth,{bestPlacement:P,bestInsetRect:E}=d(e.placement,o.value,l.value,r.value,T,x);i.value=P,a.value=E,s.value=!0},u=t.ref(0),h=Ye(()=>{f(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,$=>{k.value=$});const g=t.computed(()=>k.value&&y.value),y=t.ref(!0),b=Ye($=>{const q=$[0];q&&(y.value=q.isIntersecting)},10),m=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([$,q])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Ot.watch(e.reference,h),m.observe(e.reference)}),t.onBeforeUnmount(()=>{Ot.unwatch(e.reference,h),m.unobserve(e.reference),m.disconnect()});const v=t.computed(()=>{const $={[So]:!0};return i.value.startsWith("top")?$["is-top"]=!0:i.value.startsWith("right")?$["is-right"]=!0:i.value.startsWith("bottom")?$["is-bottom"]=!0:i.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 q=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${q}px`,s.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 $=[`${So}__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(()=>({[`${So}__arrow`]:!0})),S=t.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,i.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="top-start"?($.left=`${e.arrowOffset+u.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="top-end"?($.right=`${e.arrowOffset-u.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?($.left=`${e.arrowOffset+u.value}px`,$.top=`-${e.arrowSize}px`):i.value==="bottom-end"?($.right=`${e.arrowOffset-u.value}px`,$.top=`-${e.arrowSize}px`):i.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.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:()=>{k.value=!1,n.emit("update:visible",!1)}}}}),Nc=["innerHTML"];function Bc(e,n,a,o,l,r){const i=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]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},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(i,{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,Nc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const xs=ne(wc,[["render",Bc]]);class Gn{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Ro={},Ac=new Gn,yt=new Map,En=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of yt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}yt.clear()}},Vc=e=>{e.unmount=En;const n=document.getElementById(e.id);if(n){const a=yt.get(e.id);a?e={...Ro,...a,...e}:e={...Ro,...e},e.transition=!1;const o=t.createVNode(xs,e);return t.render(o,n),e.id}},Tc=e=>{e.unmount=En;let n=e.id??`hinttext_${Ac.get()}`;e={...Ro,...e},e.id=n,yt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(xs,e);return t.render(o,a),document.body.appendChild(a),n},$c=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Vt={show(e,n,a={},o=!0){$c(n);const l=a.id;return l&&yt.has(l)?Vc({...a,message:n,reference:e}):(o&&En(),Tc({...a,message:n,reference:e}))},hide(e){En(e)},install(e){e.config.globalProperties.$hintText=Vt}};function Ec(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ge},emits:["appear","disappear"],setup(l,r){const i=l.prop??r.attrs.name;Ae({componentName:e,validate:!1},i);const s=_e(),c=Hn();jn(!1);const d=t.computed(()=>c&&s?Wn(s,!1).value:null),f=e,u=t.ref(null),h=t.computed(()=>{const K={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:l.span==="stretch",[`${f}__input--border`]:ye(l.hasBorder)};if(K[l.errorMarkClass]=!!P.value,K[l.warnMarkClass]=!!x.value,K[l.infoMarkClass]=!!q.value,typeof u.value=="function"){const G=u.value(i);K[G]=!0}else if(typeof u.value=="string"){const G=u.value;K[G]=!0}return K}),k=t.ref(null),g=t.computed(()=>{const K={};if(l.width)l.width!=="auto"&&(K.width=he(l.width));else{const G=c&&s?Yn(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const ee=Qn(G,d.value,l.span,l.offset);Object.assign(K,ee)}else if(d.value.type==="flow"){const ee=Xn(G,d.value,l.span,l.offset,l.width);Object.assign(K,ee)}}}if(typeof k.value=="function"){const G=k.value(i);G&&Object.assign(K,G)}else if(k.value&&typeof k.value=="object"){const G=k.value;Object.assign(K,G)}return K}),y=t.ref(null),b=t.computed({get:()=>y.value??ye(l.isRequired),set:K=>{y.value=K}}),m=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",v=Ve(t.toRef(l,"labelPosition"),"labelPosition",Tn.Near),p=t.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),N=t.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${p.value}`]:!0})),w=t.computed(()=>({label:!0,[`label--${p.value}`]:!0})),C=Ve(t.toRef(l,"labelWidth"),"labelWidth",Tn.Near),S=t.computed(()=>C&&C.value?{width:he(C.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":b.value})),A=t.computed(()=>({content:!0,[l.contentClass]:!0})),V=t.computed(()=>({...l.contentStyle})),$=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(K){b.value=K},setErrorTip(K){$.errorTip=K},setErrorIcon(K){$.errorIcon=K},setWarnTip(K){$.warnTip=K},setWarnIcon(K){$.warnIcon=K},setInfoTip(K){$.infoTip=K},setInfoIcon(K){$.infoIcon=K},setCustomClassName(K){u.value=K},setCustomStyle(K){k.value=K}});const q=t.computed(()=>l.infoTip||$.infoTip),F=t.computed(()=>l.infoIcon||$.infoIcon),x=t.computed(()=>l.warnTip||$.warnTip),T=t.computed(()=>l.warnIcon||$.warnIcon),P=t.computed(()=>l.errorTip||$.errorTip),E=t.computed(()=>l.errorIcon||$.errorIcon),j=t.computed(()=>P.value?"error":x.value?"warn":q.value?"info":""),H=()=>j.value.length>0,O=t.computed(()=>j.value==="error"?P.value:j.value==="warn"?x.value:j.value==="info"?q.value:""),_=t.computed(()=>j.value==="error"?E.value:j.value==="warn"?T.value:j.value==="info"?F.value:null),U=t.computed(()=>{const K={[`${f}__tip`]:!0,[`${f}__tip--${j.value}`]:!0,[`${f}--animate`]:!0};return j.value==="error"&&l.errorClass?K[`${l.errorClass}`]=!0:j.value==="warn"&&l.warnClass?K[`${l.warnClass}`]=!0:j.value==="info"&&l.infoClass&&(K[`${l.infoClass}`]=!0),K}),I=t.computed(()=>{const K={};return v&&v.value==="top"||!m()?K["padding-left"]="0px":C&&C.value&&(K["padding-left"]=he(C.value)),K}),M=t.ref();let D="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([K,G,ee,le])=>{M.value&&(K&&!ue(G)?D?a.show(M.value,G,{...le,id:D,type:ee},!0):D=a.show(M.value,G,{...le,type:ee},!0):a.hide(D))});let Y=null;const L=()=>{Y||!M.value||(Y=new IntersectionObserver(K=>{let G=!1;for(let ee of K)if(ee.intersectionRatio>0){G=!0,G&&r.emit("appear",ee);break}G||r.emit("disappear")}),Y.observe(M.value))},R=()=>{!Y||!M.value||(Y.unobserve(M.value),Y=null)};t.watch(()=>ye(l.appearListen),K=>{K?L():R()}),t.onMounted(()=>{ye(l.appearListen)&&L()}),t.onUnmounted(R);const Z=()=>{if(!m())return null;const K=[],G=r.slots?.label?.()??l.label,ee={class:B.value},le=t.h("div",ee,[G]);if(K.push(le),r.slots.fixedPreTip){const ce=r.slots.fixedPreTip();K.push(ce)}const re={class:w.value,style:S.value};return t.h("div",re,K)},Q=()=>{const K=[];if(r.slots.prepend){const ee=r.slots.prepend();K.push(ee)}if(r.slots.default){const ee=r.slots.default();K.push(ee)}if(r.slots.append){const ee=r.slots.append();K.push(ee)}if(r.slots.fixedTip){const ee={class:[`${f}__fixed-tip`]},le=t.h("div",ee,[r.slots.fixedTip()]);K.push(le)}const G={ref:M,class:A.value,style:V.value};return t.h("div",G,K)},te=()=>{const K=_.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--icon"},[K()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(K)]):null},z=()=>{const K=O.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--text"},[K()]):t.h("div",{class:"fox-item__tip--text"},[K]):null},W=()=>{if(!H())return null;const K=[],G=te();G&&K.push(G);const ee=z();ee&&K.push(ee);const le={class:U.value,style:I.value};return t.h("div",le,K)},X=()=>r.slots?.hide?.()??null;return()=>{const K=[],G=[],ee=Z();ee&&G.push(ee);const le=Q();le&&G.push(le);const re={class:N.value},ce=t.h("div",re,G);K.push(ce);const Ne=W();Ne&&K.push(Ne);const Ce=X();Ce&&K.push(Ce);const _t={class:h.value,style:g.value,prop:l.prop};return t.h("div",_t,K)}}}}const{componentName:xc,create:Dc,scope:Ic}=J("item"),we=Dc(Ec(xc,Ic,Vt,!1));function qc(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})),i=_e(),s=Hn();jn(!1);const c=t.computed(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=he(a.width));else if(s&&i){const f=Wn(i,!1),u=Yn(i,!1);if(f.value&&u){if(f.value.type==="grid"){const h=Qn(u,f.value,a.span,a.offset);Object.assign(d,h)}else if(f.value.type==="flow"){const h=Xn(u,f.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 k=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(k)}d.push(u[h])}else Reflect.apply([].push,d,u)}const f={class:r.value,style:c.value};return t.h("div",f,d)}}}}const{componentName:Mc,create:Pc,scope:WA}=J("row-item"),fl=Pc(qc(Mc));function Lc(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=_e(),r=Hn();jn(!1);const i=t.computed(()=>r&&l?Wn(l,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=he(a.width));else{const u=r&&l?Yn(l,!1):null;if(i.value&&u){if(i.value.type==="grid"){const h=Qn(u,i.value,a.span,a.offset);Object.assign(f,h)}else if(i.value.type==="flow"){const h=Xn(u,i.value,a.span,a.offset,a.width);Object.assign(f,h)}}}return f});return()=>{const f={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",f,o.slots.default()):t.h("div",f)}}}}const{componentName:zc,create:Oc,scope:YA}=J("slot-item"),ml=Oc(Lc(zc)),or={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 Rc(e,n,a,o){return{props:{...pe,...ge,...or},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=se.useFoxI18n(n),f=d(l,["placeholder"]),u=t.ref(!1),h=Me(l,"modelValue",null,c),k=e,g=t.computed(()=>({[k]:!0,"is-disabled":i.value,"is-readonly":s.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const T={};return y.value&&(T["text-align"]=y.value),T}),m=T=>{let E=T.target.value;l.type==="digit"&&(E=Mo(E,!0)),l.type==="number"&&(E=Mo(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 N=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(()=>({[`${k}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),S=t.computed(()=>{const T={};return r.slots.append&&!B.value&&!F.value&&(T.display="none"),T}),B=t.computed(()=>ve(l.unit)>0),A=t.computed(()=>!F.value),V=t.computed(()=>({[`${k}__unit`]:!0,hidden:!A.value})),$=T=>{h.value="",c("update:modelValue","",T),c("change","",T),c("clear","")},q=t.computed(()=>ye(l.clearable)&&!i.value&&!s.value),F=t.computed(()=>{let T=ve(h.value)>0;return ye(l.clearable)&&T&&u.value}),x=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const T={class:g.value,style:b.value,type:l.type,maxlength:l.maxLength,placeholder:f.placeholder.value,disabled:i.value,readonly:s.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:m,onFocus:N,onBlur:w},P=[],E=t.h("input",T);P.push(E);const j=[];if(q.value){const D={class:["action-icon"]},Y=t.h(o,D),L={class:x.value,onClick:$},R=t.h("view",L,{default:()=>[Y]});j.push(R)}if(B.value){const D=t.h("view",{class:V.value},[l.unit]);j.push(D)}const H={class:C.value,style:S.value},O=t.h("view",H,{default:()=>j});P.push(O);const _={default:()=>P};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const I={...Je(l,or),hintText:v.value,hintVisible:p.value};return l.prop&&(I.prop=`${l.prop}_item`),t.h(a,I,_)}}}}const{componentName:Fc,create:Kc,scope:Uc}=J("input-item"),pl=Kc(Rc(Fc,Uc,we,oe.CircleClose));function lr(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 ar(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=_r(`${e}`,`${n}`);return lr(o)}else{let o=el(`${e}`,es(`${n}`),20);return lr(o)}}function Hc(e,n=-1,a=!1,o=3,l=","){return Dn(e,n,a,o,l)}function rr(e,n,a,o,l=!0){if(e==="")return"";if(e=ts(e),n=me(n),n==1)return e;if(o)e=ar(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=el(e,1,me(a)));else{let r=-1*n;e=ar(e,r)}return e}function sr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ye(n.minInclude),l=xo(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=ye(n.maxInclude),l=xo(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const ir={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function jc(e,n,a,o){return{props:{...pe,...ge,...ir},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(!1),f=Me(l,"modelValue",null,c),u=t.ref("");t.watch([()=>f.value,()=>l.rates,()=>l.precision],([H,O,_])=>{if(ue(H)){u.value="";return}const U=rr(H,O,_,!1);u.value!==U&&(u.value=U)},{immediate:!0});const h=t.computed(()=>{let H="";return d.value&&(H=u.value),H}),{t:k}=se.useFoxI18n(n),g=t.computed(()=>{let H=l.placeholder??"";return!d.value&&!ue(u.value)?H=Hc(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?k(["placeholder"]):H,H}),y=e,b=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:u.value.length>0,"is-disabled":i.value,"is-readonly":s.value})),m=Ve(t.computed(()=>l.textAlign),"textAlign"),v=t.computed(()=>{const H={};return m.value&&(H["text-align"]=m.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="",f.value="",c("update:modelValue","",H),c("change","",H),ye(l.showTip)&&C.value&&(C.value=!1);return}if(_.length>=2){let U=_;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!tl(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&cs(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&us(_)>Number(l.decimalLength)){t.triggerRef(u);return}let U=sr(_,l);if(U.maxValid===!1){p.value=U.message,t.triggerRef(u);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(u);return}w.value=_,ye(l.showTip)&&(C.value=_.length>0),u.value=_,f.value=rr(_,l.rates,l.precision,!0),c("update:modelValue",f.value,H),c("change",f.value,H)},B=H=>{if(d.value=!0,ye(l.showTip)){let O=u.value;ue(O)&&(O=l.hintText),ue(O)||(w.value=O,C.value=!0)}p.value="",c("focus",f.value,H)},A=H=>{if(setTimeout(()=>{d.value=!1,ye(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let O=sr(u.value,l);if(O.minValid===!1||O.maxValid===!1){p.value=O.message;return}}c("update:modelValue",f.value,H),c("blur",f.value,H)},V=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),$=t.computed(()=>{const H={};return r.slots.append&&!q.value&&!E.value&&(H.display="none"),H}),q=t.computed(()=>ve(l.unit)>0),F=t.computed(()=>!E.value),x=t.computed(()=>({[`${y}__unit`]:!0,hidden:!F.value})),T=H=>{f.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},P=t.computed(()=>ye(l.clearable)&&!i.value&&!s.value),E=t.computed(()=>{let H=ve(f.value)>0;return ye(l.clearable)&&H&&d.value}),j=t.computed(()=>({action:!0,hidden:!E.value}));return()=>{let H={class:b.value,style:v.value,type:"digit",maxlength:l.maxLength,placeholder:g.value,disabled:i.value,readonly:s.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:S,onFocus:B,onBlur:A},O=[],_=t.h("input",H);O.push(_);let U=[];if(P.value){const R={class:["action-icon"]},Z=t.h(o,R),Q={class:j.value,onClick:T},te=t.h("view",Q,{default:()=>[Z]});U.push(te)}if(q.value){const R=t.h("view",{class:x.value},[l.unit]);U.push(R)}const I={class:V.value,style:$.value},M=t.h("view",I,{default:()=>U});O.push(M);const D={default:()=>O};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const L={...Je(l,ir),errorTip:N.value,hintText:w.value,hintVisible:C.value,hintType:"number"};return l.prop&&(L.prop=`${l.prop}_item`),t.h(a,L,D)}}}}const{componentName:Wc,create:Yc,scope:Xc}=J("money-item"),hl=Yc(jc(Wc,Xc,we,oe.CircleClose)),Fo={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:Qc,create:Gc,scope:Zc}=J("textarea"),Jc=Gc({props:{...Fo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=se.useFoxI18n(Zc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Qc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(s)});const i=t.computed(()=>({textAlign:e.textAlign})),s=()=>{let h=l.value;h.style.height="auto";let k=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:y}=e.autosize;g!==void 0&&(k=Math.min(k,g)),y!==void 0&&(k=Math.max(k,y))}k&&(console.info("----------- height",k),h.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(s)});const c=(h,k)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,k),n("change",h,k)};return{...o,textareaRef:l,classes:r,styles:i,change:h=>{const k=h.target;c(k.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),n("blur",{value:g,event:h})}}}}),_c=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],eu={key:0,class:"fox-textarea__limit"};function tu(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]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,_c),e.limitShow?(t.openBlock(),t.createElementBlock("view",eu,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Zn=ne(Jc,[["render",tu]]);function nu(e,n,a,o){return{props:{...pe,...ge,...Fo},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=Me(l,"modelValue",null,c),f=y=>{d.value=y,c("update:modelValue",y,{}),c("change",y,{})};let u=Me(l,"hintText"),h=t.ref(!1);const k=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={...be(l,Fo),disabled:i.value,readonly:s.value,value:d.value,"onUpdate:modelValue":f,onFocus:k,onBlur:g},m=[],v=t.h(o,b);m.push(v);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 w={...be(l,ge,pe)};return l.prop&&(w.prop=`${l.prop}_item`),t.h(a,w,p)}}}}const{componentName:ou,create:lu,scope:au}=J("textarea-item"),gl=lu(nu(ou,au,we,Zn));function ru(e){return e===window}const qe=e=>{const n=t.unref(e);if(ru(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}},cr=10;function Ds(e,n){return e>n&&e>cr?"horizontal":n>e&&n>cr?"vertical":""}function Jn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _n(){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:i=>{if(i.touches){const d=i.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=i;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=Ds(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const c=i;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function tt(){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),i=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(0),f=t.ref(""),u=()=>f.value==="vertical",h=()=>f.value==="horizontal",k=()=>{i.value=0,s.value=0,c.value=0,d.value=0,f.value="",a.value=0};return{move:b=>{if(b.touches){const p=b.touches[0];i.value=p.clientX-e.value,s.value=p.clientY-n.value,l.value=p.clientX,r.value=p.clientY}else{const v=b;i.value=v.clientX-e.value,s.value=v.clientY-n.value,l.value=v.clientX,r.value=v.clientY}c.value=Math.abs(i.value),d.value=Math.abs(s.value),o.value=Date.now()-a.value,f.value||(f.value=Ds(c.value,d.value))},start:b=>{if(k(),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:k,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:i,deltaY:s,offsetX:c,offsetY:d,direction:f,isVertical:u,isHorizontal:h}}let su=2e3;const ur=()=>su++,Re={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:{}}},iu=(e,n)=>({components:n,props:{...Re},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=ur());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(m=>{b.push(m)}),b}),i=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=ur(),a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},f=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)},k=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:i,transitionName:s,classes:r,onClick:f,onClickCloseIcon:u,onClickOverlay:h,onOpened:k,onClosed:g}}}),Is={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}},Ko={...Re,...Is,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 qs=36;function cu(){return qs}function uu(e){qs=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Uo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function du(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function dr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let fu=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=et(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 mu(){const e=t.getCurrentInstance();return new fu(e.proxy)}function fr(e,n,a){const o=ze(e,n),l=ze(e,a);if(o!==l)return!1;const r=ct(e,n),i=ct(e,a);return r===i}function pu(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 i=0;i<n.length&&i<a.length;i++){const s=n[i];let d=a[i].findIndex(f=>{if(r==="text")return ze(e,f)===s;if(r==="value"){let u=ct(e,f);return u==null&&(u=ze(e,f)),u===s}else if(r==="item")return fr(e,f,s)});if(d==-1)break;l.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){const c=n[s];let d=i.findIndex(u=>{if(r==="text")return ze(e,u)===c;if(r==="value"){let h=ct(e,u);return h==null&&(h=ze(e,u)),h===c}else if(r==="item")return fr(e,u,c)});if(d==-1)break;l.push(d);const f=Uo(e,i[d]);if(!Array.isArray(f))break;i=f}}return l}function mr(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 i=0;i<n.length&&i<a.length;i++){const s=a[i];let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[c],f=ze(e,d);if(l.texts.push(f),l.items.push(d),r==="text")l.values.push(f);else if(r==="value"){let u=ct(e,d);u==null&&(u=f),l.values.push(u)}else l.values.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],f=Object.assign({},d);f.children=null;const u=ze(e,d);if(l.texts.push(u),l.items.push(f),r==="text")l.values.push(u);else if(r==="value"){let h=ct(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(f);if(!Array.isArray(d.children))break;i=d.children}}return l}function pr(e){return{text:e,value:e}}const hu=15,gu=300,yu=200,{create:vu}=J("picker-column");function bu(e){e.stopPropagation()}function ku(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),bu(e)}const Su=vu({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},...Is},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=S=>S>=u.currIndex+8||S<=u.currIndex-8,s=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)`})),f=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=>ze(e,S),k=S=>ct(e,S),g=tt(),y=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},b=(S,B=!1,A=!1)=>{if(u.currIndex=S,B){const V=()=>{u.moving=!1,n("update:modelValue",S),n("change",S)};A?u.transitionEndTrigger=V:V()}},m=(S,B,A)=>{let V=S+u.startDistance;if(B==="end"){const $=-(e.source.length-1)*e.itemHeight;V<$&&(V=$),V>0&&(V=0);let q=Math.abs(Math.round(-V/e.itemHeight));const F=-q*e.itemHeight,x=`${(q+1)*u.rotation}deg`,T=A?A>0:!1;b(q,!0,T),v(F,B,A,x)}else{let $=(-V/e.itemHeight+1)*u.rotation;const q=(e.source.length+1)*u.rotation,F=0;if($=Math.min(Math.max($,F),q),e.threeDimensional&&($<F||$>q))return;v(V,null,void 0,`${$}deg`)}},v=(S=0,B,A=yu,V)=>{B==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=V,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,ku(S)),m(g.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const S=g.deltaY.value,B=g.duration.value;if(B<gu&&Math.abs(S)>hu){const V=p(S,B);m(V,"end",e.swipeDuration)}else m(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;m(A,"",0)}}),t.watch(()=>e.source,S=>{if(u.currIndex>=S.length){const V=(S.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,m(V,"end",0)}}),t.watch(()=>e.visible,S=>{S===!1&&y()}),t.onMounted(()=>{const S=-e.modelValue*e.itemHeight;m(S)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:k,...t.toRefs(u),roller:f,getItemText:ze,onTouchStart:N,onTouchMove:w,onTouchEnd:C,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:d,stopMomentum:y}}}),Cu={key:1,class:"fox-picker__item-tile"};function wu(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]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Cu,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Nu=ne(Su,[["render",wu]]);let xt=0;const hr="fox-overflow-hidden",gr=()=>Ze?document.body:{classList:[]},Bu=e=>[()=>{if(e())try{!xt&&gr().classList.add(hr),xt++}catch{}},()=>{if(e()&&xt)try{xt--,!xt&&gr().classList.remove(hr)}catch{}}],Au={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:Vu,create:Tu}=J("overlay"),$u=Tu({props:{...Au},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Bu(()=>e.lockScroll),l=t.computed(()=>({[Vu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?a():o()}),{classes:l,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Eu(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const ut=ne($u,[["render",Eu]]),{componentName:xu,create:Du}=J("popup"),Iu=Du(iu(xu,{FoxOverLay:ut,Close:oe.Close}));function qu(e,n,a,o,l,r){const i=t.resolveComponent("FoxOverLay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,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(s)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const fe=ne(Iu,[["render",qu]]),Mu=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=Je({...e},{poppable:!1});return t.h(fe,a,n)}else return n?.default?.()??null}}}),{create:Pu,componentName:Lu,scope:zu}=J("picker"),Ou=Pu({components:{Column:Nu,Wrapper:Mu},props:{...Ko},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=se.useFoxI18n(zu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(cu());t.watch(()=>e.visible,x=>{x&&i.value<=0&&setTimeout(()=>{if(r.value){const T=qe(r.value);i.value=T.height,uu(i.value)}},50)});const s=t.computed(()=>({[Lu]:!0})),c=mu(),d=t.ref("singleColumn");let f=t.ref([]);t.watch([()=>e.source,()=>e.params],async([x,T])=>{if(x){let P=await c.load("picker",x,T);if(P.length>0){let E=P[0];if(Array.isArray(E)){if(typeof E[0]=="string"){let j=P,H=[];j.forEach(O=>{let _=O.map(U=>pr(U));H.push(_)}),f.value=H}else f.value=P;d.value="multipleColumn"}else if(typeof E=="string"){let j=P,H=[],O=j.map(_=>pr(_));H.push(O),f.value=H,d.value="singleColumn"}else{const j=Uo(e,E);Array.isArray(j)?(d.value="cascade",f.value=[P]):(d.value="singleColumn",f.value=[P])}}else f.value=[]}},{immediate:!0});const u=t.ref([]),h=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=t.ref([]);let g=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>f.value],([x,T])=>{let P=pu(e,x,T,d.value);if(!Ie(P,y.value)){y.value=P,g||(g=P?[...P]:[]);let E=mr(e,P,T,d.value);E&&(u.value=E.texts,Ie(h.value,E.values)||(h.value=E.values),Ie(k.value,E.items)||(k.value=E.items),n("update:text",u.value))}});let b="";const m=t.ref(e.visible);t.watch(()=>e.visible,x=>{m.value=x,x&&(b="active",y.value.length>0&&(g=[...y.value]))});const v=x=>{let T=dr(e,x);return De(T)?T.defaultIndex??0:0},p=x=>{if(e.readonly===!0)return!0;let T=dr(e,x);return De(T)?T.readonly??!1:!1},N=(x,T)=>{let P=y.value;P[x]=T;for(let j=0;j<x;j++)P[j]==null&&(P[j]=v(j));if(d.value==="cascade")for(let j=x+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 E=mr(e,P,f.value,d.value);E&&(u.value=E.texts,h.value=E.values,k.value=E.items)},w=x=>x<y.value.length?y.value[x]:v(x),C=t.computed(()=>{if(f.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return f.value;let x=[],T=0,P=f.value[0],E=0;for(;;){let j=P.map(_=>{let U=Object.assign({},_);return du(e,U,null),U});x.push(j),T>=y.value.length?E=0:E=y.value[T],(E<0||E>=P.length)&&(E=0);let H=P[E];const O=Uo(e,H);if(!Array.isArray(O))break;P=O,T++}return x}),S=t.computed(()=>me(+e.visibleItemCount-1)/2*i.value),B=(x=!1)=>{if(e.readonly===!0){x&&n("update:visible",!1);return}let T=f.value.length-1;for(;T>=0&&!(y.value[T]===null||y.value[T]===void 0);T--);if(T>=0&&N(T,0),d.value==="singleColumn"){let P=h.value.length>0?h.value[0]:"",E=k.value.length>0?k.value[0]:null;n("update:modelValue",P),n("update:text",u.value),n("change",P,E),x&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",u.value),n("change",h.value,k.value),x&&(n("confirm",h.value),n("update:visible",!1))},A=(x,T)=>{if(b!=="close"&&(N(x,T),e.isAutoBackFill)){const P=!m.value;B(P)}},V=()=>{b==="active"&&(b="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:s,columns:C,dataType:d,show:m,itemHeight:i,top:S,isReadonly:p,getIndex:w,change:A,close:()=>{if(b==="active"){if(b="close",g===null||g.length===0)$();else{if(Array.isArray(g))for(let x=0;x<g.length;x++)N(x,g[x]);B(!1)}n("close"),n("update:visible",!1)}},confirm:V,clear:()=>{if(b==="active"){if(b="clear",e.readonly===!0){n("update:visible",!1);return}$(),g=null,n("clear",""),n("update:visible",!1)}}}}}),Ru={key:0,class:"fox-picker__bar"},Fu={class:"fox-picker__title"},Ku={class:"fox-picker__bar__action"},Uu={class:"fox-picker__column"};function Hu(e,n,a,o,l,r){const i=t.resolveComponent("Column"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{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",Ru,[t.createElementVNode("view",Fu,t.toDisplayString(e.title),1),t.createElementVNode("view",Ku,[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",Uu,[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(i,{visible:e.show,source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":f=>e.change(d,f),"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 Jt=ne(Ou,[["render",Hu]]);function ju(e,n,a,o,l,r,i=!0){return{props:{...pe,...ge,...Ko,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(s,c){const d=$e(t.computed(()=>s.disabled)),f=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(s,["placeholder"]),g=t.ref(!1),y=Me(s,"modelValue",null,u),b=t.ref([]),m=t.computed(()=>Array.isArray(b.value)?b.value.join(s.separator):b.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":f.value})),N=Ve(t.computed(()=>s.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)},V=(M,D)=>{u("change",M,D)},$=M=>{let Y=M.target.value;g.value=!0,u("focus",Y,M)},q=M=>{setTimeout(()=>{g.value=!1},0);let Y=M.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),u("blur",Y,M)},F=M=>{b.value=M,Array.isArray(M)&&M.length===0?u("update:text",M[0]):u("update:text",M)},x=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":f.value})),T=t.computed(()=>ve(s.unit)>0),P=t.computed(()=>ve(s.unit)>0&&!g.value),E=t.computed(()=>({hidden:!P.value})),j=M=>{y.value="",u("update:modelValue","",M),u("change","",M),u("clear","")},H=t.computed(()=>s.clearable&&!d.value&&!f.value),O=t.computed(()=>ve(y.value)>0&&g.value),_=M=>{O.value?j(M):S()},U=t.computed(()=>O.value&&H.value?o:l),I=t.computed(()=>({action:!0}));return()=>{const M={class:p.value,style:w.value,type:"text",maxlength:s.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:S,onFocus:$,onBlur:q};i&&(M.disabled=!0);const D=[],Y=t.h("input",M);D.push(Y);const L=[],R={class:["action-icon"]},Z=t.h(U.value,R),Q={class:I.value,onClick:_},te=t.h("view",Q,{default:()=>[Z]});if(L.push(te),T.value){const re=t.h("view",{class:E.value},[s.unit]);L.push(re)}const z={class:x.value},W=t.h("view",z,{default:()=>L});D.push(W);const X={default:()=>D};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=be(s,Ko);K.disabled=!1,K.readonly=d.value||f.value,K.visible=C.value,K["onUpdate:visible"]=B,K.modelValue=y.value,K["onUpdate:modelValue"]=A,K.text=b.value,K["onUpdate:text"]=F,K.onChange=V;const G=t.h(r,K);X.hide=()=>[G];const ee=be(s,ge,pe);return s.prop&&(ee.prop=`${s.prop}_item`),t.h(a,ee,X)}}}}const{componentName:Wu,create:Yu,scope:Xu}=J("picker-item"),yl=Yu(ju(Wu,Xu,we,oe.CircleClose,oe.ArrowRight,Jt,!1)),Qu=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(fe,o,n)}else return n?.default?.()??null}}}),an=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:i="children"}=a??{},{[l]:s,[r]:c,[i]:d,...f}=o,u={loading:!1,...f,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:d,_parent:n};return u.children&&u.children.length&&(u.children=an(u.children,u,a)),u}),Ms=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Ms(o.children,n)},Gu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Zu=(e,n)=>{const a={...Gu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:i}=a;let s=[],c={};return e.forEach(d=>{d={...d};const{[l]:f,[r]:u}=d,h=c[u]=c[u]||[];!s.length&&u===o&&(s=h),h.push(d),d.children=c[f]||(c[f]=[])}),i&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((f,u)=>f[i]-u[i])}),c=null,s},Ju={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},yr=(e,n)=>n[e.textKey],Dt=(e,n)=>n[e.valueKey],_u=(e,n)=>n[e.visibleKey],vr=(e,n)=>n[e.disabledKey],ed=(e,n)=>{const a=n[e.doitKey];return ye(a)},td=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},br=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function nd(e,n,a,o=!1){return{props:{...Ju},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:i}){const s=t.computed(()=>{const U={};return U[`${e}`]=!0,U}),c=t.computed(()=>{const U={};return U[`${e}__titles`]=!0,U[`${l.direction}`]=!0,l.align==="left"&&(U.left=!0),l.scroll===!0&&(U.scrollable=!0),l.shape&&(U[`${l.shape}`]=!0),l.showQuickNavigation&&(U["has-navigation"]=!0),U}),d=t.computed(()=>({})),f=t.computed(()=>{if(!l.gutter)return 0;const U=de(l.gutter);return U<=0?0:U}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,U=>{u.value!==U&&(u.value=U,E(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=t.computed(()=>{const U={};return y.value||(U.display="none"),U}),g=t.ref(),y=t.ref(!1),b=()=>{const U=!y.value;m(U)},m=U=>{const I=U;I?(y.value=I,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},v=t.ref(),p=t.ref([]),N=(U,I)=>{p.value[I]=U},w=U=>I=>{N(I,U)},C=(U,I)=>{const M=v.value,D=p.value;if(!M||!D||!D[U])return;const Y=D[U];let L=0;l.direction==="vertical"?L=Y.offsetTop-(M.offsetHeight-Y.offsetHeight)/2:L=Y.offsetLeft-(M.offsetWidth-Y.offsetWidth)/2,S(M,L,I?0:.3,l.direction)},S=(U,I,M,D)=>{let Y=0;const L=D==="horizontal"?U.scrollLeft:U.scrollTop,R=M===0?1:Math.round(M*1e3/16);function Z(){D==="horizontal"?U.scrollLeft+=(I-L)/R:U.scrollTop+=(I-L)/R,++Y<R&&Ke(Z)}Z()},B=(U,I)=>{const M=Dt(l,U),D={};return D[`${e}__titles-item`]=!0,D.disabled=vr(l,U),D.active=M===u.value,l.shape&&(D[`${l.shape}`]=!0),l.ellipsis&&(D.ellipsis=!0),I&&(I.class&&(D[`${I.class}`]=!0),I.disabled===!0&&(D.disabled=I.disabled)),D},A=(U,I)=>{const M={};if(f.value>0){const D=Math.abs(f.value/2);l.direction==="vertical"?(M["margin-top"]=`${D}px`,M["margin-bottom"]=`${D}px`):(M["margin-left"]=`${D}px`,M["margin-right"]=`${D}px`)}return I&&I.style&&Object.assign(M,I.style),M},V=(U,I)=>`${Dt(l,U)??I}`,$=(U,I)=>{const M=Dt(l,U),D={};D[`${e}__popup-item`]=!0,D.disabled=vr(l,U),D.active=M===u.value,l.shape&&(D[`${l.shape}`]=!0);const Y=br(l,U,I);return Y&&Y.disabled===!0&&(D.disabled=Y.disabled),D},q=t.computed(()=>(l.data??[]).filter(I=>_u(l,I)!==!1)),F=(U,I)=>{const M=Dt(l,U);if(i("click",U,I),u.value==M)return;const D=()=>{u.value=M,l.scroll&&C(I,!1),i("update:modelValue",M),i("change",U,I)};if(typeof l.beforeChange=="function"){const Y=l.beforeChange(U,I);vt(Y)?Y.then(L=>{L!==!1&&D()}).catch(()=>{D()}):Y!==!1&&D()}else D()},x=(U,I)=>function(){F(U,I)},T=(U,I)=>{F(U,I),m(!1)},P=(U,I)=>function(){T(U,I)},E=U=>{if(!Array.isArray(l.data)||!l.scroll)return;const I=l.data.findIndex(M=>Dt(l,M)===u.value);I!==-1&&C(I,U)};t.watch(()=>l.data,()=>{setTimeout(E,0)}),t.onMounted(()=>{E(!0)});const j=(U,I)=>{if(r.item)return r.item({item:U,index:I});const M=br(l,U,I),D=[];if(r.text){const Z=r.text({item:U,index:I});D.push(Z)}else{const Z=[];if(M?.doit===!0||ed(l,U)){const W={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",W);Z.push(X)}const Q=M?.num??td(l,U);if(Q){let W="";const X=me(Q);X>=100?W="99+":W=`${X}`;const K={class:[`${e}__titles-item-tip`,"num"]},G=t.h("view",K,[W]);Z.push(G)}const te={class:`${e}__titles-item-text`};Z.push(yr(l,U));const z=t.h("view",te,Z);D.push(z)}const Y={class:`${e}__titles-item-line`},L=t.h("view",Y);D.push(L);const R={ref:w(I),class:B(U,M),style:A(U,M),key:V(U,I),onClick:x(U,I)};return t.h("view",R,D)},H=()=>{const U=r.default?r.default():[];if(U.length===0)for(let M=0;M<q.value.length;M++){const D=q.value[M],Y=j(D,M);U.push(Y)}const I={ref:v,class:c.value,style:d.value};return t.h("view",I,U)},O=()=>{let U=null;r.navigation?U=r.navigation():U=t.h(a);const I={class:`${e}__navigation`,onClick:b};return t.h("view",I,[U])},_=()=>{const U=[];for(let M=0;M<q.value.length;M++){const D=q.value[M];let Y=null;r.popupItem?Y=r.popupItem({item:D,index:M}):Y=yr(l,D);const L={class:$(D,M),key:V(D,M),onClick:P(D,M)},R=t.h("view",L,[Y]);U.push(R)}const I={class:h.value,style:k.value};return t.h("view",I,U)};return()=>{const U=[],I=H();if(U.push(I),l.showQuickNavigation){const D=O();U.push(D);const Y=_();U.push(Y)}const M={class:s.value};return t.h("view",M,U)}}}}const{create:od,componentName:ld,scope:ad}=J("tabs-bar"),eo=od(nd(ld,ad,oe.MoreH,!1)),Ps=Symbol("TabsStatesKey"),rd={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},sd=15,id=300,cd=200;function ud(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function kr(e,n=0,a,o,l=cd){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 dd=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??Jn()}open(n){this.el=n;const a=_n(),o=(l,r,i)=>{const s={delta:l,direction:r,type:i};this.onMove(s)};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<id&&Math.abs(l)>sd?(l=ud(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 fd(e,n,a,o=1,l){return new dd(e,n,a,o,l)}function md(e,n,a=!1){return{props:{...rd},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const i=t.shallowRef([]),s={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:w=>{const C={name:w};s.current.value===w&&(C.loaded=!0),i.value.push(C),t.triggerRef(i)},remove:w=>{const C=i.value.findIndex(S=>S.name===w);C!==-1&&i.value.splice(C,1)},isLoaded:w=>{if(!o.lazy)return!0;const C=i.value.findIndex(S=>S.name===w);return C!==-1?s.current.value?i.value[C].loaded??!1:C===0:!1}};t.provide(Ps,s);const c=w=>{const C=i.value.findIndex(S=>S.name===w);C!==-1&&(i.value[C].loaded=!0,t.triggerRef(i))};t.watch([()=>o.modelValue,()=>o.direction],([w,C])=>{s.current.value!==w&&(s.current.value=w??"",c(w??"")),s.direction.value!==C&&(s.direction.value=C)});const d=t.ref(null),f=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const k=t.computed(()=>{const w={},C=i.value.length;if(C<=0)return w;const S=i.value.findIndex(B=>B.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(w.height=`${C*s.tabHeight.value}px`,S!==-1&&(w.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(w.width=`${C*s.tabWidth.value}px`,S!==-1&&(w.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),h&&(h=!1,w.transition="transform 0s ease"),w}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},y=w=>{const C=i.value.length,S=i.value.findIndex(B=>B.name===s.current.value);g.moved=0,w.direction==="vertical"?(g.min=-1*(s.tabHeight.value*(C-1)+s.tabHeight.value/4),g.max=s.tabHeight.value/4,g.start=-S*s.tabHeight.value,g.itemDistance=s.tabHeight.value):(g.min=-1*(s.tabWidth.value*(C-1)+s.tabWidth.value/4),g.max=s.tabWidth.value/4,g.start=-S*s.tabWidth.value,g.itemDistance=s.tabWidth.value)},b=w=>{const C=f.value;if(!C)return;let S=g.start+w.delta;if(S>g.max?S=g.max:S<g.min&&(S=g.min),w.type==="move")kr(C,S,"move",w.direction,300);else if(w.type==="end"){let B=Math.floor(Math.abs(S)*1/g.itemDistance);const A=Math.abs(S)%g.itemDistance;g.start>S?A>=g.itemDistance*g.triggerAutoMoveRatio&&(B+=1):A>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(B+=1),S=-1*B*g.itemDistance,kr(C,S,"end",w.direction,300),g.moved=S;const V=i.value[B].name;s.current.value=V??"",c(V??""),l("update:modelValue",V)}},m=()=>{},v=()=>{const w=Kn(d.value);s.tabWidth.value=w.width,s.tabHeight.value=w.height};let p=null,N=null;return t.onMounted(()=>{d.value&&(window.ResizeObserver&&(N=new window.ResizeObserver(v),N.observe(d.value)),v(),o.draggle&&(p=fd(y,b,m),p.open(f.value)))}),t.onBeforeUnmount(()=>{N&&(N.disconnect(),N=null),p&&p.close()}),Ee({doLayout(){v()}}),()=>{const w={class:`${e}__panes`,style:k.value,ref:f},C=t.h("view",w,[r?.default?.()]),S={class:u.value,ref:d};return t.h("view",S,[C])}}}}const{create:pd,componentName:hd,scope:gd}=J("tabs-container"),to=pd(md(hd,gd,!1)),yd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function vd(e,n,a){return{props:{...yd},setup(o,{emit:l,slots:r}){const i=t.inject(Ps);t.onMounted(()=>{i.add(o.paneKey)}),t.onBeforeUnmount(()=>{i.remove(o.paneKey)});const s=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),c=t.computed(()=>o.loaded!=null?ye(o.loaded):i.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,k=t.h(h,u),g={class:`${e}__empty-text`},y=o.emptyText??"Loading",b=t.h("view",g,[y]),m={class:`${e}__empty`},v=t.h("view",m,[k,b]);d.push(v)}const f={class:`${e}`,style:s.value};return t.h("view",f,d)}}}}const{create:bd,componentName:kd,scope:Sd}=J("tabs-pane"),no=bd(vd(kd,Sd,oe.Loading));class Sr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=an(n,null,this.config)}updateChildren(n,a){a?a.children=an(n,a,this.config):this.nodes=an(n,null,this.config)}getNodeByValue(n){let a;return Ms(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Cd,scope:wd}=J("cascader-pane"),Nd=Cd({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:eo,TabsContainer:to,TabsPane:no},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}=se.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(),i=t.ref(!1),s=t.ref(e.modelValue),c=t.ref(new Sr([],{})),d=t.ref([]),f=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),u=t.computed(()=>i.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 k;const g=async()=>{h.clear(),d.value=[],l.value=0,i.value=!1,k=null;let{options:p}=e;o.value.convertConfig&&(p=Zu(p,o.value.convertConfig)),c.value=new Sr(p,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),f.value&&!c.value.nodes.length&&await b({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:c.value.nodes,selectedNode:null}],y(!f.value)},y=async(p=!0)=>{const N=s.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(f.value&&Array.isArray(N)&&N.length){w=[];let C=c.value.nodes.find(S=>S.value===N[0]);if(C){w=[C.value],i.value=!0;const S=await N.slice(1).reduce(async(B,A)=>{const V=await B;await b(V);const $=V?.children?.find(q=>q.value===A);return $&&w.push(A),Promise.resolve($)},Promise.resolve(C));await b(S),i.value=!1}}w.length&&N===e.modelValue&&c.value.getPathNodesByValue(w).map((S,B)=>{l.value=B,v.handleNode(S,p)})},b=async p=>{if(!p)return;if(!o.value.lazyLoad){p.leaf=!0;return}if(c.value.isLeaf(p,f.value)||c.value.hasChildren(p,f.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)},m=p=>{const N=p.map(w=>w.value);s.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,f.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);m(S),n("pathChange",S)}return}if(c.value.hasChildren(p,f.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}k=p,!C&&(await b(p),k===p&&(d.value[l.value].selectedNode=p,v.handleNode(p,N)))}},handleTabChange(p,N){k=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,s.value)||(s.value=p,y(!f.value))}),t.watch(()=>e.visible,p=>{p&&Array.isArray(s.value)&&s.value.length>0&&y(),p&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:i,tabsCursor:l,tabsContainerRef:r,...v}}}),Bd={class:"fox-cascader"},Ad={role:"menu",class:"fox-cascader__pane"},Vd=["aria-checked","aria-disabled","onClick"],Td={class:"fox-cascader__item__title"};function $d(e,n,a,o,l,r){const i=t.resolveComponent("TabsBar"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),f=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Bd,[t.createVNode(i,{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(f,{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",Ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,k=>(t.openBlock(),t.createElementBlock("view",{key:k.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,k),disabled:k.disabled}]),"aria-checked":e.isSelected(u,k),"aria-disabled":k.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(k,!1)},[t.createElementVNode("view",Td,t.toDisplayString(k.text),1),k.loading?(t.openBlock(),t.createBlock(s,{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,Vd))),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 Ed=ne(Nd,[["render",$d]]),{create:xd}=J("cascader"),Dd=xd({components:{CascaderPane:Ed,Wrapper:Qu},props:{...Re,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(i){n("update:visible",i)}}),l=(i,s)=>{a.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),Id=["innerHTML"];function qd(e,n,a,o,l,r){const i=t.resolveComponent("CascaderPane"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(s,{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(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Id)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["poppable","visible","closeable","close-icon-position"])}const oo=ne(Dd,[["render",qd]]);function kt(e,n){const a=e.textKey??"text";return n[a]??""}function St(e,n){const a=e.valueKey??"value";return n[a]}function Ls(e,n){const a=e.childrenKey??"children";return n[a]}function on(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=kt(e,l),i=St(e,l);a.texts.push(r),a.values.push(i??"")}return a}function zs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(kt(e,n[i])===r){const c=St(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const f=Ls(e,n[i]);Array.isArray(f)&&zs(e,f,a,o+1,l);return}}function Os(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(St(e,n[i])===r){const c=kt(e,n[i])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const f=Ls(e,n[i]);Array.isArray(f)&&Os(e,f,a,o+1,l);return}}function Co(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=kt(e,n[o]),r=kt(e,a[o]);if(l!==r)return!1;const i=St(e,n[o]),s=St(e,a[o]);if(i!==s)return!1}return!0}let Md=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=et(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 Pd(){const e=t.getCurrentInstance();return new Md(e.proxy)}const Cr={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 Ld(e,n,a,o,l,r,i=!1){return{props:{...pe,...ge,...Cr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),f=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(s,["placeholder"]),g=t.ref(!1),y=Pd(),b=t.ref([]),m=t.ref([]),v=t.computed(()=>{if(Array.isArray(m.value)){if(s.showAllLevels===!1){const R=m.value.length-1;return m.value[R]}return m.value.join(s.separator)}else return m.value}),p=t.ref([]),N=t.ref([]);t.watch([()=>s.modelValue,()=>b.value],async([R,Z])=>{if(u("setValue",R),s.lazy===!0){N.value.length==0&&(p.value=Array.isArray(R)?R:[]);return}if(s.valueType==="item"){let Q=R;if(!Co(s,Q,N.value)){N.value=Q;let te=on(s,Q);m.value=te.texts,p.value=te.values}}else if(s.valueType==="text"){let Q=R,te=[];if(zs(s,Z,Q,0,te),!Co(s,te,N.value)){N.value=te;let z=on(s,te);Q.value=z.texts,p.value=z.values}}else{let Q=[];if(Os(s,Z,R,0,Q),!Co(s,Q,N.value)){N.value=Q;let te=on(s,Q);m.value=te.texts,p.value=te.values}}}),s.lazy===!0&&(p.value=Array.isArray(s.modelValue)?s.modelValue:[]),t.watch([()=>s.source,()=>s.params],async([R,Z])=>{s.lazy||R&&(b.value=await y.load(R,Z))},{immediate:!0});const w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":f.value})),S=Ve(t.computed(()=>s.textAlign),"textAlign"),B=t.computed(()=>{const R={};return S.value&&(R["text-align"]=S.value),R}),A=t.ref(!1),V=()=>{d.value===!0||f.value===!0||(A.value=!0)},$=R=>{A.value=R},q=(R,Z)=>{let Q=Z.map(z=>{if(z==null)return z;let W={...z};return Reflect.deleteProperty(W,"text"),W[s.textKey]=z.text??"",Reflect.deleteProperty(W,"value"),W[s.valueKey]=z.value??"",W});N.value=Q;let te=on(s,Q);m.value=te.texts,p.value=te.values,s.valueType==="text"?(u("change",m.value,Q),u("update:modelValue",m.value)):s.valueType==="item"?(u("change",Q,Q),u("update:modelValue",Q)):(u("change",p.value,Q),u("update:modelValue",p.value)),u("update:pathNodes",Q)},F=R=>{let Z=R.map(Q=>{if(Q==null)return Q;let te={...Q};return Reflect.deleteProperty(te,"text"),te[s.textKey]=Q.text??"",Reflect.deleteProperty(te,"value"),te[s.valueKey]=Q.value??"",te});u("pathChange",Z)},x=R=>{g.value=!0,u("focus",p.value,R)},T=R=>{setTimeout(()=>{g.value=!1},0),u("blur",p.value,R)},P=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":f.value})),E=t.computed(()=>ve(s.unit)>0),j=t.computed(()=>ve(s.unit)>0&&!g.value),H=t.computed(()=>({hidden:!j.value})),O=R=>{N.value=[],m.value=[],p.value=[],u("update:modelValue",[]),u("change",[],R),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>s.clearable&&!d.value&&!f.value),U=t.computed(()=>{let R=p.value&&p.value.length>0;return s.clearable&&R&&g.value}),I=R=>{U.value?O(R):V()},M=t.computed(()=>U.value&&_.value?o:l),D=t.computed(()=>({action:!0}));let Y=null;const L=()=>typeof Y=="function"?Y:typeof s.lazyLoad=="function"?s.lazyLoad:(Y=async(R,Z)=>{const Q=[],te=[];let z=0;if(!R.root){let X=R;for(;X;){const K=kt(s,X),G=St(s,X);te.splice(0,0,K),Q.splice(0,0,G),X=X._parent}z=Q.length}const W=await y.load(s.source,{...R,level:z,pathLabels:te,pathValues:Q},!0);Z(W)},Y);return()=>{const R={class:C.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:V,onFocus:x,onBlur:T};i&&(R.disabled=!0);const Z=[],Q=t.h("input",R);Z.push(Q);const te=[],z={class:["action-icon"]},W=t.h(M.value,z),X={class:D.value,onClick:I},K=t.h("view",X,{default:()=>[W]});if(te.push(K),E.value){const nt=t.h("view",{class:H.value},[s.unit]);te.push(nt)}const G={class:P.value},ee=t.h("view",G,{default:()=>te});Z.push(ee);const le={default:()=>Z};le.label=c.slots.default,le.prepend=c.slots.prepend,le.append=c.slots.append,le.fixedPreTip=c.slots.fixedPreTip,le.fixedTip=c.slots.fixedTip;let re={};re.visible=A.value,re["onUpdate:visible"]=$,re.modelValue=p.value,re.onChange=q,re.onPathChange=F,re.title=s.title,re.valueKey=s.valueKey,re.textKey=s.textKey,re.childrenKey=s.childrenKey,re.convertConfig=s.convertConfig,s.lazy?(re.lazy=!0,re.lazyLoad=L()):re.options=b.value;const ce=t.h(r,re);le.hide=()=>[ce];const Ce={...Je(s,Cr)};return s.prop&&(Ce.prop=`${s.prop}_item`),t.h(a,Ce,le)}}}}const{componentName:zd,create:Od,scope:Rd}=J("cascader-item"),vl=Od(Ld(zd,Rd,we,oe.CircleClose,oe.ArrowRight,oo,!1));function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rn={exports:{}},Fd=rn.exports,wr;function Kd(){return wr||(wr=1,function(e,n){(function(a,o){e.exports=o()})(Fd,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",i="second",s="minute",c="hour",d="day",f="week",u="month",h="quarter",k="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+)?$/,m=/\[([^\]]+)]|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(F,x,T){var P=String(F);return!P||P.length>=x?F:""+Array(x+1-P.length).join(T)+F},N={s:p,z:function(F){var x=-F.utcOffset(),T=Math.abs(x),P=Math.floor(T/60),E=T%60;return(x<=0?"+":"-")+p(P,2,"0")+":"+p(E,2,"0")},m:function F(x,T){if(x.date()<T.date())return-F(T,x);var P=12*(T.year()-x.year())+(T.month()-x.month()),E=x.clone().add(P,u),j=T-E<0,H=x.clone().add(P+(j?-1:1),u);return+(-(P+(T-E)/(j?E-H:H-E))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:u,y:k,w:f,d,D:g,h:c,m:s,s:i,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},w="en",C={};C[w]=v;var S=function(F){return F instanceof $},B=function F(x,T,P){var E;if(!x)return w;if(typeof x=="string"){var j=x.toLowerCase();C[j]&&(E=j),T&&(C[j]=T,E=j);var H=x.split("-");if(!E&&H.length>1)return F(H[0])}else{var O=x.name;C[O]=x,E=O}return!P&&E&&(w=E),E||!P&&w},A=function(F,x){if(S(F))return F.clone();var T=typeof x=="object"?x:{};return T.date=F,T.args=arguments,new $(T)},V=N;V.l=B,V.i=S,V.w=function(F,x){return A(F,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var $=function(){function F(T){this.$L=B(T.locale,null,!0),this.parse(T)}var x=F.prototype;return x.parse=function(T){this.$d=function(P){var E=P.date,j=P.utc;if(E===null)return new Date(NaN);if(V.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var H=E.match(b);if(H){var O=H[2]-1||0,_=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],O,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],O,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(E)}(T),this.$x=T.x||{},this.init()},x.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},x.$utils=function(){return V},x.isValid=function(){return this.$d.toString()!==y},x.isSame=function(T,P){var E=A(T);return this.startOf(P)<=E&&E<=this.endOf(P)},x.isAfter=function(T,P){return A(T)<this.startOf(P)},x.isBefore=function(T,P){return this.endOf(P)<A(T)},x.$g=function(T,P,E){return V.u(T)?this[P]:this.set(E,T)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(T,P){var E=this,j=!!V.u(P)||P,H=V.p(T),O=function(R,Z){var Q=V.w(E.$u?Date.UTC(E.$y,Z,R):new Date(E.$y,Z,R),E);return j?Q:Q.endOf(d)},_=function(R,Z){return V.w(E.toDate()[R].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Z)),E)},U=this.$W,I=this.$M,M=this.$D,D="set"+(this.$u?"UTC":"");switch(H){case k:return j?O(1,0):O(31,11);case u:return j?O(1,I):O(0,I+1);case f:var Y=this.$locale().weekStart||0,L=(U<Y?U+7:U)-Y;return O(j?M-L:M+(6-L),I);case d:case g:return _(D+"Hours",0);case c:return _(D+"Minutes",1);case s:return _(D+"Seconds",2);case i:return _(D+"Milliseconds",3);default:return this.clone()}},x.endOf=function(T){return this.startOf(T,!1)},x.$set=function(T,P){var E,j=V.p(T),H="set"+(this.$u?"UTC":""),O=(E={},E[d]=H+"Date",E[g]=H+"Date",E[u]=H+"Month",E[k]=H+"FullYear",E[c]=H+"Hours",E[s]=H+"Minutes",E[i]=H+"Seconds",E[r]=H+"Milliseconds",E)[j],_=j===d?this.$D+(P-this.$W):P;if(j===u||j===k){var U=this.clone().set(g,1);U.$d[O](_),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else O&&this.$d[O](_);return this.init(),this},x.set=function(T,P){return this.clone().$set(T,P)},x.get=function(T){return this[V.p(T)]()},x.add=function(T,P){var E,j=this;T=Number(T);var H=V.p(P),O=function(I){var M=A(j);return V.w(M.date(M.date()+Math.round(I*T)),j)};if(H===u)return this.set(u,this.$M+T);if(H===k)return this.set(k,this.$y+T);if(H===d)return O(1);if(H===f)return O(7);var _=(E={},E[s]=o,E[c]=l,E[i]=a,E)[H]||1,U=this.$d.getTime()+T*_;return V.w(U,this)},x.subtract=function(T,P){return this.add(-1*T,P)},x.format=function(T){var P=this,E=this.$locale();if(!this.isValid())return E.invalidDate||y;var j=T||"YYYY-MM-DDTHH:mm:ssZ",H=V.z(this),O=this.$H,_=this.$m,U=this.$M,I=E.weekdays,M=E.months,D=function(Z,Q,te,z){return Z&&(Z[Q]||Z(P,j))||te[Q].slice(0,z)},Y=function(Z){return V.s(O%12||12,Z,"0")},L=E.meridiem||function(Z,Q,te){var z=Z<12?"AM":"PM";return te?z.toLowerCase():z},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:V.s(U+1,2,"0"),MMM:D(E.monthsShort,U,M,3),MMMM:D(M,U),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:D(E.weekdaysMin,this.$W,I,2),ddd:D(E.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(O),HH:V.s(O,2,"0"),h:Y(1),hh:Y(2),a:L(O,_,!0),A:L(O,_,!1),m:String(_),mm:V.s(_,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:H};return j.replace(m,function(Z,Q){return Q||R[Z]||H.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(T,P,E){var j,H=V.p(P),O=A(T),_=(O.utcOffset()-this.utcOffset())*o,U=this-O,I=V.m(this,O);return I=(j={},j[k]=I/12,j[u]=I,j[h]=I/3,j[f]=(U-_)/6048e5,j[d]=(U-_)/864e5,j[c]=U/l,j[s]=U/o,j[i]=U/a,j)[H]||U,E?I:V.a(I)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return C[this.$L]},x.locale=function(T,P){if(!T)return this.$L;var E=this.clone(),j=B(T,P,!0);return j&&(E.$L=j),E},x.clone=function(){return V.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},F}(),q=$.prototype;return A.prototype=q,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",d],["$M",u],["$y",k],["$D",g]].forEach(function(F){q[F[1]]=function(x){return this.$g(x,F[0],F[1])}}),A.extend=function(F,x){return F.$i||(F(x,$,A),F.$i=!0),A},A.locale=B,A.isDayjs=S,A.unix=function(F){return A(1e3*F)},A.en=C[w],A.Ls=C,A.p={},A})}(rn)),rn.exports}var Ud=Kd();const Fe=je(Ud);var sn={exports:{}},Hd=sn.exports,Nr;function jd(){return Nr||(Nr=1,function(e,n){(function(a,o){e.exports=o()})(Hd,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?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(b){this[y]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var m=b.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(y)}],u=function(y){var b=s[y];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(y,b){var m,v=s.meridiem;if(v){for(var p=1;p<=24;p+=1)if(y.indexOf(v(p,0,b))>-1){m=p>12;break}}else m=y===(b?"pm":"PM");return m},k={A:[i,function(y){this.afternoon=h(y,!1)}],a:[i,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:[i,function(y){var b=s.ordinal,m=y.match(/\d+/);if(this.day=m[0],b)for(var v=1;v<=31;v+=1)b(v).replace(/\[|\]/g,"")===y&&(this.day=v)}],M:[r,d("month")],MM:[l,d("month")],MMM:[i,function(y){var b=u("months"),m=(u("monthsShort")||b.map(function(v){return v.slice(0,3)})).indexOf(y)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[i,function(y){var b=u("months").indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var b,m;b=y,m=s&&s.formats;for(var v=(y=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,V,$){var q=$&&$.toUpperCase();return V||m[$]||a[$]||m[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,x,T){return x||T.slice(1)})})).match(o),p=v.length,N=0;N<p;N+=1){var w=v[N],C=k[w],S=C&&C[0],B=C&&C[1];v[N]=B?{regex:S,parser:B}:w.replace(/^\[|\]$/g,"")}return function(A){for(var V={},$=0,q=0;$<p;$+=1){var F=v[$];if(typeof F=="string")q+=F.length;else{var x=F.regex,T=F.parser,P=A.slice(q),E=x.exec(P)[0];T.call(V,E),A=A.replace(E,"")}}return function(j){var H=j.afternoon;if(H!==void 0){var O=j.hours;H?O<12&&(j.hours+=12):O===12&&(j.hours=0),delete j.afternoon}}(V),V}}return function(y,b,m){m.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var v=b.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,V=S[3]===!0,$=A||V,q=S[2];V&&(q=S[2]),s=this.$locale(),!A&&q&&(s=m.Ls[q]),this.$d=function(P,E,j){try{if(["x","X"].indexOf(E)>-1)return new Date((E==="X"?1e3:1)*P);var H=g(E)(P),O=H.year,_=H.month,U=H.day,I=H.hours,M=H.minutes,D=H.seconds,Y=H.milliseconds,L=H.zone,R=new Date,Z=U||(O||_?1:R.getDate()),Q=O||R.getFullYear(),te=0;O&&!_||(te=_>0?_-1:R.getMonth());var z=I||0,W=M||0,X=D||0,K=Y||0;return L?new Date(Date.UTC(Q,te,Z,z,W,X,K+60*L.offset*1e3)):j?new Date(Date.UTC(Q,te,Z,z,W,X,K)):new Date(Q,te,Z,z,W,X,K)}catch{return new Date("")}}(w,B,C),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),$&&w!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var F=B.length,x=1;x<=F;x+=1){S[1]=B[x-1];var T=m.apply(this,S);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}x===F&&(this.$d=new Date(""))}else p.call(this,N)}}})}(sn)),sn.exports}var Wd=jd();const Yd=je(Wd);var cn={exports:{}},Xd=cn.exports,Br;function Qd(){return Br||(Br=1,function(e,n){(function(a,o){e.exports=o()})(Xd,function(){return function(a,o,l){var r=o.prototype,i=r.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],d=s%100;return"["+s+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(s){var c=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),u=(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(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 f.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.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 i.bind(this)(u)}}})}(cn)),cn.exports}var Gd=Qd();const Zd=je(Gd);var un={exports:{}},Jd=un.exports,Ar;function _d(){return Ar||(Ar=1,function(e,n){(function(a,o){e.exports=o()})(Jd,function(){return function(a,o,l){var r=o.prototype,i=function(u){return u&&(u.indexOf?u:u.s)},s=function(u,h,k,g,y){var b=u.name?u:u.$locale(),m=i(b[h]),v=i(b[k]),p=m||v.map(function(w){return w.slice(0,g)});if(!y)return p;var N=b.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(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,b){return y||b.slice(1)})}(u.formats[h.toUpperCase()])},f=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):s(u,"months")},monthsShort:function(h){return h?h.format("MMM"):s(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return f.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 s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(u){return s(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return s(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return s(c(),"weekdaysMin","weekdays",2,u)}}})}(un)),un.exports}var ef=_d();const tf=je(ef);var dn={exports:{}},nf=dn.exports,Vr;function of(){return Vr||(Vr=1,function(e,n){(function(a,o){e.exports=o()})(nf,function(){var a="week",o="year";return function(l,r,i){var s=r.prototype;s.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 f=i(this).startOf(o).add(1,o).date(d),u=i(this).endOf(a);if(f.isBefore(u))return 1}var h=i(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),k=this.diff(h,a,!0);return k<0?i(this).startOf("week").week():Math.ceil(k)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(dn)),dn.exports}var lf=of();const af=je(lf);var fn={exports:{}},rf=fn.exports,Tr;function sf(){return Tr||(Tr=1,function(e,n){(function(a,o){e.exports=o()})(rf,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),i=this.year();return r===1&&l===11?i+1:l===0&&r>=52?i-1:i}}})}(fn)),fn.exports}var cf=sf();const uf=je(cf);var mn={exports:{}},df=mn.exports,$r;function ff(){return $r||($r=1,function(e,n){(function(a,o){e.exports=o()})(df,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})}(mn)),mn.exports}var mf=ff();const pf=je(mf);var pn={exports:{}},hf=pn.exports,Er;function gf(){return Er||(Er=1,function(e,n){(function(a,o){e.exports=o()})(hf,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})}(pn)),pn.exports}var yf=gf();const vf=je(yf);var hn={exports:{}},bf=hn.exports,xr;function kf(){return xr||(xr=1,function(e,n){(function(a,o){e.exports=o()})(bf,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})}(hn)),hn.exports}var Sf=kf();const Cf=je(Sf);Fe.extend(tf);Fe.extend(Zd);Fe.extend(Yd);Fe.extend(af);Fe.extend(uf);Fe.extend(pf);Fe.extend(vf);Fe.extend(Cf);const ae={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n,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(),i=l.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/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),i=Math.round((l.valueOf()-r.valueOf())/864e5);let s=l.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let i=l.getDay();if(o===0){const c=r-i*864e5,d=r+(6-i)*864e5,f=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[f,u]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,d=r+(7-i)*s,f=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[f,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i}},Dr=new Date().getFullYear(),bl={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"},xn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ve(n)>0?o=ae.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Ho=(e,n,a)=>{He(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ae.format(new Date(o),a)},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(Dr-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(Dr+10,11,31),validator:He},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:Nf}=J("date-picker"),Bf=wf({components:{Picker:Jt},props:{...jo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Nf),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 i=(p,N)=>{const w=e[`${p}Date`],C=w.getFullYear();let S=1,B=1,A=0,V=0;p==="max"&&(S=12,B=r(N.getFullYear(),N.getMonth()+1),A=23,V=59);const $=V;return N.getFullYear()===C&&(S=w.getMonth()+1,N.getMonth()+1===S&&(B=w.getDate(),N.getDate()===B&&(A=w.getHours(),N.getHours()===A&&(V=w.getMinutes())))),{[`${p}Year`]:C,[`${p}Month`]:S,[`${p}Date`]:B,[`${p}Hour`]:A,[`${p}Minute`]:V,[`${p}Seconds`]:$}},s=t.computed(()=>{if(!h.value)return[];const{maxYear:p,maxDate:N,maxMonth:w,maxHour:C,maxMinute:S,maxSeconds:B}=i("max",h.value),{minYear:A,minDate:V,minMonth:$,minHour:q,minMinute:F,minSeconds:x}=i("min",h.value);let T=[{type:"year",range:[A,p]},{type:"month",range:[$,w]},{type:"day",range:[V,N]},{type:"hour",range:[q,C]},{type:"minute",range:[F,S]},{type:"seconds",range:[x,B]}];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,N,w,C,S)=>{const B=[];for(;p<=N;){let A=!0;if(typeof e.itemFilter=="function"){const V={text:`${p}`,value:p,type:w,currentYearMonth:C};A=e.itemFilter(V)}if(A)if(typeof e.itemFormatter=="function"){const V={text:`${p}`,value:p,type:w,currentYearMonth:C};e.itemFormatter(V),B.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${p}${o[w]}`;if(w==="day"){if(C[0]===S[0]&&C[1]===S[1]&&p===S[2])V=o.today;else{const q=new Date(C[0],C[1],p).getDay();V=`${V} ${o.fullWeekdays[q]}`}B.push({text:V,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 s.value.forEach(S=>{let B=c(S.range[0],S.range[1],S.type,w,N);B&&C.push(B)}),C}),f=(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=xn(e,e.modelValue,e.valueFormat):N=xn(e,p,bl[e.type]):He(p)?N=p:N=new Date,!!N&&(!h.value||N.getTime()!==h.value.getTime())){h.value=N;let w=[];s.value.forEach(C=>{let S=f(C.type,N);w.push(S)}),u.value=w}},{immediate:!0});const k=p=>{if(!p||p.length===0){h.value=new Date;let N=[];s.value.forEach(w=>{let C=f(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=>{k(p)},onClose:()=>{n("update:close",!1)},onConfirm:p=>{k(p);const N=h.value??new Date;if(e.valueFormat){let w=Ho(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 Af(e,n,a,o,l,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{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 lo=ne(Bf,[["render",Af]]),Vf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Tf(e){let n=e.format;if(!n){let a=e.type??"date";n=bl[a]}return n}function $f(e,n,a,o,l,r,i=!1){return{props:{...pe,...ge,...jo,...Vf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),f=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(s,["placeholder"]),g=t.ref(!1),b=Me(s,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:s.valueFormat?xn(s,I,s.valueFormat)??I:xn(s,I,bl[s.type])??I:He(I)?I:null,u),m=t.computed(()=>{if(!b.value)return"";const I=Tf(s);return Ho(s,b.value,I)}),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":f.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),w=t.computed(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),C=t.ref(!1),S=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:S,hidePicker:B});const A=I=>{C.value=I},V=I=>{if(b.value=I,s.valueFormat){let M=Ho(s,I,s.valueFormat);u("update:modelValue",M,{}),u("change",M,{})}else u("update:modelValue",I,{}),u("change",I,{})},$=I=>{let D=I.target.value;g.value=!0,u("focus",D,I)},q=I=>{setTimeout(()=>{g.value=!1},0);let D=I.target.value;s.maxLength&&D.length>Number(s.maxLength)&&(D=D.slice(0,Number(s.maxLength))),u("blur",D,I)},F=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":f.value})),x=t.computed(()=>ve(s.unit)>0),T=t.computed(()=>ve(s.unit)>0&&!g.value),P=t.computed(()=>({hidden:!T.value})),E=I=>{b.value="",u("update:modelValue","",I),u("change","",I),u("clear",""),B()},j=t.computed(()=>s.clearable&&!d.value&&!f.value),H=t.computed(()=>{let I=ve(b.value)>0;return s.clearable&&I&&g.value}),O=I=>{H.value?E(I):S()},_=t.computed(()=>H.value&&j.value?o:l),U=t.computed(()=>({action:!0}));return()=>{const I={class:p.value,style:w.value,type:"text",maxlength:s.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:S,onFocus:$,onBlur:q};i&&(I.disabled=!0);const M=[],D=t.h("input",I);M.push(D);const Y=[],L={class:["action-icon"]},R=t.h(_.value,L),Z={class:U.value,onClick:O},Q=t.h("view",Z,{default:()=>[R]});if(Y.push(Q),x.value){const ce=t.h("view",{class:P.value},[s.unit]);Y.push(ce)}const te={class:F.value},z=t.h("view",te,{default:()=>Y});M.push(z);const W={default:()=>M};W.label=c.slots.default,W.prepend=c.slots.prepend,W.append=c.slots.append,W.fixedPreTip=c.slots.fixedPreTip,W.fixedTip=c.slots.fixedTip;const X=be(s,jo);X.valueFormat=null,X.disabled=!1,X.readonly=d.value||f.value,X.visible=C.value,X["onUpdate:visible"]=A,X.modelValue=b.value,X["onUpdate:modelValue"]=V,X.onClear=E;const K={};if(c.slots.top){const ce=c.slots.top();K.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();K.default=()=>ce}const G=t.h(r,X,K);W.hide=()=>[G];const le={...be(s,ge,pe)};return s.prop&&(le.prop=`${s.prop}_item`),t.h(a,le,W)}}}}const{create:Ef,componentName:xf,scope:Df}=J("date-item"),kl=Ef($f(xf,Df,we,oe.CircleClose,oe.Date,lo,!1)),If=39,qf=64,{create:Mf,scope:Pf}=J("calendar-pane"),Lf=Mf({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=se.useFoxI18n(Pf),r=o(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(l("weekdays")),s=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),f=t.ref(null),u=t.ref(null),h=t.ref(0),k=t.computed(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),g=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),b=t.computed(()=>a["bottom-info"]),m=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=L=>L.split("-"),p=L=>ae.isEqual(m.currDate[0],L),N=L=>ae.isEqual(m.currDate[1],L),w=L=>m.currDate?.length>0?m.currDate?.some(R=>ae.isEqual(R,L)):!1,C=(L,R)=>R.curData[0]+"-"+R.curData[1]+"-"+ae.getNumTwoBit(+L.day),S=(L,R)=>{const Z=C(L,R),{type:Q}=e;return L.type=="curr"?ae.isEqual(m.currDate,Z)||(Q=="range"||Q=="week")&&(p(Z)||N(Z))||Q=="multiple"&&w(Z)?`${m.dayPrefix}--active`:m.propStartDate&&ae.compareDate(Z,m.propStartDate)||m.propEndDate&&ae.compareDate(m.propEndDate,Z)?`${m.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&ae.compareDate(m.currDate[0],Z)&&ae.compareDate(Z,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},B=()=>{const{type:L}=e;if(L=="range"&&m.chooseData.length==2||L!="range"){let R=m.chooseData.slice(0);L=="week"&&(R={weekDate:[V(m.chooseData[0]),V(m.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},A=(L,R,Z=!1)=>{if(S(L,R)!=`${m.dayPrefix}--disabled`){const{type:Q}=e;let[te,z]=R.curData,W=[...R.curData];if(W[2]=ae.getNumTwoBit(Number(L.day)),W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=ae.getWhatDay(+W[0],+W[1],+W[2]),Q=="multiple")if(m.currDate?.length>0){let X;m.currDate?.forEach((K,G)=>{K==W[3]&&(X=G)}),Z?m.chooseData.push([...W]):X!==void 0?(m.currDate.splice(X,1),m.chooseData.splice(X,1)):(m.currDate.push(W[3]),m.chooseData.push([...W]))}else m.currDate=[W[3]],m.chooseData=[[...W]];else if(Q=="range"){let X=Object.values(m.currDate).length;X==2||X==0?m.currDate=[W[3]]:ae.compareDate(m.currDate[0],W[3])?Array.isArray(m.currDate)&&m.currDate.push(W[3]):Array.isArray(m.currDate)&&m.currDate.unshift(W[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...W]]:ae.compareDate(m.chooseData[0][3],W[3])?m.chooseData=[...m.chooseData,[...W]]:m.chooseData=[[...W],...m.chooseData]}else if(Q=="week"){let X=ae.getWeekDate(te,z,L.day,e.firstDayOfWeek);m.propStartDate&&ae.compareDate(X[0],m.propStartDate)&&X.splice(0,1,m.propStartDate),m.propEndDate&&ae.compareDate(m.propEndDate,X[1])&&X.splice(1,1,m.propEndDate),m.currDate=X,m.chooseData=[ae.formatResultDate(X[0]),ae.formatResultDate(X[1])]}else m.currDate=W[3],m.chooseData=[...W];if(!Z){let X=m.chooseData;Q=="week"&&(X={weekDate:[V(m.chooseData[0]),V(m.chooseData[1])]}),n("select",X),(e.isAutoBackFill||!e.poppable)&&B()}}},V=L=>{let[R,Z,Q]=L;return{date:L,monthWeekNum:ae.getMonthWeek(R,Z,Q,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(R,Z,Q,e.firstDayOfWeek)}},$=L=>{const R=m.monthsData[m.monthsData.length-1];let Z=parseInt(R.curData[0]),Q=parseInt(R.curData[1].toString().replace(/^0/,""));switch(L){case"prev":Q==1&&(Z-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(Z+=1),Q=Q==12?1:++Q;break}return[Z+"",ae.getNumTwoBit(Q),ae.getMonthDays(String(Z),String(Q))+""]},q=(L,R,Z)=>{let{year:Q,month:te}=Z;return Array.from(Array(L),(z,W)=>({day:String(W+1),type:R,year:Q,month:te}))},F=(L,R,Z,Q)=>{L=L-e.firstDayOfWeek;let{year:te,month:z}=Z;return L>=7&&(L-=7),Array.from(Array(Q),(X,K)=>({day:String(K+1),type:R,year:te,month:z})).slice(Q-L)},x=(L,R)=>{const Z=ae.getMonthPreDay(+L[0],+L[1]);let Q=Number(L[1])-1,te=Number(L[0]);Q<=0&&(Q=12,te+=1);const z=ae.getMonthDays(String(L[0]),String(L[1])),W=ae.getMonthDays(te+"",Q+""),X={year:L[0],month:L[1]},K={curData:L,title:l("monthTitle",{year:X.year,month:X.month}),monthData:[...F(Z,"prev",{month:String(Q),year:String(te)},W),...q(z,"curr",X)],cssHeight:0,cssScrollHeight:0},G=K.monthData.length>35?6:5;K.cssHeight=If+qf*G;let ee=0;m.monthsData.length>0&&(ee=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),K.cssScrollHeight=ee,(!m.endData||!ae.compareDate(`${m.endData[0]}-${m.endData[1]}-${ae.getMonthDays(m.endData[0],m.endData[1])}`,`${L[0]}-${L[1]}-${L[2]}`))&&m.monthsData.push(K)},T=()=>{let L=e.startDate?e.startDate:ae.getDay(0),R=e.endDate?e.endDate:ae.getDay(365);m.propStartDate=L,m.propEndDate=R,m.startData=v(L),m.endData=v(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Z={year:Number(m.startData[0]),month:Number(m.startData[1])},Q={year:Number(m.endData[0]),month:Number(m.endData[1])};let te=Q.month-Z.month;Q.year-Z.year>0&&(te=te+12*(Q.year-Z.year)),te<=0&&(te=1),x(m.startData);let z=1;do x($("next"));while(z++<te);if(m.monthsNum=te,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(L&&ae.compareDate(m.currDate[0],L)&&m.currDate.splice(0,1,L),R&&ae.compareDate(R,m.currDate[1])&&m.currDate.splice(1,1,R),m.defaultData=[...v(m.currDate[0]),...v(m.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let W=[],X={};m.currDate.forEach(K=>{L&&!ae.compareDate(K,L)&&R&&!ae.compareDate(R,K)&&(Object.hasOwnProperty.call(X,K)||(W.push(K),X[K]=K))}),m.currDate=[...W],m.defaultData=[...v(W[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[W,X,K]=v(m.currDate[0]),G=ae.getWeekDate(W,X,K,e.firstDayOfWeek);m.currDate=G,L&&ae.compareDate(m.currDate[0],L)&&m.currDate.splice(0,1,L),R&&ae.compareDate(R,m.currDate[1])&&m.currDate.splice(1,1,R),m.defaultData=[...v(m.currDate[0]),...v(m.currDate[1])]}}else m.currDate&&(L&&ae.compareDate(m.currDate,L)?m.currDate=L:R&&!ae.compareDate(m.currDate,R)&&(m.currDate=R),m.defaultData=[...v(m.currDate)])};Ee({scrollToDate:L=>{ae.compareDate(L,m.propStartDate)?L=m.propStartDate:ae.compareDate(L,m.propEndDate)||(L=m.propEndDate);let R=v(L);m.monthsData.forEach((Z,Q)=>{if(Z.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let te=m.monthsData[Q].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let z=0,W=setInterval(()=>{if(z++,c.value){let X=te/10;c.value.scrollTop=c.value.scrollTop+X}z>=10&&(clearInterval(W),c.value&&(c.value.scrollTop=m.monthsData[Q].cssScrollHeight))},40)}else c.value.scrollTop=m.monthsData[Q].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)},doLayout:()=>{let L=0,R=0;m.defaultData.length>0&&m.monthsData.forEach((te,z)=>{te.title==l("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(L=z),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(R=z)}),H(m.monthsNum,L),m.currentIndex=L,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?(A({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),A({day:m.defaultData[5],type:"curr"},m.monthsData[R],!0)):e.type=="week"?A({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(te=>{let z=v(te),W=m.currentIndex;m.monthsData.forEach((X,K)=>{X.title==l("monthTitle",{year:z[0],month:z[1]})&&(W=K)}),A({day:z[2],type:"curr"},m.monthsData[W],!0)}):A({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let Z=m.monthsData[m.monthsData.length-1],Q=Z.cssHeight+Z.cssScrollHeight;We(()=>{c?.value&&d?.value&&u?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Q}px`,c.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(Q/(m.monthsNum+1))}});const H=(L,R)=>{L>=3?R>0&&R<L?m.defaultRange=[R-1,R+3]:R==0?m.defaultRange=[R,R+4]:R==L&&(m.defaultRange=[R-2,R+2]):m.defaultRange=[0,L+2];let Z=m.monthsData[m.defaultRange[0]].cssScrollHeight;m.translateY=Z},O=(L,R)=>(e.type=="range"||e.type=="week")&&L.type=="curr"&&S(L,R)=="fox-calendar__day--active",_=(L,R)=>O(L,R)&&p(C(L,R)),U=(L,R)=>m.currDate.length>=2&&N(C(L,R))?O(L,R):!1,I=()=>{if(m.currDate.length>=2)return ae.isEqual(m.currDate[0],m.currDate[1])},M=L=>{const R=`${L.year}-${L.month}-${Number(L.day)<10?"0"+L.day:L.day}`;return ae.isEqual(R,ae.date2Str(new Date))},D=L=>{if(m.monthsData.length<=1)return;const R=L.target.scrollTop;let Z=Math.floor(R/m.avgHeight);if(Z==0)R>=m.monthsData[Z+1].cssScrollHeight&&(Z+=1);else if(Z>0&&Z<m.monthsNum-1)R>=m.monthsData[Z+1].cssScrollHeight&&(Z+=1),R<m.monthsData[Z].cssScrollHeight&&(Z-=1);else{const Q=Math.round(R+h.value);Q<m.monthsData[Z].cssScrollHeight+m.monthsData[Z].cssHeight&&R>m.monthsData[Z-1].cssScrollHeight&&(Z-=1),Z+1<=m.monthsNum&&Q>=m.monthsData[Z+1].cssScrollHeight+m.monthsData[Z+1].cssHeight&&(Z+=1),Z>=1&&R<m.monthsData[Z-1].cssScrollHeight&&(Z-=1)}m.currentIndex!==Z&&(m.currentIndex=Z,H(m.monthsNum,Z)),m.yearMonthTitle=m.monthsData[Z].title},Y=()=>{m.chooseData.splice(0),m.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,L=>{L&&e.poppable&&Y()}),{weeks:s,compConthsData:k,showTopBtn:g,topInfo:y,bottomInfo:b,rangeTip:I,mothsViewScroll:D,getClass:S,isStartTip:_,isEndTip:U,chooseDay:A,isCurrDay:M,confirm:B,months:c,...t.toRefs(m),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:f,viewArea:u}}}),zf={class:"fox-calendar__header"},Of={key:0,class:"fox-calendar__header-title"},Rf={key:1,class:"fox-calendar__header-slot"},Ff={key:2,class:"fox-calendar__header-subtitle"},Kf={class:"fox-calendar__weekdays",ref:"weeksPanel"},Uf={class:"fox-calendar__panel",ref:"monthsPanel"},Hf={class:"fox-calendar__month-title"},jf={class:"fox-calendar__days"},Wf=["onClick"],Yf={class:"fox-calendar__day-value"},Xf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Qf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Gf={key:2,class:"fox-calendar__day-tips--curr"},Zf={key:4,class:"fox-calendar__day-tip"},Jf={key:0,class:"fox-calendar__footer"};function _f(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",zf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Of,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Rf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ff,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Kf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Uf,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",Hf,t.toDisplayString(i.title),1),t.createElementVNode("view",jf,[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(i.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),onClick:f=>e.chooseDay(c,i)},[t.createElementVNode("view",Yf,[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",Xf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Qf,[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",Gf,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(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,i)?(t.openBlock(),t.createElementBlock("view",Zf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Wf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Jf,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const em=ne(Lf,[["render",_f]]),tm=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=Je({...e},{poppable:!1});return t.h(fe,a,n)}else return n?.default?.()??null}}}),nm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),gn={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:om}=J("calendar"),lm=om({components:{Wrapper:tm,CalendarPane:em},props:{...gn},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),i=t.computed(()=>a["bottom-info"]),s=t.ref(null),c=y=>{s.value?.scrollToDate(y)},d=()=>{s.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:d});const f=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:f,close:u,select:y=>{n("select",y)},choose:y=>{u(),n("choose",y)},calendarRef:s,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:i}}});function am(e,n,a,o,l,r){const i=t.resolveComponent("CalendarPane"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(s,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(i,{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 ao=ne(lm,[["render",am]]),Ir={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}},wo=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ve(e)>0?a=ae.parser(e,n):a=new Date,a},dt=(e,n,a)=>(He(n)||(n=new Date),ae.format(n,a)),ft=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function rm(e,n,a,o,{CloseIcon:l,MarkIcon:r},i=!1){return{props:{...pe,...ge,...gn,...Ir},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),f=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(s,["placeholder"]),g=t.ref(!1),y=t.computed(()=>s.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},v=(D,Y="one",L="YYYY-MM-DD")=>{if(nm(D)){m();return}if(y.value&&Array.isArray(D)&&D.length==2){let R,Z;typeof D[0]=="string"?(R=wo(D[0],L),Z=wo(D[1],L)):(R=D[0],Z=D[1]);let Q=ft(R),te=ft(Z);(b.startDate===null||b.startDate.getTime()!==R.getTime()||b.endDate?.getTime()!==Z.getTime())&&(b.startDate=R,b.startArray=Q,b.endDate=Z,b.endArray=te)}else{let R;typeof D=="string"?R=wo(D,L):R=D;let Z=ft(R);(b.startDate===null||b.startDate.getTime()!==R.getTime())&&(b.startDate=R,b.startArray=Z)}};v(s.modelValue,s.type,s.valueFormat),t.watch(()=>s.modelValue,D=>{v(D,s.type,s.valueFormat),u("setValue",D)});const p=t.computed(()=>{if(b.startDate===null)return"";if(y.value){let D=dt(s,b.startDate,s.format),Y=dt(s,b.endDate,s.format);return`${D} ${s.rangeSeparator} ${Y}`}else{let D=dt(s,b.startDate,s.format);return s.showWeek&&(D=`${D} ${b.startArray[4]}`),D}}),N=t.computed(()=>{if(b.startDate===null)return null;if(y.value){let D=ae.date2Str(b.startDate),Y=ae.date2Str(b.endDate??new Date);return[D,Y]}else return ae.date2Str(b.startDate)}),w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":f.value})),S=Ve(t.computed(()=>s.textAlign),"textAlign"),B=t.computed(()=>{const D={};return S.value&&(D["text-align"]=S.value),D}),A=t.ref(!1),V=()=>{f.value||d.value||(A.value=!0)},$=D=>{A.value=D},q=D=>{if(D){if(y.value&&Array.isArray(D)){let Y=D[0],L=me(Y[0]),R=me(Y[1]),Z=me(Y[2]),Q=new Date(L,R-1,Z),te=D[1];L=me(te[0]),R=me(te[1]),Z=me(te[2]);let z=new Date(L,R-1,Z);if(b.startDate=Q,b.startArray=ft(Q),b.endDate=z,b.endArray=ft(z),s.valueFormat){let W=dt(s,Q,s.valueFormat),X=dt(s,z,s.valueFormat);u("update:modelValue",[W,X],{})}else u("update:modelValue",[Q,z],{})}else{let Y=D,L=me(Y[0]),R=me(Y[1]),Z=me(Y[2]),Q=new Date(L,R-1,Z);if(b.startDate=Q,b.startArray=ft(Q),s.valueFormat){let te=dt(s,Q,s.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",Q,{})}u("change",D,{})}},F=D=>{let L=D.target.value;g.value=!0,u("focus",L,D)},x=D=>{setTimeout(()=>{g.value=!1},0);let L=D.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),u("blur",L,D)},T=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":f.value})),P=t.computed(()=>ve(s.unit)>0),E=t.computed(()=>ve(s.unit)>0&&!g.value),j=t.computed(()=>({hidden:!E.value})),H=D=>{m(),u("update:modelValue",null,D),u("change","",D),u("clear","")},O=t.computed(()=>s.clearable&&!d.value&&!f.value),_=t.computed(()=>{let D=ve(p.value)>0;return s.clearable&&D&&g.value}),U=D=>{_.value?H(D):V()},I=t.computed(()=>_.value&&O.value?l:r),M=t.computed(()=>({action:!0}));return()=>{const D={class:C.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:V,onFocus:F,onBlur:x};i&&(D.disabled=!0);const Y=[],L=t.h("input",D);Y.push(L);const R=[],Z={class:["action-icon"]},Q=t.h(I.value,Z),te={class:M.value,onClick:U},z=t.h("view",te,{default:()=>[Q]});if(R.push(z),P.value){const Ce=t.h("view",{class:j.value},[s.unit]);R.push(Ce)}const W={class:T.value},X=t.h("view",W,{default:()=>R});Y.push(X);const K={default:()=>Y};K.label=c.slots.default,K.prepend=c.slots.prepend,K.append=c.slots.append,K.fixedPreTip=c.slots.fixedPreTip,K.fixedTip=c.slots.fixedTip;const G=be(s,gn);G.visible=A.value,G["onUpdate:visible"]=$,G["default-value"]=N.value,G.onChoose=q;const ee={};if(c.slots.btn){const Ce=c.slots.btn();ee.btn=()=>Ce}c.slots.day&&(ee.day=c.slots.day),c.slots.topInfo&&(ee.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ee.bottomInfo=c.slots.bottomInfo);const le=t.h(a,G,ee);K.hide=()=>[le];const ce={...Je(s,gn,Ir)};return s.prop&&(ce.prop=`${s.prop}_item`),t.h(o,ce,K)}}}}const{componentName:sm,create:im,scope:cm}=J("calendar-item"),Sl=im(rm(sm,cm,ao,we,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),um={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 dm(e,{CheckNormal:n,Checked:a}){return{props:{...um},setup(o,{emit:l,slots:r}){const i=t.inject("parent",null),s=Un(),c=t.computed(()=>i.label.value===o.label),d=t.computed(()=>i.position),f=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const b=de(o.iconSize),m=o.checkedIcon??s.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(m,{width:b,height:b,class:y})}}else{if(r.icon)return r.icon();{const b=de(o.iconSize),m=o.icon??s.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(m,{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?.())},k=()=>{c.value||o.disabled||o.readonly||i.updateValue(o.label)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${g?`${e}--reverse`:""}`,onClick:k},[o.shape=="button"?h():g?[u(),f()]:[f(),u()]])}}}const{componentName:fm,create:mm}=J("radio"),ro=mm(dm(fm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:qr,create:pm}=J("radio-group"),so=pm({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}=At(),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:`${qr} ${qr}--${e.direction}`,style:l},n.default?.())}}});function Mr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(yn(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(Lt(e,r)===a)return l}return-1}function yn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Lt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function hm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function gm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let ym=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=et(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 vm(){const e=t.getCurrentInstance();return new ym(e.proxy)}function bm(e){return{text:e,value:e}}const Pr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},km={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Sm={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 Cm(e,n,a,o,l){return{props:{...pe,...ge,...Pr,...km,...Sm},emits:["change","update:modelValue","setValue"],setup(r,i){const s=Te(t.computed(()=>r.readonly)),c=$e(t.computed(()=>r.disabled)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return c.value}},r.prop??i.attrs.name),u=vm(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([m,v])=>{if(m){const p=await u.load("radio",m,v);if(p.length>0)if(typeof p[0]=="string"){const C=p.map(S=>bm(S));h.value=C}else h.value=p;else h.value=[]}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([m,v])=>{k.value=Mr(r,v,m,r.valueType),f("setValue",m)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const m=h.value[k.value];return Lt(r,m)}),y=m=>{let v=null,p=null;if(h.value.length>0){let N=Mr(r,h.value,m,"value");k.value=N,N>=0&&(p=h.value[N],r.valueType==="text"?v=yn(r,p):r.valueType==="item"?v=p:v=Lt(r,p))}else v=m;f("update:modelValue",v),f("change",v,p)},b=()=>{let m=null,v=null;if(h.value.length>0&&k.value!==-1){let p=h.value[k.value];r.valueType==="text"?m=yn(r,p):r.valueType==="item"?m=p:m=Lt(r,p)}f("update:modelValue",m),f("change",m,v)};if(Ee({clear(){k.value!==-1&&(k.value=-1,b())}}),r.source){const m=()=>{const v=[],p=be(r,Pr);return h.value.forEach((N,w)=>{const C=Lt(r,N),S=hm(r,N);let B={...p,label:C,disabled:S};const A=gm(r,N,w);B={...B,...A},c.value&&(B.disabled=!0),s.value&&(B.readonly=!0);const V={};if(i.slots.icon&&(V.icon=i.slots.icon),i.slots.checkedIcon&&(V.checkedIcon=i.slots.checkedIcon),typeof i.slots.text=="function"){const q=i.slots.text(N);V.default=()=>[q]}else{const q=yn(r,N);V.default=()=>q}let $=t.h(l,B,V);v.push($)}),v};return()=>{const v=m(),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=i.slots.default,w.prepend=i.slots.prepend,w.append=i.slots.append,w.fixedPreTip=i.slots.fixedPreTip,w.fixedTip=i.slots.fixedTip;const S={...be(r,ge,pe)};return r.prop&&(S.prop=`${r.prop}_item`),t.h(a,S,w)}}else return()=>{const m=i.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":y},{default:()=>m})}}}}const{componentName:wm,create:Nm,scope:Bm}=J("radio-item"),Cl=Nm(Cm(wm,Bm,we,so,ro)),Am=(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:i}=At(),s=Un(),c=t.inject("parent",null),d=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,p=>{d.partialSelect=p});const f=t.computed(()=>!!c),u=t.computed(()=>f.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>f.value?c.position:l.textPosition);let k="";const g=(p,N)=>{k="click",i("update:modelValue",p),i("change",p,N)};t.watch(()=>l.modelValue,p=>{k=="click"?k="":i("change",p)});const y=()=>{const p=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const N=de(l.iconSize),w=l.indeterminateIcon??s.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??s.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??s.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})}}},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?.())},m=()=>{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),f.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(()=>{f.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{f.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:v},[l.shape=="button"?m():[y(),b()]])}}),{componentName:Vm,create:Tm}=J("checkbox"),io=Tm(Am(Vm,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:$m,componentName:Lr}=J("checkbox-group"),co=$m({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}=At(),o=t.reactive({children:[]}),l=d=>{d.proxy&&o.children.push(d.proxy)},r=d=>{d.proxy&&(o.children=o.children.filter(f=>f!==d.proxy))},i=d=>{a("update:modelValue",d),a("change",d)},s=d=>{const f=[];d&&o.children.forEach(u=>{u?.disabled||f.push(u?.label)}),a("update:modelValue",f)},c=()=>{const d=o.children.filter(f=>f?.disabled?!1:!e.modelValue.includes(f.label)).map(f=>f.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:i,link:l,unlink:r}),t.watch(()=>e.modelValue,d=>{a("change",d)}),Ee({toggleAll:s,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${Lr} ${Lr}--${e.direction}`,style:d},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(Wo(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(vn(e,r)===a)return l}return-1}function Wo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function vn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Em(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function xm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Dm=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=et(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 Im(){const e=t.getCurrentInstance();return new Dm(e.proxy)}function qm(e){return{text:e,value:e}}const Mm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Or={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Pm={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 Lm(e,n,a,o,l){return{props:{...pe,...ge,...Mm,...Or,...Pm},emits:["change","update:modelValue","setValue"],setup(r,i){const s=$e(t.computed(()=>r.disabled)),c=Te(t.computed(()=>r.readonly)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return s.value}},r.prop??i.attrs.name),u=Im(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([m,v])=>{if(m){const p=await u.load("checkbox",m,v);if(p.length>0)if(typeof p[0]=="string"){const C=p.map(S=>qm(S));h.value=C}else h.value=p;else h.value=[]}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([m,v])=>{const p=[];Array.isArray(m)&&m.forEach(N=>{let w=zr(r,v,N,r.valueType);w!==-1&&p.push(w)}),!Ie(p,k.value)&&(k.value=p,f("setValue",p))},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let m=[];return k.value.forEach(v=>{let p=h.value[v];m.push(vn(r,p))}),m}),y=m=>{let v=[],p=[];if(h.value.length>0){const N=[];Array.isArray(m)&&m.forEach(w=>{let C=zr(r,h.value,w,"value");C!==-1&&N.push(C);const S=h.value[C];p.push(S),r.valueType==="text"?v.push(Wo(r,S)):r.valueType==="item"?v.push(S):v.push(vn(r,S))}),k.value=N}else v=m;f("update:modelValue",v),f("change",v,p)},b=t.ref();if(Ee({toggleAll:m=>{b.value.toggleAll(m)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const m=()=>{const v=[],p=be(r,Or);return h.value.forEach((N,w)=>{const C=vn(r,N),S=Em(r,N);let B={...p,label:C,disabled:S};const A=xm(r,N,w);B={...B,...A},s.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const V={};if(i.slots.icon&&(V.icon=i.slots.icon),i.slots.checkedIcon&&(V.checkedIcon=i.slots.checkedIcon),i.slots.indeterminateIcon&&(V.indeterminateIcon=i.slots.indeterminateIcon),typeof i.slots.text=="function"){const q=i.slots.text(N);V.default=()=>[q]}else{const q=Wo(r,N);V.default=()=>q}let $=t.h(l,B,V);v.push($)}),v};return()=>{const v=m(),p={class:`${e}`,ref:b,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=i.slots.default,w.prepend=i.slots.prepend,w.append=i.slots.append,w.fixedPreTip=i.slots.fixedPreTip,w.fixedTip=i.slots.fixedTip;const S={...be(r,ge,pe)};return r.prop&&(S.prop=`${r.prop}_item`),t.h(a,S,w)}}else return()=>{const m=i.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:()=>m})}}}}const{componentName:zm,create:Om,scope:Rm}=J("checkbox-item"),wl=Om(Lm(zm,Rm,we,co,io)),Yo={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:Fm,create:Km}=J("switch"),Um=Km({components:{Loading1:oe.Loading1},props:{...Yo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const s=Fm;return{[s]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${s}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const i=s=>{if(e.disabled||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,s)};return t.watch(()=>e.modelValue,s=>{r=="click"?r="":n("change",s)}),{classes:o,style:l,isActive:a,onClick:i}}}),Hm={class:"fox-switch-button"};function jm(e,n,a,o,l,r){const i=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Hm,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(i,{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 uo=ne(Um,[["render",jm]]);function Wm(e,n,a,o){return{props:{...pe,...ge,...Yo},emits:["change","update:modelValue","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=e,f=Me(l,"modelValue",null,c),u=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...be(l,Yo),disabled:i.value||s.value,value:f.value,"onUpdate:modelValue":u},g=[],y=t.h(o,k);g.push(y);const b={default:()=>g};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const v={...be(l,ge,pe)};return l.prop&&(v.prop=`${l.prop}_item`),v["content-class"]=d,t.h(a,v,b)}}}}const{componentName:Ym,create:Xm,scope:Qm}=J("switch-item"),Nl=Xm(Wm(Ym,Qm,we,uo));function Gm(e,n,a,o){return{props:{...pe,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=se.useFoxI18n(n),f=d(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,q=>{u.value=q,c("change",q)});const h=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ue(u.value),"is-disabled":i.value,"is-readonly":s.value})),g=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const q={};return g.value&&(q["text-align"]=g.value),q}),b=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),m=t.computed(()=>ue(u.value)?f.placeholder.value:u.value),v=t.computed(()=>!ue(l.desc)||r.slots.sub),p=t.computed(()=>({[`${e}__sub`]:!0})),N=t.computed(()=>{const q={};return g.value&&(q["text-align"]=g.value),q}),w=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},S=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),B=t.computed(()=>ve(l.unit)>0),A=q=>{i.value==!0||s.value==!0||c("click")},V=t.computed(()=>l.icon??a),$=t.computed(()=>({action:!0}));return()=>{const q=[];if(typeof r.slots.content=="function"){const M=r.slots.content();q.push(M)}else{const M=[];if(b.value){const L={tabIndex:0,class:k.value,style:y.value,onFocus:w,onBlur:C};let R=null;r.slots.main?R=t.h("view",L,[r.slots.main(m.value)]):R=t.h("view",L,[m.value]),M.push(R)}if(v.value){const L={tabIndex:0,class:p.value,style:N.value,onFocus:w,onBlur:C};let R=null;r.slots.sub?R=t.h("view",L,[r.slots.sub(l.desc)]):R=t.h("view",L,[l.desc]),M.push(R)}const D={class:h.value,onClick:A},Y=t.h("view",D,M);q.push(Y)}const F=[],x=de(l.iconSize);let T=r.slots.icon;if(!T){const M={width:x,height:x,class:["action-icon"]};T=t.h(V.value,M)}const P={class:$.value,onClick:A},E=t.h("view",P,{default:()=>[T]});if(F.push(E),B.value){const M=t.h("view",{},[l.unit]);F.push(M)}const j={class:S.value},H=t.h("view",j,{default:()=>F});q.push(H);const O={default:()=>q};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const U={...be(l,ge,pe)};return l.prop&&(U.prop=`${l.prop}_item`),t.h(o,U,O)}}}}const{componentName:Zm,create:Jm,scope:_m}=J("link-item"),Bl=Jm(Gm(Zm,_m,oe.ArrowRight,we)),Xo={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:ep,componentName:tp}=J("rate"),np=ep({props:{...Xo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[tp]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},i=(k,g)=>{if(e.disabled||e.readonly)return;let y=0;g===1&&e.modelValue===g||(y=g,e.allowHalf&&k==2&&(y-=.5)),r(y)},s=(k,g,y)=>{let b=0;for(let m=g.value.length-1;m>=0;m--){const v=g.value[m];if(k>v.offsetLeft){y?b=m+(k>v.offsetLeft+v.clientWidth/2?1:.5):b=m+1;break}}return b},c=tt(),d={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&o.value&&(k.preventDefault(),r(s(c.moveX.value,o,e.allowHalf))))}},f=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...d,onClick:i,toPxDesc:he,renderIcon:(k,g)=>t.h(k,g),rateRefs:o,refRandomId:f,slots:a,customIcon:u}}}),op=["id"],lp={class:"fox-rate-item__icon--full"},ap={key:0,class:"fox-rate-item__icon--half"},rp={key:1,class:"fox-rate-item__icon--half"};function sp(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:t.normalizeStyle(i<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",lp,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:s=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?(t.openBlock(),t.createElementBlock("view",ap,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:s=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?(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:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:s=>e.onClick(2,i)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,op))),128))],34)}const Ct=ne(np,[["render",sp]]);function ip(e,n,a,o){return{props:{...pe,...ge,...Xo},emits:["change","update:modelValue","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=e,f=Me(l,"modelValue",null,c),u=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...be(l,Xo),disabled:i.value,readonly:s.value,value:f.value,"onUpdate:modelValue":u},g=[],y=t.h(o,k);g.push(y);const b={default:()=>g};if(r.slots.default){const p=r.slots.default();b.label=()=>p}const m=be(l,ge,pe);return l.prop&&(m.prop=`${l.prop}_item`),m["content-class"]=d,t.h(a,m,b)}}}}const{componentName:cp,create:up,scope:dp}=J("rate-item"),Al=up(ip(cp,dp,we,Ct)),fp=/scroll|auto|overlay/i,Rs=window;function mp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Qo(e,n=Rs){let a=e;for(;a&&a!==n&&mp(a);){const{overflowY:o}=window.getComputedStyle(a);if(fp.test(o))return a;a=a.parentNode}return n}function Fs(e,n=Rs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Qo(e.value,n))}),a}const Ks=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,pp={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 hp(e,n,a){return{props:{...pp},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=se.useFoxI18n(n),s=i(o,["pullText","loadText","loadMoreText"]),c=t.ref(),d=Fs(c),f=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,k=()=>{let v=0,p=0,N="down";if(d.value==window){const w=Ks();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 f.beforeScrollTop>p?N="up":N="down",f.beforeScrollTop=p,l("scroll-change",p),v<=o.threshold&&N=="down"},g=()=>{We(()=>{if(!k()||!o.hasMore||f.isInfiniting)return!1;f.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 m=t.ref(!1);return t.onActivated(()=>{m.value&&(m.value=!1,y())}),t.onDeactivated(()=>{m.value=!0,b()}),t.watch(()=>o.modelValue,v=>{v||(f.isInfiniting=!1)}),()=>{const v={class:"fox-infinite__container"},p=t.h("view",v,[r?.default?.()]),N=[];if(f.isInfiniting){let B=r?.loading?.()??null;if(!B){let $=r?.loadingIcon?.()??null;if(!$){const x={class:["fox-infinite__bottom-box__img"]};$=t.h(a,x)}const q={class:"fox-infinite__bottom-box__text"},F=t.h("view",q,[s.loadText.value]);B=[$,F]}const A={class:"fox-infinite__bottom-box"},V=t.h("view",A,B);N.push(V)}else if(!o.hasMore){let B=r?.finished?.()??null;if(!B){const A={class:"fox-infinite__bottom-tips"};B=t.h("view",A,[s.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:gp,create:yp,scope:vp}=J("infinite-loading"),fo=yp(hp(gp,vp,oe.Loading)),{componentName:bp,create:kp}=J("button"),Sp=kp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:i,loading:s,color:c,plain:d,block:f}=t.toRefs(e),u=g=>{!s.value&&!i.value&&n("click",g)},h=t.computed(()=>{const g=bp;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${l.value}`]:l.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:f.value,[`${g}--disabled`]:i.value,[`${g}--loading`]:s.value}}),k=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:k}}}),Cp={class:"fox-button__wrap"};function wp(e,n,a,o,l,r){const i=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",Cp,[e.loading?(t.openBlock(),t.createBlock(i,{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 Le=ne(Sp,[["render",wp]]),Np={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"}},Bp=(e,n,a)=>({props:{...Np},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}=At(),{toLocaleRefs:i}=se.useFoxI18n(n),s=i(o,["placeholder"]),c=t.reactive({active:!1}),d=t.computed(()=>({background:o.background})),f=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({}),k=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","")},b=t.computed(()=>String(o.modelValue).length>0),m=t.computed(()=>{const A={};return b.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},E=t.h("view",P,[l.leftin()]);A.push(E)}const V={class:`${e}__input-inner-input`,ref:S,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:s.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:N,onInput:u,onFocus:k,onBlur:g,onkeyup:p},$=t.h("input",V),q={class:[`${e}__input-inner`],action:"#",onSubmit:v},F=t.h("form",q,[$]);A.push(F);const x=[];if(o.clearable){const P={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:y},E=l?.clear?.()??o.clearIcon??a,j=t.h("view",P,[t.h(E)]);x.push(j)}if(l.rightin){const P={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",P,[l.rightin()]);x.push(E)}if(x.length>0){const P={class:`${e}__input-inner-right`},E=t.h("view",P,x);A.push(E)}const T={class:[`${e}__search-input`,`${o.shape}`],style:{...f.value,...h.value}};return t.h("view",T,A)};return()=>{const A=[];if(o.label){const q={class:`${e}__search-label`},F=t.h("span",q,[o.label]);A.push(F)}if(l.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},F=t.h("view",q,[l.leftout()]);A.push(F)}const V=B();if(A.push(V),l.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},F=t.h("view",q,[l.rightout()]);A.push(F)}const $={class:`${e}`,style:d.value};return t.h("view",$,A)}}}),{componentName:Ap,create:Vp,scope:Tp}=J("searchbar"),mo=Vp(Bp(Ap,Tp,oe.CircleClose)),bn={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 $p(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(Us(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 Rr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Us(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ep(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function xp(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Dp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,i,s){if(Array.isArray(a)){let d=a;typeof s=="function"&&(d=d.filter(s));let f=(o-1)*l,u=f+l;u>d.length&&(u=d.length);const h=d.slice(f,u);return{totalSize:d.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,i]);const c=et(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 Ip(){const e=t.getCurrentInstance();return new Dp(e.proxy)}function qp(e,n,a,o,l,r,i,s,c,d,f){return{props:{...bn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:k}=At(),{toLocaleRefs:g}=se.useFoxI18n(n),y=g(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),b=Ip(),m=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,W,X)=>{try{if(A.value===!1)return;let K=null;ue(p.value)||(K=ee=>{const le=kn(u,ee);if(typeof le=="string"&&le.includes(p.value))return!0;const re=Rr(u,ee);return!!(typeof re=="string"&&re.includes(p.value))});const G=await b.load("actionsheet",z,W,X,w.value,C,K??void 0);C=!1,Array.isArray(G)?(m.value=G,v.value=1,A.value=!1):!Array.isArray(G.page)||G.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,m.value,G.page),v.value=Math.ceil(m.value.length/u.pageSize),(G.totalSize&&m.value.length>=G.totalSize||X<G.page.length)&&(A.value=!1)),B.value=!1}catch(K){console.error("[FoxUI] ActionSheet load more data fail",K),A.value=!0,v.value=0,m.value=[]}setTimeout(()=>{k("loaded-data")},250)},B=t.ref(!1),A=t.ref(!0),V=async()=>{if(!u.source){B.value=!1;return}await S(u.source,v.value+1,u.pageSize)};let $=null;t.watch(p,(z,W)=>{$&&(clearTimeout($),$=null),ue(z)&&!ue(W)&&($=setTimeout(()=>{F()},u.searchDelayTriggerClear))});const q=()=>{A.value=!0,v.value=0,m.value=[],u.source&&V()},F=()=>{q()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([z,W,X])=>{u.source&&q()},{immediate:!0});const x=t.computed(()=>!u.multiple&&u.isAutoBackFill),T=t.ref([]);let P=null;const E=t.ref(u.visible);t.watch(()=>u.visible,z=>{E.value!==z&&(E.value=z),z?P=[...T.value]:P=null});const j=(z,W)=>{const X=[];return Array.isArray(z)||(z=[z]),z.forEach(K=>{let G=$p(u,W,K,u.valueType);G!==-1&&X.push(G)}),Ie(X,T.value)?!1:(T.value=X,!0)};t.watch([()=>u.modelValue,()=>m.value],([z,W],[X,K])=>{if(j(z,W)){const ee=H();O(ee)}},{deep:!0});const H=()=>{const z=[],W=[],X=[];for(let le of T.value){const re=m.value[le];W.push(re);const ce=kn(u,re);if(X.push(ce),u.valueType==="item")z.push(re);else if(u.valueType==="text")z.push(ce);else{const Ne=Us(u,re);z.push(Ne)}}let K=null,G=null,ee=null;return u.multiple?(K=z,G=X,ee=W):(K=z[0]??null,G=X[0]??null,ee=W[0]??null),{value:K,text:G,item:ee}},O=z=>{k("update:modelValue",z.value),k("update:text",z.text),k("change",z.value,z.item,z.text)},_=()=>{P&&(T.value=P)},U=z=>{const W=T.value.indexOf(z);u.multiple?W===-1?T.value.push(z):T.value.splice(W,1):W===-1?T.value=[z]:T.value=[],(x.value||!u.poppable&&!u.showFooter)&&D()},I=z=>{E.value=z,k("update:visible",z)},M=()=>{const z=()=>{_(),I(!1)},W=u.beforeMethod??u.beforeClose;if(typeof W=="function"){const X=W("close");vt(X)?X.then(K=>{K!==!1&&z()}).catch(()=>{z()}):X!==!1&&z()}else z()},D=()=>{const z=H(),W=()=>{O(z),I(!1)},X=u.beforeMethod??u.beforeClose;if(typeof X=="function"){const K=X("confirm",z.value,z.item,z.text);vt(K)?K.then(G=>{G!==!1&&W()}).catch(()=>{W()}):K!==!1&&W()}else W()},Y=()=>{let z=y.title.value??"";h.title&&(z=h.title());const W=t.h("view",{class:["fox-actionsheet__header-title"]},[z]),X=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:M});return t.h("view",{class:["fox-actionsheet__header"]},[W,X])},L=()=>{let z=null;if(h.search)z=h.search();else{const W={onSearch:q,placeholder:y.seachPlaceholder.value,disabled:u.disabled,modelValue:p.value,"onUpdate:modelValue":X=>{p.value=X}};z=t.h(r,W,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[z])},R=(z,W,X,K,G)=>{if(h.optionLabel)return h.optionLabel({text:z,checked:W,disabled:X,subText:K,item:G});const ee=[],le=t.h("view",{class:"fox-actionsheet__list-item-text"},[z]);if(ee.push(le),K){const re=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[K]);ee.push(re)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},ee)},Z=(z,W,X,K)=>{if(h.optionIcon)return h.optionIcon({checked:z,disabled:W,iconSize:X,item:K});if(z){if(h.checkedIcon)return h.checkedIcon({disabled:W,item:K});{const G=u.checkedIcon??s;return t.h(G,{width:X,height:X,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:W,item:K});{const G=u.icon??i;return t.h(G,{width:X,height:X,class:["fox-actionsheet__list-item-icon"]})}}},Q=()=>{const z=[];for(let W=0;W<m.value.length;W++){const X=m.value[W],K=kn(u,X),G=Rr(u,X),ee=["fox-actionsheet__list-item"],le={};let re=Ep(u,X),ce=u.iconSize?de(u.iconSize):null;const Ne=xp(u,X,W);Ne&&(re=re||Ne.disabled,Ne.class&&ee.push(Ne.class),Ne.style&&Object.assign(le,Ne.style)),re=!!(u.disabled||re);const Ce=T.value.includes(W);re&&ee.push("is-disabled"),Ce&&ee.push("is-checked");const _t={class:ee,style:le,key:`${W}`,onClick:()=>{re||U(W)}};let nt=[];if(h.option)nt.push(h.option({item:X,checked:Ce,disabled:re}));else{const Js=R(K,Ce,re,G,X);nt.push(Js);const _s=Z(Ce,re,ce,X);nt.push(_s),u.textPosition==="right"&&nt.reverse()}const Zs=t.h("view",_t,nt);z.push(Zs)}return z},te=()=>{let z=[];if(h.buttons)z=h.buttons();else{const X=t.h(l,{type:"primary",block:"block",onClick:D,disabled:u.disabled},{default:()=>y.confirmText.value});z.push(X)}return t.h("view",{class:"fox-actionsheet__footer"},[z])};return Ee({search:async(z=null,W=!0)=>{N.value=z&&t.toRaw(z),t.triggerRef(N),W&&(A.value=!0,v.value=0,m.value=[]),t.nextTick(()=>{V()})},clear:()=>{A.value=!0,v.value=0,m.value=[]},confirm:()=>{D()},cancel:()=>{M()}}),()=>{const z=[];if(u.showHeader){const ce=Y();z.push(ce)}if(u.showSearchbar){const ce=L();z.push(ce)}let W=null;if(h.content)W=h.content();else{const ce=Q(),Ne={hasMore:A.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:B.value,"onUpdate:modelValue":Ce=>{B.value=Ce},onLoadMore:V};W=t.h(o,Ne,{default:()=>ce})}const X={};u.optionsHeight&&(X.height=u.optionsHeight);const K={"fox-actionsheet__list":!0};u.poppable||(K["fox-actionsheet__list--inner"]=!0);const G=t.h("view",{class:K,style:X},[W]);if(z.push(G),u.showFooter&&!x.value){const ce=te();z.push(ce)}const ee=t.h("view",{class:"fox-actionsheet"},z);if(!u.poppable)return ee;const le=["fox-actionsheet__popup"];u.popClass&&le.push(u.popClass);const re={popClass:le.join(" "),visible:E.value,closeable:!1,"onUpdate:visible":I,position:u.position,round:"round",onClickOverlay:M,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,re,{default:()=>ee})}}}}const{componentName:Mp,create:Pp,scope:Lp}=J("actionsheet-pane"),po=Pp(qp(Mp,Lp,fe,fo,Le,mo,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),Fr={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 zp(e,n,a,o,l,r,i){return{props:{...pe,...ge,...Fr,...bn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),f=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(s,["placeholder"]),g=t.ref(!1),y=Me(s,"modelValue",null,u),b=t.ref(""),m=t.computed(()=>Array.isArray(b.value)?b.value.join(s.separator):b.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":f.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),w=t.computed(()=>{const D={};return N.value&&(D["text-align"]=N.value),D}),C=t.ref(!1),S=()=>{C.value=!0},B=D=>{C.value=D},A=D=>{y.value=D,u("update:modelValue",D)},V=(D,Y)=>{u("change",D,Y)},$=D=>{let L=D.target.value;g.value=!0,u("focus",L,D)},q=D=>{setTimeout(()=>{g.value=!1},0);let L=D.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),u("blur",L,D)},F=D=>{b.value=D,u("update:text",D)},x=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":f.value})),T=t.computed(()=>ve(s.unit)>0),P=t.computed(()=>ve(s.unit)>0&&!g.value),E=t.computed(()=>({hidden:!P.value})),j=D=>{y.value="",u("update:modelValue","",D),u("change","",D),u("clear","")},H=t.computed(()=>s.clearable&&!d.value&&!f.value),O=t.computed(()=>ve(y.value)>0&&g.value),_=D=>{O.value?j(D):S()},U=t.computed(()=>O.value&&H.value?o:l),I=t.computed(()=>({action:!0})),M=t.ref(null);return Ee({search:D=>{M.value&&M.value.search(D)},clear:()=>{M.value&&M.value.clear},confirm:D=>{M.value&&M.value.confirm()},cancel:()=>{M.value&&M.value.cancel()}}),()=>{const D={class:p.value,style:w.value,type:"text",maxlength:s.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:S,onFocus:$,onBlur:q},Y=[],L=t.h("input",D);Y.push(L);const R=[],Z={class:["action-icon"]},Q=t.h(U.value,Z),te={class:I.value,onClick:_},z=t.h("view",te,{default:()=>[Q]});if(R.push(z),T.value){const Ce=t.h("view",{class:E.value},[s.unit]);R.push(Ce)}const W={class:x.value},X=t.h("view",W,{default:()=>R});Y.push(X);const K={default:()=>Y};K.label=c.slots.default,K.prepend=c.slots.prepend,K.append=c.slots.append,K.fixedPreTip=c.slots.fixedPreTip,K.fixedTip=c.slots.fixedTip;const G=be(s,bn);G.ref=M,G.class=s.actionsheetProps,G.disabled=d.value||f.value,G.visible=C.value,G["onUpdate:visible"]=B,G.modelValue=y.value,G["onUpdate:modelValue"]=A,G.text=b.value,G["onUpdate:text"]=F,G.onChange=V,G.poppable=!0,G["text-position"]=s.textPosition;const ee={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},le=t.h(r,G,ee);K.hide=()=>[le];const ce={...Je(s,Fr,bn)};return s.prop&&(ce.prop=`${s.prop}_item`),t.h(a,ce,K)}}}}const{componentName:Op,create:Rp,scope:Fp}=J("actionsheet-item"),Vl=Rp(zp(Op,Fp,we,oe.CircleClose,oe.ArrowRight,po)),Go={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:Kp,create:Up}=J("input-number"),Hp=Up({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Go},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const k=Kp;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),o=k=>Number(k).toFixed(Number(e.decimalPlaces)),l=k=>{const g=k.target;n("update:modelValue",g.valueAsNumber,k)},r=(k,g)=>{let y=o(k);n("update:modelValue",y,g),n("change",y,g)},i=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,s=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(n("reduce",k),s()){let g=Number(e.modelValue)-Number(e.step);r(g,k)}else n("overlimit",k,"reduce")},d=k=>{if(n("add",k),i()){let g=Number(e.modelValue)+Number(e.step);r(g,k)}else n("overlimit",k,"add")},f=k=>{e.disabled||e.readonly||n("focus",k)},u=k=>{if(e.disabled||e.readonly)return;let y=k.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,k),n("blur",k)},h=k=>{let g=Number(k);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 k=h(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:a,change:l,blur:u,focus:f,add:d,addAllow:i,reduce:c,reduceAllow:s,toPxDesc:he}}}),jp=["min","max","disabled","readonly","value"];function Wp(e,n,a,o,l,r){const i=t.resolveComponent("Minus"),s=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(i,{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,jp),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(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Ge=ne(Hp,[["render",Wp]]);function Yp(e,n,a,o){return{props:{...pe,...ge,...Go},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!i.value&&!s.value}},l.prop??r.attrs.name),d=e,f=Me(l,"modelValue",null,c),u=g=>{f.value=g,c("update:modelValue",g,{}),c("change",g,{})},h=g=>{c("add",g)},k=g=>{c("reduce",g)};return()=>{const g={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=be(l,Go),m={...r.attrs,...y,disabled:i.value,readonly:s.value,value:f.value,"onUpdate:modelValue":u,onAdd:h,onReduce:k},v=t.h(o,m,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={...be(l,ge,pe)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=d,t.h(a,C,N)}}}}const{componentName:Xp,create:Qp,scope:Gp}=J("inputnumber-item"),Tl=Qp(Yp(Xp,Gp,we,Ge)),Zp={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 Jp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ur(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function _p(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function No(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Hr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function jr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Bo(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let eh=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=et(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 eh(e.proxy)}function nh(e,n,a,o){return{props:{...Zp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:i}){const s=e,c=th(),d=t.ref([]),f=t.computed(()=>d.value.filter(I=>_p(l,I)!==!1)),u=t.ref(-1),h=()=>{const I=l.modelValue,M=f.value.findIndex(D=>Kr(l,D)===I);u.value!==M&&(u.value=M,l.scroll&&_(M))};t.watch([()=>l.modelValue,f],()=>{h()});const k=I=>u.value===I,g=I=>{if(I<0&&I>=f.value.length)return!1;const M=f.value[I],Y=(Bo(l,M,I)??{}).status??No(l,M);return k(I)||Y},y=t.computed(()=>{const I={[s]:!0};return l.mode?I[`is-${l.mode}`]=!0:l.direction&&(I[`is-${l.direction}`]=!0),l.scroll&&(I["is-scroll"]=!0),I}),b=t.computed(()=>({})),m=(I,M,D,Y,L)=>{const R={[`${s}__step`]:!0};return L&&(R[`${L}`]=!0),R[`${v.value}`]=!0,Y&&(R["is-doit"]=!0),I===u.value?R["is-active"]=!0:M==="done"?R["is-done"]=!0:M==="error"?R["is-error"]=!0:M==="half"?R["is-half"]=!0:D?R["is-disabled"]=!0:R["is-normal"]=!0,R},v=t.computed(()=>{if(l.mode==="simple")return"start";let I=l.align;return I||(l.direction==="vertical"?I="start":I="center"),I}),p=(I,M={})=>{const D={...M};return v.value==="start"&&I===f.value.length-1?D.flex="0 0 auto":l.step?l.direction==="vertical"?D.height=l.step:D.width=l.step:D.flex="1 1 100%",D},N=(I,M)=>{let D={};if(M<f.value.length-1){const Y=M+1;g(M)&&g(Y)?l.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},w=I=>f.value.length-1===I,C=(I,M)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&M>u.value||u.value===M)return;const D=u.value,Y=M;u.value=M,l.scroll&&_(M);const L=Kr(l,I);i("update:modelValue",L);const R={fromIndex:D,currentIndex:Y,item:I,items:f.value,clickNavigatePolicy:l.clickNavigatePolicy};i("change",L,R)},S=t.ref(!0),B=async(I,M)=>{try{const D=await c.load("stesbar",I,M);Array.isArray(D)&&(d.value=D),S.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([I,M])=>{I&&B(I,M)},{immediate:!0});const A=(I,M,D,Y,L,R)=>{const Z=[];let Q=null;if(!R)if(r.icon)Q=r.icon({item:I,index:M,status:Y});else if(Y==="done"){const z={};l.iconSize&&(z.width=l.iconSize,z.height=l.iconSize);const W=l.icon??a;Q=t.h(W,z)}else{const z=D??`${M+1}`;Q=t.h("span",{},[z])}Q&&Z.push(Q);const te={class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:I,index:M}),!L&&C(I,M)}};return t.h("view",te,Z)},V=(I,M,D)=>{const Y=t.h("i",{class:"fox-steps-bar__line-inner",style:N(I,M)});return t.h("view",{class:"fox-steps-bar__line"},[Y])},$=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const D={};l.iconSize&&(D.width=l.markIconSize,D.height=l.markIconSize);const Y=l.markIcon??o;I=t.h(Y,D)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},q=(I,M,D,Y,L,R)=>{const Z=[];if(!w(M)){const z=V(I,M);Z.push(z)}const Q=A(I,M,D,Y,L,R);Z.push(Q);const te={class:"fox-steps-bar__head"};return t.h("view",te,Z)},F=(I,M,D,Y)=>{let L=null;r.main?L=r.main({item:I,index:M,status:D}):L=Jp(l,I);const R={class:"fox-steps-bar__main",onClick:()=>{i("click",{item:I,index:M}),!Y&&C(I,M)}};return t.h("view",R,[L])},x=(I,M,D)=>{let Y=null;if(r.sub){Y=r.sub({item:I,index:M,status:D});const L={class:"fox-steps-bar__sub"};return t.h("view",L,[Y])}return null},T=(I,M)=>{const D=Bo(l,I,M)??{},Y=D.status??No(l,I);let L=Ur(l,I);D.disabled===!0&&(L=!0),l.disabled===!0&&(L=!0);let R=Hr(l,I);D.doit===!0&&(R=!0);const Z=D.label??jr(l,I),Q=[],te=A(I,M,Z,Y,L,R);te&&Q.push(te);const z=F(I,M,Y,L);if(z&&Q.push(z),!w(M)){const ee=V(I,M);ee&&Q.push(ee)}const W=t.h("view",{class:"fox-steps-bar__head"},Q),X=D.class,K=D.style??{},G={ref:O(M),class:m(M,Y,L,R,X),style:p(M,K)};return t.h("view",G,[W])},P=(I,M)=>{const D=Bo(l,I,M)??{},Y=D.status??No(l,I);let L=Ur(l,I);D.disabled===!0&&(L=!0),l.disabled===!0&&(L=!0);let R=Hr(l,I);D.doit===!0&&(R=!0);const Z=D.label??jr(l,I),Q=[],te=l.layout;for(let K of te)if(K==="head"){const G=q(I,M,Z,Y,L,R);Q.push(G)}else if(K==="main"){const G=F(I,M,Y,L);Q.push(G)}else if(K==="sub"){const G=x(I,M,Y);Q.push(G)}else if(K==="mark"){const G=$();Q.push(G)}const z=D.class,W=D.style??{},X={ref:O(M),class:m(M,Y,L,R,z),style:p(M,W)};return t.h("view",X,Q)},E=t.ref(),j=t.ref([]),H=(I,M)=>{j.value[M]=I},O=I=>M=>{H(M,I)},_=(I,M)=>{const D=E.value,Y=j.value;if(!D||!Y||!Y[I])return;const L=Y[I];let R=0;l.direction==="vertical"?R=L.offsetTop-(D.offsetHeight-L.offsetHeight)/2:R=L.offsetLeft-(D.offsetWidth-L.offsetWidth)/2,U(D,R,.3,l.direction)},U=(I,M,D,Y)=>{let L=0;const R=Y==="horizontal"?I.scrollLeft:I.scrollTop,Z=Math.round(D*1e3/16);function Q(){Y==="horizontal"?I.scrollLeft+=(M-R)/Z:I.scrollTop+=(M-R)/Z,++L<Z&&Ke(Q)}Q()};return()=>{const I=[];if(l.mode==="simple")for(let D=0;D<f.value.length;D++){const Y=f.value[D],L=T(Y,D);I.push(L)}else for(let D=0;D<f.value.length;D++){const Y=f.value[D],L=P(Y,D);I.push(L)}const M={ref:E,class:y.value,style:b.value};return t.h("view",M,I)}}}}const{componentName:oh,create:lh,scope:ah}=J("steps-bar"),$l=lh(nh(oh,ah,oe.Checklist,oe.ArrowRight));function rh(e){e.stopPropagation()}class sh{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=Jn()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=_n(),o=(l,r,i,s)=>{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),rh(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 ih(e,n){return new sh(e,n)}const ch={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]}},uh=(e,n,a,o=!1)=>({props:{...ch},emits:["click"],setup(l,{slots:r,emit:i}){let s=-1,c=-1;const d=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:0,height:0}),f=t.computed(()=>{const w=[`${e}`];return l.customClass&&w.push(l.customClass),w}),u=w=>typeof w=="string"&&!tl(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}),k=t.computed(()=>({[`${e}__icon`]:!0})),g=()=>{i("click")},y=t.ref(null),b=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},m={x:0,y:0},N=ih(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,m.x=d.left,m.y=d.top,d.width=C.offsetWidth,d.height=C.offsetHeight,s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},w=>{if(!y.value)return;const C=y.value;b();let S=m.x+w.x;S<0&&(S=0),S>s-d.width&&(S=s-d.width);let B=m.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:k.value});w.push(B)}const S={ref:B=>{y.value=B},class:f.value,style:h.value,onClick:g};return t.h("view",S,w)}}}),{componentName:dh,create:fh,scope:mh}=J("floating-button"),El=fh(uh(dh,mh,oe.Uploader,!1)),ph={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 hh(e,n,a){return{props:{...ph},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}),i=Me(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{l("update:modelValue",!i.value)};return()=>{const u=[];if(s.value){const b={class:c.value},m=t.h("span",b,[s.value]);u.push(m)}const h={class:d.value},k=o.icon??a,g=t.h(k,h);return u.push(g),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:f},u)}}}}const{componentName:gh,create:yh,scope:vh}=J("more-button"),xl=yh(hh(gh,vh,oe.RectUp)),bh={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}},kh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Sh(e,n,a){return{props:{...bh},emits:["update:visible"],setup(o,{attrs:l,slots:r,emit:i}){const{toLocaleRefs:s}=se.useFoxI18n(n),c=s(o,["confirmText","cancelText"]),d=e,f=t.ref(o.visible),u=w=>{f.value=w,i("update:visible",w)};t.watch(()=>o.visible,w=>{f.value!==w&&(f.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)}},k=()=>{h("confirm")},g=()=>{h("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&h("close")},b=(w,C)=>kh(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),m=()=>{const w=[];if(o.icon){const S={class:[`${d}__header-icon`]},B=b(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=b(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`},V=t.h("view",A,[C]);S.push(V)}if(w){const A=[];Array.isArray(w)||(w=[w]);for(let V of w){const $={class:`${d}__group-row`,innerHTML:V},q=t.h("view",$);A.push(q)}if(A.length>0){const V={class:`${d}__group-rows`},$=t.h("view",V,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:k};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=m();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}},V=t.h("view",A,w),$=[`${d}__popup`];o.popClass&&$.push(o.popClass);const q={};o.width&&(q.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(q.height=typeof o.height=="number"?`${o.height}px`:o.height);const F={popClass:$.join(" "),style:q,visible:f.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,F,{default:()=>V})}}}}const{componentName:Ch,create:wh,scope:Nh}=J("messagebox"),Bh=wh(Sh(Ch,Nh,fe)),Ah="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",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%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",Th="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",$h="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",Eh=new Gn,xh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Dh=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-${Eh.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${l}`);i&&i.parentNode?.removeChild(i)};const r=t.createVNode(Bh,e);n.appendChild(o),t.render(r,o)},rt={show:(e,n,a,o)=>{const l={...xh};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=Th:r==="warning"?l.icon=$h:r==="error"?l.icon=Ah:l.icon=Vh),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=oe.Close),new Promise((i,s)=>{const c=l.callback;l.callback=d=>{if(typeof c=="function")try{c(d)}catch(f){console.error(f)}i({action:d})},Dh(l)})},alert:(e,n,a)=>rt.show("alert",e,n,a),confirm:(e,n,a)=>rt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=rt.alert,e.config.globalProperties.$confirm=rt.confirm}},Ih=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let s in n)s==="bubbles"?l=!!n[s]:s==="cancelable"?r=!!n[s]:o[s]=n[s];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},qh=new Gn,Mh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Ph=e=>`${e}-${qh.get()}`,Lh=Symbol.for("InnerPageScopeKey"),zh=Symbol.for("PageWrapperKey"),Oh="FoxLeave",Rh="FoxLeaveEnd",Fh={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 Kh(e,n,a,o){return{props:{...Re,...Fh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:s}){t.provide(Lh,!0);const c={};t.provide(zh,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),f=()=>{d()},u=e,h=C=>{k.value=C,s("update:visible",C)},k=t.ref(!1),g=(C,S)=>Mh(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(i.header){const B=i.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)},b=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:f},S=l.closeIcon??o;return g(S,C)};let m=null;const v=C=>{Ih(Rh,{},m)},p=Ph(e),N=()=>{h(!0)},w=()=>{if(!m)return;const C=m.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const S=m.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(()=>{m=document.querySelector(`.${p}`),m?.addEventListener(Oh,w,{once:!0}),N()}),()=>{const C=[],S=y();S&&C.push(S);const B=b();B&&C.push(B);const A=i.default?i.default():[];Reflect.apply([].push,C,A);const V={[`${u}`]:!0};l.mode&&(V[`${u}--${l.mode}`]=!0);const $={class:V},q=t.h("view",$,C),F=[`${u}__popup`,p];l.popClass&&F.push(l.popClass),l.position&&F.push(`${u}__popup--${l.position}`);const x={};l.width&&(x.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(x.height=typeof l.height=="number"?`${l.height}px`:l.height);const P={...be(l,Re),popClass:F.join(" "),style:x,visible:k.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:f,"onUpdate:visible":h},E=t.h(a,P,{default:()=>q});return t.h("div",{class:[`${u}__root`,p]},[E])}}}}const{componentName:Uh,create:Hh,scope:jh}=J("popup-wrapper"),Dl=Hh(Kh(Uh,jh,fe,oe.Close)),Wh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Yh(e,n,a,o){return{props:{...Wh},emits:["update:visible"],setup(l,{emit:r,slots:i}){const s=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":s},f=t.h(a,d,i),u={class:`${e}`};return t.h("view",u,[f])}}}}const{componentName:Xh,create:Qh,scope:Gh}=J("dropdown"),Il=Qh(Yh(Xh,Gh,fe)),Zh={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 Jh(e,n,a=!1){return{props:{...Zh},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:i}){const s=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),d=t.ref(0),f=t.ref(0),u=t.ref(0),h=t.ref(o.placement),k=t.ref(!1),g=t.ref(!1),y=t.ref(null),b=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,m=(O,_,U,I,M,D,Y,L=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,Q=O.split("-");let te=[];L?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=[O[0]];const z={top:null,right:null,bottom:null,left:null},W=[];for(let X=0;X<te.length;X++){const K=te[X];if(W[0]=K,Q[1]&&(W[1]=Q[1]),K==="top"){const G=U-Y-o.arrowSize/2-o.offset;if(G>=0){z.top=G;let ee=0;Q[1]==="start"?ee=_:Q[1]==="end"?ee=_+I-D:ee=_+I/2-D/2;const le=R-ee-D;le<0?(ee+=le,p.value=-le):p.value=0,z.left=ee<0?0:ee;break}}else if(K==="bottom"){const G=U+M+o.arrowSize/2+o.offset;if(G+Y<=Z){z.top=G;let ee=0;Q[1]==="start"?ee=_:Q[1]==="end"?ee=_+I-D:ee=_+I/2-D/2;const le=R-ee-D;le<0?(ee+=le,p.value=-le):p.value=0,z.left=ee<0?0:ee;break}}else if(K==="left"){const G=_-D-o.arrowSize/2-o.offset;if(G>=0){z.left=G;let ee=0;Q[1]==="start"?ee=U:Q[1]==="end"?ee=U+M-Y:ee=U+M/2-Y/2,z.top=ee<0?0:ee;break}}else if(K==="right"){const G=_+I+o.arrowSize/2+o.offset;if(G+D<=R){z.left=G;let ee=0;Q[1]==="start"?ee=U:Q[1]==="end"?ee=U+M-Y:ee=U+M/2-Y/2,z.top=ee<0?0:ee;break}}}return{bestPlacement:W.join("-"),bestInsetRect:z}},v=()=>{const O=o.visible,_=o.autoFit;if(!Ze||O===!1)return;if(o.reference){const Y=b(),L=dl(Y);c.value=L.x,d.value=L.y,f.value=Y.offsetWidth,u.value=Y.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,d.value=o.referenceInset.top,f.value=o.referenceInset.right-o.referenceInset.left,u.value=o.referenceInset.bottom-o.referenceInset.top);const U=y.value.offsetWidth,I=y.value.offsetHeight,{bestPlacement:M,bestInsetRect:D}=m(o.placement,c.value,d.value,f.value,u.value,U,I,_);h.value=M,s.value=D},p=t.ref(0),N=Ye(()=>{v()},10),w=t.ref(o.visible);t.watch([()=>o.visible],([O])=>{w.value=O,O?(k.value=O,setTimeout(()=>{v(),g.value=!0},0)):g.value=!1});const C=t.computed(()=>w.value&&S.value),S=t.ref(!0),B=Ye(O=>{const _=O[0];_&&(S.value=_.isIntersecting)},10),A=new IntersectionObserver(B);t.watch([()=>o.reference,()=>o.referenceInset],([O,_],[U,I])=>{!O&&!_||(setTimeout(()=>{v()},0),o.autoFit&&(U&&(Ot.unwatch(U,N),A.unobserve(U)),O&&(Ot.watch(O,N),A.observe(O))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Ot.unwatch(o.reference,N),A.unobserve(o.reference),A.disconnect())});const V=t.computed(()=>{const O={[e]:!0};return h.value.startsWith("top")?O["is-top"]=!0:h.value.startsWith("right")?O["is-right"]=!0:h.value.startsWith("bottom")?O["is-bottom"]=!0:h.value.startsWith("left")&&(O["is-left"]=!0),O[`is-${o.effect}`]=!0,!g.value&&C.value&&(O["is-opacity"]=!0),g.value&&C.value&&(O["is-show"]=!0),C.value||(O["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(O[`${o.customClass}`]=!0),O}),$=t.computed(()=>{const O={};return s.value.top!==null&&(O.top=`${s.value.top}px`),s.value.right!==null&&(O.right=`${s.value.right}px`),s.value.bottom!==null&&(O.bottom=`${s.value.bottom}px`),s.value.left!==null&&(O.left=`${s.value.left}px`),o.width&&(O.width=o.width),o.zIndex&&(O["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(O,o.customStyle),O}),q=()=>{w.value=!1,l("update:visible",!1)},F=()=>{if(!o.showOverlay)return null;const O={class:`${e}__overlay`,onClick:q};return t.h("div",O)},x=()=>{let O=null;return r.title?O=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(O=t.h("div",{class:`${e}__title`},[o.title])),O},T=t.computed(()=>({[`${e}__arrow`]:!0})),P=t.computed(()=>{const O={};return o.showArrow?(O.width=`${o.arrowSize}px`,O.height=`${o.arrowSize}px`,h.value==="top"?(O.left="50%",O.bottom="0",O.transform="translate(-50%, 50%)"):h.value==="top-start"?(O.left=`${o.arrowOffset+p.value}px`,O.bottom="0",O.transform="translate(-50%, 50%)"):h.value==="top-end"?(O.right=`${o.arrowOffset-p.value}px`,O.bottom="0",O.transform="translate(-50%, 50%)"):h.value==="right"?(O.left="0",O.top="50%",O.transform="translate(-50%, -50%)"):h.value==="right-start"?(O.left="0",O.top=`${o.arrowOffset}px`,O.transform="translate(-50%, 50%)"):h.value==="right-end"?(O.left="0",O.bottom=`-${o.arrowOffset}px`,O.transform="translate(-50%, 50%)"):h.value==="bottom"?(O.left="50%",O.top="0",O.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(O.left=`${o.arrowOffset+p.value}px`,O.top="0",O.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(O.right=`${o.arrowOffset-p.value}px`,O.top="0",O.transform="translate(-50%, -50%)"):h.value==="left"?(O.right="0",O.top="50%",O.transform="translate(50%, -50%)"):h.value==="left-start"?(O.right="0",O.top=`${o.arrowOffset}px`,O.transform="translate(50%, -50%)"):h.value==="left-end"&&(O.right="0",O.bottom=`-${o.arrowOffset}px`,O.transform="translate(50%, -50%)"),O):{display:"none"}}),E=()=>{const O={class:T.value,style:P.value};return t.h("div",O)},j=()=>{w.value===!1&&(k.value=!1)},H=O=>{if(!y.value||w.value===!1)return;const{relatedTarget:_}=O;y.value.contains(_)||(w.value=!1,l("update:visible",!1))};return i({doLayout:v}),()=>{if(!k.value)return null;const O=[],_=F();_&&O.push(_);const U=[],I=x();if(I&&U.push(I),r.default){const L=r.default();U.push(L)}const M=E();M&&U.push(M);const D={ref:y,class:V.value,style:$.value,onAnimationend:j};o.leaveHide&&(D.onMouseleave=H);const Y=t.h("div",D,{default:()=>U});return O.push(Y),O}}}}const{componentName:_h,create:eg,scope:tg}=J("popover-dialog"),ql=eg(Jh(_h,tg,!1));function ng(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 og={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 lg(e,n,a,o=!1){return{props:{...og},emits:["click"],setup(l,r){const i=t.ref(null),s=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},f=p=>{r.emit("click",p)};let u="";const h=()=>{const p=i.value;if(!p)return;const N=p.clientWidth;ng(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)??"")})},k=()=>{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(()=>{k()},l.hideAfter??0)},m=()=>{const p=i.value;p&&(p.addEventListener("mouseover",y),p.addEventListener("mouseleave",b))},v=()=>{const p=i.value;p&&(p.removeEventListener("mouseover",y),p.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!ye(l.showOverflowTooltip)||!a||m()}),t.onBeforeUnmount(()=>{!ye(l.showOverflowTooltip)||!a||v()}),()=>{const p={onClick:f,class:s.value,style:c.value,ref:i};let N=null;if(ye(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 V=me(l.digits),$=me(l.decimalLength),q=ye(l.autoPadding);let F=`${B[0].children}`,x=F.split("").reverse().join("");x=Dn(x,$,q,V,l.separator),F=x.split("").reverse().join(""),l.highlightFilter!==void 0&&(N=d(F,p)),N||(p.innerHTML=F,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 V=`${B[0].children}`;N=d(V,p),N||(p.innerHTML=V,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={},V=l.color;V&&(A.color=V);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={},V=l.color;V&&(A.color=V);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={},V=l.color;V&&(A["background-color"]=V);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:ag,create:rg,scope:sg}=J("text"),Ml=rg(lg(ag,sg,Vt,!1));function ig(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let c=n;for(let d=0;c&&d<r.length;d++){let f=r[d],u=c.find(h=>h[o]===f);if(!u)break;i.push(u[a])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],f=r[c];const u=d.find(h=>h[o]===f);if(!u)break;i.push(u[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let f=r[d],u=c.find(h=>h[o]===f);if(!u)break;i.push(u[a]),c=u[l]}}return i}class cg{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=et(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 ug(){const e=t.getCurrentInstance();return new cg(e.proxy)}const dg={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 fg(e,n,a=!1){return{props:{...dg},setup(o,{attrs:l,slots:r}){const i=ug(),s=t.ref([]);t.watch([()=>o.source,()=>o.params],async([f,u])=>{s.value=await i.load(o.sourceType,f,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=ig(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),d=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const f={...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,f,{default:()=>c.value}):t.h(d,f,c.value)}}}}const{componentName:mg,create:pg,scope:hg}=J("mapping"),Pl=pg(fg(mg,hg,!1));function gg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return vs(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:t2,create:yg,scope:n2}=J("domain-provider"),Ll=yg(gg()),vg={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 bg(e,n){return{inheritAttrs:!1,props:vg,setup(a,{slots:o}){if(Ze&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const i=(h,k)=>{if(f===null){r.set(h,{visible:null,callback:k});return}l.has(h)&&f.unobserve(h),l.set(h,{visible:null,callback:k}),f.observe(h)},s=h=>{if(f===null){r.delete(h);return}l.has(h)&&(l.delete(h),f.unobserve(h))};let c=a.initialVisibleObserverSize;oc({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const u=(h,k,g)=>{f=new IntersectionObserver(y=>{for(let b of y){let m=!1;b.intersectionRatio>0&&(m=!0);const v=l.get(b.target);if(v)try{if(a.loadPolicy==="lazy"&&!m&&v.visible!==null)return;v.visible=m,v.callback(m)}catch(p){console.error(p)}}},{root:h,rootMargin:k,threshold:g}),r.forEach((y,b)=>{l.set(b,y),f?.observe(b)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,k])=>{if(k||!h||f)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&u(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:o2,create:kg,scope:l2}=J("rolling-provider"),zl=kg(bg()),{componentName:Sg,create:Cg}=J("cell"),wg=Cg({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Sg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Ng={key:0,class:"fox-cell__icon"},Bg={key:1,class:"fox-cell__title"},Ag={class:"title"},Vg={class:"fox-cell__title-desc"};function Tg(e,n,a,o,l,r){const i=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Ng,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Bg,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Ag,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Vg,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(i,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const Ol=ne(wg,[["render",Tg]]),{componentName:$g,create:Eg}=J("cell-group"),xg=Eg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[$g]:!0}))}}}),Dg={key:1,class:"fox-cell-group__title"},Ig={key:3,class:"fox-cell-group__desc"},qg={class:"fox-cell-group__wrap"};function Mg(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",Dg,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",Ig,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",qg,[t.renderSlot(e.$slots,"default")])],2)}const Rl=ne(xg,[["render",Mg]]),{componentName:Pg,create:Lg}=J("image"),zg=Lg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const k=Pg;return{[k]:!0,[`${k}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),i=t.ref(null),s=()=>{const k={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(g=>{g.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},k),i.value&&l.value.observe(i.value)};t.onMounted(()=>{e.lazyLoad&&s()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=he(e.width)),e.height&&(k.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=he(e.radius)),k}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{a.isError=!1,a.loading=!0});const f=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=k=>{n("click",k)};return{...t.toRefs(a),imageClick:h,classes:o,styles:d,stylebox:c,error:u,load:f,show:r,imgRef:i}}}),Og=["src","date-src","alt"],Rg={key:0,class:"fox-img-loading"},Fg={key:1,class:"fox-img-error"};function Kg(e,n,a,o,l,r){const i=t.resolveComponent("Image"),s=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,Og),e.loading?(t.openBlock(),t.createElementBlock("div",Rg,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",Fg,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const Fl=ne(zg,[["render",Kg]]),{create:Ug}=J("layout"),Kl=Ug({}),{componentName:Hg,create:jg}=J("col"),Wg=jg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Hg,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 Yg(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 Ul=ne(Wg,[["render",Yg]]),{componentName:Xg,create:Qg}=J("row"),Gg=Qg({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=Xg;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
5
+ */function Cn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Be(e),n=Be(n),[e,n]=el(Be(e),Be(n)),a==1&&(o==1?e=go(e):n=go(n));let l=_r(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(go(l)):Be(l)}function go(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return _r(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 el(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function _r(e,n){[e,n]=el(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 ke=(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))(ke||{});function Ut(e,n=0,a=ke.HALF_EVEN){if(a===ke.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],i=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)+i,c=Ut(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Ja(l[1],r,o,a)?(o?"-":"")+yo(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");i=l[1].substring(0,n);let s=l[1].substring(n);return s&&Ja(s,i,o,a)&&(i=yo(i),i.length>n)?(o?"-":"")+yo(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function Ja(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===ke.DOWN||!a&&o===ke.FLOOR||a&&o===ke.CEILING)return!1;if(o===ke.UP||a&&o===ke.FLOOR||!a&&o===ke.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 ke.HALF_DOWN:return!1;case ke.HALF_UP:return!0;case ke.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function yo(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 Vo(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Et(e),n=Et(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=Et(e.replace(".","")),n=Et(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let i=n.length,s=0,c=[],d=i-1,m="";for(let u=0;u<i;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+=s,s=Math.floor(h/10),m=h%10+m,d--}return m=Et(ni(m,r)),a==1&&(m="-"+m),m}function ni(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Et(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function To(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,i=n.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(d+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=d,s="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Cn(c,"-"+n),d++;s+=d,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+Be(Ut(s,a-2))}function $o(e,n){return e=e.toString(),n=n.toString(),n=Eo(n),Cn(e,n)}function Eo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function _a(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),er(e),er(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=$o(e,Vo(n,Ut(To(e,n),0,ke.FLOOR)));return a+o}function er(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function tr(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]=el(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=ke;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 i="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=0?o:"")+i;return(l?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=ke.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ut(n,a,o)}round(n=0,a=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Ut(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,ke.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ke.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,ke.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ke.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),Cn(n,a)}add(n){return new ce(Cn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),$o(n,a)}subtract(n){return new ce($o(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),Vo(n,a)}multiply(n){return new ce(Vo(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),To(n,a,o)}divide(n,a){return new ce(To(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),_a(n,a)}modulus(n){return new ce(_a(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),tr(n,a)}compareTo(n){return tr(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Eo(n)}negate(){return new ce(Eo(this.value))}}function es(e,n){return ce.multiply(`${e}`,`${n}`)}function tl(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function xo(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function ts(e){return ce.negate(e)}function xn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",d=r.indexOf(".");d!=-1&&(s=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=s.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=`${i}${u.split("").reverse().join("")}`:m=`${i}${u.split("").reverse().join("")}.${c}`}else c.length==0?m=`${i}${s}`:m=`${i}${s}.${c}`;return m}function ns(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Ze=typeof window<"u",Ue=Ye;function os(e){return e==null}const Dn=Array.isArray,oi=e=>In(e)==="[object Map]",li=e=>In(e)==="[object Set]",je=e=>e instanceof Date,wn=e=>typeof e=="function",ls=e=>typeof e=="string",ai=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",bt=e=>De(e)&&wn(e.then)&&wn(e.catch),as=Object.prototype.toString,In=e=>as.call(e),Do=e=>In(e)==="[object Object]",rs=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ri(e){return e.__esModule||rs&&e[Symbol.toStringTag]==="Module"}const si=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function rt(...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 i in r){let s=n[i],c=r[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=rt(l,d,c)}else c!==void 0&&(n[i]=c)}}return n}function Io(e,n,a=!1){if(!a)rt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Do(i))continue;r=Io(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Do(i))continue;r=Io(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}}return e}const vo=si?Promise.resolve():null;function ii(e,...n){vo!==null?n&&n.length>0?vo.then(()=>{e(n)}):vo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const ci={"[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 st(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ci[a]||"object"}function qn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function ss(e){return e&&typeof e=="object"&&"setInterval"in e}function is(e){let n=!!e&&"length"in e&&e.length,a=st(e);return a==="function"||ss(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function cs(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 ui(e,n=[]){let a=n;return e!=null&&(is(Object(e))?cs(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=st(e),o=st(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 i=0;i<l.length;i++){let s=l[i],c=e[s],d=n[s];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],i=n[l];if(!Ie(r,i))return!1}return!0}return!1}function qo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nl(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 us(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 ds(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 nr(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 Mo(e,n=!0,a=!0){n?e=nr(e,".",/\./g):e=e.replace(/\./g,""),a?e=nr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function di(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Ie(e,a))return!0}):n.indexOf(e)}function fi(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 ve(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Je(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 fs=(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 Po(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const nt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},He=(e,n,a)=>Math.min(Math.max(e,n),a),Se=Symbol.for("BroadcastKey");class ol{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==="+"||qo(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 i=this.proxy??{};typeof i[a]=="function"&&(l=Reflect.apply(i[a],i,[...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 i=n.resolve,s=n.uniqueId??"",c=(...d)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...d)};n.resolve=c}n.cachePolicy="None"}let l=!1;!n.name||n.name==="*"?l=!0:n.name==="+"?(l=!1,n.name="*"):qo(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 i=this.callbacks.get(a);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[a]=="function"){const c=Reflect.apply(s[a],s,[...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(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),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,i=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...c)};n.resolve=s}n.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(n,a){this.callbacks.set(n,a)}}function Mn(e,n,a,o){const l=new ol(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function mi(e,n,a){const o=a;if(o[Se])return o[Se];const l=t.inject(Se,null),r=new ol(l,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[Se]=r,t.provide(Se,r),t.onUnmounted(()=>{r.destroy(),o[Se]=void 0}),r}function Lt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}const lt=e=>e.default??e;class pi{error(n,a){const o=a,l=a||t.hasInjectionContext()?Lt(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()?Lt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?Lt(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()?Lt(o):null,i=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Ot=new pi;function hi(e){Ot=e}function gi(e){Ot?Object.assign(Ot,e):Ot=e}function yi(e,n){lt(ot).setValidator(e,n)}function vi(e){lt(ot).deleteValidator(e)}let ms=["blur","clear"];function bi(e){ms=e}function ps(){return ms}let hs=["focus","change","setValue"];function ki(e){hs=e}function gs(){return hs}function Si(e){lt(ot).messages(e)}function xt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function tn(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 ys{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=tn(xt(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=tn(o);const l=xt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,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=Ot;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?lt(ot).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?lt(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return lt(ot).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=xt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=tn(n):this.rules=tn([n]);const o=xt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=xt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),i={[`${o}`]:r},s=lt(ot),c=new s(l),d=this.proxy??i;return c.validate(i,{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 Pn(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 ys(n,a,e)}const Nn=Symbol.for("EventEmitterKey");class vs{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 Lo(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function Ci(e,n){const a=Me((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function wi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function ll(e,n,a,o=0,l=!0){let r=n,i=0;if(l){const c=e();if(i++,c||i>a)return}const s=()=>{const c=e();i++,!(c||i>a)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const xe=Symbol("DomainKey"),pt=Symbol("DataItemsKey");class Ln{_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 Ni=new Ln;function yt(){return Ni}function _e(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const bo=Symbol("OriginalDateKey");function al(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,i=t.inject(xe,null);i===null&&(i=yt());const s=e||n.prop||n.name;let c=new Ln(s);c.parent=i;const d=y=>{r[bo]||h(y),c?.set("modelValue",y)},m=()=>c?.getForSelf("modelValue")??null,u=()=>r[bo]??null,h=y=>{const S={};rt(!0,S,t.toRaw(y)),r[bo]=S};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,S)=>{c?.set(y,S)},g=y=>c?.getForSelf(y)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const y=t.inject(Se,null),S=Mn(r,y,s,o);c.broadcast=S,r[Se]=S,t.provide(Se,S),r.broadcast=(p,N,...w)=>Reflect.apply(S.emit,S,[p,N,...w]);const f=t.inject(Le,null),v=Pn(r,f,{componentName:""});c.validateSchema=v,r[Le]=v,t.provide(Le,v),r[pt]=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 k=p;w={name:B=>B?k.indexOf(B)!==-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 B=k.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const B=k.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const k=S?.emitToChildren(w,"validate",C);k&&Reflect.apply([].push,N,k)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(k=>{let B=[];return k.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(k=>{let B=String(k);const A={componentName:"",fieldName:B,pureDataValidate:!0};if(c){const V=ks(c,B,A,S,v);r[pt].set(B,V);const $=p[B];$&&V.validateSchema.setRule($)}});return}if(N){const C=Reflect.ownKeys(p),k={name:B=>C.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"};S?.emitToChildren(k,"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:k=>k?C.indexOf(k)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const C=w.exclude;N={name:k=>k?C.indexOf(k)===-1:!1}}else N={name:"*"}}N&&S?.emitToChildren(N,"clearValidate",!1)},r.resetFields=p=>{const N=m();if(!N)return;const w={};if(rt(!0,w,u()??{}),Array.isArray(p))p.forEach(C=>{N[C]=w[C]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(k=>{N[k]=w[k]});else if(p&&Array.isArray(p.exclude)){let C=p.exclude??[];Reflect.ownKeys(w).forEach(k=>{C.includes(k)||(N[k]=w[k])})}else Object.assign(N,w);r.clearValidate(p)},r.setModelValue=(p,N)=>{if(!N||N===s)d(p);else{const w={name:N,messagingPolicy:"Once"};S?.emitToChildren(w,"setModelValue",p)}},r.getModelValue=()=>m(),r.setDomainProperty=(p,N)=>{b(p,N)},r.getDomainProperty=p=>g(p),setTimeout(function(){S?.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[Se]=void 0,t.provide(Se,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[pt]&&(r[pt].clear(),r[pt]=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=yt());const i=e||n.prop||n.name;let s=new Ln(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s?.merge(c,a)},{immediate:!0}):s.merge(n,a),l[xe]=s,t.provide(xe,s),t.onUnmounted(()=>{s?.destroy(),l[xe]=void 0,t.provide(xe,null),s=null,l=null}),s}function Ae(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Se,null);let s=Mn(l,i,r,a);l[Se]=s,t.provide(Se,s),l.broadcast=(g,y,...S)=>s?Reflect.apply(s.emit,s,[g,y,...S]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let d=Pn(l,c,e);l[Le]=d,t.provide(Le,d),l.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const y=[];let S=!1,f=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)f=!0,S=!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&&qn(l.$el)?f=!1:(Array.isArray(v.include)&&v.include.indexOf(r)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(r),f=!0),S=v.deep??!1}else typeof g=="boolean"&&(S=g),f=!0;if(f){const v=d?.validate();y.push(v)}if(S){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&&s){const N=s.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 S=g[r];if(S&&d?.setRule(S),y&&s){const f={name:v=>Reflect.ownKeys(g).includes(v)};s.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 S=g;y={name:f=>f?S.indexOf(f)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(Array.isArray(S.include)&&S.include.length>0){const f=S.include;y={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const f=S.exclude;y={name:v=>v?f.indexOf(v)===-1:!1}}else y={name:"*"}}y&&s&&s.emitToChildren(y,"clearValidate",!1)};let m=new vs(l);l[Nn]=m;const u=Me((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ps()).forEach(g=>{m&&m.on(g,y=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:gs()).forEach(g=>{m&&m.on(g,y=>{u("reset")})}),setTimeout(function(){s?.pull()},0),t.onUnmounted(()=>{s?.destroy(),l[Se]=void 0,t.provide(Se,null),s=null,d?.destroy(),l[Le]=void 0,t.provide(Le,null),d=null,m?.destroy(),l[Nn]=void 0,m=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:s,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 ks(e,n,a,o,l){const r={},i=n??"",s={getValue(){const m=e.getForSelf("modelValue");return m?m[i]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,i):!1}};a.fieldName=i,a.validateHandler={getValue(m){return s.getValue()}};let c=Pn({},l,a);r.validate=(m=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,b=!1;if(Array.isArray(m)&&m.indexOf(i)!==-1)b=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),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 S=m;g={name:f=>f?S.indexOf(f)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Object.assign(y,S),Array.isArray(S.include)&&S.include.length>0){const f=S.include;g={name:v=>v?f.indexOf(v)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const f=S.exclude;g={name:v=>v?f.indexOf(v)===-1:!1}}else g={name:"*"}}if(g&&d){const S=d.emitToChildren(g,"validate",y);Reflect.apply([].push,u,S)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(g=>{let y=[];return g.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(y=[...y,...S.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[i];u&&c?.setRule(u)};let d=Mn(null,o,i,r);return t.onUnmounted(()=>{c=null,d=null}),{broadcast:d,validateSchema:c}}function Vt(){let n=t.getCurrentInstance()?.proxy,a=new vs(n);return n[Nn]=a,t.onUnmounted(()=>{a?.destroy(),n[Nn]=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 he=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(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}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 Bi(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const Xe="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 zo(e,n,a={},o=!0,l=-1,r=-1,i=0,s=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(i,r)-de(s,r),e.width=de(a.width??n.width??0,l)}}function Ss(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 i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;zo(o,r,n,!0,i,s,c,d);const m=t.reactive(o),u=e.getForParent(Xe);u&&(o.height=Bn(e,u),o.width=An(e,u),t.watch([()=>Bn(e,u),()=>An(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,S=-1,f=0,v=0])=>{zo(m,g,n,h,y,S,f,v)}),e.set(Xe,m),m}function zn(e){return e.get(Xe)}function On(e,n){if(n=n??e.get(Xe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Rn(e,n){if(n=n??e.get(Xe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Bn(e,n){if(n=n??e.get(Xe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=On(e,n),o=Rn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function An(e,n){return n=n??e.get(Xe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ai(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function Vi(e){return!!e.getForParent(Xe)}var Vn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Vn||{});function nn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=_e();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(nn(c,o))return c}const i=e.value;return nn(i,o)?i:null}):t.computed(()=>{const r=e.value;if(nn(r,o))return r;const i=l.getAll(n);for(let s=0;s<i.length;s++){const c=i[s];if(nn(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 i=t.ref(r);return t.watch(l,s=>{if(typeof a=="function"){const c=a(s);c!==i.value&&(i.value=c,o&&o("setValue",c))}else s!==i.value&&(i.value=s,o&&o("setValue",s))}),i}const Cs=new Map,Tn=new Map;let Oo=null;function Ti(e){Oo=e}function ws(e,n,a){if(a){let o=Tn.get(a);o||(o=new Map,Tn.set(a,o)),o.set(e,n)}else Cs.set(e,n)}function et(e,n,a){!a&&Oo&&(a=Oo(e)??void 0);let o=null;if(a){let l=Tn.get(a);l&&(o=l.get(n))}return o||(o=Cs.get(n)),o}function $i(e,n){for(let a in e){const o=e[a];ws(a,o,n)}}function Ei(e){Tn.delete(e)}function xi(){return{top:0,left:0,bottom:0,right:0}}function Di(){if(Ze){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 Ii(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class qi{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 i=Ii(r.name,a);n.component(i,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=yt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Me(()=>{const s={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=d,this.initPageLayout(s,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=rt({},xi(),n.safeAreaInset),i=Di(),s=rt({},i.pageLayout,n.pageLayout);a=a??yt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ti(n)}setAPI(n,a,o){ws(n,a,o)}getAPI(n,a,o){return et(n,a,o)}batchSetAPI(n,a){$i(n,a)}clearScopeAPI(n){Ei(n)}getRootDomain(){return yt()}}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 Mi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(ls(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",i=e.id||new Date().getTime();l.id=r+i;let s={};wn(n.wrapper)?s=n.wrapper(a,l):s=n.wrapper;const c=t.createApp(s,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)}}},Ns=(e,n)=>e?t.h(e,n):"";function Ee(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={disabled:{type:[Boolean,String],required:!1,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}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Bs={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},As={name:{type:String,required:!1},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}},Vs=[];for(const e in As)Vs.push(e);const Pi=Symbol.for("InnerPageScopeKey"),Li={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}},zi=(e,n)=>({inheritAttrs:!0,props:{...pe,...Bs,...Li},setup(a,{slots:o}){const l=al(a.name,a),r=t.inject(Pi,!1);if(l){const m=Ss(l,a);Ee({getPageContentHeight:()=>Bn(l,m),getPageContentWidth:()=>An(l,m),getPageHeaderHeight:()=>On(l,m),getPageFooterHeight:()=>Rn(l,m)}),m&&r&&(m.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=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),S=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{S.includes(v)||(y[v]=[])}),d(y)}if(u&&b){const g=t.toRaw(b),y=t.toRaw(u),S=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{S.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:i.value,style:s.value};return t.h("div",m,[o?.default?.()])}}}),{componentName:Oi,create:Ri,scope:HA}=J("page"),rl=Ri(zi(Oi));function sl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(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")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-i}}const Fi=Symbol.for("InnerPageScopeKey"),Ts={headerbar:{},radio:{},checkbox:{}};function Ki(e){Object.assign(Ts,e)}function Kn(){return Ts}const Ui=(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 i=_e(),s=i?zn(i):null,c=t.inject(Fi,!1),d=Kn(),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(i&&s){const E=Re(l.padding??s.headerPadding);return Object.assign(q,E),b&&(s.headerHeight=b),s.headerHeight>0&&(q.height=s.headerHeight),q.safeAreaTop=s.safeAreaTop===-1?0:s.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),S=()=>{if(s&&y.value&&!qn(y.value)){if(!o){const q=sl(y.value);s.headerAllHeight=q.height}return s.headerMounted=!0,!0}return!1},f=Me(S,120);let v=null;t.onMounted(()=>{s&&(ll(S,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(f),v.observe(y.value)))}),t.onUnmounted(()=>{s&&(s.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 k(){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,T=t.h("view",{class:"left-icon",onClick:w},[t.h(E)]);q.push(T)}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)},V=()=>{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:k},[r.slots.rightIcon()]);q.push(E)}else if(l.rightIcon){const E=t.h("view",{class:"right-icon",onClick:k},[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 T=t.h("view",{class:"title-text"},[l.title]);q.push(T)}if(r.slots.titleIcon){const T=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);q.push(T)}else if(l.titleIcon){const T=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);q.push(T)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__title"},q)},K=()=>{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 T=[],P=A();P&&T.push(P);const x=$();x&&T.push(x);const j=V();if(j&&T.push(j),T.length>0){const z=t.h("view",{class:h.value},T);q.push(z)}const H=K();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:Hi,create:ji,scope:Wi}=J("header-bar"),il=ji(Ui(Hi,Wi,oe.Left,!1)),Yi=Symbol.for("InnerPageScopeKey");function Xi(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=_e(),i=r?zn(r):null,s=t.inject(Yi,!1),c=e,d=t.computed(()=>{const f={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return s||(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&&i){const v=Re(o.padding??i.footerPadding);return Object.assign(f,v),m&&(i.footerHeight=m),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.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(i&&h.value&&!qn(h.value)){if(!a){const f=sl(h.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},g=Me(b,120);let y=null;t.onMounted(()=>{i&&(ll(b,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(g),y.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const S=t.computed(()=>{const f={};return u.value.height!==null&&u.value.height!==void 0&&(f.height=he(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(f.paddingTop=he(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(f.paddingLeft=he(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(f.paddingRight=he(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(f.paddingBottom=he(u.value.bottom)),f});return()=>{const f=l.slots.default?l.slots.default():[],v={ref:h,class:d.value,style:S.value};return t.h("view",v,f)}}}}const{componentName:Qi,create:Gi,scope:Zi}=J("footer-bar"),cl=Gi(Xi(Qi,Zi,!1));function Ji(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:o,attrs:l}){const r=_e(),i=t.computed(()=>({[e]:!0})),s=r?zn(r):null,c=t.computed(()=>{const b={};if(r&&s){if(a.padding){const w=Re(a.padding);Object.assign(s.contentPadding,w)}const g=On(r,s),y=Rn(r,s);let S="";s.contentHeight?S=`${s.contentHeight}`:S=`${s.height}px`,console.debug("[content]page height:",S),console.debug("[content]header height:",g),console.debug("[content]footer height:",y),console.debug("[content]padding:",s.contentPadding),b.height=S;let f=(s&&s.contentPadding&&s.contentPadding.top)??-1;(f>=0||g>0)&&(f=f<0?0:f,b.paddingTop=`${g+f}px`);let v=(s&&s.contentPadding&&s.contentPadding.bottom)??-1;(v>=0||y>0)&&(v=v<0?0:v,b.paddingBottom=`${y+v}px`);const p=(s&&s.contentPadding&&s.contentPadding.left)??-1;p>=0&&(b.paddingLeft=`${p}px`);const N=(s&&s.contentPadding&&s.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(s&&d.value){const b=Fn(d.value);s.contentInnerHeight=b.height,s.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:i.value,style:c.value};return t.h(b,g,o)}}}}const{componentName:_i,create:ec,scope:jA}=J("content"),ul=ec(Ji(_i)),kt="GroupStateKey",$s=Symbol.for("GroupScopeKey");function Un(){return t.inject($s,!1)}function Hn(e=!0){t.provide($s,e)}function tc(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];os(l)||(e[o]=l)})}function nc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};tc(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(kt,r),r}function ko(e,n,a=-1,o=-1,l=!1,r,i,s){const c=e.get(kt);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),i||(i=d.maxItemWidth??-1);const m=de(r),u=de(i);s||(s=d.type??"grid");const h=()=>{const b=n===""||n===-1,g=de(n);let y=me(a);const S=de(o);if(!b){let p=(g-(y-1)*S)/y;for(;u!==-1&&p>u;)y++,p=(g-(y-1)*S)/y;for(;m!==-1&&y>1&&p<m;)y--,p=(g-(y-1)*S)/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!==S&&(v.value.gutter=S,f=!0),v.value.type!==s&&(v.value.type=s,f=!0),f&&t.triggerRef(v)};if(l)h();else{const b=++c.passport;setTimeout(()=>{b===c.passport&&h()},50)}}function jn(e,n=!1){let a;return n?a=e.getForParent(kt):a=e.get(kt),a.layout}function Wn(e,n=!1){let a;return n?a=e.getForParent(kt):a=e.get(kt),a.order}function or(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function Yn(e,n,a=1,o=0,l){const r={};let i=0;l?i=de(l):i=or(n.column,a),i>0&&(r.width=`${i}%`);const s=or(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Xn(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=me(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=me(o)%n.column;let i=(e.index+r)%n.column,s=i+l;return s>n.column?(i=0,s=i+l,e.index=e.index+(n.column-i)+l):e.index=e.index+r+l,r>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Es=Symbol("RollingStateKey");function oc(e){t.provide(Es,e)}function lc(){return t.inject(Es,null)}function Ro(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 ac(e){let n=Ro(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=Ro(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function rc(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const sc={...pe,...Bs,...As};function ic(e,n,a){return{props:sc,emits:["update:collapse","header-click"],setup(o,l){const r=al(o.prop??o.name,o,Vs),i=nc(r,{type:o.type}),s=Un();Hn(!0);const c=o.rollingDisplay?lc():null,d=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>s&&r?jn(r,!0).value:null),h=t.getCurrentInstance(),b=(O,W=!1)=>{const X=h?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(O,!0,W)};t.watch([()=>o.rules,()=>o.pureDataRules],([O,W],[X,F])=>{if(O&&X){const G=t.toRaw(X),ee=t.toRaw(O),le=ee?Reflect.ownKeys(ee):[];(G?Reflect.ownKeys(G):[]).forEach(ie=>{le.includes(ie)||(ee[ie]=[])}),b(ee)}if(W&&F){const G=t.toRaw(F),ee=t.toRaw(W),le=ee?Reflect.ownKeys(ee):[];(G?Reflect.ownKeys(G):[]).forEach(ie=>{le.includes(ie)||(ee[ie]=[])}),b(ee,!0)}},{deep:!0});const g=e,y=t.computed(()=>{const O={};if(O.height=T.value,o.width)o.width!=="auto"&&(O.width=he(o.width));else{const W=s?Wn(r,!0):null;if(u.value&&W){if(u.value.type==="grid"){const X=Xn(W,u.value,o.span,o.offset);Object.assign(O,X)}else if(u.value.type==="flow"){const X=Yn(W,u.value,o.span,o.offset,o.width);Object.assign(O,X)}}}return O}),S=t.computed(()=>{const O=i.layout.value.type;return O==="grid"||O==="flow"?{[`${g}--${O}`]:!0,[`${g}--${O}-justify-${o.justify}`]:!0,[`${g}--${O}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${O}`]:!0,[`${g}--gutter`]:!0}}),f=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const X=rc(B.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),v=t.toRef(o,"gutter"),p=t.toRef(o,"column"),N=t.computed(()=>s||m.value?!0:ye(o.isWrap)),w=[],C=O=>{w.push(O)},k=()=>{let O=w.length;w.splice(0,O)},B=t.ref(-1),A=O=>{const W=Fn(O).width;W>0&&W!==B.value&&(B.value=W)};ko(r,B.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,p,v],([O,W,X])=>{i.order.index=0,ko(r,O,W,X,!1,o.minItemWidth,o.maxItemWidth,o.type)});const V=t.computed(()=>P.value?o.expandText??"":o.collapseText??""),$=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),K=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),q=t.ref(),E=t.ref(),T=t.computed(()=>x.value||he(o.height)||""),P=t.ref(!1),x=t.ref(""),j=t.ref(!1);let H=-1;const z=(O,W=!0)=>{const X=q.value;if(X&&P.value!==O){if(H=H<=0?ac(X):H,j.value=!0,W)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",O||(x.value="",j.value=!1)},O){let F=0;o.collapseHeight?F=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(F=E.value.offsetHeight),x.value=`${H}px`,t.nextTick(()=>{x.value=`${F}px`})}else x.value=`${H}px`;else if(O){let F=0;o.collapseHeight?F=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(F=E.value.offsetHeight),x.value=`${F}px`}else j.value=!1,x.value=`${H}px`;P.value=O,l.emit("update:collapse",O)}};t.watch(()=>o.collapse,O=>{z(O)});const _=O=>{l.emit("header-click",O)},U=()=>{I()},I=O=>{O=O??!P.value,z(O)};Ee({toggleCollapse:I,doLayout:()=>{w[0]&&(A(w[0]),ko(r,B.value,p.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let D=null,Y=!0;const L=O=>{if(o.rules){const W=t.toRaw(o.rules);b(W)}if(o.pureDataRules){const W=t.toRaw(o.pureDataRules);b(W,!0)}if(Ze&&(O&&z(ye(o.collapse),!1),o.autoLayout&&Array.isArray(w)&&w.length>0)){const W=w[0];if(A(W),window.ResizeObserver){const X=Me(()=>A(W),120);D=new window.ResizeObserver(X),D.observe(W)}}},R=()=>{D?.disconnect(),D=null},Z=!m.value||c?.acquire();Z&&(d.value=m.value?!0:null),t.onMounted(()=>{if(Z&&(L(Y),Y=!1),m.value&&c){let O=null,W=c.initialHeight;c.observe(q.value,X=>{if(X!==d.value)if(X)d.value=!0,P.value||(x.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(L(Y),Y=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!P.value)if(Y)x.value=c.initialHeight;else{let F=Ro(q.value);F<=0?x.value=W:(x.value=`${F}px`,W=x.value)}Y||R()}})}}),t.onUnmounted(()=>{D?.disconnect(),c&&c.unobserve(q.value)});const Q=(O="right")=>{const W=[];if(V.value){const ee={class:$.value},le=t.h("span",ee,[V.value]);W.push(le)}const X={class:K.value},F=o.collapseIcon??a,G=t.h(F,X);return W.push(G),W.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:U},W):null},te=(O,W,X,F)=>{const G={...S.value};return W===0&&(G[`${g}__first`]=!0),X>=F-1&&(G[`${g}__last`]=!0),t.h("div",{ref:C,key:`${W}`,class:G,style:f.value},O)};return()=>{if(m.value&&d.value!==!0){const G=o.tag||"div";return t.h(G,{ref:q,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:y.value},[])}i.order.index=0;const O=[];let W=0;if(l.slots.header){const G={key:`${W++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:_},ee=t.h("div",G,[l.slots.header()]);O.push(ee)}else{const G=[],ee=o.collapsePosition==="left";if(ee&&o.showCollapse){const le=Q("left");le&&G.push(le)}if(o.title||l.slots.title){if(o.showMark){const le={class:{[`${g}__header-mark`]:!0}};o.markColor&&(le.style={background:o.markColor});const re=t.h("div",le);G.push(re)}if(l.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);G.push(le)}else if(o.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.title]);G.push(le)}}if(l.slots.toolbar&&G.push(l.slots.toolbar()),!ee&&o.showCollapse){const le=Q("right");le&&G.push(le)}if(G.length>0){const le={key:`${W++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:_},re=t.h("div",le,G);O.push(re)}}k();const X=l.slots.default?l.slots.default():[],F=i.layout.value.type;if(F==="grid"){const G=te(X,W++,0,X.length);O.push(G)}else if(F==="flow"){const G=te(X,W++,0,X.length);O.push(G)}else for(let G=0;G<X.length;G++){const ee=X[G],le=te([ee],W++,G,X.length);O.push(le)}if(N.value){const G=o.tag||"div";return t.h(G,{ref:q,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:y.value},[O])}else return O}}}}const{componentName:cc,create:uc,scope:dc}=J("group"),dl=uc(ic(cc,dc,oe.RectUp));function fc(e){return e===window}const mc=/matrix\((.+)\)/,fl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(fc(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,i=0,s=0,c=0;for(l=n;l!==document;){i+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const m=mc.exec(d);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(s+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=i,a+=s,o+=c,{x:a,y:o}};class pc{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 hc{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 pc,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 Rt=new hc,xs={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:gc,create:yc}=J("price"),vc=yc({props:{...xs},setup(e){const n=t.computed(()=>({[gc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ve(e.price)==0?"":xn(e.price,e.decimalLength,!0,me(e.digits),e.separator)),l=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),ne=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},bc=["innerHTML"],kc=["innerHTML"];function Sc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,bc)):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,kc)):t.createCommentVNode("",!0)],2)}const Qe=ne(vc,[["render",Sc]]),{componentName:So,create:Cc}=J("hint-text"),wc=Cc({components:{Price:Qe},props:{...xs,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),i=t.ref(e.placement),s=t.ref(!1),c=t.ref(null),d=($,K,q,E,T,P)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,j=document.documentElement.clientHeight||document.body.clientHeight,H=$.split("-");let z=[];H[0]==="top"?z=["top","bottom","right","left"]:H[0]==="bottom"?z=["bottom","top","right","left"]:H[0]==="left"?z=["left","top","bottom","right"]:H[0]==="right"&&(z=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},U=[];for(let I=0;I<z.length;I++){const M=z[I];if(U[0]=M,H[1]&&(U[1]=H[1]),M==="top"){const D=K.y-P-e.arrowSize-e.offset;if(D>=0){_.top=D;let Y=0;H[1]==="start"?Y=K.x:H[1]==="end"?Y=K.x+q-T:Y=K.x+q/2-T/2;const L=x-Y-T;L<0?(Y+=L,u.value=-L):u.value=0,_.left=Y<0?0:Y;break}}else if(M==="bottom"){const D=K.y+E+e.arrowSize+e.offset;if(D+P<=j){_.top=D;let Y=0;H[1]==="start"?Y=K.x:H[1]==="end"?Y=K.x+q-T:Y=K.x+q/2-T/2;const L=x-Y-T;L<0?(Y+=L,u.value=-L):u.value=0,_.left=Y<0?0:Y;break}}else if(M==="left"){const D=K.x-T-e.arrowSize-e.offset;if(D>=0){_.left=D;let Y=0;H[1]==="start"?Y=K.y:H[1]==="end"?Y=K.y+E-P:Y=K.y+E/2-P/2,_.top=Y<0?0:Y;break}}else if(M==="right"){const D=K.x+q+e.arrowSize+e.offset;if(D+T<=x){_.left=D;let Y=0;H[1]==="start"?Y=K.y:H[1]==="end"?Y=K.y+E-P:Y=K.y+E/2-P/2,_.top=Y<0?0:Y;break}}}return{bestPlacement:U.join("-"),bestInsetRect:_}},m=($,K,q=10)=>{if(!Ze||K===!1||!$)return;o.value=fl(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=c.value.offsetHeight,T=c.value.offsetWidth,{bestPlacement:P,bestInsetRect:x}=d(e.placement,o.value,l.value,r.value,T,E);i.value=P,a.value=x,s.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),S=Me($=>{const K=$[0];K&&(y.value=K.isIntersecting)},10),f=new IntersectionObserver(S);t.watch([()=>e.message,()=>e.visible],([$,K])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Rt.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeUnmount(()=>{Rt.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const v=t.computed(()=>{const $={[So]:!0};return i.value.startsWith("top")?$["is-top"]=!0:i.value.startsWith("right")?$["is-right"]=!0:i.value.startsWith("bottom")?$["is-bottom"]=!0:i.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 K=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${K}px`,s.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 $=[`${So}__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(()=>({[`${So}__arrow`]:!0})),k=t.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,i.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="top-start"?($.left=`${e.arrowOffset+u.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="top-end"?($.right=`${e.arrowOffset-u.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?($.left=`${e.arrowOffset+u.value}px`,$.top=`-${e.arrowSize}px`):i.value==="bottom-end"?($.right=`${e.arrowOffset-u.value}px`,$.top=`-${e.arrowSize}px`):i.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.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:k,overlayShow:B,overlayStyle:A,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),Nc=["innerHTML"];function Bc(e,n,a,o,l,r){const i=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]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},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(i,{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,Nc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ds=ne(wc,[["render",Bc]]);class Qn{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Fo={},Ac=new Qn,vt=new Map,$n=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of vt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}vt.clear()}},Vc=e=>{e.unmount=$n;const n=document.getElementById(e.id);if(n){const a=vt.get(e.id);a?e={...Fo,...a,...e}:e={...Fo,...e},e.transition=!1;const o=t.createVNode(Ds,e);return t.render(o,n),e.id}},Tc=e=>{e.unmount=$n;let n=e.id??`hinttext_${Ac.get()}`;e={...Fo,...e},e.id=n,vt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ds,e);return t.render(o,a),document.body.appendChild(a),n},$c=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Tt={show(e,n,a={},o=!0){$c(n);const l=a.id;return l&&vt.has(l)?Vc({...a,message:n,reference:e}):(o&&$n(),Tc({...a,message:n,reference:e}))},hide(e){$n(e)},install(e){e.config.globalProperties.$hintText=Tt}};function Ec(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ge},emits:["appear","disappear"],setup(l,r){const i=l.prop??r.attrs.name;Ae({componentName:e,validate:!1},i);const s=_e(),c=Un();Hn(!1);const d=t.computed(()=>c&&s?jn(s,!1).value:null),m=e,u=t.ref(null),h=t.computed(()=>{const F={[m]:!0,[`${m}__gutter`]:d.value&&d.value.type!=="flow",[`${m}__stretch`]:l.span==="stretch",[`${m}__input--border`]:ye(l.hasBorder)};if(F[l.errorMarkClass]=!!P.value,F[l.warnMarkClass]=!!E.value,F[l.infoMarkClass]=!!K.value,typeof u.value=="function"){const G=u.value(i);F[G]=!0}else if(typeof u.value=="string"){const G=u.value;F[G]=!0}return F}),b=t.ref(null),g=t.computed(()=>{const F={};if(l.width)l.width!=="auto"&&(F.width=he(l.width));else{const G=c&&s?Wn(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const ee=Xn(G,d.value,l.span,l.offset);Object.assign(F,ee)}else if(d.value.type==="flow"){const ee=Yn(G,d.value,l.span,l.offset,l.width);Object.assign(F,ee)}}}if(typeof b.value=="function"){const G=b.value(i);G&&Object.assign(F,G)}else if(b.value&&typeof b.value=="object"){const G=b.value;Object.assign(F,G)}return F}),y=t.ref(null),S=t.computed({get:()=>y.value??ye(l.isRequired),set:F=>{y.value=F}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",v=Ve(t.toRef(l,"labelPosition"),"labelPosition",Vn.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",Vn.Near),k=t.computed(()=>C&&C.value?{width:he(C.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":S.value})),A=t.computed(()=>({content:!0,[l.contentClass]:!0})),V=t.computed(()=>({...l.contentStyle})),$=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(F){S.value=F},setErrorTip(F){$.errorTip=F},setErrorIcon(F){$.errorIcon=F},setWarnTip(F){$.warnTip=F},setWarnIcon(F){$.warnIcon=F},setInfoTip(F){$.infoTip=F},setInfoIcon(F){$.infoIcon=F},setCustomClassName(F){u.value=F},setCustomStyle(F){b.value=F}});const K=t.computed(()=>l.infoTip||$.infoTip),q=t.computed(()=>l.infoIcon||$.infoIcon),E=t.computed(()=>l.warnTip||$.warnTip),T=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":K.value?"info":""),H=()=>j.value.length>0,z=t.computed(()=>j.value==="error"?P.value:j.value==="warn"?E.value:j.value==="info"?K.value:""),_=t.computed(()=>j.value==="error"?x.value:j.value==="warn"?T.value:j.value==="info"?q.value:null),U=t.computed(()=>{const F={[`${m}__tip`]:!0,[`${m}__tip--${j.value}`]:!0,[`${m}--animate`]:!0};return j.value==="error"&&l.errorClass?F[`${l.errorClass}`]=!0:j.value==="warn"&&l.warnClass?F[`${l.warnClass}`]=!0:j.value==="info"&&l.infoClass&&(F[`${l.infoClass}`]=!0),F}),I=t.computed(()=>{const F={};return v&&v.value==="top"||!f()?F["padding-left"]="0px":C&&C.value&&(F["padding-left"]=he(C.value)),F}),M=t.ref();let D="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([F,G,ee,le])=>{M.value&&(F&&!ue(G)?D?a.show(M.value,G,{...le,id:D,type:ee},!0):D=a.show(M.value,G,{...le,type:ee},!0):a.hide(D))});let Y=null;const L=()=>{Y||!M.value||(Y=new IntersectionObserver(F=>{let G=!1;for(let ee of F)if(ee.intersectionRatio>0){G=!0,G&&r.emit("appear",ee);break}G||r.emit("disappear")}),Y.observe(M.value))},R=()=>{!Y||!M.value||(Y.unobserve(M.value),Y=null)};t.watch(()=>ye(l.appearListen),F=>{F?L():R()}),t.onMounted(()=>{ye(l.appearListen)&&L()}),t.onUnmounted(R);const Z=()=>{if(!f())return null;const F=[],G=r.slots?.label?.()??l.label,ee={class:B.value},le=t.h("div",ee,[G]);if(F.push(le),r.slots.fixedPreTip){const ie=r.slots.fixedPreTip();F.push(ie)}const re={class:w.value,style:k.value};return t.h("div",re,F)},Q=()=>{const F=[];if(r.slots.prepend){const ee=r.slots.prepend();F.push(ee)}if(r.slots.default){const ee=r.slots.default();F.push(ee)}if(r.slots.append){const ee=r.slots.append();F.push(ee)}if(r.slots.fixedTip){const ee={class:[`${m}__fixed-tip`]},le=t.h("div",ee,[r.slots.fixedTip()]);F.push(le)}const G={ref:M,class:A.value,style:V.value};return t.h("div",G,F)},te=()=>{const F=_.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--icon"},[F()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(F)]):null},O=()=>{const F=z.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--text"},[F()]):t.h("div",{class:"fox-item__tip--text"},[F]):null},W=()=>{if(!H())return null;const F=[],G=te();G&&F.push(G);const ee=O();ee&&F.push(ee);const le={class:U.value,style:I.value};return t.h("div",le,F)},X=()=>r.slots?.hide?.()??null;return()=>{const F=[],G=[],ee=Z();ee&&G.push(ee);const le=Q();le&&G.push(le);const re={class:N.value},ie=t.h("div",re,G);F.push(ie);const Ce=W();Ce&&F.push(Ce);const Ne=X();Ne&&F.push(Ne);const ut={class:h.value,style:g.value,prop:l.prop};return t.h("div",ut,F)}}}}const{componentName:xc,create:Dc,scope:Ic}=J("item"),we=Dc(Ec(xc,Ic,Tt,!1));function qc(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})),i=_e(),s=Un();Hn(!1);const c=t.computed(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=he(a.width));else if(s&&i){const m=jn(i,!1),u=Wn(i,!1);if(m.value&&u){if(m.value.type==="grid"){const h=Xn(u,m.value,a.span,a.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=Yn(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:Mc,create:Pc,scope:WA}=J("row-item"),ml=Pc(qc(Mc));function Lc(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=_e(),r=Un();Hn(!1);const i=t.computed(()=>r&&l?jn(l,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=he(a.width));else{const u=r&&l?Wn(l,!1):null;if(i.value&&u){if(i.value.type==="grid"){const h=Xn(u,i.value,a.span,a.offset);Object.assign(m,h)}else if(i.value.type==="flow"){const h=Yn(u,i.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:zc,create:Oc,scope:YA}=J("slot-item"),pl=Oc(Lc(zc)),lr={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 Rc(e,n,a,o){return{props:{...pe,...ge,...lr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=se.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":i.value,"is-readonly":s.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),S=t.computed(()=>{const T={};return y.value&&(T["text-align"]=y.value),T}),f=T=>{let x=T.target.value;l.type==="digit"&&(x=Mo(x,!0)),l.type==="number"&&(x=Mo(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),h.value=x,c("update:modelValue",x,T),c("change",x,T)};let v=Pe(l,"hintText"),p=t.ref(!1);const N=T=>{let x=T.target.value;u.value=!0,ue(v.value)||(p.value=!0),c("focus",x,T)},w=T=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let x=T.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,T)},C=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),k=t.computed(()=>{const T={};return r.slots.append&&!B.value&&!q.value&&(T.display="none"),T}),B=t.computed(()=>ve(l.unit)>0),A=t.computed(()=>!q.value),V=t.computed(()=>({[`${b}__unit`]:!0,hidden:!A.value})),$=T=>{h.value="",c("update:modelValue","",T),c("change","",T),c("clear","")},K=t.computed(()=>ye(l.clearable)&&!i.value&&!s.value),q=t.computed(()=>{let T=ve(h.value)>0;return ye(l.clearable)&&T&&u.value}),E=t.computed(()=>({action:!0,hidden:!q.value}));return()=>{const T={class:g.value,style:S.value,type:l.type,maxlength:l.maxLength,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:N,onBlur:w},P=[],x=t.h("input",T);P.push(x);const j=[];if(K.value){const D={class:["action-icon"]},Y=t.h(o,D),L={class:E.value,onClick:$},R=t.h("view",L,{default:()=>[Y]});j.push(R)}if(B.value){const D=t.h("view",{class:V.value},[l.unit]);j.push(D)}const H={class:C.value,style:k.value},z=t.h("view",H,{default:()=>j});P.push(z);const _={default:()=>P};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const I={...Je(l,lr),hintText:v.value,hintVisible:p.value};return l.prop&&(I.prop=`${l.prop}_item`),t.h(a,I,_)}}}}const{componentName:Fc,create:Kc,scope:Uc}=J("input-item"),hl=Kc(Rc(Fc,Uc,we,oe.CircleClose));function ar(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 rr(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=es(`${e}`,`${n}`);return ar(o)}else{let o=tl(`${e}`,ts(`${n}`),20);return ar(o)}}function Hc(e,n=-1,a=!1,o=3,l=","){return xn(e,n,a,o,l)}function sr(e,n,a,o,l=!0){if(e==="")return"";if(e=ns(e),n=me(n),n==1)return e;if(o)e=rr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=tl(e,1,me(a)));else{let r=-1*n;e=rr(e,r)}return e}function ir(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ye(n.minInclude),l=xo(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=ye(n.maxInclude),l=xo(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const cr={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 jc(e,n,a,o){return{props:{...pe,...ge,...cr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return s.value},get disabled(){return i.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,z,_])=>{if(ue(H)){u.value="";return}const U=sr(H,z,_,!1);u.value!==U&&(u.value=U)},{immediate:!0});const h=t.computed(()=>{let H="";return d.value&&(H=u.value),H}),{t:b}=se.useFoxI18n(n),g=t.computed(()=>{let H=l.placeholder??"";return!d.value&&!ue(u.value)?H=Hc(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?b(["placeholder"]):H,H}),y=e,S=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:u.value.length>0,"is-disabled":i.value,"is-readonly":s.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),k=H=>{let _=H.target.value;if(ue(_)){u.value="",m.value="",c("update:modelValue","",H),c("change","",H),ye(l.showTip)&&C.value&&(C.value=!1);return}if(_.length>=2){let U=_;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!nl(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&us(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&ds(_)>Number(l.decimalLength)){t.triggerRef(u);return}let U=ir(_,l);if(U.maxValid===!1){p.value=U.message,t.triggerRef(u);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(u);return}w.value=_,ye(l.showTip)&&(C.value=_.length>0),u.value=_,m.value=sr(_,l.rates,l.precision,!0),c("update:modelValue",m.value,H),c("change",m.value,H)},B=H=>{if(d.value=!0,ye(l.showTip)){let z=u.value;ue(z)&&(z=l.hintText),ue(z)||(w.value=z,C.value=!0)}p.value="",c("focus",m.value,H)},A=H=>{if(setTimeout(()=>{d.value=!1,ye(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let z=ir(u.value,l);if(z.minValid===!1||z.maxValid===!1){p.value=z.message;return}}c("update:modelValue",m.value,H),c("blur",m.value,H)},V=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),$=t.computed(()=>{const H={};return r.slots.append&&!K.value&&!x.value&&(H.display="none"),H}),K=t.computed(()=>ve(l.unit)>0),q=t.computed(()=>!x.value),E=t.computed(()=>({[`${y}__unit`]:!0,hidden:!q.value})),T=H=>{m.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},P=t.computed(()=>ye(l.clearable)&&!i.value&&!s.value),x=t.computed(()=>{let H=ve(m.value)>0;return ye(l.clearable)&&H&&d.value}),j=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let H={class:S.value,style:v.value,type:"digit",maxlength:l.maxLength,placeholder:g.value,disabled:i.value,readonly:s.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:k,onFocus:B,onBlur:A},z=[],_=t.h("input",H);z.push(_);let U=[];if(P.value){const R={class:["action-icon"]},Z=t.h(o,R),Q={class:j.value,onClick:T},te=t.h("view",Q,{default:()=>[Z]});U.push(te)}if(K.value){const R=t.h("view",{class:E.value},[l.unit]);U.push(R)}const I={class:V.value,style:$.value},M=t.h("view",I,{default:()=>U});z.push(M);const D={default:()=>z};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const L={...Je(l,cr),errorTip:N.value,hintText:w.value,hintVisible:C.value,hintType:"number"};return l.prop&&(L.prop=`${l.prop}_item`),t.h(a,L,D)}}}}const{componentName:Wc,create:Yc,scope:Xc}=J("money-item"),gl=Yc(jc(Wc,Xc,we,oe.CircleClose)),Ko={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:Qc,create:Gc,scope:Zc}=J("textarea"),Jc=Gc({props:{...Ko},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=se.useFoxI18n(Zc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Qc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(s)});const i=t.computed(()=>({textAlign:e.textAlign})),s=()=>{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(s)});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:i,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})}}}}),_c=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],eu={key:0,class:"fox-textarea__limit"};function tu(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]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,_c),e.limitShow?(t.openBlock(),t.createElementBlock("view",eu,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Gn=ne(Jc,[["render",tu]]);function nu(e,n,a,o){return{props:{...pe,...ge,...Ko},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return s.value},get disabled(){return i.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 S={...be(l,Ko),disabled:i.value,readonly:s.value,value:d.value,"onUpdate:modelValue":m,onFocus:b,onBlur:g},f=[],v=t.h(o,S);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={...be(l,ge,pe)};return l.prop&&(w.prop=`${l.prop}_item`),t.h(a,w,p)}}}}const{componentName:ou,create:lu,scope:au}=J("textarea-item"),yl=lu(nu(ou,au,we,Gn));function ru(e){return e===window}const qe=e=>{const n=t.unref(e);if(ru(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}},ur=10;function Is(e,n){return e>n&&e>ur?"horizontal":n>e&&n>ur?"vertical":""}function Zn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Jn(){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:i=>{if(i.touches){const d=i.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=i;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=Is(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const c=i;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function tt(){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),i=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(0),m=t.ref(""),u=()=>m.value==="vertical",h=()=>m.value==="horizontal",b=()=>{i.value=0,s.value=0,c.value=0,d.value=0,m.value="",a.value=0};return{move:S=>{if(S.touches){const p=S.touches[0];i.value=p.clientX-e.value,s.value=p.clientY-n.value,l.value=p.clientX,r.value=p.clientY}else{const v=S;i.value=v.clientX-e.value,s.value=v.clientY-n.value,l.value=v.clientX,r.value=v.clientY}c.value=Math.abs(i.value),d.value=Math.abs(s.value),o.value=Date.now()-a.value,m.value||(m.value=Is(c.value,d.value))},start:S=>{if(b(),S.touches){const p=S.touches[0];e.value=p.clientX,n.value=p.clientY}else{const v=S;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:i,deltaY:s,offsetX:c,offsetY:d,direction:m,isVertical:u,isHorizontal:h}}let su=2e3;const dr=()=>su++,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:{}}},iu=(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=dr());const r=t.computed(()=>{const y=e,S=[y,`${y}--${a.position}`];return a.round&&S.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&S.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?S.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{S.push(f)}),S}),i=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=dr(),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:i,transitionName:s,classes:r,onClick:m,onClickCloseIcon:u,onClickOverlay:h,onOpened:b,onClosed:g}}}),qs={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}},Uo={...Fe,...qs,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 Ms=36;function cu(){return Ms}function uu(e){Ms=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ho(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function du(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function fr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let fu=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=et(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 mu(){const e=t.getCurrentInstance();return new fu(e.proxy)}function mr(e,n,a){const o=Oe(e,n),l=Oe(e,a);if(o!==l)return!1;const r=it(e,n),i=it(e,a);return r===i}function pu(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 i=0;i<n.length&&i<a.length;i++){const s=n[i];let d=a[i].findIndex(m=>{if(r==="text")return Oe(e,m)===s;if(r==="value"){let u=it(e,m);return u==null&&(u=Oe(e,m)),u===s}else if(r==="item")return mr(e,m,s)});if(d==-1)break;l.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){const c=n[s];let d=i.findIndex(u=>{if(r==="text")return Oe(e,u)===c;if(r==="value"){let h=it(e,u);return h==null&&(h=Oe(e,u)),h===c}else if(r==="item")return mr(e,u,c)});if(d==-1)break;l.push(d);const m=Ho(e,i[d]);if(!Array.isArray(m))break;i=m}}return l}function pr(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 i=0;i<n.length&&i<a.length;i++){const s=a[i];let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[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=it(e,d);u==null&&(u=m),l.values.push(u)}else l.values.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[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=it(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(m);if(!Array.isArray(d.children))break;i=d.children}}return l}function hr(e){return{text:e,value:e}}const hu=15,gu=300,yu=200,{create:vu}=J("picker-column");function bu(e){e.stopPropagation()}function ku(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),bu(e)}const Su=vu({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},...qs},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=k=>k>=u.currIndex+8||k<=u.currIndex-8,s=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),b=k=>it(e,k),g=tt(),y=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},S=(k,B=!1,A=!1)=>{if(u.currIndex=k,B){const V=()=>{u.moving=!1,n("update:modelValue",k),n("change",k)};A?u.transitionEndTrigger=V:V()}},f=(k,B,A)=>{let V=k+u.startDistance;if(B==="end"){const $=-(e.source.length-1)*e.itemHeight;V<$&&(V=$),V>0&&(V=0);let K=Math.abs(Math.round(-V/e.itemHeight));const q=-K*e.itemHeight,E=`${(K+1)*u.rotation}deg`,T=A?A>0:!1;S(K,!0,T),v(q,B,A,E)}else{let $=(-V/e.itemHeight+1)*u.rotation;const K=(e.source.length+1)*u.rotation,q=0;if($=Math.min(Math.max($,q),K),e.threeDimensional&&($<q||$>K))return;v(V,null,void 0,`${$}deg`)}},v=(k=0,B,A=yu,V)=>{B==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=V,u.scrollDistance=k},p=(k,B)=>(k=Math.abs(k/B)/.003*(k<0?-1:1),k),N=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,ku(k)),f(g.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const k=g.deltaY.value,B=g.duration.value;if(B<gu&&Math.abs(k)>hu){const V=p(k,B);f(V,"end",e.swipeDuration)}else f(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const B=u.currIndex-k;if(B!==0){u.currIndex=k,u.startDistance=u.scrollDistance;const A=B*e.itemHeight;f(A,"",0)}}),t.watch(()=>e.source,k=>{if(u.currIndex>=k.length){const V=(k.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(V,"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:b,...t.toRefs(u),roller:m,getItemText:Oe,onTouchStart:N,onTouchMove:w,onTouchEnd:C,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:d,stopMomentum:y}}}),Cu={key:1,class:"fox-picker__item-tile"};function wu(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]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Cu,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Nu=ne(Su,[["render",wu]]);let Dt=0;const gr="fox-overflow-hidden",yr=()=>Ze?document.body:{classList:[]},Bu=e=>[()=>{if(e())try{!Dt&&yr().classList.add(gr),Dt++}catch{}},()=>{if(e()&&Dt)try{Dt--,!Dt&&yr().classList.remove(gr)}catch{}}],Au={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:Vu,create:Tu}=J("overlay"),$u=Tu({props:{...Au},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Bu(()=>e.lockScroll),l=t.computed(()=>({[Vu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?a():o()}),{classes:l,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Eu(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const ct=ne($u,[["render",Eu]]),{componentName:xu,create:Du}=J("popup"),Iu=Du(iu(xu,{FoxOverLay:ct,Close:oe.Close}));function qu(e,n,a,o,l,r){const i=t.resolveComponent("FoxOverLay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,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(s)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const fe=ne(Iu,[["render",qu]]),Mu=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=Je({...e},{poppable:!1});return t.h(fe,a,n)}else return n?.default?.()??null}}}),{create:Pu,componentName:Lu,scope:zu}=J("picker"),Ou=Pu({components:{Column:Nu,Wrapper:Mu},props:{...Uo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=se.useFoxI18n(zu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(cu());t.watch(()=>e.visible,E=>{E&&i.value<=0&&setTimeout(()=>{if(r.value){const T=qe(r.value);i.value=T.height,uu(i.value)}},50)});const s=t.computed(()=>({[Lu]:!0})),c=mu(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([E,T])=>{if(E){let P=await c.load("picker",E,T);if(P.length>0){let x=P[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let j=P,H=[];j.forEach(z=>{let _=z.map(U=>hr(U));H.push(_)}),m.value=H}else m.value=P;d.value="multipleColumn"}else if(typeof x=="string"){let j=P,H=[],z=j.map(_=>hr(_));H.push(z),m.value=H,d.value="singleColumn"}else{const j=Ho(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,T])=>{let P=pu(e,E,T,d.value);if(!Ie(P,y.value)){y.value=P,g||(g=P?[...P]:[]);let x=pr(e,P,T,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 S="";const f=t.ref(e.visible);t.watch(()=>e.visible,E=>{f.value=E,E&&(S="active",y.value.length>0&&(g=[...y.value]))});const v=E=>{let T=fr(e,E);return De(T)?T.defaultIndex??0:0},p=E=>{if(e.readonly===!0)return!0;let T=fr(e,E);return De(T)?T.readonly??!1:!1},N=(E,T)=>{let P=y.value;P[E]=T;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=pr(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=[],T=0,P=m.value[0],x=0;for(;;){let j=P.map(_=>{let U=Object.assign({},_);return du(e,U,null),U});E.push(j),T>=y.value.length?x=0:x=y.value[T],(x<0||x>=P.length)&&(x=0);let H=P[x];const z=Ho(e,H);if(!Array.isArray(z))break;P=z,T++}return E}),k=t.computed(()=>me(+e.visibleItemCount-1)/2*i.value),B=(E=!1)=>{if(e.readonly===!0){E&&n("update:visible",!1);return}let T=m.value.length-1;for(;T>=0&&!(y.value[T]===null||y.value[T]===void 0);T--);if(T>=0&&N(T,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,T)=>{if(S!=="close"&&(N(E,T),e.isAutoBackFill)){const P=!f.value;B(P)}},V=()=>{S==="active"&&(S="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:s,columns:C,dataType:d,show:f,itemHeight:i,top:k,isReadonly:p,getIndex:w,change:A,close:()=>{if(S==="active"){if(S="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:V,clear:()=>{if(S==="active"){if(S="clear",e.readonly===!0){n("update:visible",!1);return}$(),g=null,n("clear",""),n("update:visible",!1)}}}}}),Ru={key:0,class:"fox-picker__bar"},Fu={class:"fox-picker__title"},Ku={class:"fox-picker__bar__action"},Uu={class:"fox-picker__column"};function Hu(e,n,a,o,l,r){const i=t.resolveComponent("Column"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{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",Ru,[t.createElementVNode("view",Fu,t.toDisplayString(e.title),1),t.createElementVNode("view",Ku,[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",Uu,[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(i,{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 _t=ne(Ou,[["render",Hu]]);function ju(e,n,a,o,l,r,i=!0){return{props:{...pe,...ge,...Uo,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(s,c){const d=$e(t.computed(()=>s.disabled)),m=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),b=h(s,["placeholder"]),g=t.ref(!1),y=Pe(s,"modelValue",null,u),S=t.ref([]),f=t.computed(()=>Array.isArray(S.value)?S.value.join(s.separator):S.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),w=t.computed(()=>{const M={};return N.value&&(M["text-align"]=N.value),M}),C=t.ref(!1),k=()=>{C.value=!0},B=M=>{C.value=M},A=M=>{y.value=M,u("update:modelValue",M)},V=(M,D)=>{u("change",M,D)},$=M=>{let Y=M.target.value;g.value=!0,u("focus",Y,M)},K=M=>{setTimeout(()=>{g.value=!1},0);let Y=M.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),u("blur",Y,M)},q=M=>{S.value=M,Array.isArray(M)&&M.length===0?u("update:text",M[0]):u("update:text",M)},E=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),T=t.computed(()=>ve(s.unit)>0),P=t.computed(()=>ve(s.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(()=>s.clearable&&!d.value&&!m.value),z=t.computed(()=>ve(y.value)>0&&g.value),_=M=>{z.value?j(M):k()},U=t.computed(()=>z.value&&H.value?o:l),I=t.computed(()=>({action:!0}));return()=>{const M={class:p.value,style:w.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:$,onBlur:K};i&&(M.disabled=!0);const D=[],Y=t.h("input",M);D.push(Y);const L=[],R={class:["action-icon"]},Z=t.h(U.value,R),Q={class:I.value,onClick:_},te=t.h("view",Q,{default:()=>[Z]});if(L.push(te),T.value){const re=t.h("view",{class:x.value},[s.unit]);L.push(re)}const O={class:E.value},W=t.h("view",O,{default:()=>L});D.push(W);const X={default:()=>D};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 F=be(s,Uo);F.disabled=!1,F.readonly=d.value||m.value,F.visible=C.value,F["onUpdate:visible"]=B,F.modelValue=y.value,F["onUpdate:modelValue"]=A,F.text=S.value,F["onUpdate:text"]=q,F.onChange=V;const G=t.h(r,F);X.hide=()=>[G];const ee=be(s,ge,pe);return s.prop&&(ee.prop=`${s.prop}_item`),t.h(a,ee,X)}}}}const{componentName:Wu,create:Yu,scope:Xu}=J("picker-item"),vl=Yu(ju(Wu,Xu,we,oe.CircleClose,oe.ArrowRight,_t,!1)),Qu=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(fe,o,n)}else return n?.default?.()??null}}}),an=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:i="children"}=a??{},{[l]:s,[r]:c,[i]:d,...m}=o,u={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:d,_parent:n};return u.children&&u.children.length&&(u.children=an(u.children,u,a)),u}),Ps=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Ps(o.children,n)},Gu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Zu=(e,n)=>{const a={...Gu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:i}=a;let s=[],c={};return e.forEach(d=>{d={...d};const{[l]:m,[r]:u}=d,h=c[u]=c[u]||[];!s.length&&u===o&&(s=h),h.push(d),d.children=c[m]||(c[m]=[])}),i&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,u)=>m[i]-u[i])}),c=null,s},Ju={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},vr=(e,n)=>n[e.textKey],It=(e,n)=>n[e.valueKey],_u=(e,n)=>n[e.visibleKey],br=(e,n)=>n[e.disabledKey],ed=(e,n)=>{const a=n[e.doitKey];return ye(a)},td=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},kr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function nd(e,n,a,o=!1){return{props:{...Ju},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:i}){const s=t.computed(()=>{const U={};return U[`${e}`]=!0,U}),c=t.computed(()=>{const U={};return U[`${e}__titles`]=!0,U[`${l.direction}`]=!0,l.align==="left"&&(U.left=!0),l.scroll===!0&&(U.scrollable=!0),l.shape&&(U[`${l.shape}`]=!0),l.showQuickNavigation&&(U["has-navigation"]=!0),U}),d=t.computed(()=>({})),m=t.computed(()=>{if(!l.gutter)return 0;const U=de(l.gutter);return U<=0?0:U}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,U=>{u.value!==U&&(u.value=U,x(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=t.computed(()=>{const U={};return y.value||(U.display="none"),U}),g=t.ref(),y=t.ref(!1),S=()=>{const U=!y.value;f(U)},f=U=>{const I=U;I?(y.value=I,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},v=t.ref(),p=t.ref([]),N=(U,I)=>{p.value[I]=U},w=U=>I=>{N(I,U)},C=(U,I)=>{const M=v.value,D=p.value;if(!M||!D||!D[U])return;const Y=D[U];let L=0;l.direction==="vertical"?L=Y.offsetTop-(M.offsetHeight-Y.offsetHeight)/2:L=Y.offsetLeft-(M.offsetWidth-Y.offsetWidth)/2,k(M,L,I?0:.3,l.direction)},k=(U,I,M,D)=>{let Y=0;const L=D==="horizontal"?U.scrollLeft:U.scrollTop,R=M===0?1:Math.round(M*1e3/16);function Z(){D==="horizontal"?U.scrollLeft+=(I-L)/R:U.scrollTop+=(I-L)/R,++Y<R&&Ue(Z)}Z()},B=(U,I)=>{const M=It(l,U),D={};return D[`${e}__titles-item`]=!0,D.disabled=br(l,U),D.active=M===u.value,l.shape&&(D[`${l.shape}`]=!0),l.ellipsis&&(D.ellipsis=!0),I&&(I.class&&(D[`${I.class}`]=!0),I.disabled===!0&&(D.disabled=I.disabled)),D},A=(U,I)=>{const M={};if(m.value>0){const D=Math.abs(m.value/2);l.direction==="vertical"?(M["margin-top"]=`${D}px`,M["margin-bottom"]=`${D}px`):(M["margin-left"]=`${D}px`,M["margin-right"]=`${D}px`)}return I&&I.style&&Object.assign(M,I.style),M},V=(U,I)=>`${It(l,U)??I}`,$=(U,I)=>{const M=It(l,U),D={};D[`${e}__popup-item`]=!0,D.disabled=br(l,U),D.active=M===u.value,l.shape&&(D[`${l.shape}`]=!0);const Y=kr(l,U,I);return Y&&Y.disabled===!0&&(D.disabled=Y.disabled),D},K=t.computed(()=>(l.data??[]).filter(I=>_u(l,I)!==!1)),q=(U,I)=>{const M=It(l,U);if(i("click",U,I),u.value==M)return;const D=()=>{u.value=M,l.scroll&&C(I,!1),i("update:modelValue",M),i("change",U,I)};if(typeof l.beforeChange=="function"){const Y=l.beforeChange(U,I);bt(Y)?Y.then(L=>{L!==!1&&D()}).catch(()=>{D()}):Y!==!1&&D()}else D()},E=(U,I)=>function(){q(U,I)},T=(U,I)=>{q(U,I),f(!1)},P=(U,I)=>function(){T(U,I)},x=U=>{if(!Array.isArray(l.data)||!l.scroll)return;const I=l.data.findIndex(M=>It(l,M)===u.value);I!==-1&&C(I,U)};t.watch(()=>l.data,()=>{setTimeout(x,0)}),t.onMounted(()=>{x(!0)});const j=(U,I)=>{if(r.item)return r.item({item:U,index:I});const M=kr(l,U,I),D=[];if(r.text){const Z=r.text({item:U,index:I});D.push(Z)}else{const Z=[];if(M?.doit===!0||ed(l,U)){const W={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",W);Z.push(X)}const Q=M?.num??td(l,U);if(Q){let W="";const X=me(Q);X>=100?W="99+":W=`${X}`;const F={class:[`${e}__titles-item-tip`,"num"]},G=t.h("view",F,[W]);Z.push(G)}const te={class:`${e}__titles-item-text`};Z.push(vr(l,U));const O=t.h("view",te,Z);D.push(O)}const Y={class:`${e}__titles-item-line`},L=t.h("view",Y);D.push(L);const R={ref:w(I),class:B(U,M),style:A(U,M),key:V(U,I),onClick:E(U,I)};return t.h("view",R,D)},H=()=>{const U=r.default?r.default():[];if(U.length===0)for(let M=0;M<K.value.length;M++){const D=K.value[M],Y=j(D,M);U.push(Y)}const I={ref:v,class:c.value,style:d.value};return t.h("view",I,U)},z=()=>{let U=null;r.navigation?U=r.navigation():U=t.h(a);const I={class:`${e}__navigation`,onClick:S};return t.h("view",I,[U])},_=()=>{const U=[];for(let M=0;M<K.value.length;M++){const D=K.value[M];let Y=null;r.popupItem?Y=r.popupItem({item:D,index:M}):Y=vr(l,D);const L={class:$(D,M),key:V(D,M),onClick:P(D,M)},R=t.h("view",L,[Y]);U.push(R)}const I={class:h.value,style:b.value};return t.h("view",I,U)};return()=>{const U=[],I=H();if(U.push(I),l.showQuickNavigation){const D=z();U.push(D);const Y=_();U.push(Y)}const M={class:s.value};return t.h("view",M,U)}}}}const{create:od,componentName:ld,scope:ad}=J("tabs-bar"),_n=od(nd(ld,ad,oe.MoreH,!1)),Ls=Symbol("TabsStatesKey"),rd={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},sd=15,id=300,cd=200;function ud(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function Sr(e,n=0,a,o,l=cd){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 dd=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??Zn()}open(n){this.el=n;const a=Jn(),o=(l,r,i)=>{const s={delta:l,direction:r,type:i};this.onMove(s)};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<id&&Math.abs(l)>sd?(l=ud(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 fd(e,n,a,o=1,l){return new dd(e,n,a,o,l)}function md(e,n,a=!1){return{props:{...rd},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const i=t.shallowRef([]),s={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:C=>{const k={name:C};s.current.value===C&&(k.loaded=!0),i.value.push(k),t.triggerRef(i)},remove:C=>{const k=i.value.findIndex(B=>B.name===C);k!==-1&&i.value.splice(k,1)},isLoaded:C=>{if(!o.lazy)return!0;const k=i.value.findIndex(B=>B.name===C);return k!==-1?s.current.value?i.value[k].loaded??!1:k===0:!1}};t.provide(Ls,s);const c=C=>{const k=i.value.findIndex(B=>B.name===C);k!==-1&&(i.value[k].loaded=!0,t.triggerRef(i))};t.watch([()=>o.modelValue,()=>o.direction],([C,k])=>{s.current.value!==C&&(s.current.value=C??"",c(C??"")),s.direction.value!==k&&(s.direction.value=k)});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={},k=i.value.length;if(k<=0)return C;const B=i.value.findIndex(A=>A.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(C.height=`${k*s.tabHeight.value}px`,B!==-1&&(C.transform=`translate(0, -${B*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(C.width=`${k*s.tabWidth.value}px`,B!==-1&&(C.transform=`translate(-${B*s.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 k=i.value.length,B=i.value.findIndex(A=>A.name===s.current.value);g.moved=0,C.direction==="vertical"?(g.min=-1*(s.tabHeight.value*(k-1)+s.tabHeight.value/4),g.max=s.tabHeight.value/4,g.start=-B*s.tabHeight.value,g.itemDistance=s.tabHeight.value):(g.min=-1*(s.tabWidth.value*(k-1)+s.tabWidth.value/4),g.max=s.tabWidth.value/4,g.start=-B*s.tabWidth.value,g.itemDistance=s.tabWidth.value)},S=C=>{const k=m.value;if(!k)return;let B=g.start+C.delta;if(B>g.max?B=g.max:B<g.min&&(B=g.min),C.type==="move")Sr(k,B,"move",C.direction,300);else if(C.type==="end"){let A=Math.floor(Math.abs(B)*1/g.itemDistance);const V=Math.abs(B)%g.itemDistance;g.start>B?V>=g.itemDistance*g.triggerAutoMoveRatio&&(A+=1):V>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(A+=1),B=-1*A*g.itemDistance,Sr(k,B,"end",C.direction,300),g.moved=B;const $=i.value[A].name;s.current.value=$??"",c($??""),l("update:modelValue",$)}},f=()=>{},v=()=>{if(!d.value)return;const C=Fn(d.value);s.tabWidth.value=C.width,s.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=fd(y,S,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},k=t.h("view",C,[r?.default?.()]),B={class:u.value,ref:d};return t.h("view",B,[k])}}}}const{create:pd,componentName:hd,scope:gd}=J("tabs-container"),eo=pd(md(hd,gd,!1)),yd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function vd(e,n,a){return{props:{...yd},setup(o,{emit:l,slots:r}){const i=t.inject(Ls);t.onMounted(()=>{i.add(o.paneKey)}),t.onBeforeUnmount(()=>{i.remove(o.paneKey)});const s=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),c=t.computed(()=>o.loaded!=null?ye(o.loaded):i.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",S=t.h("view",g,[y]),f={class:`${e}__empty`},v=t.h("view",f,[b,S]);d.push(v)}const m={class:`${e}`,style:s.value};return t.h("view",m,d)}}}}const{create:bd,componentName:kd,scope:Sd}=J("tabs-pane"),to=bd(vd(kd,Sd,oe.Loading));class Cr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=an(n,null,this.config)}updateChildren(n,a){a?a.children=an(n,a,this.config):this.nodes=an(n,null,this.config)}getNodeByValue(n){let a;return Ps(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:Cd,scope:wd}=J("cascader-pane"),Nd=Cd({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:_n,TabsContainer:eo,TabsPane:to},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=se.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(),i=t.ref(!1),s=t.ref(e.modelValue),c=t.ref(new Cr([],{})),d=t.ref([]),m=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),u=t.computed(()=>i.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,i.value=!1,b=null;let{options:p}=e;o.value.convertConfig&&(p=Zu(p,o.value.convertConfig)),c.value=new Cr(p,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),m.value&&!c.value.nodes.length&&await S({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:c.value.nodes,selectedNode:null}],y(!m.value)},y=async(p=!0)=>{const N=s.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(k=>k.value===N[0]);if(C){w=[C.value],i.value=!0;const k=await N.slice(1).reduce(async(B,A)=>{const V=await B;await S(V);const $=V?.children?.find(K=>K.value===A);return $&&w.push(A),Promise.resolve($)},Promise.resolve(C));await S(k),i.value=!1}}w.length&&N===e.modelValue&&c.value.getPathNodesByValue(w).map((k,B)=>{l.value=B,v.handleNode(k,p)})},S=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(k=>{o.value.lazyLoad?.(p,k)}),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);s.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 k=d.value.map(B=>B.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,!N){const B=d.value.map(A=>A.selectedNode);n("pathChange",B)}return}b=p,!C&&(await S(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,s.value)||(s.value=p,y(!m.value))}),t.watch(()=>e.visible,p=>{p&&Array.isArray(s.value)&&s.value.length>0&&y(),p&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:i,tabsCursor:l,tabsContainerRef:r,...v}}}),Bd={class:"fox-cascader"},Ad={role:"menu",class:"fox-cascader__pane"},Vd=["aria-checked","aria-disabled","onClick"],Td={class:"fox-cascader__item__title"};function $d(e,n,a,o,l,r){const i=t.resolveComponent("TabsBar"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Bd,[t.createVNode(i,{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",Ad,[(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",Td,t.toDisplayString(b.text),1),b.loading?(t.openBlock(),t.createBlock(s,{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,Vd))),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 Ed=ne(Nd,[["render",$d]]),{create:xd}=J("cascader"),Dd=xd({components:{CascaderPane:Ed,Wrapper:Qu},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(i){n("update:visible",i)}}),l=(i,s)=>{a.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),Id=["innerHTML"];function qd(e,n,a,o,l,r){const i=t.resolveComponent("CascaderPane"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(s,{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,Id)):t.createCommentVNode("",!0)]),t.createVNode(i,{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 no=ne(Dd,[["render",qd]]);function St(e,n){const a=e.textKey??"text";return n[a]??""}function Ct(e,n){const a=e.valueKey??"value";return n[a]}function zs(e,n){const a=e.childrenKey??"children";return n[a]}function on(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=St(e,l),i=Ct(e,l);a.texts.push(r),a.values.push(i??"")}return a}function Os(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(St(e,n[i])===r){const c=Ct(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const m=zs(e,n[i]);Array.isArray(m)&&Os(e,m,a,o+1,l);return}}function Rs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(Ct(e,n[i])===r){const c=St(e,n[i])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const m=zs(e,n[i]);Array.isArray(m)&&Rs(e,m,a,o+1,l);return}}function Co(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=St(e,n[o]),r=St(e,a[o]);if(l!==r)return!1;const i=Ct(e,n[o]),s=Ct(e,a[o]);if(i!==s)return!1}return!0}let Md=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=et(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 Pd(){const e=t.getCurrentInstance();return new Md(e.proxy)}const wr={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 Ld(e,n,a,o,l,r,i=!1){return{props:{...pe,...ge,...wr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),m=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),b=h(s,["placeholder"]),g=t.ref(!1),y=Pd(),S=t.ref([]),f=t.ref([]),v=t.computed(()=>{if(Array.isArray(f.value)){if(s.showAllLevels===!1){const R=f.value.length-1;return f.value[R]}return f.value.join(s.separator)}else return f.value}),p=t.ref([]),N=t.ref([]);t.watch([()=>s.modelValue,()=>S.value],async([R,Z])=>{if(u("setValue",R),s.lazy===!0){N.value.length==0&&(p.value=Array.isArray(R)?R:[]);return}if(s.valueType==="item"){let Q=R;if(!Co(s,Q,N.value)){N.value=Q;let te=on(s,Q);f.value=te.texts,p.value=te.values}}else if(s.valueType==="text"){let Q=R,te=[];if(Os(s,Z,Q,0,te),!Co(s,te,N.value)){N.value=te;let O=on(s,te);Q.value=O.texts,p.value=O.values}}else{let Q=[];if(Rs(s,Z,R,0,Q),!Co(s,Q,N.value)){N.value=Q;let te=on(s,Q);f.value=te.texts,p.value=te.values}}}),s.lazy===!0&&(p.value=Array.isArray(s.modelValue)?s.modelValue:[]),t.watch([()=>s.source,()=>s.params],async([R,Z])=>{s.lazy||R&&(S.value=await y.load(R,Z))},{immediate:!0});const w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":m.value})),k=Ve(t.computed(()=>s.textAlign),"textAlign"),B=t.computed(()=>{const R={};return k.value&&(R["text-align"]=k.value),R}),A=t.ref(!1),V=()=>{d.value===!0||m.value===!0||(A.value=!0)},$=R=>{A.value=R},K=(R,Z)=>{let Q=Z.map(O=>{if(O==null)return O;let W={...O};return Reflect.deleteProperty(W,"text"),W[s.textKey]=O.text??"",Reflect.deleteProperty(W,"value"),W[s.valueKey]=O.value??"",W});N.value=Q;let te=on(s,Q);f.value=te.texts,p.value=te.values,s.valueType==="text"?(u("change",f.value,Q),u("update:modelValue",f.value)):s.valueType==="item"?(u("change",Q,Q),u("update:modelValue",Q)):(u("change",p.value,Q),u("update:modelValue",p.value)),u("update:pathNodes",Q)},q=R=>{let Z=R.map(Q=>{if(Q==null)return Q;let te={...Q};return Reflect.deleteProperty(te,"text"),te[s.textKey]=Q.text??"",Reflect.deleteProperty(te,"value"),te[s.valueKey]=Q.value??"",te});u("pathChange",Z)},E=R=>{g.value=!0,u("focus",p.value,R)},T=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(()=>ve(s.unit)>0),j=t.computed(()=>ve(s.unit)>0&&!g.value),H=t.computed(()=>({hidden:!j.value})),z=R=>{N.value=[],f.value=[],p.value=[],u("update:modelValue",[]),u("change",[],R),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>s.clearable&&!d.value&&!m.value),U=t.computed(()=>{let R=p.value&&p.value.length>0;return s.clearable&&R&&g.value}),I=R=>{U.value?z(R):V()},M=t.computed(()=>U.value&&_.value?o:l),D=t.computed(()=>({action:!0}));let Y=null;const L=()=>typeof Y=="function"?Y:typeof s.lazyLoad=="function"?s.lazyLoad:(Y=async(R,Z)=>{const Q=[],te=[];let O=0;if(!R.root){let X=R;for(;X;){const F=St(s,X),G=Ct(s,X);te.splice(0,0,F),Q.splice(0,0,G),X=X._parent}O=Q.length}const W=await y.load(s.source,{...R,level:O,pathLabels:te,pathValues:Q},!0);Z(W)},Y);return()=>{const R={class:C.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:V,onFocus:E,onBlur:T};i&&(R.disabled=!0);const Z=[],Q=t.h("input",R);Z.push(Q);const te=[],O={class:["action-icon"]},W=t.h(M.value,O),X={class:D.value,onClick:I},F=t.h("view",X,{default:()=>[W]});if(te.push(F),x.value){const ho=t.h("view",{class:H.value},[s.unit]);te.push(ho)}const G={class:P.value},ee=t.h("view",G,{default:()=>te});Z.push(ee);const le={default:()=>Z};le.label=c.slots.default,le.prepend=c.slots.prepend,le.append=c.slots.append,le.fixedPreTip=c.slots.fixedPreTip,le.fixedTip=c.slots.fixedTip;const re={};re.visible=A.value,re["onUpdate:visible"]=$,re.modelValue=p.value,re.onChange=K,re.onPathChange=q,re.title=s.title,re.valueKey=s.valueKey,re.textKey=s.textKey,re.childrenKey=s.childrenKey,re.convertConfig=s.convertConfig,s.lazy?(re.lazy=!0,re.lazyLoad=L()):re.options=S.value;const ie={};ie.header=c.slots.header;const Ce=t.h(r,re,ie);le.hide=()=>[Ce];const ut={...Je(s,wr)};return s.prop&&(ut.prop=`${s.prop}_item`),t.h(a,ut,le)}}}}const{componentName:zd,create:Od,scope:Rd}=J("cascader-item"),bl=Od(Ld(zd,Rd,we,oe.CircleClose,oe.ArrowRight,no,!1));function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rn={exports:{}},Fd=rn.exports,Nr;function Kd(){return Nr||(Nr=1,function(e,n){(function(a,o){e.exports=o()})(Fd,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",i="second",s="minute",c="hour",d="day",m="week",u="month",h="quarter",b="year",g="date",y="Invalid Date",S=/^(\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,T){var P=String(q);return!P||P.length>=E?q:""+Array(E+1-P.length).join(T)+q},N={s:p,z:function(q){var E=-q.utcOffset(),T=Math.abs(E),P=Math.floor(T/60),x=T%60;return(E<=0?"+":"-")+p(P,2,"0")+":"+p(x,2,"0")},m:function q(E,T){if(E.date()<T.date())return-q(T,E);var P=12*(T.year()-E.year())+(T.month()-E.month()),x=E.clone().add(P,u),j=T-x<0,H=E.clone().add(P+(j?-1:1),u);return+(-(P+(T-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:s,s:i,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=function(q){return q instanceof $},B=function q(E,T,P){var x;if(!E)return w;if(typeof E=="string"){var j=E.toLowerCase();C[j]&&(x=j),T&&(C[j]=T,x=j);var H=E.split("-");if(!x&&H.length>1)return q(H[0])}else{var z=E.name;C[z]=E,x=z}return!P&&x&&(w=x),x||!P&&w},A=function(q,E){if(k(q))return q.clone();var T=typeof E=="object"?E:{};return T.date=q,T.args=arguments,new $(T)},V=N;V.l=B,V.i=k,V.w=function(q,E){return A(q,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var $=function(){function q(T){this.$L=B(T.locale,null,!0),this.parse(T)}var E=q.prototype;return E.parse=function(T){this.$d=function(P){var x=P.date,j=P.utc;if(x===null)return new Date(NaN);if(V.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(S);if(H){var z=H[2]-1||0,_=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(x)}(T),this.$x=T.x||{},this.init()},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},E.$utils=function(){return V},E.isValid=function(){return this.$d.toString()!==y},E.isSame=function(T,P){var x=A(T);return this.startOf(P)<=x&&x<=this.endOf(P)},E.isAfter=function(T,P){return A(T)<this.startOf(P)},E.isBefore=function(T,P){return this.endOf(P)<A(T)},E.$g=function(T,P,x){return V.u(T)?this[P]:this.set(x,T)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(T,P){var x=this,j=!!V.u(P)||P,H=V.p(T),z=function(R,Z){var Q=V.w(x.$u?Date.UTC(x.$y,Z,R):new Date(x.$y,Z,R),x);return j?Q:Q.endOf(d)},_=function(R,Z){return V.w(x.toDate()[R].apply(x.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Z)),x)},U=this.$W,I=this.$M,M=this.$D,D="set"+(this.$u?"UTC":"");switch(H){case b:return j?z(1,0):z(31,11);case u:return j?z(1,I):z(0,I+1);case m:var Y=this.$locale().weekStart||0,L=(U<Y?U+7:U)-Y;return z(j?M-L:M+(6-L),I);case d:case g:return _(D+"Hours",0);case c:return _(D+"Minutes",1);case s:return _(D+"Seconds",2);case i:return _(D+"Milliseconds",3);default:return this.clone()}},E.endOf=function(T){return this.startOf(T,!1)},E.$set=function(T,P){var x,j=V.p(T),H="set"+(this.$u?"UTC":""),z=(x={},x[d]=H+"Date",x[g]=H+"Date",x[u]=H+"Month",x[b]=H+"FullYear",x[c]=H+"Hours",x[s]=H+"Minutes",x[i]=H+"Seconds",x[r]=H+"Milliseconds",x)[j],_=j===d?this.$D+(P-this.$W):P;if(j===u||j===b){var U=this.clone().set(g,1);U.$d[z](_),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else z&&this.$d[z](_);return this.init(),this},E.set=function(T,P){return this.clone().$set(T,P)},E.get=function(T){return this[V.p(T)]()},E.add=function(T,P){var x,j=this;T=Number(T);var H=V.p(P),z=function(I){var M=A(j);return V.w(M.date(M.date()+Math.round(I*T)),j)};if(H===u)return this.set(u,this.$M+T);if(H===b)return this.set(b,this.$y+T);if(H===d)return z(1);if(H===m)return z(7);var _=(x={},x[s]=o,x[c]=l,x[i]=a,x)[H]||1,U=this.$d.getTime()+T*_;return V.w(U,this)},E.subtract=function(T,P){return this.add(-1*T,P)},E.format=function(T){var P=this,x=this.$locale();if(!this.isValid())return x.invalidDate||y;var j=T||"YYYY-MM-DDTHH:mm:ssZ",H=V.z(this),z=this.$H,_=this.$m,U=this.$M,I=x.weekdays,M=x.months,D=function(Z,Q,te,O){return Z&&(Z[Q]||Z(P,j))||te[Q].slice(0,O)},Y=function(Z){return V.s(z%12||12,Z,"0")},L=x.meridiem||function(Z,Q,te){var O=Z<12?"AM":"PM";return te?O.toLowerCase():O},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:V.s(U+1,2,"0"),MMM:D(x.monthsShort,U,M,3),MMMM:D(M,U),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:D(x.weekdaysMin,this.$W,I,2),ddd:D(x.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(z),HH:V.s(z,2,"0"),h:Y(1),hh:Y(2),a:L(z,_,!0),A:L(z,_,!1),m:String(_),mm:V.s(_,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:H};return j.replace(f,function(Z,Q){return Q||R[Z]||H.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(T,P,x){var j,H=V.p(P),z=A(T),_=(z.utcOffset()-this.utcOffset())*o,U=this-z,I=V.m(this,z);return I=(j={},j[b]=I/12,j[u]=I,j[h]=I/3,j[m]=(U-_)/6048e5,j[d]=(U-_)/864e5,j[c]=U/l,j[s]=U/o,j[i]=U/a,j)[H]||U,x?I:V.a(I)},E.daysInMonth=function(){return this.endOf(u).$D},E.$locale=function(){return C[this.$L]},E.locale=function(T,P){if(!T)return this.$L;var x=this.clone(),j=B(T,P,!0);return j&&(x.$L=j),x},E.clone=function(){return V.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}(),K=$.prototype;return A.prototype=K,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",d],["$M",u],["$y",b],["$D",g]].forEach(function(q){K[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=k,A.unix=function(q){return A(1e3*q)},A.en=C[w],A.Ls=C,A.p={},A})}(rn)),rn.exports}var Ud=Kd();const Ke=We(Ud);var sn={exports:{}},Hd=sn.exports,Br;function jd(){return Br||(Br=1,function(e,n){(function(a,o){e.exports=o()})(Hd,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?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(S){this[y]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var f=S.match(/([+-]|\d\d)/g),v=60*f[1]+(+f[2]||0);return v===0?0:f[0]==="+"?-v:v}(y)}],u=function(y){var S=s[y];return S&&(S.indexOf?S:S.s.concat(S.f))},h=function(y,S){var f,v=s.meridiem;if(v){for(var p=1;p<=24;p+=1)if(y.indexOf(v(p,0,S))>-1){f=p>12;break}}else f=y===(S?"pm":"PM");return f},b={A:[i,function(y){this.afternoon=h(y,!1)}],a:[i,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:[i,function(y){var S=s.ordinal,f=y.match(/\d+/);if(this.day=f[0],S)for(var v=1;v<=31;v+=1)S(v).replace(/\[|\]/g,"")===y&&(this.day=v)}],M:[r,d("month")],MM:[l,d("month")],MMM:[i,function(y){var S=u("months"),f=(u("monthsShort")||S.map(function(v){return v.slice(0,3)})).indexOf(y)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[i,function(y){var S=u("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],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 S,f;S=y,f=s&&s.formats;for(var v=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,V,$){var K=$&&$.toUpperCase();return V||f[$]||a[$]||f[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,E,T){return E||T.slice(1)})})).match(o),p=v.length,N=0;N<p;N+=1){var w=v[N],C=b[w],k=C&&C[0],B=C&&C[1];v[N]=B?{regex:k,parser:B}:w.replace(/^\[|\]$/g,"")}return function(A){for(var V={},$=0,K=0;$<p;$+=1){var q=v[$];if(typeof q=="string")K+=q.length;else{var E=q.regex,T=q.parser,P=A.slice(K),x=E.exec(P)[0];T.call(V,x),A=A.replace(x,"")}}return function(j){var H=j.afternoon;if(H!==void 0){var z=j.hours;H?z<12&&(j.hours+=12):z===12&&(j.hours=0),delete j.afternoon}}(V),V}}return function(y,S,f){f.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var v=S.prototype,p=v.parse;v.parse=function(N){var w=N.date,C=N.utc,k=N.args;this.$u=C;var B=k[1];if(typeof B=="string"){var A=k[2]===!0,V=k[3]===!0,$=A||V,K=k[2];V&&(K=k[2]),s=this.$locale(),!A&&K&&(s=f.Ls[K]),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),z=H.year,_=H.month,U=H.day,I=H.hours,M=H.minutes,D=H.seconds,Y=H.milliseconds,L=H.zone,R=new Date,Z=U||(z||_?1:R.getDate()),Q=z||R.getFullYear(),te=0;z&&!_||(te=_>0?_-1:R.getMonth());var O=I||0,W=M||0,X=D||0,F=Y||0;return L?new Date(Date.UTC(Q,te,Z,O,W,X,F+60*L.offset*1e3)):j?new Date(Date.UTC(Q,te,Z,O,W,X,F)):new Date(Q,te,Z,O,W,X,F)}catch{return new Date("")}}(w,B,C),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),$&&w!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var q=B.length,E=1;E<=q;E+=1){k[1]=B[E-1];var T=f.apply(this,k);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}E===q&&(this.$d=new Date(""))}else p.call(this,N)}}})}(sn)),sn.exports}var Wd=jd();const Yd=We(Wd);var cn={exports:{}},Xd=cn.exports,Ar;function Qd(){return Ar||(Ar=1,function(e,n){(function(a,o){e.exports=o()})(Xd,function(){return function(a,o,l){var r=o.prototype,i=r.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],d=s%100;return"["+s+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(s){var c=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var m=this.$utils(),u=(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(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 i.bind(this)(u)}}})}(cn)),cn.exports}var Gd=Qd();const Zd=We(Gd);var un={exports:{}},Jd=un.exports,Vr;function _d(){return Vr||(Vr=1,function(e,n){(function(a,o){e.exports=o()})(Jd,function(){return function(a,o,l){var r=o.prototype,i=function(u){return u&&(u.indexOf?u:u.s)},s=function(u,h,b,g,y){var S=u.name?u:u.$locale(),f=i(S[h]),v=i(S[b]),p=f||v.map(function(w){return w.slice(0,g)});if(!y)return p;var N=S.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,S){return y||S.slice(1)})}(u.formats[h.toUpperCase()])},m=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):s(u,"months")},monthsShort:function(h){return h?h.format("MMM"):s(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(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 s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(u){return s(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return s(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return s(c(),"weekdaysMin","weekdays",2,u)}}})}(un)),un.exports}var ef=_d();const tf=We(ef);var dn={exports:{}},nf=dn.exports,Tr;function of(){return Tr||(Tr=1,function(e,n){(function(a,o){e.exports=o()})(nf,function(){var a="week",o="year";return function(l,r,i){var s=r.prototype;s.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=i(this).startOf(o).add(1,o).date(d),u=i(this).endOf(a);if(m.isBefore(u))return 1}var h=i(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),b=this.diff(h,a,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(dn)),dn.exports}var lf=of();const af=We(lf);var fn={exports:{}},rf=fn.exports,$r;function sf(){return $r||($r=1,function(e,n){(function(a,o){e.exports=o()})(rf,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),i=this.year();return r===1&&l===11?i+1:l===0&&r>=52?i-1:i}}})}(fn)),fn.exports}var cf=sf();const uf=We(cf);var mn={exports:{}},df=mn.exports,Er;function ff(){return Er||(Er=1,function(e,n){(function(a,o){e.exports=o()})(df,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})}(mn)),mn.exports}var mf=ff();const pf=We(mf);var pn={exports:{}},hf=pn.exports,xr;function gf(){return xr||(xr=1,function(e,n){(function(a,o){e.exports=o()})(hf,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})}(pn)),pn.exports}var yf=gf();const vf=We(yf);var hn={exports:{}},bf=hn.exports,Dr;function kf(){return Dr||(Dr=1,function(e,n){(function(a,o){e.exports=o()})(bf,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})}(hn)),hn.exports}var Sf=kf();const Cf=We(Sf);Ke.extend(tf);Ke.extend(Zd);Ke.extend(Yd);Ke.extend(af);Ke.extend(uf);Ke.extend(pf);Ke.extend(vf);Ke.extend(Cf);const ae={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(),i=l.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/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),i=Math.round((l.valueOf()-r.valueOf())/864e5);let s=l.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let i=l.getDay();if(o===0){const c=r-i*864e5,d=r+(6-i)*864e5,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,d=r+(7-i)*s,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]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i}},Ir=new Date().getFullYear(),kl={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"},En=(e,n,a)=>{let o;if(je(n)?o=n:typeof n=="string"&&ve(n)>0?o=ae.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},jo=(e,n,a)=>{je(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ae.format(new Date(o),a)},Wo={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(Ir-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(Ir+10,11,31),validator:je},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:Nf}=J("date-picker"),Bf=wf({components:{Picker:_t},props:{...Wo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Nf),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 i=(p,N)=>{const w=e[`${p}Date`],C=w.getFullYear();let k=1,B=1,A=0,V=0;p==="max"&&(k=12,B=r(N.getFullYear(),N.getMonth()+1),A=23,V=59);const $=V;return N.getFullYear()===C&&(k=w.getMonth()+1,N.getMonth()+1===k&&(B=w.getDate(),N.getDate()===B&&(A=w.getHours(),N.getHours()===A&&(V=w.getMinutes())))),{[`${p}Year`]:C,[`${p}Month`]:k,[`${p}Date`]:B,[`${p}Hour`]:A,[`${p}Minute`]:V,[`${p}Seconds`]:$}},s=t.computed(()=>{if(!h.value)return[];const{maxYear:p,maxDate:N,maxMonth:w,maxHour:C,maxMinute:k,maxSeconds:B}=i("max",h.value),{minYear:A,minDate:V,minMonth:$,minHour:K,minMinute:q,minSeconds:E}=i("min",h.value);let T=[{type:"year",range:[A,p]},{type:"month",range:[$,w]},{type:"day",range:[V,N]},{type:"hour",range:[K,C]},{type:"minute",range:[q,k]},{type:"seconds",range:[E,B]}];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,N,w,C,k)=>{const B=[];for(;p<=N;){let A=!0;if(typeof e.itemFilter=="function"){const V={text:`${p}`,value:p,type:w,currentYearMonth:C};A=e.itemFilter(V)}if(A)if(typeof e.itemFormatter=="function"){const V={text:`${p}`,value:p,type:w,currentYearMonth:C};e.itemFormatter(V),B.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${p}${o[w]}`;if(w==="day"){if(C[0]===k[0]&&C[1]===k[1]&&p===k[2])V=o.today;else{const K=new Date(C[0],C[1],p).getDay();V=`${V} ${o.fullWeekdays[K]}`}B.push({text:V,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 s.value.forEach(k=>{let B=c(k.range[0],k.range[1],k.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=En(e,e.modelValue,e.valueFormat):N=En(e,p,kl[e.type]):je(p)?N=p:N=new Date,!!N&&(!h.value||N.getTime()!==h.value.getTime())){h.value=N;let w=[];s.value.forEach(C=>{let k=m(C.type,N);w.push(k)}),u.value=w}},{immediate:!0});const b=p=>{if(!p||p.length===0){h.value=new Date;let N=[];s.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)),k=p[3],B=p[4];C!==p[2]&&(p[2]=C),h.value=new Date(N,w,C,k,B)}else if(e.type==="time"){const N=p[0],w=p[1],C=p[2],k=h.value??new Date,B=new Date(k.getFullYear(),k.getMonth(),k.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,k=Math.min(p[1],r(w,C+1));k!==p[1]&&(p[1]=k);const B=new Date(w,C,k);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)),k=p[3];C!==p[2]&&(p[2]=C),h.value=new Date(N,w,C,k)}else if(e.type==="hour-minute"){const N=p[0],w=p[1],C=h.value??new Date,k=new Date(C.getFullYear(),C.getMonth(),C.getDate(),N,w);h.value=k}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=jo(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 Af(e,n,a,o,l,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{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 oo=ne(Bf,[["render",Af]]),Vf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Tf(e){let n=e.format;if(!n){let a=e.type??"date";n=kl[a]}return n}function $f(e,n,a,o,l,r,i=!1){return{props:{...pe,...ge,...Wo,...Vf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),m=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),b=h(s,["placeholder"]),g=t.ref(!1),S=Pe(s,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:s.valueFormat?En(s,I,s.valueFormat)??I:En(s,I,kl[s.type])??I:je(I)?I:null,u),f=t.computed(()=>{if(!S.value)return"";const I=Tf(s);return jo(s,S.value,I)}),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),w=t.computed(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),C=t.ref(!1),k=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:k,hidePicker:B});const A=I=>{C.value=I},V=I=>{if(S.value=I,s.valueFormat){let M=jo(s,I,s.valueFormat);u("update:modelValue",M,{}),u("change",M,{})}else u("update:modelValue",I,{}),u("change",I,{})},$=I=>{let D=I.target.value;g.value=!0,u("focus",D,I)},K=I=>{setTimeout(()=>{g.value=!1},0);let D=I.target.value;s.maxLength&&D.length>Number(s.maxLength)&&(D=D.slice(0,Number(s.maxLength))),u("blur",D,I)},q=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),E=t.computed(()=>ve(s.unit)>0),T=t.computed(()=>ve(s.unit)>0&&!g.value),P=t.computed(()=>({hidden:!T.value})),x=I=>{S.value="",u("update:modelValue","",I),u("change","",I),u("clear",""),B()},j=t.computed(()=>s.clearable&&!d.value&&!m.value),H=t.computed(()=>{let I=ve(S.value)>0;return s.clearable&&I&&g.value}),z=I=>{H.value?x(I):k()},_=t.computed(()=>H.value&&j.value?o:l),U=t.computed(()=>({action:!0}));return()=>{const I={class:p.value,style:w.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:$,onBlur:K};i&&(I.disabled=!0);const M=[],D=t.h("input",I);M.push(D);const Y=[],L={class:["action-icon"]},R=t.h(_.value,L),Z={class:U.value,onClick:z},Q=t.h("view",Z,{default:()=>[R]});if(Y.push(Q),E.value){const ie=t.h("view",{class:P.value},[s.unit]);Y.push(ie)}const te={class:q.value},O=t.h("view",te,{default:()=>Y});M.push(O);const W={default:()=>M};W.label=c.slots.default,W.prepend=c.slots.prepend,W.append=c.slots.append,W.fixedPreTip=c.slots.fixedPreTip,W.fixedTip=c.slots.fixedTip;const X=be(s,Wo);X.valueFormat=null,X.disabled=!1,X.readonly=d.value||m.value,X.visible=C.value,X["onUpdate:visible"]=A,X.modelValue=S.value,X["onUpdate:modelValue"]=V,X.onClear=x;const F={};if(c.slots.top){const ie=c.slots.top();F.top=()=>ie}if(c.slots.bottom){const ie=c.slots.bottom();F.default=()=>ie}const G=t.h(r,X,F);W.hide=()=>[G];const le={...be(s,ge,pe)};return s.prop&&(le.prop=`${s.prop}_item`),t.h(a,le,W)}}}}const{create:Ef,componentName:xf,scope:Df}=J("date-item"),Sl=Ef($f(xf,Df,we,oe.CircleClose,oe.Date,oo,!1)),If=39,qf=64,{create:Mf,scope:Pf}=J("calendar-pane"),Lf=Mf({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=se.useFoxI18n(Pf),r=o(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(l("weekdays")),s=t.ref([...i.slice(e.firstDayOfWeek,7),...i.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"]),S=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=L=>L.split("-"),p=L=>ae.isEqual(f.currDate[0],L),N=L=>ae.isEqual(f.currDate[1],L),w=L=>f.currDate?.length>0?f.currDate?.some(R=>ae.isEqual(R,L)):!1,C=(L,R)=>R.curData[0]+"-"+R.curData[1]+"-"+ae.getNumTwoBit(+L.day),k=(L,R)=>{const Z=C(L,R),{type:Q}=e;return L.type=="curr"?ae.isEqual(f.currDate,Z)||(Q=="range"||Q=="week")&&(p(Z)||N(Z))||Q=="multiple"&&w(Z)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(Z,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,Z)?`${f.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],Z)&&ae.compareDate(Z,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},B=()=>{const{type:L}=e;if(L=="range"&&f.chooseData.length==2||L!="range"){let R=f.chooseData.slice(0);L=="week"&&(R={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},A=(L,R,Z=!1)=>{if(k(L,R)!=`${f.dayPrefix}--disabled`){const{type:Q}=e;let[te,O]=R.curData,W=[...R.curData];if(W[2]=ae.getNumTwoBit(Number(L.day)),W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=ae.getWhatDay(+W[0],+W[1],+W[2]),Q=="multiple")if(f.currDate?.length>0){let X;f.currDate?.forEach((F,G)=>{F==W[3]&&(X=G)}),Z?f.chooseData.push([...W]):X!==void 0?(f.currDate.splice(X,1),f.chooseData.splice(X,1)):(f.currDate.push(W[3]),f.chooseData.push([...W]))}else f.currDate=[W[3]],f.chooseData=[[...W]];else if(Q=="range"){let X=Object.values(f.currDate).length;X==2||X==0?f.currDate=[W[3]]:ae.compareDate(f.currDate[0],W[3])?Array.isArray(f.currDate)&&f.currDate.push(W[3]):Array.isArray(f.currDate)&&f.currDate.unshift(W[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...W]]:ae.compareDate(f.chooseData[0][3],W[3])?f.chooseData=[...f.chooseData,[...W]]:f.chooseData=[[...W],...f.chooseData]}else if(Q=="week"){let X=ae.getWeekDate(te,O,L.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(X[0],f.propStartDate)&&X.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,X[1])&&X.splice(1,1,f.propEndDate),f.currDate=X,f.chooseData=[ae.formatResultDate(X[0]),ae.formatResultDate(X[1])]}else f.currDate=W[3],f.chooseData=[...W];if(!Z){let X=f.chooseData;Q=="week"&&(X={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("select",X),(e.isAutoBackFill||!e.poppable)&&B()}}},V=L=>{let[R,Z,Q]=L;return{date:L,monthWeekNum:ae.getMonthWeek(R,Z,Q,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(R,Z,Q,e.firstDayOfWeek)}},$=L=>{const R=f.monthsData[f.monthsData.length-1];let Z=parseInt(R.curData[0]),Q=parseInt(R.curData[1].toString().replace(/^0/,""));switch(L){case"prev":Q==1&&(Z-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(Z+=1),Q=Q==12?1:++Q;break}return[Z+"",ae.getNumTwoBit(Q),ae.getMonthDays(String(Z),String(Q))+""]},K=(L,R,Z)=>{let{year:Q,month:te}=Z;return Array.from(Array(L),(O,W)=>({day:String(W+1),type:R,year:Q,month:te}))},q=(L,R,Z,Q)=>{L=L-e.firstDayOfWeek;let{year:te,month:O}=Z;return L>=7&&(L-=7),Array.from(Array(Q),(X,F)=>({day:String(F+1),type:R,year:te,month:O})).slice(Q-L)},E=(L,R)=>{const Z=ae.getMonthPreDay(+L[0],+L[1]);let Q=Number(L[1])-1,te=Number(L[0]);Q<=0&&(Q=12,te+=1);const O=ae.getMonthDays(String(L[0]),String(L[1])),W=ae.getMonthDays(te+"",Q+""),X={year:L[0],month:L[1]},F={curData:L,title:l("monthTitle",{year:X.year,month:X.month}),monthData:[...q(Z,"prev",{month:String(Q),year:String(te)},W),...K(O,"curr",X)],cssHeight:0,cssScrollHeight:0},G=F.monthData.length>35?6:5;F.cssHeight=If+qf*G;let ee=0;f.monthsData.length>0&&(ee=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),F.cssScrollHeight=ee,(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${L[0]}-${L[1]}-${L[2]}`))&&f.monthsData.push(F)},T=()=>{let L=e.startDate?e.startDate:ae.getDay(0),R=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=L,f.propEndDate=R,f.startData=v(L),f.endData=v(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Z={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-Z.month;Q.year-Z.year>0&&(te=te+12*(Q.year-Z.year)),te<=0&&(te=1),E(f.startData);let O=1;do E($("next"));while(O++<te);if(f.monthsNum=te,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(L&&ae.compareDate(f.currDate[0],L)&&f.currDate.splice(0,1,L),R&&ae.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 W=[],X={};f.currDate.forEach(F=>{L&&!ae.compareDate(F,L)&&R&&!ae.compareDate(R,F)&&(Object.hasOwnProperty.call(X,F)||(W.push(F),X[F]=F))}),f.currDate=[...W],f.defaultData=[...v(W[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[W,X,F]=v(f.currDate[0]),G=ae.getWeekDate(W,X,F,e.firstDayOfWeek);f.currDate=G,L&&ae.compareDate(f.currDate[0],L)&&f.currDate.splice(0,1,L),R&&ae.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...v(f.currDate[0]),...v(f.currDate[1])]}}else f.currDate&&(L&&ae.compareDate(f.currDate,L)?f.currDate=L:R&&!ae.compareDate(f.currDate,R)&&(f.currDate=R),f.defaultData=[...v(f.currDate)])};Ee({scrollToDate:L=>{ae.compareDate(L,f.propStartDate)?L=f.propStartDate:ae.compareDate(L,f.propEndDate)||(L=f.propEndDate);let R=v(L);f.monthsData.forEach((Z,Q)=>{if(Z.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let te=f.monthsData[Q].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let O=0,W=setInterval(()=>{if(O++,c.value){let X=te/10;c.value.scrollTop=c.value.scrollTop+X}O>=10&&(clearInterval(W),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 L=0,R=0;f.defaultData.length>0&&f.monthsData.forEach((te,O)=>{te.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(L=O),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(R=O)}),H(f.monthsNum,L),f.currentIndex=L,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 O=v(te),W=f.currentIndex;f.monthsData.forEach((X,F)=>{X.title==l("monthTitle",{year:O[0],month:O[1]})&&(W=F)}),A({day:O[2],type:"curr"},f.monthsData[W],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Z=f.monthsData[f.monthsData.length-1],Q=Z.cssHeight+Z.cssScrollHeight;Ye(()=>{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 H=(L,R)=>{L>=3?R>0&&R<L?f.defaultRange=[R-1,R+3]:R==0?f.defaultRange=[R,R+4]:R==L&&(f.defaultRange=[R-2,R+2]):f.defaultRange=[0,L+2];let Z=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=Z},z=(L,R)=>(e.type=="range"||e.type=="week")&&L.type=="curr"&&k(L,R)=="fox-calendar__day--active",_=(L,R)=>z(L,R)&&p(C(L,R)),U=(L,R)=>f.currDate.length>=2&&N(C(L,R))?z(L,R):!1,I=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},M=L=>{const R=`${L.year}-${L.month}-${Number(L.day)<10?"0"+L.day:L.day}`;return ae.isEqual(R,ae.date2Str(new Date))},D=L=>{if(f.monthsData.length<=1)return;const R=L.target.scrollTop;let Z=Math.floor(R/f.avgHeight);if(Z==0)R>=f.monthsData[Z+1].cssScrollHeight&&(Z+=1);else if(Z>0&&Z<f.monthsNum-1)R>=f.monthsData[Z+1].cssScrollHeight&&(Z+=1),R<f.monthsData[Z].cssScrollHeight&&(Z-=1);else{const Q=Math.round(R+h.value);Q<f.monthsData[Z].cssScrollHeight+f.monthsData[Z].cssHeight&&R>f.monthsData[Z-1].cssScrollHeight&&(Z-=1),Z+1<=f.monthsNum&&Q>=f.monthsData[Z+1].cssScrollHeight+f.monthsData[Z+1].cssHeight&&(Z+=1),Z>=1&&R<f.monthsData[Z-1].cssScrollHeight&&(Z-=1)}f.currentIndex!==Z&&(f.currentIndex=Z,H(f.monthsNum,Z)),f.yearMonthTitle=f.monthsData[Z].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,L=>{L&&e.poppable&&Y()}),{weeks:s,compConthsData:b,showTopBtn:g,topInfo:y,bottomInfo:S,rangeTip:I,mothsViewScroll:D,getClass:k,isStartTip:_,isEndTip:U,chooseDay:A,isCurrDay:M,confirm:B,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:u}}}),zf={class:"fox-calendar__header"},Of={key:0,class:"fox-calendar__header-title"},Rf={key:1,class:"fox-calendar__header-slot"},Ff={key:2,class:"fox-calendar__header-subtitle"},Kf={class:"fox-calendar__weekdays",ref:"weeksPanel"},Uf={class:"fox-calendar__panel",ref:"monthsPanel"},Hf={class:"fox-calendar__month-title"},jf={class:"fox-calendar__days"},Wf=["onClick"],Yf={class:"fox-calendar__day-value"},Xf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Qf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Gf={key:2,class:"fox-calendar__day-tips--curr"},Zf={key:4,class:"fox-calendar__day-tip"},Jf={key:0,class:"fox-calendar__footer"};function _f(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",zf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Of,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Rf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ff,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Kf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Uf,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",Hf,t.toDisplayString(i.title),1),t.createElementVNode("view",jf,[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(i.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),onClick:m=>e.chooseDay(c,i)},[t.createElementVNode("view",Yf,[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",Xf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Qf,[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",Gf,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(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,i)?(t.openBlock(),t.createElementBlock("view",Zf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Wf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Jf,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const em=ne(Lf,[["render",_f]]),tm=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=Je({...e},{poppable:!1});return t.h(fe,a,n)}else return n?.default?.()??null}}}),nm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),gn={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:om}=J("calendar"),lm=om({components:{Wrapper:tm,CalendarPane:em},props:{...gn},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),i=t.computed(()=>a["bottom-info"]),s=t.ref(null),c=y=>{s.value?.scrollToDate(y)},d=()=>{s.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.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:s,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:i}}});function am(e,n,a,o,l,r){const i=t.resolveComponent("CalendarPane"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(s,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(i,{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 lo=ne(lm,[["render",am]]),qr={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}},wo=(e,n)=>{let a;return je(e)?a=e:typeof e=="string"&&ve(e)>0?a=ae.parser(e,n):a=new Date,a},ft=(e,n,a)=>(je(n)||(n=new Date),ae.format(n,a)),mt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function rm(e,n,a,o,{CloseIcon:l,MarkIcon:r},i=!1){return{props:{...pe,...ge,...gn,...qr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),m=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),b=h(s,["placeholder"]),g=t.ref(!1),y=t.computed(()=>s.type==="range"),S=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},v=(D,Y="one",L="YYYY-MM-DD")=>{if(nm(D)){f();return}if(y.value&&Array.isArray(D)&&D.length==2){let R,Z;typeof D[0]=="string"?(R=wo(D[0],L),Z=wo(D[1],L)):(R=D[0],Z=D[1]);let Q=mt(R),te=mt(Z);(S.startDate===null||S.startDate.getTime()!==R.getTime()||S.endDate?.getTime()!==Z.getTime())&&(S.startDate=R,S.startArray=Q,S.endDate=Z,S.endArray=te)}else{let R;typeof D=="string"?R=wo(D,L):R=D;let Z=mt(R);(S.startDate===null||S.startDate.getTime()!==R.getTime())&&(S.startDate=R,S.startArray=Z)}};v(s.modelValue,s.type,s.valueFormat),t.watch(()=>s.modelValue,D=>{v(D,s.type,s.valueFormat),u("setValue",D)});const p=t.computed(()=>{if(S.startDate===null)return"";if(y.value){let D=ft(s,S.startDate,s.format),Y=ft(s,S.endDate,s.format);return`${D} ${s.rangeSeparator} ${Y}`}else{let D=ft(s,S.startDate,s.format);return s.showWeek&&(D=`${D} ${S.startArray[4]}`),D}}),N=t.computed(()=>{if(S.startDate===null)return null;if(y.value){let D=ae.date2Str(S.startDate),Y=ae.date2Str(S.endDate??new Date);return[D,Y]}else return ae.date2Str(S.startDate)}),w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":m.value})),k=Ve(t.computed(()=>s.textAlign),"textAlign"),B=t.computed(()=>{const D={};return k.value&&(D["text-align"]=k.value),D}),A=t.ref(!1),V=()=>{m.value||d.value||(A.value=!0)},$=D=>{A.value=D},K=D=>{if(D){if(y.value&&Array.isArray(D)){let Y=D[0],L=me(Y[0]),R=me(Y[1]),Z=me(Y[2]),Q=new Date(L,R-1,Z),te=D[1];L=me(te[0]),R=me(te[1]),Z=me(te[2]);let O=new Date(L,R-1,Z);if(S.startDate=Q,S.startArray=mt(Q),S.endDate=O,S.endArray=mt(O),s.valueFormat){let W=ft(s,Q,s.valueFormat),X=ft(s,O,s.valueFormat);u("update:modelValue",[W,X],{})}else u("update:modelValue",[Q,O],{})}else{let Y=D,L=me(Y[0]),R=me(Y[1]),Z=me(Y[2]),Q=new Date(L,R-1,Z);if(S.startDate=Q,S.startArray=mt(Q),s.valueFormat){let te=ft(s,Q,s.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",Q,{})}u("change",D,{})}},q=D=>{let L=D.target.value;g.value=!0,u("focus",L,D)},E=D=>{setTimeout(()=>{g.value=!1},0);let L=D.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),u("blur",L,D)},T=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),P=t.computed(()=>ve(s.unit)>0),x=t.computed(()=>ve(s.unit)>0&&!g.value),j=t.computed(()=>({hidden:!x.value})),H=D=>{f(),u("update:modelValue",null,D),u("change","",D),u("clear","")},z=t.computed(()=>s.clearable&&!d.value&&!m.value),_=t.computed(()=>{let D=ve(p.value)>0;return s.clearable&&D&&g.value}),U=D=>{_.value?H(D):V()},I=t.computed(()=>_.value&&z.value?l:r),M=t.computed(()=>({action:!0}));return()=>{const D={class:C.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:V,onFocus:q,onBlur:E};i&&(D.disabled=!0);const Y=[],L=t.h("input",D);Y.push(L);const R=[],Z={class:["action-icon"]},Q=t.h(I.value,Z),te={class:M.value,onClick:U},O=t.h("view",te,{default:()=>[Q]});if(R.push(O),P.value){const Ne=t.h("view",{class:j.value},[s.unit]);R.push(Ne)}const W={class:T.value},X=t.h("view",W,{default:()=>R});Y.push(X);const F={default:()=>Y};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const G=be(s,gn);G.visible=A.value,G["onUpdate:visible"]=$,G["default-value"]=N.value,G.onChoose=K;const ee={};if(c.slots.btn){const Ne=c.slots.btn();ee.btn=()=>Ne}c.slots.day&&(ee.day=c.slots.day),c.slots.topInfo&&(ee.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ee.bottomInfo=c.slots.bottomInfo);const le=t.h(a,G,ee);F.hide=()=>[le];const ie={...Je(s,gn,qr)};return s.prop&&(ie.prop=`${s.prop}_item`),t.h(o,ie,F)}}}}const{componentName:sm,create:im,scope:cm}=J("calendar-item"),Cl=im(rm(sm,cm,lo,we,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),um={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 dm(e,{CheckNormal:n,Checked:a}){return{props:{...um},setup(o,{emit:l,slots:r}){const i=t.inject("parent",null),s=Kn(),c=t.computed(()=>i.label.value===o.label),d=t.computed(()=>i.position),m=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const S=de(o.iconSize),f=o.checkedIcon??s.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:S,height:S,class:y})}}else{if(r.icon)return r.icon();{const S=de(o.iconSize),f=o.icon??s.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:S,height:S,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||i.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:fm,create:mm}=J("radio"),ao=mm(dm(fm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:Mr,create:pm}=J("radio-group"),ro=pm({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}=Vt(),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:`${Mr} ${Mr}--${e.direction}`,style:l},n.default?.())}}});function Pr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(yn(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(zt(e,r)===a)return l}return-1}function yn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function zt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function hm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function gm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let ym=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=et(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 vm(){const e=t.getCurrentInstance();return new ym(e.proxy)}function bm(e){return{text:e,value:e}}const Lr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},km={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Sm={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 Cm(e,n,a,o,l){return{props:{...pe,...ge,...Lr,...km,...Sm},emits:["change","update:modelValue","setValue"],setup(r,i){const s=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 s.value},get disabled(){return c.value}},r.prop??i.attrs.name),u=vm(),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=>bm(k));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=Pr(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 zt(r,f)}),y=f=>{let v=null,p=null;if(h.value.length>0){let N=Pr(r,h.value,f,"value");b.value=N,N>=0&&(p=h.value[N],r.valueType==="text"?v=yn(r,p):r.valueType==="item"?v=p:v=zt(r,p))}else v=f;m("update:modelValue",v),m("change",v,p)},S=()=>{let f=null,v=null;if(h.value.length>0&&b.value!==-1){let p=h.value[b.value];r.valueType==="text"?f=yn(r,p):r.valueType==="item"?f=p:f=zt(r,p)}m("update:modelValue",f),m("change",f,v)};if(Ee({clear(){b.value!==-1&&(b.value=-1,S())}}),r.source){const f=()=>{const v=[],p=be(r,Lr);return h.value.forEach((N,w)=>{const C=zt(r,N),k=hm(r,N);let B={...p,label:C,disabled:k};const A=gm(r,N,w);B={...B,...A},c.value&&(B.disabled=!0),s.value&&(B.readonly=!0);const V={};if(i.slots.icon&&(V.icon=i.slots.icon),i.slots.checkedIcon&&(V.checkedIcon=i.slots.checkedIcon),typeof i.slots.text=="function"){const K=i.slots.text(N);V.default=()=>[K]}else{const K=yn(r,N);V.default=()=>K}let $=t.h(l,B,V);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=i.slots.default,w.prepend=i.slots.prepend,w.append=i.slots.append,w.fixedPreTip=i.slots.fixedPreTip,w.fixedTip=i.slots.fixedTip;const k={...be(r,ge,pe)};return r.prop&&(k.prop=`${r.prop}_item`),t.h(a,k,w)}}else return()=>{const f=i.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:Nm,scope:Bm}=J("radio-item"),wl=Nm(Cm(wm,Bm,we,ro,ao)),Am=(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:i}=Vt(),s=Kn(),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",i("update:modelValue",p),i("change",p,N)};t.watch(()=>l.modelValue,p=>{b=="click"?b="":i("change",p)});const y=()=>{const p=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const N=de(l.iconSize),w=l.indeterminateIcon??s.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??s.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??s.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})}}},S=()=>{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,k=N.indexOf(C);k>-1?N.splice(k,1):k<=-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(),S()]])}}),{componentName:Vm,create:Tm}=J("checkbox"),so=Tm(Am(Vm,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:$m,componentName:zr}=J("checkbox-group"),io=$m({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}=Vt(),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))},i=d=>{a("update:modelValue",d),a("change",d)},s=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:i,link:l,unlink:r}),t.watch(()=>e.modelValue,d=>{a("change",d)}),Ee({toggleAll:s,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${zr} ${zr}--${e.direction}`,style:d},n.default?.())}}});function Or(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Yo(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(vn(e,r)===a)return l}return-1}function Yo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function vn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Em(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function xm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Dm=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=et(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 Im(){const e=t.getCurrentInstance();return new Dm(e.proxy)}function qm(e){return{text:e,value:e}}const Mm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Rr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Pm={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 Lm(e,n,a,o,l){return{props:{...pe,...ge,...Mm,...Rr,...Pm},emits:["change","update:modelValue","setValue"],setup(r,i){const s=$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 s.value}},r.prop??i.attrs.name),u=Im(),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=>qm(k));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=Or(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(vn(r,p))}),f}),y=f=>{let v=[],p=[];if(h.value.length>0){const N=[];Array.isArray(f)&&f.forEach(w=>{let C=Or(r,h.value,w,"value");C!==-1&&N.push(C);const k=h.value[C];p.push(k),r.valueType==="text"?v.push(Yo(r,k)):r.valueType==="item"?v.push(k):v.push(vn(r,k))}),b.value=N}else v=f;m("update:modelValue",v),m("change",v,p)},S=t.ref();if(Ee({toggleAll:f=>{S.value.toggleAll(f)},toggleReverse:()=>{S.value.toggleReverse()}}),r.source){const f=()=>{const v=[],p=be(r,Rr);return h.value.forEach((N,w)=>{const C=vn(r,N),k=Em(r,N);let B={...p,label:C,disabled:k};const A=xm(r,N,w);B={...B,...A},s.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const V={};if(i.slots.icon&&(V.icon=i.slots.icon),i.slots.checkedIcon&&(V.checkedIcon=i.slots.checkedIcon),i.slots.indeterminateIcon&&(V.indeterminateIcon=i.slots.indeterminateIcon),typeof i.slots.text=="function"){const K=i.slots.text(N);V.default=()=>[K]}else{const K=Yo(r,N);V.default=()=>K}let $=t.h(l,B,V);v.push($)}),v};return()=>{const v=f(),p={class:`${e}`,ref:S,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=i.slots.default,w.prepend=i.slots.prepend,w.append=i.slots.append,w.fixedPreTip=i.slots.fixedPreTip,w.fixedTip=i.slots.fixedTip;const k={...be(r,ge,pe)};return r.prop&&(k.prop=`${r.prop}_item`),t.h(a,k,w)}}else return()=>{const f=i.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:zm,create:Om,scope:Rm}=J("checkbox-item"),Nl=Om(Lm(zm,Rm,we,io,so)),Xo={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:Fm,create:Km}=J("switch"),Um=Km({components:{Loading1:oe.Loading1},props:{...Xo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const s=Fm;return{[s]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${s}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const i=s=>{if(e.disabled||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,s)};return t.watch(()=>e.modelValue,s=>{r=="click"?r="":n("change",s)}),{classes:o,style:l,isActive:a,onClick:i}}}),Hm={class:"fox-switch-button"};function jm(e,n,a,o,l,r){const i=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Hm,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(i,{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 co=ne(Um,[["render",jm]]);function Wm(e,n,a,o){return{props:{...pe,...ge,...Xo},emits:["change","update:modelValue","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.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={...be(l,Xo),disabled:i.value||s.value,value:m.value,"onUpdate:modelValue":u},g=[],y=t.h(o,b);g.push(y);const S={default:()=>g};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const v={...be(l,ge,pe)};return l.prop&&(v.prop=`${l.prop}_item`),v["content-class"]=d,t.h(a,v,S)}}}}const{componentName:Ym,create:Xm,scope:Qm}=J("switch-item"),Bl=Xm(Wm(Ym,Qm,we,co));function Gm(e,n,a,o){return{props:{...pe,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=se.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,K=>{u.value=K,c("change",K)});const h=t.computed(()=>({[`${e}`]:!0})),b=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ue(u.value),"is-disabled":i.value,"is-readonly":s.value})),g=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const K={};return g.value&&(K["text-align"]=g.value),K}),S=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 K={};return g.value&&(K["text-align"]=g.value),K}),w=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},k=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),B=t.computed(()=>ve(l.unit)>0),A=K=>{i.value==!0||s.value==!0||c("click")},V=t.computed(()=>l.icon??a),$=t.computed(()=>({action:!0}));return()=>{const K=[];if(typeof r.slots.content=="function"){const M=r.slots.content();K.push(M)}else{const M=[];if(S.value){const L={tabIndex:0,class:b.value,style:y.value,onFocus:w,onBlur:C};let R=null;r.slots.main?R=t.h("view",L,[r.slots.main(f.value)]):R=t.h("view",L,[f.value]),M.push(R)}if(v.value){const L={tabIndex:0,class:p.value,style:N.value,onFocus:w,onBlur:C};let R=null;r.slots.sub?R=t.h("view",L,[r.slots.sub(l.desc)]):R=t.h("view",L,[l.desc]),M.push(R)}const D={class:h.value,onClick:A},Y=t.h("view",D,M);K.push(Y)}const q=[],E=de(l.iconSize);let T=r.slots.icon;if(!T){const M={width:E,height:E,class:["action-icon"]};T=t.h(V.value,M)}const P={class:$.value,onClick:A},x=t.h("view",P,{default:()=>[T]});if(q.push(x),B.value){const M=t.h("view",{},[l.unit]);q.push(M)}const j={class:k.value},H=t.h("view",j,{default:()=>q});K.push(H);const z={default:()=>K};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 U={...be(l,ge,pe)};return l.prop&&(U.prop=`${l.prop}_item`),t.h(o,U,z)}}}}const{componentName:Zm,create:Jm,scope:_m}=J("link-item"),Al=Jm(Gm(Zm,_m,oe.ArrowRight,we)),Qo={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:ep,componentName:tp}=J("rate"),np=ep({props:{...Qo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[tp]:!0})),r=b=>{n("update:modelValue",b),n("change",b)},i=(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)},s=(b,g,y)=>{let S=0;for(let f=g.value.length-1;f>=0;f--){const v=g.value[f];if(b>v.offsetLeft){y?S=f+(b>v.offsetLeft+v.clientWidth/2?1:.5):S=f+1;break}}return S},c=tt(),d={onTouchStart(b){!e.touchable||e.readonly||c.start(b)},onTouchMove(b){e.touchable&&(c.move(b),c.isHorizontal()&&o.value&&(b.preventDefault(),r(s(c.moveX.value,o,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...d,onClick:i,toPxDesc:he,renderIcon:(b,g)=>t.h(b,g),rateRefs:o,refRandomId:m,slots:a,customIcon:u}}}),op=["id"],lp={class:"fox-rate-item__icon--full"},ap={key:0,class:"fox-rate-item__icon--half"},rp={key:1,class:"fox-rate-item__icon--half"};function sp(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:t.normalizeStyle(i<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",lp,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:s=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?(t.openBlock(),t.createElementBlock("view",ap,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:s=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?(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:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:s=>e.onClick(2,i)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,op))),128))],34)}const wt=ne(np,[["render",sp]]);function ip(e,n,a,o){return{props:{...pe,...ge,...Qo},emits:["change","update:modelValue","setValue"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.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={...be(l,Qo),disabled:i.value,readonly:s.value,value:m.value,"onUpdate:modelValue":u},g=[],y=t.h(o,b);g.push(y);const S={default:()=>g};if(r.slots.default){const p=r.slots.default();S.label=()=>p}const f=be(l,ge,pe);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=d,t.h(a,f,S)}}}}const{componentName:cp,create:up,scope:dp}=J("rate-item"),Vl=up(ip(cp,dp,we,wt)),fp=/scroll|auto|overlay/i,Fs=window;function mp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Go(e,n=Fs){let a=e;for(;a&&a!==n&&mp(a);){const{overflowY:o}=window.getComputedStyle(a);if(fp.test(o))return a;a=a.parentNode}return n}function Ks(e,n=Fs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Go(e.value,n))}),a}const Us=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,pp={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 hp(e,n,a){return{props:{...pp},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=se.useFoxI18n(n),s=i(o,["pullText","loadText","loadMoreText"]),c=t.ref(),d=Ks(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=Us();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?N="up":N="down",m.beforeScrollTop=p,l("scroll-change",p),v<=o.threshold&&N=="down"},g=()=>{Ye(()=>{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)},S=()=>{d.value&&d.value.removeEventListener("scroll",g,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&g()}),t.onUnmounted(()=>{S()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,S()}),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 K={class:"fox-infinite__bottom-box__text"},q=t.h("view",K,[s.loadText.value]);B=[$,q]}const A={class:"fox-infinite__bottom-box"},V=t.h("view",A,B);N.push(V)}else if(!o.hasMore){let B=r?.finished?.()??null;if(!B){const A={class:"fox-infinite__bottom-tips"};B=t.h("view",A,[s.loadMoreText.value]),N.push(B)}}const w={class:"fox-infinite__bottom"},C=t.h("view",w,N),k={class:u.value,ref:c};return t.h("view",k,[p,C])}}}}const{componentName:gp,create:yp,scope:vp}=J("infinite-loading"),uo=yp(hp(gp,vp,oe.Loading)),{componentName:bp,create:kp}=J("button"),Sp=kp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:i,loading:s,color:c,plain:d,block:m}=t.toRefs(e),u=g=>{!s.value&&!i.value&&n("click",g)},h=t.computed(()=>{const g=bp;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`]:i.value,[`${g}--loading`]:s.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}}}),Cp={class:"fox-button__wrap"};function wp(e,n,a,o,l,r){const i=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",Cp,[e.loading?(t.openBlock(),t.createBlock(i,{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=ne(Sp,[["render",wp]]),Np={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"}},Bp=(e,n,a)=>({props:{...Np},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}=Vt(),{toLocaleRefs:i}=se.useFoxI18n(n),s=i(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","")},S=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const A={};return S.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)},N=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 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 V={class:`${e}__input-inner-input`,ref:k,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:s.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:N,onInput:u,onFocus:b,onBlur:g,onkeyup:p},$=t.h("input",V),K={class:[`${e}__input-inner`],action:"#",onSubmit:v},q=t.h("form",K,[$]);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 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 K={class:`${e}__search-label`},q=t.h("span",K,[o.label]);A.push(q)}if(l.leftout){const K={class:[`${e}__search-icon`,`${e}__left-search-icon`]},q=t.h("view",K,[l.leftout()]);A.push(q)}const V=B();if(A.push(V),l.rightout){const K={class:[`${e}__search-icon`,`${e}__right-search-icon`]},q=t.h("view",K,[l.rightout()]);A.push(q)}const $={class:`${e}`,style:d.value};return t.h("view",$,A)}}}),{componentName:Ap,create:Vp,scope:Tp}=J("searchbar"),fo=Vp(Bp(Ap,Tp,oe.CircleClose)),bn={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 $p(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(Hs(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 Fr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Hs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ep(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function xp(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Dp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,i,s){if(Array.isArray(a)){let d=a;typeof s=="function"&&(d=d.filter(s));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,i]);const c=et(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 Ip(){const e=t.getCurrentInstance();return new Dp(e.proxy)}function qp(e,n,a,o,l,r,i,s,c,d,m){return{props:{...bn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:b}=Vt(),{toLocaleRefs:g}=se.useFoxI18n(n),y=g(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),S=Ip(),f=t.ref([]),v=t.ref(0),p=t.ref(""),N=t.shallowRef(null),w=t.computed(()=>{const O={};return u.params&&Object.assign(O,u.params),ue(p.value)||(O[`${u.searchKey}`]=p.value),N.value&&Object.assign(O,N.value),O});let C=!0;const k=async(O,W,X)=>{try{if(A.value===!1)return;let F=null;ue(p.value)||(F=ee=>{const le=kn(u,ee);if(typeof le=="string"&&le.includes(p.value))return!0;const re=Fr(u,ee);return!!(typeof re=="string"&&re.includes(p.value))});const G=await S.load("actionsheet",O,W,X,w.value,C,F??void 0);C=!1,Array.isArray(G)?(f.value=G,v.value=1,A.value=!1):!Array.isArray(G.page)||G.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,f.value,G.page),v.value=Math.ceil(f.value.length/u.pageSize),(G.totalSize&&f.value.length>=G.totalSize||X<G.page.length)&&(A.value=!1)),B.value=!1}catch(F){console.error("[FoxUI] ActionSheet load more data fail",F),A.value=!0,v.value=0,f.value=[]}setTimeout(()=>{b("loaded-data")},250)},B=t.ref(!1),A=t.ref(!0),V=async()=>{if(!u.source){B.value=!1;return}await k(u.source,v.value+1,u.pageSize)};let $=null;t.watch(p,(O,W)=>{$&&(clearTimeout($),$=null),ue(O)&&!ue(W)&&($=setTimeout(()=>{q()},u.searchDelayTriggerClear))});const K=()=>{A.value=!0,v.value=0,f.value=[],u.source&&V()},q=()=>{K()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([O,W,X])=>{u.source&&K()},{immediate:!0});const E=t.computed(()=>!u.multiple&&u.isAutoBackFill),T=t.ref([]);let P=null;const x=t.ref(u.visible);t.watch(()=>u.visible,O=>{x.value!==O&&(x.value=O),O?P=[...T.value]:P=null});const j=(O,W)=>{const X=[];return Array.isArray(O)||(O=[O]),O.forEach(F=>{let G=$p(u,W,F,u.valueType);G!==-1&&X.push(G)}),Ie(X,T.value)?!1:(T.value=X,!0)};t.watch([()=>u.modelValue,()=>f.value],([O,W],[X,F])=>{if(j(O,W)){const ee=H();z(ee)}},{deep:!0});const H=()=>{const O=[],W=[],X=[];for(let le of T.value){const re=f.value[le];W.push(re);const ie=kn(u,re);if(X.push(ie),u.valueType==="item")O.push(re);else if(u.valueType==="text")O.push(ie);else{const Ce=Hs(u,re);O.push(Ce)}}let F=null,G=null,ee=null;return u.multiple?(F=O,G=X,ee=W):(F=O[0]??null,G=X[0]??null,ee=W[0]??null),{value:F,text:G,item:ee}},z=O=>{b("update:modelValue",O.value),b("update:text",O.text),b("change",O.value,O.item,O.text)},_=()=>{P&&(T.value=P)},U=O=>{const W=T.value.indexOf(O);u.multiple?W===-1?T.value.push(O):T.value.splice(W,1):W===-1?T.value=[O]:T.value=[],(E.value||!u.poppable&&!u.showFooter)&&D()},I=O=>{x.value=O,b("update:visible",O)},M=()=>{const O=()=>{_(),I(!1)},W=u.beforeMethod??u.beforeClose;if(typeof W=="function"){const X=W("close");bt(X)?X.then(F=>{F!==!1&&O()}).catch(()=>{O()}):X!==!1&&O()}else O()},D=()=>{const O=H(),W=()=>{z(O),I(!1)},X=u.beforeMethod??u.beforeClose;if(typeof X=="function"){const F=X("confirm",O.value,O.item,O.text);bt(F)?F.then(G=>{G!==!1&&W()}).catch(()=>{W()}):F!==!1&&W()}else W()},Y=()=>{let O=y.title.value??"";h.title&&(O=h.title());const W=t.h("view",{class:["fox-actionsheet__header-title"]},[O]),X=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:M});return t.h("view",{class:["fox-actionsheet__header"]},[W,X])},L=()=>{let O=null;if(h.search)O=h.search();else{const W={onSearch:K,placeholder:y.seachPlaceholder.value,disabled:u.disabled,modelValue:p.value,"onUpdate:modelValue":X=>{p.value=X}};O=t.h(r,W,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[O])},R=(O,W,X,F,G)=>{if(h.optionLabel)return h.optionLabel({text:O,checked:W,disabled:X,subText:F,item:G});const ee=[],le=t.h("view",{class:"fox-actionsheet__list-item-text"},[O]);if(ee.push(le),F){const re=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[F]);ee.push(re)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},ee)},Z=(O,W,X,F)=>{if(h.optionIcon)return h.optionIcon({checked:O,disabled:W,iconSize:X,item:F});if(O){if(h.checkedIcon)return h.checkedIcon({disabled:W,item:F});{const G=u.checkedIcon??s;return t.h(G,{width:X,height:X,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:W,item:F});{const G=u.icon??i;return t.h(G,{width:X,height:X,class:["fox-actionsheet__list-item-icon"]})}}},Q=()=>{const O=[];for(let W=0;W<f.value.length;W++){const X=f.value[W],F=kn(u,X),G=Fr(u,X),ee=["fox-actionsheet__list-item"],le={};let re=Ep(u,X),ie=u.iconSize?de(u.iconSize):null;const Ce=xp(u,X,W);Ce&&(re=re||Ce.disabled,Ce.class&&ee.push(Ce.class),Ce.style&&Object.assign(le,Ce.style)),re=!!(u.disabled||re);const Ne=T.value.includes(W);re&&ee.push("is-disabled"),Ne&&ee.push("is-checked");const ut={class:ee,style:le,key:`${W}`,onClick:()=>{re||U(W)}};let dt=[];if(h.option)dt.push(h.option({item:X,checked:Ne,disabled:re}));else{const Js=R(F,Ne,re,G,X);dt.push(Js);const _s=Z(Ne,re,ie,X);dt.push(_s),u.textPosition==="right"&&dt.reverse()}const ho=t.h("view",ut,dt);O.push(ho)}return O},te=()=>{let O=[];if(h.buttons)O=h.buttons();else{const X=t.h(l,{type:"primary",block:"block",onClick:D,disabled:u.disabled},{default:()=>y.confirmText.value});O.push(X)}return t.h("view",{class:"fox-actionsheet__footer"},[O])};return Ee({search:async(O=null,W=!0)=>{N.value=O&&t.toRaw(O),t.triggerRef(N),W&&(A.value=!0,v.value=0,f.value=[]),t.nextTick(()=>{V()})},clear:()=>{A.value=!0,v.value=0,f.value=[]},confirm:()=>{D()},cancel:()=>{M()}}),()=>{const O=[];if(u.showHeader){const ie=Y();O.push(ie)}if(u.showSearchbar){const ie=L();O.push(ie)}let W=null;if(h.content)W=h.content();else{const ie=Q(),Ce={hasMore:A.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:B.value,"onUpdate:modelValue":Ne=>{B.value=Ne},onLoadMore:V};W=t.h(o,Ce,{default:()=>ie})}const X={};u.optionsHeight&&(X.height=u.optionsHeight);const F={"fox-actionsheet__list":!0};u.poppable||(F["fox-actionsheet__list--inner"]=!0);const G=t.h("view",{class:F,style:X},[W]);if(O.push(G),u.showFooter&&!E.value){const ie=te();O.push(ie)}const ee=t.h("view",{class:"fox-actionsheet"},O);if(!u.poppable)return ee;const le=["fox-actionsheet__popup"];u.popClass&&le.push(u.popClass);const re={popClass:le.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":I,position:u.position,round:"round",onClickOverlay:M,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,re,{default:()=>ee})}}}}const{componentName:Mp,create:Pp,scope:Lp}=J("actionsheet-pane"),mo=Pp(qp(Mp,Lp,fe,uo,ze,fo,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),Kr={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 zp(e,n,a,o,l,r,i){return{props:{...pe,...ge,...Kr,...bn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,c){const d=$e(t.computed(()=>s.disabled)),m=Te(t.computed(()=>s.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},s.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),b=h(s,["placeholder"]),g=t.ref(!1),y=Pe(s,"modelValue",null,u),S=t.ref(""),f=t.computed(()=>Array.isArray(S.value)?S.value.join(s.separator):S.value),v="fox-input-item",p=t.computed(()=>({[v]:!0,"is-disabled":d.value,"is-readonly":m.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),w=t.computed(()=>{const D={};return N.value&&(D["text-align"]=N.value),D}),C=t.ref(!1),k=()=>{C.value=!0},B=D=>{C.value=D},A=D=>{y.value=D,u("update:modelValue",D)},V=(D,Y)=>{u("change",D,Y)},$=D=>{let L=D.target.value;g.value=!0,u("focus",L,D)},K=D=>{setTimeout(()=>{g.value=!1},0);let L=D.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),u("blur",L,D)},q=D=>{S.value=D,u("update:text",D)},E=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),T=t.computed(()=>ve(s.unit)>0),P=t.computed(()=>ve(s.unit)>0&&!g.value),x=t.computed(()=>({hidden:!P.value})),j=D=>{y.value="",u("update:modelValue","",D),u("change","",D),u("clear","")},H=t.computed(()=>s.clearable&&!d.value&&!m.value),z=t.computed(()=>ve(y.value)>0&&g.value),_=D=>{z.value?j(D):k()},U=t.computed(()=>z.value&&H.value?o:l),I=t.computed(()=>({action:!0})),M=t.ref(null);return Ee({search:D=>{M.value&&M.value.search(D)},clear:()=>{M.value&&M.value.clear},confirm:D=>{M.value&&M.value.confirm()},cancel:()=>{M.value&&M.value.cancel()}}),()=>{const D={class:p.value,style:w.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:$,onBlur:K},Y=[],L=t.h("input",D);Y.push(L);const R=[],Z={class:["action-icon"]},Q=t.h(U.value,Z),te={class:I.value,onClick:_},O=t.h("view",te,{default:()=>[Q]});if(R.push(O),T.value){const Ne=t.h("view",{class:x.value},[s.unit]);R.push(Ne)}const W={class:E.value},X=t.h("view",W,{default:()=>R});Y.push(X);const F={default:()=>Y};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const G=be(s,bn);G.ref=M,G.class=s.actionsheetProps,G.disabled=d.value||m.value,G.visible=C.value,G["onUpdate:visible"]=B,G.modelValue=y.value,G["onUpdate:modelValue"]=A,G.text=S.value,G["onUpdate:text"]=q,G.onChange=V,G.poppable=!0,G["text-position"]=s.textPosition;const ee={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},le=t.h(r,G,ee);F.hide=()=>[le];const ie={...Je(s,Kr,bn)};return s.prop&&(ie.prop=`${s.prop}_item`),t.h(a,ie,F)}}}}const{componentName:Op,create:Rp,scope:Fp}=J("actionsheet-item"),Tl=Rp(zp(Op,Fp,we,oe.CircleClose,oe.ArrowRight,mo)),Zo={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:Kp,create:Up}=J("input-number"),Hp=Up({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Zo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const b=Kp;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)},i=(b=Number(e.modelValue))=>b<Number(e.max)&&!e.disabled,s=(b=Number(e.modelValue))=>b>Number(e.min)&&!e.disabled,c=b=>{if(n("reduce",b),s()){let g=Number(e.modelValue)-Number(e.step);r(g,b)}else n("overlimit",b,"reduce")},d=b=>{if(n("add",b),i()){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:i,reduce:c,reduceAllow:s,toPxDesc:he}}}),jp=["min","max","disabled","readonly","value"];function Wp(e,n,a,o,l,r){const i=t.resolveComponent("Minus"),s=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(i,{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,jp),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(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Ge=ne(Hp,[["render",Wp]]);function Yp(e,n,a,o){return{props:{...pe,...ge,...Zo},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const i=$e(t.computed(()=>l.disabled)),s=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!i.value&&!s.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=be(l,Zo),f={...r.attrs,...y,disabled:i.value,readonly:s.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={...be(l,ge,pe)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=d.value,t.h(a,C,N)}}}}const{componentName:Xp,create:Qp,scope:Gp}=J("inputnumber-item"),$l=Qp(Yp(Xp,Gp,we,Ge)),Zp={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 Jp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ur(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function _p(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function No(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 Wr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Bo(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let eh=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=et(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 eh(e.proxy)}function nh(e,n,a,o){return{props:{...Zp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:i}){const s=e,c=th(),d=t.ref([]),m=t.computed(()=>d.value.filter(I=>_p(l,I)!==!1)),u=t.ref(-1),h=()=>{const I=l.modelValue,M=m.value.findIndex(D=>Ur(l,D)===I);u.value!==M&&(u.value=M,l.scroll&&_(M))};t.watch([()=>l.modelValue,m],()=>{h()});const b=I=>u.value===I,g=I=>{if(I<0&&I>=m.value.length)return!1;const M=m.value[I],Y=(Bo(l,M,I)??{}).status??No(l,M);return b(I)||Y},y=t.computed(()=>{const I={[s]:!0};return l.mode?I[`is-${l.mode}`]=!0:l.direction&&(I[`is-${l.direction}`]=!0),l.scroll&&(I["is-scroll"]=!0),I}),S=t.computed(()=>({})),f=(I,M,D,Y,L)=>{const R={[`${s}__step`]:!0};return L&&(R[`${L}`]=!0),R[`${v.value}`]=!0,Y&&(R["is-doit"]=!0),I===u.value?R["is-active"]=!0:M==="done"?R["is-done"]=!0:M==="error"?R["is-error"]=!0:M==="half"?R["is-half"]=!0:D?R["is-disabled"]=!0:R["is-normal"]=!0,R},v=t.computed(()=>{if(l.mode==="simple")return"start";let I=l.align;return I||(l.direction==="vertical"?I="start":I="center"),I}),p=(I,M={})=>{const D={...M};return v.value==="start"&&I===m.value.length-1?D.flex="0 0 auto":l.step?l.direction==="vertical"?D.height=l.step:D.width=l.step:D.flex="1 1 100%",D},N=(I,M)=>{let D={};if(M<m.value.length-1){const Y=M+1;g(M)&&g(Y)?l.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},w=I=>m.value.length-1===I,C=(I,M)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&M>u.value||u.value===M)return;const D=u.value,Y=M;u.value=M,l.scroll&&_(M);const L=Ur(l,I);i("update:modelValue",L);const R={fromIndex:D,currentIndex:Y,item:I,items:m.value,clickNavigatePolicy:l.clickNavigatePolicy};i("change",L,R)},k=t.ref(!0),B=async(I,M)=>{try{const D=await c.load("stesbar",I,M);Array.isArray(D)&&(d.value=D),k.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([I,M])=>{I&&B(I,M)},{immediate:!0});const A=(I,M,D,Y,L,R)=>{const Z=[];let Q=null;if(!R)if(r.icon)Q=r.icon({item:I,index:M,status:Y});else if(Y==="done"){const O={};l.iconSize&&(O.width=l.iconSize,O.height=l.iconSize);const W=l.icon??a;Q=t.h(W,O)}else{const O=D??`${M+1}`;Q=t.h("span",{},[O])}Q&&Z.push(Q);const te={class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:I,index:M}),!L&&C(I,M)}};return t.h("view",te,Z)},V=(I,M,D)=>{const Y=t.h("i",{class:"fox-steps-bar__line-inner",style:N(I,M)});return t.h("view",{class:"fox-steps-bar__line"},[Y])},$=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const D={};l.iconSize&&(D.width=l.markIconSize,D.height=l.markIconSize);const Y=l.markIcon??o;I=t.h(Y,D)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},K=(I,M,D,Y,L,R)=>{const Z=[];if(!w(M)){const O=V(I,M);Z.push(O)}const Q=A(I,M,D,Y,L,R);Z.push(Q);const te={class:"fox-steps-bar__head"};return t.h("view",te,Z)},q=(I,M,D,Y)=>{let L=null;r.main?L=r.main({item:I,index:M,status:D}):L=Jp(l,I);const R={class:"fox-steps-bar__main",onClick:()=>{i("click",{item:I,index:M}),!Y&&C(I,M)}};return t.h("view",R,[L])},E=(I,M,D)=>{let Y=null;if(r.sub){Y=r.sub({item:I,index:M,status:D});const L={class:"fox-steps-bar__sub"};return t.h("view",L,[Y])}return null},T=(I,M)=>{const D=Bo(l,I,M)??{},Y=D.status??No(l,I);let L=Hr(l,I);D.disabled===!0&&(L=!0),l.disabled===!0&&(L=!0);let R=jr(l,I);D.doit===!0&&(R=!0);const Z=D.label??Wr(l,I),Q=[],te=A(I,M,Z,Y,L,R);te&&Q.push(te);const O=q(I,M,Y,L);if(O&&Q.push(O),!w(M)){const ee=V(I,M);ee&&Q.push(ee)}const W=t.h("view",{class:"fox-steps-bar__head"},Q),X=D.class,F=D.style??{},G={ref:z(M),class:f(M,Y,L,R,X),style:p(M,F)};return t.h("view",G,[W])},P=(I,M)=>{const D=Bo(l,I,M)??{},Y=D.status??No(l,I);let L=Hr(l,I);D.disabled===!0&&(L=!0),l.disabled===!0&&(L=!0);let R=jr(l,I);D.doit===!0&&(R=!0);const Z=D.label??Wr(l,I),Q=[],te=l.layout;for(let F of te)if(F==="head"){const G=K(I,M,Z,Y,L,R);Q.push(G)}else if(F==="main"){const G=q(I,M,Y,L);Q.push(G)}else if(F==="sub"){const G=E(I,M,Y);Q.push(G)}else if(F==="mark"){const G=$();Q.push(G)}const O=D.class,W=D.style??{},X={ref:z(M),class:f(M,Y,L,R,O),style:p(M,W)};return t.h("view",X,Q)},x=t.ref(),j=t.ref([]),H=(I,M)=>{j.value[M]=I},z=I=>M=>{H(M,I)},_=(I,M)=>{const D=x.value,Y=j.value;if(!D||!Y||!Y[I])return;const L=Y[I];let R=0;l.direction==="vertical"?R=L.offsetTop-(D.offsetHeight-L.offsetHeight)/2:R=L.offsetLeft-(D.offsetWidth-L.offsetWidth)/2,U(D,R,.3,l.direction)},U=(I,M,D,Y)=>{let L=0;const R=Y==="horizontal"?I.scrollLeft:I.scrollTop,Z=Math.round(D*1e3/16);function Q(){Y==="horizontal"?I.scrollLeft+=(M-R)/Z:I.scrollTop+=(M-R)/Z,++L<Z&&Ue(Q)}Q()};return()=>{const I=[];if(l.mode==="simple")for(let D=0;D<m.value.length;D++){const Y=m.value[D],L=T(Y,D);I.push(L)}else for(let D=0;D<m.value.length;D++){const Y=m.value[D],L=P(Y,D);I.push(L)}const M={ref:x,class:y.value,style:S.value};return t.h("view",M,I)}}}}const{componentName:oh,create:lh,scope:ah}=J("steps-bar"),El=lh(nh(oh,ah,oe.Checklist,oe.ArrowRight));function rh(e){e.stopPropagation()}class sh{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=Zn()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Jn(),o=(l,r,i,s)=>{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),rh(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 ih(e,n){return new sh(e,n)}const ch={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]}},uh=(e,n,a,o=!1)=>({props:{...ch},emits:["click"],setup(l,{slots:r,emit:i}){let s=-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"&&!nl(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=()=>{i("click")},y=t.ref(null),S=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},N=ih(w=>{if(!y.value)return;const C=y.value;S(),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,s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},w=>{if(!y.value)return;const C=y.value;S();let k=f.x+w.x;k<0&&(k=0),k>s-d.width&&(k=s-d.width);let B=f.y+w.y;B<0&&(B=0),B>c-d.height&&(B=c-d.height),d.left=k,d.top=B,C.style.left=`${k}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 k={ref:B=>{y.value=B},class:m.value,style:h.value,onClick:g};return t.h("view",k,w)}}}),{componentName:dh,create:fh,scope:mh}=J("floating-button"),xl=fh(uh(dh,mh,oe.Uploader,!1)),ph={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 hh(e,n,a){return{props:{...ph},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}),i=Pe(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),m=()=>{l("update:modelValue",!i.value)};return()=>{const u=[];if(s.value){const S={class:c.value},f=t.h("span",S,[s.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:gh,create:yh,scope:vh}=J("more-button"),Dl=yh(hh(gh,vh,oe.RectUp)),bh={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}},kh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Sh(e,n,a){return{props:{...bh},emits:["update:visible"],setup(o,{attrs:l,slots:r,emit:i}){const{toLocaleRefs:s}=se.useFoxI18n(n),c=s(o,["confirmText","cancelText"]),d=e,m=t.ref(o.visible),u=w=>{m.value=w,i("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")},S=(w,C)=>kh(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`]},B=S(o.icon,k);w.push(B)}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},B=S(o.closeIcon,k);w.push(B)}const C={class:[`${d}__header`]};return t.h("view",C,w)},v=(w,C)=>{const k=[];if(C){const A={class:`${d}__group-title`},V=t.h("view",A,[C]);k.push(V)}if(w){const A=[];Array.isArray(w)||(w=[w]);for(let V of w){const $={class:`${d}__group-row`,innerHTML:V},K=t.h("view",$);A.push(K)}if(A.length>0){const V={class:`${d}__group-rows`},$=t.h("view",V,A);k.push($)}}if(k.length===0)return null;const B={class:`${d}__group`};return t.h("view",B,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 B=v(k);w.push(B)}else{const B=v(k.content,k.title);w.push(B)}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)},N=()=>{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 B=t.h("button",k,[o.cancelButtonText??c.cancelText.value]);w.push(B)}if(o.showConfirmButton){const k={class:[`${d}__footer-button`],style:{},onClick:b};o.confirmButtonClass&&k.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(k.style,o.confirmButtonStyle);const B=t.h("button",k,[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 k=p();k&&w.push(k);const B=N();B&&w.push(B);const A={class:{[`${d}`]:!0,[`${d}--${o.type||"info"}`]:!0}},V=t.h("view",A,w),$=[`${d}__popup`];o.popClass&&$.push(o.popClass);const K={};o.width&&(K.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(K.height=typeof o.height=="number"?`${o.height}px`:o.height);const q={popClass:$.join(" "),style:K,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:()=>V})}}}}const{componentName:Ch,create:wh,scope:Nh}=J("messagebox"),Bh=wh(Sh(Ch,Nh,fe)),Ah="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",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%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",Th="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",$h="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",Eh=new Qn,xh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Dh=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-${Eh.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${l}`);i&&i.parentNode?.removeChild(i)};const r=t.createVNode(Bh,e);n.appendChild(o),t.render(r,o)},at={show:(e,n,a,o)=>{const l={...xh};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=Th:r==="warning"?l.icon=$h:r==="error"?l.icon=Ah:l.icon=Vh),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=oe.Close),new Promise((i,s)=>{const c=l.callback;l.callback=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}i({action:d})},Dh(l)})},alert:(e,n,a)=>at.show("alert",e,n,a),confirm:(e,n,a)=>at.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=at.alert,e.config.globalProperties.$confirm=at.confirm}},Ih=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let s in n)s==="bubbles"?l=!!n[s]:s==="cancelable"?r=!!n[s]:o[s]=n[s];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},qh=new Qn,Mh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Ph=e=>`${e}-${qh.get()}`,Lh=Symbol.for("InnerPageScopeKey"),zh=Symbol.for("PageWrapperKey"),Oh="FoxLeave",Rh="FoxLeaveEnd",Fh={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 Kh(e,n,a,o){return{props:{...Fe,...Fh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:s}){t.provide(Lh,!0);const c={};t.provide(zh,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},u=e,h=C=>{b.value=C,s("update:visible",C)},b=t.ref(!1),g=(C,k)=>Mh(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(i.header){const B=i.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 k={class:[`${u}__header`]};return t.h("view",k,C)},S=()=>{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=>{Ih(Rh,{},f)},p=Ph(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 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(Oh,w,{once:!0}),N()}),()=>{const C=[],k=y();k&&C.push(k);const B=S();B&&C.push(B);const A=i.default?i.default():[];Reflect.apply([].push,C,A);const V={[`${u}`]:!0};l.mode&&(V[`${u}--${l.mode}`]=!0);const $={class:V},K=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={...be(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:()=>K});return t.h("div",{class:[`${u}__root`,p]},[x])}}}}const{componentName:Uh,create:Hh,scope:jh}=J("popup-wrapper"),Il=Hh(Kh(Uh,jh,fe,oe.Close)),Wh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Yh(e,n,a,o){return{props:{...Wh},emits:["update:visible"],setup(l,{emit:r,slots:i}){const s=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":s},m=t.h(a,d,i),u={class:`${e}`};return t.h("view",u,[m])}}}}const{componentName:Xh,create:Qh,scope:Gh}=J("dropdown"),ql=Qh(Yh(Xh,Gh,fe)),Zh={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 Jh(e,n,a=!1){return{props:{...Zh},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:i}){const s=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),S=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,f=(z,_,U,I,M,D,Y,L=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,Q=z.split("-");let te=[];L?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=[z[0]];const O={top:null,right:null,bottom:null,left:null},W=[];for(let X=0;X<te.length;X++){const F=te[X];if(W[0]=F,Q[1]&&(W[1]=Q[1]),F==="top"){const G=U-Y-o.arrowSize/2-o.offset;if(G>=0){O.top=G;let ee=0;Q[1]==="start"?ee=_:Q[1]==="end"?ee=_+I-D:ee=_+I/2-D/2;const le=R-ee-D;le<0?(ee+=le,p.value=-le):p.value=0,O.left=ee<0?0:ee;break}}else if(F==="bottom"){const G=U+M+o.arrowSize/2+o.offset;if(G+Y<=Z){O.top=G;let ee=0;Q[1]==="start"?ee=_:Q[1]==="end"?ee=_+I-D:ee=_+I/2-D/2;const le=R-ee-D;le<0?(ee+=le,p.value=-le):p.value=0,O.left=ee<0?0:ee;break}}else if(F==="left"){const G=_-D-o.arrowSize/2-o.offset;if(G>=0){O.left=G;let ee=0;Q[1]==="start"?ee=U:Q[1]==="end"?ee=U+M-Y:ee=U+M/2-Y/2,O.top=ee<0?0:ee;break}}else if(F==="right"){const G=_+I+o.arrowSize/2+o.offset;if(G+D<=R){O.left=G;let ee=0;Q[1]==="start"?ee=U:Q[1]==="end"?ee=U+M-Y:ee=U+M/2-Y/2,O.top=ee<0?0:ee;break}}}return{bestPlacement:W.join("-"),bestInsetRect:O}},v=()=>{const z=o.visible,_=o.autoFit;if(!Ze||z===!1)return;if(o.reference){const Y=S(),L=fl(Y);c.value=L.x,d.value=L.y,m.value=Y.offsetWidth,u.value=Y.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 U=y.value.offsetWidth,I=y.value.offsetHeight,{bestPlacement:M,bestInsetRect:D}=f(o.placement,c.value,d.value,m.value,u.value,U,I,_);h.value=M,s.value=D},p=t.ref(0),N=Me(()=>{v()},10),w=t.ref(o.visible);t.watch([()=>o.visible],([z])=>{w.value=z,z?(b.value=z,setTimeout(()=>{v(),g.value=!0},0)):g.value=!1});const C=t.computed(()=>w.value&&k.value),k=t.ref(!0),B=Me(z=>{const _=z[0];_&&(k.value=_.isIntersecting)},10),A=new IntersectionObserver(B);t.watch([()=>o.reference,()=>o.referenceInset],([z,_],[U,I])=>{!z&&!_||(setTimeout(()=>{v()},0),o.autoFit&&(U&&(Rt.unwatch(U,N),A.unobserve(U)),z&&(Rt.watch(z,N),A.observe(z))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Rt.unwatch(o.reference,N),A.unobserve(o.reference),A.disconnect())});const V=t.computed(()=>{const z={[e]:!0};return h.value.startsWith("top")?z["is-top"]=!0:h.value.startsWith("right")?z["is-right"]=!0:h.value.startsWith("bottom")?z["is-bottom"]=!0:h.value.startsWith("left")&&(z["is-left"]=!0),z[`is-${o.effect}`]=!0,!g.value&&C.value&&(z["is-opacity"]=!0),g.value&&C.value&&(z["is-show"]=!0),C.value||(z["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(z[`${o.customClass}`]=!0),z}),$=t.computed(()=>{const z={};return s.value.top!==null&&(z.top=`${s.value.top}px`),s.value.right!==null&&(z.right=`${s.value.right}px`),s.value.bottom!==null&&(z.bottom=`${s.value.bottom}px`),s.value.left!==null&&(z.left=`${s.value.left}px`),o.width&&(z.width=o.width),o.zIndex&&(z["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(z,o.customStyle),z}),K=()=>{w.value=!1,l("update:visible",!1)},q=()=>{if(!o.showOverlay)return null;const z={class:`${e}__overlay`,onClick:K};return t.h("div",z)},E=()=>{let z=null;return r.title?z=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(z=t.h("div",{class:`${e}__title`},[o.title])),z},T=t.computed(()=>({[`${e}__arrow`]:!0})),P=t.computed(()=>{const z={};return o.showArrow?(z.width=`${o.arrowSize}px`,z.height=`${o.arrowSize}px`,h.value==="top"?(z.left="50%",z.bottom="0",z.transform="translate(-50%, 50%)"):h.value==="top-start"?(z.left=`${o.arrowOffset+p.value}px`,z.bottom="0",z.transform="translate(-50%, 50%)"):h.value==="top-end"?(z.right=`${o.arrowOffset-p.value}px`,z.bottom="0",z.transform="translate(-50%, 50%)"):h.value==="right"?(z.left="0",z.top="50%",z.transform="translate(-50%, -50%)"):h.value==="right-start"?(z.left="0",z.top=`${o.arrowOffset}px`,z.transform="translate(-50%, 50%)"):h.value==="right-end"?(z.left="0",z.bottom=`-${o.arrowOffset}px`,z.transform="translate(-50%, 50%)"):h.value==="bottom"?(z.left="50%",z.top="0",z.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(z.left=`${o.arrowOffset+p.value}px`,z.top="0",z.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(z.right=`${o.arrowOffset-p.value}px`,z.top="0",z.transform="translate(-50%, -50%)"):h.value==="left"?(z.right="0",z.top="50%",z.transform="translate(50%, -50%)"):h.value==="left-start"?(z.right="0",z.top=`${o.arrowOffset}px`,z.transform="translate(50%, -50%)"):h.value==="left-end"&&(z.right="0",z.bottom=`-${o.arrowOffset}px`,z.transform="translate(50%, -50%)"),z):{display:"none"}}),x=()=>{const z={class:T.value,style:P.value};return t.h("div",z)},j=()=>{w.value===!1&&(b.value=!1)},H=z=>{if(!y.value||w.value===!1)return;const{relatedTarget:_}=z;y.value.contains(_)||(w.value=!1,l("update:visible",!1))};return i({doLayout:v}),()=>{if(!b.value)return null;const z=[],_=q();_&&z.push(_);const U=[],I=E();if(I&&U.push(I),r.default){const L=r.default();U.push(L)}const M=x();M&&U.push(M);const D={ref:y,class:V.value,style:$.value,onAnimationend:j};o.leaveHide&&(D.onMouseleave=H);const Y=t.h("div",D,{default:()=>U});return z.push(Y),z}}}}const{componentName:_h,create:eg,scope:tg}=J("popover-dialog"),Ml=eg(Jh(_h,tg,!1));function ng(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 og={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 lg(e,n,a,o=!1){return{props:{...og},emits:["click"],setup(l,r){const i=t.ref(null),s=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=i.value;if(!p)return;const N=p.clientWidth;ng(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))},S=p=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{b()},l.hideAfter??0)},f=()=>{const p=i.value;p&&(p.addEventListener("mouseover",y),p.addEventListener("mouseleave",S))},v=()=>{const p=i.value;p&&(p.removeEventListener("mouseover",y),p.removeEventListener("mouseleave",S))};return t.onMounted(()=>{!ye(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!ye(l.showOverflowTooltip)||!a||v()}),()=>{const p={onClick:m,class:s.value,style:c.value,ref:i};let N=null;if(ye(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 V=me(l.digits),$=me(l.decimalLength),K=ye(l.autoPadding);let q=`${B[0].children}`,E=q.split("").reverse().join("");E=xn(E,$,K,V,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 V=`${B[0].children}`;N=d(V,p),N||(p.innerHTML=V,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={},V=l.color;V&&(A.color=V);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={},V=l.color;V&&(A.color=V);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={},V=l.color;V&&(A["background-color"]=V);const $={class:B,style:A};C=t.h("view",$)}const k={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",k,[C,N])}}}}const{componentName:ag,create:rg,scope:sg}=J("text"),Pl=rg(lg(ag,sg,Tt,!1));function ig(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[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;i.push(u[a])}return i}if(Array.isArray(s))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;i.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;i.push(u[a]),c=u[l]}}return i}class cg{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=et(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 ug(){const e=t.getCurrentInstance();return new cg(e.proxy)}const dg={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 fg(e,n,a=!1){return{props:{...dg},setup(o,{attrs:l,slots:r}){const i=ug(),s=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,u])=>{s.value=await i.load(o.sourceType,m,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let m=ig(o.modelValue,s.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:mg,create:pg,scope:hg}=J("mapping"),Ll=pg(fg(mg,hg,!1));function gg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return bs(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:t2,create:yg,scope:n2}=J("domain-provider"),zl=yg(gg()),vg={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 bg(e,n){return{inheritAttrs:!1,props:vg,setup(a,{slots:o}){if(Ze&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const i=(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)},s=h=>{if(m===null){r.delete(h);return}l.has(h)&&(l.delete(h),m.unobserve(h))};let c=a.initialVisibleObserverSize;oc({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let m=null;const u=(h,b,g)=>{m=new IntersectionObserver(y=>{for(let S of y){let f=!1;S.intersectionRatio>0&&(f=!0);const v=l.get(S.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,S)=>{l.set(S,y),m?.observe(S)}),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:o2,create:kg,scope:l2}=J("rolling-provider"),Ol=kg(bg()),{componentName:Sg,create:Cg}=J("cell"),wg=Cg({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Sg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Ng={key:0,class:"fox-cell__icon"},Bg={key:1,class:"fox-cell__title"},Ag={class:"title"},Vg={class:"fox-cell__title-desc"};function Tg(e,n,a,o,l,r){const i=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Ng,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Bg,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Ag,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Vg,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(i,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const Rl=ne(wg,[["render",Tg]]),{componentName:$g,create:Eg}=J("cell-group"),xg=Eg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[$g]:!0}))}}}),Dg={key:1,class:"fox-cell-group__title"},Ig={key:3,class:"fox-cell-group__desc"},qg={class:"fox-cell-group__wrap"};function Mg(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",Dg,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",Ig,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",qg,[t.renderSlot(e.$slots,"default")])],2)}const Fl=ne(xg,[["render",Mg]]),{componentName:Pg,create:Lg}=J("image"),zg=Lg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const b=Pg;return{[b]:!0,[`${b}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),i=t.ref(null),s=()=>{const b={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(g=>{g.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},b),i.value&&l.value.observe(i.value)};t.onMounted(()=>{e.lazyLoad&&s()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let b={};return e.width&&(b.width=he(e.width)),e.height&&(b.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(b.overflow="hidden",b.borderRadius=he(e.radius)),b}),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:i}}}),Og=["src","date-src","alt"],Rg={key:0,class:"fox-img-loading"},Fg={key:1,class:"fox-img-error"};function Kg(e,n,a,o,l,r){const i=t.resolveComponent("Image"),s=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,Og),e.loading?(t.openBlock(),t.createElementBlock("div",Rg,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",Fg,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const Kl=ne(zg,[["render",Kg]]),{create:Ug}=J("layout"),Ul=Ug({}),{componentName:Hg,create:jg}=J("col"),Wg=jg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Hg,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 Yg(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 Hl=ne(Wg,[["render",Yg]]),{componentName:Xg,create:Qg}=J("row"),Gg=Qg({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=Xg;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
6
6
  ${a("",e.type)}
7
7
  ${a("justify",e.justify)}
8
8
  ${a("align",e.align)}
@@ -10,4 +10,4 @@
10
10
  ${n}
11
11
  `:`
12
12
  ${n}
13
- `)}}});function Zg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Hl=ne(Gg,[["render",Zg]]),{create:Jg}=J("sticky"),_g=Jg({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)),i=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),s=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 f=qe(a),u=o.value,h=qe(u),k=qe(d);l.height=f.height;const g=()=>{let b=!1;if(e.position==="top")b=d?r.value>f.top&&k.bottom>0:r.value>f.top;else{const m=document.documentElement.clientHeight;b=d?k.bottom>0&&m-r.value-h.height>k.top:m-r.value<f.bottom}return b},y=()=>{if(d)if(e.position==="top"){const b=k.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,m=k.bottom-(b-r.value);return m<0?m:0}return 0};l.transform=y(),l.fixed=g()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),Qo(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Qo(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:i,stickyRef:o,stickyStyle:s}}});function ey(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Ut=ne(_g,[["render",ey]]),{componentName:ty,create:ny}=J("divider"),oy=ny({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=ty;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 ly(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=ne(oy,[["render",ly]]);function ay(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 ry(e,n,a){const o=ay(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function sy(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=s=>{s.proxy&&(a.push(t.markRaw(s)),ry(o,a,n))},r=s=>{a.splice(a.indexOf(t.markRaw(s)),1)},i=Object.assign;return s=>(t.provide(e,i({add:l,remove:r,internalChildren:a},s)),{internalChildren:a})}const{componentName:Wr}=J("grid"),Hs=Symbol("grid"),iy={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}},cy={props:iy,setup(e,{slots:n}){sy(Hs,`${Wr}-item`)({props:e});const a=t.computed(()=>{const l=Wr;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:uy}=J("grid"),Wl=uy(cy);function dy(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 i=t.computed(()=>r.indexOf(a));return{parent:n,index:i}}return{parent:null,index:t.ref(-1)}}const{create:fy,componentName:Yr}=J("grid-item"),my=fy({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=dy(Hs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Yr]:!0})),i=t.computed(()=>{const d={flexBasis:`${100/+l.columnNum}%`};return l.square?d.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(d.paddingRight=he(l.gutter),o.value>=l.columnNum&&(d.marginTop=he(l.gutter))),d}),s=t.computed(()=>{const d=`${Yr}__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:i,contentClass:s,handleClick:d=>{n("click",d)}}}}),py={class:"fox-grid-item__text"};function hy(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]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",py,[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 Yl=ne(my,[["render",hy]]),{componentName:gy,create:yy}=J("navbar"),vy=yy({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:i}=t.toRefs(e),s=t.ref(null),c=t.ref(null);let d=t.ref();const f=t.computed(()=>{const b=gy;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:i.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,s.value.style.height=d.value+"px"})});function h(){n("on-click-back")}function k(){n("on-click-title")}function g(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:s,navBarHtml:c,classes:f,styles:u,handleLeft:h,handleCenter:k,handleCenterIcon:g,handleRight:y}}}),by={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},ky={key:1,class:"fox-navbar__text"},Sy={class:"fox-navbar__title"},Cy={key:0,class:"fox-navbar__text"},wy={key:1,class:"fox-navbar__text"},Ny={class:"fox-navbar__title"},By={key:0,class:"fox-navbar__text"};function Ay(e,n,a,o,l,r){const i=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",by,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",ky,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Sy,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",Cy,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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",wy,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ny,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",By,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Xl=ne(vy,[["render",Ay]]),Vy=(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}=se.useFoxI18n(n),i=r(o,["activeText","unActiveText"]),s=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...i,classes:s,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Ty,create:$y,scope:Ey}=J("fixednav"),xy=$y(Vy(Ty,Ey,{[ut.name]:ut,Left:oe.Left})),Dy={class:"fox-fixednav__list"},Iy=["onClick"],qy=["src"],My={class:"span"},Py={key:0,class:"b"},Ly={class:"text"};function zy(e,n,a,o,l,r){const i=t.resolveComponent("fox-overlay"),s=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(i,{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",Dy,[(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:f=>e.selected(c,f),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,qy),t.createElementVNode("view",My,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Py,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Iy))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(s,{color:"#fff"}),t.createElementVNode("view",Ly,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ql=ne(xy,[["render",zy]]),{componentName:Oy,create:Ry}=J("menu"),Fy=Ry({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),i=()=>{const b=t.reactive([]),m=t.reactive([]);return{children:b,linkChildren:p=>{const N=C=>{C.proxy&&(m.push(C),b.push(C.proxy))},w=C=>{if(C.proxy){let S=m.indexOf(C);S>-1&&m.splice(S,1);let B=b.indexOf(C.proxy);S>-1&&b.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:N,children:b,internalChildren:m},p))}}},{children:s,linkChildren:c}=i(),d=t.computed(()=>s.some(b=>b.state.showWrapper)),f=t.computed(()=>({[Oy]:!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=>{s.forEach((m,v)=>{v===b?(u(),m.toggle()):m.state.showPopup&&m.toggle(!1,{immediate:!0})})},k=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),g=()=>{const{scrollFixed:b}=e,m=k(window);r.value=m>(typeof b=="boolean"?30:Number(b))},y=b=>{let m="";const{titleClass:v}=e;return b&&(m+="active"),v&&(m+=` ${v}`),m};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:s,opened:d,classes:f,barRef:o,getClasses:y}}}),Ky=["onClick"],Uy={class:"fox-menu__title-text"},Hy={class:"fox-menu__title-icon"};function jy(e,n,a,o,l,r){const i=t.resolveComponent("ArrowUp2"),s=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:f=>!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",Uy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Hy,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(i,{key:0})):(t.openBlock(),t.createBlock(s,{key:1}))])])],2)],14,Ky))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Gl=ne(Fy,[["render",jy]]),{componentName:Wy,create:Yy}=J("menu-item"),Xy=Yy({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[fe.name]:fe,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const k=t.inject("menuParent",null);if(k){const g=t.getCurrentInstance(),{link:y,removeLink:b}=k;return y(g),t.onUnmounted(()=>{b(g)}),{parent:k}}},{parent:r}=l(),i=t.computed(()=>({[Wy]:!0})),s=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:i,placeholderElementStyle:s,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(g=>g.value===e.modelValue);return k?k.text:""},state:o,parent:r,toggle:(k=!o.showPopup,g={})=>{k!==o.showPopup&&(o.showPopup=k,o.isShowPlaceholderElement=k,k&&(o.showWrapper=!0,n("open")))},onClick:k=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),Qy={class:"fox-menu-item__content fox-menu-item__overflow"},Gy=["onClick"];function Zy(e,n,a,o,l,r){const i=t.resolveComponent("Check"),s=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["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(s,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",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",Qy,[(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:f=>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(i,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,Gy))),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 Zl=ne(Xy,[["render",Zy]]),{create:Jy}=J("tabbar"),_y=Jy({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 ev(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 Jl=ne(_y,[["render",ev]]),{create:tv}=J("tabbar-item"),nv=tv({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 f=a.children.length;o.index=f;let u=Object.assign(d.proxy,{index:f});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function i(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const s=t.computed(()=>a?a.value:null);return t.watch(s,c=>{o.value=c}),{state:o,active:r,change:i}}}),ov={class:"fox-tabbar-item_icon-box"},lv={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},av={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},rv={key:1,class:"fox-tabbar-item_icon-box_dot"},sv={key:2},iv={key:0};function cv(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]=i=>e.change(e.state.index))},[t.createElementVNode("view",ov,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",lv,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",av,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",rv)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",sv,[(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",iv,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const _l=ne(nv,[["render",cv]]),{componentName:uv,create:dv}=J("elevator"),fv=dv({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(()=>({[uv]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),i=t.computed(()=>a.value.clientHeight),s=(m,v)=>m.getAttribute("data-"+v),c=m=>{t.nextTick(()=>{!o.listGroup.includes(m)&&m!=null&&o.listGroup.push(m)})},d=()=>{let m=0;o.listHeight.push(m);for(let v=0;v<o.listGroup.length;v++){let p=o.listGroup[v];m+=Math.floor(p.clientHeight),o.listHeight.push(m)}},f=m=>{!m&&m!==0||(m<0&&(m=0),m>o.listHeight.length-2&&(m=o.listHeight.length-2),o.codeIndex=m,a.value.scrollTo(0,o.listHeight[m]))},u=m=>{o.scrollStart=!0;let v=s(m.target,"index"),p=m.touches[0];o.touchState.y1=p.pageY,o.anchorIndex=+v,o.codeIndex=+v,f(+v)},h=m=>{let v=m.touches[0];o.touchState.y2=v.pageY;let p=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+p,f(o.codeIndex)},k=()=>{o.scrollStart=!1},g=(m,v)=>{n.emit("click-item",m,v),o.currentData=v,o.currentKey=m},y=m=>{n.emit("click-index",m)},b=m=>{let p=m.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",b)}),Ee({scrollTo:f}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(d)}),t.watch(()=>o.diff,m=>{const v=o.listHeight;let p=m>0&&m<e.titleHeight?m-e.titleHeight:0;o.scrollY+i.value===v[v.length-1]&&p!==0&&(p=0),o.fixedTop!==p&&(o.fixedTop=p)}),t.watch(()=>o.currentIndex,m=>{n.emit("change",m)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:i,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:k,handleClickItem:g,handleClickIndex:y}}}),mv={class:"fox-elevator__list__item__code"},pv=["onClick"],hv=["innerHTML"],gv={class:"fox-elevator__fixed-title"},yv={class:"fox-elevator__bars__inner"},vv=["data-index","onClick"];function bv(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,i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",mv,t.toDisplayString(i[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.list,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===s.id&&e.currentKey===i[e.acceptKey]}]),key:s.id,onClick:c=>e.handleClickItem(i[e.acceptKey],s)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:s}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:s.name},null,8,hv))],10,pv))),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",gv,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]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=t.withModifiers((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("view",yv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":s,key:i[e.acceptKey],onClick:c=>e.handleClickIndex(i[e.acceptKey])},t.toDisplayString(i[e.acceptKey]),11,vv))),128))])],32)],2)}const Ht=ne(fv,[["render",bv]]),{componentName:a2,create:kv,scope:Sv}=J("pagination"),Cv=kv({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}=se.useFoxI18n(Sv),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:i,forceEllipses:s}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:k,itemsPerPage:g}=t.toRefs(e),y=+h.value||Math.ceil(+k.value/+g.value);return Math.max(1,y)}),d=(h,k)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),k&&n("change",h))},f=(h,k,g=!1)=>({number:h,text:k,active:g}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const k=c.value,g=+i.value;let y=1,b=k;const m=k>g;m&&(y=Math.max(l.value-Math.floor(g/2),1),b=y+g-1,b>k&&(b=k,y=b-g+1));for(var v=y;v<=b;v++){const p=f(v,v,l.value==v);h.push(p)}if(m&&g>0&&s.value){if(y>1){const p=f(y-1,"...");h.unshift(p)}if(b<k){const p=f(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:s}}}),wv={class:"fox-pagination"},Nv={key:0,class:"fox-pagination-contain"},Bv=["onClick"],Av={key:1,class:"fox-pagination-contain"},Vv={class:"fox-pagination-simple"};function Tv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",wv,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=i=>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",Nv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(i,s)=>(t.openBlock(),t.createElementBlock("view",{key:s+"pagination",class:t.normalizeClass(["fox-pagination-item",i.active?"active":""]),onClick:c=>e.select(i.number,!0)},[t.renderSlot(e.$slots,"page",{item:i},()=>[t.createTextVNode(t.toDisplayString(i.text),1)])],10,Bv))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Av,[t.createElementVNode("view",Vv,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]=i=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const ea=ne(Cv,[["render",Tv]]),$v=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=tt();let d="";const f=(h,k)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=k>0?"bottom":"top",g=k,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,s.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,s.moving=!1);break}s.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),s.moving=!0,f(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(s.moving)switch(s.moving=!1,d){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:l}};class Ev{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:xv}=J("tabs"),Dv=xv({components:{[Ut.name]:Ut,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=V=>{V.forEach(($,q)=>{let F=$.type;if(F=F.name||F,F=="fox-tab-pane"){let x=new Ev;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let T=it($.props?.["pane-key"]),P=T=="number"||T=="string"?String($.props?.["pane-key"]):null,E=it($.props?.paneKey),j=E=="number"||E=="string"?String($.props?.paneKey):null;x.title=$.props?.title,x.paneKey=P||j||String(q),x.disabled=$.props?.disabled}r.value.push(x)}else{if($.children==" ")return;Array.isArray($.children)&&i($.children)}})},s=t.ref(e.modelValue||0),c=V=>{let $=r.value.findIndex(q=>q.paneKey==V);r.value.length==0||$==-1||(s.value=$)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),f=t.ref(),u=t.ref([]),h=V=>{const $=f.value,q=u.value;if(!$||!q||!q[s.value])return;const F=q[s.value];let x=0;e.direction==="vertical"?x=F.offsetTop-$.offsetTop+10-($.offsetHeight-F.offsetHeight)/2:x=F.offsetLeft-($.offsetWidth-F.offsetWidth)/2,k($,x,.3,e.direction)},k=(V,$,q,F)=>{let x=0;const T=F==="horizontal"?V.scrollLeft:V.scrollTop,P=Math.round(q*1e3/16);function E(){F==="horizontal"?V.scrollLeft+=($-T)/P:V.scrollTop+=($-T)/P,++x<P&&Ke(E)}E()},g=(V=a.default?.())=>{r.value=[],V=V?.filter($=>typeof $.children!="string"),V&&V.length&&i(V),c(e.modelValue),t.nextTick(()=>{h()})},y=V=>{l=V.fixed};t.watch(()=>a.default?.(),V=>{g(V)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,V=>{if(c(V),h(),l){let $=qe(o.value).top+b(),q=Math.ceil($-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const m={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,m.updateValue(r.value[s.value])},prev:()=>{s.value-=1,m.updateValue(r.value[s.value])},updateValue:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,$)=>{n("click",V),!(V.disabled||s.value==$)&&(s.value=$,m.updateValue(V))},setTabItemRef:(V,$)=>{u.value[$]=V}},{tabsContentRef:v,touchState:p,touchMethods:N}=$v(e,m),w=t.computed(()=>{let V=s.value*100;p.moving&&(V+=p.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 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 V=he(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),A=t.computed(()=>a.fixedTitle);return{navRef:f,tabsContentRef:v,titles:r,contentStyle:w,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:S,container:o,getScrollY:d,onStickyScroll:y,...m,...N,hasFixedTitle:A}}}),Iv=["onClick"],qv={key:0,class:"fox-tabs__titles-fixed-item"},Mv=["onClick"],Pv={key:0,class:"fox-tabs__titles-fixed-item"};function Lv(e,n,a,o,l,r){const i=t.resolveComponent("JoySmile"),s=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(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),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:f=>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(i,{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,Iv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",qv,[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:f=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:f=>e.setTabItemRef(f,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(i,{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,Mv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Pv,[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 ta=ne(Dv,[["render",Lv]]),{create:zv}=J("tab-pane"),Ov=zv({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 Rv(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 na=ne(Ov,[["render",Rv]]),{componentName:Xr,create:Fv}=J("indicator"),Kv=Fv({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=Xr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Xr,padZero:ot}}});function Uv(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,i=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[i===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(i)||i),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const oa=ne(Kv,[["render",Uv]]),{componentName:Hv,create:jv}=J("side-navbar"),Wv=jv({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(()=>({[Hv]:!0})),l=(i,s=1)=>{for(let c=0;c<i.length;c++){let d=i[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*s+"px",d.className.includes("fox-side-navbar-item")||l(Array.from(d.children[1].children),++a.count))}a.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(s=>s.nodeType!==3).map(s=>s),l(i))};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}}}),Yv={class:"fox-side-navbar__content"},Xv={class:"fox-side-navbar__content__list",ref:"list"};function Qv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Yv,[t.createElementVNode("view",Xv,[t.renderSlot(e.$slots,"default")],512)])],2)}const la=ne(Wv,[["render",Qv]]),{componentName:Gv,create:Zv}=J("side-navbar-item"),Jv=Zv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Gv]:!0})),handleClick:()=>{n.emit("click")}})}),_v=["ikey"],e0={class:"fox-side-navbar-item__title"};function t0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[t.createElementVNode("span",e0,t.toDisplayString(e.title),1)],10,_v)}const aa=ne(Jv,[["render",t0]]),{componentName:n0,create:o0}=J("sub-side-navbar"),l0=o0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[n0]:!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}}}),a0=["ikey"],r0={class:"fox-sub-side-navbar__title__text"},s0={class:"fox-sub-side-navbar__title__icon"};function i0(e,n,a,o,l,r){const i=t.resolveComponent("ArrowDown2"),s=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",r0,t.toDisplayString(e.title),1),t.createElementVNode("span",s0,[e.direction?(t.openBlock(),t.createBlock(s,{key:1})):(t.openBlock(),t.createBlock(i,{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,a0)}const ra=ne(l0,[["render",i0]]),{componentName:c0,create:u0}=J("range"),d0=u0({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(),i=t.ref(),s=tt(),c=t.computed(()=>{const{marks:x,max:T,min:P}=e;return Object.keys(x).map(parseFloat).sort((H,O)=>H-O).filter(H=>H>=P&&H<=T)}),d=t.computed(()=>Number(e.max)-Number(e.min)),f=t.computed(()=>{const x=c0;return{[x]:!0,[`${x}-disabled`]:e.disabled,[`${x}-vertical`]:e.vertical,[`${x}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const x="fox-range-container";return{[x]:!0,[`${x}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),g=x=>!!e.range&&Array.isArray(x),y=()=>{const{modelValue:x,min:T}=e;return g(x)?`${(x[1]-x[0])*100/d.value}%`:`${(x-Number(T))*100/d.value}%`},b=()=>{const{modelValue:x,min:T}=e;return g(x)?`${(x[0]-Number(T))*100/d.value}%`:"0%"},m=t.computed(()=>e.vertical?{height:y(),top:b(),background:e.activeColor,transition:i.value?"none":void 0}:{width:y(),left:b(),background:e.activeColor,transition:i.value?"none":void 0}),v=x=>{const T="fox-range-mark",{modelValue:P,max:E,min:j}=e;let H=Number(j),O=Number(E);if(e.range){const[U,I]=P;H=U,O=I}else O=P;let _=x<=O&&x>=H;return{[`${T}-text`]:!0,[`${T}-text-active`]:_}},p=x=>{const{min:T,vertical:P}=e;let E={left:`${(x-Number(T))/d.value*100}%`};return P&&(E={top:`${(x-Number(T))/d.value*100}%`}),E},N=x=>{const{modelValue:T,max:P,min:E}=e;let j=Number(E),H=Number(P);if(e.range){const[U,I]=T;j=U,H=I}return{background:x<=H&&x>=j?e.activeColor:e.inactiveColor}},w=x=>{const{min:T,max:P,step:E}=e;return x=Math.max(+T,Math.min(x,+P)),Math.round(x/+E)*+E},C=(x,T)=>JSON.stringify(x)===JSON.stringify(T),S=x=>x[0]>x[1]?x.slice(0).reverse():x,B=(x,T)=>{g(x)?x=S(x).map(w):x=w(x),C(x,e.modelValue)||n("update:modelValue",x),T&&!C(x,o)&&n("change",x)},A=x=>{if(e.disabled)return;const{min:T,modelValue:P}=e,E=qe(r);let j=x.clientX-E.left,H=E.width;e.vertical&&(j=x.clientY-E.top,H=E.height);const O=Number(T)+j/H*d.value;if(g(P)){const[_,U]=P,I=(_+U)/2;O<=I?B([O,U],!0):B([_,O],!0)}else B(O,!0)},V=x=>{e.disabled||(s.start(x),l=e.modelValue,g(l)?o=l.map(w):o=w(l),i.value="start")},$=x=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),s.move(x),i.value="draging";const T=qe(r);let P=s.deltaX.value,E=T.width,j=P/E*d.value;e.vertical&&(P=s.deltaY.value,E=T.height,j=P/E*d.value),g(o)?l[a.value]=o[a.value]+j:l=o+j,B(l),x.stopPropagation(),x.preventDefault()},q=()=>{e.disabled||(i.value==="draging"&&(B(l,!0),n("drag-end")),i.value="")},F=x=>In(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:r,classes:f,wrapperStyle:h,buttonStyle:k,onClick:A,onTouchStart:V,onTouchMove:$,onTouchEnd:q,...t.toRefs(e),barStyle:m,curValue:F,buttonIndex:a,containerClasses:u,markClassName:v,marksStyle:p,marksList:c,tickStyle:N}}}),f0={key:0,class:"fox-range-min"},m0={key:0,class:"fox-range-mark"},p0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],h0={key:0,class:"number"},g0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],y0={key:0,class:"number"},v0={key:1,class:"fox-range-max"};function b0(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",f0,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((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",m0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,i=>(t.openBlock(),t.createElementBlock("span",{key:i,class:t.normalizeClass(e.markClassName(i)),style:t.normalizeStyle(e.marksStyle(i))},[t.createTextVNode(t.toDisplayString(i)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(i))},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],i=>t.createElementVNode("view",{key:i,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(s=>{typeof i=="number"&&(e.buttonIndex=i),e.onTouchStart(s)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[3]||(n[3]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",h0,t.toDisplayString(e.curValue(i)),1))],4))],42,p0)),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(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=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",y0,t.toDisplayString(e.curValue()),1))],4))],40,g0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",v0,t.toDisplayString(+e.max),1))],2)}const jt=ne(d0,[["render",b0]]),{create:k0,scope:S0}=J("short-password"),C0=k0({components:{[fe.name]:fe,Tips:oe.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(S0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),i=t.ref(e.visible),s=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{i.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:s,range:d,close:c,onTips:()=>{n("tips")},show:i,...o}}}),w0={class:"fox-short-password-title"},N0={class:"fox-short-password-subtitle"},B0={class:"fox-short-password-wrapper"},A0={key:0,class:"fox-short-password__item-icon"},V0={class:"fox-short-password__message"},T0={class:"fox-short-password--error"},$0={key:0,class:"fox-short-password--forget"};function E0(e,n,a,o,l,r){const i=t.resolveComponent("Tips"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(s,{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",w0,t.toDisplayString(e.title),1),t.createElementVNode("view",N0,t.toDisplayString(e.desc),1),t.createElementVNode("div",B0,[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",A0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",V0,[t.createElementVNode("view",T0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",$0,[t.createVNode(i,{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 sa=ne(C0,[["render",E0]]);class x0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let D0=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 I0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const js=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);vt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:q0}=J("progress"),M0=q0({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),i=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),s=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:i,textStyle:s,progressOuter:o,insideText:l,slotDefault:n}}}),P0={class:"fox-progress"},L0={key:0,class:"fox-progress-text"};function z0(e,n,a,o,l,r){const i=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",P0,[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",L0,[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(i,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Wt=ne(M0,[["render",z0]]),{componentName:O0,create:R0,scope:F0}=J("uploader"),K0=R0({components:{[Wt.name]:Wt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(F0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[O0]:!0})),i=()=>{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)},s=v=>{v.value=""},c=v=>{n("file-item-click",{fileItem:v})},d=(v,p)=>{const N=new x0;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"),f(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 D0(N);e.autoUpload?w.upload():l.push(new Promise((C,S)=>{C(w)}))},f=(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 I0);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)})},k=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)=>{f(p),js(e.beforeDelete,{args:[v,o],done:()=>g(v,p)})},b=v=>{if(e.disabled)return;const p=v.target;let{files:N}=p;e.beforeUpload?e.beforeUpload(N).then(w=>m(w)):m(N),n("change",{fileList:o,event:v}),e.clearInput&&s(p)},m=v=>{const p=k(new Array().slice.call(v));h(p)};return{onChange:b,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:f,submit:u,renderInput:i}}}),U0={key:0,class:"fox-uploader__slot"},H0={key:0,class:"fox-uploader__preview-img"},j0={key:0,class:"fox-uploader__preview__progress"},W0={class:"fox-uploader__preview__progress__msg"},Y0=["onClick"],X0=["onClick","src"],Q0={key:3,class:"fox-uploader__preview-img__file"},G0=["onClick"],Z0={class:"file__name_tips"},J0={class:"tips"},_0={key:1,class:"fox-uploader__preview-list"},eb=["onClick"],tb={class:"file__name_tips"};function nb(e,n,a,o,l,r){const i=t.resolveComponent("Failure"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),f=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",U0,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",H0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",j0,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(i,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(s,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",W0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(i)])],8,Y0)):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,X0)):(t.openBlock(),t.createElementBlock("view",Q0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Z0,t.toDisplayString(h.name),1)],8,G0)])),t.createElementVNode("view",J0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",_0,[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",tb,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,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,eb),h.status=="uploading"?(t.openBlock(),t.createBlock(f,{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 ia=ne(K0,[["render",nb]]),ob="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9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Da8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ab,scope:rb}=J("number-keyboard"),sb=ab({components:{[fe.name]:fe},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(rb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),i=t.ref();function s(){const{customKey:m}=e;let v={id:"lock",type:"lock"},p=Array.isArray(m)?m:[m];return p.length===1&&(v={id:p[0],type:"custom"}),[...c(),v,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const m=[];for(let v=1;v<=9;v++)m.push({id:v,type:"number"});return e.randomKeys?m.sort(()=>Math.random()>.5?1:-1):m}function d(){const m=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"?m.push({id:p[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):m.push({id:0,type:"number"},{id:p[0],type:"custom"}):p.length===2&&m.push({id:p[0],type:"custom"},{id:0,type:"number"},{id:p[1],type:"custom"}),m}const f=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():s()),u=()=>{e.visible&&n("blur")},h=m=>{const v=i.value;v&&!v.contains(m.target)&&u()};t.watch(()=>e.visible,m=>{r.value=m,m?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function k(m,v){v.stopPropagation(),l.value=m.id,(m.type=="number"||m.type=="custom")&&(n("input",m.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+m.id)),m.type=="lock"&&b(),m.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(m){m.stopPropagation()}function y(m){m.preventDefault(),l.value=void 0}function b(){n("update:visible",!1),n("close")}return{...o,delImg:ob,lockImg:lb,clickKeyIndex:l,defaultKey:s,closeBoard:b,onTouchEnd:y,onTouchMove:g,onTouchstart:k,keysList:f,genCustomKeys:d,getBasicKeys:c,root:i,show:r}}}),ib={ref:"root"},cb={class:"fox-number-keyboard"},ub={key:0,class:"fox-number-keyboard__header"},db={class:"fox-number-keyboard__title"},fb={class:"fox-number-keyboard__body"},mb={class:"fox-number-keyboard__keys"},pb=["onTouchstart"],hb=["src"],gb=["src"],yb={key:0,class:"fox-number-keyboard__sidebar"},vb={class:"fox-key__wrapper"},bb=["src"];function kb(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",ib,[t.createVNode(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=s=>e.show=s),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",cb,[e.title?(t.openBlock(),t.createElementBlock("div",ub,[t.createElementVNode("h3",db,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]=s=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",fb,[t.createElementVNode("div",mb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,s=>(t.openBlock(),t.createElementBlock("div",{key:"key"+s.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":s.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":s.id==e.clickKeyIndex},{"fox-key--lock":s.type=="lock"},{"fox-key--delete":s.type=="delete"}]),onTouchstart:c=>e.onTouchstart(s,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[s.type=="number"||s.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.id),1)],64)):t.createCommentVNode("",!0),s.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,hb)):t.createCommentVNode("",!0),s.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,gb)):t.createCommentVNode("",!0)],42,pb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",yb,[t.createElementVNode("div",vb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=s=>e.onTouchstart({id:"delete",type:"delete"},s)),onTouchmove:n[4]||(n[4]=s=>e.onTouchMove(s)),onTouchend:n[5]||(n[5]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("img",{src:e.delImg},null,8,bb)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=s=>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 ca=ne(sb,[["render",kb]]),{componentName:Sb,create:Cb}=J("swipe"),wb=Cb({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(()=>({[Sb]:!0})),o=v=>v.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),i=t.ref(),s=t.computed(()=>o(i));let c=!1,d="",f="";const u=t.reactive({offset:0,moving:!1}),h=(v="")=>{c=!0,v&&(u.offset=v==="left"?-s.value:r.value),n("open",{name:e.name,position:d||v})},k=()=>{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&&f===d?p=-s.value:p=Math.abs(v)>s.value?-s.value:v;break;case"right":c&&f===d?p=r.value:p=Math.abs(v)>r.value?r.value:v;break}u.offset=p},b=tt();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,f=d,d){case"left":Math.abs(u.offset)<=s.value/2?k():(u.offset=-s.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?k():(u.offset=r.value,h());break}}},leftRef:l,rightRef:i,open:h,close:k}}}),Nb={class:"fox-swipe__left",ref:"leftRef"},Bb={class:"fox-swipe__content"},Ab={class:"fox-swipe__right",ref:"rightRef"};function Vb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("view",Nb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Bb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Ab,[t.renderSlot(e.$slots,"right")],512)],38)}const Yt=ne(wb,[["render",Vb]]),{componentName:Tb,create:$b}=J("action-sheet"),Eb=$b({components:{[fe.name]:fe,Loading:oe.Loading},props:{...Re,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(()=>({[Tb]:!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}}}),xb={key:0,class:"fox-action-sheet__title"},Db={key:1},Ib={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},qb={key:1,class:"fox-action-sheet__menu"},Mb=["onClick"],Pb={key:1},Lb={class:"fox-action-sheet__subdesc"};function zb(e,n,a,o,l,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{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",xb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Db,[e.description?(t.openBlock(),t.createElementBlock("view",Ib,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",qb,[(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:f=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(i,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Pb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Lb,t.toDisplayString(c[e.optionSubTag]),1)],14,Mb))),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 ua=ne(Eb,[["render",zb]]),{componentName:Ob,create:Rb}=J("backtop"),da=Rb({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(()=>({[Ob]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function s(g=0){o.scrollEl instanceof Window?window.scrollTo(0,g):o.scrollEl.scrollTop=g}function c(){let g=We(function y(){var b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),m=b*-o.scrollTop/e.duration+o.scrollTop;s(m),g=We(y),(b==e.duration||m==0)&&Zr(g)})}function d(){o.scrollEl.addEventListener("scroll",i,!1),o.scrollEl.addEventListener("resize",i,!1)}function f(){o.scrollEl.removeEventListener("scroll",i,!1),o.scrollEl.removeEventListener("resize",i,!1)}function u(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():s(),n("click",g)}function h(){k.value?o.scrollEl=k.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(()=>{f()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,f()});const k=t.computed(()=>{if(typeof a.content=="function"){const g=a.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];k.value&&g.push(k.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const m=t.h(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(m)}const b=t.h("div",{class:l.value,style:r.value,onClick:u},y);return g.push(b),g}}}),{componentName:Fb,create:Kb}=J("drag"),Ub=Kb({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(()=>({[Fb]:!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 i(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ke(()=>{i(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",Ke(()=>{i(u)})):u.style.left="0px"}function s(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ke(()=>{s(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const k=u.targetTouches[0];o.nx=k.clientX-o.position.x,o.ny=k.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const 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?Ke(()=>{i(h)}):Ke(()=>{s(h,y)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function f(u){const h=u.currentTarget,k=u.touches[0],g=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=k.clientX,o.position.y=k.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",f),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",d)}),{classes:l,myDrag:a,touchStart:f,touchMove:c,touchEnd:d}}});function Hb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[t.renderSlot(e.$slots,"default")],34)}const fa=ne(Ub,[["render",Hb]]),jb={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},Wb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Yb(e,n,a,o,l){return{props:{...Re,...jb},setup(r,{attrs:i,slots:s,emit:c}){const{toLocaleRefs:d}=se.useFoxI18n(n),f=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 k=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);vt(S)?S.then(B=>{B&&(k(!1),c("closed",C))}):S===!0&&(k(!1),c("closed",C))}else k(!1),c("closed",C)},y=()=>{g("confirm")},b=()=>{g("cancel")},m=()=>{g("close")},v=(C,S)=>Wb(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(s.header){const B=s.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:m},A=r.closeIcon??l,V=v(A,B);C.push(V)}}if(C.length===0)return null;const S={class:[`${u}__header`]};return t.h("view",S,C)},N=()=>{const C=[];if(s.default)C.push(s.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(s.footer)C.push(s.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:b};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??f.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??f.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:b};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??f.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??f.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 V={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},$=t.h("view",V,C),q=[`${u}__popup`];r.popClass&&q.push(r.popClass);const F={};r.width&&(F.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(F.height=typeof r.height=="number"?`${r.height}px`:r.height);const T={...be(r,Re),popClass:q.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":k,position:r.position,onClickOverlay:m,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,T,{default:()=>$})}}}}const{componentName:Xb,create:Qb,scope:Gb}=J("dialog"),Ws=Qb(Yb(Xb,Gb,fe,Le,oe.Close));class Zb{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 Jb{options=new Zb;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"),i=`dialog-${a.id}`;r.id=i;const s={setup(){return a.onUpdate=d=>{if(d===!1){const f=document.querySelector(`#${i}`);f&&f.parentNode?.removeChild(f)}},a?.onOpened&&a?.onOpened(),()=>t.h(Ws,a)}},c=t.createVNode(s);o.appendChild(r),t.render(c,r)}}const Xt=function(e){return new Jb(e)};Xt.install=e=>{e.use(Ws),e.config.globalProperties.$dialog=Xt};const _b={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}},ek=(e,n,a)=>({props:{..._b},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=se.useFoxI18n(n),s=i(o,["pullingText","loosingText","loadingText"]),c=_n(),d=t.ref(),f=Fs(d),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),k=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":s.pullingText.value;case"loosing":return r.loosing?"":s.loosingText.value;case"loading":return r.loading?"":s.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=he(o.headHeight)),S}),b=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)},m=(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=()=>f.value==window?Ks()==0:f.value&&f.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(),m(b(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&v()&&c.state.deltaY&&(u.status==="loosing"?(m(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):m(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,S=>{S?m(+o.headHeight,!0):m(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"]},V=t.h("dive",A,[k.value]);S.push(V);const $={class:["fox-pull-refresh-container-topbox"],style:y.value},q=t.h("div",$,S),F={class:"fox-pull-refresh-container",style:g.value},x=t.h("div",F,[q,r?.default?.()]),T={ref:d,class:h.value};return Jn()?Object.assign(T,{onTouchstart:N,onTouchmove:w,onTouchend:C}):Object.assign(T,{onMousedown:N,onMousemove:w,onMouseup:C}),t.h("div",T,[x])}}}),{componentName:tk,create:nk,scope:ok}=J("pull-refresh"),ma=nk(ek(tk,ok,oe.Loading)),{create:lk}=J("notify"),ak=lk({components:{[fe.name]:fe},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},i=t.ref(!1),s=t.watch(()=>e.visible,d=>{i.value=e.visible;const f=e.duration;d&&f&&(o=setTimeout(()=>{r()},f))},{immediate:!0});return{onAfterLeave:()=>{l(),s&&s(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:i}}});function rk(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.isShowPopup=s),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]=(...s)=>e.clickCover&&e.clickCover(...s))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const pa=ne(ak,[["render",rk]]),Zo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let pt=[],Rt=[];const Ys=e=>{if(e){const n=document.getElementById(e);Rt=Rt.filter(a=>a.id!==e),pt=pt.filter(a=>a!==e),n&&document.body.removeChild(n)}else pt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Rt=[],pt=[]},sk=e=>{const n=document.getElementById(e.id);if(n){const a=Rt.find(l=>l.id===e.id);a?e={...Zo,...a,...e}:e={...Zo,...e};const o=t.createVNode(pa,e);return t.render(o,n),o.component.data}},It=e=>{e.unmount=Ys;let n;if(e.id){if(n=e.id,pt.find(r=>r===e.id))return sk(e)}else n=new Date().getTime()+"";e={...Zo,...e},e.id=n,pt.push(e.id),Rt.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(pa,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},qt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ha={text(e,n={}){return qt(e),It({...n,msg:e})},primary(e,n={}){return qt(e),It({...n,msg:e,type:"primary"})},success(e,n={}){return qt(e),It({...n,msg:e,type:"success"})},danger(e,n={}){return qt(e),It({...n,msg:e,type:"danger"})},warn(e,n={}){return qt(e),It({...n,msg:e,type:"warning"})},hide(){Ys()},install(e){e.use(pa)}},{create:ik}=J("toast"),ck=ik({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},i=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,k=>{k&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const k=de(e.iconSize);return t.h(e.icon,{width:k,height:k,color:e.iconColor})},f=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:s,renderIcon:d,hasIcon:c,toastBodyClass:f,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),uk={key:1,class:"fox-toast-title"},dk=["innerHTML"];function fk(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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",uk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,dk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const ga=ne(ck,[["render",fk]]),Jo={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 ht=[],Ft=[];const Xs=e=>{if(e){const n=document.getElementById(e);Ft=Ft.filter(a=>a.id!==e),ht=ht.filter(a=>a!==e),n&&document.body.removeChild(n)}else ht.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ft=[],ht=[]},mk=e=>{const n=document.getElementById(e.id);if(n){const a=Ft.find(l=>l.id===e.id);a?e={...Jo,...a,...e}:e={...Jo,...e};const o=t.createVNode(ga,e);return t.render(o,n),Tt}},Mt=e=>{e.unmount=Xs;let n;if(e.id){if(n=e.id,ht.find(l=>l===e.id))return mk(e)}else n=new Date().getTime()+"";e={...Jo,...e},e.id=n,ht.push(e.id),Ft.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ga,e);return t.render(o,a),document.body.appendChild(a),Tt},ln=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Tt={text(e,n={}){return ln(e),Mt({...n,type:"text",msg:e})},success(e,n={}){return ln(e),Mt({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return ln(e),Mt({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return ln(e),Mt({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Mt({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Xs(e)},install(e){e.use(ga),e.config.globalProperties.$toast=Tt}},{componentName:s2,create:pk}=J("audio"),hk=pk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[jt.name]:jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var 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)},i=y=>{l.currentTime=parseInt(y.target.currentTime)},s=()=>{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)},f=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)},k=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},g=y=>{if(!y)return"00:00:00";let b=parseInt(y),m=Math.floor(b/3600),v=Math.floor((b-m*3600)/60),p=b-m*3600-v*60,N="";return N+=("0"+m.toString()).slice(-2)+":",N+=("0"+v.toString()).slice(-2)+":",N+=("0"+p.toString()).slice(-2),N};return t.watch(()=>l.currentTime,y=>{f(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:k,forward:d,fastBack:s,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:s,forward:d,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:i,handleMute:k,onCanplay:r,slots:a}}}),gk={class:"fox-audio"},yk={key:0,class:"fox-audio__progress"},vk={class:"fox-audio__time"},bk={class:"fox-audio__bar"},kk={class:"fox-audio__time"},Sk={key:1,class:"fox-audio__icon"},Ck=["controls","src","preload","autoplay","loop","muted"];function wk(e,n,a,o,l,r){const i=t.resolveComponent("fox-range"),s=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",gk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",yk,[t.createElementVNode("div",vk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",bk,[t.createVNode(i,{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",kk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Sk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(s,{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,Ck)])}const ya=ne(hk,[["render",wk]]),{componentName:i2,create:Nk,scope:Bk}=J("audio-operate"),Ak=Nk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Bk),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),Vk={class:"fox-audio-operate"};function Tk(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Vk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...s)=>e.fastBack&&e.fastBack(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...s)=>e.forward&&e.forward(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...s)=>e.handleMute&&e.handleMute(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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 va=ne(Ak,[["render",Tk]]),{componentName:$k,create:Ek}=J("avatar"),xk=Ek({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"],i=t.inject("avatarGroup",null),s=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=i?.avatarGroupRef?.value?.children;g&&k(g)});const f=t.computed(()=>({[$k]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||i?.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&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.props?.maxColor}`})),k=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=s?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=i?.props?.maxCount&&(d.showMax=!0)};return{classes:f,styles:u,maxStyles:h,avatarGroup:i,visible:c,avatarRef:s,...t.toRefs(d)}}});function Dk(e,n,a,o,l,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Qt=ne(xk,[["render",Dk]]),{componentName:Ik,create:qk}=J("avatar-group"),Mk=qk({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(()=>({[Ik]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Pk(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 ba=ne(Mk,[["render",Pk]]);var Sn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Sn||{});function Lk(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const i=e[r],s=a(i,n);if(s===1)return r;s===2?o=r+1:s===3&&(l=r-1)}return r}const{componentName:zk,create:Ok}=J("list"),Qr=document.documentElement.clientHeight||document.body.clientHeight||667,Rk=Ok({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Qr},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}),i=t.computed(()=>Math.min(e.containerHeight,Qr)),s=t.computed(()=>Math.ceil(i.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+s.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[zk]:!0})),f=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 m=0;m<r.list.length;++m)r.cachePositions[m]={index:m,height:e.height,top:m*e.height,bottom:(m+1)*(e.height+e.margin),dValue:0}},k=()=>{let m=l.value.childNodes;m=Array.from(m).filter(S=>S.nodeType===1);const v=m[0];m.forEach((S,B)=>{if(!S)return;const A=qe(S),{height:V}=A,q=r.cachePositions[B+r.start].height-V;q&&(r.cachePositions[B+r.start].bottom-=q,r.cachePositions[B+r.start].height=V,r.cachePositions[B+r.start].dValue=q)});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=(m=0)=>{let v=Lk(r.cachePositions,m,(N,w)=>{const C=N.bottom;return C===w?Sn.eq:C<w?Sn.lt:Sn.gt});return r.cachePositions[v].bottom<m&&(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 m=a.value?.scrollTop,{originStartIndex:v}=r,p=g(m);p!==v&&(r.originStartIndex=p,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(m>r.scrollTop?"scroll-up":"scroll-down",m),r.scrollTop=m};return t.watch(()=>e.listData,m=>{if(r.list=m.slice(),r.list.length===m.length)h(),k();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:f,classes:d,getContainerHeight:i,handleScrollEvent:b}}});function Fk(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]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),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,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:i},[t.renderSlot(e.$slots,"default",{item:i,index:s+e.start})]))),128))],4)],38)}const ka=ne(Rk,[["render",Fk]]),{componentName:Kk,create:Uk}=J("circleprogress"),Hk=Uk({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(()=>({[Kk]:!0})),r=t.computed(()=>{const f=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${f} 0 90 a 45 45 0 1, ${f} 0 -90`}),i=t.computed(()=>De(e.color)?`url(#${o})`:e.color),s=t.computed(()=>{let f=283,u=f*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${f}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!De(e.color))return;let f=e.color;const u=Object.keys(f).sort((k,g)=>parseFloat(k)-parseFloat(g));let h=[];return u.map((k,g)=>{let y={key:"",value:""};y.key=k,y.value=f[k],h.push(y)}),h});return{classes:l,hoverStyle:s,pathStyle:c,path:r,hoverColor:i,stop:d,slotDefault:a,refRandomId:o}}}),jk={viewBox:"0 0 100 100"},Wk=["id"],Yk=["offset","stop-color"],Xk=["d","stroke-width"],Qk=["d","stroke","stroke-linecap","stroke-width"],Gk={class:"fox-circleprogress-text"},Zk={key:0};function Jk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",jk,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(i,s)=>(t.openBlock(),t.createElementBlock("stop",{key:s,offset:i.key,"stop-color":i.value},null,8,Yk))),128))],8,Wk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Xk),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,Qk)])),t.createElementVNode("div",Gk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Zk,t.toDisplayString(e.progress)+"%",1))])],6)}const Sa=ne(Hk,[["render",Jk]]),{componentName:_k,create:eS}=J("noticebar"),tS=eS({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),i=t.computed(()=>({[_k]:!0})),s=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":s.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}),f=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)},k=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)},b=()=>{m(),r.timer=setInterval(m,~~(e.height/e.speed/4*1e3)+e.standTime)},m=()=>{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():b()},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:s,classes:i,barStyle:d,contentStyle:f,horseLampStyle:u,wrap:o,content:l,handleClick:k,onClickIcon:g,onAnimationEnd:y,go:N,handleClickIcon:w,slots:a,toPxDesc:he,wrapContentClass:c}}}),nS={key:0,class:"fox-noticebar__page-lefticon"},oS={ref:"wrap",class:"fox-noticebar__page-wrap"},lS={class:"showNotica"},aS=["onClick"];function rS(e,n,a,o,l,r){const i=t.resolveComponent("Notice"),s=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",nS,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(i,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",oS,[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(s,{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",lS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,f)=>(t.openBlock(),t.createBlock(c,{key:f,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,f)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:f,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,aS))),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(s,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Ca=ne(tS,[["render",rS]]),sS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19f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OqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:c2,create:uS,scope:dS}=J("empty"),fS={empty:sS,error:iS,network:cS},mS=uS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=se.useFoxI18n(dS),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}`:""),s=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:fS[o.value];return{...a,imageUrl:s,imgStyle:r}}}),pS={class:"fox-empty"},hS=["src"],gS={key:1,class:"fox-empty-description"};function yS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",pS,[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,hS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",gS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const wa=ne(mS,[["render",yS]]),{create:vS,scope:bS}=J("video"),kS=vS({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}=se.useFoxI18n(bS),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 i=()=>{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?s():(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",Bn(u,1e3)))},s=()=>{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",()=>{f()}),o.videoElm.addEventListener("timeupdate",Bn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{k()}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 V="";return S!=0?V=S+":"+B+":"+A:V=B+":"+A,V},f=()=>{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)},k=()=>{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=()=>{},m=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,i()},w=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{i()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:k,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:b,touchSlidMove:m,touchSlidEnd:v,retry:N,fullScreen:w,t:a}}}),SS={class:"fox-video",ref:"videocon"},CS=["muted","autoplay","loop","poster","controls","preload"],wS=["src","type"],NS={class:"fox-video-controller__now"},BS={class:"fox-video-controller__progress"},AS={class:"fox-video-controller__progress-value",ref:"progressBar"},VS={class:"fox-video-controller__played",ref:"playedBar"},TS={class:"fox-video-controller__total"},$S={class:"fox-video-error"},ES={class:"fox-video-error-tip"};function xS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",SS,[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]=(...i)=>e.handleError&&e.handleError(...i))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,wS)],40,CS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))}),t.createElementVNode("div",NS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",BS,[t.createElementVNode("div",AS,[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(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(i=>e.touchSlidEnd(i),["stop"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",VS,null,512)],512)]),t.createElementVNode("div",TS,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]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",$S,[t.createElementVNode("p",ES,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const wt=ne(kS,[["render",xS]]),{create:DS,componentName:IS}=J("steps"),Na=DS({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 s=IS;return{[s]:!0,[`${s}-${e.direction}`]:!0,[`${s}-dot`]:!!e.progressDot}}),r=s=>{s&&o.children.push(s)},i=s=>{n("click-step",s)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:i}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:qS,componentName:MS}=J("step"),PS=qS({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()),i=t.computed(()=>{const c=MS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),s=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:i,handleClickStep:s}}}),LS={class:"fox-step-head"},zS={class:"fox-step-icon-inner"},OS={key:1,class:"fox-step-inner"},RS={class:"fox-step-main"},FS={class:"fox-step-title"},KS={key:0},US={key:0,class:"fox-step-content"},HS=["innerHTML"];function jS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[t.createElementVNode("view",LS,[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",zS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",OS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",RS,[t.createElementVNode("view",FS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",KS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",US,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,HS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Ba=ne(PS,[["render",jS]]),{create:WS,componentName:Ao}=J("swiper"),YS=WS({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=tt(),i=t.computed(()=>({[Ao]:!0})),s=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const E=Ao;return{[`${E}-inner`]:!0,[`${E}-vertical`]:s.value}}),d=t.computed(()=>{const E=Ao;return{[`${E}-pagination`]:!0,[`${E}-pagination-vertical`]:s.value}}),f=t.computed(()=>s.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),k=t.computed(()=>l[s.value?"height":"width"]),g=t.computed(()=>h.value*k.value),y=t.computed(()=>l.rect?(s.value?l.rect.height:l.rect.width)-k.value*h.value:0),b=t.computed(()=>(l.active+h.value)%h.value),m=()=>{let E=0;E=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${s.value?"Y":"X"}(${E}px)`,[s.value?"height":"width"]:`${k.value*h.value}px`,[s.value?"width":"height"]:`${s.value?l.width:l.height}px`}},v=E=>{let j=[];const H=l.childrenVNode.length;let O=a?.default?.();if(O=O.filter(_=>_.children&&Array.isArray(_.children)),O.forEach(_=>{j=j.concat(_.children)}),!H)l.childrenVNode=j.slice(),E.proxy&&l.children.push(E.proxy);else if(H>j.length)l.children=l.children.filter(_=>E.proxy!==_);else if(H<j.length){for(let _=0;_<H;_++)if(j[_].key!==l.childrenVNode[_].key){E.proxy&&l.children.splice(_,0,E.proxy),E.vnode&&l.childrenVNode.splice(_,0,E.vnode);break}H!==j.length&&(E.proxy&&l.children.push(E.proxy),E.vnode&&l.childrenVNode.push(E.vnode))}else l.childrenVNode=j.slice(),E.proxy&&l.children.push(E.proxy)},p=(E,j=0)=>{let H=E*k.value;e.loop||(H=Math.min(H,-y.value));let O=j-H;return e.loop||(O=Ue(O,y.value,0)),O},N=E=>{const{active:j}=l;return E?e.loop?Ue(j+E,-1,h.value):Ue(j+E,0,h.value-1):j},w=({pace:E=0,offset:j=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:O}=l,_=N(E),U=p(_,j);if(e.loop){if(l.children[0]&&U!==y.value){const I=U<y.value;l.children[0].setOffset(I?g.value:0)}if(l.children[h.value-1]&&U!==0){const I=U>0;l.children[h.value-1].setOffset(I?-g.value:0)}}l.active=_,l.offset=U,H&&O!==l.active&&n("change",b.value),m()},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=E=>{C(),r.reset(),We(()=>{We(()=>{l.moving=!1,w({pace:E,isEmit:!0})})})},A=()=>{B(-1)},V=()=>{B(1)},$=E=>{C(),r.reset(),We(()=>{l.moving=!1;let j;e.loop&&h.value===E?j=l.active===0?0:E:j=E%h.value,w({pace:j-l.active,isEmit:!0})})},q=()=>{e.autoPlay<=0||h.value<=1||(S(),l.autoplayTimer=setTimeout(()=>{V(),q()},Number(e.autoPlay)))},F=(E=+e.initPage)=>{S(),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,m(),q()},x=E=>{e.isPreventDefault&&E.preventDefault(),e.isStopPropagation&&E.stopPropagation(),e.touchable&&(r.start(E),l.touchTime=Date.now(),S(),C())},T=E=>{e.touchable&&l.moving&&(r.move(E),u.value&&w({offset:f.value}))},P=E=>{if(!e.touchable||!l.moving)return;const j=f.value/(Date.now()-l.touchTime);if((Math.abs(j)>.3||Math.abs(f.value)>+(k.value/2).toFixed(2))&&u.value){let O=0;const _=s.value?r.offsetY.value:r.offsetX.value;e.loop?O=_>0?f.value>0?-1:1:0:O=-Math[f.value>0?"ceil":"floor"](f.value/k.value),w({pace:O,isEmit:!0})}else f.value&&w({pace:0});l.moving=!1,m(),q()};return t.provide("parent",{props:e,size:k,relation:v}),Ee({prev:A,next:V,to:$}),t.onDeactivated(()=>{S()}),t.onBeforeUnmount(()=>{S()}),t.watch(()=>e.initPage,E=>{t.nextTick(()=>{F(Number(E))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,E=>{E>0?q():S()}),{state:l,classes:i,classesInner:c,classesPagination:d,container:o,activePagination:b,onTouchStart:x,onTouchMove:T,onTouchEnd:P}}});function XS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===s?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===s}),key:s},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Nt=ne(YS,[["render",XS]]),{create:QS,componentName:GS}=J("swiper-item"),ZS=QS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[GS]:!0})),r=t.computed(()=>{const s={},c=a?.props.direction;return a?.size.value&&(s[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(s.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),s}),i=s=>{o.offset=s};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),Ee({setOffset:i}),{style:r,classes:l}}});function JS(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 Bt=ne(ZS,[["render",JS]]),Qs={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:_S}=J("image-preview-item"),e1=_S({props:{...Qs,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:{[wt.name]:wt,[Bt.name]:Bt},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=tt(),l=t.computed(()=>{const{rootWidth:A,rootHeight:V}=e,$=V/A;return a.imageRatio>$}),r=t.computed(()=>{const A=e.image;if(A&&A.src){const{scale:V,moveX:$,moveY:q,moving:F,zooming:x}=a,T={transitionDuration:x||F?"0s":".3s"};if(V!==1){const P=$/V,E=q/V;T.transform=`scale(${V}, ${V}) translate(${P}px, ${E}px)`}return T}return{}}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:V}=e,$=l.value?V/a.imageRatio:A;return Math.max(0,(a.scale*$-A)/2)}return 0}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:V}=e,$=l.value?V:A*a.imageRatio;return Math.max(0,(a.scale*$-V)/2)}return 0}),c=A=>{const{naturalWidth:V,naturalHeight:$}=A.target;a.imageRatio=$/V},d=()=>{f(1),a.moveX=0,a.moveY=0},f=A=>{A=Ue(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;f(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 k,g,y,b,m,v,p;const N=A=>{const{touches:V}=A,{offsetX:$}=o;o.start(A),p=V.length,k=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,b=h(A.touches))},w=A=>{const{touches:V}=A;if(o.move(A),(a.moving||a.zooming)&&Po(A,!0),a.moving){const{deltaX:$,deltaY:q}=o,F=$.value+k,x=q.value+g;a.moveX=Ue(F,-i.value,i.value),a.moveY=Ue(x,-s.value,s.value)}if(a.zooming&&V.length===2){const $=h(V),q=y*$/b;f(q)}},C=()=>{if(p==1&&e.video&&e.video.source||p>1)return;const{offsetX:A,offsetY:V}=o,$=Date.now()-v,q=250,F=5;A.value<F&&V.value<F&&$<q&&(m?(clearTimeout(m),m=null,u()):m=setTimeout(()=>{e.contentClose&&n("close"),m=null},q))},S=A=>{let V=!1;(a.moving||a.zooming)&&(V=!0,a.moving&&k===a.moveX&&g===a.moveY&&(V=!1),A.touches.length||(a.zooming&&(a.moveX=Ue(a.moveX,-i.value,i.value),a.moveY=Ue(a.moveY,-s.value,s.value),a.zooming=!1),a.moving=!1,k=0,g=0,y=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Po(A,V),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}}}),t1=["src"];function n1(e,n,a,o,l,r){const i=t.resolveComponent("fox-video"),s=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(s,{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,t1)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const o1=ne(e1,[["render",n1]]),{create:l1}=J("image-preview"),a1=l1({props:{...Qs,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:o1,CircleClose:oe.CircleClose,[fe.name]:fe,[Nt.name]:Nt},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const f="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${f}-right`:`${f}-left`}`}),r=t.computed(()=>In(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=f=>{f!==o.active&&(o.active=f,n("change",o.active))},s=()=>{js(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},d=()=>{if(a.value){const f=qe(a.value);o.rootHeight=f.height,o.rootWidth=f.width}};return t.watch(()=>e.show,f=>{o.showPop=f,f&&(i(e.initNo),d())}),t.watch(()=>e.initNo,f=>{f!=o.active&&i(f)}),t.onMounted(()=>{i(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:s,mergeImages:r,setActive:i,iconClasses:l}}}),r1={class:"fox-image-preview",ref:"swipeRef"},s1={key:0,class:"fox-image-preview-index"};function i1(e,n,a,o,l,r){const i=t.resolveComponent("image-preview-item"),s=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]=f=>e.showPop=f),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",r1,[e.showPop?(t.openBlock(),t.createBlock(s,{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,(f,u)=>(t.openBlock(),t.createBlock(i,{key:u,video:u<e.videos.length?f:{},image:u>=e.videos.length?f:{},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",s1,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]=(...f)=>e.onClose&&e.onClose(...f))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Gs=ne(a1,[["render",i1]]);class c1{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 u1{options=new c1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Mi(a,{name:"image-preview",components:[fe,wt,Nt,Bt,ut],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Gs,a))}})})}}const ho=e=>new u1(e);ho.install=e=>{e.use(Gs)};function d1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:u2,create:f1}=J("countup"),m1=f1({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:i,scrolling:s,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,A)=>{u(),b(0)}),t.watch(()=>e.machinePrizeLevel,(B,A)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,A)=>{r.current=B,r.valFlag=!1,f()}),t.watch(()=>e.endNum,(B,A)=>{r.current=e.initNum,r.valFlag=!1,f()});const f=()=>{if(r.valFlag)return!1;i&&(s||c?d!="machine"&&b():(y(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,A,V)=>{const $=(B.toString().split(".")[1]||"").length,q=(A.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max($,q));return Number((B*F-A*F).toFixed(0))/F},k=B=>{let{num_total_len:A,pointNum:V,initDigit1:$,initDigit2:q,sortFlag:F}=r,x=F=="add"||F=="equal"?String(q)[B-(A-V)]:10-Number(String(q)[B-(A-V)]),T=F=="add"||F=="equal"?String($)[B]:10-Number(String($)[B]),P=B>A-V-1?-x*100+"%":B<=String($).length-1?-T*100+"%":0;return P=="-1000%"&&(P=0),P},g=B=>{let{num_total_len:A,pointNum:V,initDigit1:$,initDigit2:q,sortFlag:F}=r,x=String(q)[B-(A-V)];return B>A-V-1?x||0:B<=String($).length-1?String($)[B]:0},y=()=>{let{endNum:B,initNum:A,speed:V,toFixed:$}=e,q=setInterval(()=>{if(A>B)if(r.current<=B||r.current<=V)r.current=B.toFixed($),clearInterval(q),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(V));r.current=F.toFixed($)}else if(r.current>=B)r.current=B.toFixed($),clearInterval(q),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(V));r.current=F.toFixed($)}},e.during)},b=B=>{let{initNum:A,endNum:V,toFixed:$,customBgImg:q}=e;q&&(A=e.customChangeNum);let F,x,T,P;A!=0?($!=0&&(A=Number(A.toFixed($))),String(A).indexOf(".")>-1?(F=String(A).split(".")[0].length,x=String(A).split(".")[1].length):(F=String(A).length,x=0)):(F=1,x=0),V!=0?($!=0&&(V=Number(V.toFixed($))),String(V).indexOf(".")>-1?(T=String(V).split(".")[0].length,P=String(V).split(".")[1].length):(T=String(V).length,P=0)):(T=1,P=0);let E=F>=T?F:T,j=x>=P?x:P;r.num_total_len=E+j,r.pointNum=j,A>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(A,V),r.numberVal=Number(String(A))):A<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(V,A),r.numberVal=Number(String(V))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var O=r.numberVal*H;if(r.relNum=O,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(O).length),String(A).indexOf(".")>-1){let _=String(A).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=A,r.initDigit2=0;s&&!q?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];m(_)}):B!==0&&N()},m=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"),V;if(r.sortFlag=="add"?V=parseInt(String(A))+1:V=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,B.setAttribute("turn-number",String(V)),(B.style.transition=="none 0s ease 0s"||V==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var $=null;B.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,B.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),B.style.transition="none",B.style.top="0",p(B,V)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*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)}};d1({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let $=A*(V+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let q=r.prizeYPrev[V]?r.prizeYPrev[V]:0,F=$+q+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-q);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[V]),S(V,F,q)},500*V)}});const S=(B,A,V)=>{let $=setInterval(()=>{if(V<=A)V+=10,r.prizeY[B]=parseFloat(String(V));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[B]=A,r.finshMachine==e.machineNum){let q=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(x=>{let T=x;for(;T>q;)T-=q;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(()=>{f()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:k,turnNumber:g}}}),p1={class:"fox-countup"},h1=["turn-number"];function g1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",p1,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[s]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s==e.num_total_len-e.pointNum?s*1.5:s*1.3:s)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[s]*e.numHeight+e.customSpacNum*+String(e.relNum)[s])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:i,style:t.normalizeStyle({top:e.topNumber(s),left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s*1.1:s)+"px"}),"turn-number":e.turnNumber(s)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,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,h1))),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 Aa=ne(m1,[["render",g1]]),y1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:v1,create:b1}=J("countdown"),k1=b1({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(()=>({[v1]:!0})),r=t.computed(()=>c(o.restTime)),i=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-y1(e.startTime),o.counting||(o.counting=!0),s()},s=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const k=Date.now()-o.diffTime,g=Math.max(o.handleEndTime-k,0);o.restTime=g,g||(o.counting=!1,u(),n("on-end")),g>0&&s()}}))},c=(k,g)=>{const y=k;let b={d:0,h:0,m:0,s:0,ms:0};const m=1e3,v=60*m,p=60*v,N=24*p;return y>0&&(b.d=y>=m?Math.floor(y/N):0,b.h=Math.floor(y%N/p),b.m=Math.floor(y%p/v),b.s=Math.floor(y%v/m),b.ms=Math.floor(y%m)),g=="custom"?b:d({...b})},d=k=>{let{d:g,h:y,m:b,s:m,ms:v}=k,p=e.format;if(p.includes("DD")?p=p.replace("DD",ot(g)):y+=Number(g)*24,p.includes("HH")?p=p.replace("HH",ot(y)):b+=Number(y)*60,p.includes("mm")?p=p.replace("mm",ot(b)):m+=Number(b)*60,p.includes("ss")?p=p.replace("ss",ot(m)):v+=Number(m)*1e3,p.includes("S")){const N=ot(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},f=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),s(),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?i():o.restTime=e.time}),t.watch(()=>o.restTime,k=>{let g=c(k,"custom");n("update:modelValue",g),n("input",g)}),t.watch(()=>e.paused,(k,g)=>{g?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),s()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,k=>{i()}),t.watch(()=>e.startTime,k=>{i()}),{...t.toRefs(e),slots:a,classes:l,start:f,pause:u,renderTime:r,reset:h}}}),S1=["innerHTML"];function C1(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,S1))],2)}const Va=ne(k1,[["render",C1]]),{create:w1}=J("badge"),N1=w1({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}}}),B1={class:"fox-badge"},A1=["textContent"];function V1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",B1,[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,A1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Ta=ne(N1,[["render",V1]]),{componentName:T1,create:$1}=J("tag"),E1=$1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const i=T1;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function x1(e,n,a,o,l,r){const i=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Gt=ne(E1,[["render",x1]]),{create:D1}=J("popover"),I1=D1({components:{FoxPopup:fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),i=t.ref();const s=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),f=t.computed(()=>{let v={};if(!r.value||!i.value)return{};const p=i.value.width,N=i.value.height,{width:w,height:C,left:S,top:B}=r.value,{location:A,offset:V}=e,$=A.split("-")[0],q=A.split("-")[1];let F=0,x=0;if(In(V)&&V.length==2&&(F+=Number(V[1]),x+=Number(V[0])),w){if(["bottom","top"].includes($)){const T=$=="bottom"?C+F:-(N+F);v.top=`${B+T}px`,q||(v.left=`${-(p-w)/2+S+x}px`),q=="start"&&(v.left=`${S+x}px`),q=="end"&&(v.left=`${r.value.right+x}px`)}if(["left","right"].includes($)){const T=$=="left"?-(p+F):w+F;v.left=`${S+T}px`,q||(v.top=`${B-N/2+C/2-4+x}px`),q=="start"&&(v.top=`${B+x}px`),q=="end"&&(v.top=`${B+C+x}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(()=>{i.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",m,!0),h()):window.removeEventListener("touchstart",m,!0)});const k=v=>{n("update",v),n("update:visible",v)},g=()=>{k(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},b=(v,p)=>{!v.disabled&&n("choose",v,p),e.closeOnClickAction&&y()},m=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:s,closePopover:y,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:f,customStyle:u,popoverArrowStyle:c,renderIcon:ws}}}),q1={ref:"popoverContentRef",class:"fox-popover-content-group"},M1=["onClick"],P1={class:"fox-popover-menu-item-name"};function L1(e,n,a,o,l,r){const i=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]=(...s)=>e.openPopover&&e.openPopover(...s))},[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(i,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.showPopup=s),"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",q1,[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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([s.className,s.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(s,c),["stop"])},[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(s.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",P1,t.toDisplayString(s.name),1)],10,M1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Zt=ne(I1,[["render",L1]]),z1=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:O1}=J("skeleton"),R1=O1(z1({[Qt.name]:Qt})),F1={key:0},K1={key:1,class:"fox-skeleton"},U1={key:0,class:"fox-skeleton-animation"},H1={class:"fox-skeleton-content"};function j1(e,n,a,o,l,r){const i=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",K1,[e.animated?(t.openBlock(),t.createElementBlock("view",U1)):t.createCommentVNode("",!0),t.createElementVNode("view",H1,[e.avatar?(t.openBlock(),t.createBlock(i,{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),s=>(t.openBlock(),t.createElementBlock("view",{key:s,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",F1,[t.renderSlot(e.$slots,"default")]))}const $a=ne(R1,[["render",j1]]),{create:W1,componentName:Y1}=J("collapse"),X1=W1({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(()=>({[Y1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,d,f=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,d,f)},i=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(f=>f!==c);r(d,c,!1)}else{const d=o.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},s=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:i,isExpanded:s}),{collapseDom:a,classes:l}}});function Q1(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 Ea=ne(X1,[["render",Q1]]),{create:G1,componentName:Z1}=J("collapse-item"),J1=G1({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=Z1;return{[h]:!0,[h+"__border"]:e.border}}),i=t.computed(()=>l?l.isExpanded(e.name):!1),s=t.ref(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},d=()=>{i.value&&(s.value="auto")},f=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;s.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;s.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return t.watch(i,h=>{h?f():u()}),{classes:r,renderIcon:ws,wrapperRef:n,contentRef:a,open:f,toggle:c,wrapperHeight:s,expanded:i,onTransitionEnd:d}}}),_1={class:"fox-collapse-item__title-main"},eC={class:"fox-collapse-item__title-main-value"},tC=["innerHTML"],nC={key:2,class:"fox-collapse-item__title-label"},oC={key:0,class:"fox-collapse-item__title-sub"},lC=["innerHTML"],aC={key:0,class:"fox-collapse__item-extraWrapper"},rC={class:"fox-collapse__item-extraWrapper__extraRender"},sC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function iC(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]=(...i)=>e.toggle&&e.toggle(...i))},[t.createElementVNode("view",_1,[t.createElementVNode("view",eC,[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,tC)),e.label?(t.openBlock(),t.createElementBlock("view",nC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",oC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,lC)),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",aC,[t.createElementVNode("div",rC,[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]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[t.createElementVNode("view",sC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const xa=ne(J1,[["render",iC]]),cC=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:uC,create:dC,scope:fC}=J("table"),mC=dC({components:{RenderColumn:cC,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(fC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[uC]:!0})),i=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),s=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",d=k=>e.columns.filter(g=>g.key===k)[0],f=k=>{const g=e.columns.filter(y=>y.key===k);return g[0].stylecolumn?g[0].stylecolumn:""},u=k=>{k.sorter&&(n("sorter",k),l.curData=typeof k.sorter=="function"?l.curData.sort(k.sorter):k.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{l.curData=k.slice()}),{...t.toRefs(l),classes:r,cellClasses:i,getColumnItem:d,getColumnItemStyle:f,handleSorterClick:u,sortDataItem:h,t:o,stylehead:s,stylecolumn:c}}}),pC={class:"fox-table__main__head"},hC={class:"fox-table__main__head__tr"},gC=["onClick"],yC={class:"fox-table__main__body"},vC={key:1},bC={key:0,class:"fox-table__nodata"},kC={key:0,class:"fox-table__nodata__text"},SC={key:1,class:"fox-table__summary"},CC=["innerHTML"];function wC(e,n,a,o,l,r){const i=t.resolveComponent("DownArrow"),s=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",pC,[t.createElementVNode("view",hC,[(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(i,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,gC))),128))])]),t.createElementVNode("view",yC,[(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,f])=>(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 f=="function"?(t.openBlock(),t.createBlock(s,{key:0,slots:[f,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",vC,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",bC,[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",kC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",SC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,CC)])):t.createCommentVNode("",!0)],2)}const Da=ne(mC,[["render",wC]]),{componentName:NC,create:BC}=J("ellipsis"),AC=BC({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(),i=t.reactive({exceeded:!1,expanded:!1}),s=t.computed(()=>({[NC]:!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 m=h(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(m*(Number(e.rows)+.5)+h(y.paddingTop)+h(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),d()},d=()=>{if(o.offsetHeight<=l)i.exceeded=!1,document.body.removeChild(o);else{i.exceeded=!0;const y=e.content.length,b=Math.floor((0+y)/2),m=e.direction==="middle"?u([0,b],[b,y]):f(0,y);r.value=m,document.body.removeChild(o)}},f=(y,b)=>{const m=i.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+m:o.innerText=m+e.symbol+e.content.slice(p,v),o.offsetHeight<=l?e.direction==="end"?f(p,b):f(y,p):e.direction==="end"?f(y,p):f(p,b)},u=(y,b)=>{const m=i.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),N=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,p)+e.symbol+m+e.symbol+e.content.slice(N,v),o.offsetHeight<=l?u([p,y[1]],[b[0],N]):u([y[0],p],[N,b[1]])},h=y=>{if(!y)return 0;const b=y.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},k=y=>{y==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(i),root:a,ellipsis:r,classes:s,clickHandle:k,handleClick:g}}}),VC={key:0},TC={key:1},$C={key:2};function EC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",VC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",TC,[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(i=>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",$C,[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(i=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const Ia=ne(AC,[["render",EC]]),{componentName:xC,create:DC}=J("animate"),IC=DC({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 i=t.computed(()=>({"fox-animate__container":!0,[`${xC}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const s=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:i,handleClick:s}}}),qC={class:"fox-animate"};function MC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",qC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const qa=ne(IC,[["render",MC]]),{componentName:PC,create:LC}=J("watermark"),zC=LC({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:i,height:s,rotate:c,image:d,imageWidth:f,imageHeight:u,content:h,fontStyle:k,fontWeight:g,fontColor:y,fontSize:b,fontFamily:m}=e,v=()=>{const N=document.createElement("canvas"),w=window.devicePixelRatio,C=N.getContext("2d"),S=`${(l+i)*w}px`,B=`${(r+s)*w}px`,A=i*w,V=s*w;if(N.setAttribute("width",S),N.setAttribute("height",B),C){if(d){C.translate(A/2,V/2),C.rotate(Math.PI/180*Number(c));const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=d,$.onload=()=>{C.drawImage($,-f*w/2,-u*w/2,f*w,u*w),C.restore(),a.base64Url=N.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(A/2,V/2),C.rotate(Math.PI/180*Number(c));const $=Number(b)*w;C.font=`${k} normal ${g} ${$}px/${V}px ${m}`,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,i,s,c,d,f,u,h,k,g,y,b,m],()=>{v()});const p=t.computed(()=>{const N=PC;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:p}}});function OC(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 Ma=ne(zC,[["render",OC]]);function RC(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:FC,create:KC}=J("trend-arrow"),UC=KC({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[FC]:!0})),o=t.computed(()=>{const{rate:r,digits:i,showSign:s,showZero:c}=e;n.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${s&&r!==0?n.rateTrend?"+":"-":""}${RC(Number(d),i)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:i,syncTextColor:s,textColor:c,rate:d}=e;return{color:d===0?c:s?n.rateTrend?i:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function HC(e,n,a,o,l,r){const i=t.resolveComponent("TriangleUp"),s=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(i,{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(s,{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 Pa=ne(UC,[["render",HC]]),{create:jC}=J("tour"),WC=jC({components:{[Zt.name]:Zt,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:f,maskWidth:u,maskHeight:h}=e,{width:k,height:g,left:y,top:b}=o.value,m=[y+k/2,b+g/2],v=Number(u||k),p=Number(h||g);return{width:`${v+ +f[1]*2}px`,height:`${p+ +f[0]*2}px`,top:`${m[1]-p/2-+f[0]}px`,left:`${m[0]-v/2-+f[1]}px`}}),i=f=>{f=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,s()}),n("change",a.active)},s=()=>{const f=document.querySelector(`#${e.steps[a.active].target}`),u=qe(f);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,s()}),t.watch(()=>e.modelValue,f=>{f&&s(),a.active=0,a.showTour=f,a.showPopup=f}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:i,close:c,handleClickMask:d}}}),YC={key:0,class:"fox-tour-content"},XC={key:0,class:"fox-tour-content-top"},QC={class:"fox-tour-content-inner"},GC={class:"fox-tour-content-bottom"},ZC={class:"fox-tour-content-bottom-init"},JC={class:"fox-tour-content-bottom-operate"},_C={key:1,class:"fox-tour-content fox-tour-content-tile"},ew={class:"fox-tour-content-inner"};function tw(e,n,a,o,l,r){const i=t.resolveComponent("Close"),s=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(s,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=f=>e.showPopup=f),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",YC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",XC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(i,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",QC,t.toDisplayString(c.content),1),t.createElementVNode("div",GC,[t.createElementVNode("div",ZC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",JC,[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]=f=>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]=(...f)=>e.close&&e.close(...f))},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]=f=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",_C,[t.createElementVNode("div",ew,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const La=ne(WC,[["render",tw]]),{componentName:d2,create:nw,scope:ow}=J("address"),lw=nw({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[fe.name]:fe,[Ht.name]:Ht},inheritAttrs:!1,props:{...Re,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}=se.useFoxI18n(ow),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),i=t.ref(e.type),s=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),f=t.ref(null),u=t.ref([0,0,0,0]),h=t.computed(()=>{switch(s.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),k=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 P=[];return T=T.sort((E,j)=>E.title.localeCompare(j.title)),T.forEach(E=>{const j=P.findIndex(H=>H.title===E.title);j<=-1?P.push({title:E.title,list:[].concat(E)}):P[j].list.push(E)}),P};let g=t.ref([]),y=t.reactive({});const b=t.ref("self"),m=t.ref(20),v=()=>{const T=e.modelValue,P=T.length;if(P>0){if(s.value=P-1,h.value.length==0){s.value=0;return}for(let E=0;E<P;E++){let j=[];switch(E){case 0:j=e.province;break;case 1:j=e.city;break;case 2:j=e.country;break;default:j=e.town}g.value[E]=j.filter(H=>H.id==T[E])[0]}N()}},p=(T,P)=>T&&T.name||s.value<P&&T?T.name:e.columnsPlaceholder[P]||a("select"),N=()=>{S(),t.nextTick(()=>{const T=l.value&&l.value.getElementsByClassName("active")[0];if(T){const P=T.offsetLeft;m.value=P||20}})},w=T=>{const P=s.value;c.value=s.value;const E={custom:d.value[P]};g.value[P]=T;for(let j=P+2;j<4;j++)g.value.splice(j,1);P<3?(s.value=P+1,N(),E.next=d.value[s.value],E.value=T,n("change",E)):(V(),n("update:modelValue"))},C=(T,P)=>{c.value=s.value,p(T,P)&&(s.value=P,N())},S=()=>{const T=f.value,P=c.value,E=u.value[s.value];T?.scrollTop&&(u.value[P]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:E,behavior:"auto"})})},B=T=>{const P=e.existAddress;let E={};P.forEach(j=>{j&&j.selectedAddress&&(E=j),j.selectedAddress=!1}),T.selectedAddress=!0,y=T,n("selected",E,T,P),V()},A=()=>{g.value=[],s.value=0,N()},V=(T="self")=>{b.value=T=="cross"?"cross":"self",r.value=!1},$=()=>{b.value="mask"},q=()=>{const T={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},P={data:{},type:i.value};["custom","custom2"].includes(i.value)?([0,1,2,3].forEach(E=>{const j=g.value[E];T.addressIdStr+=`${E?"_":""}${j&&j.id||0}`,T.addressStr+=j&&j.name||""}),P.data=T):P.data=y,A(),b.value=="self"?n("close",P):n("close-mask",{closeWay:b}),n("update:visible",!1)},F=()=>{const T=i.value;i.value=T=="exist"?"custom":"exist",A(),n("switch-module",{type:i.value})},x=(T,P)=>{w(P)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&v()}),{showPopup:r,privateType:i,tabIndex:s,tabName:d,selectedRegion:g,switchModule:F,closeWay:b,close:q,getTabName:p,nextAreaList:w,regionLine:o,tabRegion:l,lineDistance:m,changeRegionTab:C,selectedExist:B,clickOverlay:$,handClose:V,handleElevatorItem:x,initCustomSelected:v,...t.toRefs(e),t:a,regionList:h,transformData:k,scrollDom:f}}}),aw={class:"fox-address"},rw={class:"fox-address__header"},sw={class:"fox-address__header__title"},iw={key:0,class:"fox-address__custom"},cw={class:"fox-address__region",ref:"tabRegion"},uw=["onClick"],dw={key:0,class:"active fox-address__region-item"},fw={key:0,class:"fox-address__detail"},mw={class:"fox-address__detail-list",ref:"scrollDom"},pw=["onClick"],hw={key:1,class:"fox-address__elevator-group"},gw={key:1,class:"fox-address__exist"},yw={class:"fox-address__exist-group"},vw={class:"fox-address__exist-group-list"},bw=["onClick"],kw={class:"fox-address__exist-item-info"},Sw={key:0,class:"fox-address__exist-item-info-name"},Cw={key:1,class:"fox-address__exist-item-info-phone"},ww={class:"fox-address__exist-item-info-bottom"},Nw={class:"fox-address__exist-choose-btn"};function Bw(e,n,a,o,l,r){const i=t.resolveComponent("Left"),s=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),f=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",aw,[t.createElementVNode("view",rw,[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(i,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",sw,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(s,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",iw,[t.createElementVNode("view",cw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:g=>e.changeRegionTab(h,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,k)),1)],10,uw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",dw,[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",fw,[t.createElementVNode("ul",mw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick: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,pw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",hw,[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",gw,[t.createElementVNode("div",yw,[t.createElementVNode("ul",vw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:k,onClick:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(f,{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",kw,[h.name?(t.openBlock(),t.createElementBlock("div",Sw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Cw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",ww,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,bw))),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",Nw,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 za=ne(lw,[["render",Bw]]),{componentName:Aw,create:Vw}=J("barrage"),Tw=Vw({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(()=>({[Aw]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),i=null;const s=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),f=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{k(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),f.value=0,g("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{s.value=[],y()});const k=()=>{h.value=l.value.offsetWidth,a&&g("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),m()},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"&&(s.value=C)},y=()=>{i&&(clearTimeout(i),i=null)};t.watch(()=>e.danmu,p=>{e.danmu.length>0&&(s.value=[...p])});const b=p=>{const N=f.value%s.value.length;!e.loop&&f.value===s.value.length?s.value.splice(s.value.length,0,p):s.value.splice(N,0,p)},m=()=>{y(),i=setTimeout(()=>{v()},e.frequency)},v=()=>{const p=e.loop?f.value%s.value.length:f.value;let N=document.createElement("view");a&&typeof s.value[p]=="object"?(N=s.value[p],N?.classList?.add("fox-barrage__item")):(N.innerHTML=s.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&&f.value>=s.value.length-1)&&(f.value++,f.value>=s.value.length&&(f.value=0),N.removeEventListener("animationend",()=>{}),m())})};return{classTime:n,classes:o,danmuList:s,dmBody:l,dmContainer:r,add:b}}});function $w(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 Oa=ne(Tw,[["render",$w]]),{componentName:Ew,create:xw,scope:Dw}=J("signature"),Iw=xw({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:{[Le.name]:Le},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(Dw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),i=t.computed(()=>({[Ew]:!0,[`${e.customClass}`]:e.customClass})),s=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let v=document.createElement("canvas");return!!(v.getContext&&v.getContext("2d"))},d=()=>{l.value.addEventListener(s.events[0],f,!1)},f=v=>{v.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(s.events[1],u,!1),l.value.addEventListener(s.events[2],h,!1),l.value.addEventListener(s.events[3],k,!1)},u=v=>{v.preventDefault();let p=s.isSupportTouch?v.touches[0]:v;n("signing",p);let N=l.value.getBoundingClientRect(),w=p.clientX-N.left,C=p.clientY-N.top;s.ctx.lineTo(w,C),s.ctx.stroke()},h=v=>{v.preventDefault(),n("end"),l.value.removeEventListener(s.events[1],u,!1),l.value.removeEventListener(s.events[2],h,!1)},k=v=>{v.preventDefault(),l.value.removeEventListener(s.events[1],u,!1),l.value.removeEventListener(s.events[2],h,!1)},g=()=>{l.value.addEventListener(s.events[2],h,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},y=()=>{m(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()},m=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=b(v)?"请绘制签名":v,w=b(v)?"":p;n("confirm",N,w)};return t.onMounted(()=>{c()&&(s.ctx=l.value.getContext("2d"),s.canvasWidth=r.value.offsetWidth,s.canvasHeight=r.value.offsetHeight,d())}),{...o,...t.toRefs(s),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:g,classes:i}}}),qw={class:"fox-signature-inner",ref:"wrap"},Mw=["height","width"],Pw={key:0,class:"fox-signature-unsopport"};function Lw(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",qw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Mw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Pw,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(i,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=s=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(i,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=s=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ra=ne(Iw,[["render",Lw]]),{componentName:zw,create:Ow,scope:Rw}=J("time-select"),Fw=Ow({components:{[fe.name]:fe},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:a}=se.useFoxI18n(Rw),o=t.computed(()=>({[zw]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),i=t.computed(()=>e.currentTime),s=()=>{n.emit("update:visible",!1),n.emit("select",i.value)};return t.provide("currentKey",r),t.provide("currentTime",i),{classes:o,popStyle:l,props:e,close:s,t:a}}}),Kw={class:"fox-time-select__title"},Uw={class:"fox-time-select__title__fixed"},Hw={key:0},jw={class:"fox-time-select__content"},Ww={class:"fox-time-select__content__pannel"},Yw={class:"fox-time-select__content__detail"};function Xw(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{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",Kw,[t.createElementVNode("view",Uw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Hw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",jw,[t.createElementVNode("view",Ww,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Yw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Fa=ne(Fw,[["render",Xw]]),{componentName:Qw,create:Gw}=J("time-pannel"),Zw=Gw({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(()=>({[Qw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=i=>{n.emit("change",i)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function Jw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=i=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Ka=ne(Zw,[["render",Jw]]),{componentName:_w,create:eN}=J("time-detail"),tN=eN({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(()=>({[_w]:!0})),i=d=>{let f=l.currentTime.find(u=>u.key==l.currentKey);if(f)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":f.list.filter(u=>u===d).length>0}},s=t.computed(()=>e.times.find(d=>d.key==l.currentKey).list),c=d=>{n.emit("select",d)};return{classes:r,...t.toRefs(l),getClass:i,renderData:s,handleTime:c}}}),nN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},oN={class:"fox-time-detail__detail__list"},lN=["onClick"];function aN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",nN,[t.createElementVNode("view",oN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(i)),key:i,onClick:s=>e.handleTime(i)},t.toDisplayString(i),11,lN))),128))])])],2)}const Ua=ne(tN,[["render",aN]]),{componentName:f2,create:rN,scope:sN}=J("sku-header"),iN=rN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Qe.name]:Qe},setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(sN);return{getSlots:r=>a[r],t:o}}}),cN={class:"fox-sku-header"},uN=["src"],dN={class:"fox-sku-header-right"},fN={key:3,class:"fox-sku-header-right-extra"};function mN(e,n,a,o,l,r){const i=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",cN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,uN),t.createElementVNode("view",dN,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(i,{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",fN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const pN=ne(iN,[["render",mN]]),{componentName:m2,create:hN}=J("sku-select"),gN=hN({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,i,s)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:i,parentIndex:s})}}}}),yN={class:"fox-sku-select"},vN={class:"fox-sku-select-item-title"},bN={class:"fox-sku-select-item-skus"},kN=["onClick"];function SN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:i.id},[t.createElementVNode("view",vN,t.toDisplayString(i.name),1),t.createElementVNode("view",bN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.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:f=>e.changeSaleChild(c,d,i,s),key:c.name},t.toDisplayString(c.name),11,kN))),128))])]))),128))])}const CN=ne(gN,[["render",SN]]),{componentName:p2,create:wN}=J("sku-stepper"),NN=wN({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:{[Ge.name]:Ge},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&&it(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),BN={class:"fox-sku-stepper"},AN={class:"fox-sku-stepper-title"},VN=["innerHTML"],TN={class:"fox-sku-stepper-count"};function $N(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",BN,[t.createElementVNode("view",AN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,VN),t.createElementVNode("view",TN,[t.createVNode(i,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=s=>e.goodsCount=s),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const EN=ne(NN,[["render",$N]]),{componentName:h2,create:xN}=J("sku-operate"),DN=xN({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:i=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[i],clickBtnOperate:i=>{n("clickBtnOperate",i)},getSlots:i=>a[i]}}}),IN={key:0,class:"fox-sku-operate"},qN={key:0,class:"fox-sku-operate-desc"},MN={key:1,class:"fox-sku-operate-btn"},PN=["onClick"];function LN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",IN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",qN,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",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${i}`,"fox-sku-operate-btn-item"]),key:s,onClick:c=>e.clickBtnOperate(i)},t.toDisplayString(e.getBtnDesc(i)),11,PN))),128))]))])):t.createCommentVNode("",!0)}const zN=ne(DN,[["render",LN]]),{componentName:g2,create:ON,scope:RN}=J("sku"),FN=ON({props:{...Re,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:pN,SkuSelect:CN,SkuStepper:EN,SkuOperate:zN,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=se.useFoxI18n(RN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),i=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&y()}),t.onMounted(()=>{});const s=b=>a[b],c=b=>{n("select-sku",b)},d=b=>{i.value=b,n("change-stepper",b)},f=b=>{n("add",b)},u=b=>{n("reduce",b)},h=b=>{n("over-limit",b)},k=b=>{n("click-btn-operate",{type:b,value:i.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:k,add:f,reduce:u,getSlots:s,...l}}}),KN={class:"fox-sku"},UN={class:"fox-sku-content"};function HN(e,n,a,o,l,r){const i=t.resolveComponent("sku-header"),s=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{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",KN,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",UN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(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 Ha=ne(FN,[["render",HN]]),{create:jN}=J("card"),WN=jN({components:{[Qe.name]:Qe,[Gt.name]:Gt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),YN={class:"fox-card"},XN={class:"fox-card__left"},QN=["src"],GN={class:"fox-card__right"},ZN={class:"fox-card__right__title"},JN={key:0,class:"fox-card__right__price"},_N={class:"fox-card__right__other"},eB={class:"fox-card__right__shop"},tB={class:"fox-card__right__shop__name"};function nB(e,n,a,o,l,r){const i=t.resolveComponent("fox-price"),s=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",YN,[t.createElementVNode("div",XN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,QN)]),t.createElementVNode("div",GN,[t.createElementVNode("div",ZN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",JN,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(i,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(i,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",_N,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(s,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",eB,[t.createElementVNode("div",tB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const ja=ne(WN,[["render",nB]]),{create:oB,scope:lB}=J("ecard"),aB=oB({components:{[Ge.name]:Ge},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}=se.useFoxI18n(lB),o=t.ref(null),l=t.ref(null),r=t.ref(""),i=t.ref(e.cardAmountMin),s=t.ref(e.modelValue),c=(h,k)=>{o.value=k,i.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))},f=()=>{o.value="input",i.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{i.value=h,n("changeStep",i.value,l.value)};return t.watch(()=>e.modelValue,h=>{s.value=h}),{handleClick:c,changeStep:u,change:d,inputClick:f,stepValue:i,currentIndex:o,inputValue:r,money:s,t:a}}}),rB={class:"fox-ecard"},sB={class:"fox-ecard__title"},iB={class:"fox-ecard__list"},cB=["onClick"],uB={class:"fox-ecard__list__input--con"},dB=["placeholder"],fB={class:"fox-ecard__list__step"};function mB(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",rB,[t.createElementVNode("view",sB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",iB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(s,c)},t.toDisplayString(s.price),11,cB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...s)=>e.inputClick&&e.inputClick(...s))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",uB,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s),onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),placeholder:e.placeholder||e.t("placeholder")},null,40,dB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",fB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(i,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=s=>e.stepValue=s),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Wa=ne(aB,[["render",mB]]),{create:pB,scope:hB}=J("address-list-item"),gB=pB({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(hB);return{delClick:i=>{n("delIcon",i,e.item),i.stopPropagation()},editClick:i=>{n("editIcon",i,e.item),i.stopPropagation()},contentsClick:i=>{n("clickItem",i,e.item),i.stopPropagation()},t:a}}}),yB={class:"fox-address-list-item__info"},vB={class:"fox-address-list-item__info-contact"},bB={class:"fox-address-list-item__info-contact-name"},kB={class:"fox-address-list-item__info-contact-tel"},SB={key:0,class:"fox-address-list-item__info-contact-default"},CB={class:"fox-address-list-item__info-handle"},wB={class:"fox-address-list-item__addr"};function NB(e,n,a,o,l,r){const i=t.resolveComponent("Del"),s=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",yB,[t.createElementVNode("div",vB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",bB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",kB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",SB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",CB,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(i,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(s,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",wB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Gr=ne(gB,[["render",NB]]),{create:BB}=J("address-list-general"),AB=BB({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:Gr,[Le.name]:Le,[Yt.name]:Yt},setup(e,{emit:n}){const a=()=>t.h(Gr,{item:e.item,onDelIcon(w){i(w)},onEditIcon(w){s(w)},onClickItem(w){c(w)}});let o=null;const l=t.ref(!1),r=t.ref(!1),i=w=>{n("delIcon",w,e.item),w.stopPropagation()},s=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()},f=w=>{o=0,r.value=!0,n("longDown",w,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:s,delClick:i,delLongClick:d,holddownstart:w=>{o=setTimeout(()=>{f(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}}}}),VB={key:0,class:"fox-address-list-general"},TB={class:"fox-address-list-swipe"};function $B(e,n,a,o,l,r){const i=t.resolveComponent("fox-button"),s=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(s,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(i,{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",TB,[(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",VB,[(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 EB=ne(AB,[["render",$B]]),{componentName:xB,create:DB,scope:IB}=J("address-list"),qB=DB({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:EB,[Le.name]:Le},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(IB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[xB]:!0})),i=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>ds(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>i(),{deep:!0});const s=(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()},f=(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()},k=(y,b)=>{n("swipeDel",y,b),y.stopPropagation()},g=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{i()}),{classes:r,clickDelIcon:s,clickEditIcon:c,clickContentItem:d,clickLongCopy:f,clickLongSet:u,clickLongDel:h,clickSwipeDel:k,addAddress:g,dataArray:o,t:a}}});function MB(e,n,a,o,l,r){const i=t.resolveComponent("general-shell"),s=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(i,{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(s,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Ya=ne(qB,[["render",MB]]),{componentName:y2,create:PB}=J("category"),LB=PB({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:i=>{o.value=i,n("change",i)},checkIndex:o,categoryLeft:l}}}),zB={class:"fox-category"},OB={class:"fox-category__cateList"},RB={key:0},FB=["onClick"];function KB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",zB,[t.createElementVNode("div",OB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",RB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:s},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==s?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(s)},t.toDisplayString(i.catName),11,FB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Xa=ne(LB,[["render",KB]]),{componentName:v2,create:UB}=J("category-pane"),HB=UB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),jB={class:"fox-category-pane"},WB={key:0,class:"fox-category-pane__cateListRight"},YB={class:"fox-category-pane__childTitle"},XB={key:0,class:"fox-category-pane__childItemList"},QB=["onClick"],GB=["src"],ZB={class:"fox-category-pane__skuImg"},JB={key:1,class:"fox-category-pane__cateListRight"},_B={class:"fox-category-pane__childTitle"},eA={key:0,class:"fox-category-pane__childItemList"},tA=["onClick"],nA={class:"fox-category-pane__skuName"},oA={key:2,class:"fox-category-pane__selfItemList"},lA=["onClick"];function aA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",jB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",WB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",YB,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",XB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:f=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,GB),t.createElementVNode("div",ZB,t.toDisplayString(c?.catName),1)],8,QB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",JB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",_B,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",eA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:f=>e.onChange(c)},[t.createElementVNode("div",nA,t.toDisplayString(c?.catName),1)],8,tA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",oA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:s,onClick:c=>e.onChange(i)},t.toDisplayString(i?.catName),9,lA))),128))])):t.createCommentVNode("",!0)])}const Qa=ne(HB,[["render",aA]]),{componentName:b2,create:rA}=J("comment-header"),sA=rA({components:{[Ct.name]:Ct},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),iA={class:"fox-comment-header__user"},cA={class:"fox-comment-header__user-avter"},uA=["src"],dA={class:"fox-comment-header__user-score"},fA={key:0,class:"fox-comment-header__time"};function mA(e,n,a,o,l,r){const i=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",iA,[t.createElementVNode("view",cA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,uA)):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",dA,[t.createVNode(i,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=s=>e.info.score=s),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",fA,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(i,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=s=>e.info.score=s),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 pA=ne(sA,[["render",mA]]),{componentName:k2,create:hA}=J("comment-images"),gA=hA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],i=>{i[0].length>0&&i[0].forEach(s=>{s.type="video"}),l.value=i[0].concat(i[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(i=>{i.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(i,s)=>{const{videos:c,images:d}=e,f=i=="img"?s-c.length:s;n("clickImages",{type:i,index:f,value:i=="img"?d[f]:c[f]})},totalImages:l}}}),yA=["onClick"],vA=["src"],bA=["onClick"],kA=["src"],SA={key:0,class:"fox-comment-images__mask"};function CA(e,n,a,o,l,r){const i=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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:s.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:s.mainUrl},null,8,vA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,yA))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:s.smallImgUrl?s.smallImgUrl:s.imgUrl},null,8,kA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",SA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(i,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,bA)):t.createCommentVNode("",!0)],64))),128))],2)}const wA=ne(gA,[["render",CA]]),{componentName:S2,create:NA,scope:BA}=J("comment-bottom"),AA=NA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(BA),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const s=["replay","like","more"];e.operation&&e.operation.forEach(c=>{s.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:s=>{s=="more"&&(o.value=!o.value),n("clickOperate",s)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),VA={class:"fox-comment-bottom"},TA={key:0},$A={class:"fox-comment-bottom__cpx"},EA=["onClick"];function xA(e,n,a,o,l,r){const i=t.resolveComponent("Fabulous"),s=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",VA,[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",TA,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",$A,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,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(i,{key:0})):(t.openBlock(),t.createBlock(s,{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,EA))),128))])])}const DA=ne(AA,[["render",xA]]),{componentName:IA,create:qA,scope:MA}=J("comment"),PA=qA({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:pA,CommentImages:wA,CommentBottom:DA,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(MA),o=t.computed(()=>({[IA]:!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}}}),LA=["innerHTML"],zA={class:"fox-comment__follow-title"},OA={class:"fox-comment__follow-com"},RA={key:0,class:"fox-comment__follow-img"};function FA(e,n,a,o,l,r){const i=t.resolveComponent("comment-header"),s=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(i,{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]=(...f)=>e.handleClick&&e.handleClick(...f)),innerHTML:e.info.content},null,12,LA),t.createVNode(s,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",zA,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",OA,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",RA,[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 Ga=ne(PA,[["render",FA]]),KA=[al,sl,il,cl,ul,we,fl,ml,pl,hl,gl,Zn,yl,vl,kl,Sl,ro,so,Cl,io,co,wl,Nl,Vt,Bl,Al,po,Vl,Tl,eo,to,no,$l,El,xl,rt,Dl,Il,ql,Ml,Pl,Ll,zl,Le,Ol,Rl,ut,fe,Fl,Kl,Ul,Hl,Ut,jl,Wl,Yl,Xl,Ql,Gl,Zl,Jl,_l,Ht,ea,ta,na,oa,la,aa,ra,jt,mo,oo,ao,lo,Ge,Ct,Jt,sa,ia,ca,Yt,ua,da,fa,Xt,fo,ma,ha,uo,Tt,ya,va,Qt,ba,ka,Wt,Sa,Ca,wa,wt,Na,Ba,Nt,Bt,Qe,ho,Aa,Va,Ta,Gt,Zt,$a,Ea,xa,Da,Ia,qa,Ma,Pa,La,za,Oa,Ra,Fa,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga],UA=new qi(KA,"4.0.0");exports.ActionSheet=ua;exports.ActionsheetItem=Vl;exports.ActionsheetPane=po;exports.Address=za;exports.AddressList=Ya;exports.Animate=qa;exports.Audio=ya;exports.AudioOperate=va;exports.Avatar=Qt;exports.AvatarGroup=ba;exports.BackTop=da;exports.Badge=Ta;exports.Barrage=Oa;exports.Broadcast=nl;exports.BroadcastKey=Se;exports.Button=Le;exports.Calendar=ao;exports.CalendarItem=Sl;exports.Card=ja;exports.Cascader=oo;exports.CascaderItem=vl;exports.Category=Xa;exports.CategoryPane=Qa;exports.Cell=Ol;exports.CellGroup=Rl;exports.Checkbox=io;exports.CheckboxGroup=co;exports.CheckboxItem=wl;exports.CircleProgress=Sa;exports.Col=Ul;exports.Collapse=Ea;exports.CollapseItem=xa;exports.Comment=Ga;exports.Content=cl;exports.CountDown=Va;exports.CountUp=Aa;exports.DataItemsKey=mt;exports.DateItem=kl;exports.DatePicker=lo;exports.DateUtils=ae;exports.Dialog=Xt;exports.Divider=jl;exports.Domain=zn;exports.DomainKey=xe;exports.DomainProvider=Ll;exports.Drag=fa;exports.Dropdown=Il;exports.Ecard=Wa;exports.Elevator=Ht;exports.Ellipsis=Ia;exports.Empty=wa;exports.FixedNav=Ql;exports.FloatingButton=El;exports.FooterBar=il;exports.FoxActionSheet=ua;exports.FoxActionsheetItem=Vl;exports.FoxActionsheetPane=po;exports.FoxAddress=za;exports.FoxAddressList=Ya;exports.FoxAnimate=qa;exports.FoxAudio=ya;exports.FoxAudioOperate=va;exports.FoxAvatar=Qt;exports.FoxAvatarGroup=ba;exports.FoxBackTop=da;exports.FoxBadge=Ta;exports.FoxBarrage=Oa;exports.FoxButton=Le;exports.FoxCalendar=ao;exports.FoxCalendarItem=Sl;exports.FoxCard=ja;exports.FoxCascader=oo;exports.FoxCascaderItem=vl;exports.FoxCategory=Xa;exports.FoxCategoryPane=Qa;exports.FoxCell=Ol;exports.FoxCellGroup=Rl;exports.FoxCheckbox=io;exports.FoxCheckboxGroup=co;exports.FoxCheckboxItem=wl;exports.FoxCircleProgress=Sa;exports.FoxCol=Ul;exports.FoxCollapse=Ea;exports.FoxCollapseItem=xa;exports.FoxComment=Ga;exports.FoxContent=cl;exports.FoxCountDown=Va;exports.FoxCountUp=Aa;exports.FoxDateItem=kl;exports.FoxDatePicker=lo;exports.FoxDialog=Xt;exports.FoxDivider=jl;exports.FoxDomainProvider=Ll;exports.FoxDrag=fa;exports.FoxDropdown=Il;exports.FoxEcard=Wa;exports.FoxElevator=Ht;exports.FoxEllipsis=Ia;exports.FoxEmpty=wa;exports.FoxFixedNav=Ql;exports.FoxFloatingButton=El;exports.FoxFooterBar=il;exports.FoxGrid=Wl;exports.FoxGridItem=Yl;exports.FoxGroup=ul;exports.FoxHeaderBar=sl;exports.FoxHintText=Vt;exports.FoxImage=Fl;exports.FoxImagePreview=ho;exports.FoxIndicator=oa;exports.FoxInfiniteLoading=fo;exports.FoxInputItem=pl;exports.FoxInputNumber=Ge;exports.FoxInputnumberItem=Tl;exports.FoxItem=we;exports.FoxLayout=Kl;exports.FoxLinkItem=Bl;exports.FoxList=ka;exports.FoxMapping=Pl;exports.FoxMenu=Gl;exports.FoxMenuItem=Zl;exports.FoxMessageBox=rt;exports.FoxMoneyItem=hl;exports.FoxMoreButton=xl;exports.FoxNavbar=Xl;exports.FoxNoticeBar=Ca;exports.FoxNotify=ha;exports.FoxNumberKeyboard=ca;exports.FoxOverLay=ut;exports.FoxPage=al;exports.FoxPagination=ea;exports.FoxPicker=Jt;exports.FoxPickerItem=yl;exports.FoxPopover=Zt;exports.FoxPopoverDialog=ql;exports.FoxPopup=fe;exports.FoxPopupWrapper=Dl;exports.FoxPrice=Qe;exports.FoxProgress=Wt;exports.FoxPullRefresh=ma;exports.FoxRadio=ro;exports.FoxRadioGroup=so;exports.FoxRadioItem=Cl;exports.FoxRange=jt;exports.FoxRate=Ct;exports.FoxRateItem=Al;exports.FoxRollingProvider=zl;exports.FoxRow=Hl;exports.FoxRowItem=fl;exports.FoxSearchBar=mo;exports.FoxShortPassword=sa;exports.FoxSideNavBar=la;exports.FoxSideNavBarItem=aa;exports.FoxSignature=Ra;exports.FoxSkeleton=$a;exports.FoxSku=Ha;exports.FoxSlotItem=ml;exports.FoxStep=Ba;exports.FoxSteps=Na;exports.FoxStepsBar=$l;exports.FoxSticky=Ut;exports.FoxSubSideNavBar=ra;exports.FoxSwipe=Yt;exports.FoxSwiper=Nt;exports.FoxSwiperItem=Bt;exports.FoxSwitch=uo;exports.FoxSwitchItem=Nl;exports.FoxTabPane=na;exports.FoxTabbar=Jl;exports.FoxTabbarItem=_l;exports.FoxTable=Da;exports.FoxTabs=ta;exports.FoxTabsBar=eo;exports.FoxTabsContainer=to;exports.FoxTabsPane=no;exports.FoxTag=Gt;exports.FoxText=Ml;exports.FoxTextarea=Zn;exports.FoxTextareaItem=gl;exports.FoxTimeDetail=Ua;exports.FoxTimePannel=Ka;exports.FoxTimeSelect=Fa;exports.FoxToast=Tt;exports.FoxTour=La;exports.FoxTrendArrow=Pa;exports.FoxUploader=ia;exports.FoxVideo=wt;exports.FoxWaterMark=Ma;exports.Grid=Wl;exports.GridItem=Yl;exports.Group=ul;exports.HeaderBar=sl;exports.HintText=Vt;exports.Image=Fl;exports.ImagePreview=ho;exports.Indicator=oa;exports.InfiniteLoading=fo;exports.InputItem=pl;exports.InputNumber=Ge;exports.InputnumberItem=Tl;exports.Item=we;exports.Layout=Kl;exports.LinkItem=Bl;exports.List=ka;exports.Mapping=Pl;exports.Menu=Gl;exports.MenuItem=Zl;exports.MessageBox=rt;exports.MoneyItem=hl;exports.MoreButton=xl;exports.Navbar=Xl;exports.NoticeBar=Ca;exports.Notify=ha;exports.NumberKeyboard=ca;exports.OverLay=ut;exports.Page=al;exports.Pagination=ea;exports.Picker=Jt;exports.PickerItem=yl;exports.Popover=Zt;exports.PopoverDialog=ql;exports.Popup=fe;exports.PopupWrapper=Dl;exports.Price=Qe;exports.PriorityPolicy=Tn;exports.Progress=Wt;exports.PullRefresh=ma;exports.Radio=ro;exports.RadioGroup=so;exports.RadioItem=Cl;exports.Range=jt;exports.Rate=Ct;exports.RateItem=Al;exports.RollingProvider=zl;exports.Row=Hl;exports.RowItem=fl;exports.SearchBar=mo;exports.ShortPassword=sa;exports.SideNavBar=la;exports.SideNavBarItem=aa;exports.Signature=Ra;exports.Skeleton=$a;exports.Sku=Ha;exports.SlotItem=ml;exports.Step=Ba;exports.Steps=Na;exports.StepsBar=$l;exports.Sticky=Ut;exports.SubSideNavBar=ra;exports.Swipe=Yt;exports.Swiper=Nt;exports.SwiperItem=Bt;exports.Switch=uo;exports.SwitchItem=Nl;exports.TabPane=na;exports.Tabbar=Jl;exports.TabbarItem=_l;exports.Table=Da;exports.Tabs=ta;exports.TabsBar=eo;exports.TabsContainer=to;exports.TabsPane=no;exports.Tag=Gt;exports.Text=Ml;exports.Textarea=Zn;exports.TextareaItem=gl;exports.TimeDetail=Ua;exports.TimePannel=Ka;exports.TimeSelect=Fa;exports.Toast=Tt;exports.Tour=La;exports.TrendArrow=Pa;exports.UniqueID=Gn;exports.Uploader=ia;exports.ValidateSchema=gs;exports.ValidateSchemaKey=Pe;exports.Video=wt;exports.WaterMark=Ma;exports.cancelRaf=Zr;exports.clamp=Ue;exports.clearNonNumber=Mo;exports.clone=Io;exports.compareTo=xo;exports.createBroadcast=Pn;exports.createValidateSchema=Ln;exports.debounce=Ye;exports.debounceRef=Ci;exports.decimalLength=us;exports.default=UA;exports.defineBroadcast=mi;exports.defineConfigDomain=vs;exports.defineDataItem=bs;exports.defineDomain=ll;exports.defineItem=Ae;exports.definePageState=ks;exports.defineSimpleItem=At;exports.deleteGlobalValidator=vi;exports.disabledProperty=$e;exports.divide=el;exports.excludeProps=Je;exports.extend=st;exports.floatData=ds;exports.getGlobalIcons=Un;exports.getGlobalValidateCheckEvents=ms;exports.getGlobalValidateResetEvents=hs;exports.getPageContentAreaHeight=An;exports.getPageContentAreaWidth=Vn;exports.getPageFooterAreaHeight=Fn;exports.getPageHeaderAreaHeight=Rn;exports.getRootDomain=gt;exports.hasSymbol=as;exports.includeProps=be;exports.indexOf=di;exports.integerLength=cs;exports.isArray=In;exports.isArrayLike=ss;exports.isBrowser=Ze;exports.isDate=He;exports.isESModule=ri;exports.isEmptyString=ue;exports.isEqual=Ie;exports.isFunction=wn;exports.isHidden=Mn;exports.isInnerPage=Ai;exports.isMap=oi;exports.isNil=ns;exports.isNumberString=tl;exports.isObject=De;exports.isPlainObject=Do;exports.isPromise=vt;exports.isRegExp=qo;exports.isSet=li;exports.isString=os;exports.isSubPage=Vi;exports.isSymbol=ai;exports.isTouch=Jn;exports.isWindow=rs;exports.lastIndexOf=fi;exports.makeArray=ui;exports.merge=is;exports.multiply=_r;exports.negate=es;exports.nextTick=ii;exports.numberFormat=Dn;exports.objectToString=ls;exports.once=wi;exports.overrideGlobalIcons=Ki;exports.overrideGlobalValidateHandler=gi;exports.padZero=ot;exports.preventDefault=Po;exports.property=Ve;exports.px2Number=Bi;exports.raf=Ke;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=bi;exports.setGlobalValidateHandler=hi;exports.setGlobalValidateMessages=Si;exports.setGlobalValidateResetEvents=ki;exports.setGlobalValidator=yi;exports.throttle=Bn;exports.toBoolean=ye;exports.toNumber=me;exports.toPadding=Oe;exports.toPx=de;exports.toPxDesc=he;exports.toTypeString=qn;exports.toValue=Me;exports.tryTimes=ol;exports.typeOf=it;exports.unNumberFormat=ts;exports.updatePageState=Lo;exports.useBroadcast=Pt;exports.useDomain=_e;exports.useExpose=Ee;exports.useInnerSize=Kn;exports.usePageState=On;exports.usePosition=dl;exports.useRawTouch=_n;exports.useRect=qe;exports.useSize=rl;exports.useTouch=tt;exports.valueLength=ve;
13
+ `)}}});function Zg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const jl=ne(Gg,[["render",Zg]]),{create:Jg}=J("sticky"),_g=Jg({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)),i=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),s=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 S=!1;if(e.position==="top")S=d?r.value>m.top&&b.bottom>0:r.value>m.top;else{const f=document.documentElement.clientHeight;S=d?b.bottom>0&&f-r.value-h.height>b.top:f-r.value<m.bottom}return S},y=()=>{if(d)if(e.position==="top"){const S=b.bottom-r.value-h.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,f=b.bottom-(S-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(),Go(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Go(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:i,stickyRef:o,stickyStyle:s}}});function ey(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 Ht=ne(_g,[["render",ey]]),{componentName:ty,create:ny}=J("divider"),oy=ny({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=ty;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 ly(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 Wl=ne(oy,[["render",ly]]);function ay(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 ry(e,n,a){const o=ay(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function sy(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=s=>{s.proxy&&(a.push(t.markRaw(s)),ry(o,a,n))},r=s=>{a.splice(a.indexOf(t.markRaw(s)),1)},i=Object.assign;return s=>(t.provide(e,i({add:l,remove:r,internalChildren:a},s)),{internalChildren:a})}const{componentName:Yr}=J("grid"),js=Symbol("grid"),iy={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}},cy={props:iy,setup(e,{slots:n}){sy(js,`${Yr}-item`)({props:e});const a=t.computed(()=>{const l=Yr;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:uy}=J("grid"),Yl=uy(cy);function dy(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 i=t.computed(()=>r.indexOf(a));return{parent:n,index:i}}return{parent:null,index:t.ref(-1)}}const{create:fy,componentName:Xr}=J("grid-item"),my=fy({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=dy(js);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Xr]:!0})),i=t.computed(()=>{const d={flexBasis:`${100/+l.columnNum}%`};return l.square?d.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(d.paddingRight=he(l.gutter),o.value>=l.columnNum&&(d.marginTop=he(l.gutter))),d}),s=t.computed(()=>{const d=`${Xr}__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:i,contentClass:s,handleClick:d=>{n("click",d)}}}}),py={class:"fox-grid-item__text"};function hy(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]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",py,[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 Xl=ne(my,[["render",hy]]),{componentName:gy,create:yy}=J("navbar"),vy=yy({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:i}=t.toRefs(e),s=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const S=gy;return{[S]:!0,[`${S}--border`]:a.value,[`${S}--fixed`]:o.value,[`${S}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:i.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,s.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:s,navBarHtml:c,classes:m,styles:u,handleLeft:h,handleCenter:b,handleCenterIcon:g,handleRight:y}}}),by={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},ky={key:1,class:"fox-navbar__text"},Sy={class:"fox-navbar__title"},Cy={key:0,class:"fox-navbar__text"},wy={key:1,class:"fox-navbar__text"},Ny={class:"fox-navbar__title"},By={key:0,class:"fox-navbar__text"};function Ay(e,n,a,o,l,r){const i=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",by,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",ky,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Sy,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",Cy,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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",wy,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ny,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",By,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Ql=ne(vy,[["render",Ay]]),Vy=(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}=se.useFoxI18n(n),i=r(o,["activeText","unActiveText"]),s=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...i,classes:s,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Ty,create:$y,scope:Ey}=J("fixednav"),xy=$y(Vy(Ty,Ey,{[ct.name]:ct,Left:oe.Left})),Dy={class:"fox-fixednav__list"},Iy=["onClick"],qy=["src"],My={class:"span"},Py={key:0,class:"b"},Ly={class:"text"};function zy(e,n,a,o,l,r){const i=t.resolveComponent("fox-overlay"),s=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(i,{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",Dy,[(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,qy),t.createElementVNode("view",My,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Py,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Iy))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(s,{color:"#fff"}),t.createElementVNode("view",Ly,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Gl=ne(xy,[["render",zy]]),{componentName:Oy,create:Ry}=J("menu"),Fy=Ry({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),i=()=>{const S=t.reactive([]),f=t.reactive([]);return{children:S,linkChildren:p=>{const N=C=>{C.proxy&&(f.push(C),S.push(C.proxy))},w=C=>{if(C.proxy){let k=f.indexOf(C);k>-1&&f.splice(k,1);let B=S.indexOf(C.proxy);k>-1&&S.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:N,children:S,internalChildren:f},p))}}},{children:s,linkChildren:c}=i(),d=t.computed(()=>s.some(S=>S.state.showWrapper)),m=t.computed(()=>({[Oy]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const S=qe(o);e.direction==="down"?l.value=S.bottom:l.value=window.innerHeight-S.top}};c({props:e,offset:l});const h=S=>{s.forEach((f,v)=>{v===S?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},b=S=>Math.max(0,"scrollTop"in S?S.scrollTop:S.pageYOffset),g=()=>{const{scrollFixed:S}=e,f=b(window);r.value=f>(typeof S=="boolean"?30:Number(S))},y=S=>{let f="";const{titleClass:v}=e;return S&&(f+="active"),v&&(f+=` ${v}`),f};return t.onMounted(()=>{const{scrollFixed:S}=e;S&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:S}=e;S&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:s,opened:d,classes:m,barRef:o,getClasses:y}}}),Ky=["onClick"],Uy={class:"fox-menu__title-text"},Hy={class:"fox-menu__title-icon"};function jy(e,n,a,o,l,r){const i=t.resolveComponent("ArrowUp2"),s=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",Uy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Hy,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(i,{key:0})):(t.openBlock(),t.createBlock(s,{key:1}))])])],2)],14,Ky))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Zl=ne(Fy,[["render",jy]]),{componentName:Wy,create:Yy}=J("menu-item"),Xy=Yy({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[fe.name]:fe,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const b=t.inject("menuParent",null);if(b){const g=t.getCurrentInstance(),{link:y,removeLink:S}=b;return y(g),t.onUnmounted(()=>{S(g)}),{parent:b}}},{parent:r}=l(),i=t.computed(()=>({[Wy]:!0})),s=t.computed(()=>{const b={height:r.offset.value+"px"};return r.props.direction==="down"?b:{...b,top:"auto"}});return{classes:i,placeholderElementStyle:s,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")}}}}),Qy={class:"fox-menu-item__content fox-menu-item__overflow"},Gy=["onClick"];function Zy(e,n,a,o,l,r){const i=t.resolveComponent("Check"),s=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["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(s,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",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",Qy,[(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(i,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,Gy))),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 Jl=ne(Xy,[["render",Zy]]),{create:Jy}=J("tabbar"),_y=Jy({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 ev(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 _l=ne(_y,[["render",ev]]),{create:tv}=J("tabbar-item"),nv=tv({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 i(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const s=t.computed(()=>a?a.value:null);return t.watch(s,c=>{o.value=c}),{state:o,active:r,change:i}}}),ov={class:"fox-tabbar-item_icon-box"},lv={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},av={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},rv={key:1,class:"fox-tabbar-item_icon-box_dot"},sv={key:2},iv={key:0};function cv(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]=i=>e.change(e.state.index))},[t.createElementVNode("view",ov,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",lv,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",av,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",rv)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",sv,[(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",iv,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const ea=ne(nv,[["render",cv]]),{componentName:uv,create:dv}=J("elevator"),fv=dv({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(()=>({[uv]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),i=t.computed(()=>a.value.clientHeight),s=(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=s(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)},S=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],k=N[w+1];if(o.scrollY>=C&&o.scrollY<k){o.currentIndex=w,o.diff=k-o.scrollY;return}}o.currentIndex=N.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",S)}),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+i.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:i,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:b,handleClickItem:g,handleClickIndex:y}}}),mv={class:"fox-elevator__list__item__code"},pv=["onClick"],hv=["innerHTML"],gv={class:"fox-elevator__fixed-title"},yv={class:"fox-elevator__bars__inner"},vv=["data-index","onClick"];function bv(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,i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",mv,t.toDisplayString(i[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.list,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===s.id&&e.currentKey===i[e.acceptKey]}]),key:s.id,onClick:c=>e.handleClickItem(i[e.acceptKey],s)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:s}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:s.name},null,8,hv))],10,pv))),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",gv,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]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=t.withModifiers((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("view",yv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":s,key:i[e.acceptKey],onClick:c=>e.handleClickIndex(i[e.acceptKey])},t.toDisplayString(i[e.acceptKey]),11,vv))),128))])],32)],2)}const jt=ne(fv,[["render",bv]]),{componentName:a2,create:kv,scope:Sv}=J("pagination"),Cv=kv({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}=se.useFoxI18n(Sv),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:i,forceEllipses:s}=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=+i.value;let y=1,S=b;const f=b>g;f&&(y=Math.max(l.value-Math.floor(g/2),1),S=y+g-1,S>b&&(S=b,y=S-g+1));for(var v=y;v<=S;v++){const p=m(v,v,l.value==v);h.push(p)}if(f&&g>0&&s.value){if(y>1){const p=m(y-1,"...");h.unshift(p)}if(S<b){const p=m(S+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:s}}}),wv={class:"fox-pagination"},Nv={key:0,class:"fox-pagination-contain"},Bv=["onClick"],Av={key:1,class:"fox-pagination-contain"},Vv={class:"fox-pagination-simple"};function Tv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",wv,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=i=>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",Nv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(i,s)=>(t.openBlock(),t.createElementBlock("view",{key:s+"pagination",class:t.normalizeClass(["fox-pagination-item",i.active?"active":""]),onClick:c=>e.select(i.number,!0)},[t.renderSlot(e.$slots,"page",{item:i},()=>[t.createTextVNode(t.toDisplayString(i.text),1)])],10,Bv))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Av,[t.createElementVNode("view",Vv,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]=i=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const ta=ne(Cv,[["render",Tv]]),$v=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=tt();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,s.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,s.moving=!1);break}s.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),s.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(s.moving)switch(s.moving=!1,d){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:l}};class Ev{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:xv}=J("tabs"),Dv=xv({components:{[Ht.name]:Ht,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=V=>{V.forEach(($,K)=>{let q=$.type;if(q=q.name||q,q=="fox-tab-pane"){let E=new Ev;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let T=st($.props?.["pane-key"]),P=T=="number"||T=="string"?String($.props?.["pane-key"]):null,x=st($.props?.paneKey),j=x=="number"||x=="string"?String($.props?.paneKey):null;E.title=$.props?.title,E.paneKey=P||j||String(K),E.disabled=$.props?.disabled}r.value.push(E)}else{if($.children==" ")return;Array.isArray($.children)&&i($.children)}})},s=t.ref(e.modelValue||0),c=V=>{let $=r.value.findIndex(K=>K.paneKey==V);r.value.length==0||$==-1||(s.value=$)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),u=t.ref([]),h=V=>{const $=m.value,K=u.value;if(!$||!K||!K[s.value])return;const q=K[s.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=(V,$,K,q)=>{let E=0;const T=q==="horizontal"?V.scrollLeft:V.scrollTop,P=Math.round(K*1e3/16);function x(){q==="horizontal"?V.scrollLeft+=($-T)/P:V.scrollTop+=($-T)/P,++E<P&&Ue(x)}x()},g=(V=a.default?.())=>{r.value=[],V=V?.filter($=>typeof $.children!="string"),V&&V.length&&i(V),c(e.modelValue),t.nextTick(()=>{h()})},y=V=>{l=V.fixed};t.watch(()=>a.default?.(),V=>{g(V)});const S=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,V=>{if(c(V),h(),l){let $=qe(o.value).top+S(),K=Math.ceil($-e.top);window.scrollTo({top:K,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const f={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,f.updateValue(r.value[s.value])},prev:()=>{s.value-=1,f.updateValue(r.value[s.value])},updateValue:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,$)=>{n("click",V),!(V.disabled||s.value==$)&&(s.value=$,f.updateValue(V))},setTabItemRef:(V,$)=>{u.value[$]=V}},{tabsContentRef:v,touchState:p,touchMethods:N}=$v(e,f),w=t.computed(()=>{let V=s.value*100;p.moving&&(V+=p.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 0)`,transitionDuration:p.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&($={}),$}),C=t.computed(()=>({background:e.background})),k=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const V=he(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),A=t.computed(()=>a.fixedTitle);return{navRef:m,tabsContentRef:v,titles:r,contentStyle:w,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:k,container:o,getScrollY:d,onStickyScroll:y,...f,...N,hasFixedTitle:A}}}),Iv=["onClick"],qv={key:0,class:"fox-tabs__titles-fixed-item"},Mv=["onClick"],Pv={key:0,class:"fox-tabs__titles-fixed-item"};function Lv(e,n,a,o,l,r){const i=t.resolveComponent("JoySmile"),s=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(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),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(i,{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,Iv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",qv,[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(i,{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,Mv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Pv,[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 na=ne(Dv,[["render",Lv]]),{create:zv}=J("tab-pane"),Ov=zv({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 Rv(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 oa=ne(Ov,[["render",Rv]]),{componentName:Qr,create:Fv}=J("indicator"),Kv=Fv({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=Qr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Qr,padZero:nt}}});function Uv(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,i=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[i===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(i)||i),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const la=ne(Kv,[["render",Uv]]),{componentName:Hv,create:jv}=J("side-navbar"),Wv=jv({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(()=>({[Hv]:!0})),l=(i,s=1)=>{for(let c=0;c<i.length;c++){let d=i[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*s+"px",d.className.includes("fox-side-navbar-item")||l(Array.from(d.children[1].children),++a.count))}a.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(s=>s.nodeType!==3).map(s=>s),l(i))};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}}}),Yv={class:"fox-side-navbar__content"},Xv={class:"fox-side-navbar__content__list",ref:"list"};function Qv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Yv,[t.createElementVNode("view",Xv,[t.renderSlot(e.$slots,"default")],512)])],2)}const aa=ne(Wv,[["render",Qv]]),{componentName:Gv,create:Zv}=J("side-navbar-item"),Jv=Zv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Gv]:!0})),handleClick:()=>{n.emit("click")}})}),_v=["ikey"],e0={class:"fox-side-navbar-item__title"};function t0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[t.createElementVNode("span",e0,t.toDisplayString(e.title),1)],10,_v)}const ra=ne(Jv,[["render",t0]]),{componentName:n0,create:o0}=J("sub-side-navbar"),l0=o0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[n0]:!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}}}),a0=["ikey"],r0={class:"fox-sub-side-navbar__title__text"},s0={class:"fox-sub-side-navbar__title__icon"};function i0(e,n,a,o,l,r){const i=t.resolveComponent("ArrowDown2"),s=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",r0,t.toDisplayString(e.title),1),t.createElementVNode("span",s0,[e.direction?(t.openBlock(),t.createBlock(s,{key:1})):(t.openBlock(),t.createBlock(i,{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,a0)}const sa=ne(l0,[["render",i0]]),{componentName:c0,create:u0}=J("range"),d0=u0({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(),i=t.ref(),s=tt(),c=t.computed(()=>{const{marks:E,max:T,min:P}=e;return Object.keys(E).map(parseFloat).sort((H,z)=>H-z).filter(H=>H>=P&&H<=T)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const E=c0;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:T}=e;return g(E)?`${(E[1]-E[0])*100/d.value}%`:`${(E-Number(T))*100/d.value}%`},S=()=>{const{modelValue:E,min:T}=e;return g(E)?`${(E[0]-Number(T))*100/d.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:S(),background:e.activeColor,transition:i.value?"none":void 0}:{width:y(),left:S(),background:e.activeColor,transition:i.value?"none":void 0}),v=E=>{const T="fox-range-mark",{modelValue:P,max:x,min:j}=e;let H=Number(j),z=Number(x);if(e.range){const[U,I]=P;H=U,z=I}else z=P;let _=E<=z&&E>=H;return{[`${T}-text`]:!0,[`${T}-text-active`]:_}},p=E=>{const{min:T,vertical:P}=e;let x={left:`${(E-Number(T))/d.value*100}%`};return P&&(x={top:`${(E-Number(T))/d.value*100}%`}),x},N=E=>{const{modelValue:T,max:P,min:x}=e;let j=Number(x),H=Number(P);if(e.range){const[U,I]=T;j=U,H=I}return{background:E<=H&&E>=j?e.activeColor:e.inactiveColor}},w=E=>{const{min:T,max:P,step:x}=e;return E=Math.max(+T,Math.min(E,+P)),Math.round(E/+x)*+x},C=(E,T)=>JSON.stringify(E)===JSON.stringify(T),k=E=>E[0]>E[1]?E.slice(0).reverse():E,B=(E,T)=>{g(E)?E=k(E).map(w):E=w(E),C(E,e.modelValue)||n("update:modelValue",E),T&&!C(E,o)&&n("change",E)},A=E=>{if(e.disabled)return;const{min:T,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 z=Number(T)+j/H*d.value;if(g(P)){const[_,U]=P,I=(_+U)/2;z<=I?B([z,U],!0):B([_,z],!0)}else B(z,!0)},V=E=>{e.disabled||(s.start(E),l=e.modelValue,g(l)?o=l.map(w):o=w(l),i.value="start")},$=E=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),s.move(E),i.value="draging";const T=qe(r);let P=s.deltaX.value,x=T.width,j=P/x*d.value;e.vertical&&(P=s.deltaY.value,x=T.height,j=P/x*d.value),g(o)?l[a.value]=o[a.value]+j:l=o+j,B(l),E.stopPropagation(),E.preventDefault()},K=()=>{e.disabled||(i.value==="draging"&&(B(l,!0),n("drag-end")),i.value="")},q=E=>Dn(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:b,onClick:A,onTouchStart:V,onTouchMove:$,onTouchEnd:K,...t.toRefs(e),barStyle:f,curValue:q,buttonIndex:a,containerClasses:u,markClassName:v,marksStyle:p,marksList:c,tickStyle:N}}}),f0={key:0,class:"fox-range-min"},m0={key:0,class:"fox-range-mark"},p0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],h0={key:0,class:"number"},g0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],y0={key:0,class:"number"},v0={key:1,class:"fox-range-max"};function b0(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",f0,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((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",m0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,i=>(t.openBlock(),t.createElementBlock("span",{key:i,class:t.normalizeClass(e.markClassName(i)),style:t.normalizeStyle(e.marksStyle(i))},[t.createTextVNode(t.toDisplayString(i)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(i))},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],i=>t.createElementVNode("view",{key:i,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(s=>{typeof i=="number"&&(e.buttonIndex=i),e.onTouchStart(s)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[3]||(n[3]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",h0,t.toDisplayString(e.curValue(i)),1))],4))],42,p0)),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(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=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",y0,t.toDisplayString(e.curValue()),1))],4))],40,g0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",v0,t.toDisplayString(+e.max),1))],2)}const Wt=ne(d0,[["render",b0]]),{create:k0,scope:S0}=J("short-password"),C0=k0({components:{[fe.name]:fe,Tips:oe.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(S0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),i=t.ref(e.visible),s=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{i.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:s,range:d,close:c,onTips:()=>{n("tips")},show:i,...o}}}),w0={class:"fox-short-password-title"},N0={class:"fox-short-password-subtitle"},B0={class:"fox-short-password-wrapper"},A0={key:0,class:"fox-short-password__item-icon"},V0={class:"fox-short-password__message"},T0={class:"fox-short-password--error"},$0={key:0,class:"fox-short-password--forget"};function E0(e,n,a,o,l,r){const i=t.resolveComponent("Tips"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(s,{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",w0,t.toDisplayString(e.title),1),t.createElementVNode("view",N0,t.toDisplayString(e.desc),1),t.createElementVNode("div",B0,[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",A0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",V0,[t.createElementVNode("view",T0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",$0,[t.createVNode(i,{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 ia=ne(C0,[["render",E0]]);class x0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let D0=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 I0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ws=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);bt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:q0}=J("progress"),M0=q0({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),i=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),s=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:i,textStyle:s,progressOuter:o,insideText:l,slotDefault:n}}}),P0={class:"fox-progress"},L0={key:0,class:"fox-progress-text"};function z0(e,n,a,o,l,r){const i=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",P0,[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",L0,[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(i,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Yt=ne(M0,[["render",z0]]),{componentName:O0,create:R0,scope:F0}=J("uploader"),K0=R0({components:{[Yt.name]:Yt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(F0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[O0]:!0})),i=()=>{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)},s=v=>{v.value=""},c=v=>{n("file-item-click",{fileItem:v})},d=(v,p)=>{const N=new x0;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,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})},N.onSuccess=(C,k)=>{v.status="success",v.message=a("success"),n("success",{responseText:C,option:k,fileItem:v}),n("update:fileList",o)},N.onFailure=(C,k)=>{v.status="error",v.message=a("error"),n("failure",{responseText:C,option:k,fileItem:v})};let w=new D0(N);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,N)=>{const w=new FormData;for(const[k,B]of Object.entries(e.data))w.append(k,B);w.append(e.name,p);const C=t.reactive(new I0);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 k=new FileReader;k.onload=B=>{C.url=B.target.result,o.push(C)},k.readAsDataURL(p)}else o.push(C)})},b=v=>{const p=e.maximum*1,N=e.maximize*1,w=new Array;v=v.filter(k=>k.size>N?(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),Ws(e.beforeDelete,{args:[v,o],done:()=>g(v,p)})},S=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&&s(p)},f=v=>{const p=b(new Array().slice.call(v));h(p)};return{onChange:S,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:u,renderInput:i}}}),U0={key:0,class:"fox-uploader__slot"},H0={key:0,class:"fox-uploader__preview-img"},j0={key:0,class:"fox-uploader__preview__progress"},W0={class:"fox-uploader__preview__progress__msg"},Y0=["onClick"],X0=["onClick","src"],Q0={key:3,class:"fox-uploader__preview-img__file"},G0=["onClick"],Z0={class:"file__name_tips"},J0={class:"tips"},_0={key:1,class:"fox-uploader__preview-list"},eb=["onClick"],tb={class:"file__name_tips"};function nb(e,n,a,o,l,r){const i=t.resolveComponent("Failure"),s=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",U0,[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",H0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",j0,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(i,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(s,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",W0,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(i)])],8,Y0)):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,X0)):(t.openBlock(),t.createElementBlock("view",Q0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Z0,t.toDisplayString(h.name),1)],8,G0)])),t.createElementVNode("view",J0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",_0,[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",tb,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,eb),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 ca=ne(K0,[["render",nb]]),ob="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+ID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qTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ab,scope:rb}=J("number-keyboard"),sb=ab({components:{[fe.name]:fe},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(rb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),i=t.ref();function s(){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():s()),u=()=>{e.visible&&n("blur")},h=f=>{const v=i.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"&&S(),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 S(){n("update:visible",!1),n("close")}return{...o,delImg:ob,lockImg:lb,clickKeyIndex:l,defaultKey:s,closeBoard:S,onTouchEnd:y,onTouchMove:g,onTouchstart:b,keysList:m,genCustomKeys:d,getBasicKeys:c,root:i,show:r}}}),ib={ref:"root"},cb={class:"fox-number-keyboard"},ub={key:0,class:"fox-number-keyboard__header"},db={class:"fox-number-keyboard__title"},fb={class:"fox-number-keyboard__body"},mb={class:"fox-number-keyboard__keys"},pb=["onTouchstart"],hb=["src"],gb=["src"],yb={key:0,class:"fox-number-keyboard__sidebar"},vb={class:"fox-key__wrapper"},bb=["src"];function kb(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",ib,[t.createVNode(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=s=>e.show=s),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",cb,[e.title?(t.openBlock(),t.createElementBlock("div",ub,[t.createElementVNode("h3",db,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]=s=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",fb,[t.createElementVNode("div",mb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,s=>(t.openBlock(),t.createElementBlock("div",{key:"key"+s.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":s.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":s.id==e.clickKeyIndex},{"fox-key--lock":s.type=="lock"},{"fox-key--delete":s.type=="delete"}]),onTouchstart:c=>e.onTouchstart(s,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[s.type=="number"||s.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.id),1)],64)):t.createCommentVNode("",!0),s.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,hb)):t.createCommentVNode("",!0),s.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,gb)):t.createCommentVNode("",!0)],42,pb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",yb,[t.createElementVNode("div",vb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=s=>e.onTouchstart({id:"delete",type:"delete"},s)),onTouchmove:n[4]||(n[4]=s=>e.onTouchMove(s)),onTouchend:n[5]||(n[5]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("img",{src:e.delImg},null,8,bb)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=s=>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 ua=ne(sb,[["render",kb]]),{componentName:Sb,create:Cb}=J("swipe"),wb=Cb({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(()=>({[Sb]:!0})),o=v=>v.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),i=t.ref(),s=t.computed(()=>o(i));let c=!1,d="",m="";const u=t.reactive({offset:0,moving:!1}),h=(v="")=>{c=!0,v&&(u.offset=v==="left"?-s.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=-s.value:p=Math.abs(v)>s.value?-s.value:v;break;case"right":c&&m===d?p=r.value:p=Math.abs(v)>r.value?r.value:v;break}u.offset=p},S=tt();return{classes:a,touchStyle:g,...{onTouchStart(v){e.disabled||S.start(v)},onTouchMove(v){e.disabled||(S.move(v),S.isHorizontal()&&(u.moving=!0,y(S.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)<=s.value/2?b():(u.offset=-s.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?b():(u.offset=r.value,h());break}}},leftRef:l,rightRef:i,open:h,close:b}}}),Nb={class:"fox-swipe__left",ref:"leftRef"},Bb={class:"fox-swipe__content"},Ab={class:"fox-swipe__right",ref:"rightRef"};function Vb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("view",Nb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Bb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Ab,[t.renderSlot(e.$slots,"right")],512)],38)}const Xt=ne(wb,[["render",Vb]]),{componentName:Tb,create:$b}=J("action-sheet"),Eb=$b({components:{Popup:fe,Loading:oe.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(()=>({[Tb]:!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}}}),xb={key:0,class:"fox-action-sheet__title"},Db={key:1},Ib={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},qb={key:1,class:"fox-action-sheet__menu"},Mb=["onClick"],Pb={key:1},Lb={class:"fox-action-sheet__subdesc"};function zb(e,n,a,o,l,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Popup");return t.openBlock(),t.createBlock(s,{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",xb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Db,[e.description?(t.openBlock(),t.createElementBlock("view",Ib,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",qb,[(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(i,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Pb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Lb,t.toDisplayString(c[e.optionSubTag]),1)],14,Mb))),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 da=ne(Eb,[["render",zb]]),{componentName:Ob,create:Rb}=J("backtop"),fa=Rb({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(()=>({[Ob]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function s(g=0){o.scrollEl instanceof Window?window.scrollTo(0,g):o.scrollEl.scrollTop=g}function c(){let g=Ye(function y(){var S=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=S*-o.scrollTop/e.duration+o.scrollTop;s(f),g=Ye(y),(S==e.duration||f==0)&&Jr(g)})}function d(){o.scrollEl.addEventListener("scroll",i,!1),o.scrollEl.addEventListener("resize",i,!1)}function m(){o.scrollEl.removeEventListener("scroll",i,!1),o.scrollEl.removeEventListener("resize",i,!1)}function u(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():s(),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(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const S=t.h("div",{class:l.value,style:r.value,onClick:u},y);return g.push(S),g}}}),{componentName:Fb,create:Kb}=J("drag"),Ub=Kb({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(()=>({[Fb]:!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 i(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ue(()=>{i(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",Ue(()=>{i(u)})):u.style.left="0px"}function s(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ue(()=>{s(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?Ue(()=>{i(h)}):Ue(()=>{s(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 Hb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[t.renderSlot(e.$slots,"default")],34)}const ma=ne(Ub,[["render",Hb]]),jb={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},Wb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Yb(e,n,a,o,l){return{props:{...Fe,...jb},setup(r,{attrs:i,slots:s,emit:c}){const{toLocaleRefs:d}=se.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 k=r.beforeClose(C);bt(k)?k.then(B=>{B&&(b(!1),c("closed",C))}):k===!0&&(b(!1),c("closed",C))}else b(!1),c("closed",C)},y=()=>{g("confirm")},S=()=>{g("cancel")},f=()=>{g("close")},v=(C,k)=>Wb(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(s.header){const B=s.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,V=v(A,B);C.push(V)}}if(C.length===0)return null;const k={class:[`${u}__header`]};return t.h("view",k,C)},N=()=>{const C=[];if(s.default)C.push(s.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 k={class:[`${u}__body`]};return t.h("view",k,C)},w=()=>{if(!r.showFooter)return null;const C=[];if(s.footer)C.push(s.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:S};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:S};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 k={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",k,C)};return()=>{const C=[],k=p();k&&C.push(k);const B=N();B&&C.push(B);const A=w();A&&C.push(A);const V={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},$=t.h("view",V,C),K=[`${u}__popup`];r.popClass&&K.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 T={...be(r,Fe),popClass:K.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,T,{default:()=>$})}}}}const{componentName:Xb,create:Qb,scope:Gb}=J("dialog"),Ys=Qb(Yb(Xb,Gb,fe,ze,oe.Close));class Zb{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 Jb{options=new Zb;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"),i=`dialog-${a.id}`;r.id=i;const s={setup(){return a.onUpdate=d=>{if(d===!1){const m=document.querySelector(`#${i}`);m&&m.parentNode?.removeChild(m)}},a?.onOpened&&a?.onOpened(),()=>t.h(Ys,a)}},c=t.createVNode(s);o.appendChild(r),t.render(c,r)}}const Qt=function(e){return new Jb(e)};Qt.install=e=>{e.use(Ys),e.config.globalProperties.$dialog=Qt};const _b={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}},ek=(e,n,a)=>({props:{..._b},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=se.useFoxI18n(n),s=i(o,["pullingText","loosingText","loadingText"]),c=Jn(),d=t.ref(),m=Ks(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?"":s.pullingText.value;case"loosing":return r.loosing?"":s.loosingText.value;case"loading":return r.loading?"":s.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=he(o.headHeight)),k}),S=k=>{const B=+(o.pullDistance||o.headHeight);let A=k;return k>B&&(k<B*2?A=(k+B)/2:A=B+k/4),Math.round(A)},f=(k,B)=>{const A=+(o.pullDistance||o.headHeight);u.distance=k,B?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?Us()==0:m.value&&m.value.scrollTop==0,N=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(S(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 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&&k.push(B);const A={class:["fox-pull-refresh-container-topbox-text"]},V=t.h("dive",A,[b.value]);k.push(V);const $={class:["fox-pull-refresh-container-topbox"],style:y.value},K=t.h("div",$,k),q={class:"fox-pull-refresh-container",style:g.value},E=t.h("div",q,[K,r?.default?.()]),T={ref:d,class:h.value};return Zn()?Object.assign(T,{onTouchstart:N,onTouchmove:w,onTouchend:C}):Object.assign(T,{onMousedown:N,onMousemove:w,onMouseup:C}),t.h("div",T,[E])}}}),{componentName:tk,create:nk,scope:ok}=J("pull-refresh"),pa=nk(ek(tk,ok,oe.Loading)),{create:lk}=J("notify"),ak=lk({components:{[fe.name]:fe},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},i=t.ref(!1),s=t.watch(()=>e.visible,d=>{i.value=e.visible;const m=e.duration;d&&m&&(o=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{l(),s&&s(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:i}}});function rk(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.isShowPopup=s),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]=(...s)=>e.clickCover&&e.clickCover(...s))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const ha=ne(ak,[["render",rk]]),Jo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ht=[],Ft=[];const Xs=e=>{if(e){const n=document.getElementById(e);Ft=Ft.filter(a=>a.id!==e),ht=ht.filter(a=>a!==e),n&&document.body.removeChild(n)}else ht.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ft=[],ht=[]},sk=e=>{const n=document.getElementById(e.id);if(n){const a=Ft.find(l=>l.id===e.id);a?e={...Jo,...a,...e}:e={...Jo,...e};const o=t.createVNode(ha,e);return t.render(o,n),o.component.data}},qt=e=>{e.unmount=Xs;let n;if(e.id){if(n=e.id,ht.find(r=>r===e.id))return sk(e)}else n=new Date().getTime()+"";e={...Jo,...e},e.id=n,ht.push(e.id),Ft.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(ha,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Mt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ga={text(e,n={}){return Mt(e),qt({...n,msg:e})},primary(e,n={}){return Mt(e),qt({...n,msg:e,type:"primary"})},success(e,n={}){return Mt(e),qt({...n,msg:e,type:"success"})},danger(e,n={}){return Mt(e),qt({...n,msg:e,type:"danger"})},warn(e,n={}){return Mt(e),qt({...n,msg:e,type:"warning"})},hide(){Xs()},install(e){e.use(ha)}},{create:ik}=J("toast"),ck=ik({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},i=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,b=>{b&&i()});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:s,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),uk={key:1,class:"fox-toast-title"},dk=["innerHTML"];function fk(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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",uk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,dk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const ya=ne(ck,[["render",fk]]),_o={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 gt=[],Kt=[];const Qs=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=[]},mk=e=>{const n=document.getElementById(e.id);if(n){const a=Kt.find(l=>l.id===e.id);a?e={..._o,...a,...e}:e={..._o,...e};const o=t.createVNode(ya,e);return t.render(o,n),$t}},Pt=e=>{e.unmount=Qs;let n;if(e.id){if(n=e.id,gt.find(l=>l===e.id))return mk(e)}else n=new Date().getTime()+"";e={..._o,...e},e.id=n,gt.push(e.id),Kt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ya,e);return t.render(o,a),document.body.appendChild(a),$t},ln=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return ln(e),Pt({...n,type:"text",msg:e})},success(e,n={}){return ln(e),Pt({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return ln(e),Pt({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return ln(e),Pt({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Pt({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Qs(e)},install(e){e.use(ya),e.config.globalProperties.$toast=$t}},{componentName:s2,create:pk}=J("audio"),hk=pk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Wt.name]:Wt},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 S=0;S<y.length;S++)document.addEventListener(y[S],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(S){S.message}});const r=y=>{const S=o.value;e.autoplay&&S&&S.paused&&S.play(),l.second=S.duration,l.duration=g(S.duration),n("can-play",y)},i=y=>{l.currentTime=parseInt(y.target.currentTime)},s=()=>{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 S=o.value;S.currentTime=l.second*y/100,n("changeProgress",S.currentTime)},b=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},g=y=>{if(!y)return"00:00:00";let S=parseInt(y),f=Math.floor(S/3600),v=Math.floor((S-f*3600)/60),p=S-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:s,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:s,forward:d,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:i,handleMute:b,onCanplay:r,slots:a}}}),gk={class:"fox-audio"},yk={key:0,class:"fox-audio__progress"},vk={class:"fox-audio__time"},bk={class:"fox-audio__bar"},kk={class:"fox-audio__time"},Sk={key:1,class:"fox-audio__icon"},Ck=["controls","src","preload","autoplay","loop","muted"];function wk(e,n,a,o,l,r){const i=t.resolveComponent("fox-range"),s=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",gk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",yk,[t.createElementVNode("div",vk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",bk,[t.createVNode(i,{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",kk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Sk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(s,{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,Ck)])}const va=ne(hk,[["render",wk]]),{componentName:i2,create:Nk,scope:Bk}=J("audio-operate"),Ak=Nk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Bk),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),Vk={class:"fox-audio-operate"};function Tk(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Vk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...s)=>e.fastBack&&e.fastBack(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...s)=>e.forward&&e.forward(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...s)=>e.handleMute&&e.handleMute(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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=ne(Ak,[["render",Tk]]),{componentName:$k,create:Ek}=J("avatar"),xk=Ek({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"],i=t.inject("avatarGroup",null),s=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=i?.avatarGroupRef?.value?.children;g&&b(g)});const m=t.computed(()=>({[$k]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||i?.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&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.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=s?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=i?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:u,maxStyles:h,avatarGroup:i,visible:c,avatarRef:s,...t.toRefs(d)}}});function Dk(e,n,a,o,l,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Gt=ne(xk,[["render",Dk]]),{componentName:Ik,create:qk}=J("avatar-group"),Mk=qk({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(()=>({[Ik]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Pk(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 ka=ne(Mk,[["render",Pk]]);var Sn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Sn||{});function Lk(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const i=e[r],s=a(i,n);if(s===1)return r;s===2?o=r+1:s===3&&(l=r-1)}return r}const{componentName:zk,create:Ok}=J("list"),Gr=document.documentElement.clientHeight||document.body.clientHeight||667,Rk=Ok({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Gr},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}),i=t.computed(()=>Math.min(e.containerHeight,Gr)),s=t.computed(()=>Math.ceil(i.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+s.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[zk]:!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(k=>k.nodeType===1);const v=f[0];f.forEach((k,B)=>{if(!k)return;const A=qe(k),{height:V}=A,K=r.cachePositions[B+r.start].height-V;K&&(r.cachePositions[B+r.start].bottom-=K,r.cachePositions[B+r.start].height=V,r.cachePositions[B+r.start].dValue=K)});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 k=p+1;k<N;++k){const B=r.cachePositions[k];r.cachePositions[k].top=r.cachePositions[k-1].bottom,r.cachePositions[k].bottom=r.cachePositions[k].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=Lk(r.cachePositions,f,(N,w)=>{const C=N.bottom;return C===w?Sn.eq:C<w?Sn.lt:Sn.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},S=()=>{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:i,handleScrollEvent:S}}});function Fk(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]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),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,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:i},[t.renderSlot(e.$slots,"default",{item:i,index:s+e.start})]))),128))],4)],38)}const Sa=ne(Rk,[["render",Fk]]),{componentName:Kk,create:Uk}=J("circleprogress"),Hk=Uk({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(()=>({[Kk]:!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`}),i=t.computed(()=>De(e.color)?`url(#${o})`:e.color),s=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:s,pathStyle:c,path:r,hoverColor:i,stop:d,slotDefault:a,refRandomId:o}}}),jk={viewBox:"0 0 100 100"},Wk=["id"],Yk=["offset","stop-color"],Xk=["d","stroke-width"],Qk=["d","stroke","stroke-linecap","stroke-width"],Gk={class:"fox-circleprogress-text"},Zk={key:0};function Jk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",jk,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(i,s)=>(t.openBlock(),t.createElementBlock("stop",{key:s,offset:i.key,"stop-color":i.value},null,8,Yk))),128))],8,Wk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Xk),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,Qk)])),t.createElementVNode("div",Gk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Zk,t.toDisplayString(e.progress)+"%",1))])],6)}const Ca=ne(Hk,[["render",Jk]]),{componentName:_k,create:eS}=J("noticebar"),tS=eS({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),i=t.computed(()=>({[_k]:!0})),s=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":s.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 B=~~(e.height/e.speed/4);k={transition:`all ${B==0?~~(e.height/e.speed):B}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 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=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)},S=()=>{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 B=0;B<k;B++)p(B,!(B<k-1))},e.standTime+100*e.speed)},p=(k,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},k*e.speed)},N=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():S()},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:s,classes:i,barStyle:d,contentStyle:m,horseLampStyle:u,wrap:o,content:l,handleClick:b,onClickIcon:g,onAnimationEnd:y,go:N,handleClickIcon:w,slots:a,toPxDesc:he,wrapContentClass:c}}}),nS={key:0,class:"fox-noticebar__page-lefticon"},oS={ref:"wrap",class:"fox-noticebar__page-wrap"},lS={class:"showNotica"},aS=["onClick"];function rS(e,n,a,o,l,r){const i=t.resolveComponent("Notice"),s=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",nS,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(i,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",oS,[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(s,{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",lS,[(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,aS))),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(s,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const wa=ne(tS,[["render",rS]]),sS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09v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CpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:c2,create:uS,scope:dS}=J("empty"),fS={empty:sS,error:iS,network:cS},mS=uS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=se.useFoxI18n(dS),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}`:""),s=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:fS[o.value];return{...a,imageUrl:s,imgStyle:r}}}),pS={class:"fox-empty"},hS=["src"],gS={key:1,class:"fox-empty-description"};function yS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",pS,[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,hS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",gS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Na=ne(mS,[["render",yS]]),{create:vS,scope:bS}=J("video"),kS=vS({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}=se.useFoxI18n(bS),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 i=()=>{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?s():(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",Lo(u,1e3)))},s=()=>{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",Lo(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{b()}else o.videoElm.pause(),n("pause",o.videoElm)},d=C=>{var k=Math.floor(C/3600);k<10&&(k="0"+k);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 V="";return k!=0?V=k+":"+B+":"+A:V=B+":"+A,V},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},S=()=>{},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,k)=>{o.videoElm.currentTime=Math.floor(C*k)},N=()=>{o.state.isError=!1,i()},w=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{i()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:b,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:S,touchSlidMove:f,touchSlidEnd:v,retry:N,fullScreen:w,t:a}}}),SS={class:"fox-video",ref:"videocon"},CS=["muted","autoplay","loop","poster","controls","preload"],wS=["src","type"],NS={class:"fox-video-controller__now"},BS={class:"fox-video-controller__progress"},AS={class:"fox-video-controller__progress-value",ref:"progressBar"},VS={class:"fox-video-controller__played",ref:"playedBar"},TS={class:"fox-video-controller__total"},$S={class:"fox-video-error"},ES={class:"fox-video-error-tip"};function xS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",SS,[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]=(...i)=>e.handleError&&e.handleError(...i))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,wS)],40,CS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))}),t.createElementVNode("div",NS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",BS,[t.createElementVNode("div",AS,[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(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(i=>e.touchSlidEnd(i),["stop"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",VS,null,512)],512)]),t.createElementVNode("div",TS,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]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",$S,[t.createElementVNode("p",ES,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Nt=ne(kS,[["render",xS]]),{create:DS,componentName:IS}=J("steps"),Ba=DS({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 s=IS;return{[s]:!0,[`${s}-${e.direction}`]:!0,[`${s}-dot`]:!!e.progressDot}}),r=s=>{s&&o.children.push(s)},i=s=>{n("click-step",s)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:i}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:qS,componentName:MS}=J("step"),PS=qS({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()),i=t.computed(()=>{const c=MS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),s=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:i,handleClickStep:s}}}),LS={class:"fox-step-head"},zS={class:"fox-step-icon-inner"},OS={key:1,class:"fox-step-inner"},RS={class:"fox-step-main"},FS={class:"fox-step-title"},KS={key:0},US={key:0,class:"fox-step-content"},HS=["innerHTML"];function jS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[t.createElementVNode("view",LS,[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",zS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",OS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",RS,[t.createElementVNode("view",FS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",KS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",US,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,HS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Aa=ne(PS,[["render",jS]]),{create:WS,componentName:Ao}=J("swiper"),YS=WS({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=tt(),i=t.computed(()=>({[Ao]:!0})),s=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=Ao;return{[`${x}-inner`]:!0,[`${x}-vertical`]:s.value}}),d=t.computed(()=>{const x=Ao;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:s.value}}),m=t.computed(()=>s.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[s.value?"height":"width"]),g=t.computed(()=>h.value*b.value),y=t.computed(()=>l.rect?(s.value?l.rect.height:l.rect.width)-b.value*h.value:0),S=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${s.value?"Y":"X"}(${x}px)`,[s.value?"height":"width"]:`${b.value*h.value}px`,[s.value?"width":"height"]:`${s.value?l.width:l.height}px`}},v=x=>{let j=[];const H=l.childrenVNode.length;let z=a?.default?.();if(z=z.filter(_=>_.children&&Array.isArray(_.children)),z.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 z=j-H;return e.loop||(z=He(z,y.value,0)),z},N=x=>{const{active:j}=l;return x?e.loop?He(j+x,-1,h.value):He(j+x,0,h.value-1):j},w=({pace:x=0,offset:j=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:z}=l,_=N(x),U=p(_,j);if(e.loop){if(l.children[0]&&U!==y.value){const I=U<y.value;l.children[0].setOffset(I?g.value:0)}if(l.children[h.value-1]&&U!==0){const I=U>0;l.children[h.value-1].setOffset(I?-g.value:0)}}l.active=_,l.offset=U,H&&z!==l.active&&n("change",S.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)},B=x=>{C(),r.reset(),Ye(()=>{Ye(()=>{l.moving=!1,w({pace:x,isEmit:!0})})})},A=()=>{B(-1)},V=()=>{B(1)},$=x=>{C(),r.reset(),Ye(()=>{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})})},K=()=>{e.autoPlay<=0||h.value<=1||(k(),l.autoplayTimer=setTimeout(()=>{V(),K()},Number(e.autoPlay)))},q=(x=+e.initPage)=>{k(),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(),K()},E=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),k(),C())},T=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 z=0;const _=s.value?r.offsetY.value:r.offsetX.value;e.loop?z=_>0?m.value>0?-1:1:0:z=-Math[m.value>0?"ceil":"floor"](m.value/b.value),w({pace:z,isEmit:!0})}else m.value&&w({pace:0});l.moving=!1,f(),K()};return t.provide("parent",{props:e,size:b,relation:v}),Ee({prev:A,next:V,to:$}),t.onDeactivated(()=>{k()}),t.onBeforeUnmount(()=>{k()}),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?K():k()}),{state:l,classes:i,classesInner:c,classesPagination:d,container:o,activePagination:S,onTouchStart:E,onTouchMove:T,onTouchEnd:P}}});function XS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===s?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===s}),key:s},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Bt=ne(YS,[["render",XS]]),{create:QS,componentName:GS}=J("swiper-item"),ZS=QS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[GS]:!0})),r=t.computed(()=>{const s={},c=a?.props.direction;return a?.size.value&&(s[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(s.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),s}),i=s=>{o.offset=s};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),Ee({setOffset:i}),{style:r,classes:l}}});function JS(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 At=ne(ZS,[["render",JS]]),Gs={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:_S}=J("image-preview-item"),e1=_S({props:{...Gs,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:{[Nt.name]:Nt,[At.name]:At},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=tt(),l=t.computed(()=>{const{rootWidth:A,rootHeight:V}=e,$=V/A;return a.imageRatio>$}),r=t.computed(()=>{const A=e.image;if(A&&A.src){const{scale:V,moveX:$,moveY:K,moving:q,zooming:E}=a,T={transitionDuration:E||q?"0s":".3s"};if(V!==1){const P=$/V,x=K/V;T.transform=`scale(${V}, ${V}) translate(${P}px, ${x}px)`}return T}return{}}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:V}=e,$=l.value?V/a.imageRatio:A;return Math.max(0,(a.scale*$-A)/2)}return 0}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:V}=e,$=l.value?V:A*a.imageRatio;return Math.max(0,(a.scale*$-V)/2)}return 0}),c=A=>{const{naturalWidth:V,naturalHeight:$}=A.target;a.imageRatio=$/V},d=()=>{m(1),a.moveX=0,a.moveY=0},m=A=>{A=He(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,S,f,v,p;const N=A=>{const{touches:V}=A,{offsetX:$}=o;o.start(A),p=V.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,S=h(A.touches))},w=A=>{const{touches:V}=A;if(o.move(A),(a.moving||a.zooming)&&Po(A,!0),a.moving){const{deltaX:$,deltaY:K}=o,q=$.value+b,E=K.value+g;a.moveX=He(q,-i.value,i.value),a.moveY=He(E,-s.value,s.value)}if(a.zooming&&V.length===2){const $=h(V),K=y*$/S;m(K)}},C=()=>{if(p==1&&e.video&&e.video.source||p>1)return;const{offsetX:A,offsetY:V}=o,$=Date.now()-v,K=250,q=5;A.value<q&&V.value<q&&$<K&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},K))},k=A=>{let V=!1;(a.moving||a.zooming)&&(V=!0,a.moving&&b===a.moveX&&g===a.moveY&&(V=!1),A.touches.length||(a.zooming&&(a.moveX=He(a.moveX,-i.value,i.value),a.moveY=He(a.moveY,-s.value,s.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))),Po(A,V),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:k,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),t1=["src"];function n1(e,n,a,o,l,r){const i=t.resolveComponent("fox-video"),s=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(s,{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,t1)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const o1=ne(e1,[["render",n1]]),{create:l1}=J("image-preview"),a1=l1({props:{...Gs,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:o1,CircleClose:oe.CircleClose,[fe.name]:fe,[Bt.name]:Bt},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(()=>Dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=m=>{m!==o.active&&(o.active=m,n("change",o.active))},s=()=>{Ws(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&&(i(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=o.active&&i(m)}),t.onMounted(()=>{i(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:s,mergeImages:r,setActive:i,iconClasses:l}}}),r1={class:"fox-image-preview",ref:"swipeRef"},s1={key:0,class:"fox-image-preview-index"};function i1(e,n,a,o,l,r){const i=t.resolveComponent("image-preview-item"),s=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",r1,[e.showPop?(t.openBlock(),t.createBlock(s,{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(i,{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",s1,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 Zs=ne(a1,[["render",i1]]);class c1{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 u1{options=new c1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Mi(a,{name:"image-preview",components:[fe,Nt,Bt,At,ct],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Zs,a))}})})}}const po=e=>new u1(e);po.install=e=>{e.use(Zs)};function d1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:u2,create:f1}=J("countup"),m1=f1({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:i,scrolling:s,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,A)=>{u(),S(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;i&&(s||c?d!="machine"&&S():(y(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,A,V)=>{const $=(B.toString().split(".")[1]||"").length,K=(A.toString().split(".")[1]||"").length,q=Math.pow(10,Math.max($,K));return Number((B*q-A*q).toFixed(0))/q},b=B=>{let{num_total_len:A,pointNum:V,initDigit1:$,initDigit2:K,sortFlag:q}=r,E=q=="add"||q=="equal"?String(K)[B-(A-V)]:10-Number(String(K)[B-(A-V)]),T=q=="add"||q=="equal"?String($)[B]:10-Number(String($)[B]),P=B>A-V-1?-E*100+"%":B<=String($).length-1?-T*100+"%":0;return P=="-1000%"&&(P=0),P},g=B=>{let{num_total_len:A,pointNum:V,initDigit1:$,initDigit2:K,sortFlag:q}=r,E=String(K)[B-(A-V)];return B>A-V-1?E||0:B<=String($).length-1?String($)[B]:0},y=()=>{let{endNum:B,initNum:A,speed:V,toFixed:$}=e,K=setInterval(()=>{if(A>B)if(r.current<=B||r.current<=V)r.current=B.toFixed($),clearInterval(K),n("scroll-end"),r.valFlag=!1;else{let q=parseFloat(String(r.current))-parseFloat(String(V));r.current=q.toFixed($)}else if(r.current>=B)r.current=B.toFixed($),clearInterval(K),n("scroll-end"),r.valFlag=!1;else{let q=parseFloat(String(r.current))+parseFloat(String(V));r.current=q.toFixed($)}},e.during)},S=B=>{let{initNum:A,endNum:V,toFixed:$,customBgImg:K}=e;K&&(A=e.customChangeNum);let q,E,T,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),V!=0?($!=0&&(V=Number(V.toFixed($))),String(V).indexOf(".")>-1?(T=String(V).split(".")[0].length,P=String(V).split(".")[1].length):(T=String(V).length,P=0)):(T=1,P=0);let x=q>=T?q:T,j=E>=P?E:P;r.num_total_len=x+j,r.pointNum=j,A>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(A,V),r.numberVal=Number(String(A))):A<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(V,A),r.numberVal=Number(String(V))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var z=r.numberVal*H;if(r.relNum=z,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(z).length),String(A).indexOf(".")>-1){let _=String(A).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=A,r.initDigit2=0;s&&!K?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"),V;if(r.sortFlag=="add"?V=parseInt(String(A))+1:V=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,B.setAttribute("turn-number",String(V)),(B.style.transition=="none 0s ease 0s"||V==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var $=null;B.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,B.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),B.style.transition="none",B.style.top="0",p(B,V)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*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)}};d1({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let $=A*(V+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let K=r.prizeYPrev[V]?r.prizeYPrev[V]:0,q=$+K+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-K);r.prizeLevelTrun<0&&(q+=e.numHeight*r.notPrize[V]),k(V,q,K)},500*V)}});const k=(B,A,V)=>{let $=setInterval(()=>{if(V<=A)V+=10,r.prizeY[B]=parseFloat(String(V));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[B]=A,r.finshMachine==e.machineNum){let K=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let T=E;for(;T>K;)T-=K;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:b,turnNumber:g}}}),p1={class:"fox-countup"},h1=["turn-number"];function g1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",p1,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[s]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s==e.num_total_len-e.pointNum?s*1.5:s*1.3:s)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[s]*e.numHeight+e.customSpacNum*+String(e.relNum)[s])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:i,style:t.normalizeStyle({top:e.topNumber(s),left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s*1.1:s)+"px"}),"turn-number":e.turnNumber(s)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,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,h1))),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 Va=ne(m1,[["render",g1]]),y1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:v1,create:b1}=J("countdown"),k1=b1({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(()=>({[v1]:!0})),r=t.computed(()=>c(o.restTime)),i=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-y1(e.startTime),o.counting||(o.counting=!0),s()},s=()=>{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&&s()}}))},c=(b,g)=>{const y=b;let S={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&&(S.d=y>=f?Math.floor(y/N):0,S.h=Math.floor(y%N/p),S.m=Math.floor(y%p/v),S.s=Math.floor(y%v/f),S.ms=Math.floor(y%f)),g=="custom"?S:d({...S})},d=b=>{let{d:g,h:y,m:S,s:f,ms:v}=b,p=e.format;if(p.includes("DD")?p=p.replace("DD",nt(g)):y+=Number(g)*24,p.includes("HH")?p=p.replace("HH",nt(y)):S+=Number(y)*60,p.includes("mm")?p=p.replace("mm",nt(S)):f+=Number(S)*60,p.includes("ss")?p=p.replace("ss",nt(f)):v+=Number(f)*1e3,p.includes("S")){const N=nt(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),s(),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?i():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),s()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,b=>{i()}),t.watch(()=>e.startTime,b=>{i()}),{...t.toRefs(e),slots:a,classes:l,start:m,pause:u,renderTime:r,reset:h}}}),S1=["innerHTML"];function C1(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,S1))],2)}const Ta=ne(k1,[["render",C1]]),{create:w1}=J("badge"),N1=w1({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}}}),B1={class:"fox-badge"},A1=["textContent"];function V1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",B1,[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,A1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const $a=ne(N1,[["render",V1]]),{componentName:T1,create:$1}=J("tag"),E1=$1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const i=T1;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function x1(e,n,a,o,l,r){const i=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Zt=ne(E1,[["render",x1]]),{create:D1}=J("popover"),I1=D1({components:{FoxPopup:fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),i=t.ref();const s=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],k=w.split("-")[1],B=16;return p&&(v[`border${d(C)}Color`]=p),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(k||(v.left=`calc(50% + ${N}px)`),k=="start"&&(v.left=`${B+N}px`),k=="end"&&(v.right=`${B-N}px`)),["left","right"].includes(C)&&(k||(v.top=`calc(50% - ${N}px)`),k=="start"&&(v.top=`${B-N}px`),k=="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||!i.value)return{};const p=i.value.width,N=i.value.height,{width:w,height:C,left:k,top:B}=r.value,{location:A,offset:V}=e,$=A.split("-")[0],K=A.split("-")[1];let q=0,E=0;if(Dn(V)&&V.length==2&&(q+=Number(V[1]),E+=Number(V[0])),w){if(["bottom","top"].includes($)){const T=$=="bottom"?C+q:-(N+q);v.top=`${B+T}px`,K||(v.left=`${-(p-w)/2+k+E}px`),K=="start"&&(v.left=`${k+E}px`),K=="end"&&(v.left=`${r.value.right+E}px`)}if(["left","right"].includes($)){const T=$=="left"?-(p+q):w+q;v.left=`${k+T}px`,K||(v.top=`${B-N/2+C/2-4+E}px`),K=="start"&&(v.top=`${B+E}px`),K=="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(()=>{i.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")},S=(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:s,closePopover:y,chooseItem:S,popoverRef:a,popoverContentRef:o,getRootPosition:m,customStyle:u,popoverArrowStyle:c,renderIcon:Ns}}}),q1={ref:"popoverContentRef",class:"fox-popover-content-group"},M1=["onClick"],P1={class:"fox-popover-menu-item-name"};function L1(e,n,a,o,l,r){const i=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]=(...s)=>e.openPopover&&e.openPopover(...s))},[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(i,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.showPopup=s),"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",q1,[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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([s.className,s.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(s,c),["stop"])},[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(s.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",P1,t.toDisplayString(s.name),1)],10,M1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Jt=ne(I1,[["render",L1]]),z1=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:O1}=J("skeleton"),R1=O1(z1({[Gt.name]:Gt})),F1={key:0},K1={key:1,class:"fox-skeleton"},U1={key:0,class:"fox-skeleton-animation"},H1={class:"fox-skeleton-content"};function j1(e,n,a,o,l,r){const i=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",K1,[e.animated?(t.openBlock(),t.createElementBlock("view",U1)):t.createCommentVNode("",!0),t.createElementVNode("view",H1,[e.avatar?(t.openBlock(),t.createBlock(i,{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),s=>(t.openBlock(),t.createElementBlock("view",{key:s,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",F1,[t.renderSlot(e.$slots,"default")]))}const Ea=ne(R1,[["render",j1]]),{create:W1,componentName:Y1}=J("collapse"),X1=W1({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(()=>({[Y1]:!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)},i=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 应为数组")},s=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:i,isExpanded:s}),{collapseDom:a,classes:l}}});function Q1(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 xa=ne(X1,[["render",Q1]]),{create:G1,componentName:Z1}=J("collapse-item"),J1=G1({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=Z1;return{[h]:!0,[h+"__border"]:e.border}}),i=t.computed(()=>l?l.isExpanded(e.name):!1),s=t.ref(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},d=()=>{i.value&&(s.value="auto")},m=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;s.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;s.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return t.watch(i,h=>{h?m():u()}),{classes:r,renderIcon:Ns,wrapperRef:n,contentRef:a,open:m,toggle:c,wrapperHeight:s,expanded:i,onTransitionEnd:d}}}),_1={class:"fox-collapse-item__title-main"},eC={class:"fox-collapse-item__title-main-value"},tC=["innerHTML"],nC={key:2,class:"fox-collapse-item__title-label"},oC={key:0,class:"fox-collapse-item__title-sub"},lC=["innerHTML"],aC={key:0,class:"fox-collapse__item-extraWrapper"},rC={class:"fox-collapse__item-extraWrapper__extraRender"},sC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function iC(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]=(...i)=>e.toggle&&e.toggle(...i))},[t.createElementVNode("view",_1,[t.createElementVNode("view",eC,[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,tC)),e.label?(t.openBlock(),t.createElementBlock("view",nC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",oC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,lC)),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",aC,[t.createElementVNode("div",rC,[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]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[t.createElementVNode("view",sC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const Da=ne(J1,[["render",iC]]),cC=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:uC,create:dC,scope:fC}=J("table"),mC=dC({components:{RenderColumn:cC,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(fC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[uC]:!0})),i=b=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${b.align?b.align:""}`]:!0}),s=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:i,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:u,sortDataItem:h,t:o,stylehead:s,stylecolumn:c}}}),pC={class:"fox-table__main__head"},hC={class:"fox-table__main__head__tr"},gC=["onClick"],yC={class:"fox-table__main__body"},vC={key:1},bC={key:0,class:"fox-table__nodata"},kC={key:0,class:"fox-table__nodata__text"},SC={key:1,class:"fox-table__summary"},CC=["innerHTML"];function wC(e,n,a,o,l,r){const i=t.resolveComponent("DownArrow"),s=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",pC,[t.createElementVNode("view",hC,[(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(i,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,gC))),128))])]),t.createElementVNode("view",yC,[(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(s,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",vC,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",bC,[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",kC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",SC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,CC)])):t.createCommentVNode("",!0)],2)}const Ia=ne(mC,[["render",wC]]),{componentName:NC,create:BC}=J("ellipsis"),AC=BC({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(),i=t.reactive({exceeded:!1,expanded:!1}),s=t.computed(()=>({[NC]:!0}));t.watch(()=>e.content,(y,S)=>{y!=S&&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)i.exceeded=!1,document.body.removeChild(o);else{i.exceeded=!0;const y=e.content.length,S=Math.floor((0+y)/2),f=e.direction==="middle"?u([0,S],[S,y]):m(0,y);r.value=f,document.body.removeChild(o)}},m=(y,S)=>{const f=i.expanded?e.collapseText:e.expandText,v=e.content.length;if(S-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(S,v)};const p=Math.round((y+S)/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,S):m(y,p):e.direction==="end"?m(y,p):m(p,S)},u=(y,S)=>{const f=i.expanded?e.collapseText:e.expandText,v=e.content.length;if(y[1]-y[0]<=1&&S[1]-S[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(S[1],v)};const p=Math.floor((y[0]+y[1])/2),N=Math.ceil((S[0]+S[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]],[S[0],N]):u([y[0],p],[N,S[1]])},h=y=>{if(!y)return 0;const S=y.match(/^\d*(\.\d*)?/);return S?Number(S[0]):0},b=y=>{y==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(i),root:a,ellipsis:r,classes:s,clickHandle:b,handleClick:g}}}),VC={key:0},TC={key:1},$C={key:2};function EC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",VC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",TC,[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(i=>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",$C,[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(i=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const qa=ne(AC,[["render",EC]]),{componentName:xC,create:DC}=J("animate"),IC=DC({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 i=t.computed(()=>({"fox-animate__container":!0,[`${xC}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const s=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:i,handleClick:s}}}),qC={class:"fox-animate"};function MC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",qC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const Ma=ne(IC,[["render",MC]]),{componentName:PC,create:LC}=J("watermark"),zC=LC({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:i,height:s,rotate:c,image:d,imageWidth:m,imageHeight:u,content:h,fontStyle:b,fontWeight:g,fontColor:y,fontSize:S,fontFamily:f}=e,v=()=>{const N=document.createElement("canvas"),w=window.devicePixelRatio,C=N.getContext("2d"),k=`${(l+i)*w}px`,B=`${(r+s)*w}px`,A=i*w,V=s*w;if(N.setAttribute("width",k),N.setAttribute("height",B),C){if(d){C.translate(A/2,V/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,V/2),C.rotate(Math.PI/180*Number(c));const $=Number(S)*w;C.font=`${b} normal ${g} ${$}px/${V}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,i,s,c,d,m,u,h,b,g,y,S,f],()=>{v()});const p=t.computed(()=>{const N=PC;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:p}}});function OC(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 Pa=ne(zC,[["render",OC]]);function RC(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:FC,create:KC}=J("trend-arrow"),UC=KC({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[FC]:!0})),o=t.computed(()=>{const{rate:r,digits:i,showSign:s,showZero:c}=e;n.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${s&&r!==0?n.rateTrend?"+":"-":""}${RC(Number(d),i)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:i,syncTextColor:s,textColor:c,rate:d}=e;return{color:d===0?c:s?n.rateTrend?i:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function HC(e,n,a,o,l,r){const i=t.resolveComponent("TriangleUp"),s=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(i,{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(s,{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 La=ne(UC,[["render",HC]]),{create:jC}=J("tour"),WC=jC({components:{[Jt.name]:Jt,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:u,maskHeight:h}=e,{width:b,height:g,left:y,top:S}=o.value,f=[y+b/2,S+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`}}),i=m=>{m=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,s()}),n("change",a.active)},s=()=>{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,s()}),t.watch(()=>e.modelValue,m=>{m&&s(),a.active=0,a.showTour=m,a.showPopup=m}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:i,close:c,handleClickMask:d}}}),YC={key:0,class:"fox-tour-content"},XC={key:0,class:"fox-tour-content-top"},QC={class:"fox-tour-content-inner"},GC={class:"fox-tour-content-bottom"},ZC={class:"fox-tour-content-bottom-init"},JC={class:"fox-tour-content-bottom-operate"},_C={key:1,class:"fox-tour-content fox-tour-content-tile"},ew={class:"fox-tour-content-inner"};function tw(e,n,a,o,l,r){const i=t.resolveComponent("Close"),s=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(s,{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",YC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",XC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(i,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",QC,t.toDisplayString(c.content),1),t.createElementVNode("div",GC,[t.createElementVNode("div",ZC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",JC,[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",_C,[t.createElementVNode("div",ew,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const za=ne(WC,[["render",tw]]),{componentName:d2,create:nw,scope:ow}=J("address"),lw=nw({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[fe.name]:fe,[jt.name]:jt},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}=se.useFoxI18n(ow),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),i=t.ref(e.type),s=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(s.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),b=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const P=[];return T=T.sort((x,j)=>x.title.localeCompare(j.title)),T.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 S=t.ref("self"),f=t.ref(20),v=()=>{const T=e.modelValue,P=T.length;if(P>0){if(s.value=P-1,h.value.length==0){s.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==T[x])[0]}N()}},p=(T,P)=>T&&T.name||s.value<P&&T?T.name:e.columnsPlaceholder[P]||a("select"),N=()=>{k(),t.nextTick(()=>{const T=l.value&&l.value.getElementsByClassName("active")[0];if(T){const P=T.offsetLeft;f.value=P||20}})},w=T=>{const P=s.value;c.value=s.value;const x={custom:d.value[P]};g.value[P]=T;for(let j=P+2;j<4;j++)g.value.splice(j,1);P<3?(s.value=P+1,N(),x.next=d.value[s.value],x.value=T,n("change",x)):(V(),n("update:modelValue"))},C=(T,P)=>{c.value=s.value,p(T,P)&&(s.value=P,N())},k=()=>{const T=m.value,P=c.value,x=u.value[s.value];T?.scrollTop&&(u.value[P]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:x,behavior:"auto"})})},B=T=>{const P=e.existAddress;let x={};P.forEach(j=>{j&&j.selectedAddress&&(x=j),j.selectedAddress=!1}),T.selectedAddress=!0,y=T,n("selected",x,T,P),V()},A=()=>{g.value=[],s.value=0,N()},V=(T="self")=>{S.value=T=="cross"?"cross":"self",r.value=!1},$=()=>{S.value="mask"},K=()=>{const T={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},P={data:{},type:i.value};["custom","custom2"].includes(i.value)?([0,1,2,3].forEach(x=>{const j=g.value[x];T.addressIdStr+=`${x?"_":""}${j&&j.id||0}`,T.addressStr+=j&&j.name||""}),P.data=T):P.data=y,A(),S.value=="self"?n("close",P):n("close-mask",{closeWay:S}),n("update:visible",!1)},q=()=>{const T=i.value;i.value=T=="exist"?"custom":"exist",A(),n("switch-module",{type:i.value})},E=(T,P)=>{w(P)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&v()}),{showPopup:r,privateType:i,tabIndex:s,tabName:d,selectedRegion:g,switchModule:q,closeWay:S,close:K,getTabName:p,nextAreaList:w,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:C,selectedExist:B,clickOverlay:$,handClose:V,handleElevatorItem:E,initCustomSelected:v,...t.toRefs(e),t:a,regionList:h,transformData:b,scrollDom:m}}}),aw={class:"fox-address"},rw={class:"fox-address__header"},sw={class:"fox-address__header__title"},iw={key:0,class:"fox-address__custom"},cw={class:"fox-address__region",ref:"tabRegion"},uw=["onClick"],dw={key:0,class:"active fox-address__region-item"},fw={key:0,class:"fox-address__detail"},mw={class:"fox-address__detail-list",ref:"scrollDom"},pw=["onClick"],hw={key:1,class:"fox-address__elevator-group"},gw={key:1,class:"fox-address__exist"},yw={class:"fox-address__exist-group"},vw={class:"fox-address__exist-group-list"},bw=["onClick"],kw={class:"fox-address__exist-item-info"},Sw={key:0,class:"fox-address__exist-item-info-name"},Cw={key:1,class:"fox-address__exist-item-info-phone"},ww={class:"fox-address__exist-item-info-bottom"},Nw={class:"fox-address__exist-choose-btn"};function Bw(e,n,a,o,l,r){const i=t.resolveComponent("Left"),s=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",aw,[t.createElementVNode("view",rw,[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(i,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",sw,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(s,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",iw,[t.createElementVNode("view",cw,[(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,uw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",dw,[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",fw,[t.createElementVNode("ul",mw,[(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,pw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",hw,[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",gw,[t.createElementVNode("div",yw,[t.createElementVNode("ul",vw,[(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",kw,[h.name?(t.openBlock(),t.createElementBlock("div",Sw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Cw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",ww,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,bw))),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",Nw,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 Oa=ne(lw,[["render",Bw]]),{componentName:Aw,create:Vw}=J("barrage"),Tw=Vw({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(()=>({[Aw]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),i=null;const s=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(()=>{s.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(k=>{p=="init"?(k.style.opacity="0",C.push(k)):(k.classList="",k.style={})}),p=="init"&&(s.value=C)},y=()=>{i&&(clearTimeout(i),i=null)};t.watch(()=>e.danmu,p=>{e.danmu.length>0&&(s.value=[...p])});const S=p=>{const N=m.value%s.value.length;!e.loop&&m.value===s.value.length?s.value.splice(s.value.length,0,p):s.value.splice(N,0,p)},f=()=>{y(),i=setTimeout(()=>{v()},e.frequency)},v=()=>{const p=e.loop?m.value%s.value.length:m.value;let N=document.createElement("view");a&&typeof s.value[p]=="object"?(N=s.value[p],N?.classList?.add("fox-barrage__item")):(N.innerHTML=s.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>=s.value.length-1)&&(m.value++,m.value>=s.value.length&&(m.value=0),N.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:s,dmBody:l,dmContainer:r,add:S}}});function $w(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 Ra=ne(Tw,[["render",$w]]),{componentName:Ew,create:xw,scope:Dw}=J("signature"),Iw=xw({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}=se.useFoxI18n(Dw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),i=t.computed(()=>({[Ew]:!0,[`${e.customClass}`]:e.customClass})),s=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let v=document.createElement("canvas");return!!(v.getContext&&v.getContext("2d"))},d=()=>{l.value.addEventListener(s.events[0],m,!1)},m=v=>{v.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(s.events[1],u,!1),l.value.addEventListener(s.events[2],h,!1),l.value.addEventListener(s.events[3],b,!1)},u=v=>{v.preventDefault();let p=s.isSupportTouch?v.touches[0]:v;n("signing",p);let N=l.value.getBoundingClientRect(),w=p.clientX-N.left,C=p.clientY-N.top;s.ctx.lineTo(w,C),s.ctx.stroke()},h=v=>{v.preventDefault(),n("end"),l.value.removeEventListener(s.events[1],u,!1),l.value.removeEventListener(s.events[2],h,!1)},b=v=>{v.preventDefault(),l.value.removeEventListener(s.events[1],u,!1),l.value.removeEventListener(s.events[2],h,!1)},g=()=>{l.value.addEventListener(s.events[2],h,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},y=()=>{f(l.value)},S=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=S(v)?"请绘制签名":v,w=S(v)?"":p;n("confirm",N,w)};return t.onMounted(()=>{c()&&(s.ctx=l.value.getContext("2d"),s.canvasWidth=r.value.offsetWidth,s.canvasHeight=r.value.offsetHeight,d())}),{...o,...t.toRefs(s),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:g,classes:i}}}),qw={class:"fox-signature-inner",ref:"wrap"},Mw=["height","width"],Pw={key:0,class:"fox-signature-unsopport"};function Lw(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",qw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Mw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Pw,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(i,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=s=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(i,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=s=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Fa=ne(Iw,[["render",Lw]]),{componentName:zw,create:Ow,scope:Rw}=J("time-select"),Fw=Ow({components:{[fe.name]:fe},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:a}=se.useFoxI18n(Rw),o=t.computed(()=>({[zw]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),i=t.computed(()=>e.currentTime),s=()=>{n.emit("update:visible",!1),n.emit("select",i.value)};return t.provide("currentKey",r),t.provide("currentTime",i),{classes:o,popStyle:l,props:e,close:s,t:a}}}),Kw={class:"fox-time-select__title"},Uw={class:"fox-time-select__title__fixed"},Hw={key:0},jw={class:"fox-time-select__content"},Ww={class:"fox-time-select__content__pannel"},Yw={class:"fox-time-select__content__detail"};function Xw(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{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",Kw,[t.createElementVNode("view",Uw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Hw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",jw,[t.createElementVNode("view",Ww,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Yw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ka=ne(Fw,[["render",Xw]]),{componentName:Qw,create:Gw}=J("time-pannel"),Zw=Gw({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(()=>({[Qw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=i=>{n.emit("change",i)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function Jw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=i=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Ua=ne(Zw,[["render",Jw]]),{componentName:_w,create:eN}=J("time-detail"),tN=eN({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(()=>({[_w]:!0})),i=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}},s=t.computed(()=>e.times.find(d=>d.key==l.currentKey).list),c=d=>{n.emit("select",d)};return{classes:r,...t.toRefs(l),getClass:i,renderData:s,handleTime:c}}}),nN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},oN={class:"fox-time-detail__detail__list"},lN=["onClick"];function aN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",nN,[t.createElementVNode("view",oN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(i)),key:i,onClick:s=>e.handleTime(i)},t.toDisplayString(i),11,lN))),128))])])],2)}const Ha=ne(tN,[["render",aN]]),{componentName:f2,create:rN,scope:sN}=J("sku-header"),iN=rN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Qe.name]:Qe},setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(sN);return{getSlots:r=>a[r],t:o}}}),cN={class:"fox-sku-header"},uN=["src"],dN={class:"fox-sku-header-right"},fN={key:3,class:"fox-sku-header-right-extra"};function mN(e,n,a,o,l,r){const i=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",cN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,uN),t.createElementVNode("view",dN,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(i,{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",fN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const pN=ne(iN,[["render",mN]]),{componentName:m2,create:hN}=J("sku-select"),gN=hN({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,i,s)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:i,parentIndex:s})}}}}),yN={class:"fox-sku-select"},vN={class:"fox-sku-select-item-title"},bN={class:"fox-sku-select-item-skus"},kN=["onClick"];function SN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:i.id},[t.createElementVNode("view",vN,t.toDisplayString(i.name),1),t.createElementVNode("view",bN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.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,i,s),key:c.name},t.toDisplayString(c.name),11,kN))),128))])]))),128))])}const CN=ne(gN,[["render",SN]]),{componentName:p2,create:wN}=J("sku-stepper"),NN=wN({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:{[Ge.name]:Ge},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&&st(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),BN={class:"fox-sku-stepper"},AN={class:"fox-sku-stepper-title"},VN=["innerHTML"],TN={class:"fox-sku-stepper-count"};function $N(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",BN,[t.createElementVNode("view",AN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,VN),t.createElementVNode("view",TN,[t.createVNode(i,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=s=>e.goodsCount=s),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const EN=ne(NN,[["render",$N]]),{componentName:h2,create:xN}=J("sku-operate"),DN=xN({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:i=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[i],clickBtnOperate:i=>{n("clickBtnOperate",i)},getSlots:i=>a[i]}}}),IN={key:0,class:"fox-sku-operate"},qN={key:0,class:"fox-sku-operate-desc"},MN={key:1,class:"fox-sku-operate-btn"},PN=["onClick"];function LN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",IN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",qN,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",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${i}`,"fox-sku-operate-btn-item"]),key:s,onClick:c=>e.clickBtnOperate(i)},t.toDisplayString(e.getBtnDesc(i)),11,PN))),128))]))])):t.createCommentVNode("",!0)}const zN=ne(DN,[["render",LN]]),{componentName:g2,create:ON,scope:RN}=J("sku"),FN=ON({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:pN,SkuSelect:CN,SkuStepper:EN,SkuOperate:zN,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=se.useFoxI18n(RN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),i=t.ref(e.stepperMin);t.watch(()=>e.visible,S=>{r.value=S}),t.watch(()=>r.value,S=>{S==!1&&y()}),t.onMounted(()=>{});const s=S=>a[S],c=S=>{n("select-sku",S)},d=S=>{i.value=S,n("change-stepper",S)},m=S=>{n("add",S)},u=S=>{n("reduce",S)},h=S=>{n("over-limit",S)},b=S=>{n("click-btn-operate",{type:S,value:i.value})},g=S=>{S=="icon"&&n("click-close-icon"),S=="overlay"&&n("click-overlay"),S=="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:s,...l}}}),KN={class:"fox-sku"},UN={class:"fox-sku-content"};function HN(e,n,a,o,l,r){const i=t.resolveComponent("sku-header"),s=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",KN,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",UN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(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 ja=ne(FN,[["render",HN]]),{create:jN}=J("card"),WN=jN({components:{[Qe.name]:Qe,[Zt.name]:Zt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),YN={class:"fox-card"},XN={class:"fox-card__left"},QN=["src"],GN={class:"fox-card__right"},ZN={class:"fox-card__right__title"},JN={key:0,class:"fox-card__right__price"},_N={class:"fox-card__right__other"},eB={class:"fox-card__right__shop"},tB={class:"fox-card__right__shop__name"};function nB(e,n,a,o,l,r){const i=t.resolveComponent("fox-price"),s=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",YN,[t.createElementVNode("div",XN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,QN)]),t.createElementVNode("div",GN,[t.createElementVNode("div",ZN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",JN,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(i,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(i,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",_N,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(s,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",eB,[t.createElementVNode("div",tB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Wa=ne(WN,[["render",nB]]),{create:oB,scope:lB}=J("ecard"),aB=oB({components:{[Ge.name]:Ge},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}=se.useFoxI18n(lB),o=t.ref(null),l=t.ref(null),r=t.ref(""),i=t.ref(e.cardAmountMin),s=t.ref(e.modelValue),c=(h,b)=>{o.value=b,i.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",i.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{i.value=h,n("changeStep",i.value,l.value)};return t.watch(()=>e.modelValue,h=>{s.value=h}),{handleClick:c,changeStep:u,change:d,inputClick:m,stepValue:i,currentIndex:o,inputValue:r,money:s,t:a}}}),rB={class:"fox-ecard"},sB={class:"fox-ecard__title"},iB={class:"fox-ecard__list"},cB=["onClick"],uB={class:"fox-ecard__list__input--con"},dB=["placeholder"],fB={class:"fox-ecard__list__step"};function mB(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",rB,[t.createElementVNode("view",sB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",iB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(s,c)},t.toDisplayString(s.price),11,cB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...s)=>e.inputClick&&e.inputClick(...s))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",uB,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s),onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),placeholder:e.placeholder||e.t("placeholder")},null,40,dB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",fB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(i,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=s=>e.stepValue=s),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Ya=ne(aB,[["render",mB]]),{create:pB,scope:hB}=J("address-list-item"),gB=pB({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(hB);return{delClick:i=>{n("delIcon",i,e.item),i.stopPropagation()},editClick:i=>{n("editIcon",i,e.item),i.stopPropagation()},contentsClick:i=>{n("clickItem",i,e.item),i.stopPropagation()},t:a}}}),yB={class:"fox-address-list-item__info"},vB={class:"fox-address-list-item__info-contact"},bB={class:"fox-address-list-item__info-contact-name"},kB={class:"fox-address-list-item__info-contact-tel"},SB={key:0,class:"fox-address-list-item__info-contact-default"},CB={class:"fox-address-list-item__info-handle"},wB={class:"fox-address-list-item__addr"};function NB(e,n,a,o,l,r){const i=t.resolveComponent("Del"),s=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",yB,[t.createElementVNode("div",vB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",bB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",kB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",SB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",CB,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(i,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(s,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",wB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Zr=ne(gB,[["render",NB]]),{create:BB}=J("address-list-general"),AB=BB({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:Zr,[ze.name]:ze,[Xt.name]:Xt},setup(e,{emit:n}){const a=()=>t.h(Zr,{item:e.item,onDelIcon(w){i(w)},onEditIcon(w){s(w)},onClickItem(w){c(w)}});let o=null;const l=t.ref(!1),r=t.ref(!1),i=w=>{n("delIcon",w,e.item),w.stopPropagation()},s=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:s,delClick:i,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}}}}),VB={key:0,class:"fox-address-list-general"},TB={class:"fox-address-list-swipe"};function $B(e,n,a,o,l,r){const i=t.resolveComponent("fox-button"),s=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(s,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(i,{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",TB,[(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",VB,[(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 EB=ne(AB,[["render",$B]]),{componentName:xB,create:DB,scope:IB}=J("address-list"),qB=DB({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:EB,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(IB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[xB]:!0})),i=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>fs(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>i(),{deep:!0});const s=(y,S)=>{n("delIcon",y,S),y.stopPropagation()},c=(y,S)=>{n("editIcon",y,S),y.stopPropagation()},d=(y,S)=>{n("clickItem",y,S),y.stopPropagation()},m=(y,S)=>{n("longCopy",y,S),y.stopPropagation()},u=(y,S)=>{n("longSet",y,S),y.stopPropagation()},h=(y,S)=>{n("longDel",y,S),y.stopPropagation()},b=(y,S)=>{n("swipeDel",y,S),y.stopPropagation()},g=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{i()}),{classes:r,clickDelIcon:s,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:u,clickLongDel:h,clickSwipeDel:b,addAddress:g,dataArray:o,t:a}}});function MB(e,n,a,o,l,r){const i=t.resolveComponent("general-shell"),s=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(i,{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(s,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Xa=ne(qB,[["render",MB]]),{componentName:y2,create:PB}=J("category"),LB=PB({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:i=>{o.value=i,n("change",i)},checkIndex:o,categoryLeft:l}}}),zB={class:"fox-category"},OB={class:"fox-category__cateList"},RB={key:0},FB=["onClick"];function KB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",zB,[t.createElementVNode("div",OB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",RB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:s},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==s?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(s)},t.toDisplayString(i.catName),11,FB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Qa=ne(LB,[["render",KB]]),{componentName:v2,create:UB}=J("category-pane"),HB=UB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),jB={class:"fox-category-pane"},WB={key:0,class:"fox-category-pane__cateListRight"},YB={class:"fox-category-pane__childTitle"},XB={key:0,class:"fox-category-pane__childItemList"},QB=["onClick"],GB=["src"],ZB={class:"fox-category-pane__skuImg"},JB={key:1,class:"fox-category-pane__cateListRight"},_B={class:"fox-category-pane__childTitle"},eA={key:0,class:"fox-category-pane__childItemList"},tA=["onClick"],nA={class:"fox-category-pane__skuName"},oA={key:2,class:"fox-category-pane__selfItemList"},lA=["onClick"];function aA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",jB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",WB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",YB,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",XB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.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,GB),t.createElementVNode("div",ZB,t.toDisplayString(c?.catName),1)],8,QB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",JB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",_B,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",eA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",nA,t.toDisplayString(c?.catName),1)],8,tA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",oA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:s,onClick:c=>e.onChange(i)},t.toDisplayString(i?.catName),9,lA))),128))])):t.createCommentVNode("",!0)])}const Ga=ne(HB,[["render",aA]]),{componentName:b2,create:rA}=J("comment-header"),sA=rA({components:{[wt.name]:wt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),iA={class:"fox-comment-header__user"},cA={class:"fox-comment-header__user-avter"},uA=["src"],dA={class:"fox-comment-header__user-score"},fA={key:0,class:"fox-comment-header__time"};function mA(e,n,a,o,l,r){const i=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",iA,[t.createElementVNode("view",cA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,uA)):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",dA,[t.createVNode(i,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=s=>e.info.score=s),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",fA,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(i,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=s=>e.info.score=s),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 pA=ne(sA,[["render",mA]]),{componentName:k2,create:hA}=J("comment-images"),gA=hA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],i=>{i[0].length>0&&i[0].forEach(s=>{s.type="video"}),l.value=i[0].concat(i[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(i=>{i.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(i,s)=>{const{videos:c,images:d}=e,m=i=="img"?s-c.length:s;n("clickImages",{type:i,index:m,value:i=="img"?d[m]:c[m]})},totalImages:l}}}),yA=["onClick"],vA=["src"],bA=["onClick"],kA=["src"],SA={key:0,class:"fox-comment-images__mask"};function CA(e,n,a,o,l,r){const i=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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:s.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:s.mainUrl},null,8,vA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,yA))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:s.smallImgUrl?s.smallImgUrl:s.imgUrl},null,8,kA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",SA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(i,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,bA)):t.createCommentVNode("",!0)],64))),128))],2)}const wA=ne(gA,[["render",CA]]),{componentName:S2,create:NA,scope:BA}=J("comment-bottom"),AA=NA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(BA),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const s=["replay","like","more"];e.operation&&e.operation.forEach(c=>{s.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:s=>{s=="more"&&(o.value=!o.value),n("clickOperate",s)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),VA={class:"fox-comment-bottom"},TA={key:0},$A={class:"fox-comment-bottom__cpx"},EA=["onClick"];function xA(e,n,a,o,l,r){const i=t.resolveComponent("Fabulous"),s=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",VA,[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",TA,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",$A,[(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(i,{key:0})):(t.openBlock(),t.createBlock(s,{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,EA))),128))])])}const DA=ne(AA,[["render",xA]]),{componentName:IA,create:qA,scope:MA}=J("comment"),PA=qA({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:pA,CommentImages:wA,CommentBottom:DA,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(MA),o=t.computed(()=>({[IA]:!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}}}),LA=["innerHTML"],zA={class:"fox-comment__follow-title"},OA={class:"fox-comment__follow-com"},RA={key:0,class:"fox-comment__follow-img"};function FA(e,n,a,o,l,r){const i=t.resolveComponent("comment-header"),s=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(i,{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,LA),t.createVNode(s,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",zA,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",OA,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",RA,[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 Za=ne(PA,[["render",FA]]),KA=[rl,il,cl,ul,dl,we,ml,pl,hl,gl,yl,Gn,vl,bl,Sl,Cl,ao,ro,wl,so,io,Nl,Bl,Tt,Al,Vl,mo,Tl,$l,_n,eo,to,El,xl,Dl,at,Il,ql,Ml,Pl,Ll,zl,Ol,ze,Rl,Fl,ct,fe,Kl,Ul,Hl,jl,Ht,Wl,Yl,Xl,Ql,Gl,Zl,Jl,_l,ea,jt,ta,na,oa,la,aa,ra,sa,Wt,fo,no,lo,oo,Ge,wt,_t,ia,ca,ua,Xt,da,fa,ma,Qt,uo,pa,ga,co,$t,va,ba,Gt,ka,Sa,Yt,Ca,wa,Na,Nt,Ba,Aa,Bt,At,Qe,po,Va,Ta,$a,Zt,Jt,Ea,xa,Da,Ia,qa,Ma,Pa,La,za,Oa,Ra,Fa,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga,Za],UA=new qi(KA,"4.0.0");exports.ActionSheet=da;exports.ActionsheetItem=Tl;exports.ActionsheetPane=mo;exports.Address=Oa;exports.AddressList=Xa;exports.Animate=Ma;exports.Audio=va;exports.AudioOperate=ba;exports.Avatar=Gt;exports.AvatarGroup=ka;exports.BackTop=fa;exports.Badge=$a;exports.Barrage=Ra;exports.Broadcast=ol;exports.BroadcastKey=Se;exports.Button=ze;exports.Calendar=lo;exports.CalendarItem=Cl;exports.Card=Wa;exports.Cascader=no;exports.CascaderItem=bl;exports.Category=Qa;exports.CategoryPane=Ga;exports.Cell=Rl;exports.CellGroup=Fl;exports.Checkbox=so;exports.CheckboxGroup=io;exports.CheckboxItem=Nl;exports.CircleProgress=Ca;exports.Col=Hl;exports.Collapse=xa;exports.CollapseItem=Da;exports.Comment=Za;exports.Content=ul;exports.CountDown=Ta;exports.CountUp=Va;exports.DataItemsKey=pt;exports.DateItem=Sl;exports.DatePicker=oo;exports.DateUtils=ae;exports.Dialog=Qt;exports.Divider=Wl;exports.Domain=Ln;exports.DomainKey=xe;exports.DomainProvider=zl;exports.Drag=ma;exports.Dropdown=ql;exports.Ecard=Ya;exports.Elevator=jt;exports.Ellipsis=qa;exports.Empty=Na;exports.FixedNav=Gl;exports.FloatingButton=xl;exports.FooterBar=cl;exports.FoxActionSheet=da;exports.FoxActionsheetItem=Tl;exports.FoxActionsheetPane=mo;exports.FoxAddress=Oa;exports.FoxAddressList=Xa;exports.FoxAnimate=Ma;exports.FoxAudio=va;exports.FoxAudioOperate=ba;exports.FoxAvatar=Gt;exports.FoxAvatarGroup=ka;exports.FoxBackTop=fa;exports.FoxBadge=$a;exports.FoxBarrage=Ra;exports.FoxButton=ze;exports.FoxCalendar=lo;exports.FoxCalendarItem=Cl;exports.FoxCard=Wa;exports.FoxCascader=no;exports.FoxCascaderItem=bl;exports.FoxCategory=Qa;exports.FoxCategoryPane=Ga;exports.FoxCell=Rl;exports.FoxCellGroup=Fl;exports.FoxCheckbox=so;exports.FoxCheckboxGroup=io;exports.FoxCheckboxItem=Nl;exports.FoxCircleProgress=Ca;exports.FoxCol=Hl;exports.FoxCollapse=xa;exports.FoxCollapseItem=Da;exports.FoxComment=Za;exports.FoxContent=ul;exports.FoxCountDown=Ta;exports.FoxCountUp=Va;exports.FoxDateItem=Sl;exports.FoxDatePicker=oo;exports.FoxDialog=Qt;exports.FoxDivider=Wl;exports.FoxDomainProvider=zl;exports.FoxDrag=ma;exports.FoxDropdown=ql;exports.FoxEcard=Ya;exports.FoxElevator=jt;exports.FoxEllipsis=qa;exports.FoxEmpty=Na;exports.FoxFixedNav=Gl;exports.FoxFloatingButton=xl;exports.FoxFooterBar=cl;exports.FoxGrid=Yl;exports.FoxGridItem=Xl;exports.FoxGroup=dl;exports.FoxHeaderBar=il;exports.FoxHintText=Tt;exports.FoxImage=Kl;exports.FoxImagePreview=po;exports.FoxIndicator=la;exports.FoxInfiniteLoading=uo;exports.FoxInputItem=hl;exports.FoxInputNumber=Ge;exports.FoxInputnumberItem=$l;exports.FoxItem=we;exports.FoxLayout=Ul;exports.FoxLinkItem=Al;exports.FoxList=Sa;exports.FoxMapping=Ll;exports.FoxMenu=Zl;exports.FoxMenuItem=Jl;exports.FoxMessageBox=at;exports.FoxMoneyItem=gl;exports.FoxMoreButton=Dl;exports.FoxNavbar=Ql;exports.FoxNoticeBar=wa;exports.FoxNotify=ga;exports.FoxNumberKeyboard=ua;exports.FoxOverLay=ct;exports.FoxPage=rl;exports.FoxPagination=ta;exports.FoxPicker=_t;exports.FoxPickerItem=vl;exports.FoxPopover=Jt;exports.FoxPopoverDialog=Ml;exports.FoxPopup=fe;exports.FoxPopupWrapper=Il;exports.FoxPrice=Qe;exports.FoxProgress=Yt;exports.FoxPullRefresh=pa;exports.FoxRadio=ao;exports.FoxRadioGroup=ro;exports.FoxRadioItem=wl;exports.FoxRange=Wt;exports.FoxRate=wt;exports.FoxRateItem=Vl;exports.FoxRollingProvider=Ol;exports.FoxRow=jl;exports.FoxRowItem=ml;exports.FoxSearchBar=fo;exports.FoxShortPassword=ia;exports.FoxSideNavBar=aa;exports.FoxSideNavBarItem=ra;exports.FoxSignature=Fa;exports.FoxSkeleton=Ea;exports.FoxSku=ja;exports.FoxSlotItem=pl;exports.FoxStep=Aa;exports.FoxSteps=Ba;exports.FoxStepsBar=El;exports.FoxSticky=Ht;exports.FoxSubSideNavBar=sa;exports.FoxSwipe=Xt;exports.FoxSwiper=Bt;exports.FoxSwiperItem=At;exports.FoxSwitch=co;exports.FoxSwitchItem=Bl;exports.FoxTabPane=oa;exports.FoxTabbar=_l;exports.FoxTabbarItem=ea;exports.FoxTable=Ia;exports.FoxTabs=na;exports.FoxTabsBar=_n;exports.FoxTabsContainer=eo;exports.FoxTabsPane=to;exports.FoxTag=Zt;exports.FoxText=Pl;exports.FoxTextarea=Gn;exports.FoxTextareaItem=yl;exports.FoxTimeDetail=Ha;exports.FoxTimePannel=Ua;exports.FoxTimeSelect=Ka;exports.FoxToast=$t;exports.FoxTour=za;exports.FoxTrendArrow=La;exports.FoxUploader=ca;exports.FoxVideo=Nt;exports.FoxWaterMark=Pa;exports.Grid=Yl;exports.GridItem=Xl;exports.Group=dl;exports.HeaderBar=il;exports.HintText=Tt;exports.Image=Kl;exports.ImagePreview=po;exports.Indicator=la;exports.InfiniteLoading=uo;exports.InputItem=hl;exports.InputNumber=Ge;exports.InputnumberItem=$l;exports.Item=we;exports.Layout=Ul;exports.LinkItem=Al;exports.List=Sa;exports.Mapping=Ll;exports.Menu=Zl;exports.MenuItem=Jl;exports.MessageBox=at;exports.MoneyItem=gl;exports.MoreButton=Dl;exports.Navbar=Ql;exports.NoticeBar=wa;exports.Notify=ga;exports.NumberKeyboard=ua;exports.OverLay=ct;exports.Page=rl;exports.Pagination=ta;exports.Picker=_t;exports.PickerItem=vl;exports.Popover=Jt;exports.PopoverDialog=Ml;exports.Popup=fe;exports.PopupWrapper=Il;exports.Price=Qe;exports.PriorityPolicy=Vn;exports.Progress=Yt;exports.PullRefresh=pa;exports.Radio=ao;exports.RadioGroup=ro;exports.RadioItem=wl;exports.Range=Wt;exports.Rate=wt;exports.RateItem=Vl;exports.RollingProvider=Ol;exports.Row=jl;exports.RowItem=ml;exports.SearchBar=fo;exports.ShortPassword=ia;exports.SideNavBar=aa;exports.SideNavBarItem=ra;exports.Signature=Fa;exports.Skeleton=Ea;exports.Sku=ja;exports.SlotItem=pl;exports.Step=Aa;exports.Steps=Ba;exports.StepsBar=El;exports.Sticky=Ht;exports.SubSideNavBar=sa;exports.Swipe=Xt;exports.Swiper=Bt;exports.SwiperItem=At;exports.Switch=co;exports.SwitchItem=Bl;exports.TabPane=oa;exports.Tabbar=_l;exports.TabbarItem=ea;exports.Table=Ia;exports.Tabs=na;exports.TabsBar=_n;exports.TabsContainer=eo;exports.TabsPane=to;exports.Tag=Zt;exports.Text=Pl;exports.Textarea=Gn;exports.TextareaItem=yl;exports.TimeDetail=Ha;exports.TimePannel=Ua;exports.TimeSelect=Ka;exports.Toast=$t;exports.Tour=za;exports.TrendArrow=La;exports.UniqueID=Qn;exports.Uploader=ca;exports.ValidateSchema=ys;exports.ValidateSchemaKey=Le;exports.Video=Nt;exports.WaterMark=Pa;exports.cancelRaf=Jr;exports.clamp=He;exports.clearNonNumber=Mo;exports.clone=Io;exports.compareTo=xo;exports.createBroadcast=Mn;exports.createValidateSchema=Pn;exports.debounce=Me;exports.debounceRef=Ci;exports.decimalLength=ds;exports.default=UA;exports.defineBroadcast=mi;exports.defineConfigDomain=bs;exports.defineDataItem=ks;exports.defineDomain=al;exports.defineItem=Ae;exports.definePageState=Ss;exports.defineSimpleItem=Vt;exports.deleteGlobalValidator=vi;exports.disabledProperty=$e;exports.divide=tl;exports.excludeProps=Je;exports.extend=rt;exports.floatData=fs;exports.getGlobalIcons=Kn;exports.getGlobalValidateCheckEvents=ps;exports.getGlobalValidateResetEvents=gs;exports.getPageContentAreaHeight=Bn;exports.getPageContentAreaWidth=An;exports.getPageFooterAreaHeight=Rn;exports.getPageHeaderAreaHeight=On;exports.getRootDomain=yt;exports.hasSymbol=rs;exports.includeProps=be;exports.indexOf=di;exports.integerLength=us;exports.isArray=Dn;exports.isArrayLike=is;exports.isBrowser=Ze;exports.isDate=je;exports.isESModule=ri;exports.isEmptyString=ue;exports.isEqual=Ie;exports.isFunction=wn;exports.isHidden=qn;exports.isInnerPage=Ai;exports.isMap=oi;exports.isNil=os;exports.isNumberString=nl;exports.isObject=De;exports.isPlainObject=Do;exports.isPromise=bt;exports.isRegExp=qo;exports.isSet=li;exports.isString=ls;exports.isSubPage=Vi;exports.isSymbol=ai;exports.isTouch=Zn;exports.isWindow=ss;exports.lastIndexOf=fi;exports.makeArray=ui;exports.merge=cs;exports.multiply=es;exports.negate=ts;exports.nextTick=ii;exports.numberFormat=xn;exports.objectToString=as;exports.once=wi;exports.overrideGlobalIcons=Ki;exports.overrideGlobalValidateHandler=gi;exports.padZero=nt;exports.preventDefault=Po;exports.property=Ve;exports.px2Number=Bi;exports.raf=Ue;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=bi;exports.setGlobalValidateHandler=hi;exports.setGlobalValidateMessages=Si;exports.setGlobalValidateResetEvents=ki;exports.setGlobalValidator=yi;exports.throttle=Lo;exports.toBoolean=ye;exports.toNumber=me;exports.toPadding=Re;exports.toPx=de;exports.toPxDesc=he;exports.toTypeString=In;exports.toValue=Pe;exports.tryTimes=ll;exports.typeOf=st;exports.unNumberFormat=ns;exports.updatePageState=zo;exports.useBroadcast=Lt;exports.useDomain=_e;exports.useExpose=Ee;exports.useInnerSize=Fn;exports.usePageState=zn;exports.usePosition=fl;exports.useRawTouch=Jn;exports.useRect=qe;exports.useSize=sl;exports.useTouch=tt;exports.valueLength=ve;