@fox-js/foxui 4.0.1-30 → 4.0.1-32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +6467 -6260
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +187 -182
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),_e=require("@fox-js/validator"),te=require("@fox-js/icons-vue"),ae=require("@fox-js/i18n"),
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Thu Mar 14 2024 16:23:01 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),_e=require("@fox-js/validator"),te=require("@fox-js/icons-vue"),ae=require("@fox-js/i18n"),Xt=window,As=typeof window<"u";function $s(){return typeof Xt<"u"?Xt.requestAnimationFrame||Xt.webkitRequestAnimationFrame||function(e){Xt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function gr(e){As?cancelAnimationFrame(e):clearTimeout(e)}const We=$s();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function no(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=Se(e),o=Se(o),[e,o]=$n(Se(e),Se(o)),l==1&&(n==1?e=Uo(e):o=Uo(o));let a=gr(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(Uo(a)):Se(a)}function Uo(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return gr(o,r)}function Se(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function $n(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function gr(e,o){[e,o]=$n(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var ye=(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))(ye||{});function It(e,o=0,l=ye.HALF_EVEN){if(l===ye.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=It(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,Aa(a[1],r,n,l)?(n?"-":"")+Ho(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&Aa(i,s,n,l)&&(s=Ho(s),s.length>o)?(n?"-":"")+Ho(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Aa(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!l&&n===ye.FLOOR||l&&n===ye.CEILING)return!1;if(n===ye.UP||l&&n===ye.FLOOR||!l&&n===ye.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Ho(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function tn(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=wt(e),o=wt(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=wt(e.replace(".","")),o=wt(o.replace(".","")),e.length<o.length){let m=e;e=o,o=m}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,f="";for(let m=0;m<s;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let h=0;for(let y=o.length-1;y>=d&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(o[y]));h+=i,i=Math.floor(h/10),f=h%10+f,d--}return f=wt(Ts(f,r)),l==1&&(f="-"+f),f}function Ts(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function wt(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 on(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=Se(o.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Se(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Se(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let f=e.length-d+a;e=Se(e.substring(0,f)+"."+e.substring(f))}else a==d&&(e=Se(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(c)>=parseInt(o);)c=no(c,"-"+o),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+Se(It(i,l-2))}function nn(e,o){return e=e.toString(),o=o.toString(),o=ln(o),no(e,o)}function ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ta(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),$a(e),$a(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=nn(e,tn(o,It(on(e,o),0,ye.FLOOR)));return l+n}function $a(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ea(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=$n(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=ye;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=Se(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+Se(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=re.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=re.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return re.getPrettyValue(this.value,o,l)}static round(o,l=0,n=ye.HALF_EVEN){if(o=re.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return It(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(It(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),no(o,l)}add(o){return new re(no(this.value,o.getValue()))}static subtract(o,l){return o=re.validate(o),l=re.validate(l),nn(o,l)}subtract(o){return new re(nn(this.value,o.getValue()))}static multiply(o,l){return o=re.validate(o),l=re.validate(l),tn(o,l)}multiply(o){return new re(tn(this.value,o.getValue()))}static divide(o,l,n){return o=re.validate(o),l=re.validate(l),on(o,l,n)}divide(o,l){return new re(on(this.value,o.getValue(),l))}static modulus(o,l){return o=re.validate(o),l=re.validate(l),Ta(o,l)}modulus(o){return new re(Ta(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),Ea(o,l)}compareTo(o){return Ea(this.value,o.getValue())}static negate(o){return o=re.validate(o),ln(o)}negate(){return new re(ln(this.value))}}function yr(e,o){return re.multiply(`${e}`,`${o}`)}function En(e,o,l=8){return re.divide(`${e}`,`${o}`,l)}function an(e,o){return e=`${e}`,o=`${o}`,re.compareTo(e,o)}function vr(e){return re.negate(e)}function mo(e,o=-1,l=!1,n=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let f;if(n>0){let m="",h=i.split("").reverse();for(let y=0;y<h.length;y++)m+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?f=`${s}${m.split("").reverse().join("")}`:f=`${s}${m.split("").reverse().join("")}.${c}`}else c.length==0?f=`${s}${i}`:f=`${s}${i}.${c}`;return f}function kr(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const st=typeof window<"u",Le=je;function br(e){return e==null}const po=Array.isArray,$s=e=>ho(e)==="[object Map]",Es=e=>ho(e)==="[object Set]",Fe=e=>e instanceof Date,lo=e=>typeof e=="function",Sr=e=>typeof e=="string",Ds=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Dn=e=>Be(e)&&lo(e.then)&&lo(e.catch),Cr=Object.prototype.toString,ho=e=>Cr.call(e),rn=e=>ho(e)==="[object Object]",wr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function xs(e){return e.__esModule||wr&&e[Symbol.toStringTag]==="Module"}const Is=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},o[s]=nt(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function sn(e,o,l=!1){if(!l)nt(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!rn(s))continue;r=sn(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!rn(s))continue;r=sn(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const jo=Is?Promise.resolve():null;function qs(e,...o){jo!==null?o&&o.length>0?jo.then(()=>{e(o)}):jo.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function pe(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 Ms={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Ms[l]||"object"}function go(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function Nr(e){return e&&typeof e=="object"&&"setInterval"in e}function Br(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||Nr(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Vr(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function zs(e,o=[]){let l=o;return e!=null&&(Br(Object(e))?Vr(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=lt(e),n=lt(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],d=o[i];if(!xe(c,d))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!xe(r,s))return!1}return!0}return!1}function Ar(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ie=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Tr(e){return ie(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ie(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function $r(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function Er(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function Da(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function cn(e,o=!0,l=!0){o?e=Da(e,".",/\./g):e=e.replace(/\./g,""),l?e=Da(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ls(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Ps(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(xe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function xn(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const Dr=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function un(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Je=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Pe=(e,o,l)=>Math.min(Math.max(e,o),l),In=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ke=Symbol.for("BroadcastKey");class qn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):Ar(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function yo(e,o,l,n){const a=new qn(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function Rs(e,o,l){const n=l;if(n[ke])return n[ke];const a=t.inject(ke,null),r=new qn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),n[ke]=void 0}),r}function $t(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const et=e=>e.default??e;class Fs{error(o,l){const n=l,a=$t(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=$t(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=$t(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=$t(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let xr=new Fs;function Os(e){xr=e}function Ks(e,o){et(_e).setValidator(e,o)}function Us(e){et(_e).deleteValidator(e)}let Ir=["blur","clear"];function Hs(e){Ir=e}function qr(){return Ir}let Mr=["focus","change"];function js(e){Mr=e}function zr(){return Mr}function Ws(e){et(_e).messages(e)}function Nt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Xt(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const Re=Symbol("ValidateSchemaKey");class Lr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=Xt(Nt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Xt(n);const a=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=xr;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?et(_e).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?et(_e).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return et(_e).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=Nt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Xt(o):this.rules=Xt([o]);const n=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=et(_e),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(m=>{if(m.pass)this.success();else{let h="error";Array.isArray(m.errors)&&m.errors.length>0&&(h=m.errors[0].message??h,m.errors=[m.errors[0]],m.errors[0].ref=d),this.error(h)}return m}).catch(m=>{const h=m.message??`${m}`;return this.error(h),m})}}return Promise.resolve({pass:!0})}}function vo(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new Lr(o,l,e)}const xa=Symbol("EventEmitterKey");class Ys{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function ht(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function ao(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Xs(e,o){const l=ht((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function Qs(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}function Mn(e,o,l,n=0,a=!0){let r=o,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=n,setTimeout(i,r))};setTimeout(i,r)}const De=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class ko{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const Gs=new ko;function mt(){return Gs}function Oe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const Wo=Symbol("OriginalDateKey");function zn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(De,null);s===null&&(s=mt());const i=e||o.prop||o.name,c=new ko(i);c.parent=s;const d=v=>{r[Wo]||h(v),c.set("modelValue",v)},f=()=>c.getForSelf("modelValue")??null,m=()=>r[Wo]??null,h=v=>{const b={};nt(!0,b,t.toRaw(v)),r[Wo]=b};t.isReactive(o)||typeof o=="function"?t.watch(o,v=>{c.merge(v,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[De]=c,t.provide(De,c);let y=null,g=null;if(a!==null){const v=t.inject(ke,null);y=yo(r,v,i,n),c.broadcast=y,r[ke]=y,t.provide(ke,y),r.broadcast=(u,p,...k)=>Reflect.apply(y.emit,y,[u,p,...k]);const b=t.inject(Re,null);g=vo(r,b,{componentName:""}),c.validateSchema=g,r[Re]=g,t.provide(Re,g),r[ut]=new Map,r.validate=(u=!0)=>{const p=[];let k=null;const S={deep:!1};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const w=u;k={name:N=>N?w.indexOf(N)!==-1:!1}}else if(u!=null&&typeof u=="object"){const w=u;if(S.ignoreHidden=w.ignoreHidden,Array.isArray(w.include)&&w.include.length>0){const N=w.include;k={name:T=>T?N.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const N=w.exclude;k={name:T=>T?N.indexOf(T)===-1:!1}}else k={name:"*"}}if(k){const w=y?.emitToChildren(k,"validate",S);w&&Reflect.apply([].push,p,w)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(w=>{let N=[];return w.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(N=[...N,...T.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0,k=!1)=>{if(k===!0){Reflect.ownKeys(u).forEach(w=>{let N=String(w);const B=Fr(c,N,{componentName:"",fieldName:N,pureDataValidate:!0},y,g);r[ut].set(N,B);const D=u[N];D&&B.validateSchema.setRule(D)});return}if(p){const S=Reflect.ownKeys(u),w={name:N=>S.includes(N)};y?.emitToChildren(w,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const k=u;p={name:S=>S?k.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const k=u;if(Array.isArray(k.include)&&k.include.length>0){const S=k.include;p={name:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const S=k.exclude;p={name:w=>w?S.indexOf(w)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=f();if(!p)return;const k={};if(nt(!0,k,m()??{}),Array.isArray(u))u.forEach(S=>{p[S]=k[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(w=>{p[w]=k[w]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(k).forEach(w=>{S.includes(w)||(p[w]=k[w])})}else Object.assign(p,k);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>f()}return t.onUnmounted(()=>{c.destroy(),r[De]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),y!==null&&(y.destroy(),r[ke]=void 0),g!==null&&(g.destroy(),r[Re]=void 0)}),c}function Pr(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(De,null);r===null&&(r=mt());const s=e||o.prop||o.name,i=new ko(s);return i.parent=r,t.isReactive(o)||typeof o=="function"?t.watch(o,c=>{i.merge(c,l)},{immediate:!0}):i.merge(o,l),a[De]=i,t.provide(De,i),t.onUnmounted(()=>{i.destroy(),a[De]=void 0}),i}function Rr(e,o,l){const a=Oe(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),o.setRule(r))}function we(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ke,null),i=yo(a,s,r,l);a[ke]=i,t.provide(ke,i),a.broadcast=(g,v,...b)=>Reflect.apply(i.emit,i,[g,v,...b]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=vo(a,c,e);a[Re]=d,t.provide(Re,d),Rr(a,d,r),a.validate=(g=null)=>{const v=[];let b=!1,u=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)u=!0,b=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&go(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),b=p.deep??!1}else typeof g=="boolean"&&(b=g),u=!0;if(u){const p=d?.validate();v.push(p)}if(b){let p=null;const k={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;p={name:w=>w?S.indexOf(w)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(k.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const w=S.include;p={name:N=>N?w.indexOf(N)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const w=S.exclude;p={name:N=>N?w.indexOf(N)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",k);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).then(p=>{let k=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(k=[...k,...S.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>d?.setRule(g),a.setNameValidateRules=(g,v=!1)=>{const b=g[r];if(b&&d?.setRule(b),v){const u={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(u,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&d?.clear();let v=null;if(g===!0)v={name:"*"};else if(Array.isArray(g)&&g.length>0){const b=g;v={name:u=>u?b.indexOf(u)!==-1:!1}}else if(g!=null&&typeof g=="object"){const b=g;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;v={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;v={name:p=>p?u.indexOf(p)===-1:!1}}else v={name:"*"}}v&&i.emitToChildren(v,"clearValidate",!1)};const f=new Ys(a);a[xa]=f;const m=ht((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:qr()).forEach(g=>{f.on(g,v=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:zr()).forEach(g=>{f.on(g,v=>{m("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ke]=void 0,d.destroy(),a[Re]=void 0,f.destroy(),a[xa]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(g,...v)=>{Reflect.apply(f.emit,f,[g,...v])},onEvent:(g,v)=>{Reflect.apply(f.on,f,[v])},offEvent:(g,v)=>{Reflect.apply(f.off,f,[v])}}}function Fr(e,o,l,n,a){const r={},s=o??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};l.fieldName=s,l.validateHandler={getValue(f){return i.getValue()}};const c=vo({},a,l);r.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const m=[];let h=!1,y=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)y=!0,h=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),y=!0,h=g.deep??!1}else typeof f=="boolean"&&(h=f),y=!0;if(y){const g=c?.validate();m.push(g)}if(h){let g=null;const v={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const b=f;g={name:u=>u?b.indexOf(u)!==-1:!1}}else if(f!=null&&typeof f=="object"){const b=f;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;g={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;g={name:p=>p?u.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const b=d.emitToChildren(g,"validate",v);Reflect.apply([].push,m,b)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let v=[];return g.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(v=[...v,...b.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=f=>c?.setRule(f),r.setNameValidateRules=f=>{const m=f[s];m&&c?.setRule(m)};const d=yo(null,n,s,r);return{broadcast:d,validateSchema:c}}const fe=e=>e?`${se(e)}px`:"";function se(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(st){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const We="PageStateKey";function Me(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=se(e.top)),e.left!==null&&e.left!==void 0&&(o.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=se(e.right))),o}function dn(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight??-1),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight??-1),e.footerPadding=Me(l.footerPadding??o.footerPadding),e.contentPadding=Me(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=se(c,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(l.width??o.width??0,a)}}function Or(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=se(a.top),n.safeAreaBottom=se(a.bottom),n.safeAreaLeft=se(a.left),n.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;dn(n,r,o,!0,s,i,c,d);const f=t.reactive(n),m=e.getForParent(We);m&&(n.height=ro(e,m),n.width=so(e,m),t.watch([()=>ro(e,m),()=>so(e,m)],([y,g])=>{f.height=y,f.width=g}));const h=!m;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,v=-1,b=-1,u=0,p=0])=>{dn(f,g,o,h,v,b,u,p)}),e.set(We,f),f}function bo(e){return e.get(We)}function So(e,o){if(o=o??e.get(We),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function Co(e,o){if(o=o??e.get(We),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function ro(e,o){if(o=o??e.get(We),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=So(e,o),n=Co(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function so(e,o){return o=o??e.get(We),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function Zs(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function Js(e){return!!e.getForParent(We)}var io=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(io||{});function Yo(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ne(e,o,l=1,n){const a=Oe();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Yo(c,n))return c}const s=e.value;return Yo(s,n)?s:null}):t.computed(()=>{const r=e.value;return Yo(r,n)?r:a?.get(o)})}function Ae(e){return Ne(e,"readonly",0,function(l){return pe(l)})}function Ce(e){return Ne(e,"disabled",0,function(l){return pe(l)})}function Ee(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Kr=new Map,co=new Map;let fn=null;function _s(e){fn=e}function Ur(e,o,l){if(l){let n=co.get(l);n||(n=new Map,co.set(l,n)),n.set(e,o)}else Kr.set(e,o)}function Ge(e,o,l){!l&&fn&&(l=fn(e)??void 0);let n=null;if(l){let a=co.get(l);a&&(n=a.get(o))}return n||(n=Kr.get(o)),n}function ei(e,o){for(let l in e){const n=e[l];Ur(l,n,o)}}function ti(e){co.delete(e)}function oi(){return{top:0,left:0,bottom:0,right:0}}function ni(e=0,o=0){if(st){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-se(e,n)-se(o,n)};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class li{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=mt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ao(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=nt({},oi(),o.safeAreaInset),s=ni(n,a),i=nt({},s.pageLayout,o.pageLayout);l=l??mt(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){_s(o)}setAPI(o,l,n){Ur(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){ei(o,l)}clearScopeAPI(o){ti(o)}getRootDomain(){return mt()}}function X(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const ai=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Sr(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};lo(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(f=>{c.use(f)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Hr=(e,o)=>e?t.h(e,o):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},de={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},jr={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}},Wr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Yr=[];for(const e in Wr)Yr.push(e);function Te(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const ri=Symbol.for("InnerPageScopeKey"),si=(e,o)=>({inheritAttrs:!0,props:{...ue,...jr,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}},setup(l,n){const a=zn(l.name,l);if(a){const d=Or(a,l);Te({getPageContentHeight:()=>ro(a,d),getPageContentWidth:()=>so(a,d),getPageHeaderHeight:()=>So(a,d),getPageFooterHeight:()=>Co(a,d)});const f=t.inject(ri,!1);d&&f&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(d,f=!1)=>{const m=i?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0,f)};return t.watch([()=>l.rules,()=>l.pureDataRules],([d,f],[m,h])=>{if(d&&m){const y=t.toRaw(m),g=t.toRaw(d),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g)}if(f&&h){const y=t.toRaw(h),g=t.toRaw(f),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=t.toRaw(l.pureDataRules);c(d,!0)}}),{classes:r,styles:s}}}),{componentName:ii,create:ci,scope:VB}=X("page"),ui=ci(si(ii));function di(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const J=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Ln=J(ui,[["render",di]]);function wo(e){const o=t.unref(e);return{width:o.offsetWidth,height:o.offsetHeight}}function Pn(e){const o=t.unref(e),l=window.getComputedStyle(o,null),n=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:o.clientWidth-n-a,height:o.clientHeight-r-s}}const fi=(e,o,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},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(a,r){const s=Oe(),i=s?bo(s):null;i&&(i.headerMounted=!0);const c=e,d=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),f=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),m=a.height!==null&&a.height!==void 0?se(a.height):null,h=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const V=Me(a.padding??i.headerPadding);return Object.assign(C,V),m&&(i.headerHeight=m),i.headerHeight>0&&(C.height=i.headerHeight),C.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(V.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(m&&(C.height=m),a.padding){const V=Me(a.padding);Object.assign(C,V)}return C}),y=t.ref(null),g=()=>{if(i&&y.value&&!go(y.value)){if(!n){const C=wo(y.value);i.headerAllHeight=C.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(Mn(g,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(()=>{g()}),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const b=t.computed(()=>{const C={};return h.value.height!==null&&h.value.height!==void 0&&(C.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(C.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(C.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(C.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(C.paddingBottom=`${h.value.bottom}px`),C}),u=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function p(){r.emit("back")}function k(){r.emit("click-title")}function S(){r.emit("click-right")}function w(){r.emit("click-right-text")}const N=()=>{if(!a.leftShow)return null;const C=[];if(r.slots.left)C.push(r.slots.left());else{if(r.slots.leftIcon){const V=t.h("view",{class:"left-icon",onClick:p},[r.slots.leftIcon()]);C.push(V)}else if(a.leftIcon){const V=t.h("view",{class:"left-icon",onClick:p},[t.h(a.leftIcon)]);C.push(V)}if(a.leftText){const V=t.h("view",{class:"left-text",onClick:p},[a.leftText]);C.push(V)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__left"},C)},T=()=>{if(!a.rightShow)return null;const C=[];if(r.slots.right)C.push(r.slots.right());else{if(a.rightText){const V=t.h("view",{class:"right-text",onClick:w},[a.rightText]);C.push(V)}if(r.slots.rightIcon){const V=t.h("view",{class:"right-icon",onClick:S},[r.slots.rightIcon()]);C.push(V)}else if(a.rightIcon){const V=t.h("view",{class:"right-icon",onClick:S},[t.h(a.rightIcon)]);C.push(V)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__right"},C)},B=()=>{if(!a.titleShow)return null;const C=[],V=r.slots.default?r.slots.default():null;if(V)C.push(V);else{if(a.title){const M=t.h("view",{class:"title-text"},[a.title]);C.push(M)}if(r.slots.titleIcon){const M=t.h("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);C.push(M)}else if(a.titleIcon){const M=t.h("view",{class:"title-icon",onClick:k},[t.h(a.titleIcon)]);C.push(M)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__title"},C)},D=()=>{const C=[],V=r.slots.bottom?r.slots.bottom():null;return V&&C.push(V),C.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(!u.value)return null;const C=[];if(r.slots.all)C.push(r.slots.all());else{const M=[],L=N();L&&M.push(L);const $=B();$&&M.push($);const E=T();if(E&&M.push(E),M.length>0){const A=t.h("view",{class:f.value},M);C.push(A)}const x=D();x&&C.push(x)}if(C.length===0)return null;const V={class:d.value,style:b.value,ref:y};return t.h("view",V,C)}}}),{componentName:mi,create:pi,scope:hi}=X("header-bar"),Rn=pi(fi(mi,hi,te.Left,!1));function gi(e,o,l=!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(n,a){const r=Oe(),s=r?bo(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),c=n.height!==null&&n.height!==void 0?se(n.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const v=Me(n.padding??s.footerPadding);return Object.assign(g,v),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(v.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),n.padding){const v=Me(n.padding);Object.assign(g,v)}return g}),f=t.ref(null),m=()=>{if(s&&f.value&&!go(f.value)){if(!l){const g=wo(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(Mn(m,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{m()}),h.observe(f.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const y=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=fe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=fe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=fe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=fe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=fe(d.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],v={ref:f,class:i.value,style:y.value};return t.h("view",v,g)}}}}const{componentName:yi,create:vi,scope:ki}=X("footer-bar"),Fn=vi(gi(yi,ki,!1));function bi(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Oe(),a=t.computed(()=>({[e]:!0})),r=n?bo(n):null,s=t.computed(()=>{const d={};if(n&&r){if(l.padding){const u=Me(l.padding);Object.assign(r.contentPadding,u)}const f=So(n,r),m=Co(n,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",f),console.debug("[content]footer height:",m),console.debug("[content]padding:",r.contentPadding),d.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||f>0)&&(y=y<0?0:y,d.paddingTop=`${f+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||m>0)&&(g=g<0?0:g,d.paddingBottom=`${m+g}px`);const v=(r&&r.contentPadding&&r.contentPadding.left)??-1;v>=0&&(d.paddingLeft=`${v}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(d.paddingRight=`${b}px`),d}if(l.padding){const f=Me(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=t.ref(null),c=ht(()=>{if(r&&i.value){const d=Pn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Si,create:Ci,scope:AB}=X("content"),wi=Ci(bi(Si));function Ni(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const On=J(wi,[["render",Ni]]),gt="GroupStateKey",Xr=Symbol.for("GroupScopeKey");function No(){return t.inject(Xr,!1)}function Bo(e=!0){t.provide(Xr,e)}function Bi(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];br(a)||(e[n]=a)})}function Vi(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bi(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(gt,r),r}function Xo(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(gt);if(!c)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=se(r),m=se(s);i||(i=d.type??"grid");const h=()=>{const y=o===""||o===-1,g=se(o);let v=me(l);const b=se(n);if(!y){let k=(g-(v-1)*b)/v;for(;m!==-1&&k>m;)v++,k=(g-(v-1)*b)/v;for(;f!==-1&&v>1&&k<f;)v--,k=(g-(v-1)*b)/v}let u=!1;const p=c.layout;p.value.width=o,p.value.column!==v&&(p.value.column=v,u=!0),p.value.gutter!==b&&(p.value.gutter=b,u=!0),p.value.type!==i&&(p.value.type=i,u=!0),u&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Vo(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.layout}function Ao(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.order}function Ia(e,o=1){if(o==="stretch")return-1;const l=me(o);return l===-1?100:100*l/e}function To(e,o,l=1,n=0,a){const r={};let s=0;a?s=se(a):s=Ia(o.column,l),s>0&&(r.width=`${s}%`);const i=Ia(o.column,n);i>0&&(r["margin-left"]=`${i}%`);const c=o.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function $o(e,o,l=1,n=0){if(l==="stretch"){const c=e.index%o.column,d=c+(o.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let a=me(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=me(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Qr=Symbol("RollingStateKey");function Ai(e){t.provide(Qr,e)}function Ti(){return t.inject(Qr,null)}function mn(e){let o=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));o=e.clientHeight-a-r}else o=e.offsetHeight;return o}function $i(e){let o=mn(e);if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=mn(l),document.body.removeChild(l)}return o}function Ei(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Di={...ue,...jr,...Wr};function xi(e,o,l){return{props:Di,emits:["update:collapse"],setup(n,a){const r=zn(n.name,n,Yr),s=Vi(r,{type:n.type}),i=No();Bo(!0);const c=n.rollingDisplay?Ti():null,d=t.ref(null),f=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>i&&r?Vo(r,!0).value:null),h=t.getCurrentInstance(),y=(O,G=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(O,!0,G)};t.watch([()=>n.rules,()=>n.pureDataRules],([O,G],[Q,ee])=>{if(O&&Q){const _=t.toRaw(Q),oe=t.toRaw(O),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(G&&ee){const _=t.toRaw(ee),oe=t.toRaw(G),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe,!0)}},{deep:!0});const g=e,v=t.computed(()=>{const O={};if(O.height=E.value,n.width)n.width!=="auto"&&(O.width=fe(n.width));else{const G=i?Ao(r,!0):null;if(m.value&&G){if(m.value.type==="grid"){const Q=$o(G,m.value,n.span,n.offset);Object.assign(O,Q)}else if(m.value.type==="flow"){const Q=To(G,m.value,n.span,n.offset,n.width);Object.assign(O,Q)}}}return O}),b=t.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${g}--${O}`]:!0,[`${g}--${O}-justify-${n.justify}`]:!0,[`${g}--${O}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${O}`]:!0,[`${g}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(n.columnWidth)G=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=Ei(B.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),p=t.toRef(n,"gutter"),k=t.toRef(n,"column"),S=t.computed(()=>i||f.value?!0:pe(n.isWrap)),w=[],N=O=>{w.push(O)},T=()=>{let O=w.length;w.splice(0,O)},B=t.ref(-1),D=O=>{const G=Pn(O).width;G>0&&G!==B.value&&(B.value=G)};Xo(r,B.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([B,k,p],([O,G,Q])=>{s.order.index=0,Xo(r,O,G,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const C=t.computed(()=>x.value?n.expandText??"":n.collapseText??""),V=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),L=t.ref(),$=t.ref(),E=t.computed(()=>A.value||fe(n.height)||""),x=t.ref(!1),A=t.ref(""),H=t.ref(!1);let R=-1;const Y=(O,G=!0)=>{const Q=L.value;if(Q&&x.value!==O){if(R=R===-1?$i(Q):R,H.value=!0,G)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",O||(A.value="",H.value=!1)},O){let ee=0;n.collapseHeight?ee=n.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(ee=$.value.offsetHeight),A.value=`${R}px`,t.nextTick(()=>{A.value=`${ee}px`})}else A.value=`${R}px`;else if(O){let ee=0;n.collapseHeight?ee=n.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(ee=$.value.offsetHeight),A.value=`${ee}px`}else H.value=!1,A.value=`${R}px`;x.value=O,a.emit("update:collapse",O)}};t.watch(()=>n.collapse,O=>{Y(O)});const U=()=>{P()},P=O=>{O=O??!x.value,Y(O)};Te({toggleCollapse:P,doLayout:()=>{w[0]&&(D(w[0]),Xo(r,B.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let j=null,q=!0;const F=O=>{if(n.rules){const G=t.toRaw(n.rules);y(G)}if(n.pureDataRules){const G=t.toRaw(n.pureDataRules);y(G,!0)}if(st&&(O&&Y(pe(n.collapse),!1),n.autoLayout&&Array.isArray(w)&&w.length>0)){const G=w[0];D(G),window.ResizeObserver&&(j=new window.ResizeObserver(()=>{D(G)}),j.observe(G))}},I=()=>{j?.disconnect(),j=null},K=!f.value||c?.acquire();K&&(d.value=f.value?!0:null),t.onMounted(()=>{if(K&&(F(q),q=!1),f.value&&c){let O=null,G=c.initialHeight;c.observe(L.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,x.value||(A.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(F(q),q=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!x.value)if(q)A.value=c.initialHeight;else{let ee=mn(L.value);ee<=0?A.value=G:(A.value=`${ee}px`,G=A.value)}q||I()}})}}),t.onUnmounted(()=>{j?.disconnect(),c&&c.unobserve(L.value)});const W=(O="right")=>{const G=[];if(C.value){const _={class:V.value},oe=t.h("span",_,[C.value]);G.push(oe)}const Q={class:M.value},ee=l(n.collapseIcon,Q);return ee&&G.push(ee),G.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:U},G):null},Z=(O,G,Q,ee)=>{const _={...b.value};return G===0&&(_[`${g}__first`]=!0),Q>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:N,key:`${G}`,class:_,style:u.value},O)};return()=>{if(f.value&&d.value!==!0){const _=n.tag||"div";return t.h(_,{ref:L,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[])}s.order.index=0;const O=[];let G=0;if(a.slots.header){const _={key:`${G++}`,ref:$,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",_,[a.slots.header()]);O.push(oe)}else{const _=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=W("left");le&&_.push(le)}if(n.title||a.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const $e=t.h("div",le);_.push($e)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);_.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);_.push(le)}}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=W("right");le&&_.push(le)}if(_.length>0){const le={key:`${G++}`,ref:$,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},$e=t.h("div",le,_);O.push($e)}}T();const Q=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=Z(Q,G++,0,Q.length);O.push(_)}else if(ee==="flow"){const _=Z(Q,G++,0,Q.length);O.push(_)}else for(let _=0;_<Q.length;_++){const oe=Q[_],le=Z([oe],G++,_,Q.length);O.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:L,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[O])}else return O}}}}const{componentName:Ii,create:qi,scope:Mi}=X("group"),zi=(e=te.RectUp,o={})=>t.h(e,o),Kn=qi(xi(Ii,Mi,zi));function Li(e){return e===window}const Pi=/matrix\((.+)\)/,Gr=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(Li(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const f=Pi.exec(d);if(f){let h=f[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};class Ri{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class Fi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new Ri,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const qa=new Fi,Zr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Oi,create:Ki}=X("price"),Ui=Ki({props:{...Zr},setup(e){const o=t.computed(()=>({[Oi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":mo(e.price,e.decimalLength,!0,me(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),Hi=["innerHTML"],ji=["innerHTML"];function Wi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Hi)):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,ji)):t.createCommentVNode("",!0)],2)}const Ye=J(Ui,[["render",Wi]]),{componentName:Qo,create:Yi}=X("hint-text"),Xi=Yi({components:{Price:Ye},props:{...Zr,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,o){const l=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=(V,M,L,$,E,x)=>{const A=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,R=V.split("-");let Y=[];R[0]==="top"?Y=["top","bottom","right","left"]:R[0]==="bottom"?Y=["bottom","top","right","left"]:R[0]==="left"?Y=["left","top","bottom","right"]:R[0]==="right"&&(Y=["right","top","bottom","left"]);const U={top:null,right:null,bottom:null,left:null},P=[];for(let z=0;z<Y.length;z++){const j=Y[z];if(P[0]=j,R[1]&&(P[1]=R[1]),j==="top"){const q=M.y-x-e.arrowSize-e.offset;if(q>=0){U.top=q;let F=0;R[1]==="start"?F=M.x:R[1]==="end"?F=M.x+L-E:F=M.x+L/2-E/2;const I=A-F-E;I<0?(F+=I,m.value=-I):m.value=0,U.left=F<0?0:F;break}}else if(j==="bottom"){const q=M.y+$+e.arrowSize+e.offset;if(q+x<=H){U.top=q;let F=0;R[1]==="start"?F=M.x:R[1]==="end"?F=M.x+L-E:F=M.x+L/2-E/2;const I=A-F-E;I<0?(F+=I,m.value=-I):m.value=0,U.left=F<0?0:F;break}}else if(j==="left"){const q=M.x-E-e.arrowSize-e.offset;if(q>=0){U.left=q;let F=0;R[1]==="start"?F=M.y:R[1]==="end"?F=M.y+$-x:F=M.y+$/2-x/2,U.top=F<0?0:F;break}}else if(j==="right"){const q=M.x+L+e.arrowSize+e.offset;if(q+E<=A){U.left=q;let F=0;R[1]==="start"?F=M.y:R[1]==="end"?F=M.y+$-x:F=M.y+$/2-x/2,U.top=F<0?0:F;break}}}return{bestPlacement:P.join("-"),bestInsetRect:U}},f=(V,M,L=10)=>{if(!st||M===!1||!V)return;n.value=Gr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:x,bestInsetRect:A}=d(e.placement,n.value,a.value,r.value,E,$);s.value=x,l.value=A,i.value=!0},m=t.ref(0),h=ht(()=>{f(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,V=>{y.value=V});const g=t.computed(()=>y.value&&v.value),v=t.ref(!0),b=ht(V=>{const M=V[0];M&&(v.value=M.isIntersecting)},10),u=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([V,M])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),qa.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{qa.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const p=t.computed(()=>{const V={[Qo]:!0};return s.value.startsWith("top")?V["is-top"]=!0:s.value.startsWith("right")?V["is-right"]=!0:s.value.startsWith("bottom")?V["is-bottom"]=!0:s.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),k=t.computed(()=>{const V={};l.value.top!==null&&(V.top=`${l.value.top}px`),l.value.right!==null&&(V.right=`${l.value.right}px`),l.value.bottom!==null&&(V.bottom=`${l.value.bottom}px`),l.value.left!==null&&(V.left=`${l.value.left}px`),e.autoFit&&(V["min-width"]=`${a.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return V["max-width"]=`${M}px`,i.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),S=t.computed(()=>{const V=[`${Qo}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),w=t.computed(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),N=t.computed(()=>({[`${Qo}__arrow`]:!0})),T=t.computed(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,s.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="top-start"?(V.left=`${e.arrowOffset+m.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(V.right=`${e.arrowOffset-m.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(V.left=`${e.arrowOffset+m.value}px`,V.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(V.right=`${e.arrowOffset-m.value}px`,V.top=`-${e.arrowSize}px`):s.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),B=t.computed(()=>g.value&&e.closeOnClick),D=t.computed(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:g,tipRef:c,classes:p,styles:k,textClasses:S,textStyles:w,arrowClasses:N,arrowStyles:T,overlayShow:B,overlayStyle:D,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function Qi(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:o[0]||(o[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Jr=J(Xi,[["render",Qi]]);class Un{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const pn={},Gi=new Un,pt=new Map,uo=e=>{if(e){const o=document.getElementById(e);pt.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of pt.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}pt.clear()}},Zi=e=>{e.unmount=uo;const o=document.getElementById(e.id);if(o){const l=pt.get(e.id);l?e={...pn,...l,...e}:e={...pn,...e},e.transition=!1;const n=t.createVNode(Jr,e);return t.render(n,o),e.id}},Ji=e=>{e.unmount=uo;let o=e.id??`hinttext_${Gi.get()}`;e={...pn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Jr,e);return t.render(n,l),document.body.appendChild(l),o},_i=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){_i(o);const a=l.id;return a&&pt.has(a)?Zi({...l,message:o,reference:e}):(n&&uo(),Ji({...l,message:o,reference:e}))},hide(e){uo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:Ma,create:ec}=X("item"),tc=ec({inheritAttrs:!0,props:{...ue,...de},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:Ma,validate:!1},l);const n=Oe(),a=No();Bo(!1);const r=t.computed(()=>a&&n?Vo(n,!1).value:null),s=Ma,i=t.ref(null),c=t.computed(()=>{const O={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:pe(e.hasBorder)};if(O[e.errorMarkClass]=!!M.value,O[e.warnMarkClass]=!!C.value,O[e.infoMarkClass]=!!B.value,typeof i.value=="function"){const G=i.value(l);O[G]=!0}else if(typeof i.value=="string"){const G=i.value;O[G]=!0}return O}),d=t.ref(null),f=t.computed(()=>{const O={};if(e.width)e.width!=="auto"&&(O.width=fe(e.width));else{const G=a&&n?Ao(n,!1):null;if(r.value&&G){if(r.value.type==="grid"){const Q=$o(G,r.value,e.span,e.offset);Object.assign(O,Q)}else if(r.value.type==="flow"){const Q=To(G,r.value,e.span,e.offset,e.width);Object.assign(O,Q)}}}if(typeof d.value=="function"){const G=d.value(l);G&&Object.assign(O,G)}else if(d.value&&typeof d.value=="object"){const G=d.value;Object.assign(O,G)}return O}),m=t.ref(null),h=t.computed({get:()=>m.value??pe(e.isRequired),set:O=>{m.value=O}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ne(t.toRef(e,"labelPosition"),"labelPosition",io.Near),v=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),b=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${v.value}`]:!0})),u=t.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Ne(t.toRef(e,"labelWidth"),"labelWidth",io.Near),k=t.computed(()=>p&&p.value?{width:fe(p.value)}:{}),S=t.computed(()=>({"label--string":!0,"label--required":h.value})),w=t.computed(()=>({content:!0,[e.contentClass]:!0})),N=t.computed(()=>({...e.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(O){h.value=O},setErrorTip(O){T.errorTip=O},setErrorIcon(O){T.errorIcon=O},setWarnTip(O){T.warnTip=O},setWarnIcon(O){T.warnIcon=O},setInfoTip(O){T.infoTip=O},setInfoIcon(O){T.infoIcon=O},setCustomClassName(O){i.value=O},setCustomStyle(O){d.value=O}});const B=t.computed(()=>e.infoTip||T.infoTip),D=t.computed(()=>e.infoIcon||T.infoIcon),C=t.computed(()=>e.warnTip||T.warnTip),V=t.computed(()=>e.warnIcon||T.warnIcon),M=t.computed(()=>e.errorTip||T.errorTip),L=t.computed(()=>e.errorIcon||T.errorIcon),$=t.computed(()=>M.value?"error":C.value?"warn":B.value?"info":""),E=t.computed(()=>$.value.length>0),x=t.computed(()=>$.value==="error"?M.value:$.value==="warn"?C.value:$.value==="info"?B.value:""),A=t.computed(()=>$.value==="error"?L.value:$.value==="warn"?V.value:$.value==="info"?D.value:null),H=t.computed(()=>{let O={[`${s}__tip`]:!0,[`${s}__tip--${$.value}`]:!0};return $.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:$.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:$.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),R=t.computed(()=>{let O={};return g&&g.value==="top"||!y.value?O["padding-left"]="0px":p&&p.value&&(O["padding-left"]=fe(p.value)),O}),Y=()=>{const O=A.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},U=()=>{const O=x.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},P=t.computed(()=>o.slots.fixedPreTip),z=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),j=t.computed(()=>o.slots.fixedTip),q=t.computed(()=>({[`${s}__fixed-tip`]:!0})),F=t.ref();let I="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,G,Q,ee])=>{F.value&&(O&&!ie(G)?I?ot.show(F.value,G,{...ee,id:I,type:Q},!0):I=ot.show(F.value,G,{...ee,type:Q},!0):ot.hide(I))});let K=null;const W=()=>{K||!F.value||(K=new IntersectionObserver(O=>{let G=!1;for(let Q of O)if(Q.intersectionRatio>0){G=!0,G&&o.emit("appear",Q);break}G||o.emit("disappear")}),K.observe(F.value))},Z=()=>{!K||!F.value||(K.unobserve(F.value),K=null)};return t.watch(()=>pe(e.appearListen),O=>{O?W():Z()}),t.onMounted(()=>{pe(e.appearListen)&&W()}),t.onUnmounted(Z),{classes:c,styles:f,mainClasses:b,hasLabel:y,labelClasses:u,labelStyles:k,labelStringClasses:S,contentClasses:w,contentStyles:N,contentRef:F,hasTip:E,mTip:x,mIcon:A,renderIcon:Y,renderTip:U,tipClasses:H,tipStyles:R,hasFixedTip:j,fixedTipClasses:q,hasFixedPreTip:P,fixedPreTipClasses:z}}}),oc=["prop"];function nc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,oc)}const be=J(tc,[["render",nc]]);function lc(e,o){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Oe(),i=No();Bo(!1);const c=t.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=fe(l.width));else if(i&&s){const f=Vo(s,!1),m=Ao(s,!1);if(f.value&&m){if(f.value.type==="grid"){const h=$o(m,f.value,l.span,l.offset);Object.assign(d,h)}else if(f.value.type==="flow"){const h=To(m,f.value,l.span,l.offset,l.width);Object.assign(d,h)}}}return d});return()=>{const d=[];if(n.slots.default){const m=n.slots.default();if(l.divide)for(let h=0;h<m.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(y)}d.push(m[h])}else Reflect.apply([].push,d,m)}const f={class:r.value,style:c.value};return t.h("div",f,d)}}}}const{componentName:ac,create:rc,scope:TB}=X("row-item"),Hn=rc(lc(ac));function sc(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=Oe(),r=No();Bo(!1);const s=t.computed(()=>r&&a?Vo(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=t.computed(()=>{const f={};if(l.width)l.width!=="auto"&&(f.width=fe(l.width));else{const m=r&&a?Ao(a,!1):null;if(s.value&&m){if(s.value.type==="grid"){const h=$o(m,s.value,l.span,l.offset);Object.assign(f,h)}else if(s.value.type==="flow"){const h=To(m,s.value,l.span,l.offset,l.width);Object.assign(f,h)}}}return f});return()=>{const f={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",f,n.slots.default()):t.h("div",f)}}}}const{componentName:ic,create:cc,scope:$B}=X("slot-item"),jn=cc(sc(ic)),za={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 uc(e,o,l,n){return{props:{...ue,...de,...za},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ae.useFoxI18n(o),f=d(a,["placeholder"]),m=t.ref(!1),h=Ee(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value,[`${y}__readonly`]:i.value})),v=Ne(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>{const E={};return v.value&&(E["text-align"]=v.value),E}),u=E=>{let A=E.target.value;a.type==="digit"&&(A=cn(A,!0)),a.type==="number"&&(A=cn(A,!1)),a.maxLength&&A.length>Number(a.maxLength)&&(A=A.slice(0,Number(a.maxLength))),h.value=A,c("update:modelValue",A,E),c("change",A,E)};let p=Ee(a,"hintText"),k=t.ref(!1);const S=E=>{let A=E.target.value;m.value=!0,ie(p.value)||(k.value=!0),c("focus",A,E)},w=E=>{setTimeout(()=>{k.value&&(k.value=!1),m.value=!1},0);let A=E.target.value;a.maxLength&&A.length>Number(a.maxLength)&&(A=A.slice(0,Number(a.maxLength))),c("blur",A,E)},N=t.computed(()=>({[`${y}__append`]:!0})),T=t.computed(()=>{const E={};return r.slots.append&&!B.value&&!L.value&&(E.display="none"),E}),B=t.computed(()=>ge(a.unit)>0),D=t.computed(()=>!L.value),C=t.computed(()=>({hidden:!D.value})),V=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},M=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let E=ge(h.value)>0;return pe(a.clearable)&&E&&m.value}),$=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const E={class:g.value,style:b.value,type:a.type,maxlength:a.maxLength,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:w},x=[],A=t.h("input",E);x.push(A);const H=[];if(M.value){const q={class:["action-icon"]},F=t.h(n,q),I={class:$.value,onClick:V},K=t.h("view",I,{default:()=>[F]});H.push(K)}if(B.value){const q=t.h("view",{class:C.value},[a.unit]);H.push(q)}const R={class:N.value,style:T.value},Y=t.h("view",R,{default:()=>H});x.push(Y);const U={default:()=>x};U.label=r.slots.default,U.prepend=r.slots.prepend,U.append=r.slots.append,U.fixedPreTip=r.slots.fixedPreTip,U.fixedTip=r.slots.fixedTip;const z={...xn(a,za),hintText:p.value,hintVisible:k.value};return t.h(l,z,U)}}}}const{componentName:dc,create:fc,scope:mc}=X("input-item"),Wn=fc(uc(dc,mc,be,te.CircleClose));function La(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Pa(e,o,l=20){if(typeof o=="string"&&(o=me(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=yr(`${e}`,`${o}`);return La(n)}else{let n=En(`${e}`,vr(`${o}`),20);return La(n)}}function pc(e,o=-1,l=!1,n=3,a=","){return mo(e,o,l,n,a)}function Ra(e,o,l,n,a=!0){if(e=="")return"";if(e=kr(e),o=me(o),o==1)return e;if(n)e=Pa(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(me(l)+2,"0"):e=En(e,1,me(l)));else{let r=-1*o;e=Pa(e,r)}return e}function Fa(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=pe(o.minInclude),a=an(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=pe(o.maxInclude),a=an(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Oa={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function hc(e,o,l,n){return{props:{...ue,...de,...Oa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=t.ref(!1),f=Ee(a,"modelValue"),m=t.ref("");t.watch([()=>f.value,()=>a.rates,()=>a.precision],([R,Y,U])=>{if(ie(R)){m.value="";return}const P=Ra(R,Y,U,!1);m.value!==P&&(m.value=P)},{immediate:!0});const h=t.computed(()=>{let R="";return d.value&&(R=m.value),R}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let R=a.placeholder??"";return!d.value&&!ie(m.value)?R=pc(m.value,a.decimalLength,a.autoPadding,a.digits,a.separator):R=ie(R)?y(["placeholder"]):R,R}),v=e,b=t.computed(()=>({[v]:!0,[`${v}__disabled`]:s.value,[`${v}__placeholder`]:m.value.length>0})),u=Ne(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const R={};return u.value&&(R["text-align"]=u.value),R}),k=t.ref(""),S=t.computed(()=>{let R=k.value;return ie(R)&&(R=a.errorTip??""),R}),w=t.ref(""),N=t.ref(!1),T=R=>{let U=R.target.value;if(ie(U)){m.value="",f.value="",c("update:modelValue","",R),c("change","",R),pe(a.showTip)&&N.value&&(N.value=!1);return}if(U.length>=2){let P=U;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){t.triggerRef(m);return}}if(U!="-"){if(!Tr(U)){t.triggerRef(m);return}if(a.integerLength!=-1&&$r(U)>Number(a.integerLength)){t.triggerRef(m);return}if(a.decimalLength&&a.decimalLength!=-1&&Er(U)>Number(a.decimalLength)){t.triggerRef(m);return}let P=Fa(U,a);if(P.maxValid===!1){k.value=P.message,t.triggerRef(m);return}}else if(a.min!=null&&me(a.min)>=0){t.triggerRef(m);return}w.value=U,pe(a.showTip)&&(N.value=U.length>0),m.value=U,f.value=Ra(U,a.rates,a.precision,!0),c("update:modelValue",f.value,R),c("change",f.value,R)},B=R=>{if(d.value=!0,pe(a.showTip)){let Y=m.value;ie(Y)&&(Y=a.hintText),ie(Y)||(w.value=Y,N.value=!0)}k.value="",c("focus",f.value,R)},D=R=>{if(setTimeout(()=>{d.value=!1,pe(a.showTip)&&N.value===!0&&(N.value=!1)},0),!ie(m.value)){let Y=Fa(m.value,a);if(Y.minValid===!1||Y.maxValid===!1){k.value=Y.message;return}}c("update:modelValue",f.value,R),c("blur",f.value,R)},C=t.computed(()=>({[`${v}__append`]:!0})),V=t.computed(()=>{const R={};return r.slots.append&&!M.value&&!A.value&&(R.display="none"),R}),M=t.computed(()=>ge(a.unit)>0),L=t.computed(()=>!A.value),$=t.computed(()=>({hidden:!L.value})),E=R=>{f.value="",c("update:modelValue","",R),c("change","",R),c("clear","")},x=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),A=t.computed(()=>{let R=ge(f.value)>0;return pe(a.clearable)&&R&&d.value}),H=t.computed(()=>({action:!0,hidden:!A.value}));return()=>{let R={class:b.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:T,onFocus:B,onBlur:D},Y=[],U=t.h("input",R);Y.push(U);let P=[];if(x.value){const W={class:["action-icon"]},Z=t.h(n,W),O={class:H.value,onClick:E},G=t.h("view",O,{default:()=>[Z]});P.push(G)}if(M.value){const W=t.h("view",{class:$.value},[a.unit]);P.push(W)}const z={class:C.value,style:V.value},j=t.h("view",z,{default:()=>P});Y.push(j);const q={default:()=>Y};if(r.slots.default){let W=r.slots.default();q.label=()=>W}if(r.slots.prepend){let W=r.slots.prepend();q.prepend=()=>W}if(r.slots.append){let W=r.slots.append();q.append=()=>W}let I={...xn(a,Oa),errorTip:S.value,hintText:w.value,hintVisible:N.value,hintType:"number"};return t.h(l,I,q)}}}}const{componentName:gc,create:yc,scope:vc}=X("money-item"),Yn=yc(hc(gc,vc,be,te.CircleClose)),hn={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:kc,create:bc,scope:Sc}=X("textarea"),Cc=bc({props:{...hn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Sc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=kc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:v}=e.autosize;g!==void 0&&(y=Math.min(y,g)),v!==void 0&&(y=Math.max(y,v))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,y),o("change",h,y)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),o("blur",{value:g,event:h})}}}}),wc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Nc={key:0,class:"fox-textarea__limit"};function Bc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,wc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Nc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Eo=J(Cc,[["render",Bc]]);function Vc(e,o,l,n){return{props:{...ue,...de,...hn},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=Ee(a,"modelValue"),f=v=>{d.value=v,c("update:modelValue",v,{}),c("change",v,{})};let m=Ee(a,"hintText"),h=t.ref(!1);const y=v=>{ie(m.value)||(h.value=!0),c("focus",d.value,v)},g=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,v)};return()=>{const b={...he(a,hn),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":f,onFocus:y,onBlur:g},u=[],p=t.h(n,b);u.push(p);const k={default:()=>u};k.label=r.slots.default,k.prepend=r.slots.prepend,k.append=r.slots.append,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const S=he(a,de,ue);return t.h(l,S,k)}}}}const{componentName:Ac,create:Tc,scope:$c}=X("textarea-item"),Xn=Tc(Vc(Ac,$c,be,Eo));function Ec(e){return e===window}const Ve=e=>{const o=t.unref(e);if(Ec(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Xe={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},_r=2e3;let Ka=_r;const Dc=(e,o)=>({components:o,props:{...Xe},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==_r&&(Ka=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Ka,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},f=v=>{n("click-pop",v)},m=v=>{v.stopPropagation(),n("click-close-icon",v),n("update:visible",!1)},h=v=>{n("click-overlay",v),l.closeOnClickOverlay&&n("update:visible",!1)},y=v=>{n("opend",v)},g=v=>{n("closed",v)};return t.watch(()=>l.visible,v=>{l.visible?c():d()}),t.watch(()=>l.closeable,v=>{a.closed=v}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:f,onClickCloseIcon:m,onClickOverlay:h,onOpened:y,onClosed:g}}});let Bt=0;const Ua="fox-overflow-hidden",Ha=()=>st?document.body:{classList:[]},xc=e=>[()=>{if(e())try{!Bt&&Ha().classList.add(Ua),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&Ha().classList.remove(Ua)}catch{}}],Ic={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:qc,create:Mc}=X("overlay"),zc=Mc({props:{...Ic},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=xc(()=>e.lockScroll),a=t.computed(()=>({[qc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function Lc(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const at=J(zc,[["render",Lc]]),{componentName:Pc,create:Rc}=X("popup"),Fc=Rc(Dc(Pc,{FoxOverLay:at,Close:te.Close}));function Oc(e,o,l,n,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ce=J(Fc,[["render",Oc]]),ja=10;function Kc(e,o){return e>o&&e>ja?"horizontal":o>e&&o>ja?"vertical":""}function Ke(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),f=t.ref(""),m=()=>f.value==="vertical",h=()=>f.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,d.value=0,f.value="",l.value=0};return{move:b=>{const u=b.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,f.value||(f.value=Kc(c.value,d.value))},start:b=>{y(),e.value=b.touches[0].clientX,o.value=b.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:f,isVertical:m,isHorizontal:h}}const es={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},gn={...Xe,...es,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let ts=36;function Uc(){return ts}function Hc(e){ts=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function yn(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function jc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function rt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Wa(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let Wc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Yc(){const e=t.getCurrentInstance();return new Wc(e.proxy)}function Ya(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=rt(e,o),s=rt(e,l);return r===s}function Xc(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let d=l[s].findIndex(f=>{if(r==="text")return qe(e,f)===i;if(r==="value"){let m=rt(e,f);return m==null&&(m=qe(e,f)),m===i}else if(r==="item")return Ya(e,f,i)});if(d==-1)break;a.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let d=s.findIndex(m=>{if(r==="text")return qe(e,m)===c;if(r==="value"){let h=rt(e,m);return h==null&&(h=qe(e,m)),h===c}else if(r==="item")return Ya(e,m,c)});if(d==-1)break;a.push(d);const f=yn(e,s[d]);if(!Array.isArray(f))break;s=f}}return a}function Xa(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],f=qe(e,d);if(a.texts.push(f),a.items.push(d),r==="text")a.values.push(f);else if(r==="value"){let m=rt(e,d);m==null&&(m=f),a.values.push(m)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const d=s[c],f=Object.assign({},d);f.children=null;const m=qe(e,d);if(a.texts.push(m),a.items.push(f),r==="text")a.values.push(m);else if(r==="value"){let h=rt(e,d);h==null&&(h=m),a.values.push(h)}else a.values.push(f);if(!Array.isArray(d.children))break;s=d.children}}return a}function Qa(e){return{text:e,value:e}}const Qc=15,Gc=300,Zc=200,{create:Jc}=X("picker-column");function _c(e){e.stopPropagation()}function eu(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&_c(e)}const tu=Jc({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},...es},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=B=>B>=m.currIndex+8||B<=m.currIndex-8,i=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=B=>`transform: rotate3d(1, 0, 0, ${-m.rotation*B}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),f=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=B=>qe(e,B),g=B=>rt(e,B),v=Ke(),b=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},u=(B,D=!1,C=!1)=>{if(m.currIndex=B,D){const V=()=>{m.moving=!1,o("update:modelValue",B),o("change",B)};C?m.transitionEndTrigger=V:V()}},p=(B,D,C)=>{let V=B+m.startDistance;if(D==="end"){const M=-(h.value.length-1)*e.itemHeight;V<M&&(V=M,(!C||C<=0)&&(C=e.swipeDuration)),V>0&&(V=0,(!C||C<=0)&&(C=e.swipeDuration));let L=Math.abs(Math.round(-V/e.itemHeight));const $=-L*e.itemHeight,E=`${(L+1)*m.rotation}deg`,x=C?C>0:!1;u(L,!0,x),k($,D,C,E)}else{let M=(-V/e.itemHeight+1)*m.rotation;const L=(h.value.length+1)*m.rotation,$=0;if(M=Math.min(Math.max(M,$),L),e.threeDimensional&&(M<$||M>L))return;k(V,null,void 0,`${M}deg`)}},k=(B=0,D,C=Zc,V)=>{D==="end"?m.scrollTime=C:m.scrollTime=0,m.deg=V,m.scrollDistance=B},S=(B,D)=>(B=Math.abs(B/D)/.003*(B<0?-1:1),B),w=B=>{e.readonly||(m.startDistance=m.scrollDistance,v.start(B),m.transitionEndTrigger=null)},N=B=>{e.readonly||(m.moving=!0,v.move(B),v.isVertical()&&(m.moving=!0,eu(B,!0)),p(v.deltaY.value,"",0))},T=()=>{if(e.readonly)return;const B=v.deltaY.value,D=v.duration.value;if(D<Gc&&Math.abs(B)>Qc){const V=S(B,D);p(V,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(m.currIndex!==B){m.currIndex=B;const D=-B*e.itemHeight;p(D)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;p(B)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(m),roller:f,getItemText:qe,onTouchStart:w,onTouchMove:N,onTouchEnd:T,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:b}}}),ou={key:1,class:"fox-picker__item-tile"};function nu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",ou,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Ga=J(tu,[["render",nu]]),{create:lu,componentName:au,scope:ru}=X("picker"),su=lu({components:{[Ga.name]:Ga,[ce.name]:ce},props:{...gn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(ru),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Uc());t.watch(()=>e.visible,C=>{C&&s.value<=0&&setTimeout(()=>{if(r.value){const V=Ve(r.value);s.value=V.height,Hc(s.value)}},50)});const i=t.computed(()=>({[au]:!0})),c=Yc(),d=t.ref("singleColumn");let f=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,V])=>{if(C){let M=await c.load("picker",C,V);if(M.length>0){let L=M[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let $=M,E=[];$.forEach(x=>{let A=x.map(H=>Qa(H));E.push(A)}),f.value=E}else f.value=M;d.value="multipleColumn"}else if(typeof L=="string"){let $=M,E=[],x=$.map(A=>Qa(A));E.push(x),f.value=E,d.value="singleColumn"}else{const $=yn(e,L);Array.isArray($)?(d.value="cascade",f.value=[M]):(d.value="singleColumn",f.value=[M])}}else f.value=[]}},{immediate:!0});const m=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>f.value],([C,V])=>{let M=Xc(e,C,V,d.value);if(!xe(M,g.value)){g.value=M;let L=Xa(e,M,V,d.value);L&&(m.value=L.texts,o("update:text",m.value))}});const v=t.ref(e.visible);t.watch(()=>e.visible,C=>{v.value=C});const b=C=>{let V=Wa(e,C);return Be(V)?V.defaultIndex??0:0},u=C=>{if(e.readonly===!0)return!0;let V=Wa(e,C);return Be(V)?V.readonly??!1:!1},p=(C,V)=>{let M=g.value;M[C]=V;for(let $=0;$<C;$++)M[$]==null&&(M[$]=b($));if(d.value==="cascade")for(let $=C+1;$<S.value.length;$++){let E=b($);$<M.length?M[$]=E:M.push(E)}else for(let $=M.length;$<S.value.length;$++){let E=b($);M.push(E)}g.value=M;let L=Xa(e,M,f.value,d.value);L&&(m.value=L.texts,h.value=L.values,y.value=L.items)},k=C=>C<g.value.length?g.value[C]:b(C),S=t.computed(()=>{if(f.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return f.value;let C=[],V=0,M=f.value[0],L=0;for(;;){let $=M.map(A=>{let H=Object.assign({},A);return jc(e,H,null),H});C.push($),V>=g.value.length?L=0:L=g.value[V],(L<0||L>=M.length)&&(L=0);let E=M[L];const x=yn(e,E);if(!Array.isArray(x))break;M=x,V++}return C}),w=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:d,show:v,itemHeight:s,top:w,isReadonly:u,getIndex:k,change:(C,V)=>{p(C,V)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let C=f.value.length-1;for(;C>=0&&!(g.value[C]===null||g.value[C]===void 0);C--);if(C>=0&&p(C,0),d.value==="singleColumn"){let V=h.value.length>0?h.value[0]:"",M=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",V),o("update:text",m.value),o("change",V,M)),o("confirm",V)}else e.readonly||(o("update:modelValue",h.value),o("update:text",m.value),o("change",h.value,y.value)),o("confirm",h.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}d.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),iu={class:"fox-picker__bar"},cu={class:"fox-picker__title"},uu={class:"fox-picker__bar__action"},du={class:"fox-picker__column"};function fu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",iu,[t.createElementVNode("view",cu,t.toDisplayString(e.title),1),t.createElementVNode("view",uu,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",du,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":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,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const yt=J(su,[["render",fu]]);function mu(e,o,l,n,a,r,s=!0){return{props:{...ue,...de,...gn,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue"),b=t.ref([]),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const j={};return S.value&&(j["text-align"]=S.value),j}),N=t.ref(!1),T=()=>{N.value=!0},B=j=>{N.value=j},D=j=>{v.value=j,m("update:modelValue",j)},C=(j,q)=>{m("change",j,q)},V=j=>{let F=j.target.value;g.value=!0,m("focus",F,j)},M=j=>{setTimeout(()=>{g.value=!1},0);let F=j.target.value;i.maxLength&&F.length>Number(i.maxLength)&&(F=F.slice(0,Number(i.maxLength))),m("blur",F,j)},L=j=>{b.value=j,Array.isArray(j)&&j.length===0?m("update:text",j[0]):m("update:text",j)},$=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),A=t.computed(()=>({hidden:!x.value})),H=j=>{v.value="",m("update:modelValue","",j),m("change","",j),m("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!f.value),Y=t.computed(()=>ge(v.value)>0&&g.value),U=j=>{Y.value?H(j):T()},P=t.computed(()=>Y.value&&R.value?n:a),z=t.computed(()=>({action:!0}));return()=>{const j={class:k.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:T,onFocus:V,onBlur:M};s&&(j.disabled=!0);const q=[],F=t.h("input",j);q.push(F);const I=[],K={class:["action-icon"]},W=t.h(P.value,K),Z={class:z.value,onClick:U},O=t.h("view",Z,{default:()=>[W]});if(I.push(O),E.value){const ve=t.h("view",{class:A.value},[i.unit]);I.push(ve)}const G={class:$.value},Q=t.h("view",G,{default:()=>I});q.push(Q);const ee={default:()=>q};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const _=he(i,gn);_.disabled=!1,_.readonly=d.value||f.value,_.visible=N.value,_["onUpdate:visible"]=B,_.modelValue=v.value,_["onUpdate:modelValue"]=D,_.text=b.value,_["onUpdate:text"]=L,_.onChange=C;const oe=t.h(r,_);ee.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:pu,create:hu,scope:gu}=X("picker-item"),Qn=hu(mu(pu,gu,be,te.CircleClose,te.ArrowRight,yt,!1)),Jt=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...f}=n,m={loading:!1,...f,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return m.children&&m.children.length&&(m.children=Jt(m.children,m,l)),m}),os=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&os(n.children,o)},yu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},vu=(e,o)=>{const l={...yu,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:f,[r]:m}=d,h=c[m]=c[m]||[];!i.length&&m===n&&(i=h),h.push(d),d.children=c[f]||(c[f]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((f,m)=>f[s]-m[s])}),c=null,i},ku=/scroll|auto|overlay/i,ns=window;function bu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function vn(e,o=ns){let l=e;for(;l&&l!==o&&bu(l);){const{overflowY:n}=window.getComputedStyle(l);if(ku.test(n))return l;l=l.parentNode}return o}function ls(e,o=ns){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=vn(e.value,o))}),l}const{create:Su}=X("sticky"),Cu=Su({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!l.value&&!d)return;const f=Ve(l),m=n.value,h=Ve(m),y=Ve(d);a.height=f.height;const g=()=>{let b=!1;if(e.position==="top")b=d?r.value>f.top&&y.bottom>0:r.value>f.top;else{const u=document.documentElement.clientHeight;b=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<f.bottom}return b},v=()=>{if(d)if(e.position==="top"){const b=y.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,u=y.bottom-(b-r.value);return u<0?u:0}return 0};a.transform=v(),a.fixed=g()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),vn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{vn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function wu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const qt=J(Cu,[["render",wu]]),Nu=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await n(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ke();let d="";const f=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":o.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,o.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,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(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class Bu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Vu}=X("tabs"),Au=Vu({components:{[qt.name]:qt,JoySmile:te.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=C=>{C.forEach((V,M)=>{let L=V.type;if(L=L.name||L,L=="fox-tab-pane"){let $=new Bu;if(V.props?.title||V.props?.["pane-key"]||V.props?.paneKey){let E=lt(V.props?.["pane-key"]),x=E=="number"||E=="string"?String(V.props?.["pane-key"]):null,A=lt(V.props?.paneKey),H=A=="number"||A=="string"?String(V.props?.paneKey):null;$.title=V.props?.title,$.paneKey=x||H||String(M),$.disabled=V.props?.disabled}r.value.push($)}else{if(V.children==" ")return;Array.isArray(V.children)&&s(V.children)}})},i=t.ref(e.modelValue||0),c=C=>{let V=r.value.findIndex(M=>M.paneKey==C);r.value.length==0||V==-1||(i.value=V)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),f=t.ref(),m=t.ref([]),h=C=>{const V=f.value,M=m.value;if(!V||!M||!M[i.value])return;const L=M[i.value];let $=0;e.direction==="vertical"?$=L.offsetTop-V.offsetTop+10-(V.offsetHeight-L.offsetHeight)/2:$=L.offsetLeft-(V.offsetWidth-L.offsetWidth)/2,y(V,$,C?0:.3,e.direction)},y=(C,V,M,L)=>{let $=0;const E=L==="horizontal"?C.scrollLeft:C.scrollTop,x=M===0?1:Math.round(M*1e3/16);function A(){L==="horizontal"?C.scrollLeft+=(V-E)/x:C.scrollTop+=(V-E)/x,++$<x&&Le(A)}A()},g=(C=l.default?.())=>{r.value=[],C=C?.filter(V=>typeof V.children!="string"),C&&C.length&&s(C),c(e.modelValue),t.nextTick(()=>{h()})},v=C=>{a=C.fixed};t.watch(()=>l.default?.(),C=>{g(C)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,C=>{if(c(C),h(),a){let V=Ve(n.value).top+b(),M=Math.ceil(V-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:C=>{o("update:modelValue",C.paneKey),o("change",C)},tabChange:(C,V)=>{o("click",C),!(C.disabled||i.value==V)&&(i.value=V,u.updateValue(C))},setTabItemRef:(C,V)=>{m.value[V]=C}},{tabsContentRef:p,touchState:k,touchMethods:S}=Nu(e,u),w=t.computed(()=>{let C=i.value*100;k.moving&&(C+=k.offset);let V={transform:e.direction=="horizontal"?`translate3d(-${C}%, 0, 0)`:`translate3d( 0,-${C}%, 0)`,transitionDuration:k.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(V={}),V}),N=t.computed(()=>({background:e.background})),T=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const C=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:C,marginBottom:C}:{marginLeft:C,marginRight:C}}),D=t.computed(()=>l.fixedTitle);return{navRef:f,tabsContentRef:p,titles:r,contentStyle:w,tabsNavStyle:N,titleStyle:B,tabsActiveStyle:T,container:n,getScrollY:d,onStickyScroll:v,...u,...S,hasFixedTitle:D}}}),Tu=["onClick"],$u={key:0,class:"fox-tabs__titles-fixed-item"},Eu=["onClick"],Du={key:0,class:"fox-tabs__titles-fixed-item"};function xu(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),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(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Tu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",$u,[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(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Eu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Du,[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:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Mt=J(Au,[["render",xu]]),{create:Iu}=X("tab-pane"),qu=Iu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function Mu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const zt=J(qu,[["render",Mu]]);class Za{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Jt(o,null,this.config)}updateChildren(o,l){l?l.children=Jt(o,l,this.config):this.nodes=Jt(o,null,this.config)}getNodeByValue(o){let l;return os(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&!!a.length;return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&!!a.length}}const{create:zu,scope:Lu}=X("cascader-pane"),Pu=zu({components:{Loading:te.Loading,Checklist:te.Checklist,[Mt.name]:Mt,[zt.name]:zt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Za([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),d=new Map;let f;const m=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,f=null;let{options:u}=e;l.value.convertConfig&&(u=vu(u,l.value.convertConfig)),s.value=new Za(u,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const u=r.value;if(u===void 0||!s.value.nodes.length)return;if(u.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let k=s.value.nodes.find(S=>S.value===u[0]);if(k){p=[k.value],a.value=!0;const S=await u.slice(1).reduce(async(w,N)=>{const T=await w;await y(T);const B=T?.children?.find(D=>D.value===N);return B&&p.push(N),Promise.resolve(B)},Promise.resolve(k));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,w)=>{n.value=w,b.handleNode(S,!0)})},y=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let k=d.get(u);k||(k=new Promise(w=>{l.value.lazyLoad?.(u,w)}),d.set(u,k));const S=await k;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},g=u=>{const p=u.map(k=>k.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:v}=ae.useFoxI18n(Lu),b={async handleNode(u,p){const{disabled:k,loading:S}=u;if(!(!p&&k||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const w=i.value.map(N=>N.selectedNode);g(w),o("pathChange",w)}return}if(s.value.hasChildren(u,c.value)){const w=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,w),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=w,!p){const N=i.value.map(T=>T.selectedNode);o("pathChange",N)}return}f=u,!S&&(await y(u),f===u&&(i.value[n.value].selectedNode=u,b.handleNode(u,p)))}},handleTabClick(u){f=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:v("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...b}}}),Ru={role:"menu",class:"fox-cascader__pane"},Fu=["aria-checked","aria-disabled","onClick"],Ou={class:"fox-cascader__item__title"},Ku=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Uu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=f=>e.tabsCursor=f),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(f,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(f),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Ru,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(f,h),disabled:h.disabled}]),"aria-checked":e.isSelected(f,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",Ou,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Fu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Ku]),_:1}))]),_:1},8,["modelValue","onClick"])}const Hu=J(Pu,[["render",Uu]]),{create:ju}=X("cascader"),Wu=ju({components:{FoxCascaderPane:Hu,FoxPopup:ce},props:{...Xe,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),Yu=["innerHTML"];function Xu(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Yu)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Do=J(Wu,[["render",Xu]]);function Lt(e,o){const l=e.textKey??"text";return o[l]??""}function Pt(e,o){const l=e.valueKey??"value";return o[l]}function as(e,o){const l=e.childrenKey??"children";return o[l]}function Qt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Lt(e,a),s=Pt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function rs(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Lt(e,o[s])===r){const c=Pt(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const f=as(e,o[s]);Array.isArray(f)&&rs(e,f,l,n+1,a);return}}function ss(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Pt(e,o[s])===r){const c=Lt(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const f=as(e,o[s]);Array.isArray(f)&&ss(e,f,l,n+1,a);return}}function Go(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=Lt(e,o[n]),r=Lt(e,l[n]);if(a!==r)return!1;const s=Pt(e,o[n]),i=Pt(e,l[n]);if(s!==i)return!1}return!0}let Qu=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Gu(){const e=t.getCurrentInstance();return new Qu(e.proxy)}function Zu(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,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}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Gu(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([F,I])=>{F&&(b.value=await v.load(F,I))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),k=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([F])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(F)?F:[],k.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let I=F;if(!Go(i,I,S.value)){S.value=I;let K=Qt(i,I);u.value=K.texts,k.value=K.values}}else if(i.valueType==="text"){let I=F,K=[];if(rs(i,b.value,I,0,K),!Go(i,K,S.value)){S.value=K;let W=Qt(i,K);I.value=W.texts,k.value=W.values}}else{let I=[];if(ss(i,b.value,F,0,I),!Go(i,I,S.value)){S.value=I;let K=Qt(i,I);u.value=K.texts,k.value=K.values}}},{immediate:!0});const w="fox-input-item",N=t.computed(()=>({[w]:!0,[`${w}__disabled`]:d.value})),T=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const F={};return T.value&&(F["text-align"]=T.value),F}),D=t.ref(!1),C=()=>{d.value===!0||f.value===!0||(D.value=!0)},V=F=>{D.value=F},M=(F,I)=>{let K=I.map(Z=>{if(Z==null)return Z;let O={...Z};return Reflect.deleteProperty(O,"text"),O[i.textKey]=Z.text??"",Reflect.deleteProperty(O,"value"),O[i.valueKey]=Z.value??"",O});S.value=K;let W=Qt(i,K);u.value=W.texts,k.value=W.values,i.valueType==="text"?(m("change",u.value,K),m("update:modelValue",u.value)):i.valueType==="item"?(m("change",K,K),m("update:modelValue",K)):(m("change",k.value,K),m("update:modelValue",k.value)),m("update:pathNodes",K)},L=F=>{let I=F.map(K=>{if(K==null)return K;let W={...K};return Reflect.deleteProperty(W,"text"),W[i.textKey]=K.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=K.value??"",W});m("pathChange",I)},$=F=>{g.value=!0,m("focus",k.value,F)},E=F=>{setTimeout(()=>{g.value=!1},0),m("blur",k.value,F)},x=t.computed(()=>({[`${w}__append`]:!0})),A=t.computed(()=>ge(i.unit)>0),H=t.computed(()=>ge(i.unit)>0&&!g.value),R=t.computed(()=>({hidden:!H.value})),Y=F=>{S.value=[],u.value=[],k.value=[],m("update:modelValue",[]),m("change",[],F),m("clear",[]),m("update:pathNodes",[])},U=t.computed(()=>i.clearable&&!d.value&&!f.value),P=t.computed(()=>{let F=k.value&&k.value.length>0;return i.clearable&&F&&g.value}),z=F=>{P.value?Y(F):C()},j=t.computed(()=>P.value&&U.value?n:a),q=t.computed(()=>({action:!0}));return()=>{const F={class:N.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:C,onFocus:$,onBlur:E};s&&(F.disabled=!0);const I=[],K=t.h("input",F);I.push(K);const W=[],Z={class:["action-icon"]},O=t.h(j.value,Z),G={class:q.value,onClick:z},Q=t.h("view",G,{default:()=>[O]});if(W.push(Q),A.value){const Ze=t.h("view",{class:R.value},[i.unit]);W.push(Ze)}const ee={class:x.value},_=t.h("view",ee,{default:()=>W});I.push(_);const oe={default:()=>I};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let le={};le.visible=D.value,le["onUpdate:visible"]=V,le.modelValue=k.value,le.onChange=M,le.onPathChange=L,le.options=b.value,le.title=i.title,le.lazy=i.lazy,le.lazyLoad=i.lazyLoad,le.valueKey=i.valueKey,le.textKey=i.textKey,le.childrenKey=i.childrenKey,le.convertConfig=i.convertConfig;const $e=t.h(r,le);oe.hide=()=>[$e];const ve=he(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:Ju,create:_u,scope:ed}=X("cascader-item"),Gn=_u(Zu(Ju,ed,be,te.CircleClose,te.ArrowRight,Do,!1));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",f="week",m="month",h="quarter",y="year",g="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(L,$,E){var x=String(L);return!x||x.length>=$?L:""+Array($+1-x.length).join(E)+L},S={s:k,z:function(L){var $=-L.utcOffset(),E=Math.abs($),x=Math.floor(E/60),A=E%60;return($<=0?"+":"-")+k(x,2,"0")+":"+k(A,2,"0")},m:function L($,E){if($.date()<E.date())return-L(E,$);var x=12*(E.year()-$.year())+(E.month()-$.month()),A=$.clone().add(x,m),H=E-A<0,R=$.clone().add(x+(H?-1:1),m);return+(-(x+(E-A)/(H?A-R:R-A))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:m,y,w:f,d,D:g,h:c,m:i,s,ms:r,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},w="en",N={};N[w]=p;var T=function(L){return L instanceof V},B=function L($,E,x){var A;if(!$)return w;if(typeof $=="string"){var H=$.toLowerCase();N[H]&&(A=H),E&&(N[H]=E,A=H);var R=$.split("-");if(!A&&R.length>1)return L(R[0])}else{var Y=$.name;N[Y]=$,A=Y}return!x&&A&&(w=A),A||!x&&w},D=function(L,$){if(T(L))return L.clone();var E=typeof $=="object"?$:{};return E.date=L,E.args=arguments,new V(E)},C=S;C.l=B,C.i=T,C.w=function(L,$){return D(L,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var V=function(){function L(E){this.$L=B(E.locale,null,!0),this.parse(E)}var $=L.prototype;return $.parse=function(E){this.$d=function(x){var A=x.date,H=x.utc;if(A===null)return new Date(NaN);if(C.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var R=A.match(b);if(R){var Y=R[2]-1||0,U=(R[7]||"0").substring(0,3);return H?new Date(Date.UTC(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,U)):new Date(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,U)}}return new Date(A)}(E),this.$x=E.x||{},this.init()},$.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},$.$utils=function(){return C},$.isValid=function(){return this.$d.toString()!==v},$.isSame=function(E,x){var A=D(E);return this.startOf(x)<=A&&A<=this.endOf(x)},$.isAfter=function(E,x){return D(E)<this.startOf(x)},$.isBefore=function(E,x){return this.endOf(x)<D(E)},$.$g=function(E,x,A){return C.u(E)?this[x]:this.set(A,E)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(E,x){var A=this,H=!!C.u(x)||x,R=C.p(E),Y=function(K,W){var Z=C.w(A.$u?Date.UTC(A.$y,W,K):new Date(A.$y,W,K),A);return H?Z:Z.endOf(d)},U=function(K,W){return C.w(A.toDate()[K].apply(A.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(W)),A)},P=this.$W,z=this.$M,j=this.$D,q="set"+(this.$u?"UTC":"");switch(R){case y:return H?Y(1,0):Y(31,11);case m:return H?Y(1,z):Y(0,z+1);case f:var F=this.$locale().weekStart||0,I=(P<F?P+7:P)-F;return Y(H?j-I:j+(6-I),z);case d:case g:return U(q+"Hours",0);case c:return U(q+"Minutes",1);case i:return U(q+"Seconds",2);case s:return U(q+"Milliseconds",3);default:return this.clone()}},$.endOf=function(E){return this.startOf(E,!1)},$.$set=function(E,x){var A,H=C.p(E),R="set"+(this.$u?"UTC":""),Y=(A={},A[d]=R+"Date",A[g]=R+"Date",A[m]=R+"Month",A[y]=R+"FullYear",A[c]=R+"Hours",A[i]=R+"Minutes",A[s]=R+"Seconds",A[r]=R+"Milliseconds",A)[H],U=H===d?this.$D+(x-this.$W):x;if(H===m||H===y){var P=this.clone().set(g,1);P.$d[Y](U),P.init(),this.$d=P.set(g,Math.min(this.$D,P.daysInMonth())).$d}else Y&&this.$d[Y](U);return this.init(),this},$.set=function(E,x){return this.clone().$set(E,x)},$.get=function(E){return this[C.p(E)]()},$.add=function(E,x){var A,H=this;E=Number(E);var R=C.p(x),Y=function(z){var j=D(H);return C.w(j.date(j.date()+Math.round(z*E)),H)};if(R===m)return this.set(m,this.$M+E);if(R===y)return this.set(y,this.$y+E);if(R===d)return Y(1);if(R===f)return Y(7);var U=(A={},A[i]=n,A[c]=a,A[s]=l,A)[R]||1,P=this.$d.getTime()+E*U;return C.w(P,this)},$.subtract=function(E,x){return this.add(-1*E,x)},$.format=function(E){var x=this,A=this.$locale();if(!this.isValid())return A.invalidDate||v;var H=E||"YYYY-MM-DDTHH:mm:ssZ",R=C.z(this),Y=this.$H,U=this.$m,P=this.$M,z=A.weekdays,j=A.months,q=function(W,Z,O,G){return W&&(W[Z]||W(x,H))||O[Z].slice(0,G)},F=function(W){return C.s(Y%12||12,W,"0")},I=A.meridiem||function(W,Z,O){var G=W<12?"AM":"PM";return O?G.toLowerCase():G},K={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:C.s(P+1,2,"0"),MMM:q(A.monthsShort,P,j,3),MMMM:q(j,P),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:q(A.weekdaysMin,this.$W,z,2),ddd:q(A.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(Y),HH:C.s(Y,2,"0"),h:F(1),hh:F(2),a:I(Y,U,!0),A:I(Y,U,!1),m:String(U),mm:C.s(U,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:R};return H.replace(u,function(W,Z){return Z||K[W]||R.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(E,x,A){var H,R=C.p(x),Y=D(E),U=(Y.utcOffset()-this.utcOffset())*n,P=this-Y,z=C.m(this,Y);return z=(H={},H[y]=z/12,H[m]=z,H[h]=z/3,H[f]=(P-U)/6048e5,H[d]=(P-U)/864e5,H[c]=P/a,H[i]=P/n,H[s]=P/l,H)[R]||P,A?z:C.a(z)},$.daysInMonth=function(){return this.endOf(m).$D},$.$locale=function(){return N[this.$L]},$.locale=function(E,x){if(!E)return this.$L;var A=this.clone(),H=B(E,x,!0);return H&&(A.$L=H),A},$.clone=function(){return C.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},L}(),M=V.prototype;return D.prototype=M,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",m],["$y",y],["$D",g]].forEach(function(L){M[L[1]]=function($){return this.$g($,L[0],L[1])}}),D.extend=function(L,$){return L.$i||(L($,V,D),L.$i=!0),D},D.locale=B,D.isDayjs=T,D.unix=function(L){return D(1e3*L)},D.en=N[w],D.Ls=N,D.p={},D})})(is);var td=is.exports;const ze=He(td);var cs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var u=b.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(v)}],m=function(v){var b=i[v];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(v,b){var u,p=i.meridiem;if(p){for(var k=1;k<=24;k+=1)if(v.indexOf(p(k,0,b))>-1){u=k>12;break}}else u=v===(b?"pm":"PM");return u},y={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(v){var b=i.ordinal,u=v.match(/\d+/);if(this.day=u[0],b)for(var p=1;p<=31;p+=1)b(p).replace(/\[|\]/g,"")===v&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(v){var b=m("months"),u=(m("monthsShort")||b.map(function(p){return p.slice(0,3)})).indexOf(v)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(v){var b=m("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(v){var b,u;b=v,u=i&&i.formats;for(var p=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,C,V){var M=V&&V.toUpperCase();return C||u[V]||l[V]||u[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,$,E){return $||E.slice(1)})})).match(n),k=p.length,S=0;S<k;S+=1){var w=p[S],N=y[w],T=N&&N[0],B=N&&N[1];p[S]=B?{regex:T,parser:B}:w.replace(/^\[|\]$/g,"")}return function(D){for(var C={},V=0,M=0;V<k;V+=1){var L=p[V];if(typeof L=="string")M+=L.length;else{var $=L.regex,E=L.parser,x=D.slice(M),A=$.exec(x)[0];E.call(C,A),D=D.replace(A,"")}}return function(H){var R=H.afternoon;if(R!==void 0){var Y=H.hours;R?Y<12&&(H.hours+=12):Y===12&&(H.hours=0),delete H.afternoon}}(C),C}}return function(v,b,u){u.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var p=b.prototype,k=p.parse;p.parse=function(S){var w=S.date,N=S.utc,T=S.args;this.$u=N;var B=T[1];if(typeof B=="string"){var D=T[2]===!0,C=T[3]===!0,V=D||C,M=T[2];C&&(M=T[2]),i=this.$locale(),!D&&M&&(i=u.Ls[M]),this.$d=function(x,A,H){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*x);var R=g(A)(x),Y=R.year,U=R.month,P=R.day,z=R.hours,j=R.minutes,q=R.seconds,F=R.milliseconds,I=R.zone,K=new Date,W=P||(Y||U?1:K.getDate()),Z=Y||K.getFullYear(),O=0;Y&&!U||(O=U>0?U-1:K.getMonth());var G=z||0,Q=j||0,ee=q||0,_=F||0;return I?new Date(Date.UTC(Z,O,W,G,Q,ee,_+60*I.offset*1e3)):H?new Date(Date.UTC(Z,O,W,G,Q,ee,_)):new Date(Z,O,W,G,Q,ee,_)}catch{return new Date("")}}(w,B,N),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),V&&w!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var L=B.length,$=1;$<=L;$+=1){T[1]=B[$-1];var E=u.apply(this,T);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}$===L&&(this.$d=new Date(""))}else k.call(this,S)}}})})(cs);var od=cs.exports;const nd=He(od);var us={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var f=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return 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 s.bind(this)(m)}}})})(us);var ld=us.exports;const ad=He(ld);var ds={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){var r=n.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,h,y,g,v){var b=m.name?m:m.$locale(),u=s(b[h]),p=s(b[y]),k=u||p.map(function(w){return w.slice(0,g)});if(!v)return k;var S=b.weekStart;return k.map(function(w,N){return k[(N+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(m,h){return m.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,b){return v||b.slice(1)})}(m.formats[h.toUpperCase()])},f=function(){var m=this;return{months:function(h){return h?h.format("MMMM"):i(m,"months")},monthsShort:function(h){return h?h.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(m,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(m.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return f.bind(this)()},a.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(m,h)},meridiem:m.meridiem,ordinal:m.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(m){return i(c(),"weekdays",null,null,m)},a.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},a.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(ds);var rd=ds.exports;const sd=He(rd);var fs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),m=s(this).endOf(l);if(f.isBefore(m))return 1}var h=s(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),y=this.diff(h,l,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(fs);var id=fs.exports;const cd=He(id);var ms={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(ms);var ud=ms.exports;const dd=He(ud);var ps={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(ps);var fd=ps.exports;const md=He(fd);var hs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(hs);var pd=hs.exports;const hd=He(pd);var gs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(gs);var gd=gs.exports;const yd=He(gd);ze.extend(sd);ze.extend(ad);ze.extend(nd);ze.extend(cd);ze.extend(dd);ze.extend(md);ze.extend(hd);ze.extend(yd);const ne={format(e,o){return ze(e).format(o)},parser(e,o){return ze(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e,o){e=e||0;let l=o??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return n!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,d=r+(6-s)*864e5,f=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[f,m]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,f=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[f,m]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=ne.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=ne.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},Ja=new Date().getFullYear(),Zn={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"},fo=(e,o,l)=>{let n;if(Fe(o)?n=o:typeof o=="string"&&ge(o)>0?n=ne.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},kn=(e,o,l)=>{Fe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),ne.format(new Date(n),l)};let bn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Ja-10,0,1),validator:Fe},maxDate:{type:Date,default:()=>new Date(Ja+10,11,31),validator:Fe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:vd,scope:kd}=X("date-picker"),bd=vd({components:{[yt.name]:yt},props:{...bn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(kd),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const k=e[`${u}Date`],S=k.getFullYear();let w=1,N=1,T=0,B=0;u==="max"&&(w=12,N=r(p.getFullYear(),p.getMonth()+1),T=23,B=59);const D=B;return p.getFullYear()===S&&(w=k.getMonth()+1,p.getMonth()+1===w&&(N=k.getDate(),p.getDate()===N&&(T=k.getHours(),p.getHours()===T&&(B=k.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:w,[`${u}Date`]:N,[`${u}Hour`]:T,[`${u}Minute`]:B,[`${u}Seconds`]:D}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:k,maxHour:S,maxMinute:w,maxSeconds:N}=s("max",h.value),{minYear:T,minDate:B,minMonth:D,minHour:C,minMinute:V,minSeconds:M}=s("min",h.value);let L=[{type:"year",range:[T,u]},{type:"month",range:[D,k]},{type:"day",range:[B,p]},{type:"hour",range:[C,S]},{type:"minute",range:[V,w]},{type:"seconds",range:[M,N]}];switch(e.type){case"date":L=L.slice(0,3);break;case"datetime":L=L.slice(0,5);break;case"time":L=L.slice(3,6);break;case"year-month":L=L.slice(0,2);break;case"month-day":L=L.slice(1,3);break;case"datehour":L=L.slice(0,4);break;case"hour-minute":L=L.slice(3,5);break}return L}),c=(u,p,k)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[k],value:u}):S.push({text:`${u}`,value:u}),k==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let k=c(p.range[0],p.range[1],p.type);k&&u.push(k)}),u}),f=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,m=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=fo(e,e.modelValue,e.valueFormat):u=fo(e,p,Zn[e.type]):Fe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let k=[];i.value.forEach(S=>{let w=f(S.type,u);k.push(w)}),m.value=k}});const y=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="year-month"){let p=u,k=new Date(p[0],p[1]-1);h.value=k}else if(e.type==="month-day"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),p[0]-1,p[1]);h.value=S}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1]);h.value=S}m.value=u};return{columns:d,dateIndexs:m,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:u=>{y(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let k=kn(e,p,e.valueFormat);o("update:modelValue",k)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Sd(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const xo=J(bd,[["render",Sd]]);function Cd(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function wd(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,...bn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),b=Ee(i,"modelValue",z=>z==null?null:typeof z=="string"?z.length==0?null:i.valueFormat?fo(i,z,i.valueFormat)??z:fo(i,z,Zn[i.type])??z:Fe(z)?z:null),u=t.computed(()=>{if(!b.value)return"";const z=Cd(i);return kn(i,b.value,z)}),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),N=t.ref(!1),T=()=>{N.value=!0},B=()=>{N.value=!1};c.expose({showPicker:T,hidePicker:B});const D=z=>{N.value=z},C=z=>{if(b.value=z,i.valueFormat){let j=kn(i,z,i.valueFormat);m("update:modelValue",j,{}),m("change",j,{})}else m("update:modelValue",z,{}),m("change",z,{})},V=z=>{let q=z.target.value;g.value=!0,m("focus",q,z)},M=z=>{setTimeout(()=>{g.value=!1},0);let q=z.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),m("blur",q,z)},L=t.computed(()=>({[`${p}__append`]:!0})),$=t.computed(()=>ge(i.unit)>0),E=t.computed(()=>ge(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!E.value})),A=z=>{b.value="",m("update:modelValue","",z),m("change","",z),m("clear",""),B()},H=t.computed(()=>i.clearable&&!d.value&&!f.value),R=t.computed(()=>{let z=ge(b.value)>0;return i.clearable&&z&&g.value}),Y=z=>{R.value?A(z):T()},U=t.computed(()=>R.value&&H.value?n:a),P=t.computed(()=>({action:!0}));return()=>{const z={class:k.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:T,onFocus:V,onBlur:M};s&&(z.disabled=!0);const j=[],q=t.h("input",z);j.push(q);const F=[],I={class:["action-icon"]},K=t.h(U.value,I),W={class:P.value,onClick:Y},Z=t.h("view",W,{default:()=>[K]});if(F.push(Z),$.value){const ve=t.h("view",{class:x.value},[i.unit]);F.push(ve)}const O={class:L.value},G=t.h("view",O,{default:()=>F});j.push(G);const Q={default:()=>j};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const ee=he(i,bn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||f.value,ee.visible=N.value,ee["onUpdate:visible"]=D,ee.modelValue=b.value,ee["onUpdate:modelValue"]=C,ee.onClear=A;const _={};if(c.slots.top){const ve=c.slots.top();_.top=()=>ve}if(c.slots.bottom){const ve=c.slots.bottom();_.default=()=>ve}const oe=t.h(r,ee,_);Q.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,Q)}}}}const{create:Nd,componentName:Bd,scope:Vd}=X("date-item"),Jn=Nd(wd(Bd,Vd,be,te.CircleClose,te.Date,xo,!1)),Ad=39,Td=64,{create:$d,scope:Ed}=X("calendar-pane"),Dd=$d({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:ne.getDay(0)},endDate:{type:String,default:ne.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ae.useFoxI18n(Ed),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),f=t.ref(null),m=t.ref(null),h=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),g=t.computed(()=>l.btn),v=t.computed(()=>l["top-info"]),b=t.computed(()=>l["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),p=I=>I.split("-"),k=I=>ne.isEqual(u.currDate[0],I),S=I=>ne.isEqual(u.currDate[1],I),w=I=>u.currDate?.length>0?u.currDate?.some(K=>ne.isEqual(K,I)):!1,N=(I,K)=>K.curData[0]+"-"+K.curData[1]+"-"+ne.getNumTwoBit(+I.day),T=(I,K)=>{const W=N(I,K),{type:Z}=e;return I.type=="curr"?ne.isEqual(u.currDate,W)||(Z=="range"||Z=="week")&&(k(W)||S(W))||Z=="multiple"&&w(W)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(W,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,W)?`${u.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ne.compareDate(u.currDate[0],W)&&ne.compareDate(W,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},B=()=>{const{type:I}=e;if(I=="range"&&u.chooseData.length==2||I!="range"){let K=u.chooseData.slice(0);I=="week"&&(K={weekDate:[C(u.chooseData[0]),C(u.chooseData[1])]}),o("choose",K),e.poppable&&o("update")}},D=(I,K,W=!1)=>{if(T(I,K)!=`${u.dayPrefix}--disabled`){const{type:Z}=e;let[O,G]=K.curData,Q=[...K.curData];if(Q[2]=ne.getNumTwoBit(Number(I.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=ne.getWhatDay(+Q[0],+Q[1],+Q[2]),Z=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==Q[3]&&(ee=oe)}),W?u.chooseData.push([...Q]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(Q[3]),u.chooseData.push([...Q]))}else u.currDate=[Q[3]],u.chooseData=[[...Q]];else if(Z=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[Q[3]]:ne.compareDate(u.currDate[0],Q[3])?Array.isArray(u.currDate)&&u.currDate.push(Q[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Q[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Q]]:ne.compareDate(u.chooseData[0][3],Q[3])?u.chooseData=[...u.chooseData,[...Q]]:u.chooseData=[[...Q],...u.chooseData]}else if(Z=="week"){let ee=ne.getWeekDate(O,G,I.day,e.firstDayOfWeek);u.propStartDate&&ne.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&ne.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[ne.formatResultDate(ee[0]),ne.formatResultDate(ee[1])]}else u.currDate=Q[3],u.chooseData=[...Q];if(!W){let ee=u.chooseData;Z=="week"&&(ee={weekDate:[C(u.chooseData[0]),C(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},C=I=>{let[K,W,Z]=I;return{date:I,monthWeekNum:ne.getMonthWeek(K,W,Z,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(K,W,Z,e.firstDayOfWeek)}},V=I=>{const K=I=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let W=parseInt(K.curData[0]),Z=parseInt(K.curData[1].toString().replace(/^0/,""));switch(I){case"prev":Z==1&&(W-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(W+=1),Z=Z==12?1:++Z;break}return[W+"",ne.getNumTwoBit(Z),ne.getMonthDays(String(W),String(Z))+""]},M=(I,K,W)=>{let{year:Z,month:O}=W;return K=="prev"&&I>=7&&(I-=7),Array.from(Array(I),(G,Q)=>({day:String(Q+1),type:K,year:Z,month:O}))},L=(I,K,W,Z)=>{I=I-e.firstDayOfWeek;let{year:O,month:G}=W;return K=="prev"&&I>=7&&(I-=7),Array.from(Array(Z),(ee,_)=>({day:String(_+1),type:K,year:O,month:G})).slice(Z-I)},$=(I,K)=>{const W=ne.getMonthPreDay(+I[0],+I[1]);let Z=Number(I[1])-1,O=Number(I[0]);Z<=0&&(Z=12,O+=1);const G=ne.getMonthDays(String(I[0]),String(I[1])),Q=ne.getMonthDays(O+"",Z+""),ee={year:I[0],month:I[1]},_={curData:I,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...L(W,"prev",{month:String(Z),year:String(O)},Q),...M(G,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=Ad+Td*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=le,K=="next"?(!u.endData||!ne.compareDate(`${u.endData[0]}-${u.endData[1]}-${ne.getMonthDays(u.endData[0],u.endData[1])}`,`${I[0]}-${I[1]}-${I[2]}`))&&u.monthsData.push(_):!u.startData||!ne.compareDate(`${I[0]}-${I[1]}-${I[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(_):u.unLoadPrev=!0},E=()=>{let I=e.startDate?e.startDate:ne.getDay(0),K=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=I,u.propEndDate=K,u.startData=p(I),u.endData=p(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const W={year:Number(u.startData[0]),month:Number(u.startData[1])},Z={year:Number(u.endData[0]),month:Number(u.endData[1])};let O=Z.month-W.month;Z.year-W.year>0&&(O=O+12*(Z.year-W.year)),O<=0&&(O=1),$(u.startData,"next");let G=1;do $(V("next"),"next");while(G++<O);if(u.monthsNum=O,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(I&&ne.compareDate(u.currDate[0],I)&&u.currDate.splice(0,1,I),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let Q=[],ee={};u.currDate.forEach(_=>{I&&!ne.compareDate(_,I)&&K&&!ne.compareDate(K,_)&&(Object.hasOwnProperty.call(ee,_)||(Q.push(_),ee[_]=_))}),u.currDate=[...Q],u.defaultData=[...p(Q[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Q,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(Q,ee,_,e.firstDayOfWeek);u.currDate=oe,I&&ne.compareDate(u.currDate[0],I)&&u.currDate.splice(0,1,I),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(I&&ne.compareDate(u.currDate,I)?u.currDate=I:K&&!ne.compareDate(u.currDate,K)&&(u.currDate=K),u.defaultData=[...p(u.currDate)])};Te({scrollToDate:I=>{ne.compareDate(I,u.propStartDate)?I=u.propStartDate:ne.compareDate(I,u.propEndDate)||(I=u.propEndDate);let K=p(I);u.monthsData.forEach((W,Z)=>{if(W.title==a("monthTitle",{year:K[0],month:K[1]})&&c.value){let O=u.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Q=setInterval(()=>{if(G++,c.value){let ee=O/10;c.value.scrollTop=c.value.scrollTop+ee}G>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=u.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let I=0,K=0;u.defaultData.length>0&&u.monthsData.forEach((O,G)=>{O.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(I=G),(e.type=="range"||e.type=="week")&&O.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(K=G)}),R(u.monthsNum,I),u.currentIndex=I,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),D({day:u.defaultData[5],type:"curr"},u.monthsData[K],!0)):e.type=="week"?D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(O=>{let G=p(O),Q=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:G[0],month:G[1]})&&(Q=_)}),D({day:G[2],type:"curr"},u.monthsData[Q],!0)}):D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let W=u.monthsData[u.monthsData.length-1],Z=W.cssHeight+W.cssScrollHeight;je(()=>{c?.value&&d?.value&&m?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(Z/(u.monthsNum+1))}});const R=(I,K)=>{I>=3?K>0&&K<I?u.defaultRange=[K-1,K+3]:K==0?u.defaultRange=[K,K+4]:K==I&&(u.defaultRange=[K-2,K+2]):u.defaultRange=[0,I+2];let W=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=W},Y=(I,K)=>(e.type=="range"||e.type=="week")&&I.type=="curr"&&T(I,K)=="fox-calendar__day--active",U=(I,K)=>Y(I,K)&&k(N(I,K)),P=(I,K)=>u.currDate.length>=2&&S(N(I,K))?Y(I,K):!1,z=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},j=I=>{const K=`${I.year}-${I.month}-${Number(I.day)<10?"0"+I.day:I.day}`;return ne.isEqual(K,ne.date2Str(new Date))},q=I=>{if(u.monthsData.length<=1)return;const K=I.target.scrollTop;let W=Math.floor(K/u.avgHeight);if(W==0)K>=u.monthsData[W+1].cssScrollHeight&&(W+=1);else if(W>0&&W<u.monthsNum-1)K>=u.monthsData[W+1].cssScrollHeight&&(W+=1),K<u.monthsData[W].cssScrollHeight&&(W-=1);else{const Z=Math.round(K+h.value);Z<u.monthsData[W].cssScrollHeight+u.monthsData[W].cssHeight&&K>u.monthsData[W-1].cssScrollHeight&&(W-=1),W+1<=u.monthsNum&&Z>=u.monthsData[W+1].cssScrollHeight+u.monthsData[W+1].cssHeight&&(W+=1),W>=1&&K<u.monthsData[W-1].cssScrollHeight&&(W-=1)}u.currentIndex!==W&&(u.currentIndex=W,R(u.monthsNum,W)),u.yearMonthTitle=u.monthsData[W].title},F=()=>{u.chooseData.splice(0),u.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,I=>{I&&e.poppable&&F()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:v,bottomInfo:b,rangeTip:z,mothsViewScroll:q,getClass:T,isStartTip:U,isEndTip:P,chooseDay:D,isCurrDay:j,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:f,viewArea:m}}}),xd={class:"fox-calendar__header"},Id={key:0,class:"fox-calendar__header-title"},qd={key:1,class:"fox-calendar__header-slot"},Md={key:2,class:"fox-calendar__header-subtitle"},zd={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ld={class:"fox-calendar__panel",ref:"monthsPanel"},Pd={class:"fox-calendar__month-title"},Rd={class:"fox-calendar__days"},Fd=["onClick"],Od={class:"fox-calendar__day-value"},Kd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Ud={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Hd={key:2,class:"fox-calendar__day-tips--curr"},jd={key:4,class:"fox-calendar__day-tip"},Wd={key:0,class:"fox-calendar__footer"};function Yd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",xd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Id,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",qd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Md,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",zd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Ld,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Pd,t.toDisplayString(s.title),1),t.createElementVNode("view",Rd,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:f=>e.chooseDay(c,s)},[t.createElementVNode("view",Od,[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",Kd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Ud,[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",Hd,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",jd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Fd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Wd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const _a=J(Dd,[["render",Yd]]),Xd=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Sn={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:Qd}=X("calendar"),Gd=Qd({components:{[_a.name]:_a,[ce.name]:ce},props:{...Sn},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=v=>{i.value?.scrollToDate(v)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Te({scrollToDate:c,initPosition:d});const f=()=>{o("update:visible",!1)},m=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{m()},update:f,close:m,select:v=>{o("select",v)},choose:v=>{m(),o("choose",v)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function Zd(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const Io=J(Gd,[["render",Zd]]),Zo=(e,o)=>{let l;return Fe(e)?l=e:typeof e=="string"&&ge(e)>0?l=ne.parser(e,o):l=new Date,l},it=(e,o,l)=>(Fe(o)||(o=new Date),ne.format(o,l)),ct=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=ne.date2Str(e),r=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function Jd(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...de,...Sn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},p=(q,F="one",I="YYYY-MM-DD")=>{if(Xd(q)){u();return}if(v.value&&Array.isArray(q)&&q.length==2){let K,W;typeof q[0]=="string"?(K=Zo(q[0],I),W=Zo(q[1],I)):(K=q[0],W=q[1]);let Z=ct(K),O=ct(W);(b.startDate===null||b.startDate.getTime()!==K.getTime()||b.endDate?.getTime()!==W.getTime())&&(b.startDate=K,b.startArray=Z,b.endDate=W,b.endArray=O)}else{let K;typeof q=="string"?K=Zo(q,I):K=q;let W=ct(K);(b.startDate===null||b.startDate.getTime()!==K.getTime())&&(b.startDate=K,b.startArray=W)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,q=>{p(q,i.type,i.valueFormat)});const k=t.computed(()=>{if(b.startDate===null)return"";if(v.value){let q=it(i,b.startDate,i.format),F=it(i,b.endDate,i.format);return`${q} ${i.rangeSeparator} ${F}`}else{let q=it(i,b.startDate,i.format);return i.showWeek&&(q=`${q} ${b.startArray[4]}`),q}}),S=t.computed(()=>{if(b.startDate===null)return null;if(v.value){let q=ne.date2Str(b.startDate),F=ne.date2Str(b.endDate??new Date);return[q,F]}else return ne.date2Str(b.startDate)}),w="fox-input-item",N=t.computed(()=>({[w]:!0,[`${w}__disabled`]:d.value})),T=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const q={};return T.value&&(q["text-align"]=T.value),q}),D=t.ref(!1),C=()=>{f.value||d.value||(D.value=!0)},V=q=>{D.value=q},M=q=>{if(q){if(v.value&&Array.isArray(q)){let F=q[0],I=me(F[0]),K=me(F[1]),W=me(F[2]),Z=new Date(I,K-1,W),O=q[1];I=me(O[0]),K=me(O[1]),W=me(O[2]);let G=new Date(I,K-1,W);if(b.startDate=Z,b.startArray=ct(Z),b.endDate=G,b.endArray=ct(G),i.valueFormat){let Q=it(i,Z,i.valueFormat),ee=it(i,G,i.valueFormat);m("update:modelValue",[Q,ee],{})}else m("update:modelValue",[Z,G],{})}else{let F=q,I=me(F[0]),K=me(F[1]),W=me(F[2]),Z=new Date(I,K-1,W);if(b.startDate=Z,b.startArray=ct(Z),i.valueFormat){let O=it(i,Z,i.valueFormat);m("update:modelValue",O,{})}else m("update:modelValue",Z,{})}m("change",q,{})}},L=q=>{let I=q.target.value;g.value=!0,m("focus",I,q)},$=q=>{setTimeout(()=>{g.value=!1},0);let I=q.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),m("blur",I,q)},E=t.computed(()=>({[`${w}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),A=t.computed(()=>ge(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!A.value})),R=q=>{u(),m("update:modelValue",null,q),m("change","",q),m("clear","")},Y=t.computed(()=>i.clearable&&!d.value&&!f.value),U=t.computed(()=>{let q=ge(k.value)>0;return i.clearable&&q&&g.value}),P=q=>{U.value?R(q):C()},z=t.computed(()=>U.value&&Y.value?a:r),j=t.computed(()=>({action:!0}));return()=>{const q={class:N.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:C,onFocus:L,onBlur:$};s&&(q.disabled=!0);const F=[],I=t.h("input",q);F.push(I);const K=[],W={class:["action-icon"]},Z=t.h(z.value,W),O={class:j.value,onClick:P},G=t.h("view",O,{default:()=>[Z]});if(K.push(G),x.value){const Ze=t.h("view",{class:H.value},[i.unit]);K.push(Ze)}const Q={class:E.value},ee=t.h("view",Q,{default:()=>K});F.push(ee);const _={default:()=>F};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,Sn);oe.visible=D.value,oe["onUpdate:visible"]=V,oe["default-value"]=S.value,oe.onChoose=M;const le={};if(c.slots.btn){const Ze=c.slots.btn();le.btn=()=>Ze}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const $e=t.h(l,oe,le);_.hide=()=>[$e];const ve=he(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:_d,create:ef,scope:tf}=X("calendar-item"),_n=ef(Jd(_d,tf,Io,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),of={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function nf(e,{CheckNormal:o,Checked:l}){return{props:{...of},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),f=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const v=se(n.iconSize),b=n.checkedIcon??l;return t.h(b,{width:v,height:v,class:c.value})}}else{if(r.icon)return r.icon();{const v=se(n.iconSize),b=n.icon??o;return t.h(b,{width:v,height:v,class:c.value})}}},m=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),y=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():g?[m(),f()]:[f(),m()]])}}}const{componentName:lf,create:af}=X("radio"),qo=af(nf(lf,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:er,create:rf}=X("radio-group"),Mo=rf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${er} ${er}--${e.direction}`,style:a},l.default?.())}}});function tr(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(_t(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Et(e,r)===l)return a}return-1}function _t(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Et(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function sf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function cf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let uf=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function df(){const e=t.getCurrentInstance();return new uf(e.proxy)}function ff(e){return{text:e,value:e}}const or={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},mf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function pf(e,o,l,n,a){return{props:{...ue,...de,...or,...mf,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ae(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),m=df(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await m.load("radio",u,p);if(k.length>0)if(typeof k[0]=="string"){const N=k.map(T=>ff(T));h.value=N}else h.value=k}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{y.value=tr(r,p,u,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const u=h.value[y.value];return Et(r,u)}),v=u=>{let p=null,k=null;if(h.value.length>0){let S=tr(r,h.value,u,"value");y.value=S,S>=0&&(k=h.value[S],r.valueType==="text"?p=_t(r,k):r.valueType==="item"?p=k:p=Et(r,k))}else p=u;f("update:modelValue",p),f("change",p,k)},b=()=>{let u=null,p=null;if(h.value.length>0&&y.value!==-1){let k=h.value[y.value];r.valueType==="text"?u=_t(r,k):r.valueType==="item"?u=k:u=Et(r,k)}f("update:modelValue",u),f("change",u,p)};if(Te({clear(){y.value!==-1&&(y.value=-1,b())}}),r.source){const u=()=>{const p=[],k=he(r,or);return h.value.forEach((S,w)=>{const N=Et(r,S),T=sf(r,S);let B={...k,label:N,disabled:T};const D=cf(r,S,w);B={...B,...D},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const C={};if(s.slots.icon&&(C.icon=s.slots.icon),s.slots.checkedIcon&&(C.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const M=s.slots.text(S);C.default=()=>[M]}else{const M=_t(r,S);C.default=()=>M}let V=t.h(a,B,C);p.push(V)}),p};return()=>{const p=u(),k={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),w={default:()=>S};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const N=he(r,de,ue);return t.h(l,N,w)}}else return()=>{const u=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":v},{default:()=>u})}}}}const{componentName:hf,create:gf,scope:yf}=X("radio-item"),el=gf(pf(hf,yf,be,Mo,qo)),vf=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,k=>{c.partialSelect=k});const d=t.computed(()=>!!i),f=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),m=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":f.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(k,S)=>{y="click",r("update:modelValue",k),r("change",k,S)};t.watch(()=>a.modelValue,k=>{y=="click"?y="":r("change",k)});const v=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const k=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:k,height:k,class:h.value})}}else if(f.value){if(s.checkedIcon)return s.checkedIcon();{const k=se(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:k,height:k,class:h.value})}}else{if(s.icon)return s.icon();{const k=se(a.iconSize),S=a.icon??o;return t.h(S,{width:k,height:k,class:h.value})}}},b=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${f.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=k=>{if(!(a.disabled||a.readonly)){if(f.value&&c.partialSelect){c.partialSelect=!1,g(f.value,s.default?.()[0].children);return}if(g(!f.value,s.default?.()[0].children),d.value){const S=i.value.value,w=i.max.value,{label:N}=a,T=S.indexOf(N);T>-1?S.splice(T,1):T<=-1&&(S.length<w||!w)&&S.push(N),i.updateValue(S)}}};return t.onMounted(()=>{d.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{d.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${m.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[v(),b()]])}}),{componentName:kf,create:bf}=X("checkbox"),zo=bf(vf(kf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Sf,componentName:nr}=X("checkbox-group"),Lo=Sf({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:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(f=>f!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const f=[];d&&n.children.forEach(m=>{m?.disabled||f.push(m?.label)}),l("update:modelValue",f)},c=()=>{const d=n.children.filter(f=>f?.disabled?!1:!e.modelValue.includes(f.label)).map(f=>f.label);l("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,d=>{l("change",d)}),Te({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${nr} ${nr}--${e.direction}`,style:d},o.default?.())}}});function lr(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Cn(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(eo(e,r)===l)return a}return-1}function Cn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function eo(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Cf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function wf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Nf=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Bf(){const e=t.getCurrentInstance();return new Nf(e.proxy)}function Vf(e){return{text:e,value:e}}const Af={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ar={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Tf(e,o,l,n,a){return{props:{...Af,...ar,...ue,...de,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ce(t.computed(()=>r.disabled)),c=Ce(t.computed(()=>r.readonly)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),m=Bf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await m.load("checkbox",u,p);if(k.length>0)if(typeof k[0]=="string"){const N=k.map(T=>Vf(T));h.value=N}else h.value=k}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{const k=[];Array.isArray(u)&&u.forEach(S=>{let w=lr(r,p,S,r.valueType);w!==-1&&k.push(w)}),!xe(k,y.value)&&(y.value=k)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return y.value.forEach(p=>{let k=h.value[p];u.push(eo(r,k))}),u}),v=u=>{let p=[],k=[];if(h.value.length>0){const S=[];Array.isArray(u)&&u.forEach(w=>{let N=lr(r,h.value,w,"value");N!==-1&&S.push(N);const T=h.value[N];k.push(T),r.valueType==="text"?p.push(Cn(r,T)):r.valueType==="item"?p.push(T):p.push(eo(r,T))}),y.value=S}else p=u;f("update:modelValue",p),f("change",p,k)},b=t.ref();if(Te({toggleAll:u=>{b.value.toggleAll(u)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const u=()=>{const p=[],k=he(r,ar);return h.value.forEach((S,w)=>{const N=eo(r,S),T=Cf(r,S);let B={...k,label:N,disabled:T};const D=wf(r,S,w);B={...B,...D},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const C={};if(s.slots.icon&&(C.icon=s.slots.icon),s.slots.checkedIcon&&(C.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(C.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const M=s.slots.text(S);C.default=()=>[M]}else{const M=Cn(r,S);C.default=()=>M}let V=t.h(a,B,C);p.push(V)}),p};return()=>{const p=u(),k={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),w={default:()=>S};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const N=he(r,de,ue);return t.h(l,N,w)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},{default:()=>u})}}}}const{componentName:$f,create:Ef,scope:Df}=X("checkbox-item"),tl=Ef(Tf($f,Df,be,Lo,zo)),wn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:xf,create:If}=X("switch"),qf=If({components:{Loading1:te.Loading1},props:{...wn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=xf;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),Mf={class:"fox-switch-button"};function zf(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Mf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Po=J(qf,[["render",zf]]);function Lf(e,o,l,n){return{props:{...ue,...de,...wn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,f=Ee(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,wn),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:Pf,create:Rf,scope:Ff}=X("switch-item"),ol=Rf(Lf(Pf,Ff,be,Po));function Of(e,o,l,n){return{props:{...ue,...de,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"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ae.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),f=Ae(t.computed(()=>a.readonly)),m=Ee(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&ie(m.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),b=t.computed(()=>!ie(a.modelValue)||r.slots.main?!0:!!ie(a.desc)),u=t.computed(()=>ie(m.value)?c.placeholder.value:m.value),p=t.computed(()=>!ie(a.desc)||r.slots.sub),k=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),w=()=>{s("focus",m.value)},N=()=>{s("blur",m.value)},T=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ge(a.unit)>0),D=M=>{d.value==!0||f.value==!0||s("click")},C=t.computed(()=>a.icon??l),V=t.computed(()=>({action:!0}));return()=>{const M=[];if(typeof r.slots.content=="function"){const z=r.slots.content();M.push(z)}else{const z=[];if(b.value){const F={tabIndex:0,class:y.value,style:v.value,onFocus:w,onBlur:N,onClick:D};let I=null;r.slots.main?I=t.h("view",F,[r.slots.main(u.value)]):I=t.h("view",F,[u.value]),z.push(I)}if(p.value){const F={tabIndex:0,class:k.value,style:S.value,onFocus:w,onBlur:N,onClick:D};let I=null;r.slots.sub?I=t.h("view",F,[r.slots.sub(a.desc)]):I=t.h("view",F,[a.desc]),z.push(I)}const j={class:h.value},q=t.h("view",j,z);M.push(q)}const L=[],$=se(a.iconSize);let E=r.slots.icon;if(!E){const z={width:$,height:$,class:["action-icon"]};E=t.h(C.value,z)}const x={class:V.value,onClick:D},A=t.h("view",x,{default:()=>[E]});if(L.push(A),B.value){const z=t.h("view",{},[a.unit]);L.push(z)}const H={class:T.value},R=t.h("view",H,{default:()=>L});M.push(R);const Y={default:()=>M};Y.label=r.slots.default,Y.prepend=r.slots.prepend,Y.append=r.slots.append,Y.fixedPreTip=r.slots.fixedPreTip,Y.fixedTip=r.slots.fixedTip;const U=he(a,de,ue);return t.h(n,U,Y)}}}}const{componentName:Kf,create:Uf,scope:Hf}=X("link-item"),nl=Uf(Of(Kf,Hf,te.ArrowRight,be)),Nn={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:jf,componentName:Wf}=X("rate"),Yf=jf({props:{...Nn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Wf]:!0})),r=y=>{o("update:modelValue",y),o("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let v=0;g===1&&e.modelValue===g||(v=g,e.allowHalf&&y==2&&(v-=.5)),r(v)},i=(y,g,v)=>{let b=0;for(let u=g.value.length-1;u>=0;u--){const p=g.value[u];if(y>p.offsetLeft){v?b=u+(y>p.offsetLeft+p.clientWidth/2?1:.5):b=u+1;break}}return b},c=Ke(),d={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&n.value&&(y.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},f=Math.random().toString(36).slice(-8),m=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...d,onClick:s,toPxDesc:fe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:f,slots:l,customIcon:m}}}),Xf=["id"],Qf={class:"fox-rate-item__icon--full"},Gf={key:0,class:"fox-rate-item__icon--half"},Zf={key:1,class:"fox-rate-item__icon--half"};function Jf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Qf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",Gf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",Zf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Xf))),128))],34)}const vt=J(Yf,[["render",Jf]]);function _f(e,o,l,n){return{props:{...ue,...de,...Nn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,f=Ee(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Nn),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};if(r.slots.default){const k=r.slots.default();b.label=()=>k}const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:em,create:tm,scope:om}=X("rate-item"),ll=tm(_f(em,om,be,vt)),Bn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0}};function nm(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(to(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(ys(e,r)===l)return a}return-1}function to(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function rr(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function ys(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function lm(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function am(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let rm=class{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let d=l;typeof i=="function"&&(d=d.filter(i));let f=(n-1)*a,m=f+a;m>d.length&&(m=d.length);const h=d.slice(f,m);return{totalSize:d.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[n,a,r,s]);const c=Ge(this.proxy,o);return c===null?(console.error(`${o} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,n,a,r]))}};function sm(){const e=t.getCurrentInstance();return new rm(e.proxy)}const{componentName:im,create:cm,scope:um}=X("infinite-loading"),dm=cm({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(um),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=ls(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[im]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,f=()=>{let v=0,b=0,u="down";if(s.value==window){const p=In();r.value&&(v=d(r.value)+r.value.offsetHeight-p-window.innerHeight),b=p}else{const{scrollHeight:p,clientHeight:k,scrollTop:S}=s.value;v=p-k-S,b=S}return i.beforeScrollTop>b?u="up":u="down",i.beforeScrollTop=b,o("scroll-change",b),v<=e.threshold&&u=="down"},m=()=>{je(()=>{if(!f()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",m,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",m,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,y()}),t.watch(()=>e.modelValue,v=>{v||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),fm={class:"fox-infinite__container"},mm={class:"fox-infinite__bottom"},pm={key:0,class:"fox-infinite__bottom-box"},hm={class:"fox-infinite__bottom-box__text"},gm={class:"fox-infinite__bottom-tips"};function ym(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",fm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",mm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",pm,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",hm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",gm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Ro=J(dm,[["render",ym]]),{componentName:vm,create:km}=X("button"),bm=km({components:{Loading:te.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:f}=t.toRefs(e),m=g=>{!i.value&&!s.value&&o("click",g)},h=t.computed(()=>{const g=vm;return{[g]:!0,[`${g}--${n.value}`]:n.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:f.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=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:m,classes:h,getStyle:y}}}),Sm={class:"fox-button__wrap"};function Cm(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Sm,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Ie=J(bm,[["render",Cm]]),{create:wm,scope:Nm}=X("searchbar"),Bm=wm({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Nm),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),o("update:modelValue",S,p),o("change",S,p)},c=t.ref({}),d=p=>{let S=p.target.value;a.active=!0,c.value=e.focusStyle,o("focus",S,p)},f=p=>{setTimeout(()=>{a.active=!1},0);let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),c.value={},o("blur",S,p)},m=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},y=p=>{o("click-input",p)},g=p=>{o("click-left-icon",e.modelValue,p)},v=p=>{o("click-right-icon",e.modelValue,p)},b=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:f,handleClear:m,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:v,styleSearchbar:b}}}),Vm={key:0,class:"fox-searchbar__search-label"},Am={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Tm=["type","maxlength","placeholder","value","disabled","readonly"],$m={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Em={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Dm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",Vm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Am,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,Tm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",$m,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Em,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Fo=J(Bm,[["render",Dm]]);function xm(e,o,l){return{props:{...Bn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),c=sm(),d=t.ref([]),f=t.ref(1),m=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const U={};return n.params&&Object.assign(U,n.params),ie(m.value)||(U[`${n.searchKey}`]=m.value),h.value&&Object.assign(U,h.value),U});let g=!0;const v=async(U,P,z)=>{try{let j=null;ie(m.value)||(j=F=>{const I=to(n,F);if(typeof I=="string"&&I.includes(m.value))return!0;const K=rr(n,F);return!!(typeof K=="string"&&K.includes(m.value))});const q=await c.load("actionsheet",U,P,z,y.value,g,j??void 0);g=!1,Array.isArray(q)?(d.value=q,L.value=!1,f.value=1):q.page.length===0?L.value=!1:(Reflect.apply([].push,d.value,q.page),d.value.length>=q.totalSize?L.value=!1:f.value=d.value.length/n.pageSize),M.value=!1}catch(j){console.error("[FoxUI] Load ActionSheet Data Fail",j),d.value=[]}setTimeout(()=>{a("loaded-data")},250)};t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([U,P,z])=>{n.source&&v(n.source,f.value,P)},{immediate:!0});const b=t.computed(()=>!n.multiple&&n.isAutoBackFill),u=t.ref([]);let p=null;const k=t.ref(n.visible);t.watch(()=>n.visible,U=>{k.value!==U&&(k.value=U),U?p=[...u.value]:p=null});const S=(U,P)=>{const z=[];return Array.isArray(U)||(U=[U]),U.forEach(j=>{let q=nm(n,P,j,n.valueType);q!==-1&&z.push(q)}),xe(z,u.value)?!1:(u.value=z,!0)};t.watch([()=>n.modelValue,()=>d.value],([U,P],[z,j])=>{S(U,P)&&w()},{deep:!0});const w=()=>{const U=[],P=[],z=[];for(let j of u.value){const q=d.value[j];P.push(q);const F=to(n,q);if(z.push(F),n.valueType==="item")U.push(q);else if(n.valueType==="text")U.push(F);else{const I=ys(n,q);U.push(I)}}n.multiple?(a("update:modelValue",U),a("update:text",z),a("change",U,P)):(a("update:modelValue",U[0]??null),a("update:text",z[0]??null),a("change",U[0],P[0]??null))},N=()=>{p&&(u.value=p)},T=U=>{const P=u.value.indexOf(U);n.multiple?P===-1?u.value.push(U):u.value.splice(P,1):P===-1?u.value=[U]:u.value=[],(b.value||!n.poppable&&!n.showFooter)&&(w(),B(!1))},B=U=>{k.value=U,a("update:visible",U)},D=()=>{N(),B(!1)},C=()=>{B(!1),w()},V=()=>{d.value=[],f.value=1,n.source&&v(n.source,f.value,n.pageSize)},M=t.ref(!1),L=t.ref(!0),$=async()=>{if(!n.source){M.value=!1;return}await v(n.source,f.value,n.pageSize)};t.watch(()=>m.value,(U,P)=>{ie(U)&&!ie(P)&&$()});const E=()=>{let U=i.title.value??"";r.title&&(U=r.title());const P=t.h("view",{class:["fox-actionsheet__header-title"]},[U]),z=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:D});return t.h("view",{class:["fox-actionsheet__header"]},[P,z])},x=()=>{let U=null;if(r.search)U=r.search();else{const P={onSearch:V,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:m.value,"onUpdate:modelValue":z=>{m.value=z}};U=t.h(Fo,P,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[U])},A=(U,P,z,j,q)=>{if(r.optionLabel)return r.optionLabel({text:U,checked:P,disabled:z,subText:j,item:q});const F=[],I=t.h("view",{class:"fox-actionsheet__list-item-text"},[U]);if(F.push(I),j){const K=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[j]);F.push(K)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},F)},H=(U,P,z,j)=>{if(r.optionIcon)return r.optionIcon({checked:U,disabled:P,iconSize:z,item:j});if(U){if(r.checkedIcon)return r.checkedIcon({disabled:P,item:j});{const q=n.checkedIcon??te.Checked;return t.h(q,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:P,item:j});{const q=n.icon??te.CheckNormal;return t.h(q,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}},R=()=>{const U=[];for(let P=0;P<d.value.length;P++){const z=d.value[P],j=to(n,z),q=rr(n,z),F=["fox-actionsheet__list-item"],I={};let K=lm(n,z),W=n.iconSize?se(n.iconSize):null;const Z=am(n,z,P);Z&&(K=K||Z.disabled,Z.class&&F.push(Z.class),Z.style&&Object.assign(I,Z.style)),K=!!(n.disabled||K);const O=u.value.includes(P);K&&F.push("is-disabled"),O&&F.push("is-checked");const G={class:F,style:I,key:`${P}`,onClick:()=>{K||T(P)}};let Q=[];if(r.option)Q.push(r.option({item:z,checked:O,disabled:K}));else{const _=A(j,O,K,q,z);Q.push(_);const oe=H(O,K,W,z);Q.push(oe)}const ee=t.h("view",G,Q);U.push(ee)}return U},Y=()=>{let U=[];if(r.buttons)U=r.buttons();else{const z=t.h(Ie,{type:"primary",block:"block",onClick:C,disabled:n.disabled},{default:()=>i.confirmText.value});U.push(z)}return t.h("view",{class:"fox-actionsheet__footer"},[U])};return Te({search:async(U=null,P=!0)=>{h.value=U&&t.toRaw(U),t.triggerRef(h),P&&(d.value=[],f.value=1),t.nextTick(()=>{$()})},clear:()=>{d.value=[],f.value=1}}),()=>{const U=[];if(n.showHeader){const W=E();U.push(W)}if(n.showSearchbar){const W=x();U.push(W)}let P=null;if(r.content)P=r.content();else{const W=R(),Z={hasMore:L.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:M.value,"onUpdate:modelValue":O=>{M.value=O},onLoadMore:$};P=t.h(Ro,Z,{default:()=>W})}const z={};n.optionsHeight&&(z.height=n.optionsHeight);const j={"fox-actionsheet__list":!0};n.poppable||(j["fox-actionsheet__list--inner"]=!0);const q=t.h("view",{class:j,style:z},[P]);if(U.push(q),n.showFooter&&!b.value){const W=Y();U.push(W)}const F=t.h("view",{class:"fox-actionsheet"},U);if(!n.poppable)return F;const I=["fox-actionsheet__popup"];n.popClass&&I.push(n.popClass);const K={popClass:I.join(" "),visible:k.value,closeable:!1,"onUpdate:visible":B,position:n.position,round:"round",onClickOverlay:D,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ce,K,{default:()=>F})}}}}const{componentName:Im,create:qm,scope:Mm}=X("actionsheet-pane"),Oo=qm(xm(Im,Mm)),zm={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 Lm(e,o,l,n,a,r,s){return{props:{...ue,...de,...zm,...Bn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue"),b=t.ref(""),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const q={};return S.value&&(q["text-align"]=S.value),q}),N=t.ref(!1),T=()=>{N.value=!0},B=q=>{N.value=q},D=q=>{v.value=q,m("update:modelValue",q)},C=(q,F)=>{m("change",q,F)},V=q=>{let I=q.target.value;g.value=!0,m("focus",I,q)},M=q=>{setTimeout(()=>{g.value=!1},0);let I=q.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),m("blur",I,q)},L=q=>{b.value=q,m("update:text",q)},$=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),A=t.computed(()=>({hidden:!x.value})),H=q=>{v.value="",m("update:modelValue","",q),m("change","",q),m("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!f.value),Y=t.computed(()=>ge(v.value)>0&&g.value),U=q=>{Y.value?H(q):T()},P=t.computed(()=>Y.value&&R.value?n:a),z=t.computed(()=>({action:!0})),j=t.ref(null);return Te({search:q=>{j.value&&j.value.search(q)}}),()=>{const q={class:k.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:T,onFocus:V,onBlur:M};s&&(q.disabled=!0);const F=[],I=t.h("input",q);F.push(I);const K=[],W={class:["action-icon"]},Z=t.h(P.value,W),O={class:z.value,onClick:U},G=t.h("view",O,{default:()=>[Z]});if(K.push(G),E.value){const Ze=t.h("view",{class:A.value},[i.unit]);K.push(Ze)}const Q={class:$.value},ee=t.h("view",Q,{default:()=>K});F.push(ee);const _={default:()=>F};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,Bn);oe.ref=j,oe.class=i.actionsheetProps,oe.disabled=d.value||f.value,oe.visible=N.value,oe["onUpdate:visible"]=B,oe.modelValue=v.value,oe["onUpdate:modelValue"]=D,oe.text=b.value,oe["onUpdate:text"]=L,oe.onChange=C,oe.poppable=!0;const le={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},$e=t.h(r,oe,le);_.hide=()=>[$e];const ve=he(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Pm,create:Rm,scope:Fm}=X("actionsheet-item"),al=Rm(Lm(Pm,Fm,be,te.CircleClose,te.ArrowRight,Oo)),Vn={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:Om,create:Km}=X("input-number"),Um=Km({components:{Minus:te.Minus,Plus:te.Plus},props:{...Vn},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=Om;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;o("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let v=n(y);o("update:modelValue",v,g),o("change",v,g)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(o("reduce",y),i()){let g=Number(e.modelValue)-Number(e.step);r(g,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else o("overlimit",y,"add")},f=y=>{e.disabled||e.readonly||o("focus",y)},m=y=>{if(e.disabled||e.readonly)return;let v=y.target.valueAsNumber;v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),r(v,y),o("blur",y)},h=y=>{let g=Number(y);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 y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:m,focus:f,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:fe}}}),Hm=["min","max","disabled","readonly","value"];function jm(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,Hm),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Qe=J(Um,[["render",jm]]);function Wm(e,o,l,n){return{props:{...ue,...de,...Vn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,f=Ee(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g={...he(a,Vn),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},v=t.h(n,g,h),b=[];b.push(v);const u={default:()=>b};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const p=he(a,de,ue);return p["content-class"]=d,t.h(l,p,u)}}}}const{componentName:Ym,create:Xm,scope:Qm}=X("inputnumber-item"),rl=Xm(Wm(Ym,Qm,be,Qe)),{create:Gm,componentName:Gt,scope:MB}=X("tabs-bar"),Zm=Gm({components:{MoreH:te.MoreH},props:{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"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{slots:o,emit:l}){const n=t.computed(()=>{const x={};return x[`${Gt}`]=!0,x}),a=t.computed(()=>{const x={};return x[`${Gt}__titles`]=!0,x[`${e.direction}`]=!0,e.align==="left"&&(x.left=!0),e.scroll===!0&&(x.scrollable=!0),e.shape&&(x[`${e.shape}`]=!0),x}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const x=se(e.gutter);return x<=0?0:x}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,x=>{i.value!==x&&(i.value=x,E(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),d=t.ref(),f=t.ref(!1),m=()=>{const x=!f.value;h(x)},h=x=>{const A=x;A?(f.value=A,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,d.value?d.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},y=t.ref(),g=t.ref([]),v=(x,A)=>{g.value[A]=x},b=x=>A=>{v(A,x)},u=(x,A)=>{const H=y.value,R=g.value;if(!H||!R||!R[x])return;const Y=R[x];let U=0;e.direction==="vertical"?U=Y.offsetTop-(H.offsetHeight-Y.offsetHeight)/2:U=Y.offsetLeft-(H.offsetWidth-Y.offsetWidth)/2,p(H,U,A?0:.3,e.direction)},p=(x,A,H,R)=>{let Y=0;const U=R==="horizontal"?x.scrollLeft:x.scrollTop,P=H===0?1:Math.round(H*1e3/16);function z(){R==="horizontal"?x.scrollLeft+=(A-U)/P:x.scrollTop+=(A-U)/P,++Y<P&&Le(z)}z()},k=x=>x[e.textKey],S=x=>x[e.valueKey],w=x=>x[e.visibleKey],N=x=>x[e.disabledKey],T=(x,A)=>{const H=e.itemOptions;return typeof H=="function"?H(x,A):H||null},B=(x,A)=>{const H=S(x),R={};R[`${Gt}__titles-item`]=!0,R.disabled=N(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0),e.ellipsis&&(R.ellipsis=!0);const Y=T(x,A);return Y&&(Y.class&&(R[`${Y.class}`]=!0),Y.disabled===!0&&(R.disabled=Y.disabled)),R},D=(x,A)=>{const H={};if(s.value>0){const Y=Math.abs(s.value/2);e.direction==="vertical"?(H["margin-top"]=`${Y}px`,H["margin-bottom"]=`${Y}px`):(H["margin-left"]=`${Y}px`,H["margin-right"]=`${Y}px`)}const R=T(x,A);return R&&R.style&&Object.assign(H,R.style),H},C=(x,A)=>`${S(x)??A}`,V=(x,A)=>{const H=S(x),R={};R[`${Gt}__popup-item`]=!0,R.disabled=N(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0);const Y=T(x,A);return Y&&Y.disabled===!0&&(R.disabled=Y.disabled),R},M=t.computed(()=>(e.data??[]).filter(A=>w(A)!==!1)),L=(x,A)=>{const H=S(x);i.value=H,e.scroll&&u(A,!1),l("update:modelValue",H),l("change",x,A)},$=(x,A)=>{L(x,A),h(!1)},E=x=>{if(!Array.isArray(e.data)||!e.scroll)return;const A=e.data.findIndex(H=>S(H)===i.value);A!==-1&&u(A,x)};return t.watch(()=>e.data,()=>{setTimeout(E,0)}),t.onMounted(()=>{E(!0)}),{classes:n,titlesClasses:a,titlesStyles:r,itemClasses:B,itemStyles:D,itemKey:C,popupItemClasses:V,filterTabItems:M,getItemText:k,getItemValue:S,onTabChange:L,titlesRef:y,createItemRefs:b,togglePopupVisible:m,onQuickNavigate:$,popupClasses:c,popupVisible:f,popupRef:d}}}),Jm={class:"fox-tabs-bar"},_m=["onClick"],ep={class:"fox-tabs-bar__titles-item-text"},tp=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),op=["onClick"];function np(e,o,l,n,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",Jm,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:d=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",ep,t.toDisplayString(e.getItemText(i)),1),tp])],14,_m))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:o[0]||(o[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:d=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,op))),128))],2),[[t.vShow,e.popupVisible]])])}const sl=J(Zm,[["render",np]]),vs=Symbol("TabsStatesKey"),{create:lp}=X("tabs-container"),ap=lp({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.shallowRef([]),n={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:f=>{const m={name:f};n.current.value===f&&(m.loaded=!0),l.value.push(m),t.triggerRef(l)},remove:f=>{const m=l.value.findIndex(h=>h.name===f);m!==-1&&l.value.splice(m,1)},isLoaded:f=>{const m=l.value.findIndex(h=>h.name===f);return m!==-1?n.current.value?l.value[m].loaded??!1:m===0:!1}};t.provide(vs,n);const a=f=>{const m=l.value.findIndex(h=>h.name===f);m!==-1&&(l.value[m].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([f,m])=>{n.current.value!==f&&(n.current.value=f??"",a(f??"")),n.direction.value!==m&&(n.direction.value=m)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const f={},m=l.value.length;if(m<=0)return f;const h=l.value.findIndex(y=>y.name===n.current.value);return n.direction.value==="vertical"?n.tabHeight.value>0&&(f.height=`${m*n.tabHeight.value}px`,h!==-1&&(f.transform=`translate(0, -${h*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(f.width=`${m*n.tabWidth.value}px`,h!==-1&&(f.transform=`translate(-${h*n.tabWidth.value}px, 0)`)),f});let d=null;return t.onMounted(()=>{if(!r.value)return;const f=()=>{const m=wo(r.value);n.tabWidth.value=m.width,n.tabHeight.value=m.height};window.ResizeObserver&&(d=new window.ResizeObserver(f),d.observe(r.value)),f()}),t.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function rp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const il=J(ap,[["render",rp]]),{create:sp}=X("tabs-pane"),ip=sp({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:o}){const l=t.inject(vs);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?pe(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),cp={class:"fox-tabs-pane__empty"},up=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function dp(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",cp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),up])])],4)}const cl=J(ip,[["render",dp]]),fp={direction:{type:[String],default:"horizontal"},mode:{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"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function mp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function sr(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function ir(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function pp(e,o){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?o[e.visibleKey]:o.visible??null}function Jo(e,o){return typeof e.statusKey=="string"&&e.statusKey.length>0?o[e.statusKey]:o.statusKey??null}function _o(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let hp=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(a,null,[l,n]))}};function gp(){const e=t.getCurrentInstance();return new hp(e.proxy)}function yp(e,o,l,n){return{props:{...fp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=gp(),d=t.ref([]),f=t.computed(()=>d.value.filter(P=>pp(a,P)!==!1)),m=t.ref(-1),h=()=>{const P=a.modelValue,z=f.value.findIndex(j=>sr(a,j)===P);m.value!==z&&(m.value=z,a.scroll&&Y(z,!1))};t.watch([()=>a.modelValue,f],()=>{h()});const y=P=>m.value===P,g=P=>{if(P<0&&P>=f.value.length)return!1;const z=f.value[P],q=(_o(a,z,P)??{}).status??Jo(a,z);return y(P)||q},v=t.computed(()=>{const P={[i]:!0};return a.mode?P[`is-${a.mode}`]=!0:a.direction&&(P[`is-${a.direction}`]=!0),a.scroll&&(P["is-scroll"]=!0),P}),b=t.computed(()=>({})),u=(P,z,j,q)=>{const F={[`${i}__step`]:!0};return q&&(F[`${q}`]=!0),P===m.value?F["is-active"]=!0:z==="done"?F["is-done"]=!0:z==="error"?F["is-error"]=!0:z==="half"?F["is-half"]=!0:j?F["is-disabled"]=!0:F["is-normal"]=!0,F},p=(P,z={})=>{const j={...z};return P===f.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},k=(P,z)=>{let j={};if(z<f.value.length-1){const q=z+1;g(z)&&g(q)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},S=P=>f.value.length-1===P,w=(P,z)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&z>m.value||m.value===z)return;const j=m.value,q=z;m.value=z,a.scroll&&Y(z,!1);const F=sr(a,P);s("update:modelValue",F);const I={fromIndex:j,currentIndex:q,item:P,items:f.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",F,I)},N=t.ref(!0),T=async(P,z)=>{try{const j=await c.load("stesbar",P,z);Array.isArray(j)&&(d.value=j),N.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([P,z])=>{P&&T(P,z)},{immediate:!0});const B=(P,z,j,q)=>{let F=null;if(r.icon)F=r.icon({item:P,index:z,status:j});else if(j==="done"){const K={};a.iconSize&&(K.width=a.iconSize,K.height=a.iconSize);const W=a.icon??l;F=t.h(W,K)}else F=t.h("span",{},[`${z+1}`]);const I={class:"fox-steps-bar__icon",onClick:()=>{q||w(P,z)}};return t.h("view",I,[F])},D=(P,z,j)=>{const q=t.h("i",{class:"fox-steps-bar__line-inner",style:k(P,z)});return t.h("view",{class:"fox-steps-bar__line"},[q])},C=()=>{let P=null;if(r.markIcon)P=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const q=a.markIcon??n;P=t.h(q,j)}return t.h("view",{class:"fox-steps-bar__mark"},[P])},V=(P,z,j,q)=>{const F=[];if(!S(z)){const W=D(P,z);F.push(W)}const I=B(P,z,j,q);F.push(I);const K={class:"fox-steps-bar__head"};return t.h("view",K,F)},M=(P,z,j,q)=>{let F=null;r.main?F=r.main({item:P,index:z,status:j}):F=mp(a,P);const I={class:"fox-steps-bar__main",onClick:()=>{q||w(P,z)}};return t.h("view",I,[F])},L=(P,z,j)=>{let q=null;if(r.sub){q=r.sub({item:P,index:z,status:j});const F={class:"fox-steps-bar__sub"};return t.h("view",F,[q])}return null},$=(P,z)=>{const j=_o(a,P,z)??{},q=j.status??Jo(a,P);let F=ir(a,P);j.disabled===!0&&(F=!0),a.disabled===!0&&(F=!0);const I=[],K=B(P,z,q,F);K&&I.push(K);const W=M(P,z,q,F);W&&I.push(W);const Z=D(P,z);Z&&I.push(Z);const O=t.h("view",{class:"fox-steps-bar__head"},I),G=j.class,Q=j.style??{},ee={ref:R(z),class:u(z,q,F,G),style:p(z,Q)};return t.h("view",ee,[O])},E=(P,z)=>{const j=_o(a,P,z)??{},q=j.status??Jo(a,P);let F=ir(a,P);j.disabled===!0&&(F=!0),a.disabled===!0&&(F=!0);const I=[],K=a.layout;for(let G of K)if(G==="head"){const Q=V(P,z,q,F);I.push(Q)}else if(G==="main"){const Q=M(P,z,q,F);I.push(Q)}else if(G==="sub"){const Q=L(P,z,q);I.push(Q)}else if(G==="mark"){const Q=C();I.push(Q)}const W=j.class,Z=j.style??{},O={ref:R(z),class:u(z,q,F,W),style:p(z,Z)};return t.h("view",O,I)},x=t.ref(),A=t.ref([]),H=(P,z)=>{A.value[z]=P},R=P=>z=>{H(z,P)},Y=(P,z)=>{const j=x.value,q=A.value;if(!j||!q||!q[P])return;const F=q[P];let I=0;a.direction==="vertical"?I=F.offsetTop-(j.offsetHeight-F.offsetHeight)/2:I=F.offsetLeft-(j.offsetWidth-F.offsetWidth)/2,U(j,I,z?0:.3,a.direction)},U=(P,z,j,q)=>{let F=0;const I=q==="horizontal"?P.scrollLeft:P.scrollTop,K=j===0?1:Math.round(j*1e3/16);function W(){q==="horizontal"?P.scrollLeft+=(z-I)/K:P.scrollTop+=(z-I)/K,++F<K&&Le(W)}W()};return()=>{const P=[];if(a.mode==="simple")for(let j=0;j<f.value.length;j++){const q=f.value[j],F=$(q,j);P.push(F)}else for(let j=0;j<f.value.length;j++){const q=f.value[j],F=E(q,j);P.push(F)}const z={ref:x,class:v.value,style:b.value};return t.h("view",z,P)}}}}const{componentName:vp,create:kp,scope:bp}=X("steps-bar"),ul=kp(yp(vp,bp,te.Checklist,te.ArrowRight)),cr=10;function Sp(e,o){return e>o&&e>cr?"horizontal":o>e&&o>cr?"vertical":""}function Cp(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},o=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Sp(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:o,isHorizontal:l,state:e}}function wp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Np(e){e.stopPropagation()}function Bp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Np(e)}class Vp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(o,l){this.startMove=o,this.updateMove=l,this.isTouch=wp()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=Cp(),n=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),Bp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ap(e,o){return new Vp(e,o)}const Tp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},$p=(e,o,l,n=!1)=>({props:{...Tp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),d=t.computed(()=>{const p={};return ie(i.top)||(p.top=i.top),ie(i.right)||(p.right=i.right),ie(i.bottom)||(p.bottom=i.bottom),ie(i.left)||(p.left=i.left),ie(a.width)||(p.width=a.width),ie(a.height)||(p.height=a.height),ie(a.color)||(p.color=a.color),ie(a.background)||(p.background=a.background),p}),f=t.computed(()=>({[`${e}__icon`]:!0})),m=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},u=Ap(p=>{if(!h.value)return;const k=h.value;y(),i.left=k.offsetLeft,i.top=k.offsetTop,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`,k.style.right=null,k.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const k=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];u.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&u.close()}),()=>{let p=[];const k=typeof r.default=="function"?r.default():[];if(k&&k.length>0)p=k;else{const w=t.h(l,{class:f.value});p.push(w)}const S={ref:w=>{h.value=w},class:c.value,style:d.value,onClick:m};return t.h("view",S,p)}}}),{componentName:Ep,create:Dp,scope:xp}=X("floating-button"),dl=Dp($p(Ep,xp,te.Uploader,!1)),Ip={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},qp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Mp(e,o,l){return{props:{...Ip},setup(n,{attrs:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["confirmText","cancelText"]),c=e,d=t.ref(!0),f=S=>{d.value=S},m=S=>{if(typeof n.unmount=="function")try{n.unmount()}catch(w){console.error(w)}if(typeof n.callback=="function")try{n.callback(S)}catch(w){console.error(w)}},h=()=>{m("confirm")},y=()=>{m("cancel")},g=()=>{m("close")},v=(S,w)=>qp(S)?(w.src=S,t.h("img",w)):typeof S=="string"?(Array.isArray(w.class)?w.class.push(S):w.class&&typeof w.class=="object"?w[`${S}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${S}`:w.class=S,t.h(n.tag,w)):t.h(S,w),b=()=>{const S=[];if(n.icon){const N={class:[`${c}__header-icon`]},T=v(n.icon,N);S.push(T)}if(n.title){const N=t.h("view",{class:`${c}__header-title`},[n.title]);S.push(N)}if(n.showClose&&n.closeIcon){const N={class:[`${c}__header-close-icon`],onClick:g},T=v(n.closeIcon,N);S.push(T)}const w={class:[`${c}__header`]};return t.h("view",w,S)},u=(S,w)=>{const N=[];if(w){const B={class:`${c}__group-title`},D=t.h("view",B,[w]);N.push(D)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let D of S){const C={class:`${c}__group-row`,innerHTML:D},V=t.h("view",C);B.push(V)}if(B.length>0){const D={class:`${c}__group-rows`},C=t.h("view",D,B);N.push(C)}}if(N.length===0)return null;const T={class:`${c}__group`};return t.h("view",T,N)},p=()=>{const S=[];if(typeof n.message=="string"){const w=u(n.message);S.push(w)}else if(Array.isArray(n.message))for(let w of n.message)if(typeof w=="string"){const N=u(w);S.push(N)}else{const N=u(w.content,w.title);S.push(N)}else if(typeof n.message=="function"){const w=n.message();S.push(w)}else{const w=n.message;S.push(w)}return S},k=()=>{const S=[];if(n.showCancelButton){const N={class:[`${c}__footer-button`],style:{},onClick:y};n.cancelButtonClass&&N.class.push(n.cancelButtonClass),n.cancleButtonStyle&&typeof n.cancleButtonStyle=="object"&&Object.assign(N.style,n.cancleButtonStyle);const T=t.h("button",N,[n.cancelButtonText??i.cancelText.value]);S.push(T)}if(n.showConfirmButton){const N={class:[`${c}__footer-button`],style:{},onClick:h};n.confirmButtonClass&&N.class.push(n.confirmButtonClass),n.confirmButtonStyle&&typeof n.confirmButtonStyle=="object"&&Object.assign(N.style,n.confirmButtonStyle);const T=t.h("button",N,[n.confirmButtonText??i.confirmText.value]);S.push(T)}if(S.length===0)return null;const w={class:`${c}__footer`};return t.h("view",w,S)};return()=>{const S=[],w=b();w&&S.push(w);const N=p();N&&S.push(N);const T=k();T&&S.push(T);const B={class:{[`${c}`]:!0,[`${c}--${n.type||"info"}`]:!0}},D=t.h("view",B,S),C=[`${c}__popup`];n.popClass&&C.push(n.popClass);const V={};n.width&&(V.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height&&(V.height=typeof n.height=="number"?`${n.height}px`:n.height);const M={popClass:C.join(" "),style:V,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":f,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,M,{default:()=>D})}}}}const{componentName:zp,create:Lp,scope:Pp}=X("messagebox"),Rp=Lp(Mp(zp,Pp,ce)),Fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Kp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Hp=new Un,jp={showCancelButton:!0,cancelButtonText:"取消",showConfirmButton:!0,confirmButtonText:"确认"},Wp=e=>{let o=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):l&&(o=e.teleport));const n=document.createElement("view"),a=`messagebox-${Hp.get()}`;n.id=a,e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Rp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...jp};o&&!Array.isArray(o)&&typeof o=="object"?Object.assign(a,o):(o&&(a.message=o),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),n&&typeof n=="object"?Object.assign(a,n):typeof n=="string"&&(a.type=n)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Kp:r==="warning"?a.icon=Up:r==="error"?a.icon=Fp:a.icon=Op),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=d=>{if(typeof c=="function")try{c(d)}catch(f){console.error(f)}s({action:d})},Wp(a)})},alert:(e,o,l)=>tt.show("alert",e,o,l),confirm:(e,o,l)=>tt.show("confirm",e,o,l),install(e){e.config.globalProperties.$alert=tt.alert,e.config.globalProperties.$confirm=tt.confirm}};function Yp(e,o){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){o(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),o(a)},500)}const Xp={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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 Qp(e,o,l=!1){return{props:{...Xp},emits:["click"],setup(n,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const y={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(y[`${e}--${n.type??"default"}`]=!0),n.size&&(y[`${e}--${n.size}`]=!0),y}),c=t.computed(()=>{const y={},g=n.textColor??n.color;return g&&(y.color=g),y}),d=y=>{if(y&&pe(n.showOverflowTooltip)){const g=y.clientWidth;Yp(y,v=>{r.value=v<=g})}};let f=null;t.onMounted(()=>{if(!pe(n.showOverflowTooltip))return;const y=s.value;d(y),y&&window.ResizeObserver&&(f=new window.ResizeObserver(()=>{d(y)}),f.observe(y))}),t.onUnmounted(()=>{f?.disconnect()});const m=(y,g)=>{let v=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const b=n.highlightFilter;if(y.indexOf(b)!==-1){const p=y.replace(new RegExp(b,"g"),`<span>${b}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,v=t.h(n.tag,g)}}else if(typeof n.highlightFilter=="function"){const b=n.highlightFilter(y);b&&(g.innerHTML=b,g.class["is-highlight"]=!0,v=t.h(n.tag,g))}return v},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(pe(n.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=me(n.digits),w=me(n.decimalLength),N=pe(n.autoPadding);let T=`${p[0].children}`,B=T.split("").reverse().join("");B=mo(B,w,N,S,n.separator),T=B.split("").reverse().join(""),n.highlightFilter!==void 0&&(g=m(T,y)),g||(y.innerHTML=T,g=t.h(n.tag,y))}}}else{if(n.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=`${p[0].children}`;g=m(S,y),g||(y.innerHTML=S,g=t.h(n.tag,y))}}}g||(g=t.h(n.tag,y,{default:a.slots.default}))}if(!n.mark&&!n.icon&&!a.slots.mark)return g;let b=null;if(n.icon){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const w={class:p,style:k};b=t.h("view",w,t.h(n.icon))}else if(a.slots.mark){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const w={class:p,style:k};b=t.h("view",w,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};n.type&&(p[`${e}__mark--${n.type??"default"}`]=!0);const k={},S=n.color;S&&(k["background-color"]=S);const w={class:p,style:k};b=t.h("view",w)}const u={class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}};return t.h("view",u,[b,g])}}}}const{componentName:Gp,create:Zp,scope:Jp}=X("text"),fl=Zp(Qp(Gp,Jp,!1));function _p(e,o,l,n,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=o[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=o;for(let d=0;c&&d<r.length;d++){let f=r[d],m=c.find(h=>h[n]===f);if(!m)break;s.push(m[l])}return s}if(Array.isArray(i))for(let c=0;c<o.length&&c<r.length;c++){let d=o[c],f=r[c];const m=d.find(h=>h[n]===f);if(!m)break;s.push(m[l])}else{let c=o;for(let d=0;c&&d<r.length;d++){let f=r[d],m=c.find(h=>h[n]===f);if(!m)break;s.push(m[l]),c=m[a]}}return s}class eh{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function th(){const e=t.getCurrentInstance();return new eh(e.proxy)}const oh={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 nh(e,o,l=!1){return{props:{...oh},setup(n,{attrs:a,slots:r}){const s=th(),i=t.ref([]);t.watch([()=>n.source,()=>n.params],async([f,m])=>{i.value=await s.load(n.sourceType,f,m)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=_p(n.modelValue,i.value,n.textKey,n.valueKey,n.childrenKey);return f.length==0?n.emptyText??"":f.length===1?n.optionType=="item"?`${n.modelValue}${n.separator}${f[0]}`:f[0]:f.join(n.separator)}),d=n.resolveTag?t.resolveComponent(n.tag):n.tag;return()=>{const f={...a};return r.default?r.default({text:c.value,value:n.modelValue}):n.resolveTag?n.emptyText!==void 0&&n.emptyText===c.value?t.h(n.emptyTag??"span",{...a,class:n.emptyClass},c.value):t.h(d,f,{default:()=>c.value}):t.h(d,f,c.value)}}}}const{componentName:lh,create:ah,scope:rh}=X("mapping"),ml=ah(nh(lh,rh,!1));function sh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Pr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:LB,create:ih,scope:PB}=X("domain-provider"),pl=ih(sh()),ch={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 uh(e,o){return{inheritAttrs:!1,props:ch,setup(l,{slots:n}){if(st&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(f===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&f.unobserve(h),a.set(h,{visible:null,callback:y}),f.observe(h)},i=h=>{if(f===null){r.delete(h);return}a.has(h)&&(a.delete(h),f.unobserve(h))};let c=l.initialVisibleObserverSize;Ai({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const m=(h,y,g)=>{f=new IntersectionObserver(v=>{for(let b of v){let u=!1;b.intersectionRatio>0&&(u=!0);const p=a.get(b.target);if(p)try{if(l.loadPolicy==="lazy"&&!u&&p.visible!==null)return;p.visible=u,p.callback(u)}catch(k){console.error(k)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((v,b)=>{a.set(b,v),f?.observe(b)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||f)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&m(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:RB,create:dh,scope:FB}=X("rolling-provider"),hl=dh(uh()),{componentName:fh,create:mh}=X("cell"),ph=mh({components:{Right:te.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=fh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),hh={key:0,class:"fox-cell__icon"},gh={key:1,class:"fox-cell__title"},yh={class:"title"},vh={class:"fox-cell__title-desc"};function kh(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",hh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",gh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",yh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",vh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const gl=J(ph,[["render",kh]]),{componentName:bh,create:Sh}=X("cell-group"),Ch=Sh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[bh]:!0}))}}}),wh={key:1,class:"fox-cell-group__title"},Nh={key:3,class:"fox-cell-group__desc"},Bh={class:"fox-cell-group__wrap"};function Vh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",wh,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",Nh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Bh,[t.renderSlot(e.$slots,"default")])],2)}const yl=J(Ch,[["render",Vh]]),{componentName:Ah,create:Th}=X("image"),$h=Th({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:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Ah;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(v=>{v.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=fe(e.width)),e.height&&(y.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=fe(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const f=()=>{l.loading=!1,o("load")},m=()=>{l.isError=!0,l.loading=!1,o("error")},h=y=>{o("click",y)};return{...t.toRefs(l),imageClick:h,classes:n,styles:d,stylebox:c,error:m,load:f,show:r,imgRef:s}}}),Eh=["src","date-src","alt"],Dh={key:0,class:"fox-img-loading"},xh={key:1,class:"fox-img-error"};function Ih(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Eh),e.loading?(t.openBlock(),t.createElementBlock("div",Dh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",xh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const vl=J($h,[["render",Ih]]),{create:qh}=X("layout"),kl=qh({}),{componentName:Mh,create:zh}=X("col"),Lh=zh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=Mh,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function Ph(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const bl=J(Lh,[["render",Ph]]),{componentName:Rh,create:Fh}=X("row"),Oh=Fh({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=Rh;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
5
|
+
*/function lo(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=Se(e),o=Se(o),[e,o]=Dn(Se(e),Se(o)),l==1&&(n==1?e=jo(e):o=jo(o));let a=yr(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(jo(a)):Se(a)}function jo(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return yr(o,r)}function Se(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function Dn(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function yr(e,o){[e,o]=Dn(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var ye=(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))(ye||{});function It(e,o=0,l=ye.HALF_EVEN){if(l===ye.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=It(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,$a(a[1],r,n,l)?(n?"-":"")+Wo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&$a(i,s,n,l)&&(s=Wo(s),s.length>o)?(n?"-":"")+Wo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function $a(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!l&&n===ye.FLOOR||l&&n===ye.CEILING)return!1;if(n===ye.UP||l&&n===ye.FLOOR||!l&&n===ye.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Wo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function nn(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=wt(e),o=wt(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=wt(e.replace(".","")),o=wt(o.replace(".","")),e.length<o.length){let f=e;e=o,o=f}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let y=o.length-1;y>=d&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(o[y]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=wt(Ts(m,r)),l==1&&(m="-"+m),m}function Ts(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function wt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function ln(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=Se(o.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Se(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Se(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let m=e.length-d+a;e=Se(e.substring(0,m)+"."+e.substring(m))}else a==d&&(e=Se(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(c)>=parseInt(o);)c=lo(c,"-"+o),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+Se(It(i,l-2))}function an(e,o){return e=e.toString(),o=o.toString(),o=rn(o),lo(e,o)}function rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ta(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),Ea(e),Ea(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=an(e,nn(o,It(ln(e,o),0,ye.FLOOR)));return l+n}function Ea(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Da(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=Dn(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=ye;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=Se(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+Se(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=re.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=re.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return re.getPrettyValue(this.value,o,l)}static round(o,l=0,n=ye.HALF_EVEN){if(o=re.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return It(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(It(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),lo(o,l)}add(o){return new re(lo(this.value,o.getValue()))}static subtract(o,l){return o=re.validate(o),l=re.validate(l),an(o,l)}subtract(o){return new re(an(this.value,o.getValue()))}static multiply(o,l){return o=re.validate(o),l=re.validate(l),nn(o,l)}multiply(o){return new re(nn(this.value,o.getValue()))}static divide(o,l,n){return o=re.validate(o),l=re.validate(l),ln(o,l,n)}divide(o,l){return new re(ln(this.value,o.getValue(),l))}static modulus(o,l){return o=re.validate(o),l=re.validate(l),Ta(o,l)}modulus(o){return new re(Ta(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),Da(o,l)}compareTo(o){return Da(this.value,o.getValue())}static negate(o){return o=re.validate(o),rn(o)}negate(){return new re(rn(this.value))}}function vr(e,o){return re.multiply(`${e}`,`${o}`)}function xn(e,o,l=8){return re.divide(`${e}`,`${o}`,l)}function sn(e,o){return e=`${e}`,o=`${o}`,re.compareTo(e,o)}function kr(e){return re.negate(e)}function po(e,o=-1,l=!1,n=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let m;if(n>0){let f="",h=i.split("").reverse();for(let y=0;y<h.length;y++)f+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function br(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const st=typeof window<"u",Pe=We;function Sr(e){return e==null}const ho=Array.isArray,Es=e=>go(e)==="[object Map]",Ds=e=>go(e)==="[object Set]",Oe=e=>e instanceof Date,ao=e=>typeof e=="function",Cr=e=>typeof e=="string",xs=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",qt=e=>Be(e)&&ao(e.then)&&ao(e.catch),wr=Object.prototype.toString,go=e=>wr.call(e),cn=e=>go(e)==="[object Object]",Nr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Is(e){return e.__esModule||Nr&&e[Symbol.toStringTag]==="Module"}const qs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},o[s]=nt(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function un(e,o,l=!1){if(!l)nt(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!cn(s))continue;r=un(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!cn(s))continue;r=un(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Yo=qs?Promise.resolve():null;function Ms(e,...o){Yo!==null?o&&o.length>0?Yo.then(()=>{e(o)}):Yo.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const zs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):zs[l]||"object"}function yo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function Br(e){return e&&typeof e=="object"&&"setInterval"in e}function Vr(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||Br(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Ar(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function Ls(e,o=[]){let l=o;return e!=null&&(Vr(Object(e))?Ar(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=lt(e),n=lt(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],d=o[i];if(!xe(c,d))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!xe(r,s))return!1}return!0}return!1}function $r(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Tr(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Er(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function Dr(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function xa(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function dn(e,o=!0,l=!0){o?e=xa(e,".",/\./g):e=e.replace(/\./g,""),l?e=xa(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ps(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Fs(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(xe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function me(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function In(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const xr=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function fn(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Je=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Fe=(e,o,l)=>Math.min(Math.max(e,o),l),qn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ke=Symbol.for("BroadcastKey");class Mn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):$r(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function vo(e,o,l,n){const a=new Mn(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function Rs(e,o,l){const n=l;if(n[ke])return n[ke];const a=t.inject(ke,null),r=new Mn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),n[ke]=void 0}),r}function Tt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const et=e=>e.default??e;class Os{error(o,l){const n=l,a=Tt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Tt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Tt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=Tt(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let Ir=new Os;function Ks(e){Ir=e}function Us(e,o){et(_e).setValidator(e,o)}function Hs(e){et(_e).deleteValidator(e)}let qr=["blur","clear"];function js(e){qr=e}function Mr(){return qr}let zr=["focus","change"];function Ws(e){zr=e}function Lr(){return zr}function Ys(e){et(_e).messages(e)}function Nt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Qt(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const Re=Symbol("ValidateSchemaKey");class Pr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=Qt(Nt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Qt(n);const a=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=Ir;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?et(_e).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?et(_e).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return et(_e).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=Nt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Qt(o):this.rules=Qt([o]);const n=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=et(_e),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function ko(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new Pr(o,l,e)}const Ia=Symbol("EventEmitterKey");class Xs{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function ht(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function ro(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Qs(e,o){const l=ht((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function Gs(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}function zn(e,o,l,n=0,a=!0){let r=o,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=n,setTimeout(i,r))};setTimeout(i,r)}const De=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class bo{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const Zs=new bo;function mt(){return Zs}function Ke(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const Xo=Symbol("OriginalDateKey");function Ln(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(De,null);s===null&&(s=mt());const i=e||o.prop||o.name,c=new bo(i);c.parent=s;const d=v=>{r[Xo]||h(v),c.set("modelValue",v)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Xo]??null,h=v=>{const b={};nt(!0,b,t.toRaw(v)),r[Xo]=b};t.isReactive(o)||typeof o=="function"?t.watch(o,v=>{c.merge(v,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[De]=c,t.provide(De,c);let y=null,g=null;if(a!==null){const v=t.inject(ke,null);y=vo(r,v,i,n),c.broadcast=y,r[ke]=y,t.provide(ke,y),r.broadcast=(u,p,...k)=>Reflect.apply(y.emit,y,[u,p,...k]);const b=t.inject(Re,null);g=ko(r,b,{componentName:""}),c.validateSchema=g,r[Re]=g,t.provide(Re,g),r[ut]=new Map,r.validate=(u=!0)=>{const p=[];let k=null;const S={deep:!1};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const N=u;k={name:C=>C?N.indexOf(C)!==-1:!1}}else if(u!=null&&typeof u=="object"){const N=u;if(S.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const C=N.include;k={name:B=>B?C.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;k={name:B=>B?C.indexOf(B)===-1:!1}}else k={name:"*"}}if(k){const N=y?.emitToChildren(k,"validate",S);N&&Reflect.apply([].push,p,N)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(N=>{let C=[];return N.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(C=[...C,...B.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0,k=!1)=>{if(k===!0){Reflect.ownKeys(u).forEach(N=>{let C=String(N);const V=Or(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},y,g);r[ut].set(C,V);const D=u[C];D&&V.validateSchema.setRule(D)});return}if(p){const S=Reflect.ownKeys(u),N={name:C=>S.includes(C)};y?.emitToChildren(N,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const k=u;p={name:S=>S?k.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const k=u;if(Array.isArray(k.include)&&k.include.length>0){const S=k.include;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const S=k.exclude;p={name:N=>N?S.indexOf(N)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=m();if(!p)return;const k={};if(nt(!0,k,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=k[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(N=>{p[N]=k[N]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(k).forEach(N=>{S.includes(N)||(p[N]=k[N])})}else Object.assign(p,k);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[De]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),y!==null&&(y.destroy(),r[ke]=void 0),g!==null&&(g.destroy(),r[Re]=void 0)}),c}function Fr(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(De,null);r===null&&(r=mt());const s=e||o.prop||o.name,i=new bo(s);return i.parent=r,t.isReactive(o)||typeof o=="function"?t.watch(o,c=>{i.merge(c,l)},{immediate:!0}):i.merge(o,l),a[De]=i,t.provide(De,i),t.onUnmounted(()=>{i.destroy(),a[De]=void 0}),i}function Rr(e,o,l){const a=Ke(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),o.setRule(r))}function we(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ke,null),i=vo(a,s,r,l);a[ke]=i,t.provide(ke,i),a.broadcast=(g,v,...b)=>Reflect.apply(i.emit,i,[g,v,...b]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=ko(a,c,e);a[Re]=d,t.provide(Re,d),Rr(a,d,r),a.validate=(g=null)=>{const v=[];let b=!1,u=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)u=!0,b=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&yo(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),b=p.deep??!1}else typeof g=="boolean"&&(b=g),u=!0;if(u){const p=d?.validate();v.push(p)}if(b){let p=null;const k={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(k.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const N=S.include;p={name:C=>C?N.indexOf(C)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const N=S.exclude;p={name:C=>C?N.indexOf(C)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",k);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).then(p=>{let k=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(k=[...k,...S.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>d?.setRule(g),a.setNameValidateRules=(g,v=!1)=>{const b=g[r];if(b&&d?.setRule(b),v){const u={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(u,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&d?.clear();let v=null;if(g===!0)v={name:"*"};else if(Array.isArray(g)&&g.length>0){const b=g;v={name:u=>u?b.indexOf(u)!==-1:!1}}else if(g!=null&&typeof g=="object"){const b=g;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;v={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;v={name:p=>p?u.indexOf(p)===-1:!1}}else v={name:"*"}}v&&i.emitToChildren(v,"clearValidate",!1)};const m=new Xs(a);a[Ia]=m;const f=ht((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Mr()).forEach(g=>{m.on(g,v=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Lr()).forEach(g=>{m.on(g,v=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ke]=void 0,d.destroy(),a[Re]=void 0,m.destroy(),a[Ia]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(g,...v)=>{Reflect.apply(m.emit,m,[g,...v])},onEvent:(g,v)=>{Reflect.apply(m.on,m,[v])},offEvent:(g,v)=>{Reflect.apply(m.off,m,[v])}}}function Or(e,o,l,n,a){const r={},s=o??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};l.fieldName=s,l.validateHandler={getValue(m){return i.getValue()}};const c=ko({},a,l);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const f=[];let h=!1,y=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)y=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),y=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),y=!0;if(y){const g=c?.validate();f.push(g)}if(h){let g=null;const v={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const b=m;g={name:u=>u?b.indexOf(u)!==-1:!1}}else if(m!=null&&typeof m=="object"){const b=m;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;g={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;g={name:p=>p?u.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const b=d.emitToChildren(g,"validate",v);Reflect.apply([].push,f,b)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let v=[];return g.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(v=[...v,...b.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const f=m[s];f&&c?.setRule(f)};const d=vo(null,n,s,r);return{broadcast:d,validateSchema:c}}const fe=e=>e?`${se(e)}px`:"";function se(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(st){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const Ye="PageStateKey";function Me(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=se(e.top)),e.left!==null&&e.left!==void 0&&(o.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=se(e.right))),o}function mn(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight??-1),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight??-1),e.footerPadding=Me(l.footerPadding??o.footerPadding),e.contentPadding=Me(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=se(c,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(l.width??o.width??0,a)}}function Kr(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=se(a.top),n.safeAreaBottom=se(a.bottom),n.safeAreaLeft=se(a.left),n.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;mn(n,r,o,!0,s,i,c,d);const m=t.reactive(n),f=e.getForParent(Ye);f&&(n.height=so(e,f),n.width=io(e,f),t.watch([()=>so(e,f),()=>io(e,f)],([y,g])=>{m.height=y,m.width=g}));const h=!f;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,v=-1,b=-1,u=0,p=0])=>{mn(m,g,o,h,v,b,u,p)}),e.set(Ye,m),m}function So(e){return e.get(Ye)}function Co(e,o){if(o=o??e.get(Ye),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function wo(e,o){if(o=o??e.get(Ye),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function so(e,o){if(o=o??e.get(Ye),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=Co(e,o),n=wo(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function io(e,o){return o=o??e.get(Ye),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function Js(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function _s(e){return!!e.getForParent(Ye)}var co=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(co||{});function Qo(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ne(e,o,l=1,n){const a=Ke();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Qo(c,n))return c}const s=e.value;return Qo(s,n)?s:null}):t.computed(()=>{const r=e.value;return Qo(r,n)?r:a?.get(o)})}function Ae(e){return Ne(e,"readonly",0,function(l){return he(l)})}function Ce(e){return Ne(e,"disabled",0,function(l){return he(l)})}function Ee(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Ur=new Map,uo=new Map;let pn=null;function ei(e){pn=e}function Hr(e,o,l){if(l){let n=uo.get(l);n||(n=new Map,uo.set(l,n)),n.set(e,o)}else Ur.set(e,o)}function Ge(e,o,l){!l&&pn&&(l=pn(e)??void 0);let n=null;if(l){let a=uo.get(l);a&&(n=a.get(o))}return n||(n=Ur.get(o)),n}function ti(e,o){for(let l in e){const n=e[l];Hr(l,n,o)}}function oi(e){uo.delete(e)}function ni(){return{top:0,left:0,bottom:0,right:0}}function li(e=0,o=0){if(st){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-se(e,n)-se(o,n)};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class ai{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=mt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ro(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=nt({},ni(),o.safeAreaInset),s=li(n,a),i=nt({},s.pageLayout,o.pageLayout);l=l??mt(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){ei(o)}setAPI(o,l,n){Hr(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){ti(o,l)}clearScopeAPI(o){oi(o)}getRootDomain(){return mt()}}function W(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const ri=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Cr(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};ao(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},jr=(e,o)=>e?t.h(e,o):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},de={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Wr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Yr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Xr=[];for(const e in Yr)Xr.push(e);function $e(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const si=Symbol.for("InnerPageScopeKey"),ii=(e,o)=>({inheritAttrs:!0,props:{...ue,...Wr,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}},setup(l,n){const a=Ln(l.name,l);if(a){const d=Kr(a,l);$e({getPageContentHeight:()=>so(a,d),getPageContentWidth:()=>io(a,d),getPageHeaderHeight:()=>Co(a,d),getPageFooterHeight:()=>wo(a,d)});const m=t.inject(si,!1);d&&m&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(d,m=!1)=>{const f=i?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(d,!0,m)};return t.watch([()=>l.rules,()=>l.pureDataRules],([d,m],[f,h])=>{if(d&&f){const y=t.toRaw(f),g=t.toRaw(d),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g)}if(m&&h){const y=t.toRaw(h),g=t.toRaw(m),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=t.toRaw(l.pureDataRules);c(d,!0)}}),{classes:r,styles:s}}}),{componentName:ci,create:ui,scope:RB}=W("page"),di=ui(ii(ci));function fi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const J=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Pn=J(di,[["render",fi]]);function No(e){const o=t.unref(e);return{width:o.offsetWidth,height:o.offsetHeight}}function Fn(e){const o=t.unref(e),l=window.getComputedStyle(o,null),n=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:o.clientWidth-n-a,height:o.clientHeight-r-s}}const mi=(e,o,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},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(a,r){const s=Ke(),i=s?So(s):null;i&&(i.headerMounted=!0);const c=e,d=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),m=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),f=a.height!==null&&a.height!==void 0?se(a.height):null,h=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const A=Me(a.padding??i.headerPadding);return Object.assign(w,A),f&&(i.headerHeight=f),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(A.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(f&&(w.height=f),a.padding){const A=Me(a.padding);Object.assign(w,A)}return w}),y=t.ref(null),g=()=>{if(i&&y.value&&!yo(y.value)){if(!n){const w=No(y.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(zn(g,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(()=>{g()}),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const b=t.computed(()=>{const w={};return h.value.height!==null&&h.value.height!==void 0&&(w.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(w.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(w.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(w.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(w.paddingBottom=`${h.value.bottom}px`),w}),u=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function p(){r.emit("back")}function k(){r.emit("click-title")}function S(){r.emit("click-right")}function N(){r.emit("click-right-text")}const C=()=>{if(!a.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const A=t.h("view",{class:"left-icon",onClick:p},[r.slots.leftIcon()]);w.push(A)}else if(a.leftIcon){const A=t.h("view",{class:"left-icon",onClick:p},[t.h(a.leftIcon)]);w.push(A)}if(a.leftText){const A=t.h("view",{class:"left-text",onClick:p},[a.leftText]);w.push(A)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},B=()=>{if(!a.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(a.rightText){const A=t.h("view",{class:"right-text",onClick:N},[a.rightText]);w.push(A)}if(r.slots.rightIcon){const A=t.h("view",{class:"right-icon",onClick:S},[r.slots.rightIcon()]);w.push(A)}else if(a.rightIcon){const A=t.h("view",{class:"right-icon",onClick:S},[t.h(a.rightIcon)]);w.push(A)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},V=()=>{if(!a.titleShow)return null;const w=[],A=r.slots.default?r.slots.default():null;if(A)w.push(A);else{if(a.title){const L=t.h("view",{class:"title-text"},[a.title]);w.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);w.push(L)}else if(a.titleIcon){const L=t.h("view",{class:"title-icon",onClick:k},[t.h(a.titleIcon)]);w.push(L)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},D=()=>{const w=[],A=r.slots.bottom?r.slots.bottom():null;return A&&w.push(A),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!u.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const L=[],F=C();F&&L.push(F);const T=V();T&&L.push(T);const E=B();if(E&&L.push(E),L.length>0){const $=t.h("view",{class:m.value},L);w.push($)}const x=D();x&&w.push(x)}if(w.length===0)return null;const A={class:d.value,style:b.value,ref:y};return t.h("view",A,w)}}}),{componentName:pi,create:hi,scope:gi}=W("header-bar"),Rn=hi(mi(pi,gi,te.Left,!1));function yi(e,o,l=!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(n,a){const r=Ke(),s=r?So(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),c=n.height!==null&&n.height!==void 0?se(n.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const v=Me(n.padding??s.footerPadding);return Object.assign(g,v),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(v.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),n.padding){const v=Me(n.padding);Object.assign(g,v)}return g}),m=t.ref(null),f=()=>{if(s&&m.value&&!yo(m.value)){if(!l){const g=No(m.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(zn(f,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{f()}),h.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const y=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=fe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=fe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=fe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=fe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=fe(d.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],v={ref:m,class:i.value,style:y.value};return t.h("view",v,g)}}}}const{componentName:vi,create:ki,scope:bi}=W("footer-bar"),On=ki(yi(vi,bi,!1));function Si(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Ke(),a=t.computed(()=>({[e]:!0})),r=n?So(n):null,s=t.computed(()=>{const d={};if(n&&r){if(l.padding){const u=Me(l.padding);Object.assign(r.contentPadding,u)}const m=Co(n,r),f=wo(n,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",m),console.debug("[content]footer height:",f),console.debug("[content]padding:",r.contentPadding),d.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||m>0)&&(y=y<0?0:y,d.paddingTop=`${m+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||f>0)&&(g=g<0?0:g,d.paddingBottom=`${f+g}px`);const v=(r&&r.contentPadding&&r.contentPadding.left)??-1;v>=0&&(d.paddingLeft=`${v}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(d.paddingRight=`${b}px`),d}if(l.padding){const m=Me(l.padding);m.left&&(d.paddingLeft=`${m.left}px`),m.top&&(d.paddingTop=`${m.top}px`),m.right&&(d.paddingRight=`${m.right}px`),m.bottom&&(d.paddingBottom=`${m.bottom}px`)}return d}),i=t.ref(null),c=ht(()=>{if(r&&i.value){const d=Fn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Ci,create:wi,scope:OB}=W("content"),Ni=wi(Si(Ci));function Bi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Kn=J(Ni,[["render",Bi]]),gt="GroupStateKey",Qr=Symbol.for("GroupScopeKey");function Bo(){return t.inject(Qr,!1)}function Vo(e=!0){t.provide(Qr,e)}function Vi(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Sr(a)||(e[n]=a)})}function Ai(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Vi(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(gt,r),r}function Go(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(gt);if(!c)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=se(r),f=se(s);i||(i=d.type??"grid");const h=()=>{const y=o===""||o===-1,g=se(o);let v=pe(l);const b=se(n);if(!y){let k=(g-(v-1)*b)/v;for(;f!==-1&&k>f;)v++,k=(g-(v-1)*b)/v;for(;m!==-1&&v>1&&k<m;)v--,k=(g-(v-1)*b)/v}let u=!1;const p=c.layout;p.value.width=o,p.value.column!==v&&(p.value.column=v,u=!0),p.value.gutter!==b&&(p.value.gutter=b,u=!0),p.value.type!==i&&(p.value.type=i,u=!0),u&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Ao(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.layout}function $o(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.order}function qa(e,o=1){if(o==="stretch")return-1;const l=pe(o);return l===-1?100:100*l/e}function To(e,o,l=1,n=0,a){const r={};let s=0;a?s=se(a):s=qa(o.column,l),s>0&&(r.width=`${s}%`);const i=qa(o.column,n);i>0&&(r["margin-left"]=`${i}%`);const c=o.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Eo(e,o,l=1,n=0){if(l==="stretch"){const c=e.index%o.column,d=c+(o.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let a=pe(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=pe(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Gr=Symbol("RollingStateKey");function $i(e){t.provide(Gr,e)}function Ti(){return t.inject(Gr,null)}function hn(e){let o=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));o=e.clientHeight-a-r}else o=e.offsetHeight;return o}function Ei(e){let o=hn(e);if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=hn(l),document.body.removeChild(l)}return o}function Di(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const xi={...ue,...Wr,...Yr};function Ii(e,o,l){return{props:xi,emits:["update:collapse"],setup(n,a){const r=Ln(n.name,n,Xr),s=Ai(r,{type:n.type}),i=Bo();Vo(!0);const c=n.rollingDisplay?Ti():null,d=t.ref(null),m=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),f=t.computed(()=>i&&r?Ao(r,!0).value:null),h=t.getCurrentInstance(),y=(K,X=!1)=>{const G=h?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(K,!0,X)};t.watch([()=>n.rules,()=>n.pureDataRules],([K,X],[G,ee])=>{if(K&&G){const _=t.toRaw(G),oe=t.toRaw(K),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(X&&ee){const _=t.toRaw(ee),oe=t.toRaw(X),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe,!0)}},{deep:!0});const g=e,v=t.computed(()=>{const K={};if(K.height=E.value,n.width)n.width!=="auto"&&(K.width=fe(n.width));else{const X=i?$o(r,!0):null;if(f.value&&X){if(f.value.type==="grid"){const G=Eo(X,f.value,n.span,n.offset);Object.assign(K,G)}else if(f.value.type==="flow"){const G=To(X,f.value,n.span,n.offset,n.width);Object.assign(K,G)}}}return K}),b=t.computed(()=>{const K=s.layout.value.type;return K==="grid"||K==="flow"?{[`${g}--${K}`]:!0,[`${g}--${K}-justify-${n.justify}`]:!0,[`${g}--${K}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${K}`]:!0,[`${g}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let X="";if(n.columnWidth)X=`repeat(auto-fill, ${n.columnWidth})`;else{const G=Di(V.value,s.layout.value.column,s.layout.value.gutter);X=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":X}}}),p=t.toRef(n,"gutter"),k=t.toRef(n,"column"),S=t.computed(()=>i||m.value?!0:he(n.isWrap)),N=[],C=K=>{N.push(K)},B=()=>{let K=N.length;N.splice(0,K)},V=t.ref(-1),D=K=>{const X=Fn(K).width;X>0&&X!==V.value&&(V.value=X)};Go(r,V.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([V,k,p],([K,X,G])=>{s.order.index=0,Go(r,K,X,G,!1,n.minItemWidth,n.maxItemWidth,n.type)});const w=t.computed(()=>x.value?n.expandText??"":n.collapseText??""),A=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),F=t.ref(),T=t.ref(),E=t.computed(()=>$.value||fe(n.height)||""),x=t.ref(!1),$=t.ref(""),H=t.ref(!1);let R=-1;const Y=(K,X=!0)=>{const G=F.value;if(G&&x.value!==K){if(R=R===-1?Ei(G):R,H.value=!0,X)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",K||($.value="",H.value=!1)},K){let ee=0;n.collapseHeight?ee=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(ee=T.value.offsetHeight),$.value=`${R}px`,t.nextTick(()=>{$.value=`${ee}px`})}else $.value=`${R}px`;else if(K){let ee=0;n.collapseHeight?ee=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(ee=T.value.offsetHeight),$.value=`${ee}px`}else H.value=!1,$.value=`${R}px`;x.value=K,a.emit("update:collapse",K)}};t.watch(()=>n.collapse,K=>{Y(K)});const Q=()=>{I()},I=K=>{K=K??!x.value,Y(K)};$e({toggleCollapse:I,doLayout:()=>{N[0]&&(D(N[0]),Go(r,V.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let O=null,z=!0;const P=K=>{if(n.rules){const X=t.toRaw(n.rules);y(X)}if(n.pureDataRules){const X=t.toRaw(n.pureDataRules);y(X,!0)}if(st&&(K&&Y(he(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const X=N[0];D(X),window.ResizeObserver&&(O=new window.ResizeObserver(()=>{D(X)}),O.observe(X))}},q=()=>{O?.disconnect(),O=null},U=!m.value||c?.acquire();U&&(d.value=m.value?!0:null),t.onMounted(()=>{if(U&&(P(z),z=!1),m.value&&c){let K=null,X=c.initialHeight;c.observe(F.value,G=>{if(G!==d.value)if(G)d.value=!0,x.value||($.value=""),K=setTimeout(()=>{K=null,d.value!==!1&&(P(z),z=!1)},100);else{if(K!==null&&clearTimeout(K),d.value=!1,!x.value)if(z)$.value=c.initialHeight;else{let ee=hn(F.value);ee<=0?$.value=X:($.value=`${ee}px`,X=$.value)}z||q()}})}}),t.onUnmounted(()=>{O?.disconnect(),c&&c.unobserve(F.value)});const j=(K="right")=>{const X=[];if(w.value){const _={class:A.value},oe=t.h("span",_,[w.value]);X.push(oe)}const G={class:L.value},ee=l(n.collapseIcon,G);return ee&&X.push(ee),X.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:Q},X):null},Z=(K,X,G,ee)=>{const _={...b.value};return X===0&&(_[`${g}__first`]=!0),G>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:C,key:`${X}`,class:_,style:u.value},K)};return()=>{if(m.value&&d.value!==!0){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[])}s.order.index=0;const K=[];let X=0;if(a.slots.header){const _={key:`${X++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",_,[a.slots.header()]);K.push(oe)}else{const _=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=j("left");le&&_.push(le)}if(n.title||a.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const Te=t.h("div",le);_.push(Te)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);_.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);_.push(le)}}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=j("right");le&&_.push(le)}if(_.length>0){const le={key:`${X++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Te=t.h("div",le,_);K.push(Te)}}B();const G=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=Z(G,X++,0,G.length);K.push(_)}else if(ee==="flow"){const _=Z(G,X++,0,G.length);K.push(_)}else for(let _=0;_<G.length;_++){const oe=G[_],le=Z([oe],X++,_,G.length);K.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[K])}else return K}}}}const{componentName:qi,create:Mi,scope:zi}=W("group"),Li=(e=te.RectUp,o={})=>t.h(e,o),Un=Mi(Ii(qi,zi,Li));function Pi(e){return e===window}const Fi=/matrix\((.+)\)/,Zr=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(Pi(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const m=Fi.exec(d);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};class Ri{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class Oi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new Ri,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const Ma=new Oi,Jr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ki,create:Ui}=W("price"),Hi=Ui({props:{...Jr},setup(e){const o=t.computed(()=>({[Ki]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":po(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),ji=["innerHTML"],Wi=["innerHTML"];function Yi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ji)):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,Wi)):t.createCommentVNode("",!0)],2)}const Xe=J(Hi,[["render",Yi]]),{componentName:Zo,create:Xi}=W("hint-text"),Qi=Xi({components:{Price:Xe},props:{...Jr,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,o){const l=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=(A,L,F,T,E,x)=>{const $=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,R=A.split("-");let Y=[];R[0]==="top"?Y=["top","bottom","right","left"]:R[0]==="bottom"?Y=["bottom","top","right","left"]:R[0]==="left"?Y=["left","top","bottom","right"]:R[0]==="right"&&(Y=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},I=[];for(let M=0;M<Y.length;M++){const O=Y[M];if(I[0]=O,R[1]&&(I[1]=R[1]),O==="top"){const z=L.y-x-e.arrowSize-e.offset;if(z>=0){Q.top=z;let P=0;R[1]==="start"?P=L.x:R[1]==="end"?P=L.x+F-E:P=L.x+F/2-E/2;const q=$-P-E;q<0?(P+=q,f.value=-q):f.value=0,Q.left=P<0?0:P;break}}else if(O==="bottom"){const z=L.y+T+e.arrowSize+e.offset;if(z+x<=H){Q.top=z;let P=0;R[1]==="start"?P=L.x:R[1]==="end"?P=L.x+F-E:P=L.x+F/2-E/2;const q=$-P-E;q<0?(P+=q,f.value=-q):f.value=0,Q.left=P<0?0:P;break}}else if(O==="left"){const z=L.x-E-e.arrowSize-e.offset;if(z>=0){Q.left=z;let P=0;R[1]==="start"?P=L.y:R[1]==="end"?P=L.y+T-x:P=L.y+T/2-x/2,Q.top=P<0?0:P;break}}else if(O==="right"){const z=L.x+F+e.arrowSize+e.offset;if(z+E<=$){Q.left=z;let P=0;R[1]==="start"?P=L.y:R[1]==="end"?P=L.y+T-x:P=L.y+T/2-x/2,Q.top=P<0?0:P;break}}}return{bestPlacement:I.join("-"),bestInsetRect:Q}},m=(A,L,F=10)=>{if(!st||L===!1||!A)return;n.value=Zr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const T=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:x,bestInsetRect:$}=d(e.placement,n.value,a.value,r.value,E,T);s.value=x,l.value=$,i.value=!0},f=t.ref(0),h=ht(()=>{m(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,A=>{y.value=A});const g=t.computed(()=>y.value&&v.value),v=t.ref(!0),b=ht(A=>{const L=A[0];L&&(v.value=L.isIntersecting)},10),u=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([A,L])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Ma.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{Ma.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const p=t.computed(()=>{const A={[Zo]:!0};return s.value.startsWith("top")?A["is-top"]=!0:s.value.startsWith("right")?A["is-right"]=!0:s.value.startsWith("bottom")?A["is-bottom"]=!0:s.value.startsWith("right")&&(A["is-right"]=!0),e.size==="small"?A["is-small"]=!0:e.size==="large"&&(A["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(A[`${e.customClass}`]=!0),A}),k=t.computed(()=>{const A={};l.value.top!==null&&(A.top=`${l.value.top}px`),l.value.right!==null&&(A.right=`${l.value.right}px`),l.value.bottom!==null&&(A.bottom=`${l.value.bottom}px`),l.value.left!==null&&(A.left=`${l.value.left}px`),e.autoFit&&(A["min-width"]=`${a.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return A["max-width"]=`${L}px`,i.value&&(A.opacity="1"),e.transition||(A.transition="none"),e.zIndex&&(A["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(A,e.customStyle),A}),S=t.computed(()=>{const A=[`${Zo}__content`];return e.customTextClass&&A.push(e.customTextClass),A}),N=t.computed(()=>{const A={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(A,e.customTextStyle),A}),C=t.computed(()=>({[`${Zo}__arrow`]:!0})),B=t.computed(()=>{const A={};return e.showArrow?(A.width=`${e.arrowSize}px`,A.height=`${e.arrowSize}px`,s.value==="top"?(A.left="50%",A.bottom=`-${e.arrowSize}px`,A.transform=" translate(-50%, 0%)"):s.value==="top-start"?(A.left=`${e.arrowOffset+f.value}px`,A.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(A.right=`${e.arrowOffset-f.value}px`,A.bottom=`-${e.arrowSize}px`):s.value==="right"?(A.left=`-${e.arrowSize}px`,A.top="50%",A.transform=" translate(0%, -50%)"):s.value==="right-start"?(A.left=`-${e.arrowSize}px`,A.top=`${e.arrowOffset}px`):s.value==="right-end"?(A.left=`-${e.arrowSize}px`,A.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(A.left="50%",A.top=`-${e.arrowSize}px`,A.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(A.left=`${e.arrowOffset+f.value}px`,A.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(A.right=`${e.arrowOffset-f.value}px`,A.top=`-${e.arrowSize}px`):s.value==="left"?(A.right=`-${e.arrowSize}px`,A.top="50%",A.transform=" translate(0%, -50%)"):s.value==="left-start"?(A.right=`-${e.arrowSize}px`,A.top=`${e.arrowOffset}px`):s.value==="left-end"&&(A.right=`-${e.arrowSize}px`,A.bottom=`-${e.arrowOffset}px`),A):{display:"none"}}),V=t.computed(()=>g.value&&e.closeOnClick),D=t.computed(()=>{const A={};return e.zIndex&&(A["z-index"]=`${e.zIndex}`),A});return{show:g,tipRef:c,classes:p,styles:k,textClasses:S,textStyles:N,arrowClasses:C,arrowStyles:B,overlayShow:V,overlayStyle:D,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function Gi(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:o[0]||(o[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const _r=J(Qi,[["render",Gi]]);class Do{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const gn={},Zi=new Do,pt=new Map,fo=e=>{if(e){const o=document.getElementById(e);pt.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of pt.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}pt.clear()}},Ji=e=>{e.unmount=fo;const o=document.getElementById(e.id);if(o){const l=pt.get(e.id);l?e={...gn,...l,...e}:e={...gn,...e},e.transition=!1;const n=t.createVNode(_r,e);return t.render(n,o),e.id}},_i=e=>{e.unmount=fo;let o=e.id??`hinttext_${Zi.get()}`;e={...gn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(_r,e);return t.render(n,l),document.body.appendChild(l),o},ec=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){ec(o);const a=l.id;return a&&pt.has(a)?Ji({...l,message:o,reference:e}):(n&&fo(),_i({...l,message:o,reference:e}))},hide(e){fo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:za,create:tc}=W("item"),oc=tc({inheritAttrs:!0,props:{...ue,...de},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:za,validate:!1},l);const n=Ke(),a=Bo();Vo(!1);const r=t.computed(()=>a&&n?Ao(n,!1).value:null),s=za,i=t.ref(null),c=t.computed(()=>{const K={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:he(e.hasBorder)};if(K[e.errorMarkClass]=!!L.value,K[e.warnMarkClass]=!!w.value,K[e.infoMarkClass]=!!V.value,typeof i.value=="function"){const X=i.value(l);K[X]=!0}else if(typeof i.value=="string"){const X=i.value;K[X]=!0}return K}),d=t.ref(null),m=t.computed(()=>{const K={};if(e.width)e.width!=="auto"&&(K.width=fe(e.width));else{const X=a&&n?$o(n,!1):null;if(r.value&&X){if(r.value.type==="grid"){const G=Eo(X,r.value,e.span,e.offset);Object.assign(K,G)}else if(r.value.type==="flow"){const G=To(X,r.value,e.span,e.offset,e.width);Object.assign(K,G)}}}if(typeof d.value=="function"){const X=d.value(l);X&&Object.assign(K,X)}else if(d.value&&typeof d.value=="object"){const X=d.value;Object.assign(K,X)}return K}),f=t.ref(null),h=t.computed({get:()=>f.value??he(e.isRequired),set:K=>{f.value=K}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ne(t.toRef(e,"labelPosition"),"labelPosition",co.Near),v=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),b=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${v.value}`]:!0})),u=t.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Ne(t.toRef(e,"labelWidth"),"labelWidth",co.Near),k=t.computed(()=>p&&p.value?{width:fe(p.value)}:{}),S=t.computed(()=>({"label--string":!0,"label--required":h.value})),N=t.computed(()=>({content:!0,[e.contentClass]:!0})),C=t.computed(()=>({...e.contentStyle})),B=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(K){h.value=K},setErrorTip(K){B.errorTip=K},setErrorIcon(K){B.errorIcon=K},setWarnTip(K){B.warnTip=K},setWarnIcon(K){B.warnIcon=K},setInfoTip(K){B.infoTip=K},setInfoIcon(K){B.infoIcon=K},setCustomClassName(K){i.value=K},setCustomStyle(K){d.value=K}});const V=t.computed(()=>e.infoTip||B.infoTip),D=t.computed(()=>e.infoIcon||B.infoIcon),w=t.computed(()=>e.warnTip||B.warnTip),A=t.computed(()=>e.warnIcon||B.warnIcon),L=t.computed(()=>e.errorTip||B.errorTip),F=t.computed(()=>e.errorIcon||B.errorIcon),T=t.computed(()=>L.value?"error":w.value?"warn":V.value?"info":""),E=t.computed(()=>T.value.length>0),x=t.computed(()=>T.value==="error"?L.value:T.value==="warn"?w.value:T.value==="info"?V.value:""),$=t.computed(()=>T.value==="error"?F.value:T.value==="warn"?A.value:T.value==="info"?D.value:null),H=t.computed(()=>{let K={[`${s}__tip`]:!0,[`${s}__tip--${T.value}`]:!0};return T.value==="error"&&e.errorClass?K[`${e.errorClass}`]=!0:T.value==="warn"&&e.warnClass?K[`${e.warnClass}`]=!0:T.value==="info"&&e.infoClass&&(K[`${e.infoClass}`]=!0),K}),R=t.computed(()=>{let K={};return g&&g.value==="top"||!y.value?K["padding-left"]="0px":p&&p.value&&(K["padding-left"]=fe(p.value)),K}),Y=()=>{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},Q=()=>{const K=x.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},I=t.computed(()=>o.slots.fixedPreTip),M=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),O=t.computed(()=>o.slots.fixedTip),z=t.computed(()=>({[`${s}__fixed-tip`]:!0})),P=t.ref();let q="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([K,X,G,ee])=>{P.value&&(K&&!ce(X)?q?ot.show(P.value,X,{...ee,id:q,type:G},!0):q=ot.show(P.value,X,{...ee,type:G},!0):ot.hide(q))});let U=null;const j=()=>{U||!P.value||(U=new IntersectionObserver(K=>{let X=!1;for(let G of K)if(G.intersectionRatio>0){X=!0,X&&o.emit("appear",G);break}X||o.emit("disappear")}),U.observe(P.value))},Z=()=>{!U||!P.value||(U.unobserve(P.value),U=null)};return t.watch(()=>he(e.appearListen),K=>{K?j():Z()}),t.onMounted(()=>{he(e.appearListen)&&j()}),t.onUnmounted(Z),{classes:c,styles:m,mainClasses:b,hasLabel:y,labelClasses:u,labelStyles:k,labelStringClasses:S,contentClasses:N,contentStyles:C,contentRef:P,hasTip:E,mTip:x,mIcon:$,renderIcon:Y,renderTip:Q,tipClasses:H,tipStyles:R,hasFixedTip:O,fixedTipClasses:z,hasFixedPreTip:I,fixedPreTipClasses:M}}}),nc=["prop"];function lc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,nc)}const be=J(oc,[["render",lc]]);function ac(e,o){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Ke(),i=Bo();Vo(!1);const c=t.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=fe(l.width));else if(i&&s){const m=Ao(s,!1),f=$o(s,!1);if(m.value&&f){if(m.value.type==="grid"){const h=Eo(f,m.value,l.span,l.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=To(f,m.value,l.span,l.offset,l.width);Object.assign(d,h)}}}return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(l.divide)for(let h=0;h<f.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(y)}d.push(f[h])}else Reflect.apply([].push,d,f)}const m={class:r.value,style:c.value};return t.h("div",m,d)}}}}const{componentName:rc,create:sc,scope:KB}=W("row-item"),Hn=sc(ac(rc));function ic(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=Ke(),r=Bo();Vo(!1);const s=t.computed(()=>r&&a?Ao(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=t.computed(()=>{const m={};if(l.width)l.width!=="auto"&&(m.width=fe(l.width));else{const f=r&&a?$o(a,!1):null;if(s.value&&f){if(s.value.type==="grid"){const h=Eo(f,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=To(f,s.value,l.span,l.offset,l.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:cc,create:uc,scope:UB}=W("slot-item"),jn=uc(ic(cc)),La={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 dc(e,o,l,n){return{props:{...ue,...de,...La},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ae.useFoxI18n(o),m=d(a,["placeholder"]),f=t.ref(!1),h=Ee(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}--disabled`]:s.value,[`${y}--readonly`]:i.value})),v=Ne(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>{const E={};return v.value&&(E["text-align"]=v.value),E}),u=E=>{let $=E.target.value;a.type==="digit"&&($=dn($,!0)),a.type==="number"&&($=dn($,!1)),a.maxLength&&$.length>Number(a.maxLength)&&($=$.slice(0,Number(a.maxLength))),h.value=$,c("update:modelValue",$,E),c("change",$,E)};let p=Ee(a,"hintText"),k=t.ref(!1);const S=E=>{let $=E.target.value;f.value=!0,ce(p.value)||(k.value=!0),c("focus",$,E)},N=E=>{setTimeout(()=>{k.value&&(k.value=!1),f.value=!1},0);let $=E.target.value;a.maxLength&&$.length>Number(a.maxLength)&&($=$.slice(0,Number(a.maxLength))),c("blur",$,E)},C=t.computed(()=>({[`${y}__append`]:!0})),B=t.computed(()=>{const E={};return r.slots.append&&!V.value&&!F.value&&(E.display="none"),E}),V=t.computed(()=>ge(a.unit)>0),D=t.computed(()=>!F.value),w=t.computed(()=>({[`${y}__unit`]:!0,hidden:!D.value})),A=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},L=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let E=ge(h.value)>0;return he(a.clearable)&&E&&f.value}),T=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const E={class:g.value,style:b.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:N},x=[],$=t.h("input",E);x.push($);const H=[];if(L.value){const z={class:["action-icon"]},P=t.h(n,z),q={class:T.value,onClick:A},U=t.h("view",q,{default:()=>[P]});H.push(U)}if(V.value){const z=t.h("view",{class:w.value},[a.unit]);H.push(z)}const R={class:C.value,style:B.value},Y=t.h("view",R,{default:()=>H});x.push(Y);const Q={default:()=>x};Q.label=r.slots.default,Q.prepend=r.slots.prepend,Q.append=r.slots.append,Q.fixedPreTip=r.slots.fixedPreTip,Q.fixedTip=r.slots.fixedTip;const M={...In(a,La),hintText:p.value,hintVisible:k.value};return t.h(l,M,Q)}}}}const{componentName:fc,create:mc,scope:pc}=W("input-item"),Wn=mc(dc(fc,pc,be,te.CircleClose));function Pa(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Fa(e,o,l=20){if(typeof o=="string"&&(o=pe(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=vr(`${e}`,`${o}`);return Pa(n)}else{let n=xn(`${e}`,kr(`${o}`),20);return Pa(n)}}function hc(e,o=-1,l=!1,n=3,a=","){return po(e,o,l,n,a)}function Ra(e,o,l,n,a=!0){if(e=="")return"";if(e=br(e),o=pe(o),o==1)return e;if(n)e=Fa(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(pe(l)+2,"0"):e=xn(e,1,pe(l)));else{let r=-1*o;e=Fa(e,r)}return e}function Oa(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=he(o.minInclude),a=sn(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=he(o.maxInclude),a=sn(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Ka={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 gc(e,o,l,n){return{props:{...ue,...de,...Ka},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=t.ref(!1),m=Ee(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([R,Y,Q])=>{if(ce(R)){f.value="";return}const I=Ra(R,Y,Q,!1);f.value!==I&&(f.value=I)},{immediate:!0});const h=t.computed(()=>{let R="";return d.value&&(R=f.value),R}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let R=a.placeholder??"";return!d.value&&!ce(f.value)?R=hc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):R=ce(R)?y(["placeholder"]):R,R}),v=e,b=t.computed(()=>({[v]:!0,[`${v}--disabled`]:s.value,[`${v}__placeholder`]:f.value.length>0})),u=Ne(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const R={};return u.value&&(R["text-align"]=u.value),R}),k=t.ref(""),S=t.computed(()=>{let R=k.value;return ce(R)&&(R=a.errorTip??""),R}),N=t.ref(""),C=t.ref(!1),B=R=>{let Q=R.target.value;if(ce(Q)){f.value="",m.value="",c("update:modelValue","",R),c("change","",R),he(a.showTip)&&C.value&&(C.value=!1);return}if(Q.length>=2){let I=Q;if(I.charAt(0)=="-"&&(I=I.substring(1)),I.length>=2&&I.charAt(0)=="0"&&I.charAt(1)!="."){t.triggerRef(f);return}}if(Q!="-"){if(!Tr(Q)){t.triggerRef(f);return}if(a.integerLength!=-1&&Er(Q)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Dr(Q)>Number(a.decimalLength)){t.triggerRef(f);return}let I=Oa(Q,a);if(I.maxValid===!1){k.value=I.message,t.triggerRef(f);return}}else if(a.min!=null&&pe(a.min)>=0){t.triggerRef(f);return}N.value=Q,he(a.showTip)&&(C.value=Q.length>0),f.value=Q,m.value=Ra(Q,a.rates,a.precision,!0),c("update:modelValue",m.value,R),c("change",m.value,R)},V=R=>{if(d.value=!0,he(a.showTip)){let Y=f.value;ce(Y)&&(Y=a.hintText),ce(Y)||(N.value=Y,C.value=!0)}k.value="",c("focus",m.value,R)},D=R=>{if(setTimeout(()=>{d.value=!1,he(a.showTip)&&C.value===!0&&(C.value=!1)},0),!ce(f.value)){let Y=Oa(f.value,a);if(Y.minValid===!1||Y.maxValid===!1){k.value=Y.message;return}}c("update:modelValue",m.value,R),c("blur",m.value,R)},w=t.computed(()=>({[`${v}__append`]:!0})),A=t.computed(()=>{const R={};return r.slots.append&&!L.value&&!$.value&&(R.display="none"),R}),L=t.computed(()=>ge(a.unit)>0),F=t.computed(()=>!$.value),T=t.computed(()=>({[`${v}__unit`]:!0,hidden:!F.value})),E=R=>{m.value="",c("update:modelValue","",R),c("change","",R),c("clear","")},x=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),$=t.computed(()=>{let R=ge(m.value)>0;return he(a.clearable)&&R&&d.value}),H=t.computed(()=>({action:!0,hidden:!$.value}));return()=>{let R={class:b.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:B,onFocus:V,onBlur:D},Y=[],Q=t.h("input",R);Y.push(Q);let I=[];if(x.value){const j={class:["action-icon"]},Z=t.h(n,j),K={class:H.value,onClick:E},X=t.h("view",K,{default:()=>[Z]});I.push(X)}if(L.value){const j=t.h("view",{class:T.value},[a.unit]);I.push(j)}const M={class:w.value,style:A.value},O=t.h("view",M,{default:()=>I});Y.push(O);const z={default:()=>Y};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;let q={...In(a,Ka),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return t.h(l,q,z)}}}}const{componentName:yc,create:vc,scope:kc}=W("money-item"),Yn=vc(gc(yc,kc,be,te.CircleClose)),yn={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:bc,create:Sc,scope:Cc}=W("textarea"),wc=Sc({props:{...yn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Cc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=bc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:v}=e.autosize;g!==void 0&&(y=Math.min(y,g)),v!==void 0&&(y=Math.max(y,v))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,y),o("change",h,y)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),o("blur",{value:g,event:h})}}}}),Nc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Bc={key:0,class:"fox-textarea__limit"};function Vc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Nc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xo=J(wc,[["render",Vc]]);function Ac(e,o,l,n){return{props:{...ue,...de,...yn},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=Ee(a,"modelValue"),m=v=>{d.value=v,c("update:modelValue",v,{}),c("change",v,{})};let f=Ee(a,"hintText"),h=t.ref(!1);const y=v=>{ce(f.value)||(h.value=!0),c("focus",d.value,v)},g=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,v)};return()=>{const b={...me(a,yn),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:y,onBlur:g},u=[],p=t.h(n,b);u.push(p);const k={default:()=>u};k.label=r.slots.default,k.prepend=r.slots.prepend,k.append=r.slots.append,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const S=me(a,de,ue);return t.h(l,S,k)}}}}const{componentName:$c,create:Tc,scope:Ec}=W("textarea-item"),Xn=Tc(Ac($c,Ec,be,xo));function Dc(e){return e===window}const Ve=e=>{const o=t.unref(e);if(Dc(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ze={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},es=2e3;let Ua=es;const xc=(e,o)=>({components:o,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==es&&(Ua=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Ua,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=v=>{n("click-pop",v)},f=v=>{v.stopPropagation(),n("click-close-icon",v),n("update:visible",!1)},h=v=>{n("click-overlay",v),l.closeOnClickOverlay&&n("update:visible",!1)},y=v=>{n("opend",v)},g=v=>{n("closed",v)};return t.watch(()=>l.visible,v=>{l.visible?c():d()}),t.watch(()=>l.closeable,v=>{a.closed=v}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:g}}});let Bt=0;const Ha="fox-overflow-hidden",ja=()=>st?document.body:{classList:[]},Ic=e=>[()=>{if(e())try{!Bt&&ja().classList.add(Ha),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&ja().classList.remove(Ha)}catch{}}],qc={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Mc,create:zc}=W("overlay"),Lc=zc({props:{...qc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Ic(()=>e.lockScroll),a=t.computed(()=>({[Mc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function Pc(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const at=J(Lc,[["render",Pc]]),{componentName:Fc,create:Rc}=W("popup"),Oc=Rc(xc(Fc,{FoxOverLay:at,Close:te.Close}));function Kc(e,o,l,n,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ie=J(Oc,[["render",Kc]]),Wa=10;function Uc(e,o){return e>o&&e>Wa?"horizontal":o>e&&o>Wa?"vertical":""}function Ue(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),m=t.ref(""),f=()=>m.value==="vertical",h=()=>m.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",l.value=0};return{move:b=>{const u=b.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=Uc(c.value,d.value))},start:b=>{y(),e.value=b.touches[0].clientX,o.value=b.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:f,isHorizontal:h}}const ts={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},vn={...ze,...ts,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}};let os=36;function Hc(){return os}function jc(e){os=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function kn(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function Wc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function rt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Ya(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let Yc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Xc(){const e=t.getCurrentInstance();return new Yc(e.proxy)}function Xa(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=rt(e,o),s=rt(e,l);return r===s}function Qc(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let d=l[s].findIndex(m=>{if(r==="text")return qe(e,m)===i;if(r==="value"){let f=rt(e,m);return f==null&&(f=qe(e,m)),f===i}else if(r==="item")return Xa(e,m,i)});if(d==-1)break;a.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let d=s.findIndex(f=>{if(r==="text")return qe(e,f)===c;if(r==="value"){let h=rt(e,f);return h==null&&(h=qe(e,f)),h===c}else if(r==="item")return Xa(e,f,c)});if(d==-1)break;a.push(d);const m=kn(e,s[d]);if(!Array.isArray(m))break;s=m}}return a}function Qa(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=qe(e,d);if(a.texts.push(m),a.items.push(d),r==="text")a.values.push(m);else if(r==="value"){let f=rt(e,d);f==null&&(f=m),a.values.push(f)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const d=s[c],m=Object.assign({},d);m.children=null;const f=qe(e,d);if(a.texts.push(f),a.items.push(m),r==="text")a.values.push(f);else if(r==="value"){let h=rt(e,d);h==null&&(h=f),a.values.push(h)}else a.values.push(m);if(!Array.isArray(d.children))break;s=d.children}}return a}function Ga(e){return{text:e,value:e}}const Gc=15,Zc=300,Jc=200,{create:_c}=W("picker-column");function eu(e){e.stopPropagation()}function tu(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&eu(e)}const ou=_c({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},...ts},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=V=>V>=f.currIndex+8||V<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-f.rotation*V}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=V=>qe(e,V),g=V=>rt(e,V),v=Ue(),b=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(V,D=!1,w=!1)=>{if(f.currIndex=V,D){const A=()=>{f.moving=!1,o("update:modelValue",V),o("change",V)};w?f.transitionEndTrigger=A:A()}},p=(V,D,w)=>{let A=V+f.startDistance;if(D==="end"){const L=-(h.value.length-1)*e.itemHeight;A<L&&(A=L,(!w||w<=0)&&(w=e.swipeDuration)),A>0&&(A=0,(!w||w<=0)&&(w=e.swipeDuration));let F=Math.abs(Math.round(-A/e.itemHeight));const T=-F*e.itemHeight,E=`${(F+1)*f.rotation}deg`,x=w?w>0:!1;u(F,!0,x),k(T,D,w,E)}else{let L=(-A/e.itemHeight+1)*f.rotation;const F=(h.value.length+1)*f.rotation,T=0;if(L=Math.min(Math.max(L,T),F),e.threeDimensional&&(L<T||L>F))return;k(A,null,void 0,`${L}deg`)}},k=(V=0,D,w=Jc,A)=>{D==="end"?f.scrollTime=w:f.scrollTime=0,f.deg=A,f.scrollDistance=V},S=(V,D)=>(V=Math.abs(V/D)/.003*(V<0?-1:1),V),N=V=>{e.readonly||(f.startDistance=f.scrollDistance,v.start(V),f.transitionEndTrigger=null)},C=V=>{e.readonly||(f.moving=!0,v.move(V),v.isVertical()&&(f.moving=!0,tu(V,!0)),p(v.deltaY.value,"",0))},B=()=>{if(e.readonly)return;const V=v.deltaY.value,D=v.duration.value;if(D<Zc&&Math.abs(V)>Gc){const A=S(V,D);p(A,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(f.currIndex!==V){f.currIndex=V;const D=-V*e.itemHeight;p(D)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(f),roller:m,getItemText:qe,onTouchStart:N,onTouchMove:C,onTouchEnd:B,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:b}}}),nu={key:1,class:"fox-picker__item-tile"};function lu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",nu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Za=J(ou,[["render",lu]]),{create:au,componentName:ru,scope:su}=W("picker"),iu=au({components:{[Za.name]:Za,[ie.name]:ie},props:{...vn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(su),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Hc());t.watch(()=>e.visible,w=>{w&&s.value<=0&&setTimeout(()=>{if(r.value){const A=Ve(r.value);s.value=A.height,jc(s.value)}},50)});const i=t.computed(()=>({[ru]:!0})),c=Xc(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,A])=>{if(w){let L=await c.load("picker",w,A);if(L.length>0){let F=L[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let T=L,E=[];T.forEach(x=>{let $=x.map(H=>Ga(H));E.push($)}),m.value=E}else m.value=L;d.value="multipleColumn"}else if(typeof F=="string"){let T=L,E=[],x=T.map($=>Ga($));E.push(x),m.value=E,d.value="singleColumn"}else{const T=kn(e,F);Array.isArray(T)?(d.value="cascade",m.value=[L]):(d.value="singleColumn",m.value=[L])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([w,A])=>{let L=Qc(e,w,A,d.value);if(!xe(L,g.value)){g.value=L;let F=Qa(e,L,A,d.value);F&&(f.value=F.texts,o("update:text",f.value))}});const v=t.ref(e.visible);t.watch(()=>e.visible,w=>{v.value=w});const b=w=>{let A=Ya(e,w);return Be(A)?A.defaultIndex??0:0},u=w=>{if(e.readonly===!0)return!0;let A=Ya(e,w);return Be(A)?A.readonly??!1:!1},p=(w,A)=>{let L=g.value;L[w]=A;for(let T=0;T<w;T++)L[T]==null&&(L[T]=b(T));if(d.value==="cascade")for(let T=w+1;T<S.value.length;T++){let E=b(T);T<L.length?L[T]=E:L.push(E)}else for(let T=L.length;T<S.value.length;T++){let E=b(T);L.push(E)}g.value=L;let F=Qa(e,L,m.value,d.value);F&&(f.value=F.texts,h.value=F.values,y.value=F.items)},k=w=>w<g.value.length?g.value[w]:b(w),S=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let w=[],A=0,L=m.value[0],F=0;for(;;){let T=L.map($=>{let H=Object.assign({},$);return Wc(e,H,null),H});w.push(T),A>=g.value.length?F=0:F=g.value[A],(F<0||F>=L.length)&&(F=0);let E=L[F];const x=kn(e,E);if(!Array.isArray(x))break;L=x,A++}return w}),N=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:d,show:v,itemHeight:s,top:N,isReadonly:u,getIndex:k,change:(w,A)=>{p(w,A)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let w=m.value.length-1;for(;w>=0&&!(g.value[w]===null||g.value[w]===void 0);w--);if(w>=0&&p(w,0),d.value==="singleColumn"){let A=h.value.length>0?h.value[0]:"",L=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",A),o("update:text",f.value),o("change",A,L)),o("confirm",A)}else e.readonly||(o("update:modelValue",h.value),o("update:text",f.value),o("change",h.value,y.value)),o("confirm",h.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}d.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),cu={class:"fox-picker__bar"},uu={class:"fox-picker__title"},du={class:"fox-picker__bar__action"},fu={class:"fox-picker__column"};function mu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",cu,[t.createElementVNode("view",uu,t.toDisplayString(e.title),1),t.createElementVNode("view",du,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",fu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const yt=J(iu,[["render",mu]]);function pu(e,o,l,n,a,r,s=!0){return{props:{...ue,...de,...vn,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue"),b=t.ref([]),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const O={};return S.value&&(O["text-align"]=S.value),O}),C=t.ref(!1),B=()=>{C.value=!0},V=O=>{C.value=O},D=O=>{v.value=O,f("update:modelValue",O)},w=(O,z)=>{f("change",O,z)},A=O=>{let P=O.target.value;g.value=!0,f("focus",P,O)},L=O=>{setTimeout(()=>{g.value=!1},0);let P=O.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),f("blur",P,O)},F=O=>{b.value=O,Array.isArray(O)&&O.length===0?f("update:text",O[0]):f("update:text",O)},T=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!x.value})),H=O=>{v.value="",f("update:modelValue","",O),f("change","",O),f("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!m.value),Y=t.computed(()=>ge(v.value)>0&&g.value),Q=O=>{Y.value?H(O):B()},I=t.computed(()=>Y.value&&R.value?n:a),M=t.computed(()=>({action:!0}));return()=>{const O={class:k.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:B,onFocus:A,onBlur:L};s&&(O.disabled=!0);const z=[],P=t.h("input",O);z.push(P);const q=[],U={class:["action-icon"]},j=t.h(I.value,U),Z={class:M.value,onClick:Q},K=t.h("view",Z,{default:()=>[j]});if(q.push(K),E.value){const ve=t.h("view",{class:$.value},[i.unit]);q.push(ve)}const X={class:T.value},G=t.h("view",X,{default:()=>q});z.push(G);const ee={default:()=>z};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const _=me(i,vn);_.disabled=!1,_.readonly=d.value||m.value,_.visible=C.value,_["onUpdate:visible"]=V,_.modelValue=v.value,_["onUpdate:modelValue"]=D,_.text=b.value,_["onUpdate:text"]=F,_.onChange=w;const oe=t.h(r,_);ee.hide=()=>[oe];const le=me(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:hu,create:gu,scope:yu}=W("picker-item"),Qn=gu(pu(hu,yu,be,te.CircleClose,te.ArrowRight,yt,!1)),_t=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...m}=n,f={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return f.children&&f.children.length&&(f.children=_t(f.children,f,l)),f}),ns=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&ns(n.children,o)},vu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},ku=(e,o)=>{const l={...vu,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:m,[r]:f}=d,h=c[f]=c[f]||[];!i.length&&f===n&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,f)=>m[s]-f[s])}),c=null,i},bu=/scroll|auto|overlay/i,ls=window;function Su(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bn(e,o=ls){let l=e;for(;l&&l!==o&&Su(l);){const{overflowY:n}=window.getComputedStyle(l);if(bu.test(n))return l;l=l.parentNode}return o}function as(e,o=ls){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=bn(e.value,o))}),l}const{create:Cu}=W("sticky"),wu=Cu({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!l.value&&!d)return;const m=Ve(l),f=n.value,h=Ve(f),y=Ve(d);a.height=m.height;const g=()=>{let b=!1;if(e.position==="top")b=d?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;b=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return b},v=()=>{if(d)if(e.position==="top"){const b=y.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,u=y.bottom-(b-r.value);return u<0?u:0}return 0};a.transform=v(),a.fixed=g()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),bn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{bn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Nu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Mt=J(wu,[["render",Nu]]),Bu=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await n(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ue();let d="";const m=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":o.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,o.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class Vu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Au}=W("tabs"),$u=Au({components:{[Mt.name]:Mt,JoySmile:te.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=w=>{w.forEach((A,L)=>{let F=A.type;if(F=F.name||F,F=="fox-tab-pane"){let T=new Vu;if(A.props?.title||A.props?.["pane-key"]||A.props?.paneKey){let E=lt(A.props?.["pane-key"]),x=E=="number"||E=="string"?String(A.props?.["pane-key"]):null,$=lt(A.props?.paneKey),H=$=="number"||$=="string"?String(A.props?.paneKey):null;T.title=A.props?.title,T.paneKey=x||H||String(L),T.disabled=A.props?.disabled}r.value.push(T)}else{if(A.children==" ")return;Array.isArray(A.children)&&s(A.children)}})},i=t.ref(e.modelValue||0),c=w=>{let A=r.value.findIndex(L=>L.paneKey==w);r.value.length==0||A==-1||(i.value=A)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=w=>{const A=m.value,L=f.value;if(!A||!L||!L[i.value])return;const F=L[i.value];let T=0;e.direction==="vertical"?T=F.offsetTop-A.offsetTop+10-(A.offsetHeight-F.offsetHeight)/2:T=F.offsetLeft-(A.offsetWidth-F.offsetWidth)/2,y(A,T,w?0:.3,e.direction)},y=(w,A,L,F)=>{let T=0;const E=F==="horizontal"?w.scrollLeft:w.scrollTop,x=L===0?1:Math.round(L*1e3/16);function $(){F==="horizontal"?w.scrollLeft+=(A-E)/x:w.scrollTop+=(A-E)/x,++T<x&&Pe($)}$()},g=(w=l.default?.())=>{r.value=[],w=w?.filter(A=>typeof A.children!="string"),w&&w.length&&s(w),c(e.modelValue),t.nextTick(()=>{h()})},v=w=>{a=w.fixed};t.watch(()=>l.default?.(),w=>{g(w)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,w=>{if(c(w),h(),a){let A=Ve(n.value).top+b(),L=Math.ceil(A-e.top);window.scrollTo({top:L,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:w=>{o("update:modelValue",w.paneKey),o("change",w)},tabChange:(w,A)=>{o("click",w),!(w.disabled||i.value==A)&&(i.value=A,u.updateValue(w))},setTabItemRef:(w,A)=>{f.value[A]=w}},{tabsContentRef:p,touchState:k,touchMethods:S}=Bu(e,u),N=t.computed(()=>{let w=i.value*100;k.moving&&(w+=k.offset);let A={transform:e.direction=="horizontal"?`translate3d(-${w}%, 0, 0)`:`translate3d( 0,-${w}%, 0)`,transitionDuration:k.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(A={}),A}),C=t.computed(()=>({background:e.background})),B=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const w=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:w,marginBottom:w}:{marginLeft:w,marginRight:w}}),D=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:V,tabsActiveStyle:B,container:n,getScrollY:d,onStickyScroll:v,...u,...S,hasFixedTitle:D}}}),Tu=["onClick"],Eu={key:0,class:"fox-tabs__titles-fixed-item"},Du=["onClick"],xu={key:0,class:"fox-tabs__titles-fixed-item"};function Iu(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Tu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Eu,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Du))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",xu,[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:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const zt=J($u,[["render",Iu]]),{create:qu}=W("tab-pane"),Mu=qu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function zu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Lt=J(Mu,[["render",zu]]);class Ja{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=_t(o,null,this.config)}updateChildren(o,l){l?l.children=_t(o,l,this.config):this.nodes=_t(o,null,this.config)}getNodeByValue(o){let l;return ns(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&!!a.length;return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&!!a.length}}const{create:Lu,scope:Pu}=W("cascader-pane"),Fu=Lu({components:{Loading:te.Loading,Checklist:te.Checklist,[zt.name]:zt,[Lt.name]:Lt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Ja([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),d=new Map;let m;const f=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=ku(u,l.value.convertConfig)),s.value=new Ja(u,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const u=r.value;if(u===void 0||!s.value.nodes.length)return;if(u.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let k=s.value.nodes.find(S=>S.value===u[0]);if(k){p=[k.value],a.value=!0;const S=await u.slice(1).reduce(async(N,C)=>{const B=await N;await y(B);const V=B?.children?.find(D=>D.value===C);return V&&p.push(C),Promise.resolve(V)},Promise.resolve(k));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,N)=>{n.value=N,b.handleNode(S,!0)})},y=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let k=d.get(u);k||(k=new Promise(N=>{l.value.lazyLoad?.(u,N)}),d.set(u,k));const S=await k;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},g=u=>{const p=u.map(k=>k.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:v}=ae.useFoxI18n(Pu),b={async handleNode(u,p){const{disabled:k,loading:S}=u;if(!(!p&&k||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const N=i.value.map(C=>C.selectedNode);g(N),o("pathChange",N)}return}if(s.value.hasChildren(u,c.value)){const N=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,N),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=N,!p){const C=i.value.map(B=>B.selectedNode);o("pathChange",C)}return}m=u,!S&&(await y(u),m===u&&(i.value[n.value].selectedNode=u,b.handleNode(u,p)))}},handleTabClick(u){m=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:v("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...b}}}),Ru={role:"menu",class:"fox-cascader__pane"},Ou=["aria-checked","aria-disabled","onClick"],Ku={class:"fox-cascader__item__title"},Uu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Hu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",Ru,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",Ku,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Ou))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Uu]),_:1}))]),_:1},8,["modelValue","onClick"])}const ju=J(Fu,[["render",Hu]]),{create:Wu}=W("cascader"),Yu=Wu({components:{FoxCascaderPane:ju,FoxPopup:ie},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),Xu=["innerHTML"];function Qu(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Xu)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Io=J(Yu,[["render",Qu]]);function Pt(e,o){const l=e.textKey??"text";return o[l]??""}function Ft(e,o){const l=e.valueKey??"value";return o[l]}function rs(e,o){const l=e.childrenKey??"children";return o[l]}function Gt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Pt(e,a),s=Ft(e,a);l.texts.push(r),l.values.push(s??"")}return l}function ss(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Pt(e,o[s])===r){const c=Ft(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=rs(e,o[s]);Array.isArray(m)&&ss(e,m,l,n+1,a);return}}function is(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Ft(e,o[s])===r){const c=Pt(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=rs(e,o[s]);Array.isArray(m)&&is(e,m,l,n+1,a);return}}function Jo(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=Pt(e,o[n]),r=Pt(e,l[n]);if(a!==r)return!1;const s=Ft(e,o[n]),i=Ft(e,l[n]);if(s!==i)return!1}return!0}let Gu=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Zu(){const e=t.getCurrentInstance();return new Gu(e.proxy)}function Ju(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,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}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Zu(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([P,q])=>{P&&(b.value=await v.load(P,q))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),k=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([P])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(P)?P:[],k.value=Array.isArray(P)?P:[]);return}if(i.valueType==="item"){let q=P;if(!Jo(i,q,S.value)){S.value=q;let U=Gt(i,q);u.value=U.texts,k.value=U.values}}else if(i.valueType==="text"){let q=P,U=[];if(ss(i,b.value,q,0,U),!Jo(i,U,S.value)){S.value=U;let j=Gt(i,U);q.value=j.texts,k.value=j.values}}else{let q=[];if(is(i,b.value,P,0,q),!Jo(i,q,S.value)){S.value=q;let U=Gt(i,q);u.value=U.texts,k.value=U.values}}},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),B=Ne(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const P={};return B.value&&(P["text-align"]=B.value),P}),D=t.ref(!1),w=()=>{d.value===!0||m.value===!0||(D.value=!0)},A=P=>{D.value=P},L=(P,q)=>{let U=q.map(Z=>{if(Z==null)return Z;let K={...Z};return Reflect.deleteProperty(K,"text"),K[i.textKey]=Z.text??"",Reflect.deleteProperty(K,"value"),K[i.valueKey]=Z.value??"",K});S.value=U;let j=Gt(i,U);u.value=j.texts,k.value=j.values,i.valueType==="text"?(f("change",u.value,U),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",U,U),f("update:modelValue",U)):(f("change",k.value,U),f("update:modelValue",k.value)),f("update:pathNodes",U)},F=P=>{let q=P.map(U=>{if(U==null)return U;let j={...U};return Reflect.deleteProperty(j,"text"),j[i.textKey]=U.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=U.value??"",j});f("pathChange",q)},T=P=>{g.value=!0,f("focus",k.value,P)},E=P=>{setTimeout(()=>{g.value=!1},0),f("blur",k.value,P)},x=t.computed(()=>({[`${N}__append`]:!0})),$=t.computed(()=>ge(i.unit)>0),H=t.computed(()=>ge(i.unit)>0&&!g.value),R=t.computed(()=>({hidden:!H.value})),Y=P=>{S.value=[],u.value=[],k.value=[],f("update:modelValue",[]),f("change",[],P),f("clear",[]),f("update:pathNodes",[])},Q=t.computed(()=>i.clearable&&!d.value&&!m.value),I=t.computed(()=>{let P=k.value&&k.value.length>0;return i.clearable&&P&&g.value}),M=P=>{I.value?Y(P):w()},O=t.computed(()=>I.value&&Q.value?n:a),z=t.computed(()=>({action:!0}));return()=>{const P={class:C.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:T,onBlur:E};s&&(P.disabled=!0);const q=[],U=t.h("input",P);q.push(U);const j=[],Z={class:["action-icon"]},K=t.h(O.value,Z),X={class:z.value,onClick:M},G=t.h("view",X,{default:()=>[K]});if(j.push(G),$.value){const Ze=t.h("view",{class:R.value},[i.unit]);j.push(Ze)}const ee={class:x.value},_=t.h("view",ee,{default:()=>j});q.push(_);const oe={default:()=>q};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let le={};le.visible=D.value,le["onUpdate:visible"]=A,le.modelValue=k.value,le.onChange=L,le.onPathChange=F,le.options=b.value,le.title=i.title,le.lazy=i.lazy,le.lazyLoad=i.lazyLoad,le.valueKey=i.valueKey,le.textKey=i.textKey,le.childrenKey=i.childrenKey,le.convertConfig=i.convertConfig;const Te=t.h(r,le);oe.hide=()=>[Te];const ve=me(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:_u,create:ed,scope:td}=W("cascader-item"),Gn=ed(Ju(_u,td,be,te.CircleClose,te.ArrowRight,Io,!1));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",f="month",h="quarter",y="year",g="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(F,T,E){var x=String(F);return!x||x.length>=T?F:""+Array(T+1-x.length).join(E)+F},S={s:k,z:function(F){var T=-F.utcOffset(),E=Math.abs(T),x=Math.floor(E/60),$=E%60;return(T<=0?"+":"-")+k(x,2,"0")+":"+k($,2,"0")},m:function F(T,E){if(T.date()<E.date())return-F(E,T);var x=12*(E.year()-T.year())+(E.month()-T.month()),$=T.clone().add(x,f),H=E-$<0,R=T.clone().add(x+(H?-1:1),f);return+(-(x+(E-$)/(H?$-R:R-$))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y,w:m,d,D:g,h:c,m:i,s,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},N="en",C={};C[N]=p;var B=function(F){return F instanceof A},V=function F(T,E,x){var $;if(!T)return N;if(typeof T=="string"){var H=T.toLowerCase();C[H]&&($=H),E&&(C[H]=E,$=H);var R=T.split("-");if(!$&&R.length>1)return F(R[0])}else{var Y=T.name;C[Y]=T,$=Y}return!x&&$&&(N=$),$||!x&&N},D=function(F,T){if(B(F))return F.clone();var E=typeof T=="object"?T:{};return E.date=F,E.args=arguments,new A(E)},w=S;w.l=V,w.i=B,w.w=function(F,T){return D(F,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var A=function(){function F(E){this.$L=V(E.locale,null,!0),this.parse(E)}var T=F.prototype;return T.parse=function(E){this.$d=function(x){var $=x.date,H=x.utc;if($===null)return new Date(NaN);if(w.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var R=$.match(b);if(R){var Y=R[2]-1||0,Q=(R[7]||"0").substring(0,3);return H?new Date(Date.UTC(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Q)):new Date(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Q)}}return new Date($)}(E),this.$x=E.x||{},this.init()},T.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},T.$utils=function(){return w},T.isValid=function(){return this.$d.toString()!==v},T.isSame=function(E,x){var $=D(E);return this.startOf(x)<=$&&$<=this.endOf(x)},T.isAfter=function(E,x){return D(E)<this.startOf(x)},T.isBefore=function(E,x){return this.endOf(x)<D(E)},T.$g=function(E,x,$){return w.u(E)?this[x]:this.set($,E)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(E,x){var $=this,H=!!w.u(x)||x,R=w.p(E),Y=function(U,j){var Z=w.w($.$u?Date.UTC($.$y,j,U):new Date($.$y,j,U),$);return H?Z:Z.endOf(d)},Q=function(U,j){return w.w($.toDate()[U].apply($.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(j)),$)},I=this.$W,M=this.$M,O=this.$D,z="set"+(this.$u?"UTC":"");switch(R){case y:return H?Y(1,0):Y(31,11);case f:return H?Y(1,M):Y(0,M+1);case m:var P=this.$locale().weekStart||0,q=(I<P?I+7:I)-P;return Y(H?O-q:O+(6-q),M);case d:case g:return Q(z+"Hours",0);case c:return Q(z+"Minutes",1);case i:return Q(z+"Seconds",2);case s:return Q(z+"Milliseconds",3);default:return this.clone()}},T.endOf=function(E){return this.startOf(E,!1)},T.$set=function(E,x){var $,H=w.p(E),R="set"+(this.$u?"UTC":""),Y=($={},$[d]=R+"Date",$[g]=R+"Date",$[f]=R+"Month",$[y]=R+"FullYear",$[c]=R+"Hours",$[i]=R+"Minutes",$[s]=R+"Seconds",$[r]=R+"Milliseconds",$)[H],Q=H===d?this.$D+(x-this.$W):x;if(H===f||H===y){var I=this.clone().set(g,1);I.$d[Y](Q),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else Y&&this.$d[Y](Q);return this.init(),this},T.set=function(E,x){return this.clone().$set(E,x)},T.get=function(E){return this[w.p(E)]()},T.add=function(E,x){var $,H=this;E=Number(E);var R=w.p(x),Y=function(M){var O=D(H);return w.w(O.date(O.date()+Math.round(M*E)),H)};if(R===f)return this.set(f,this.$M+E);if(R===y)return this.set(y,this.$y+E);if(R===d)return Y(1);if(R===m)return Y(7);var Q=($={},$[i]=n,$[c]=a,$[s]=l,$)[R]||1,I=this.$d.getTime()+E*Q;return w.w(I,this)},T.subtract=function(E,x){return this.add(-1*E,x)},T.format=function(E){var x=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var H=E||"YYYY-MM-DDTHH:mm:ssZ",R=w.z(this),Y=this.$H,Q=this.$m,I=this.$M,M=$.weekdays,O=$.months,z=function(j,Z,K,X){return j&&(j[Z]||j(x,H))||K[Z].slice(0,X)},P=function(j){return w.s(Y%12||12,j,"0")},q=$.meridiem||function(j,Z,K){var X=j<12?"AM":"PM";return K?X.toLowerCase():X},U={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:w.s(I+1,2,"0"),MMM:z($.monthsShort,I,O,3),MMMM:z(O,I),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:z($.weekdaysMin,this.$W,M,2),ddd:z($.weekdaysShort,this.$W,M,3),dddd:M[this.$W],H:String(Y),HH:w.s(Y,2,"0"),h:P(1),hh:P(2),a:q(Y,Q,!0),A:q(Y,Q,!1),m:String(Q),mm:w.s(Q,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:R};return H.replace(u,function(j,Z){return Z||U[j]||R.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(E,x,$){var H,R=w.p(x),Y=D(E),Q=(Y.utcOffset()-this.utcOffset())*n,I=this-Y,M=w.m(this,Y);return M=(H={},H[y]=M/12,H[f]=M,H[h]=M/3,H[m]=(I-Q)/6048e5,H[d]=(I-Q)/864e5,H[c]=I/a,H[i]=I/n,H[s]=I/l,H)[R]||I,$?M:w.a(M)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return C[this.$L]},T.locale=function(E,x){if(!E)return this.$L;var $=this.clone(),H=V(E,x,!0);return H&&($.$L=H),$},T.clone=function(){return w.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},F}(),L=A.prototype;return D.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",g]].forEach(function(F){L[F[1]]=function(T){return this.$g(T,F[0],F[1])}}),D.extend=function(F,T){return F.$i||(F(T,A,D),F.$i=!0),D},D.locale=V,D.isDayjs=B,D.unix=function(F){return D(1e3*F)},D.en=C[N],D.Ls=C,D.p={},D})})(cs);var od=cs.exports;const Le=je(od);var us={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var u=b.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(v)}],f=function(v){var b=i[v];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(v,b){var u,p=i.meridiem;if(p){for(var k=1;k<=24;k+=1)if(v.indexOf(p(k,0,b))>-1){u=k>12;break}}else u=v===(b?"pm":"PM");return u},y={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(v){var b=i.ordinal,u=v.match(/\d+/);if(this.day=u[0],b)for(var p=1;p<=31;p+=1)b(p).replace(/\[|\]/g,"")===v&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(v){var b=f("months"),u=(f("monthsShort")||b.map(function(p){return p.slice(0,3)})).indexOf(v)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(v){var b=f("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function g(v){var b,u;b=v,u=i&&i.formats;for(var p=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,w,A){var L=A&&A.toUpperCase();return w||u[A]||l[A]||u[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,T,E){return T||E.slice(1)})})).match(n),k=p.length,S=0;S<k;S+=1){var N=p[S],C=y[N],B=C&&C[0],V=C&&C[1];p[S]=V?{regex:B,parser:V}:N.replace(/^\[|\]$/g,"")}return function(D){for(var w={},A=0,L=0;A<k;A+=1){var F=p[A];if(typeof F=="string")L+=F.length;else{var T=F.regex,E=F.parser,x=D.slice(L),$=T.exec(x)[0];E.call(w,$),D=D.replace($,"")}}return function(H){var R=H.afternoon;if(R!==void 0){var Y=H.hours;R?Y<12&&(H.hours+=12):Y===12&&(H.hours=0),delete H.afternoon}}(w),w}}return function(v,b,u){u.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var p=b.prototype,k=p.parse;p.parse=function(S){var N=S.date,C=S.utc,B=S.args;this.$u=C;var V=B[1];if(typeof V=="string"){var D=B[2]===!0,w=B[3]===!0,A=D||w,L=B[2];w&&(L=B[2]),i=this.$locale(),!D&&L&&(i=u.Ls[L]),this.$d=function(x,$,H){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*x);var R=g($)(x),Y=R.year,Q=R.month,I=R.day,M=R.hours,O=R.minutes,z=R.seconds,P=R.milliseconds,q=R.zone,U=new Date,j=I||(Y||Q?1:U.getDate()),Z=Y||U.getFullYear(),K=0;Y&&!Q||(K=Q>0?Q-1:U.getMonth());var X=M||0,G=O||0,ee=z||0,_=P||0;return q?new Date(Date.UTC(Z,K,j,X,G,ee,_+60*q.offset*1e3)):H?new Date(Date.UTC(Z,K,j,X,G,ee,_)):new Date(Z,K,j,X,G,ee,_)}catch{return new Date("")}}(N,V,C),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),A&&N!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var F=V.length,T=1;T<=F;T+=1){B[1]=V[T-1];var E=u.apply(this,B);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}T===F&&(this.$d=new Date(""))}else k.call(this,S)}}})})(us);var nd=us.exports;const ld=je(nd);var ds={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(ds);var ad=ds.exports;const rd=je(ad);var fs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,y,g,v){var b=f.name?f:f.$locale(),u=s(b[h]),p=s(b[y]),k=u||p.map(function(N){return N.slice(0,g)});if(!v)return k;var S=b.weekStart;return k.map(function(N,C){return k[(C+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,b){return v||b.slice(1)})}(f.formats[h.toUpperCase()])},m=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(fs);var sd=fs.exports;const id=je(sd);var ms={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(l);if(m.isBefore(f))return 1}var h=s(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),y=this.diff(h,l,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ms);var cd=ms.exports;const ud=je(cd);var ps={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(ps);var dd=ps.exports;const fd=je(dd);var hs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(hs);var md=hs.exports;const pd=je(md);var gs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(gs);var hd=gs.exports;const gd=je(hd);var ys={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(ys);var yd=ys.exports;const vd=je(yd);Le.extend(id);Le.extend(rd);Le.extend(ld);Le.extend(ud);Le.extend(fd);Le.extend(pd);Le.extend(gd);Le.extend(vd);const ne={format(e,o){return Le(e).format(o)},parser(e,o){return Le(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e,o){e=e||0;let l=o??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return n!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=ne.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=ne.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},_a=new Date().getFullYear(),Zn={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"},mo=(e,o,l)=>{let n;if(Oe(o)?n=o:typeof o=="string"&&ge(o)>0?n=ne.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Sn=(e,o,l)=>{Oe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),ne.format(new Date(n),l)};let Cn={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(_a-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(_a+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:kd,scope:bd}=W("date-picker"),Sd=kd({components:{[yt.name]:yt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(bd),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const k=e[`${u}Date`],S=k.getFullYear();let N=1,C=1,B=0,V=0;u==="max"&&(N=12,C=r(p.getFullYear(),p.getMonth()+1),B=23,V=59);const D=V;return p.getFullYear()===S&&(N=k.getMonth()+1,p.getMonth()+1===N&&(C=k.getDate(),p.getDate()===C&&(B=k.getHours(),p.getHours()===B&&(V=k.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:N,[`${u}Date`]:C,[`${u}Hour`]:B,[`${u}Minute`]:V,[`${u}Seconds`]:D}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:k,maxHour:S,maxMinute:N,maxSeconds:C}=s("max",h.value),{minYear:B,minDate:V,minMonth:D,minHour:w,minMinute:A,minSeconds:L}=s("min",h.value);let F=[{type:"year",range:[B,u]},{type:"month",range:[D,k]},{type:"day",range:[V,p]},{type:"hour",range:[w,S]},{type:"minute",range:[A,N]},{type:"seconds",range:[L,C]}];switch(e.type){case"date":F=F.slice(0,3);break;case"datetime":F=F.slice(0,5);break;case"time":F=F.slice(3,6);break;case"year-month":F=F.slice(0,2);break;case"month-day":F=F.slice(1,3);break;case"datehour":F=F.slice(0,4);break;case"hour-minute":F=F.slice(3,5);break}return F}),c=(u,p,k)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[k],value:u}):S.push({text:`${u}`,value:u}),k==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let k=c(p.range[0],p.range[1],p.type);k&&u.push(k)}),u}),m=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=mo(e,e.modelValue,e.valueFormat):u=mo(e,p,Zn[e.type]):Oe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let k=[];i.value.forEach(S=>{let N=m(S.type,u);k.push(N)}),f.value=k}});const y=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="year-month"){let p=u,k=new Date(p[0],p[1]-1);h.value=k}else if(e.type==="month-day"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),p[0]-1,p[1]);h.value=S}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1]);h.value=S}f.value=u};return{columns:d,dateIndexs:f,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:u=>{y(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let k=Sn(e,p,e.valueFormat);o("update:modelValue",k)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Cd(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const qo=J(Sd,[["render",Cd]]);function wd(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function Nd(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,...Cn,format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),b=Ee(i,"modelValue",M=>M==null?null:typeof M=="string"?M.length==0?null:i.valueFormat?mo(i,M,i.valueFormat)??M:mo(i,M,Zn[i.type])??M:Oe(M)?M:null),u=t.computed(()=>{if(!b.value)return"";const M=wd(i);return Sn(i,b.value,M)}),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),C=t.ref(!1),B=()=>{C.value=!0},V=()=>{C.value=!1};c.expose({showPicker:B,hidePicker:V});const D=M=>{C.value=M},w=M=>{if(b.value=M,i.valueFormat){let O=Sn(i,M,i.valueFormat);f("update:modelValue",O,{}),f("change",O,{})}else f("update:modelValue",M,{}),f("change",M,{})},A=M=>{let z=M.target.value;g.value=!0,f("focus",z,M)},L=M=>{setTimeout(()=>{g.value=!1},0);let z=M.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),f("blur",z,M)},F=t.computed(()=>({[`${p}__append`]:!0})),T=t.computed(()=>ge(i.unit)>0),E=t.computed(()=>ge(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!E.value})),$=M=>{b.value="",f("update:modelValue","",M),f("change","",M),f("clear",""),V()},H=t.computed(()=>i.clearable&&!d.value&&!m.value),R=t.computed(()=>{let M=ge(b.value)>0;return i.clearable&&M&&g.value}),Y=M=>{R.value?$(M):B()},Q=t.computed(()=>R.value&&H.value?n:a),I=t.computed(()=>({action:!0}));return()=>{const M={class:k.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:B,onFocus:A,onBlur:L};s&&(M.disabled=!0);const O=[],z=t.h("input",M);O.push(z);const P=[],q={class:["action-icon"]},U=t.h(Q.value,q),j={class:I.value,onClick:Y},Z=t.h("view",j,{default:()=>[U]});if(P.push(Z),T.value){const ve=t.h("view",{class:x.value},[i.unit]);P.push(ve)}const K={class:F.value},X=t.h("view",K,{default:()=>P});O.push(X);const G={default:()=>O};G.label=c.slots.default,G.prepend=c.slots.prepend,G.append=c.slots.append,G.fixedPreTip=c.slots.fixedPreTip,G.fixedTip=c.slots.fixedTip;const ee=me(i,Cn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||m.value,ee.visible=C.value,ee["onUpdate:visible"]=D,ee.modelValue=b.value,ee["onUpdate:modelValue"]=w,ee.onClear=$;const _={};if(c.slots.top){const ve=c.slots.top();_.top=()=>ve}if(c.slots.bottom){const ve=c.slots.bottom();_.default=()=>ve}const oe=t.h(r,ee,_);G.hide=()=>[oe];const le=me(i,de,ue);return t.h(l,le,G)}}}}const{create:Bd,componentName:Vd,scope:Ad}=W("date-item"),Jn=Bd(Nd(Vd,Ad,be,te.CircleClose,te.Date,qo,!1)),$d=39,Td=64,{create:Ed,scope:Dd}=W("calendar-pane"),xd=Ed({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:ne.getDay(0)},endDate:{type:String,default:ne.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ae.useFoxI18n(Dd),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),m=t.ref(null),f=t.ref(null),h=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),g=t.computed(()=>l.btn),v=t.computed(()=>l["top-info"]),b=t.computed(()=>l["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),p=q=>q.split("-"),k=q=>ne.isEqual(u.currDate[0],q),S=q=>ne.isEqual(u.currDate[1],q),N=q=>u.currDate?.length>0?u.currDate?.some(U=>ne.isEqual(U,q)):!1,C=(q,U)=>U.curData[0]+"-"+U.curData[1]+"-"+ne.getNumTwoBit(+q.day),B=(q,U)=>{const j=C(q,U),{type:Z}=e;return q.type=="curr"?ne.isEqual(u.currDate,j)||(Z=="range"||Z=="week")&&(k(j)||S(j))||Z=="multiple"&&N(j)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(j,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,j)?`${u.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ne.compareDate(u.currDate[0],j)&&ne.compareDate(j,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},V=()=>{const{type:q}=e;if(q=="range"&&u.chooseData.length==2||q!="range"){let U=u.chooseData.slice(0);q=="week"&&(U={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("choose",U),e.poppable&&o("update")}},D=(q,U,j=!1)=>{if(B(q,U)!=`${u.dayPrefix}--disabled`){const{type:Z}=e;let[K,X]=U.curData,G=[...U.curData];if(G[2]=ne.getNumTwoBit(Number(q.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=ne.getWhatDay(+G[0],+G[1],+G[2]),Z=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==G[3]&&(ee=oe)}),j?u.chooseData.push([...G]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(G[3]),u.chooseData.push([...G]))}else u.currDate=[G[3]],u.chooseData=[[...G]];else if(Z=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[G[3]]:ne.compareDate(u.currDate[0],G[3])?Array.isArray(u.currDate)&&u.currDate.push(G[3]):Array.isArray(u.currDate)&&u.currDate.unshift(G[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...G]]:ne.compareDate(u.chooseData[0][3],G[3])?u.chooseData=[...u.chooseData,[...G]]:u.chooseData=[[...G],...u.chooseData]}else if(Z=="week"){let ee=ne.getWeekDate(K,X,q.day,e.firstDayOfWeek);u.propStartDate&&ne.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&ne.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[ne.formatResultDate(ee[0]),ne.formatResultDate(ee[1])]}else u.currDate=G[3],u.chooseData=[...G];if(!j){let ee=u.chooseData;Z=="week"&&(ee={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&V()}}},w=q=>{let[U,j,Z]=q;return{date:q,monthWeekNum:ne.getMonthWeek(U,j,Z,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(U,j,Z,e.firstDayOfWeek)}},A=q=>{const U=q=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let j=parseInt(U.curData[0]),Z=parseInt(U.curData[1].toString().replace(/^0/,""));switch(q){case"prev":Z==1&&(j-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(j+=1),Z=Z==12?1:++Z;break}return[j+"",ne.getNumTwoBit(Z),ne.getMonthDays(String(j),String(Z))+""]},L=(q,U,j)=>{let{year:Z,month:K}=j;return U=="prev"&&q>=7&&(q-=7),Array.from(Array(q),(X,G)=>({day:String(G+1),type:U,year:Z,month:K}))},F=(q,U,j,Z)=>{q=q-e.firstDayOfWeek;let{year:K,month:X}=j;return U=="prev"&&q>=7&&(q-=7),Array.from(Array(Z),(ee,_)=>({day:String(_+1),type:U,year:K,month:X})).slice(Z-q)},T=(q,U)=>{const j=ne.getMonthPreDay(+q[0],+q[1]);let Z=Number(q[1])-1,K=Number(q[0]);Z<=0&&(Z=12,K+=1);const X=ne.getMonthDays(String(q[0]),String(q[1])),G=ne.getMonthDays(K+"",Z+""),ee={year:q[0],month:q[1]},_={curData:q,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...F(j,"prev",{month:String(Z),year:String(K)},G),...L(X,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=$d+Td*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=le,U=="next"?(!u.endData||!ne.compareDate(`${u.endData[0]}-${u.endData[1]}-${ne.getMonthDays(u.endData[0],u.endData[1])}`,`${q[0]}-${q[1]}-${q[2]}`))&&u.monthsData.push(_):!u.startData||!ne.compareDate(`${q[0]}-${q[1]}-${q[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(_):u.unLoadPrev=!0},E=()=>{let q=e.startDate?e.startDate:ne.getDay(0),U=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=q,u.propEndDate=U,u.startData=p(q),u.endData=p(U),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const j={year:Number(u.startData[0]),month:Number(u.startData[1])},Z={year:Number(u.endData[0]),month:Number(u.endData[1])};let K=Z.month-j.month;Z.year-j.year>0&&(K=K+12*(Z.year-j.year)),K<=0&&(K=1),T(u.startData,"next");let X=1;do T(A("next"),"next");while(X++<K);if(u.monthsNum=K,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),U&&ne.compareDate(U,u.currDate[1])&&u.currDate.splice(1,1,U),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let G=[],ee={};u.currDate.forEach(_=>{q&&!ne.compareDate(_,q)&&U&&!ne.compareDate(U,_)&&(Object.hasOwnProperty.call(ee,_)||(G.push(_),ee[_]=_))}),u.currDate=[...G],u.defaultData=[...p(G[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[G,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(G,ee,_,e.firstDayOfWeek);u.currDate=oe,q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),U&&ne.compareDate(U,u.currDate[1])&&u.currDate.splice(1,1,U),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(q&&ne.compareDate(u.currDate,q)?u.currDate=q:U&&!ne.compareDate(u.currDate,U)&&(u.currDate=U),u.defaultData=[...p(u.currDate)])};$e({scrollToDate:q=>{ne.compareDate(q,u.propStartDate)?q=u.propStartDate:ne.compareDate(q,u.propEndDate)||(q=u.propEndDate);let U=p(q);u.monthsData.forEach((j,Z)=>{if(j.title==a("monthTitle",{year:U[0],month:U[1]})&&c.value){let K=u.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let X=0,G=setInterval(()=>{if(X++,c.value){let ee=K/10;c.value.scrollTop=c.value.scrollTop+ee}X>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=u.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let q=0,U=0;u.defaultData.length>0&&u.monthsData.forEach((K,X)=>{K.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(q=X),(e.type=="range"||e.type=="week")&&K.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(U=X)}),R(u.monthsNum,q),u.currentIndex=q,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),D({day:u.defaultData[5],type:"curr"},u.monthsData[U],!0)):e.type=="week"?D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(K=>{let X=p(K),G=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:X[0],month:X[1]})&&(G=_)}),D({day:X[2],type:"curr"},u.monthsData[G],!0)}):D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let j=u.monthsData[u.monthsData.length-1],Z=j.cssHeight+j.cssScrollHeight;We(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(Z/(u.monthsNum+1))}});const R=(q,U)=>{q>=3?U>0&&U<q?u.defaultRange=[U-1,U+3]:U==0?u.defaultRange=[U,U+4]:U==q&&(u.defaultRange=[U-2,U+2]):u.defaultRange=[0,q+2];let j=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=j},Y=(q,U)=>(e.type=="range"||e.type=="week")&&q.type=="curr"&&B(q,U)=="fox-calendar__day--active",Q=(q,U)=>Y(q,U)&&k(C(q,U)),I=(q,U)=>u.currDate.length>=2&&S(C(q,U))?Y(q,U):!1,M=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},O=q=>{const U=`${q.year}-${q.month}-${Number(q.day)<10?"0"+q.day:q.day}`;return ne.isEqual(U,ne.date2Str(new Date))},z=q=>{if(u.monthsData.length<=1)return;const U=q.target.scrollTop;let j=Math.floor(U/u.avgHeight);if(j==0)U>=u.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<u.monthsNum-1)U>=u.monthsData[j+1].cssScrollHeight&&(j+=1),U<u.monthsData[j].cssScrollHeight&&(j-=1);else{const Z=Math.round(U+h.value);Z<u.monthsData[j].cssScrollHeight+u.monthsData[j].cssHeight&&U>u.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=u.monthsNum&&Z>=u.monthsData[j+1].cssScrollHeight+u.monthsData[j+1].cssHeight&&(j+=1),j>=1&&U<u.monthsData[j-1].cssScrollHeight&&(j-=1)}u.currentIndex!==j&&(u.currentIndex=j,R(u.monthsNum,j)),u.yearMonthTitle=u.monthsData[j].title},P=()=>{u.chooseData.splice(0),u.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,q=>{q&&e.poppable&&P()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:v,bottomInfo:b,rangeTip:M,mothsViewScroll:z,getClass:B,isStartTip:Q,isEndTip:I,chooseDay:D,isCurrDay:O,confirm:V,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),Id={class:"fox-calendar__header"},qd={key:0,class:"fox-calendar__header-title"},Md={key:1,class:"fox-calendar__header-slot"},zd={key:2,class:"fox-calendar__header-subtitle"},Ld={class:"fox-calendar__weekdays",ref:"weeksPanel"},Pd={class:"fox-calendar__panel",ref:"monthsPanel"},Fd={class:"fox-calendar__month-title"},Rd={class:"fox-calendar__days"},Od=["onClick"],Kd={class:"fox-calendar__day-value"},Ud={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Hd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},jd={key:2,class:"fox-calendar__day-tips--curr"},Wd={key:4,class:"fox-calendar__day-tip"},Yd={key:0,class:"fox-calendar__footer"};function Xd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Id,[e.showTitle?(t.openBlock(),t.createElementBlock("view",qd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Md,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",zd,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Pd,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Fd,t.toDisplayString(s.title),1),t.createElementVNode("view",Rd,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Kd,[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",Ud,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Hd,[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",jd,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",Wd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Od))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Yd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const er=J(xd,[["render",Xd]]),Qd=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),wn={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:Gd}=W("calendar"),Zd=Gd({components:{[er.name]:er,[ie.name]:ie},props:{...wn},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=v=>{i.value?.scrollToDate(v)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:d});const m=()=>{o("update:visible",!1)},f=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{f()},update:m,close:f,select:v=>{o("select",v)},choose:v=>{f(),o("choose",v)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function Jd(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const Mo=J(Zd,[["render",Jd]]),_o=(e,o)=>{let l;return Oe(e)?l=e:typeof e=="string"&&ge(e)>0?l=ne.parser(e,o):l=new Date,l},it=(e,o,l)=>(Oe(o)||(o=new Date),ne.format(o,l)),ct=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=ne.date2Str(e),r=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function _d(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...de,...wn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},p=(z,P="one",q="YYYY-MM-DD")=>{if(Qd(z)){u();return}if(v.value&&Array.isArray(z)&&z.length==2){let U,j;typeof z[0]=="string"?(U=_o(z[0],q),j=_o(z[1],q)):(U=z[0],j=z[1]);let Z=ct(U),K=ct(j);(b.startDate===null||b.startDate.getTime()!==U.getTime()||b.endDate?.getTime()!==j.getTime())&&(b.startDate=U,b.startArray=Z,b.endDate=j,b.endArray=K)}else{let U;typeof z=="string"?U=_o(z,q):U=z;let j=ct(U);(b.startDate===null||b.startDate.getTime()!==U.getTime())&&(b.startDate=U,b.startArray=j)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,z=>{p(z,i.type,i.valueFormat)});const k=t.computed(()=>{if(b.startDate===null)return"";if(v.value){let z=it(i,b.startDate,i.format),P=it(i,b.endDate,i.format);return`${z} ${i.rangeSeparator} ${P}`}else{let z=it(i,b.startDate,i.format);return i.showWeek&&(z=`${z} ${b.startArray[4]}`),z}}),S=t.computed(()=>{if(b.startDate===null)return null;if(v.value){let z=ne.date2Str(b.startDate),P=ne.date2Str(b.endDate??new Date);return[z,P]}else return ne.date2Str(b.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),B=Ne(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const z={};return B.value&&(z["text-align"]=B.value),z}),D=t.ref(!1),w=()=>{m.value||d.value||(D.value=!0)},A=z=>{D.value=z},L=z=>{if(z){if(v.value&&Array.isArray(z)){let P=z[0],q=pe(P[0]),U=pe(P[1]),j=pe(P[2]),Z=new Date(q,U-1,j),K=z[1];q=pe(K[0]),U=pe(K[1]),j=pe(K[2]);let X=new Date(q,U-1,j);if(b.startDate=Z,b.startArray=ct(Z),b.endDate=X,b.endArray=ct(X),i.valueFormat){let G=it(i,Z,i.valueFormat),ee=it(i,X,i.valueFormat);f("update:modelValue",[G,ee],{})}else f("update:modelValue",[Z,X],{})}else{let P=z,q=pe(P[0]),U=pe(P[1]),j=pe(P[2]),Z=new Date(q,U-1,j);if(b.startDate=Z,b.startArray=ct(Z),i.valueFormat){let K=it(i,Z,i.valueFormat);f("update:modelValue",K,{})}else f("update:modelValue",Z,{})}f("change",z,{})}},F=z=>{let q=z.target.value;g.value=!0,f("focus",q,z)},T=z=>{setTimeout(()=>{g.value=!1},0);let q=z.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,z)},E=t.computed(()=>({[`${N}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),$=t.computed(()=>ge(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!$.value})),R=z=>{u(),f("update:modelValue",null,z),f("change","",z),f("clear","")},Y=t.computed(()=>i.clearable&&!d.value&&!m.value),Q=t.computed(()=>{let z=ge(k.value)>0;return i.clearable&&z&&g.value}),I=z=>{Q.value?R(z):w()},M=t.computed(()=>Q.value&&Y.value?a:r),O=t.computed(()=>({action:!0}));return()=>{const z={class:C.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:w,onFocus:F,onBlur:T};s&&(z.disabled=!0);const P=[],q=t.h("input",z);P.push(q);const U=[],j={class:["action-icon"]},Z=t.h(M.value,j),K={class:O.value,onClick:I},X=t.h("view",K,{default:()=>[Z]});if(U.push(X),x.value){const Ze=t.h("view",{class:H.value},[i.unit]);U.push(Ze)}const G={class:E.value},ee=t.h("view",G,{default:()=>U});P.push(ee);const _={default:()=>P};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=me(i,wn);oe.visible=D.value,oe["onUpdate:visible"]=A,oe["default-value"]=S.value,oe.onChoose=L;const le={};if(c.slots.btn){const Ze=c.slots.btn();le.btn=()=>Ze}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const Te=t.h(l,oe,le);_.hide=()=>[Te];const ve=me(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:ef,create:tf,scope:of}=W("calendar-item"),_n=tf(_d(ef,of,Mo,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),nf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function lf(e,{CheckNormal:o,Checked:l}){return{props:{...nf},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const v=se(n.iconSize),b=n.checkedIcon??l;return t.h(b,{width:v,height:v,class:c.value})}}else{if(r.icon)return r.icon();{const v=se(n.iconSize),b=n.icon??o;return t.h(b,{width:v,height:v,class:c.value})}}},f=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),y=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():g?[f(),m()]:[m(),f()]])}}}const{componentName:af,create:rf}=W("radio"),zo=rf(lf(af,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:tr,create:sf}=W("radio-group"),Lo=sf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${tr} ${tr}--${e.direction}`,style:a},l.default?.())}}});function or(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(eo(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Et(e,r)===l)return a}return-1}function eo(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Et(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function cf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function uf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let df=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function ff(){const e=t.getCurrentInstance();return new df(e.proxy)}function mf(e){return{text:e,value:e}}const nr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},pf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function hf(e,o,l,n,a){return{props:{...ue,...de,...nr,...pf,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ae(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),f=ff(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await f.load("radio",u,p);if(k.length>0)if(typeof k[0]=="string"){const C=k.map(B=>mf(B));h.value=C}else h.value=k}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{y.value=or(r,p,u,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const u=h.value[y.value];return Et(r,u)}),v=u=>{let p=null,k=null;if(h.value.length>0){let S=or(r,h.value,u,"value");y.value=S,S>=0&&(k=h.value[S],r.valueType==="text"?p=eo(r,k):r.valueType==="item"?p=k:p=Et(r,k))}else p=u;m("update:modelValue",p),m("change",p,k)},b=()=>{let u=null,p=null;if(h.value.length>0&&y.value!==-1){let k=h.value[y.value];r.valueType==="text"?u=eo(r,k):r.valueType==="item"?u=k:u=Et(r,k)}m("update:modelValue",u),m("change",u,p)};if($e({clear(){y.value!==-1&&(y.value=-1,b())}}),r.source){const u=()=>{const p=[],k=me(r,nr);return h.value.forEach((S,N)=>{const C=Et(r,S),B=cf(r,S);let V={...k,label:C,disabled:B};const D=uf(r,S,N);V={...V,...D},c.value&&(V.disabled=!0),i.value&&(V.readonly=!0);const w={};if(s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const L=s.slots.text(S);w.default=()=>[L]}else{const L=eo(r,S);w.default=()=>L}let A=t.h(a,V,w);p.push(A)}),p};return()=>{const p=u(),k={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const C=me(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":v},{default:()=>u})}}}}const{componentName:gf,create:yf,scope:vf}=W("radio-item"),el=yf(hf(gf,vf,be,Lo,zo)),kf=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,k=>{c.partialSelect=k});const d=t.computed(()=>!!i),m=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(k,S)=>{y="click",r("update:modelValue",k),r("change",k,S)};t.watch(()=>a.modelValue,k=>{y=="click"?y="":r("change",k)});const v=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const k=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:k,height:k,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const k=se(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:k,height:k,class:h.value})}}else{if(s.icon)return s.icon();{const k=se(a.iconSize),S=a.icon??o;return t.h(S,{width:k,height:k,class:h.value})}}},b=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=k=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,g(m.value,s.default?.()[0].children);return}if(g(!m.value,s.default?.()[0].children),d.value){const S=i.value.value,N=i.max.value,{label:C}=a,B=S.indexOf(C);B>-1?S.splice(B,1):B<=-1&&(S.length<N||!N)&&S.push(C),i.updateValue(S)}}};return t.onMounted(()=>{d.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{d.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${f.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[v(),b()]])}}),{componentName:bf,create:Sf}=W("checkbox"),Po=Sf(kf(bf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Cf,componentName:lr}=W("checkbox-group"),Fo=Cf({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:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(m=>m!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const m=[];d&&n.children.forEach(f=>{f?.disabled||m.push(f?.label)}),l("update:modelValue",m)},c=()=>{const d=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,d=>{l("change",d)}),$e({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${lr} ${lr}--${e.direction}`,style:d},o.default?.())}}});function ar(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Nn(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(to(e,r)===l)return a}return-1}function Nn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function to(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function wf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Nf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Bf=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Vf(){const e=t.getCurrentInstance();return new Bf(e.proxy)}function Af(e){return{text:e,value:e}}const $f={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"}};function Tf(e,o,l,n,a){return{props:{...$f,...rr,...ue,...de,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ce(t.computed(()=>r.disabled)),c=Ce(t.computed(()=>r.readonly)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),f=Vf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await f.load("checkbox",u,p);if(k.length>0)if(typeof k[0]=="string"){const C=k.map(B=>Af(B));h.value=C}else h.value=k}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{const k=[];Array.isArray(u)&&u.forEach(S=>{let N=ar(r,p,S,r.valueType);N!==-1&&k.push(N)}),!xe(k,y.value)&&(y.value=k)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return y.value.forEach(p=>{let k=h.value[p];u.push(to(r,k))}),u}),v=u=>{let p=[],k=[];if(h.value.length>0){const S=[];Array.isArray(u)&&u.forEach(N=>{let C=ar(r,h.value,N,"value");C!==-1&&S.push(C);const B=h.value[C];k.push(B),r.valueType==="text"?p.push(Nn(r,B)):r.valueType==="item"?p.push(B):p.push(to(r,B))}),y.value=S}else p=u;m("update:modelValue",p),m("change",p,k)},b=t.ref();if($e({toggleAll:u=>{b.value.toggleAll(u)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const u=()=>{const p=[],k=me(r,rr);return h.value.forEach((S,N)=>{const C=to(r,S),B=wf(r,S);let V={...k,label:C,disabled:B};const D=Nf(r,S,N);V={...V,...D},i.value&&(V.disabled=!0),c.value&&(V.readonly=!0);const w={};if(s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(w.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const L=s.slots.text(S);w.default=()=>[L]}else{const L=Nn(r,S);w.default=()=>L}let A=t.h(a,V,w);p.push(A)}),p};return()=>{const p=u(),k={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const C=me(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},{default:()=>u})}}}}const{componentName:Ef,create:Df,scope:xf}=W("checkbox-item"),tl=Df(Tf(Ef,xf,be,Fo,Po)),Bn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:If,create:qf}=W("switch"),Mf=qf({components:{Loading1:te.Loading1},props:{...Bn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=If;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),zf={class:"fox-switch-button"};function Lf(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",zf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Ro=J(Mf,[["render",Lf]]);function Pf(e,o,l,n){return{props:{...ue,...de,...Bn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...me(a,Bn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const u=me(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:Ff,create:Rf,scope:Of}=W("switch-item"),ol=Rf(Pf(Ff,Of,be,Ro));function Kf(e,o,l,n){return{props:{...ue,...de,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"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ae.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),m=Ae(t.computed(()=>a.readonly)),f=Ee(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&ce(f.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),b=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),u=t.computed(()=>ce(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!ce(a.desc)||r.slots.sub),k=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),N=()=>{s("focus",f.value)},C=()=>{s("blur",f.value)},B=t.computed(()=>({[`${e}__append`]:!0})),V=t.computed(()=>ge(a.unit)>0),D=L=>{d.value==!0||m.value==!0||s("click")},w=t.computed(()=>a.icon??l),A=t.computed(()=>({action:!0}));return()=>{const L=[];if(typeof r.slots.content=="function"){const M=r.slots.content();L.push(M)}else{const M=[];if(b.value){const P={tabIndex:0,class:y.value,style:v.value,onFocus:N,onBlur:C,onClick:D};let q=null;r.slots.main?q=t.h("view",P,[r.slots.main(u.value)]):q=t.h("view",P,[u.value]),M.push(q)}if(p.value){const P={tabIndex:0,class:k.value,style:S.value,onFocus:N,onBlur:C,onClick:D};let q=null;r.slots.sub?q=t.h("view",P,[r.slots.sub(a.desc)]):q=t.h("view",P,[a.desc]),M.push(q)}const O={class:h.value},z=t.h("view",O,M);L.push(z)}const F=[],T=se(a.iconSize);let E=r.slots.icon;if(!E){const M={width:T,height:T,class:["action-icon"]};E=t.h(w.value,M)}const x={class:A.value,onClick:D},$=t.h("view",x,{default:()=>[E]});if(F.push($),V.value){const M=t.h("view",{},[a.unit]);F.push(M)}const H={class:B.value},R=t.h("view",H,{default:()=>F});L.push(R);const Y={default:()=>L};Y.label=r.slots.default,Y.prepend=r.slots.prepend,Y.append=r.slots.append,Y.fixedPreTip=r.slots.fixedPreTip,Y.fixedTip=r.slots.fixedTip;const Q=me(a,de,ue);return t.h(n,Q,Y)}}}}const{componentName:Uf,create:Hf,scope:jf}=W("link-item"),nl=Hf(Kf(Uf,jf,te.ArrowRight,be)),Vn={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:Wf,componentName:Yf}=W("rate"),Xf=Wf({props:{...Vn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Yf]:!0})),r=y=>{o("update:modelValue",y),o("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let v=0;g===1&&e.modelValue===g||(v=g,e.allowHalf&&y==2&&(v-=.5)),r(v)},i=(y,g,v)=>{let b=0;for(let u=g.value.length-1;u>=0;u--){const p=g.value[u];if(y>p.offsetLeft){v?b=u+(y>p.offsetLeft+p.clientWidth/2?1:.5):b=u+1;break}}return b},c=Ue(),d={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&n.value&&(y.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),f=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...d,onClick:s,toPxDesc:fe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:m,slots:l,customIcon:f}}}),Qf=["id"],Gf={class:"fox-rate-item__icon--full"},Zf={key:0,class:"fox-rate-item__icon--half"},Jf={key:1,class:"fox-rate-item__icon--half"};function _f(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Gf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",Zf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",Jf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Qf))),128))],34)}const vt=J(Xf,[["render",_f]]);function em(e,o,l,n){return{props:{...ue,...de,...Vn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...me(a,Vn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};if(r.slots.default){const k=r.slots.default();b.label=()=>k}const u=me(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:tm,create:om,scope:nm}=W("rate-item"),ll=om(em(tm,nm,be,vt)),An={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function lm(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(oo(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(vs(e,r)===l)return a}return-1}function oo(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function sr(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function vs(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function am(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function rm(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let sm=class{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let d=l;typeof i=="function"&&(d=d.filter(i));let m=(n-1)*a,f=m+a;f>d.length&&(f=d.length);const h=d.slice(m,f);return{totalSize:d.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[n,a,r,s]);const c=Ge(this.proxy,o);return c===null?(console.error(`${o} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,n,a,r]))}};function im(){const e=t.getCurrentInstance();return new sm(e.proxy)}const{componentName:cm,create:um,scope:dm}=W("infinite-loading"),fm=um({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(dm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=as(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[cm]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,m=()=>{let v=0,b=0,u="down";if(s.value==window){const p=qn();r.value&&(v=d(r.value)+r.value.offsetHeight-p-window.innerHeight),b=p}else{const{scrollHeight:p,clientHeight:k,scrollTop:S}=s.value;v=p-k-S,b=S}return i.beforeScrollTop>b?u="up":u="down",i.beforeScrollTop=b,o("scroll-change",b),v<=e.threshold&&u=="down"},f=()=>{We(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",f,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",f,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,y()}),t.watch(()=>e.modelValue,v=>{v||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),mm={class:"fox-infinite__container"},pm={class:"fox-infinite__bottom"},hm={key:0,class:"fox-infinite__bottom-box"},gm={class:"fox-infinite__bottom-box__text"},ym={class:"fox-infinite__bottom-tips"};function vm(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",mm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",pm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",hm,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",gm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",ym,t.toDisplayString(e.loadMoreText),1)])])],2)}const Oo=J(fm,[["render",vm]]),{componentName:km,create:bm}=W("button"),Sm=bm({components:{Loading:te.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=g=>{!i.value&&!s.value&&o("click",g)},h=t.computed(()=>{const g=km;return{[g]:!0,[`${g}--${n.value}`]:n.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=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:f,classes:h,getStyle:y}}}),Cm={class:"fox-button__wrap"};function wm(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Cm,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Ie=J(Sm,[["render",wm]]),{create:Nm,scope:Bm}=W("searchbar"),Vm=Nm({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Bm),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),o("update:modelValue",S,p),o("change",S,p)},c=t.ref({}),d=p=>{let S=p.target.value;a.active=!0,c.value=e.focusStyle,o("focus",S,p)},m=p=>{setTimeout(()=>{a.active=!1},0);let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),c.value={},o("blur",S,p)},f=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},y=p=>{o("click-input",p)},g=p=>{o("click-left-icon",e.modelValue,p)},v=p=>{o("click-right-icon",e.modelValue,p)},b=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:v,styleSearchbar:b}}}),Am={key:0,class:"fox-searchbar__search-label"},$m={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Tm=["type","maxlength","placeholder","value","disabled","readonly"],Em={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Dm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function xm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",Am,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",$m,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,Tm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",Em,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Dm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ko=J(Vm,[["render",xm]]);function Im(e,o,l){return{props:{...An},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),c=im(),d=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const I={};return n.params&&Object.assign(I,n.params),ce(f.value)||(I[`${n.searchKey}`]=f.value),h.value&&Object.assign(I,h.value),I});let g=!0;const v=async(I,M,O)=>{try{if(u.value===!1)return;let z=null;ce(f.value)||(z=q=>{const U=oo(n,q);if(typeof U=="string"&&U.includes(f.value))return!0;const j=sr(n,q);return!!(typeof j=="string"&&j.includes(f.value))});const P=await c.load("actionsheet",I,M,O,y.value,g,z??void 0);g=!1,Array.isArray(P)?(d.value=P,m.value=1,u.value=!1):!Array.isArray(P.page)||P.page.length===0?(console.warn("[FoxUI] can not load more data"),u.value=!1):(Reflect.apply([].push,d.value,P.page),m.value=Math.ceil(d.value.length/n.pageSize),(P.totalSize&&d.value.length>=P.totalSize||O<P.page.length)&&(u.value=!1)),b.value=!1}catch(z){console.error("[FoxUI] ActionSheet load more data fail",z),u.value=!0,m.value=0,d.value=[]}setTimeout(()=>{a("loaded-data")},250)},b=t.ref(!1),u=t.ref(!0),p=async()=>{if(!n.source){b.value=!1;return}await v(n.source,m.value+1,n.pageSize)};t.watch(()=>f.value,(I,M)=>{ce(I)&&!ce(M)&&p()}),t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([I,M,O])=>{n.source&&p()},{immediate:!0});const k=t.computed(()=>!n.multiple&&n.isAutoBackFill),S=t.ref([]);let N=null;const C=t.ref(n.visible);t.watch(()=>n.visible,I=>{C.value!==I&&(C.value=I),I?N=[...S.value]:N=null});const B=(I,M)=>{const O=[];return Array.isArray(I)||(I=[I]),I.forEach(z=>{let P=lm(n,M,z,n.valueType);P!==-1&&O.push(P)}),xe(O,S.value)?!1:(S.value=O,!0)};t.watch([()=>n.modelValue,()=>d.value],([I,M],[O,z])=>{if(B(I,M)){const q=V();D(q)}},{deep:!0});const V=()=>{const I=[],M=[],O=[];for(let U of S.value){const j=d.value[U];M.push(j);const Z=oo(n,j);if(O.push(Z),n.valueType==="item")I.push(j);else if(n.valueType==="text")I.push(Z);else{const K=vs(n,j);I.push(K)}}let z=null,P=null,q=null;return n.multiple?(z=I,P=O,q=M):(z=I[0]??null,P=O[0]??null,q=M[0]??null),{value:z,text:P,item:q}},D=I=>{a("update:modelValue",I.value),a("update:text",I.text),a("change",I.value,I.item,I.text)},w=()=>{N&&(S.value=N)},A=I=>{const M=S.value.indexOf(I);n.multiple?M===-1?S.value.push(I):S.value.splice(M,1):M===-1?S.value=[I]:S.value=[],(k.value||!n.poppable&&!n.showFooter)&&T()},L=I=>{C.value=I,a("update:visible",I)},F=()=>{const I=()=>{w(),L(!1)};if(typeof n.beforeClose=="function"){const M=n.beforeClose("close");qt(M)?M.then(O=>{O!==!1&&I()}).catch(()=>{I()}):M!==!1&&I()}else I()},T=()=>{const I=V(),M=()=>{D(I),L(!1)};if(typeof n.beforeClose=="function"){const O=n.beforeClose("confirm",I.value,I.item,I.text);qt(O)?O.then(z=>{z!==!1&&M()}).catch(()=>{M()}):O!==!1&&M()}else M()},E=()=>{u.value=!0,m.value=0,d.value=[],n.source&&p()},x=()=>{let I=i.title.value??"";r.title&&(I=r.title());const M=t.h("view",{class:["fox-actionsheet__header-title"]},[I]),O=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:F});return t.h("view",{class:["fox-actionsheet__header"]},[M,O])},$=()=>{let I=null;if(r.search)I=r.search();else{const M={onSearch:E,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:f.value,"onUpdate:modelValue":O=>{f.value=O}};I=t.h(Ko,M,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[I])},H=(I,M,O,z,P)=>{if(r.optionLabel)return r.optionLabel({text:I,checked:M,disabled:O,subText:z,item:P});const q=[],U=t.h("view",{class:"fox-actionsheet__list-item-text"},[I]);if(q.push(U),z){const j=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[z]);q.push(j)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},q)},R=(I,M,O,z)=>{if(r.optionIcon)return r.optionIcon({checked:I,disabled:M,iconSize:O,item:z});if(I){if(r.checkedIcon)return r.checkedIcon({disabled:M,item:z});{const P=n.checkedIcon??te.Checked;return t.h(P,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:M,item:z});{const P=n.icon??te.CheckNormal;return t.h(P,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}},Y=()=>{const I=[];for(let M=0;M<d.value.length;M++){const O=d.value[M],z=oo(n,O),P=sr(n,O),q=["fox-actionsheet__list-item"],U={};let j=am(n,O),Z=n.iconSize?se(n.iconSize):null;const K=rm(n,O,M);K&&(j=j||K.disabled,K.class&&q.push(K.class),K.style&&Object.assign(U,K.style)),j=!!(n.disabled||j);const X=S.value.includes(M);j&&q.push("is-disabled"),X&&q.push("is-checked");const G={class:q,style:U,key:`${M}`,onClick:()=>{j||A(M)}};let ee=[];if(r.option)ee.push(r.option({item:O,checked:X,disabled:j}));else{const oe=H(z,X,j,P,O);ee.push(oe);const le=R(X,j,Z,O);ee.push(le)}const _=t.h("view",G,ee);I.push(_)}return I},Q=()=>{let I=[];if(r.buttons)I=r.buttons();else{const O=t.h(Ie,{type:"primary",block:"block",onClick:T,disabled:n.disabled},{default:()=>i.confirmText.value});I.push(O)}return t.h("view",{class:"fox-actionsheet__footer"},[I])};return $e({search:async(I=null,M=!0)=>{h.value=I&&t.toRaw(I),t.triggerRef(h),M&&(u.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{p()})},clear:()=>{u.value=!0,m.value=0,d.value=[]},confirm:()=>{T()},cancel:()=>{F()}}),()=>{const I=[];if(n.showHeader){const Z=x();I.push(Z)}if(n.showSearchbar){const Z=$();I.push(Z)}let M=null;if(r.content)M=r.content();else{const Z=Y(),K={hasMore:u.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:b.value,"onUpdate:modelValue":X=>{b.value=X},onLoadMore:p};M=t.h(Oo,K,{default:()=>Z})}const O={};n.optionsHeight&&(O.height=n.optionsHeight);const z={"fox-actionsheet__list":!0};n.poppable||(z["fox-actionsheet__list--inner"]=!0);const P=t.h("view",{class:z,style:O},[M]);if(I.push(P),n.showFooter&&!k.value){const Z=Q();I.push(Z)}const q=t.h("view",{class:"fox-actionsheet"},I);if(!n.poppable)return q;const U=["fox-actionsheet__popup"];n.popClass&&U.push(n.popClass);const j={popClass:U.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":L,position:n.position,round:"round",onClickOverlay:F,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ie,j,{default:()=>q})}}}}const{componentName:qm,create:Mm,scope:zm}=W("actionsheet-pane"),Uo=Mm(Im(qm,zm)),Lm={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 Pm(e,o,l,n,a,r,s){return{props:{...ue,...de,...Lm,...An},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue"),b=t.ref(""),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),C=t.ref(!1),B=()=>{C.value=!0},V=z=>{C.value=z},D=z=>{v.value=z,f("update:modelValue",z)},w=(z,P)=>{f("change",z,P)},A=z=>{let q=z.target.value;g.value=!0,f("focus",q,z)},L=z=>{setTimeout(()=>{g.value=!1},0);let q=z.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,z)},F=z=>{b.value=z,f("update:text",z)},T=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!x.value})),H=z=>{v.value="",f("update:modelValue","",z),f("change","",z),f("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!m.value),Y=t.computed(()=>ge(v.value)>0&&g.value),Q=z=>{Y.value?H(z):B()},I=t.computed(()=>Y.value&&R.value?n:a),M=t.computed(()=>({action:!0})),O=t.ref(null);return $e({search:z=>{O.value&&O.value.search(z)},clear:()=>{O.value&&O.value.clear},confirm:z=>{O.value&&O.value.confirm()},cancel:()=>{O.value&&O.value.cancel()}}),()=>{const z={class:k.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:B,onFocus:A,onBlur:L};s&&(z.disabled=!0);const P=[],q=t.h("input",z);P.push(q);const U=[],j={class:["action-icon"]},Z=t.h(I.value,j),K={class:M.value,onClick:Q},X=t.h("view",K,{default:()=>[Z]});if(U.push(X),E.value){const Ze=t.h("view",{class:$.value},[i.unit]);U.push(Ze)}const G={class:T.value},ee=t.h("view",G,{default:()=>U});P.push(ee);const _={default:()=>P};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=me(i,An);oe.ref=O,oe.class=i.actionsheetProps,oe.disabled=d.value||m.value,oe.visible=C.value,oe["onUpdate:visible"]=V,oe.modelValue=v.value,oe["onUpdate:modelValue"]=D,oe.text=b.value,oe["onUpdate:text"]=F,oe.onChange=w,oe.poppable=!0;const le={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},Te=t.h(r,oe,le);_.hide=()=>[Te];const ve=me(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Fm,create:Rm,scope:Om}=W("actionsheet-item"),al=Rm(Pm(Fm,Om,be,te.CircleClose,te.ArrowRight,Uo)),$n={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:Km,create:Um}=W("input-number"),Hm=Um({components:{Minus:te.Minus,Plus:te.Plus},props:{...$n},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=Km;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;o("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let v=n(y);o("update:modelValue",v,g),o("change",v,g)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(o("reduce",y),i()){let g=Number(e.modelValue)-Number(e.step);r(g,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else o("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||o("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let v=y.target.valueAsNumber;v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),r(v,y),o("blur",y)},h=y=>{let g=Number(y);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 y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:f,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:fe}}}),jm=["min","max","disabled","readonly","value"];function Wm(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,jm),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Qe=J(Hm,[["render",Wm]]);function Ym(e,o,l,n){return{props:{...ue,...de,...$n},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g={...me(a,$n),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},v=t.h(n,g,h),b=[];b.push(v);const u={default:()=>b};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const p=me(a,de,ue);return p["content-class"]=d,t.h(l,p,u)}}}}const{componentName:Xm,create:Qm,scope:Gm}=W("inputnumber-item"),rl=Qm(Ym(Xm,Gm,be,Qe)),{create:Zm,componentName:Zt,scope:QB}=W("tabs-bar"),Jm=Zm({components:{MoreH:te.MoreH},props:{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"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{slots:o,emit:l}){const n=t.computed(()=>{const x={};return x[`${Zt}`]=!0,x}),a=t.computed(()=>{const x={};return x[`${Zt}__titles`]=!0,x[`${e.direction}`]=!0,e.align==="left"&&(x.left=!0),e.scroll===!0&&(x.scrollable=!0),e.shape&&(x[`${e.shape}`]=!0),x}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const x=se(e.gutter);return x<=0?0:x}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,x=>{i.value!==x&&(i.value=x,E(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),d=t.ref(),m=t.ref(!1),f=()=>{const x=!m.value;h(x)},h=x=>{const $=x;$?(m.value=$,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,d.value?d.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},y=t.ref(),g=t.ref([]),v=(x,$)=>{g.value[$]=x},b=x=>$=>{v($,x)},u=(x,$)=>{const H=y.value,R=g.value;if(!H||!R||!R[x])return;const Y=R[x];let Q=0;e.direction==="vertical"?Q=Y.offsetTop-(H.offsetHeight-Y.offsetHeight)/2:Q=Y.offsetLeft-(H.offsetWidth-Y.offsetWidth)/2,p(H,Q,$?0:.3,e.direction)},p=(x,$,H,R)=>{let Y=0;const Q=R==="horizontal"?x.scrollLeft:x.scrollTop,I=H===0?1:Math.round(H*1e3/16);function M(){R==="horizontal"?x.scrollLeft+=($-Q)/I:x.scrollTop+=($-Q)/I,++Y<I&&Pe(M)}M()},k=x=>x[e.textKey],S=x=>x[e.valueKey],N=x=>x[e.visibleKey],C=x=>x[e.disabledKey],B=(x,$)=>{const H=e.itemOptions;return typeof H=="function"?H(x,$):H||null},V=(x,$)=>{const H=S(x),R={};R[`${Zt}__titles-item`]=!0,R.disabled=C(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0),e.ellipsis&&(R.ellipsis=!0);const Y=B(x,$);return Y&&(Y.class&&(R[`${Y.class}`]=!0),Y.disabled===!0&&(R.disabled=Y.disabled)),R},D=(x,$)=>{const H={};if(s.value>0){const Y=Math.abs(s.value/2);e.direction==="vertical"?(H["margin-top"]=`${Y}px`,H["margin-bottom"]=`${Y}px`):(H["margin-left"]=`${Y}px`,H["margin-right"]=`${Y}px`)}const R=B(x,$);return R&&R.style&&Object.assign(H,R.style),H},w=(x,$)=>`${S(x)??$}`,A=(x,$)=>{const H=S(x),R={};R[`${Zt}__popup-item`]=!0,R.disabled=C(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0);const Y=B(x,$);return Y&&Y.disabled===!0&&(R.disabled=Y.disabled),R},L=t.computed(()=>(e.data??[]).filter($=>N($)!==!1)),F=(x,$)=>{const H=S(x);i.value=H,e.scroll&&u($,!1),l("update:modelValue",H),l("change",x,$)},T=(x,$)=>{F(x,$),h(!1)},E=x=>{if(!Array.isArray(e.data)||!e.scroll)return;const $=e.data.findIndex(H=>S(H)===i.value);$!==-1&&u($,x)};return t.watch(()=>e.data,()=>{setTimeout(E,0)}),t.onMounted(()=>{E(!0)}),{classes:n,titlesClasses:a,titlesStyles:r,itemClasses:V,itemStyles:D,itemKey:w,popupItemClasses:A,filterTabItems:L,getItemText:k,getItemValue:S,onTabChange:F,titlesRef:y,createItemRefs:b,togglePopupVisible:f,onQuickNavigate:T,popupClasses:c,popupVisible:m,popupRef:d}}}),_m={class:"fox-tabs-bar"},ep=["onClick"],tp={class:"fox-tabs-bar__titles-item-text"},op=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),np=["onClick"];function lp(e,o,l,n,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",_m,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:d=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",tp,t.toDisplayString(e.getItemText(i)),1),op])],14,ep))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:o[0]||(o[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:d=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,np))),128))],2),[[t.vShow,e.popupVisible]])])}const sl=J(Jm,[["render",lp]]),ks=Symbol("TabsStatesKey"),{create:ap}=W("tabs-container"),rp=ap({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.shallowRef([]),n={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const f={name:m};n.current.value===m&&(f.loaded=!0),l.value.push(f),t.triggerRef(l)},remove:m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&l.value.splice(f,1)},isLoaded:m=>{const f=l.value.findIndex(h=>h.name===m);return f!==-1?n.current.value?l.value[f].loaded??!1:f===0:!1}};t.provide(ks,n);const a=m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&(l.value[f].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,f])=>{n.current.value!==m&&(n.current.value=m??"",a(m??"")),n.direction.value!==f&&(n.direction.value=f)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},f=l.value.length;if(f<=0)return m;const h=l.value.findIndex(y=>y.name===n.current.value);return n.direction.value==="vertical"?n.tabHeight.value>0&&(m.height=`${f*n.tabHeight.value}px`,h!==-1&&(m.transform=`translate(0, -${h*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(m.width=`${f*n.tabWidth.value}px`,h!==-1&&(m.transform=`translate(-${h*n.tabWidth.value}px, 0)`)),m});let d=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const f=No(r.value);n.tabWidth.value=f.width,n.tabHeight.value=f.height};window.ResizeObserver&&(d=new window.ResizeObserver(m),d.observe(r.value)),m()}),t.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function sp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const il=J(rp,[["render",sp]]),{create:ip}=W("tabs-pane"),cp=ip({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:o}){const l=t.inject(ks);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?he(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),up={class:"fox-tabs-pane__empty"},dp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function fp(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",up,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),dp])])],4)}const cl=J(cp,[["render",fp]]),mp={direction:{type:[String],default:"horizontal"},mode:{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"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function pp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function ir(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function cr(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function hp(e,o){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?o[e.visibleKey]:o.visible??null}function en(e,o){return typeof e.statusKey=="string"&&e.statusKey.length>0?o[e.statusKey]:o.statusKey??null}function tn(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let gp=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(a,null,[l,n]))}};function yp(){const e=t.getCurrentInstance();return new gp(e.proxy)}function vp(e,o,l,n){return{props:{...mp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=yp(),d=t.ref([]),m=t.computed(()=>d.value.filter(I=>hp(a,I)!==!1)),f=t.ref(-1),h=()=>{const I=a.modelValue,M=m.value.findIndex(O=>ir(a,O)===I);f.value!==M&&(f.value=M,a.scroll&&Y(M,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=I=>f.value===I,g=I=>{if(I<0&&I>=m.value.length)return!1;const M=m.value[I],z=(tn(a,M,I)??{}).status??en(a,M);return y(I)||z},v=t.computed(()=>{const I={[i]:!0};return a.mode?I[`is-${a.mode}`]=!0:a.direction&&(I[`is-${a.direction}`]=!0),a.scroll&&(I["is-scroll"]=!0),I}),b=t.computed(()=>({})),u=(I,M,O,z)=>{const P={[`${i}__step`]:!0};return z&&(P[`${z}`]=!0),I===f.value?P["is-active"]=!0:M==="done"?P["is-done"]=!0:M==="error"?P["is-error"]=!0:M==="half"?P["is-half"]=!0:O?P["is-disabled"]=!0:P["is-normal"]=!0,P},p=(I,M={})=>{const O={...M};return I===m.value.length-1?O.flex="0 0 auto":a.step?a.direction==="vertical"?O.height=a.step:O.width=a.step:O.flex="1 1 100%",O},k=(I,M)=>{let O={};if(M<m.value.length-1){const z=M+1;g(M)&&g(z)?a.direction==="vertical"?O.height="100%":O.width="100%":O.opacity="0"}return O},S=I=>m.value.length-1===I,N=(I,M)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&M>f.value||f.value===M)return;const O=f.value,z=M;f.value=M,a.scroll&&Y(M,!1);const P=ir(a,I);s("update:modelValue",P);const q={fromIndex:O,currentIndex:z,item:I,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",P,q)},C=t.ref(!0),B=async(I,M)=>{try{const O=await c.load("stesbar",I,M);Array.isArray(O)&&(d.value=O),C.value=!1}catch(O){console.error("[FoxUI] Load StepsBar Data Fail",O),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([I,M])=>{I&&B(I,M)},{immediate:!0});const V=(I,M,O,z)=>{let P=null;if(r.icon)P=r.icon({item:I,index:M,status:O});else if(O==="done"){const U={};a.iconSize&&(U.width=a.iconSize,U.height=a.iconSize);const j=a.icon??l;P=t.h(j,U)}else P=t.h("span",{},[`${M+1}`]);const q={class:"fox-steps-bar__icon",onClick:()=>{z||N(I,M)}};return t.h("view",q,[P])},D=(I,M,O)=>{const z=t.h("i",{class:"fox-steps-bar__line-inner",style:k(I,M)});return t.h("view",{class:"fox-steps-bar__line"},[z])},w=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const O={};a.iconSize&&(O.width=a.markIconSize,O.height=a.markIconSize);const z=a.markIcon??n;I=t.h(z,O)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},A=(I,M,O,z)=>{const P=[];if(!S(M)){const j=D(I,M);P.push(j)}const q=V(I,M,O,z);P.push(q);const U={class:"fox-steps-bar__head"};return t.h("view",U,P)},L=(I,M,O,z)=>{let P=null;r.main?P=r.main({item:I,index:M,status:O}):P=pp(a,I);const q={class:"fox-steps-bar__main",onClick:()=>{z||N(I,M)}};return t.h("view",q,[P])},F=(I,M,O)=>{let z=null;if(r.sub){z=r.sub({item:I,index:M,status:O});const P={class:"fox-steps-bar__sub"};return t.h("view",P,[z])}return null},T=(I,M)=>{const O=tn(a,I,M)??{},z=O.status??en(a,I);let P=cr(a,I);O.disabled===!0&&(P=!0),a.disabled===!0&&(P=!0);const q=[],U=V(I,M,z,P);U&&q.push(U);const j=L(I,M,z,P);j&&q.push(j);const Z=D(I,M);Z&&q.push(Z);const K=t.h("view",{class:"fox-steps-bar__head"},q),X=O.class,G=O.style??{},ee={ref:R(M),class:u(M,z,P,X),style:p(M,G)};return t.h("view",ee,[K])},E=(I,M)=>{const O=tn(a,I,M)??{},z=O.status??en(a,I);let P=cr(a,I);O.disabled===!0&&(P=!0),a.disabled===!0&&(P=!0);const q=[],U=a.layout;for(let X of U)if(X==="head"){const G=A(I,M,z,P);q.push(G)}else if(X==="main"){const G=L(I,M,z,P);q.push(G)}else if(X==="sub"){const G=F(I,M,z);q.push(G)}else if(X==="mark"){const G=w();q.push(G)}const j=O.class,Z=O.style??{},K={ref:R(M),class:u(M,z,P,j),style:p(M,Z)};return t.h("view",K,q)},x=t.ref(),$=t.ref([]),H=(I,M)=>{$.value[M]=I},R=I=>M=>{H(M,I)},Y=(I,M)=>{const O=x.value,z=$.value;if(!O||!z||!z[I])return;const P=z[I];let q=0;a.direction==="vertical"?q=P.offsetTop-(O.offsetHeight-P.offsetHeight)/2:q=P.offsetLeft-(O.offsetWidth-P.offsetWidth)/2,Q(O,q,M?0:.3,a.direction)},Q=(I,M,O,z)=>{let P=0;const q=z==="horizontal"?I.scrollLeft:I.scrollTop,U=O===0?1:Math.round(O*1e3/16);function j(){z==="horizontal"?I.scrollLeft+=(M-q)/U:I.scrollTop+=(M-q)/U,++P<U&&Pe(j)}j()};return()=>{const I=[];if(a.mode==="simple")for(let O=0;O<m.value.length;O++){const z=m.value[O],P=T(z,O);I.push(P)}else for(let O=0;O<m.value.length;O++){const z=m.value[O],P=E(z,O);I.push(P)}const M={ref:x,class:v.value,style:b.value};return t.h("view",M,I)}}}}const{componentName:kp,create:bp,scope:Sp}=W("steps-bar"),ul=bp(vp(kp,Sp,te.Checklist,te.ArrowRight)),ur=10;function Cp(e,o){return e>o&&e>ur?"horizontal":o>e&&o>ur?"vertical":""}function wp(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},o=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Cp(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:o,isHorizontal:l,state:e}}function Np(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bp(e){e.stopPropagation()}function Vp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Bp(e)}class Ap{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(o,l){this.startMove=o,this.updateMove=l,this.isTouch=Np()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=wp(),n=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),Vp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function $p(e,o){return new Ap(e,o)}const Tp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},Ep=(e,o,l,n=!1)=>({props:{...Tp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),d=t.computed(()=>{const p={};return ce(i.top)||(p.top=i.top),ce(i.right)||(p.right=i.right),ce(i.bottom)||(p.bottom=i.bottom),ce(i.left)||(p.left=i.left),ce(a.width)||(p.width=a.width),ce(a.height)||(p.height=a.height),ce(a.color)||(p.color=a.color),ce(a.background)||(p.background=a.background),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},u=$p(p=>{if(!h.value)return;const k=h.value;y(),i.left=k.offsetLeft,i.top=k.offsetTop,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`,k.style.right=null,k.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const k=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];u.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&u.close()}),()=>{let p=[];const k=typeof r.default=="function"?r.default():[];if(k&&k.length>0)p=k;else{const N=t.h(l,{class:m.value});p.push(N)}const S={ref:N=>{h.value=N},class:c.value,style:d.value,onClick:f};return t.h("view",S,p)}}}),{componentName:Dp,create:xp,scope:Ip}=W("floating-button"),dl=xp(Ep(Dp,Ip,te.Uploader,!1)),qp={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}},Mp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zp(e,o,l){return{props:{...qp},setup(n,{attrs:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["confirmText","cancelText"]),c=e,d=t.ref(!0),m=S=>{d.value=S},f=S=>{if(typeof n.unmount=="function")try{n.unmount()}catch(N){console.error(N)}if(typeof n.callback=="function")try{n.callback(S)}catch(N){console.error(N)}},h=()=>{f("confirm")},y=()=>{f("cancel")},g=()=>{f("close")},v=(S,N)=>Mp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(n.tag,N)):t.h(S,N),b=()=>{const S=[];if(n.icon){const C={class:[`${c}__header-icon`]},B=v(n.icon,C);S.push(B)}if(n.title){const C=t.h("view",{class:`${c}__header-title`},[n.title]);S.push(C)}if(n.showClose&&n.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:g},B=v(n.closeIcon,C);S.push(B)}const N={class:[`${c}__header`]};return t.h("view",N,S)},u=(S,N)=>{const C=[];if(N){const V={class:`${c}__group-title`},D=t.h("view",V,[N]);C.push(D)}if(S){const V=[];Array.isArray(S)||(S=[S]);for(let D of S){const w={class:`${c}__group-row`,innerHTML:D},A=t.h("view",w);V.push(A)}if(V.length>0){const D={class:`${c}__group-rows`},w=t.h("view",D,V);C.push(w)}}if(C.length===0)return null;const B={class:`${c}__group`};return t.h("view",B,C)},p=()=>{const S=[];if(typeof n.message=="string")S.push(n.message);else if(Array.isArray(n.message))for(let C of n.message)if(typeof C=="string"){const B=u(C);S.push(B)}else{const B=u(C.content,C.title);S.push(B)}else if(typeof n.message=="function"){const C=n.message();S.push(C)}else{const C=n.message;S.push(C)}const N={class:`${c}__body`};return t.h("view",N,S)},k=()=>{const S=[];if(n.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:y};n.cancelButtonClass&&C.class.push(n.cancelButtonClass),n.cancleButtonStyle&&typeof n.cancleButtonStyle=="object"&&Object.assign(C.style,n.cancleButtonStyle);const B=t.h("button",C,[n.cancelButtonText??i.cancelText.value]);S.push(B)}if(n.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};n.confirmButtonClass&&C.class.push(n.confirmButtonClass),n.confirmButtonStyle&&typeof n.confirmButtonStyle=="object"&&Object.assign(C.style,n.confirmButtonStyle);const B=t.h("button",C,[n.confirmButtonText??i.confirmText.value]);S.push(B)}if(S.length===0)return null;const N={class:`${c}__footer`};return t.h("view",N,S)};return()=>{const S=[],N=b();N&&S.push(N);const C=p();C&&S.push(C);const B=k();B&&S.push(B);const V={class:{[`${c}`]:!0,[`${c}--${n.type||"info"}`]:!0}},D=t.h("view",V,S),w=[`${c}__popup`];n.popClass&&w.push(n.popClass);const A={};n.width&&(A.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height&&(A.height=typeof n.height=="number"?`${n.height}px`:n.height);const L={popClass:w.join(" "),style:A,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,L,{default:()=>D})}}}}const{componentName:Lp,create:Pp,scope:Fp}=W("messagebox"),Rp=Pp(zp(Lp,Fp,ie)),Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%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",Kp="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",Up="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",Hp="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",jp=new Do,Wp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Yp=e=>{let o=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):l&&(o=e.teleport));const n=document.createElement("view"),a=`messagebox-${jp.get()}`;n.id=a,n.classList.add("fox-messagebox__root"),e.zIndex&&(n.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Rp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...Wp};o&&!Array.isArray(o)&&typeof o=="object"?Object.assign(a,o):(o&&(a.message=o),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),n&&typeof n=="object"?Object.assign(a,n):typeof n=="string"&&(a.type=n)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Up:r==="warning"?a.icon=Hp:r==="error"?a.icon=Op:a.icon=Kp),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}s({action:d})},Yp(a)})},alert:(e,o,l)=>tt.show("alert",e,o,l),confirm:(e,o,l)=>tt.show("confirm",e,o,l),install(e){e.config.globalProperties.$alert=tt.alert,e.config.globalProperties.$confirm=tt.confirm}},Xp=(e,o,l)=>{o=o??{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("Events");let a=!0,r=!0;for(let i in o)i==="bubbles"?a=!!o[i]:i==="cancelable"?r=!!o[i]:n[i]=o[i];n.initEvent(e,a,r),(l??document).dispatchEvent(n)},Qp=new Do,Gp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Zp=e=>`${e}-${Qp.get()}`,Jp=Symbol.for("InnerPageScopeKey"),_p=Symbol.for("PageWrapperKey"),eh="FoxLeave",th="FoxAfterLeave",oh={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function nh(e,o,l,n){return{props:{...ze,...oh},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(Jp,!0);const c={};t.provide(_p,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},f=e,h=C=>{y.value=C,i("update:visible",C)},y=t.ref(!1),g=(C,B)=>Gp(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(a.tag,B)):t.h(C,B),v=()=>{if(!a.showHeader)return null;const C=[];if(s.header){const V=s.header();C.push(V)}else if(a.title){const V=t.h("view",{class:`${f}__header-title`},[a.title]);C.push(V)}if(C.length===0)return null;const B={class:[`${f}__header`]};return t.h("view",B,C)},b=()=>{if(!a.showClose)return null;const C={class:[`${f}__close-icon`],onClick:m},B=a.closeIcon??n;return g(B,C)};let u=null;const p=C=>{Xp(th,{},u)},k=Zp(e),S=()=>{h(!0)},N=()=>{if(!u)return;const C=u.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const B=u.querySelector(".fox-popup");B&&(B.classList.add(`fox-popup-slide-${a.position}-leave-active`),B.classList.add(`fox-popup-slide-${a.position}-leave-to`),B.addEventListener("animationend",p,{once:!0}),B.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{u=document.querySelector(`.${k}`),u?.addEventListener(eh,N,{once:!0}),S()}),()=>{const C=[],B=v();B&&C.push(B);const V=b();V&&C.push(V);const D=s.default?s.default():[];Reflect.apply([].push,C,D);const w={[`${f}`]:!0};a.mode&&(w[`${f}--${a.mode}`]=!0);const A={class:w},L=t.h("view",A,C),F=[`${f}__popup`,k];a.popClass&&F.push(a.popClass),a.position&&F.push(`${f}__popup--${a.position}`);const T={};a.width&&(T.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(T.height=typeof a.height=="number"?`${a.height}px`:a.height);const x={...me(a,ze),popClass:F.join(" "),style:T,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},$=t.h(l,x,{default:()=>L});return t.h("div",{class:[`${f}__root`,k]},[$])}}}}const{componentName:lh,create:ah,scope:rh}=W("popup-wrapper"),fl=ah(nh(lh,rh,ie,te.Close));function sh(e,o){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){o(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),o(a)},500)}const ih={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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 ch(e,o,l=!1){return{props:{...ih},emits:["click"],setup(n,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const y={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(y[`${e}--${n.type??"default"}`]=!0),n.size&&(y[`${e}--${n.size}`]=!0),y}),c=t.computed(()=>{const y={},g=n.textColor??n.color;return g&&(y.color=g),y}),d=y=>{if(y&&he(n.showOverflowTooltip)){const g=y.clientWidth;sh(y,v=>{r.value=v<=g})}};let m=null;t.onMounted(()=>{if(!he(n.showOverflowTooltip))return;const y=s.value;d(y),y&&window.ResizeObserver&&(m=new window.ResizeObserver(()=>{d(y)}),m.observe(y))}),t.onUnmounted(()=>{m?.disconnect()});const f=(y,g)=>{let v=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const b=n.highlightFilter;if(y.indexOf(b)!==-1){const p=y.replace(new RegExp(b,"g"),`<span>${b}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,v=t.h(n.tag,g)}}else if(typeof n.highlightFilter=="function"){const b=n.highlightFilter(y);b&&(g.innerHTML=b,g.class["is-highlight"]=!0,v=t.h(n.tag,g))}return v},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(he(n.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=pe(n.digits),N=pe(n.decimalLength),C=he(n.autoPadding);let B=`${p[0].children}`,V=B.split("").reverse().join("");V=po(V,N,C,S,n.separator),B=V.split("").reverse().join(""),n.highlightFilter!==void 0&&(g=f(B,y)),g||(y.innerHTML=B,g=t.h(n.tag,y))}}}else{if(n.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=`${p[0].children}`;g=f(S,y),g||(y.innerHTML=S,g=t.h(n.tag,y))}}}g||(g=t.h(n.tag,y,{default:a.slots.default}))}if(!n.mark&&!n.icon&&!a.slots.mark)return g;let b=null;if(n.icon){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const N={class:p,style:k};b=t.h("view",N,t.h(n.icon))}else if(a.slots.mark){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const N={class:p,style:k};b=t.h("view",N,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};n.type&&(p[`${e}__mark--${n.type??"default"}`]=!0);const k={},S=n.color;S&&(k["background-color"]=S);const N={class:p,style:k};b=t.h("view",N)}const u={class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}};return t.h("view",u,[b,g])}}}}const{componentName:uh,create:dh,scope:fh}=W("text"),ml=dh(ch(uh,fh,!1));function mh(e,o,l,n,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=o[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=o;for(let d=0;c&&d<r.length;d++){let m=r[d],f=c.find(h=>h[n]===m);if(!f)break;s.push(f[l])}return s}if(Array.isArray(i))for(let c=0;c<o.length&&c<r.length;c++){let d=o[c],m=r[c];const f=d.find(h=>h[n]===m);if(!f)break;s.push(f[l])}else{let c=o;for(let d=0;c&&d<r.length;d++){let m=r[d],f=c.find(h=>h[n]===m);if(!f)break;s.push(f[l]),c=f[a]}}return s}class ph{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function hh(){const e=t.getCurrentInstance();return new ph(e.proxy)}const gh={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 yh(e,o,l=!1){return{props:{...gh},setup(n,{attrs:a,slots:r}){const s=hh(),i=t.ref([]);t.watch([()=>n.source,()=>n.params],async([m,f])=>{i.value=await s.load(n.sourceType,m,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=mh(n.modelValue,i.value,n.textKey,n.valueKey,n.childrenKey);return m.length==0?n.emptyText??"":m.length===1?n.optionType=="item"?`${n.modelValue}${n.separator}${m[0]}`:m[0]:m.join(n.separator)}),d=n.resolveTag?t.resolveComponent(n.tag):n.tag;return()=>{const m={...a};return r.default?r.default({text:c.value,value:n.modelValue}):n.resolveTag?n.emptyText!==void 0&&n.emptyText===c.value?t.h(n.emptyTag??"span",{...a,class:n.emptyClass},c.value):t.h(d,m,{default:()=>c.value}):t.h(d,m,c.value)}}}}const{componentName:vh,create:kh,scope:bh}=W("mapping"),pl=kh(yh(vh,bh,!1));function Sh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Fr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ZB,create:Ch,scope:JB}=W("domain-provider"),hl=Ch(Sh()),wh={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 Nh(e,o){return{inheritAttrs:!1,props:wh,setup(l,{slots:n}){if(st&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(m===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&m.unobserve(h),a.set(h,{visible:null,callback:y}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}a.has(h)&&(a.delete(h),m.unobserve(h))};let c=l.initialVisibleObserverSize;$i({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const f=(h,y,g)=>{m=new IntersectionObserver(v=>{for(let b of v){let u=!1;b.intersectionRatio>0&&(u=!0);const p=a.get(b.target);if(p)try{if(l.loadPolicy==="lazy"&&!u&&p.visible!==null)return;p.visible=u,p.callback(u)}catch(k){console.error(k)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((v,b)=>{a.set(b,v),m?.observe(b)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&f(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:_B,create:Bh,scope:e2}=W("rolling-provider"),gl=Bh(Nh()),{componentName:Vh,create:Ah}=W("cell"),$h=Ah({components:{Right:te.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=Vh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),Th={key:0,class:"fox-cell__icon"},Eh={key:1,class:"fox-cell__title"},Dh={class:"title"},xh={class:"fox-cell__title-desc"};function Ih(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Th,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Eh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Dh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",xh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const yl=J($h,[["render",Ih]]),{componentName:qh,create:Mh}=W("cell-group"),zh=Mh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[qh]:!0}))}}}),Lh={key:1,class:"fox-cell-group__title"},Ph={key:3,class:"fox-cell-group__desc"},Fh={class:"fox-cell-group__wrap"};function Rh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Lh,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",Ph,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Fh,[t.renderSlot(e.$slots,"default")])],2)}const vl=J(zh,[["render",Rh]]),{componentName:Oh,create:Kh}=W("image"),Uh=Kh({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:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Oh;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(v=>{v.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=fe(e.width)),e.height&&(y.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=fe(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,o("load")},f=()=>{l.isError=!0,l.loading=!1,o("error")},h=y=>{o("click",y)};return{...t.toRefs(l),imageClick:h,classes:n,styles:d,stylebox:c,error:f,load:m,show:r,imgRef:s}}}),Hh=["src","date-src","alt"],jh={key:0,class:"fox-img-loading"},Wh={key:1,class:"fox-img-error"};function Yh(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Hh),e.loading?(t.openBlock(),t.createElementBlock("div",jh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Wh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const kl=J(Uh,[["render",Yh]]),{create:Xh}=W("layout"),bl=Xh({}),{componentName:Qh,create:Gh}=W("col"),Zh=Gh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=Qh,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function Jh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Sl=J(Zh,[["render",Jh]]),{componentName:_h,create:eg}=W("row"),tg=eg({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=_h;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
6
6
|
${l("",e.type)}
|
|
7
7
|
${l("justify",e.justify)}
|
|
8
8
|
${l("align",e.align)}
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
${o}
|
|
11
11
|
`:`
|
|
12
12
|
${o}
|
|
13
|
-
`)}}});function Kh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Sl=J(Oh,[["render",Kh]]),{componentName:Uh,create:Hh}=X("divider"),jh=Hh({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=Uh;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function Wh(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Cl=J(jh,[["render",Wh]]);function Yh(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function Xh(e,o,l){const n=Yh(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function Qh(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),Xh(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:ur}=X("grid"),ks=Symbol("grid"),Gh={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}},Zh={props:Gh,setup(e,{slots:o}){Qh(ks,`${ur}-item`)({props:e});const l=t.computed(()=>{const a=ur;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:Jh}=X("grid"),wl=Jh(Zh);function _h(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:eg,componentName:dr}=X("grid-item"),tg=eg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=_h(ks);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[dr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=fe(a.gutter),n.value>=a.columnNum&&(d.marginTop=fe(a.gutter))),d}),i=t.computed(()=>{const d=`${dr}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{o("click",d)}}}}),og={class:"fox-grid-item__text"};function ng(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",og,[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 Nl=J(tg,[["render",ng]]),{componentName:lg,create:ag}=X("navbar"),rg=ag({components:{Left:te.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const f=t.computed(()=>{const b=lg;return{[b]:!0,[`${b}--border`]:l.value,[`${b}--fixed`]:n.value,[`${b}--safe-area-inset-top`]:a.value}}),m=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){o("on-click-back")}function y(){o("on-click-title")}function g(){o("on-click-icon")}function v(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:f,styles:m,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:v}}}),sg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},ig={key:1,class:"fox-navbar__text"},cg={class:"fox-navbar__title"},ug={key:0,class:"fox-navbar__text"},dg={key:1,class:"fox-navbar__text"},fg={class:"fox-navbar__title"},mg={key:0,class:"fox-navbar__text"};function pg(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",sg,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",ig,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",cg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",ug,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",dg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",fg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",mg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Bl=J(rg,[["render",pg]]),hg=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=ae.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(m=!n.visible)=>{a("update:visible",m)},selected:(m,h)=>{a("selected",{item:m,event:h}),c.value=m.id},current:c}}}),{componentName:gg,create:yg,scope:vg}=X("fixednav"),kg=yg(hg(gg,vg,{[at.name]:at,Left:te.Left})),bg={class:"fox-fixednav__list"},Sg=["onClick"],Cg=["src"],wg={class:"span"},Ng={key:0,class:"b"},Bg={class:"text"};function Vg(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",bg,[(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,Cg),t.createElementVNode("view",wg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ng,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Sg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Bg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Vl=J(kg,[["render",Vg]]),{componentName:Ag,create:Tg}=X("menu"),$g=Tg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),u=t.reactive([]);return{children:b,linkChildren:k=>{const S=N=>{N.proxy&&(u.push(N),b.push(N.proxy))},w=N=>{if(N.proxy){let T=u.indexOf(N);T>-1&&u.splice(T,1);let B=b.indexOf(N.proxy);T>-1&&b.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:S,children:b,internalChildren:u},k))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(b=>b.state.showWrapper)),f=t.computed(()=>({[Ag]:!0,"scroll-fixed":r.value})),m=()=>{if(n.value){const b=Ve(n);e.direction==="down"?a.value=b.bottom:a.value=window.innerHeight-b.top}};c({props:e,offset:a});const h=b=>{i.forEach((u,p)=>{p===b?(m(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),g=()=>{const{scrollFixed:b}=e,u=y(window);r.value=u>(typeof b=="boolean"?30:Number(b))},v=b=>{let u="";const{titleClass:p}=e;return b&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:f,barRef:n,getClasses:v}}}),Eg=["onClick"],Dg={class:"fox-menu__title-text"},xg={class:"fox-menu__title-icon"};function Ig(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick: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",Dg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",xg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Eg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Al=J($g,[["render",Ig]]),{componentName:qg,create:Mg}=X("menu-item"),zg=Mg({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ce.name]:ce,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const g=t.getCurrentInstance(),{link:v,removeLink:b}=y;return v(g),t.onUnmounted(()=>{b(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[qg]:!0})),i=t.computed(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(g=>g.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,g={})=>{y!==n.showPopup&&(n.showPopup=y,n.isShowPlaceholderElement=y,y&&(n.showWrapper=!0,o("open")))},onClick:y=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(o("update:modelValue",y.value),o("change",y.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),Lg={class:"fox-menu-item__content fox-menu-item__overflow"},Pg=["onClick"];function Rg(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Lg,[(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(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Pg))),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 Tl=J(zg,[["render",Rg]]),{create:Fg}=X("tabbar"),Og=Fg({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function Kg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const $l=J(Og,[["render",Kg]]),{create:Ug}=X("tabbar-item"),Hg=Ug({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(d=>{if(d.proxy){let f=l.children.length;n.index=f;let m=Object.assign(d.proxy,{index:f});l.children.push(m)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),jg={class:"fox-tabbar-item_icon-box"},Wg={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Yg={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Xg={key:1,class:"fox-tabbar-item_icon-box_dot"},Qg={key:2},Gg={key:0};function Zg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",jg,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Wg,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Yg,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Xg)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Qg,[(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",Gg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const El=J(Hg,[["render",Zg]]),{componentName:Jg,create:_g}=X("elevator"),ey=_g({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,o){const l=t.ref(null),n=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[Jg]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const k="data-";return u.getAttribute(k+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let k=n.listGroup[p];u+=Math.floor(k.clientHeight),n.listHeight.push(u)}},f=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},m=u=>{n.scrollStart=!0;let p=i(u.target,"index"),k=u.touches[0];n.touchState.y1=k.pageY,n.anchorIndex=+p,n.codeIndex=+p,f(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let k=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+k,f(n.codeIndex)},y=()=>{n.scrollStart=!1},g=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},v=u=>{o.emit("click-index",u)},b=u=>{let k=u.target.scrollTop;const S=n.listHeight;n.scrollY=k;for(let w=0;w<S.length-1;w++){let N=S[w],T=S[w+1];if(n.scrollY>=N&&n.scrollY<T){n.currentIndex=w,n.diff=T-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",b)}),Te({scrollTo:f}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let k=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&k!==0&&(k=0),n.fixedTop!==k&&(n.fixedTop=k)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:m,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:v}}}),ty={class:"fox-elevator__list__item__code"},oy=["onClick"],ny=["innerHTML"],ly={class:"fox-elevator__fixed-title"},ay={class:"fox-elevator__bars__inner"},ry=["data-index","onClick"];function sy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",ty,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,ny))],10,oy))),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",ly,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",ay,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,ry))),128))])],32)],2)}const Rt=J(ey,[["render",sy]]),{componentName:OB,create:iy,scope:cy}=X("pagination"),uy=iy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(cy),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:g}=t.toRefs(e),v=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,v)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},f=(h,y,g=!1)=>({number:h,text:y,active:g}),m=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let v=1,b=y;const u=y>g;u&&(v=Math.max(a.value-Math.floor(g/2),1),b=v+g-1,b>y&&(b=y,v=b-g+1));for(var p=v;p<=b;p++){const k=f(p,p,a.value==p);h.push(k)}if(u&&g>0&&i.value){if(v>1){const k=f(v-1,"...");h.unshift(k)}if(b<y){const k=f(b+1,"...");h.push(k)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:m,forceEllipses:i}}}),dy={class:"fox-pagination"},fy={key:0,class:"fox-pagination-contain"},my=["onClick"],py={key:1,class:"fox-pagination-contain"},hy={class:"fox-pagination-simple"};function gy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",dy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",fy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,my))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",py,[t.createElementVNode("view",hy,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Dl=J(uy,[["render",gy]]),{componentName:fr,create:yy}=X("indicator"),vy=yy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=fr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:fr,padZero:Je}}});function ky(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const xl=J(vy,[["render",ky]]),{componentName:by,create:Sy}=X("side-navbar"),Cy=Sy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[by]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),wy={class:"fox-side-navbar__content"},Ny={class:"fox-side-navbar__content__list",ref:"list"};function By(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",wy,[t.createElementVNode("view",Ny,[t.renderSlot(e.$slots,"default")],512)])],2)}const Il=J(Cy,[["render",By]]),{componentName:Vy,create:Ay}=X("side-navbar-item"),Ty=Ay({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Vy]:!0})),handleClick:()=>{o.emit("click")}})}),$y=["ikey"],Ey={class:"fox-side-navbar-item__title"};function Dy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Ey,t.toDisplayString(e.title),1)],10,$y)}const ql=J(Ty,[["render",Dy]]),{componentName:xy,create:Iy}=X("sub-side-navbar"),qy=Iy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[xy]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),My=["ikey"],zy={class:"fox-sub-side-navbar__title__text"},Ly={class:"fox-sub-side-navbar__title__icon"};function Py(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",zy,t.toDisplayString(e.title),1),t.createElementVNode("span",Ly,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,My)}const Ml=J(qy,[["render",Py]]),{componentName:Ry,create:Fy}=X("range"),Oy=Fy({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ke(),c=t.computed(()=>{const{marks:$,max:E,min:x}=e;return Object.keys($).map(parseFloat).sort((R,Y)=>R-Y).filter(R=>R>=x&&R<=E)}),d=t.computed(()=>Number(e.max)-Number(e.min)),f=t.computed(()=>{const $=Ry;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),m=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=$=>!!e.range&&Array.isArray($),v=()=>{const{modelValue:$,min:E}=e;return g($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(E))*100/d.value}%`},b=()=>{const{modelValue:$,min:E}=e;return g($)?`${($[0]-Number(E))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:v(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),p=$=>{const E="fox-range-mark",{modelValue:x,max:A,min:H}=e;let R=Number(H),Y=Number(A);if(e.range){const[P,z]=x;R=P,Y=z}else Y=x;let U=$<=Y&&$>=R;return{[`${E}-text`]:!0,[`${E}-text-active`]:U}},k=$=>{const{min:E,vertical:x}=e;let A={left:`${($-Number(E))/d.value*100}%`};return x&&(A={top:`${($-Number(E))/d.value*100}%`}),A},S=$=>{const{modelValue:E,max:x,min:A}=e;let H=Number(A),R=Number(x);if(e.range){const[P,z]=E;H=P,R=z}return{background:$<=R&&$>=H?e.activeColor:e.inactiveColor}},w=$=>{const{min:E,max:x,step:A}=e;return $=Math.max(+E,Math.min($,+x)),Math.round($/+A)*+A},N=($,E)=>JSON.stringify($)===JSON.stringify(E),T=$=>$[0]>$[1]?$.slice(0).reverse():$,B=($,E)=>{g($)?$=T($).map(w):$=w($),N($,e.modelValue)||o("update:modelValue",$),E&&!N($,n)&&o("change",$)},D=$=>{if(e.disabled)return;const{min:E,modelValue:x}=e,A=Ve(r);let H=$.clientX-A.left,R=A.width;e.vertical&&(H=$.clientY-A.top,R=A.height);const Y=Number(E)+H/R*d.value;if(g(x)){const[U,P]=x,z=(U+P)/2;Y<=z?B([Y,P],!0):B([U,Y],!0)}else B(Y,!0)},C=$=>{e.disabled||(i.start($),a=e.modelValue,g(a)?n=a.map(w):n=w(a),s.value="start")},V=$=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move($),s.value="draging";const E=Ve(r);let x=i.deltaX.value,A=E.width,H=x/A*d.value;e.vertical&&(x=i.deltaY.value,A=E.height,H=x/A*d.value),g(n)?a[l.value]=n[l.value]+H:a=n+H,B(a),$.stopPropagation(),$.preventDefault()},M=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},L=$=>po(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:f,wrapperStyle:h,buttonStyle:y,onClick:D,onTouchStart:C,onTouchMove:V,onTouchEnd:M,...t.toRefs(e),barStyle:u,curValue:L,buttonIndex:l,containerClasses:m,markClassName:p,marksStyle:k,marksList:c,tickStyle:S}}}),Ky={key:0,class:"fox-range-min"},Uy={key:0,class:"fox-range-mark"},Hy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],jy={key:0,class:"number"},Wy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Yy={key:0,class:"number"},Xy={key:1,class:"fox-range-max"};function Qy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ky,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Uy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",jy,t.toDisplayString(e.curValue(s)),1))],4))],42,Hy)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Yy,t.toDisplayString(e.curValue()),1))],4))],40,Wy))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Xy,t.toDisplayString(+e.max),1))],2)}const Ft=J(Oy,[["render",Qy]]),{create:Gy,scope:Zy}=X("short-password"),Jy=Gy({components:{[ce.name]:ce,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Zy),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=m=>{m.stopPropagation(),o("focus")};t.watch(()=>e.visible,m=>{s.value=m}),t.watch(()=>e.modelValue,m=>{a.value=m,String(m).length===r.value&&o("complete",m)});const c=()=>{o("update:visible",!1),o("close")},d=m=>Math.min(Math.max(4,m),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),_y={class:"fox-short-password-title"},ev={class:"fox-short-password-subtitle"},tv={class:"fox-short-password-wrapper"},ov={key:0,class:"fox-short-password__item-icon"},nv={class:"fox-short-password__message"},lv={class:"fox-short-password--error"},av={key:0,class:"fox-short-password--forget"};function rv(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",_y,t.toDisplayString(e.title),1),t.createElementVNode("view",ev,t.toDisplayString(e.desc),1),t.createElementVNode("div",tv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",ov)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",nv,[t.createElementVNode("view",lv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",av,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const zl=J(Jy,[["render",rv]]);class sv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let iv=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class cv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const bs=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);Dn(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:uv}=X("progress"),dv=uv({components:{Checked:te.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),fv={class:"fox-progress"},mv={key:0,class:"fox-progress-text"};function pv(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",fv,[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",mv,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Ot=J(dv,[["render",pv]]),{componentName:hv,create:gv,scope:yv}=X("uploader"),vv=gv({components:{[Ot.name]:Ot,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(yv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[hv]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,k)=>{const S=new sv;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=N=>{p.status="ready",p.message=l("readyUpload"),f(k),o("start",N)},S.onProgress=(N,T)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(N.loaded/N.total*100).toFixed(0),o("progress",{event:N,option:T,percentage:p.percentage})},S.onSuccess=(N,T)=>{p.status="success",p.message=l("success"),o("success",{responseText:N,option:T,fileItem:p}),o("update:fileList",n)},S.onFailure=(N,T)=>{p.status="error",p.message=l("error"),o("failure",{responseText:N,option:T,fileItem:p})};let w=new iv(S);e.autoUpload?w.upload():a.push(new Promise((N,T)=>{N(w)}))},f=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},m=()=>{Promise.all(a).then(p=>{p.forEach(k=>k.upload())})},h=p=>{p.forEach((k,S)=>{const w=new FormData;for(const[T,B]of Object.entries(e.data))w.append(T,B);w.append(e.name,k);const N=t.reactive(new cv);if(N.name=k.name,N.status="ready",N.type=k.type,N.formData=w,N.message=l("waitingUpload"),d(N,S),e.isPreview&&k.type.includes("image")){const T=new FileReader;T.onload=B=>{N.url=B.target.result,n.push(N)},T.readAsDataURL(k)}else n.push(N)})},y=p=>{const k=e.maximum*1,S=e.maximize*1,w=new Array;p=p.filter(T=>T.size>S?(w.push(T),!1):!0),w.length&&o("oversize",w);let N=p.length+n.length;return N>k&&p.splice(p.length-(N-k)),p},g=(p,k)=>{n.splice(k,1),o("delete",{file:p,fileList:n,index:k})},v=(p,k)=>{f(k),bs(e.beforeDelete,{args:[p,n],done:()=>g(p,k)})},b=p=>{if(e.disabled)return;const k=p.target;let{files:S}=k;e.beforeUpload?e.beforeUpload(S).then(w=>u(w)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(k)},u=p=>{const k=y(new Array().slice.call(p));h(k)};return{onChange:b,onDelete:v,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:f,submit:m,renderInput:s}}}),kv={key:0,class:"fox-uploader__slot"},bv={key:0,class:"fox-uploader__preview-img"},Sv={key:0,class:"fox-uploader__preview__progress"},Cv={class:"fox-uploader__preview__progress__msg"},wv=["onClick"],Nv=["onClick","src"],Bv={key:3,class:"fox-uploader__preview-img__file"},Vv=["onClick"],Av={class:"file__name_tips"},Tv={class:"tips"},$v={key:1,class:"fox-uploader__preview-list"},Ev=["onClick"],Dv={class:"file__name_tips"};function xv(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),f=t.resolveComponent("fox-progress"),m=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",kv,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",bv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Sv,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",Cv,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,wv)):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,Nv)):(t.openBlock(),t.createElementBlock("view",Bv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Av,t.toDisplayString(h.name),1)],8,Vv)])),t.createElementVNode("view",Tv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",$v,[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",Dv,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,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Ev),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(m,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Ll=J(vv,[["render",xv]]),Iv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmV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YZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Mv,scope:zv}=X("number-keyboard"),Lv=Mv({components:{[ce.name]:ce},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(zv),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},k=Array.isArray(u)?u:[u];return k.length===1&&(p={id:k[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let k=Array.isArray(p)?p:[p];return k.length>2&&(k=[k[0],k[1]]),k.length==2&&e.title&&e.type!="rightColumn"&&(k=[k[0]]),k.length===1?e.title&&e.type!="rightColumn"?u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:k[0],type:"custom"}):k.length===2&&u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:k[1],type:"custom"}),u}const f=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),m=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&m()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&b(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(u){u.stopPropagation()}function v(u){u.preventDefault(),a.value=void 0}function b(){o("update:visible",!1),o("close")}return{...n,delImg:Iv,lockImg:qv,clickKeyIndex:a,defaultKey:i,closeBoard:b,onTouchEnd:v,onTouchMove:g,onTouchstart:y,keysList:f,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),Pv={ref:"root"},Rv={class:"fox-number-keyboard"},Fv={key:0,class:"fox-number-keyboard__header"},Ov={class:"fox-number-keyboard__title"},Kv={class:"fox-number-keyboard__body"},Uv={class:"fox-number-keyboard__keys"},Hv=["onTouchstart"],jv=["src"],Wv=["src"],Yv={key:0,class:"fox-number-keyboard__sidebar"},Xv={class:"fox-key__wrapper"},Qv=["src"];function Gv(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Pv,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Rv,[e.title?(t.openBlock(),t.createElementBlock("div",Fv,[t.createElementVNode("h3",Ov,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Kv,[t.createElementVNode("div",Uv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,jv)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Wv)):t.createCommentVNode("",!0)],42,Hv)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Yv,[t.createElementVNode("div",Xv,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,Qv)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const Pl=J(Lv,[["render",Gv]]),{componentName:Zv,create:Jv}=X("swipe"),_v=Jv({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:o}){const l=t.computed(()=>({[Zv]:!0})),n=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,d="",f="";const m=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(m.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},y=()=>{m.offset=0,c=!1,o("close",{name:e.name,position:d})},g=t.computed(()=>({transform:`translate3d(${m.offset}px, 0, 0)`})),v=p=>{d=p>0?"right":"left";let k=p;switch(d){case"left":c&&f===d?k=-i.value:k=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&f===d?k=r.value:k=Math.abs(p)>r.value?r.value:p;break}m.offset=k},b=Ke();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||b.start(p)},onTouchMove(p){e.disabled||(b.move(p),b.isHorizontal()&&(m.moving=!0,v(b.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(m.moving)switch(m.moving=!1,f=d,d){case"left":Math.abs(m.offset)<=i.value/2?y():(m.offset=-i.value,h());break;case"right":Math.abs(m.offset)<=r.value/2?y():(m.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),e0={class:"fox-swipe__left",ref:"leftRef"},t0={class:"fox-swipe__content"},o0={class:"fox-swipe__right",ref:"rightRef"};function n0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",e0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",t0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",o0,[t.renderSlot(e.$slots,"right")],512)],38)}const Kt=J(_v,[["render",n0]]),{componentName:l0,create:a0}=X("action-sheet"),r0=a0({components:{[ce.name]:ce,Loading:te.Loading},props:{...Xe,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[l0]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),s0={key:0,class:"fox-action-sheet__title"},i0={key:1},c0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},u0={key:1,class:"fox-action-sheet__menu"},d0=["onClick"],f0={key:1},m0={class:"fox-action-sheet__subdesc"};function p0(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",s0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",i0,[e.description?(t.openBlock(),t.createElementBlock("view",c0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",u0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,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(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",f0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",m0,t.toDisplayString(c[e.optionSubTag]),1)],14,d0))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Rl=J(r0,[["render",p0]]),{componentName:h0,create:g0}=X("backtop"),Fl=g0({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[h0]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(g=0){n.scrollEl instanceof Window?window.scrollTo(0,g):n.scrollEl.scrollTop=g}function c(){let g=je(function v(){var b=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=b*-n.scrollTop/e.duration+n.scrollTop;i(u),g=je(v),(b==e.duration||u==0)&&hr(g)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function f(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function m(g){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",g)}function h(){y.value?n.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),h()}),t.onUnmounted(()=>{f()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,f()});const y=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];y.value&&g.push(y.value);const v=[];if(typeof l.default=="function")v.push(l.default());else{const u=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(u)}const b=t.h("div",{class:a.value,style:r.value,onClick:m},v);return g.push(b),g}}}),{componentName:y0,create:v0}=X("drag"),k0=v0({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[y0]:!0}));function r(){const m=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=m.clientWidth,n.screenHeight=m.clientHeight}function s(m){n.boundary.left?+m.style.left.split("px")[0]>n.boundary.left?(m.style.left=+m.style.left.split("px")[0]-10+"px",Le(()=>{s(m)})):m.style.left=`${n.boundary.left}px`:+m.style.left.split("px")[0]>10?(m.style.left=+m.style.left.split("px")[0]-10+"px",Le(()=>{s(m)})):m.style.left="0px"}function i(m,h){h-parseInt(m.style.left.split("px")[0])>10?(m.style.left=parseInt(m.style.left.split("px")[0])+10+"px",Le(()=>{i(m,h)})):m.style.left=h+"px"}function c(m){m.preventDefault();const h=m.currentTarget;if(m.targetTouches.length===1){const y=m.targetTouches[0];n.nx=y.clientX-n.position.x,n.ny=y.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const g=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>g?n.xPum=g:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(m){const h=m.currentTarget;let g=m.changedTouches[0].clientX;const v=n.screenWidth-n.elWidth-n.boundary.right;g>v?g=v:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:v,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Le(()=>{s(h)}):Le(()=>{i(h,v)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function f(m){const h=m.currentTarget,y=m.touches[0],g=m.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const m=l;m.value.removeEventListener("touchstart",f),m.value.removeEventListener("touchmove",c),m.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:f,touchMove:c,touchEnd:d}}});function b0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Ol=J(k0,[["render",b0]]),S0={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}},C0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function w0(e,o,l,n,a){return{props:{...Xe,...S0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ae.useFoxI18n(o),f=d(r,["confirmText","cancelText"]),m=e,h=t.ref(r.visible);t.watch(()=>r.visible,N=>{h.value!==N&&(h.value=N,N&&c("opened"))});const y=N=>{h.value=N,c("update:visible",N),c("update",N)},g=N=>{if(c(N),!(N==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const T=r.beforeClose(N);Dn(T)?T.then(B=>{B&&(y(!1),c("closed",N))}):T===!0&&(y(!1),c("closed",N))}else y(!1),c("closed",N)},v=()=>{g("confirm")},b=()=>{g("cancel")},u=()=>{g("close")},p=(N,T)=>C0(N)?(T.src=N,t.h("img",T)):typeof N=="string"?(Array.isArray(T.class)?T.class.push(N):T.class&&typeof T.class=="object"?T[`${N}`]=!0:typeof T.class=="string"?T.class=`${T.class}, ${N}`:T.class=N,t.h(r.tag,T)):t.h(N,T),k=()=>{const N=[];if(i.header){const B=i.header();N.push(B)}else{if(r.title){const B=t.h("view",{class:`${m}__header-title`},[r.title]);N.push(B)}if(r.showClose){const B={class:[`${m}__header-close-icon`],onClick:u},D=r.closeIcon??a,C=p(D,B);N.push(C)}}if(N.length===0)return null;const T={class:[`${m}__header`]};return t.h("view",T,N)},S=()=>{const N=[];if(i.default)N.push(i.default());else{const B={class:[`${m}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const D=t.h("view",B);N.push(D)}else if(typeof r.content=="function"){const D=t.h("view",B,[r.content()]);N.push(D)}else{const D=t.h("view",B,[r.content]);N.push(D)}}if(N.length===0)return null;const T={class:[`${m}__body`]};return t.h("view",T,N)},w=()=>{if(!r.showFooter)return null;const N=[];if(i.footer)N.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${m}__footer-button`,`${m}__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 D=t.h("view",B,[r.cancelButtonText??f.cancelText.value]);N.push(D)}if(r.showConfirmButton){const B={class:[`${m}__footer-button`,`${m}__footer-confirm`],style:{},onClick:v};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const D=t.h("view",B,[r.confirmButtonText??f.confirmText.value]);N.push(D)}}else{if(r.showCancelButton){const B={class:[`${m}__footer-button`,`${m}__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 D=t.h(n,B,{default:()=>[r.cancelButtonText??f.cancelText.value]});N.push(D)}if(r.showConfirmButton){const B={class:[`${m}__footer-button`,`${m}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:v};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const D=t.h(n,B,{default:()=>[r.confirmButtonText??f.confirmText.value]});N.push(D)}}if(N.length===0)return null;const T={class:[`${m}__footer`,`${m}__footer--${r.footerDirection}`]};return t.h("view",T,N)};return()=>{const N=[],T=k();T&&N.push(T);const B=S();B&&N.push(B);const D=w();D&&N.push(D);const C={class:{[`${m}`]:!0,[`${m}--plain`]:r.plain}},V=t.h("view",C,N),M=[`${m}__popup`];r.popClass&&M.push(r.popClass);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...he(r,Xe),popClass:M.join(" "),style:L,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,E,{default:()=>V})}}}}const{componentName:N0,create:B0,scope:V0}=X("dialog"),Ss=B0(w0(N0,V0,ce,Ie,te.Close));class A0{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class T0{options=new A0;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view"),s=`dialog-${l.id}`;r.id=s;const i={setup(){return l.onUpdate=d=>{if(d===!1){const f=document.querySelector(`#${s}`);f&&f.parentNode?.removeChild(f)}},l?.onOpened&&l?.onOpened(),()=>t.h(Ss,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const Ut=function(e){return new T0(e)};Ut.install=e=>{e.use(Ss),e.config.globalProperties.$dialog=Ut};const{componentName:$0,create:E0,scope:D0}=X("pull-refresh"),x0=E0({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(D0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ke(),s=t.ref(),i=ls(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[$0]:!0})),f=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),m=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const S={};return e.headHeight!=50&&(S.height=fe(e.headHeight)),S}),y=S=>{const w=+(e.pullDistance||e.headHeight);let N=S;return S>w&&(S<w*2?N=(S+w)/2:N=w+S/4),Math.round(N)},g=(S,w)=>{const N=+(e.pullDistance||e.headHeight);c.distance=S,w?c.status="loading":S===0?c.status="normal":S<N?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},v=()=>c.status!=="loading"&&c.status!=="complete",b=()=>i.value==window?In()==0:i.value&&i.value.scrollTop==0,u=S=>{v()&&(b()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(v()){r.move(S);const{deltaY:w}=r;r.isVertical()&&w.value>0&&c.isPullRefresh&&(S.cancelable&&S.preventDefault(),g(y(w.value)))}},k=()=>{c.isPullRefresh&&v()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?g(+e.headHeight,!0):g(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:k,getStyle:m,slots:l,getHeightStyle:h,getPullStatus:f}}}),I0={class:"fox-pull-refresh-container-topbox-text"};function q0(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",I0,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const Kl=J(x0,[["render",q0]]),{create:M0}=X("notify"),z0=M0({components:{[ce.name]:ce},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const f=e.duration;d&&f&&(n=setTimeout(()=>{r()},f))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function L0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Ul=J(z0,[["render",L0]]),An={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],Dt=[];const Cs=e=>{if(e){const o=document.getElementById(e);Dt=Dt.filter(l=>l.id!==e),dt=dt.filter(l=>l!==e),o&&document.body.removeChild(o)}else dt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Dt=[],dt=[]},P0=e=>{const o=document.getElementById(e.id);if(o){const l=Dt.find(a=>a.id===e.id);l?e={...An,...l,...e}:e={...An,...e};const n=t.createVNode(Ul,e);return t.render(n,o),n.component.data}},Vt=e=>{e.unmount=Cs;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return P0(e)}else o=new Date().getTime()+"";e={...An,...e},e.id=o,dt.push(e.id),Dt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Ul,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},At=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Hl={text(e,o={}){return At(e),Vt({...o,msg:e})},primary(e,o={}){return At(e),Vt({...o,msg:e,type:"primary"})},success(e,o={}){return At(e),Vt({...o,msg:e,type:"success"})},danger(e,o={}){return At(e),Vt({...o,msg:e,type:"danger"})},warn(e,o={}){return At(e),Vt({...o,msg:e,type:"warning"})},hide(){Cs()},install(e){e.use(Ul)}},{create:R0}=X("toast"),F0=R0({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,y=>{y&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=se(e.iconSize);return t.h(e.icon,{width:y,height:y,color:e.iconColor})},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]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:f,toastIconWrapperClass:m,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),O0={key:1,class:"fox-toast-title"},K0=["innerHTML"];function U0(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",O0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,K0)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jl=J(F0,[["render",U0]]),Tn={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 ft=[],xt=[];const ws=e=>{if(e){const o=document.getElementById(e);xt=xt.filter(l=>l.id!==e),ft=ft.filter(l=>l!==e),o&&document.body.removeChild(o)}else ft.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),xt=[],ft=[]},H0=e=>{const o=document.getElementById(e.id);if(o){const l=xt.find(a=>a.id===e.id);l?e={...Tn,...l,...e}:e={...Tn,...e};const n=t.createVNode(jl,e);return t.render(n,o),Ct}},Tt=e=>{e.unmount=ws;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return H0(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,ft.push(e.id),xt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(jl,e);return t.render(n,l),document.body.appendChild(l),Ct},Zt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,o={}){return Zt(e),Tt({...o,type:"text",msg:e})},success(e,o={}){return Zt(e),Tt({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Zt(e),Tt({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Zt(e),Tt({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Tt({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){ws(e)},install(e){e.use(jl),e.config.globalProperties.$toast=Ct}},{componentName:UB,create:j0}=X("audio"),W0=j0({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:te.Service,[Ft.name]:Ft},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var v=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<v.length;b++)document.addEventListener(v[b],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(b){b.message}});const r=v=>{const b=n.value;e.autoplay&&b&&b.paused&&b.play(),a.second=b.duration,a.duration=g(b.duration),o("can-play",v)},s=v=>{a.currentTime=parseInt(v.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const v=n.value;a.playing?(v.pause(),a.handPlaying=!1):(v.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},f=v=>{a.currentDuration=g(v),a.percent=v/a.second*100},m=()=>{a.playing=!1,o("ended")},h=v=>{const b=n.value;b.currentTime=a.second*v/100,o("changeProgress",b.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=v=>{if(!v)return"00:00:00";let b=parseInt(v),u=Math.floor(b/3600),p=Math.floor((b-u*3600)/60),k=b-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+k.toString()).slice(-2),S};return t.watch(()=>a.currentTime,v=>{f(v)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:m,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),Y0={class:"fox-audio"},X0={key:0,class:"fox-audio__progress"},Q0={class:"fox-audio__time"},G0={class:"fox-audio__bar"},Z0=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),J0={class:"fox-audio__time"},_0={key:1,class:"fox-audio__icon"},ek=["controls","src","preload","autoplay","loop","muted"];function tk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Y0,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",X0,[t.createElementVNode("div",Q0,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",G0,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[Z0]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",J0,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",_0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,ek)])}const Wl=J(W0,[["render",tk]]),{componentName:HB,create:ok,scope:nk}=X("audio-operate"),lk=ok({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(nk),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),ak={class:"fox-audio-operate"};function rk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",ak,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Yl=J(lk,[["render",rk]]),{componentName:sk,create:ik}=X("avatar"),ck=ik({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&y(g)});const f=t.computed(()=>({[sk]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),m=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=g=>{d.maxIndex=g.length;for(let v=0;v<g.length;v++)g[v]&&g[v].classList&&g[v].classList[0]=="fox-avatar"&&g[v].setAttribute("data-index",v+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:f,styles:m,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function uk(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Ht=J(ck,[["render",uk]]),{componentName:dk,create:fk}=X("avatar-group"),mk=fk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[dk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function pk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Xl=J(mk,[["render",pk]]);var oo=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(oo||{});function hk(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:gk,create:yk}=X("list"),mr=document.documentElement.clientHeight||document.body.clientHeight||667,vk=yk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:mr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,mr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[gk]:!0})),f=t.computed(()=>r.list.slice(r.start,c.value)),m=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},y=()=>{let u=a.value.childNodes;u=Array.from(u).filter(T=>T.nodeType===1);const p=u[0];u.forEach((T,B)=>{if(!T)return;const D=Ve(T),{height:C}=D,M=r.cachePositions[B+r.start].height-C;M&&(r.cachePositions[B+r.start].bottom-=M,r.cachePositions[B+r.start].height=C,r.cachePositions[B+r.start].dValue=M)});let k=0;p&&(k=r.start);const S=r.cachePositions.length;let w=r.cachePositions[k].dValue;r.cachePositions[k].dValue=0;for(let T=k+1;T<S;++T){const B=r.cachePositions[T];r.cachePositions[T].top=r.cachePositions[T-1].bottom,r.cachePositions[T].bottom=r.cachePositions[T].bottom-w,B.dValue!==0&&(w+=B.dValue,B.dValue=0)}const N=r.cachePositions[S-1].bottom;r.phantomHeight=N},g=(u=0)=>{let p=hk(r.cachePositions,u,(S,w)=>{const N=S.bottom;return N===w?oo.eq:N<w?oo.lt:oo.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},v=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,k=g(u);k!==p&&(r.originStartIndex=k,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),y();else{v();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:m,visibleData:f,classes:d,getContainerHeight:s,handleScrollEvent:b}}});function kk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Ql=J(vk,[["render",kk]]),{componentName:bk,create:Sk}=X("circleprogress"),Ck=Sk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[bk]:!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`}),s=t.computed(()=>Be(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let f=283,m=f*Number(e.progress)/100;return{stroke:Be(e.color)?`url(#${n})`:e.color,strokeDasharray:`${m}px ${f}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!Be(e.color))return;let f=e.color;const m=Object.keys(f).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return m.map((y,g)=>{let v={key:"",value:""};v.key=y,v.value=f[y],h.push(v)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),wk={viewBox:"0 0 100 100"},Nk=["id"],Bk=["offset","stop-color"],Vk=["d","stroke-width"],Ak=["d","stroke","stroke-linecap","stroke-width"],Tk={class:"fox-circleprogress-text"},$k={key:0};function Ek(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",wk,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,Bk))),128))],8,Nk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Vk),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Ak)])),t.createElementVNode("div",Tk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",$k,t.toDisplayString(e.progress)+"%",1))])],6)}const Gl=J(Ck,[["render",Ek]]),{componentName:Dk,create:xk}=X("noticebar"),Ik=xk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Dk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let T={};return e.color&&(T.color=e.color),e.background&&(T.background=e.background),e.direction=="vertical"&&(T.height=`${e.height}px`),T}),f=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),m=t.computed(()=>{let T={};if(e.complexAm)T={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);T={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return T});t.watch(()=>e.text,T=>{h()}),t.watch(()=>e.list,T=>{r.scrollList=[...T]});const h=T=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const B=n.value.getBoundingClientRect().width,D=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?D>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=D,r.duration=D/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=T=>{o("click",T)},g=T=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",T)},v=T=>{r.firstRound=!1,o("across-end",T),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let T=100;for(let B=0;B<T;B++)k(B,!(B<T-1))},e.standTime+100*e.speed)},k=(T,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},T*e.speed)},S=T=>{o("click",T)},w=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?N(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():b()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],T=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),N(T))});const N=T=>{T&&T.length>0&&(r.scrollList=T[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:f,horseLampStyle:m,wrap:n,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:v,go:S,handleClickIcon:w,slots:l,toPxDesc:fe,wrapContentClass:c}}}),qk={class:"fox-noticebar__page-lefticon"},Mk={ref:"wrap",class:"fox-noticebar__page-wrap"},zk={class:"showNotica"},Lk=["onClick"];function Pk(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",qk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Mk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":o[1]||(o[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",zk,[(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:m=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,Lk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Zl=J(Ik,[["render",Pk]]),Rk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY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iinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:jB,create:Kk,scope:Uk}=X("empty"),Hk={empty:Rk,error:Fk,network:Ok},jk=Kk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(Uk),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:Hk[n.value];return{...l,imageUrl:i,imgStyle:r}}}),Wk={class:"fox-empty"},Yk=["src"],Xk={key:1,class:"fox-empty-description"};function Qk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Wk,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,Yk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Xk,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Jl=J(jk,[["render",Qk]]),{create:Gk,scope:Zk}=X("video"),Jk=Gk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Zk),n=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,N=>{N.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,N=>{n.state.isMuted=N?N.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",ao(m,1e3)))},i=()=>{const N=a.value,T=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=N,n.progressBar.progressElm=T,n.progressBar.pos=T.getBoundingClientRect(),n.videoSet.progress.width=Math.round(T.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{f()}),n.videoElm.addEventListener("timeupdate",ao(m,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=N=>{var T=Math.floor(N/3600);T<10&&(T="0"+T);var B=Math.floor(N%3600/60);B<10&&(B="0"+B);var D=Math.round(N%3600%60);D<10&&(D="0"+D);var C="";return T!=0?C=T+":"+B+":"+D:C=B+":"+D,C},f=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},m=()=>{const N=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*N),n.videoSet.totalTime=d(n.videoElm.duration),n.videoSet.displayTime=d(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},h=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},y=()=>{n.state.isError=!0},g=()=>{n.state.vol=e.options.volume},v=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},b=()=>{},u=N=>{let B=N.targetTouches[0].pageX-n.progressBar.pos.left;B<=0&&(B=0),B>=n.videoSet.progress.width&&(B=n.videoSet.progress.width),n.videoSet.progress.current=B;let D=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},p=N=>{let B=N.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let D=B/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},k=(N,T)=>{n.videoElm.currentTime=Math.floor(N*T)},S=()=>{n.state.isError=!1,s()},w=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:y,isDisabled:r,play:c,handleMuted:v,touchSlidSrart:b,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:w,t:l}}}),_k={class:"fox-video",ref:"videocon"},eb=["muted","autoplay","loop","poster","controls","preload"],tb=["src","type"],ob={class:"fox-video-controller__now"},nb={class:"fox-video-controller__progress"},lb={class:"fox-video-controller__progress-value",ref:"progressBar"},ab=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),rb=[ab],sb={class:"fox-video-controller__played",ref:"playedBar"},ib={class:"fox-video-controller__total"},cb={class:"fox-video-error"},ub={class:"fox-video-error-tip"};function db(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",_k,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,tb)],40,eb),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",ob,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",nb,[t.createElementVNode("div",lb,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},rb,36),t.createElementVNode("div",sb,null,512)],512)]),t.createElementVNode("div",ib,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",cb,[t.createElementVNode("p",ub,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const kt=J(Jk,[["render",db]]),{create:fb,componentName:mb}=X("steps"),_l=fb({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=mb;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:pb,componentName:hb}=X("step"),gb=pb({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=hb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),yb={class:"fox-step-head"},vb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),kb={class:"fox-step-icon-inner"},bb={key:1,class:"fox-step-inner"},Sb={class:"fox-step-main"},Cb={class:"fox-step-title"},wb={key:0},Nb={key:0,class:"fox-step-content"},Bb=["innerHTML"];function Vb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",yb,[vb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",kb,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",bb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Sb,[t.createElementVNode("view",Cb,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",wb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Nb,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Bb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ea=J(gb,[["render",Vb]]),{create:Ab,componentName:en}=X("swiper"),Tb=Ab({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ke(),s=t.computed(()=>({[en]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const A=en;return{[`${A}-inner`]:!0,[`${A}-vertical`]:i.value}}),d=t.computed(()=>{const A=en;return{[`${A}-pagination`]:!0,[`${A}-pagination-vertical`]:i.value}}),f=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),m=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*y.value),v=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),b=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let A=0;A=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${A}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=A=>{let H=[];const R=a.childrenVNode.length;let Y=l?.default?.();if(Y=Y.filter(U=>U.children&&Array.isArray(U.children)),Y.forEach(U=>{H=H.concat(U.children)}),!R)a.childrenVNode=H.slice(),A.proxy&&a.children.push(A.proxy);else if(R>H.length)a.children=a.children.filter(U=>A.proxy!==U);else if(R<H.length){for(let U=0;U<R;U++)if(H[U].key!==a.childrenVNode[U].key){A.proxy&&a.children.splice(U,0,A.proxy),A.vnode&&a.childrenVNode.splice(U,0,A.vnode);break}R!==H.length&&(A.proxy&&a.children.push(A.proxy),A.vnode&&a.childrenVNode.push(A.vnode))}else a.childrenVNode=H.slice(),A.proxy&&a.children.push(A.proxy)},k=(A,H=0)=>{let R=A*y.value;e.loop||(R=Math.min(R,-v.value));let Y=H-R;return e.loop||(Y=Pe(Y,v.value,0)),Y},S=A=>{const{active:H}=a;return A?e.loop?Pe(H+A,-1,h.value):Pe(H+A,0,h.value-1):H},w=({pace:A=0,offset:H=0,isEmit:R=!1})=>{if(h.value<=1)return;const{active:Y}=a,U=S(A),P=k(U,H);if(e.loop){if(a.children[0]&&P!==v.value){const z=P<v.value;a.children[0].setOffset(z?g.value:0)}if(a.children[h.value-1]&&P!==0){const z=P>0;a.children[h.value-1].setOffset(z?-g.value:0)}}a.active=U,a.offset=P,R&&Y!==a.active&&o("change",b.value),u()},N=()=>{a.moving=!0,a.active<=-1&&w({pace:h.value}),a.active>=h.value&&w({pace:-h.value})},T=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},B=A=>{N(),r.reset(),je(()=>{je(()=>{a.moving=!1,w({pace:A,isEmit:!0})})})},D=()=>{B(-1)},C=()=>{B(1)},V=A=>{N(),r.reset(),je(()=>{a.moving=!1;let H;e.loop&&h.value===A?H=a.active===0?0:A:H=A%h.value,w({pace:H-a.active,isEmit:!0})})},M=()=>{e.autoPlay<=0||h.value<=1||(T(),a.autoplayTimer=setTimeout(()=>{C(),M()},Number(e.autoPlay)))},L=(A=+e.initPage)=>{T(),a.rect=n.value.getBoundingClientRect(),A=Math.min(h.value-1,A),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=A,a.offset=k(a.active),a.moving=!0,u(),M()},$=A=>{e.isPreventDefault&&A.preventDefault(),e.isStopPropagation&&A.stopPropagation(),e.touchable&&(r.start(A),a.touchTime=Date.now(),T(),N())},E=A=>{e.touchable&&a.moving&&(r.move(A),m.value&&w({offset:f.value}))},x=A=>{if(!e.touchable||!a.moving)return;const H=f.value/(Date.now()-a.touchTime);if((Math.abs(H)>.3||Math.abs(f.value)>+(y.value/2).toFixed(2))&&m.value){let Y=0;const U=i.value?r.offsetY.value:r.offsetX.value;e.loop?Y=U>0?f.value>0?-1:1:0:Y=-Math[f.value>0?"ceil":"floor"](f.value/y.value),w({pace:Y,isEmit:!0})}else f.value&&w({pace:0});a.moving=!1,u(),M()};return t.provide("parent",{props:e,size:y,relation:p}),Te({prev:D,next:C,to:V}),t.onDeactivated(()=>{T()}),t.onBeforeUnmount(()=>{T()}),t.watch(()=>e.initPage,A=>{t.nextTick(()=>{L(Number(A))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,A=>{A>0?M():T()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:b,onTouchStart:$,onTouchMove:E,onTouchEnd:x}}});function $b(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const bt=J(Tb,[["render",$b]]),{create:Eb,componentName:Db}=X("swiper-item"),xb=Eb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[Db]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),Te({setOffset:s}),{style:r,classes:a}}});function Ib(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const St=J(xb,[["render",Ib]]),Ns={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:qb}=X("image-preview-item"),Mb=qb({props:{...Ns,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:{[kt.name]:kt,[St.name]:St},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ke(),a=t.computed(()=>{const{rootWidth:D,rootHeight:C}=e,V=C/D;return l.imageRatio>V}),r=t.computed(()=>{const D=e.image;if(D&&D.src){const{scale:C,moveX:V,moveY:M,moving:L,zooming:$}=l,E={transitionDuration:$||L?"0s":".3s"};if(C!==1){const x=V/C,A=M/C;E.transform=`scale(${C}, ${C}) translate(${x}px, ${A}px)`}return E}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:C}=e,V=a.value?C/l.imageRatio:D;return Math.max(0,(l.scale*V-D)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:C}=e,V=a.value?C:D*l.imageRatio;return Math.max(0,(l.scale*V-C)/2)}return 0}),c=D=>{const{naturalWidth:C,naturalHeight:V}=D.target;l.imageRatio=V/C},d=()=>{f(1),l.moveX=0,l.moveY=0},f=D=>{D=Pe(D,+e.minZoom,+e.maxZoom+1),D!==l.scale&&(l.scale=D,o("scale",{scale:D,index:e.initNo}))},m=()=>{const D=l.scale>1?1:2;f(D),l.moveX=0,l.moveY=0},h=D=>Math.sqrt((D[0].clientX-D[1].clientX)**2+(D[0].clientY-D[1].clientY)**2);let y,g,v,b,u,p,k;const S=D=>{const{touches:C}=D,{offsetX:V}=n;n.start(D),k=C.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=k===1&&l.scale!==1,l.zooming=k===2&&!V.value,l.zooming&&(v=l.scale,b=h(D.touches))},w=D=>{const{touches:C}=D;if(n.move(D),(l.moving||l.zooming)&&un(D,!0),l.moving){const{deltaX:V,deltaY:M}=n,L=V.value+y,$=M.value+g;l.moveX=Pe(L,-s.value,s.value),l.moveY=Pe($,-i.value,i.value)}if(l.zooming&&C.length===2){const V=h(C),M=v*V/b;f(M)}},N=()=>{if(k==1&&e.video&&e.video.source||k>1)return;const{offsetX:D,offsetY:C}=n,V=Date.now()-p,M=250,L=5;D.value<L&&C.value<L&&V<M&&(u?(clearTimeout(u),u=null,m()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},M))},T=D=>{let C=!1;(l.moving||l.zooming)&&(C=!0,l.moving&&y===l.moveX&&g===l.moveY&&(C=!1),D.touches.length||(l.zooming&&(l.moveX=Pe(l.moveX,-s.value,s.value),l.moveY=Pe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,v=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),un(D,C),N(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,D=>{D||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:w,onTouchEnd:T,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),zb=["src"];function Lb(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,zb)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const Pb=J(Mb,[["render",Lb]]),{create:Rb}=X("image-preview"),Fb=Rb({props:{...Ns,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:Pb,CircleClose:te.CircleClose,[ce.name]:ce,[bt.name]:bt},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=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(()=>po(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=f=>{f!==n.active&&(n.active=f,o("change",n.active))},i=()=>{bs(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const f=Ve(l.value);n.rootHeight=f.height,n.rootWidth=f.width}};return t.watch(()=>e.show,f=>{n.showPop=f,f&&(s(e.initNo),d())}),t.watch(()=>e.initNo,f=>{f!=n.active&&s(f)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),Ob={class:"fox-image-preview",ref:"swipeRef"},Kb={key:0,class:"fox-image-preview-index"};function Ub(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=f=>e.showPop=f),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",Ob,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(f,m)=>(t.openBlock(),t.createBlock(s,{key:m,video:m<e.videos.length?f:{},image:m>=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",Kb,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...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 Bs=J(Fb,[["render",Ub]]);class Hb{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 jb{options=new Hb;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=ai(l,{name:"image-preview",components:[ce,kt,bt,St,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Bs,l))}})})}}const Ko=e=>new jb(e);Ko.install=e=>{e.use(Bs)};function Wb(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:WB,create:Yb}=X("countup"),Xb=Yb({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=B=>{B&&n.value.push(B)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,D)=>{m(),b(0)}),t.watch(()=>e.machinePrizeLevel,(B,D)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,D)=>{r.current=B,r.valFlag=!1,f()}),t.watch(()=>e.endNum,(B,D)=>{r.current=e.initNum,r.valFlag=!1,f()});const f=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&b():(v(),setTimeout(()=>{r.valFlag=!0},300)))},m=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,D,C)=>{const V=(B.toString().split(".")[1]||"").length,M=(D.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(V,M));return C=="-"?Number((B*L-D*L).toFixed(0))/L:Number((B*L+D*L).toFixed(0))/L},y=B=>{let{num_total_len:D,pointNum:C,initDigit1:V,initDigit2:M,sortFlag:L}=r,$=L=="add"||L=="equal"?String(M)[B-(D-C)]:10-Number(String(M)[B-(D-C)]),E=L=="add"||L=="equal"?String(V)[B]:10-Number(String(V)[B]),x=B>D-C-1?-$*100+"%":B<=String(V).length-1?-E*100+"%":0;return x=="-1000%"&&(x=0),x},g=B=>{let{num_total_len:D,pointNum:C,initDigit1:V,initDigit2:M,sortFlag:L}=r,$=String(M)[B-(D-C)];return B>D-C-1?$||0:B<=String(V).length-1?String(V)[B]:0},v=()=>{let{endNum:B,initNum:D,speed:C,toFixed:V}=e,M=setInterval(()=>{if(D>B)if(r.current<=B||r.current<=C)r.current=B.toFixed(V),clearInterval(M),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(C));r.current=L.toFixed(V)}else if(r.current>=B)r.current=B.toFixed(V),clearInterval(M),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(C));r.current=L.toFixed(V)}},e.during)},b=B=>{let{initNum:D,endNum:C,toFixed:V,customBgImg:M}=e;M&&(D=e.customChangeNum);let L,$,E,x;D!=0?(V!=0&&(D=Number(D.toFixed(V))),String(D).indexOf(".")>-1?(L=String(D).split(".")[0].length,$=String(D).split(".")[1].length):(L=String(D).length,$=0)):(L=1,$=0),C!=0?(V!=0&&(C=Number(C.toFixed(V))),String(C).indexOf(".")>-1?(E=String(C).split(".")[0].length,x=String(C).split(".")[1].length):(E=String(C).length,x=0)):(E=1,x=0);let A=L>=E?L:E,H=$>=x?$:x;r.num_total_len=A+H,r.pointNum=H,D>C?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(D,C,"-"),r.numberVal=Number(String(D))):D<C?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(C,D,"-"),r.numberVal=Number(String(C))):r.sortFlag="equal";var R=1;for(let U=0;U<r.pointNum;U++)R*=10;var Y=r.numberVal*R;if(r.relNum=Y,V!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Y).length),String(D).indexOf(".")>-1){let U=String(D).split(".");r.initDigit1=Number(U[0]),r.initDigit2=Number(U[1])}else r.initDigit1=D,r.initDigit2=0;i&&!M?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let U=n.value[r.num_total_len-1];u(U)}):B!==0&&S()},u=B=>{m();var D=1;r.pointNum!=0&&(D=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,D,"-"),r.totalCount<=0&&(m(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let D=B.getAttribute("turn-number"),C;if(r.sortFlag=="add"?C=parseInt(String(D))+1:C=parseInt(String(D))-1>=0?parseInt(String(D))-1:9,B.setAttribute("turn-number",String(C)),(B.style.transition=="none 0s ease 0s"||C==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),C==10||r.sortFlag=="reduce"&&C==0){var V=null;B.style.top=`-${r.sortFlag=="add"?C*100:(10-C)*100}%`,B.setAttribute("turn-number","0"),V=setTimeout(()=>{V&&clearTimeout(V),B.style.transition="none",B.style.top="0",k(B,C)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?C*100:(10-C)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&p(B.previousSibling)},k=(B,D)=>{setTimeout(()=>{D==10&&B.previousSibling&&p(B.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("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)}};Wb({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let D=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let V=D*(C+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[C]=r.prizeYPrev[C]);let M=r.prizeYPrev[C]?r.prizeYPrev[C]:0,L=V+M+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(D-M);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[C]),T(C,L,M)},500*C)}});const T=(B,D,C)=>{let V=setInterval(()=>{if(C<=D)C+=10,r.prizeY[B]=parseFloat(String(C));else if(clearInterval(V),V=null,r.finshMachine+=1,r.prizeY[B]=D,r.finshMachine==e.machineNum){let M=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let E=$;for(;E>M;)E-=M;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{f()})}),t.onUnmounted(()=>{m(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),Qb={class:"fox-countup"},Gb=["turn-number"];function Zb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Qb,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,Gb))),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 ta=J(Xb,[["render",Zb]]),Jb=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:_b,create:eS}=X("countdown"),tS=eS({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[_b]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-Jb(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,g=Math.max(n.handleEndTime-y,0);n.restTime=g,g||(n.counting=!1,m(),o("on-end")),g>0&&i()}}))},c=(y,g)=>{const v=y;let b={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,k=60*p,S=24*k;return v>0&&(b.d=v>=u?Math.floor(v/S):0,b.h=Math.floor(v%S/k),b.m=Math.floor(v%k/p),b.s=Math.floor(v%p/u),b.ms=Math.floor(v%u)),g=="custom"?b:d({...b})},d=y=>{let{d:g,h:v,m:b,s:u,ms:p}=y,k=e.format;if(k.includes("DD")?k=k.replace("DD",Je(g)):v+=Number(g)*24,k.includes("HH")?k=k.replace("HH",Je(v)):b+=Number(v)*60,k.includes("mm")?k=k.replace("mm",Je(b)):u+=Number(b)*60,k.includes("ss")?k=k.replace("ss",Je(u)):p+=Number(u)*1e3,k.includes("S")){const S=Je(p,3).toString();k.includes("SSS")?k=k.replace("SSS",S):k.includes("SS")?k=k.replace("SS",S.slice(0,2)):k.includes("S")&&(k=k.replace("SS",S.slice(0,1)))}return k},f=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},m=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(m(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,y=>{let g=c(y,"custom");o("update:modelValue",g),o("input",g)}),t.watch(()=>e.paused,(y,g)=>{g?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&m()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:f,pause:m,renderTime:r,reset:h}}}),oS=["innerHTML"];function nS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,oS))],2)}const oa=J(tS,[["render",nS]]),{create:lS}=X("badge"),aS=lS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),rS={class:"fox-badge"},sS=["textContent"];function iS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",rS,[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,sS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const na=J(aS,[["render",iS]]),{componentName:cS,create:uS}=X("tag"),dS=uS({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:te.Close},emits:["close","click"],setup(e,{emit:o}){return{classes:t.computed(()=>{const s=cS;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),o("close",s)},onClick:s=>{o("click",s)}}}});function fS(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const jt=J(dS,[["render",fS]]),{create:mS}=X("popover"),pS=mS({components:{FoxPopup:ce},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",k=e.location,S=k.split("-")[0];return`${p} ${p}-${S} ${p}--${k}`}),c=t.computed(()=>{const p={},{bgColor:k,arrowOffset:S,location:w}=e,N=w.split("-")[0],T=w.split("-")[1],B=16;return k&&(p[`border${d(N)}Color`]=k),e.arrowOffset!=0&&(["bottom","top"].includes(N)&&(T||(p.left=`calc(50% + ${S}px)`),T=="start"&&(p.left=`${B+S}px`),T=="end"&&(p.right=`${B-S}px`)),["left","right"].includes(N)&&(T||(p.top=`calc(50% - ${S}px)`),T=="start"&&(p.top=`${B-S}px`),T=="end"&&(p.bottom=`${B+S}px`))),p}),d=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,k=>k.substring(0,1).toUpperCase()+k.substring(1)),p),f=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const k=s.value.width,S=s.value.height,{width:w,height:N,left:T,top:B}=r.value,{location:D,offset:C}=e,V=D.split("-")[0],M=D.split("-")[1];let L=0,$=0;if(po(C)&&C.length==2&&(L+=Number(C[1]),$+=Number(C[0])),w){if(["bottom","top"].includes(V)){const E=V=="bottom"?N+L:-(S+L);p.top=`${B+E}px`,M||(p.left=`${-(k-w)/2+T+$}px`),M=="start"&&(p.left=`${T+$}px`),M=="end"&&(p.left=`${r.value.right+$}px`)}if(["left","right"].includes(V)){const E=V=="left"?-(k+L):w+L;p.left=`${T+E}px`,M||(p.top=`${B-S/2+N/2-4+$}px`),M=="start"&&(p.top=`${B+$}px`),M=="end"&&(p.top=`${B+N+$}px`)}}return p}),m=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=Ve(l.value);e.targetId&&(p=Ve(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:n.value?.clientHeight,width:n.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const y=p=>{o("update",p),o("update:visible",p)},g=()=>{y(!e.visible),o("open")},v=()=>{o("update:visible",!1),o("close")},b=(p,k)=>{!p.disabled&&o("choose",p,k),e.closeOnClickAction&&v()},u=p=>{const k=l.value,S=n.value;let w=k&&!k.contains(p.target);if(e.targetId){const N=document.querySelector(`#${e.targetId}`);w=N&&!N.contains(p.target)}w&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&v()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:v,chooseItem:b,popoverRef:l,popoverContentRef:n,getRootPosition:f,customStyle:m,popoverArrowStyle:c,renderIcon:Hr}}}),hS={ref:"popoverContentRef",class:"fox-popover-content-group"},gS=["onClick"],yS={class:"fox-popover-menu-item-name"};function vS(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",hS,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",yS,t.toDisplayString(i.name),1)],10,gS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Wt=J(pS,[["render",vS]]),kS=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:bS}=X("skeleton"),SS=bS(kS({[Ht.name]:Ht})),CS={key:0},wS={key:1,class:"fox-skeleton"},NS={key:0,class:"fox-skeleton-animation"},BS={class:"fox-skeleton-content"};function VS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",wS,[e.animated?(t.openBlock(),t.createElementBlock("view",NS)):t.createCommentVNode("",!0),t.createElementVNode("view",BS,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",CS,[t.renderSlot(e.$slots,"default")]))}const la=J(SS,[["render",VS]]),{create:AS,componentName:TS}=X("collapse"),$S=AS({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[TS]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,f=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,f)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const d=n.value.filter(f=>f!==c);r(d,c,!1)}else{const d=n.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function ES(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const aa=J($S,[["render",ES]]),{create:DS,componentName:xS}=X("collapse-item"),IS=DS({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:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=xS;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},d=()=>{s.value&&(i.value="auto")},f=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},m=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?f():m()}),{classes:r,renderIcon:Hr,wrapperRef:o,contentRef:l,open:f,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),qS={class:"fox-collapse-item__title-main"},MS={class:"fox-collapse-item__title-main-value"},zS=["innerHTML"],LS={key:2,class:"fox-collapse-item__title-label"},PS={key:0,class:"fox-collapse-item__title-sub"},RS=["innerHTML"],FS={key:0,class:"fox-collapse__item-extraWrapper"},OS={class:"fox-collapse__item-extraWrapper__extraRender"},KS={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function US(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",qS,[t.createElementVNode("view",MS,[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,zS)),e.label?(t.openBlock(),t.createElementBlock("view",LS,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",PS,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,RS)),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",FS,[t.createElementVNode("div",OS,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",KS,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ra=J(IS,[["render",US]]),HS=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:jS,create:WS,scope:YS}=X("table"),XS=WS({components:{RenderColumn:HS,DownArrow:te.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(YS),a=t.reactive({curData:e.data}),r=t.computed(()=>({[jS]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(g=>g.key===y)[0],f=y=>{const g=e.columns.filter(v=>v.key===y);return g[0].stylecolumn?g[0].stylecolumn:""},m=y=>{y.sorter&&(o("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return t.watch(()=>e.data,y=>{a.curData=y.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:f,handleSorterClick:m,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),QS={class:"fox-table__main__head"},GS={class:"fox-table__main__head__tr"},ZS=["onClick"],JS={class:"fox-table__main__body"},_S={key:1},e1={key:0,class:"fox-table__nodata"},t1={key:0,class:"fox-table__nodata__text"},o1={key:1,class:"fox-table__summary"},n1=["innerHTML"];function l1(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",QS,[t.createElementVNode("view",GS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,ZS))),128))])]),t.createElementVNode("view",JS,[(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(i,{key:0,slots:[f,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",_S,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",e1,[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",t1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",o1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,n1)])):t.createCommentVNode("",!0)],2)}const sa=J(XS,[["render",l1]]),{componentName:a1,create:r1}=X("ellipsis"),s1=r1({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[a1]:!0}));t.watch(()=>e.content,(v,b)=>{v!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const v=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(v).forEach(p=>{n.style.setProperty(p,v.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(v.lineHeight==="normal"?e.lineHeight:v.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(v.paddingTop)+h(v.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const v=e.content.length,b=Math.floor((0+v)/2),u=e.direction==="middle"?m([0,b],[b,v]):f(0,v);r.value=u,document.body.removeChild(n)}},f=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(b-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(b,p)};const k=Math.round((v+b)/2);return e.direction==="end"?n.innerText=e.content.slice(0,k)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(k,p),n.offsetHeight<=a?e.direction==="end"?f(k,b):f(v,k):e.direction==="end"?f(v,k):f(k,b)},m=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v[1]-v[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],p)};const k=Math.floor((v[0]+v[1])/2),S=Math.ceil((b[0]+b[1])/2);return n.innerText=e.content.slice(0,k)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?m([k,v[1]],[b[0],S]):m([v[0],k],[S,b[1]])},h=v=>{if(!v)return 0;const b=v.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},y=v=>{v==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),i1={key:0},c1={key:1},u1={key:2};function d1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",i1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",c1,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",u1,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const ia=J(s1,[["render",d1]]),{componentName:f1,create:m1}=X("animate"),p1=m1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${f1}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),h1={class:"fox-animate"};function g1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",h1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ca=J(p1,[["render",g1]]),{componentName:y1,create:v1}=X("watermark"),k1=v1({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:f,imageHeight:m,content:h,fontStyle:y,fontWeight:g,fontColor:v,fontSize:b,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),w=window.devicePixelRatio,N=S.getContext("2d"),T=`${(a+s)*w}px`,B=`${(r+i)*w}px`,D=s*w,C=i*w;if(S.setAttribute("width",T),S.setAttribute("height",B),N){if(d){N.translate(D/2,C/2),N.rotate(Math.PI/180*Number(c));const V=new Image;V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=d,V.onload=()=>{N.drawImage(V,-f*w/2,-m*w/2,f*w,m*w),N.restore(),l.base64Url=S.toDataURL()}}else if(h){N.textBaseline="middle",N.textAlign="center",N.translate(D/2,C/2),N.rotate(Math.PI/180*Number(c));const V=Number(b)*w;N.font=`${y} normal ${g} ${V}px/${C}px ${u}`,N.fillStyle=v,N.fillText(h,0,0),N.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,f,m,h,y,g,v,b,u],()=>{p()});const k=t.computed(()=>{const S=y1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:k}}});function b1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const ua=J(k1,[["render",b1]]);function S1(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:C1,create:w1}=X("trend-arrow"),N1=w1({components:{TriangleUp:te.TriangleUp,TriangleDown:te.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[C1]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${S1(Number(d),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function B1(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const da=J(N1,[["render",B1]]),{create:V1}=X("tour"),A1=V1({components:{[Wt.name]:Wt,Close:te.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:f,maskWidth:m,maskHeight:h}=e,{width:y,height:g,left:v,top:b}=n.value,u=[v+y/2,b+g/2],p=Number(m||y),k=Number(h||g);return{width:`${p+ +f[1]*2}px`,height:`${k+ +f[0]*2}px`,top:`${u[1]-k/2-+f[0]}px`,left:`${u[0]-p/2-+f[1]}px`}}),s=f=>{f=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const f=document.querySelector(`#${e.steps[l.active].target}`),m=Ve(f);n.value=m},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,f=>{f&&i(),l.active=0,l.showTour=f,l.showPopup=f}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),T1={key:0,class:"fox-tour-content"},$1={key:0,class:"fox-tour-content-top"},E1={class:"fox-tour-content-inner"},D1={class:"fox-tour-content-bottom"},x1={class:"fox-tour-content-bottom-init"},I1={class:"fox-tour-content-bottom-operate"},q1={key:1,class:"fox-tour-content fox-tour-content-tile"},M1={class:"fox-tour-content-inner"};function z1(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=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",T1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",$1,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",E1,t.toDisplayString(c.content),1),t.createElementVNode("div",D1,[t.createElementVNode("div",x1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",I1,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=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:o[3]||(o[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:o[4]||(o[4]=f=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",q1,[t.createElementVNode("div",M1,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const fa=J(A1,[["render",z1]]),{componentName:YB,create:L1,scope:P1}=X("address"),R1=L1({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ce.name]:ce,[Rt.name]:Rt},inheritAttrs:!1,props:{...Xe,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(P1),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),f=t.ref(null),m=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),y=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(A=>{if(!A.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return E=E.sort((A,H)=>A.title.localeCompare(H.title)),E.forEach(A=>{const H=x.findIndex(R=>R.title===A.title);H<=-1?x.push({title:A.title,list:[].concat(A)}):x[H].list.push(A)}),x};let g=t.ref([]),v=t.reactive({});const b=t.ref("self"),u=t.ref(20),p=()=>{const E=e.modelValue,x=E.length;if(x>0){if(i.value=x-1,h.value.length==0){i.value=0;return}for(let A=0;A<x;A++){let H=[];switch(A){case 0:H=e.province;break;case 1:H=e.city;break;case 2:H=e.country;break;default:H=e.town}g.value[A]=H.filter(R=>R.id==E[A])[0]}S()}},k=(E,x)=>E&&E.name||i.value<x&&E?E.name:e.columnsPlaceholder[x]||l("select"),S=()=>{T(),t.nextTick(()=>{const E=a.value&&a.value.getElementsByClassName("active")[0];if(E){const x=E.offsetLeft;u.value=x||20}})},w=E=>{const x=i.value;c.value=i.value;const A={custom:d.value[x]};g.value[x]=E;for(let H=x+2;H<4;H++)g.value.splice(H,1);x<3?(i.value=x+1,S(),A.next=d.value[i.value],A.value=E,o("change",A)):(C(),o("update:modelValue"))},N=(E,x)=>{c.value=i.value,k(E,x)&&(i.value=x,S())},T=()=>{const E=f.value,x=c.value,A=m.value[i.value];E?.scrollTop&&(m.value[x]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:A,behavior:"auto"})})},B=E=>{const x=e.existAddress;let A={};x.forEach(H=>{H&&H.selectedAddress&&(A=H),H.selectedAddress=!1}),E.selectedAddress=!0,v=E,o("selected",A,E,x),C()},D=()=>{g.value=[],i.value=0,S()},C=(E="self")=>{b.value=E=="cross"?"cross":"self",r.value=!1},V=()=>{b.value="mask"},M=()=>{const E={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},x={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(A=>{const H=g.value[A];E.addressIdStr+=`${A?"_":""}${H&&H.id||0}`,E.addressStr+=H&&H.name||""}),x.data=E):x.data=v,D(),b.value=="self"?o("close",x):o("close-mask",{closeWay:b}),o("update:visible",!1)},L=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",D(),o("switch-module",{type:s.value})},$=(E,x)=>{w(x)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:L,closeWay:b,close:M,getTabName:k,nextAreaList:w,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:N,selectedExist:B,clickOverlay:V,handClose:C,handleElevatorItem:$,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:f}}}),F1={class:"fox-address"},O1={class:"fox-address__header"},K1={class:"fox-address__header__title"},U1={key:0,class:"fox-address__custom"},H1={class:"fox-address__region",ref:"tabRegion"},j1=["onClick"],W1={key:0,class:"active fox-address__region-item"},Y1={key:0,class:"fox-address__detail"},X1={class:"fox-address__detail-list",ref:"scrollDom"},Q1=["onClick"],G1={key:1,class:"fox-address__elevator-group"},Z1={key:1,class:"fox-address__exist"},J1={class:"fox-address__exist-group"},_1={class:"fox-address__exist-group-list"},eC=["onClick"],tC={class:"fox-address__exist-item-info"},oC={key:0,class:"fox-address__exist-item-info-name"},nC={key:1,class:"fox-address__exist-item-info-phone"},lC={class:"fox-address__exist-item-info-bottom"},aC={class:"fox-address__exist-choose-btn"};function rC(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),f=t.resolveComponent("Location2"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",F1,[t.createElementVNode("view",O1,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",K1,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",U1,[t.createElementVNode("view",H1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:g=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,j1))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",W1,[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",Y1,[t.createElementVNode("ul",X1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,y)=>(t.openBlock(),t.createElementBlock("li",{key:y,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick: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,Q1))),128))],512)])):(t.openBlock(),t.createElementBlock("view",G1,[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",Z1,[t.createElementVNode("div",J1,[t.createElementVNode("ul",_1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,y)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick: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",tC,[h.name?(t.openBlock(),t.createElementBlock("div",oC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",nC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",lC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,eC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",aC,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 ma=J(R1,[["render",rC]]),{componentName:sC,create:iC}=X("barrage"),cC=iC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[sC]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),f=t.ref(0),m=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),f.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],v()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},g=k=>{let w=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const N=[];w&&Array.from(w).forEach(T=>{k=="init"?(T.style.opacity="0",N.push(T)):(T.classList="",T.style={})}),k=="init"&&(i.value=N)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,k=>{e.danmu.length>0&&(i.value=[...k])});const b=k=>{const S=f.value%i.value.length;!e.loop&&f.value===i.value.length?i.value.splice(i.value.length,0,k):i.value.splice(S,0,k)},u=()=>{v(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const k=e.loop?f.value%i.value.length:f.value;let S=document.createElement("view");l&&typeof i.value[k]=="object"?(S=i.value[k],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[k],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const w=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${m}ms`,S.style.top=k%c.value*(w+d.value)+20+"px",S.style.opacity="1",!l){const N=S.offsetWidth;S.style.width=N+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&f.value>=i.value.length-1)&&(f.value++,f.value>=i.value.length&&(f.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:b}}});function uC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const pa=J(cC,[["render",uC]]),{componentName:dC,create:fC,scope:mC}=X("signature"),pC=fC({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:{[Ie.name]:Ie},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(mC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[dC]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],f,!1)},f=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],m,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},m=p=>{p.preventDefault();let k=i.isSupportTouch?p.touches[0]:p;o("signing",k);let S=a.value.getBoundingClientRect(),w=k.clientX-S.left,N=k.clientY-S.top;i.ctx.lineTo(w,N),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],m,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],m,!1),a.value.removeEventListener(i.events[2],h,!1)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},v=()=>{u(a.value)},b=p=>{if(!p)return!0;var k=document.createElement("canvas");return k.width=p.width,k.height=p.height,p?.toDataURL()==k.toDataURL()},u=p=>{let k;switch(e.type){case"png":k=p.toDataURL("image/png");break;case"jpg":k=p.toDataURL("image/jpeg",.8);break}const S=b(p)?"请绘制签名":p,w=b(p)?"":k;o("confirm",S,w)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:v,clear:g,classes:s}}}),hC={class:"fox-signature-inner",ref:"wrap"},gC=["height","width"],yC={key:0,class:"fox-signature-unsopport"};function vC(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",hC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,gC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",yC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ha=J(pC,[["render",vC]]),{componentName:kC,create:bC,scope:SC}=X("time-select"),CC=bC({components:{[ce.name]:ce},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=ae.useFoxI18n(SC),n=t.computed(()=>({[kC]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),wC={class:"fox-time-select__title"},NC={class:"fox-time-select__title__fixed"},BC={key:0},VC={class:"fox-time-select__content"},AC={class:"fox-time-select__content__pannel"},TC={class:"fox-time-select__content__detail"};function $C(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",wC,[t.createElementVNode("view",NC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",BC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",VC,[t.createElementVNode("view",AC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",TC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ga=J(CC,[["render",$C]]),{componentName:EC,create:DC}=X("time-pannel"),xC=DC({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[EC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function IC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const ya=J(xC,[["render",IC]]),{componentName:qC,create:MC}=X("time-detail"),zC=MC({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[qC]:!0})),s=d=>{let f=a.currentTime.find(m=>m.key==a.currentKey);if(f)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":f.list.filter(m=>m===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==a.currentKey).list),c=d=>{o.emit("select",d)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),LC={class:"fox-time-detail__detail fox-time-detail__detail--moring"},PC={class:"fox-time-detail__detail__list"},RC=["onClick"];function FC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",LC,[t.createElementVNode("view",PC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,RC))),128))])])],2)}const va=J(zC,[["render",FC]]),{componentName:XB,create:OC,scope:KC}=X("sku-header"),UC=OC({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ye.name]:Ye},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(KC);return{getSlots:r=>l[r],t:n}}}),HC={class:"fox-sku-header"},jC=["src"],WC={class:"fox-sku-header-right"},YC={key:3,class:"fox-sku-header-right-extra"};function XC(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",HC,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,jC),t.createElementVNode("view",WC,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",YC,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const QC=J(UC,[["render",XC]]),{componentName:QB,create:GC}=X("sku-select"),ZC=GC({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),JC={class:"fox-sku-select"},_C={class:"fox-sku-select-item-title"},ew={class:"fox-sku-select-item-skus"},tw=["onClick"];function ow(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",JC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",_C,t.toDisplayString(s.name),1),t.createElementVNode("view",ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:f=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,tw))),128))])]))),128))])}const nw=J(ZC,[["render",ow]]),{componentName:GB,create:lw}=X("sku-stepper"),aw=lw({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:{[Qe.name]:Qe},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,d)=>{o("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&<(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),rw={class:"fox-sku-stepper"},sw={class:"fox-sku-stepper-title"},iw=["innerHTML"],cw={class:"fox-sku-stepper-count"};function uw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",rw,[t.createElementVNode("view",sw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,iw),t.createElementVNode("view",cw,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const dw=J(aw,[["render",uw]]),{componentName:ZB,create:fw}=X("sku-operate"),mw=fw({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),pw={key:0,class:"fox-sku-operate"},hw={key:0,class:"fox-sku-operate-desc"},gw={key:1,class:"fox-sku-operate-btn"},yw=["onClick"];function vw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",pw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",hw,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",gw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,yw))),128))]))])):t.createCommentVNode("",!0)}const kw=J(mw,[["render",vw]]),{componentName:JB,create:bw,scope:Sw}=X("sku"),Cw=bw({props:{...Xe,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:QC,SkuSelect:nw,SkuStepper:dw,SkuOperate:kw,[ce.name]:ce},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Sw),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&v()}),t.onMounted(()=>{});const i=b=>l[b],c=b=>{o("select-sku",b)},d=b=>{s.value=b,o("change-stepper",b)},f=b=>{o("add",b)},m=b=>{o("reduce",b)},h=b=>{o("over-limit",b)},y=b=>{o("click-btn-operate",{type:b,value:s.value})},g=b=>{b=="icon"&&o("click-close-icon"),b=="overlay"&&o("click-overlay"),b=="close"&&o("close"),r.value=!1},v=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:f,reduce:m,getSlots:i,...a}}}),ww={class:"fox-sku"},Nw={class:"fox-sku-content"};function Bw(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=m=>e.showPopup=m),onClickCloseIcon:o[1]||(o[1]=m=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=m=>e.closePopup("overlay")),onClose:o[3]||(o[3]=m=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",ww,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",Nw,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const ka=J(Cw,[["render",Bw]]),{create:Vw}=X("card"),Aw=Vw({components:{[Ye.name]:Ye,[jt.name]:jt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),Tw={class:"fox-card"},$w={class:"fox-card__left"},Ew=["src"],Dw={class:"fox-card__right"},xw={class:"fox-card__right__title"},Iw={key:0,class:"fox-card__right__price"},qw={class:"fox-card__right__other"},Mw={class:"fox-card__right__shop"},zw={class:"fox-card__right__shop__name"};function Lw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Tw,[t.createElementVNode("div",$w,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Ew)]),t.createElementVNode("div",Dw,[t.createElementVNode("div",xw,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Iw,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",qw,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",Mw,[t.createElementVNode("div",zw,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const ba=J(Aw,[["render",Lw]]),{create:Pw,scope:Rw}=X("ecard"),Fw=Pw({components:{[Qe.name]:Qe},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Rw),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,y)=>{n.value=y,s.value=e.cardAmountMin,a.value=h.price,o("change",h),o("update:modelValue",h.price)},d=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},f=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},m=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:m,change:d,inputClick:f,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),Ow={class:"fox-ecard"},Kw={class:"fox-ecard__title"},Uw={class:"fox-ecard__list"},Hw=["onClick"],jw={class:"fox-ecard__list__input--con"},Ww=["placeholder"],Yw={class:"fox-ecard__list__step"};function Xw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Ow,[t.createElementVNode("view",Kw,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",Uw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,Hw))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",jw,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,Ww),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",Yw,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Sa=J(Fw,[["render",Xw]]),{create:Qw,scope:Gw}=X("address-list-item"),Zw=Qw({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Gw);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),Jw={class:"fox-address-list-item__info"},_w={class:"fox-address-list-item__info-contact"},eN={class:"fox-address-list-item__info-contact-name"},tN={class:"fox-address-list-item__info-contact-tel"},oN={key:0,class:"fox-address-list-item__info-contact-default"},nN={class:"fox-address-list-item__info-handle"},lN={class:"fox-address-list-item__addr"};function aN(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",Jw,[t.createElementVNode("div",_w,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",eN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",tN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",nN,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",lN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const pr=J(Zw,[["render",aN]]),{create:rN}=X("address-list-general"),sN=rN({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:pr,[Ie.name]:Ie,[Kt.name]:Kt},setup(e,{emit:o}){const l=()=>t.h(pr,{item:e.item,onDelIcon(w){s(w)},onEditIcon(w){i(w)},onClickItem(w){c(w)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=w=>{o("delIcon",w,e.item),w.stopPropagation()},i=w=>{o("editIcon",w,e.item),w.stopPropagation()},c=w=>{a.value||(o("clickItem",w,e.item),w.stopPropagation())},d=w=>{o("longDel",w,e.item),w.stopPropagation()},f=w=>{n=0,r.value=!0,o("longDown",w,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:w=>{n=setTimeout(()=>{f(w)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:w=>{o("longCopy",w,e.item),w.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:w=>{o("longSet",w,e.item),w.stopPropagation()},maskClick:w=>{n!=0&&(r.value=!1),w.stopPropagation(),w.preventDefault()},swipeDelClick:w=>{o("swipeDel",w,e.item),w.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),iN={key:0,class:"fox-address-list-general"},cN={class:"fox-address-list-swipe"};function uN(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",cN,[(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",iN,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const dN=J(sN,[["render",uN]]),{componentName:fN,create:mN,scope:pN}=X("address-list"),hN=mN({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:dN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(pN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[fN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(v=>Dr(a,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,b)=>{o("delIcon",v,b),v.stopPropagation()},c=(v,b)=>{o("editIcon",v,b),v.stopPropagation()},d=(v,b)=>{o("clickItem",v,b),v.stopPropagation()},f=(v,b)=>{o("longCopy",v,b),v.stopPropagation()},m=(v,b)=>{o("longSet",v,b),v.stopPropagation()},h=(v,b)=>{o("longDel",v,b),v.stopPropagation()},y=(v,b)=>{o("swipeDel",v,b),v.stopPropagation()},g=v=>{o("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:f,clickLongSet:m,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function gN(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Ca=J(hN,[["render",gN]]),{componentName:_B,create:yN}=X("category"),vN=yN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),kN={class:"fox-category"},bN={class:"fox-category__cateList"},SN={key:0},CN=["onClick"];function wN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",kN,[t.createElementVNode("div",bN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",SN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,CN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const wa=J(vN,[["render",wN]]),{componentName:e2,create:NN}=X("category-pane"),BN=NN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),VN={class:"fox-category-pane"},AN={key:0,class:"fox-category-pane__cateListRight"},TN={class:"fox-category-pane__childTitle"},$N={key:0,class:"fox-category-pane__childItemList"},EN=["onClick"],DN=["src"],xN={class:"fox-category-pane__skuImg"},IN={key:1,class:"fox-category-pane__cateListRight"},qN={class:"fox-category-pane__childTitle"},MN={key:0,class:"fox-category-pane__childItemList"},zN=["onClick"],LN={class:"fox-category-pane__skuName"},PN={key:2,class:"fox-category-pane__selfItemList"},RN=["onClick"];function FN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",VN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",AN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",TN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",$N,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:f=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,DN),t.createElementVNode("div",xN,t.toDisplayString(c?.catName),1)],8,EN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",IN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",qN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:f=>e.onChange(c)},[t.createElementVNode("div",LN,t.toDisplayString(c?.catName),1)],8,zN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",PN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,RN))),128))])):t.createCommentVNode("",!0)])}const Na=J(BN,[["render",FN]]),{componentName:t2,create:ON}=X("comment-header"),KN=ON({components:{[vt.name]:vt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),UN={class:"fox-comment-header__user"},HN={class:"fox-comment-header__user-avter"},jN=["src"],WN={class:"fox-comment-header__user-score"},YN={key:0,class:"fox-comment-header__time"};function XN(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",UN,[t.createElementVNode("view",HN,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,jN)):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",WN,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",YN,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const QN=J(KN,[["render",XN]]),{componentName:o2,create:GN}=X("comment-images"),ZN=GN({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,f=s=="img"?i-c.length:i;o("clickImages",{type:s,index:f,value:s=="img"?d[f]:c[f]})},totalImages:a}}}),JN=["onClick"],_N=["src"],eB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),tB=["onClick"],oB=["src"],nB={key:0,class:"fox-comment-images__mask"};function lB(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,_N),eB],8,JN))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,oB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",nB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,tB)):t.createCommentVNode("",!0)],64))),128))],2)}const aB=J(ZN,[["render",lB]]),{componentName:n2,create:rB,scope:sB}=X("comment-bottom"),iB=rB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(sB),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),cB={class:"fox-comment-bottom"},uB={key:0},dB={class:"fox-comment-bottom__cpx"},fB=["onClick"];function mB(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",cB,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",uB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",dB,[(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:m=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=m=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,fB))),128))])])}const pB=J(iB,[["render",mB]]),{componentName:hB,create:gB,scope:yB}=X("comment"),vB=gB({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:QN,CommentImages:aB,CommentBottom:pB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(yB),n=t.computed(()=>({[hB]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),kB=["innerHTML"],bB={class:"fox-comment__follow-title"},SB={class:"fox-comment__follow-com"},CB={key:0,class:"fox-comment__follow-img"};function wB(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...f)=>e.handleClick&&e.handleClick(...f)),innerHTML:e.info.content},null,12,kB),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",bB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",SB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",CB,[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 Ba=J(vB,[["render",wB]]),NB=[Ln,Rn,Fn,On,Kn,be,Hn,jn,Wn,Yn,Xn,Eo,Qn,Gn,Jn,_n,qo,Mo,el,zo,Lo,tl,ol,ot,nl,ll,Oo,al,rl,sl,il,cl,ul,dl,tt,fl,ml,pl,hl,Ie,gl,yl,at,ce,vl,kl,bl,Sl,qt,Cl,wl,Nl,Bl,Vl,Al,Tl,$l,El,Rt,Dl,Mt,zt,xl,Il,ql,Ml,Ft,Fo,Do,Io,xo,Qe,vt,yt,zl,Ll,Pl,Kt,Rl,Fl,Ol,Ut,Ro,Kl,Hl,Po,Ct,Wl,Yl,Ht,Xl,Ql,Ot,Gl,Zl,Jl,kt,_l,ea,bt,St,Ye,Ko,ta,oa,na,jt,Wt,la,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba],BB=new li(NB,"4.0.0");exports.ActionSheet=Rl;exports.ActionsheetItem=al;exports.ActionsheetPane=Oo;exports.Address=ma;exports.AddressList=Ca;exports.Animate=ca;exports.Audio=Wl;exports.AudioOperate=Yl;exports.Avatar=Ht;exports.AvatarGroup=Xl;exports.BackTop=Fl;exports.Badge=na;exports.Barrage=pa;exports.Broadcast=qn;exports.BroadcastKey=ke;exports.Button=Ie;exports.Calendar=Io;exports.CalendarItem=_n;exports.Card=ba;exports.Cascader=Do;exports.CascaderItem=Gn;exports.Category=wa;exports.CategoryPane=Na;exports.Cell=gl;exports.CellGroup=yl;exports.Checkbox=zo;exports.CheckboxGroup=Lo;exports.CheckboxItem=tl;exports.CircleProgress=Gl;exports.Col=bl;exports.Collapse=aa;exports.CollapseItem=ra;exports.Comment=Ba;exports.Content=On;exports.CountDown=oa;exports.CountUp=ta;exports.DataItemsKey=ut;exports.DateItem=Jn;exports.DatePicker=xo;exports.DateUtils=ne;exports.Dialog=Ut;exports.Divider=Cl;exports.Domain=ko;exports.DomainKey=De;exports.DomainProvider=pl;exports.Drag=Ol;exports.Ecard=Sa;exports.Elevator=Rt;exports.Ellipsis=ia;exports.Empty=Jl;exports.FixedNav=Vl;exports.FloatingButton=dl;exports.FooterBar=Fn;exports.FoxActionSheet=Rl;exports.FoxActionsheetItem=al;exports.FoxActionsheetPane=Oo;exports.FoxAddress=ma;exports.FoxAddressList=Ca;exports.FoxAnimate=ca;exports.FoxAudio=Wl;exports.FoxAudioOperate=Yl;exports.FoxAvatar=Ht;exports.FoxAvatarGroup=Xl;exports.FoxBackTop=Fl;exports.FoxBadge=na;exports.FoxBarrage=pa;exports.FoxButton=Ie;exports.FoxCalendar=Io;exports.FoxCalendarItem=_n;exports.FoxCard=ba;exports.FoxCascader=Do;exports.FoxCascaderItem=Gn;exports.FoxCategory=wa;exports.FoxCategoryPane=Na;exports.FoxCell=gl;exports.FoxCellGroup=yl;exports.FoxCheckbox=zo;exports.FoxCheckboxGroup=Lo;exports.FoxCheckboxItem=tl;exports.FoxCircleProgress=Gl;exports.FoxCol=bl;exports.FoxCollapse=aa;exports.FoxCollapseItem=ra;exports.FoxComment=Ba;exports.FoxContent=On;exports.FoxCountDown=oa;exports.FoxCountUp=ta;exports.FoxDateItem=Jn;exports.FoxDatePicker=xo;exports.FoxDialog=Ut;exports.FoxDivider=Cl;exports.FoxDomainProvider=pl;exports.FoxDrag=Ol;exports.FoxEcard=Sa;exports.FoxElevator=Rt;exports.FoxEllipsis=ia;exports.FoxEmpty=Jl;exports.FoxFixedNav=Vl;exports.FoxFloatingButton=dl;exports.FoxFooterBar=Fn;exports.FoxGrid=wl;exports.FoxGridItem=Nl;exports.FoxGroup=Kn;exports.FoxHeaderBar=Rn;exports.FoxHintText=ot;exports.FoxImage=vl;exports.FoxImagePreview=Ko;exports.FoxIndicator=xl;exports.FoxInfiniteLoading=Ro;exports.FoxInputItem=Wn;exports.FoxInputNumber=Qe;exports.FoxInputnumberItem=rl;exports.FoxItem=be;exports.FoxLayout=kl;exports.FoxLinkItem=nl;exports.FoxList=Ql;exports.FoxMapping=ml;exports.FoxMenu=Al;exports.FoxMenuItem=Tl;exports.FoxMessageBox=tt;exports.FoxMoneyItem=Yn;exports.FoxNavbar=Bl;exports.FoxNoticeBar=Zl;exports.FoxNotify=Hl;exports.FoxNumberKeyboard=Pl;exports.FoxOverLay=at;exports.FoxPage=Ln;exports.FoxPagination=Dl;exports.FoxPicker=yt;exports.FoxPickerItem=Qn;exports.FoxPopover=Wt;exports.FoxPopup=ce;exports.FoxPrice=Ye;exports.FoxProgress=Ot;exports.FoxPullRefresh=Kl;exports.FoxRadio=qo;exports.FoxRadioGroup=Mo;exports.FoxRadioItem=el;exports.FoxRange=Ft;exports.FoxRate=vt;exports.FoxRateItem=ll;exports.FoxRollingProvider=hl;exports.FoxRow=Sl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Fo;exports.FoxShortPassword=zl;exports.FoxSideNavBar=Il;exports.FoxSideNavBarItem=ql;exports.FoxSignature=ha;exports.FoxSkeleton=la;exports.FoxSku=ka;exports.FoxSlotItem=jn;exports.FoxStep=ea;exports.FoxSteps=_l;exports.FoxStepsBar=ul;exports.FoxSticky=qt;exports.FoxSubSideNavBar=Ml;exports.FoxSwipe=Kt;exports.FoxSwiper=bt;exports.FoxSwiperItem=St;exports.FoxSwitch=Po;exports.FoxSwitchItem=ol;exports.FoxTabPane=zt;exports.FoxTabbar=$l;exports.FoxTabbarItem=El;exports.FoxTable=sa;exports.FoxTabs=Mt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=jt;exports.FoxText=fl;exports.FoxTextarea=Eo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=va;exports.FoxTimePannel=ya;exports.FoxTimeSelect=ga;exports.FoxToast=Ct;exports.FoxTour=fa;exports.FoxTrendArrow=da;exports.FoxUploader=Ll;exports.FoxVideo=kt;exports.FoxWaterMark=ua;exports.Grid=wl;exports.GridItem=Nl;exports.Group=Kn;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=vl;exports.ImagePreview=Ko;exports.Indicator=xl;exports.InfiniteLoading=Ro;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=kl;exports.LinkItem=nl;exports.List=Ql;exports.Mapping=ml;exports.Menu=Al;exports.MenuItem=Tl;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.Navbar=Bl;exports.NoticeBar=Zl;exports.Notify=Hl;exports.NumberKeyboard=Pl;exports.OverLay=at;exports.Page=Ln;exports.Pagination=Dl;exports.Picker=yt;exports.PickerItem=Qn;exports.Popover=Wt;exports.Popup=ce;exports.Price=Ye;exports.PriorityPolicy=io;exports.Progress=Ot;exports.PullRefresh=Kl;exports.Radio=qo;exports.RadioGroup=Mo;exports.RadioItem=el;exports.Range=Ft;exports.Rate=vt;exports.RateItem=ll;exports.RollingProvider=hl;exports.Row=Sl;exports.RowItem=Hn;exports.SearchBar=Fo;exports.ShortPassword=zl;exports.SideNavBar=Il;exports.SideNavBarItem=ql;exports.Signature=ha;exports.Skeleton=la;exports.Sku=ka;exports.SlotItem=jn;exports.Step=ea;exports.Steps=_l;exports.StepsBar=ul;exports.Sticky=qt;exports.SubSideNavBar=Ml;exports.Swipe=Kt;exports.Swiper=bt;exports.SwiperItem=St;exports.Switch=Po;exports.SwitchItem=ol;exports.TabPane=zt;exports.Tabbar=$l;exports.TabbarItem=El;exports.Table=sa;exports.Tabs=Mt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=jt;exports.Text=fl;exports.Textarea=Eo;exports.TextareaItem=Xn;exports.TimeDetail=va;exports.TimePannel=ya;exports.TimeSelect=ga;exports.Toast=Ct;exports.Tour=fa;exports.TrendArrow=da;exports.UniqueID=Un;exports.Uploader=Ll;exports.ValidateSchema=Lr;exports.ValidateSchemaKey=Re;exports.Video=kt;exports.WaterMark=ua;exports.cancelRaf=hr;exports.clamp=Pe;exports.clearNonNumber=cn;exports.clone=sn;exports.compareTo=an;exports.createBroadcast=yo;exports.createValidateSchema=vo;exports.debounce=ht;exports.debounceRef=Xs;exports.decimalLength=Er;exports.default=BB;exports.defineBroadcast=Rs;exports.defineConfigDomain=Pr;exports.defineDataItem=Fr;exports.defineDomain=zn;exports.defineItem=we;exports.definePageState=Or;exports.deleteGlobalValidator=Us;exports.disabledProperty=Ce;exports.divide=En;exports.excludeProps=xn;exports.extend=nt;exports.floatData=Dr;exports.getGlobalValidateCheckEvents=qr;exports.getGlobalValidateResetEvents=zr;exports.getPageContentAreaHeight=ro;exports.getPageContentAreaWidth=so;exports.getPageFooterAreaHeight=Co;exports.getPageHeaderAreaHeight=So;exports.getRootDomain=mt;exports.getScrollTopRoot=In;exports.hasSymbol=wr;exports.includeProps=he;exports.indexOf=Ls;exports.installRules=Rr;exports.integerLength=$r;exports.isArray=po;exports.isArrayLike=Br;exports.isBrowser=st;exports.isDate=Fe;exports.isESModule=xs;exports.isEmptyString=ie;exports.isEqual=xe;exports.isFunction=lo;exports.isHidden=go;exports.isInnerPage=Zs;exports.isMap=$s;exports.isNil=br;exports.isNumberString=Tr;exports.isObject=Be;exports.isPlainObject=rn;exports.isPromise=Dn;exports.isRegExp=Ar;exports.isSet=Es;exports.isString=Sr;exports.isSubPage=Js;exports.isSymbol=Ds;exports.isWindow=Nr;exports.lastIndexOf=Ps;exports.makeArray=zs;exports.merge=Vr;exports.multiply=yr;exports.negate=vr;exports.nextTick=qs;exports.numberFormat=mo;exports.objectToString=Cr;exports.once=Qs;exports.padZero=Je;exports.preventDefault=un;exports.property=Ne;exports.raf=Le;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Hs;exports.setGlobalValidateHandler=Os;exports.setGlobalValidateMessages=Ws;exports.setGlobalValidateResetEvents=js;exports.setGlobalValidator=Ks;exports.throttle=ao;exports.toBoolean=pe;exports.toNumber=me;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=fe;exports.toTypeString=ho;exports.toValue=Ee;exports.tryTimes=Mn;exports.typeOf=lt;exports.unNumberFormat=kr;exports.updatePageState=dn;exports.useBroadcast=$t;exports.useDomain=Oe;exports.useExpose=Te;exports.useInnerSize=Pn;exports.usePageState=bo;exports.usePosition=Gr;exports.useRect=Ve;exports.useSize=wo;exports.useTouch=Ke;exports.valueLength=ge;
|
|
13
|
+
`)}}});function og(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Cl=J(tg,[["render",og]]),{componentName:ng,create:lg}=W("divider"),ag=lg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=ng;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function rg(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const wl=J(ag,[["render",rg]]);function sg(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function ig(e,o,l){const n=sg(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function cg(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),ig(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:dr}=W("grid"),bs=Symbol("grid"),ug={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}},dg={props:ug,setup(e,{slots:o}){cg(bs,`${dr}-item`)({props:e});const l=t.computed(()=>{const a=dr;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:fg}=W("grid"),Nl=fg(dg);function mg(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:pg,componentName:fr}=W("grid-item"),hg=pg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=mg(bs);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[fr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=fe(a.gutter),n.value>=a.columnNum&&(d.marginTop=fe(a.gutter))),d}),i=t.computed(()=>{const d=`${fr}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{o("click",d)}}}}),gg={class:"fox-grid-item__text"};function yg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",gg,[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 Bl=J(hg,[["render",yg]]),{componentName:vg,create:kg}=W("navbar"),bg=kg({components:{Left:te.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const b=vg;return{[b]:!0,[`${b}--border`]:l.value,[`${b}--fixed`]:n.value,[`${b}--safe-area-inset-top`]:a.value}}),f=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){o("on-click-back")}function y(){o("on-click-title")}function g(){o("on-click-icon")}function v(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:v}}}),Sg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Cg={key:1,class:"fox-navbar__text"},wg={class:"fox-navbar__title"},Ng={key:0,class:"fox-navbar__text"},Bg={key:1,class:"fox-navbar__text"},Vg={class:"fox-navbar__title"},Ag={key:0,class:"fox-navbar__text"};function $g(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Sg,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Cg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",wg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Ng,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Bg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Vg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Ag,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Vl=J(bg,[["render",$g]]),Tg=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=ae.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(f=!n.visible)=>{a("update:visible",f)},selected:(f,h)=>{a("selected",{item:f,event:h}),c.value=f.id},current:c}}}),{componentName:Eg,create:Dg,scope:xg}=W("fixednav"),Ig=Dg(Tg(Eg,xg,{[at.name]:at,Left:te.Left})),qg={class:"fox-fixednav__list"},Mg=["onClick"],zg=["src"],Lg={class:"span"},Pg={key:0,class:"b"},Fg={class:"text"};function Rg(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",qg,[(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,zg),t.createElementVNode("view",Lg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Pg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Mg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Fg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=J(Ig,[["render",Rg]]),{componentName:Og,create:Kg}=W("menu"),Ug=Kg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),u=t.reactive([]);return{children:b,linkChildren:k=>{const S=C=>{C.proxy&&(u.push(C),b.push(C.proxy))},N=C=>{if(C.proxy){let B=u.indexOf(C);B>-1&&u.splice(B,1);let V=b.indexOf(C.proxy);B>-1&&b.splice(V,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:S,children:b,internalChildren:u},k))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(b=>b.state.showWrapper)),m=t.computed(()=>({[Og]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const b=Ve(n);e.direction==="down"?a.value=b.bottom:a.value=window.innerHeight-b.top}};c({props:e,offset:a});const h=b=>{i.forEach((u,p)=>{p===b?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),g=()=>{const{scrollFixed:b}=e,u=y(window);r.value=u>(typeof b=="boolean"?30:Number(b))},v=b=>{let u="";const{titleClass:p}=e;return b&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:v}}}),Hg=["onClick"],jg={class:"fox-menu__title-text"},Wg={class:"fox-menu__title-icon"};function Yg(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",jg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Wg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Hg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=J(Ug,[["render",Yg]]),{componentName:Xg,create:Qg}=W("menu-item"),Gg=Qg({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:{[ie.name]:ie,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const g=t.getCurrentInstance(),{link:v,removeLink:b}=y;return v(g),t.onUnmounted(()=>{b(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[Xg]:!0})),i=t.computed(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(g=>g.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,g={})=>{y!==n.showPopup&&(n.showPopup=y,n.isShowPlaceholderElement=y,y&&(n.showWrapper=!0,o("open")))},onClick:y=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(o("update:modelValue",y.value),o("change",y.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),Zg={class:"fox-menu-item__content fox-menu-item__overflow"},Jg=["onClick"];function _g(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Zg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Jg))),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 Tl=J(Gg,[["render",_g]]),{create:ey}=W("tabbar"),ty=ey({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function oy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const El=J(ty,[["render",oy]]),{create:ny}=W("tabbar-item"),ly=ny({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(d=>{if(d.proxy){let m=l.children.length;n.index=m;let f=Object.assign(d.proxy,{index:m});l.children.push(f)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),ay={class:"fox-tabbar-item_icon-box"},ry={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},sy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},iy={key:1,class:"fox-tabbar-item_icon-box_dot"},cy={key:2},uy={key:0};function dy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",ay,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",ry,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",sy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",iy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",cy,[(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",uy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Dl=J(ly,[["render",dy]]),{componentName:fy,create:my}=W("elevator"),py=my({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,o){const l=t.ref(null),n=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[fy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const k="data-";return u.getAttribute(k+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let k=n.listGroup[p];u+=Math.floor(k.clientHeight),n.listHeight.push(u)}},m=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},f=u=>{n.scrollStart=!0;let p=i(u.target,"index"),k=u.touches[0];n.touchState.y1=k.pageY,n.anchorIndex=+p,n.codeIndex=+p,m(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let k=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+k,m(n.codeIndex)},y=()=>{n.scrollStart=!1},g=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},v=u=>{o.emit("click-index",u)},b=u=>{let k=u.target.scrollTop;const S=n.listHeight;n.scrollY=k;for(let N=0;N<S.length-1;N++){let C=S[N],B=S[N+1];if(n.scrollY>=C&&n.scrollY<B){n.currentIndex=N,n.diff=B-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",b)}),$e({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let k=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&k!==0&&(k=0),n.fixedTop!==k&&(n.fixedTop=k)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:v}}}),hy={class:"fox-elevator__list__item__code"},gy=["onClick"],yy=["innerHTML"],vy={class:"fox-elevator__fixed-title"},ky={class:"fox-elevator__bars__inner"},by=["data-index","onClick"];function Sy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",hy,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,yy))],10,gy))),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",vy,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",ky,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,by))),128))])],32)],2)}const Rt=J(py,[["render",Sy]]),{componentName:t2,create:Cy,scope:wy}=W("pagination"),Ny=Cy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(wy),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:g}=t.toRefs(e),v=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,v)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},m=(h,y,g=!1)=>({number:h,text:y,active:g}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let v=1,b=y;const u=y>g;u&&(v=Math.max(a.value-Math.floor(g/2),1),b=v+g-1,b>y&&(b=y,v=b-g+1));for(var p=v;p<=b;p++){const k=m(p,p,a.value==p);h.push(k)}if(u&&g>0&&i.value){if(v>1){const k=m(v-1,"...");h.unshift(k)}if(b<y){const k=m(b+1,"...");h.push(k)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:f,forceEllipses:i}}}),By={class:"fox-pagination"},Vy={key:0,class:"fox-pagination-contain"},Ay=["onClick"],$y={key:1,class:"fox-pagination-contain"},Ty={class:"fox-pagination-simple"};function Ey(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",By,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Vy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,Ay))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",$y,[t.createElementVNode("view",Ty,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const xl=J(Ny,[["render",Ey]]),{componentName:mr,create:Dy}=W("indicator"),xy=Dy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=mr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:mr,padZero:Je}}});function Iy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Il=J(xy,[["render",Iy]]),{componentName:qy,create:My}=W("side-navbar"),zy=My({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[qy]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),Ly={class:"fox-side-navbar__content"},Py={class:"fox-side-navbar__content__list",ref:"list"};function Fy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ly,[t.createElementVNode("view",Py,[t.renderSlot(e.$slots,"default")],512)])],2)}const ql=J(zy,[["render",Fy]]),{componentName:Ry,create:Oy}=W("side-navbar-item"),Ky=Oy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Ry]:!0})),handleClick:()=>{o.emit("click")}})}),Uy=["ikey"],Hy={class:"fox-side-navbar-item__title"};function jy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Hy,t.toDisplayString(e.title),1)],10,Uy)}const Ml=J(Ky,[["render",jy]]),{componentName:Wy,create:Yy}=W("sub-side-navbar"),Xy=Yy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[Wy]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),Qy=["ikey"],Gy={class:"fox-sub-side-navbar__title__text"},Zy={class:"fox-sub-side-navbar__title__icon"};function Jy(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",Gy,t.toDisplayString(e.title),1),t.createElementVNode("span",Zy,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,Qy)}const zl=J(Xy,[["render",Jy]]),{componentName:_y,create:ev}=W("range"),tv=ev({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ue(),c=t.computed(()=>{const{marks:T,max:E,min:x}=e;return Object.keys(T).map(parseFloat).sort((R,Y)=>R-Y).filter(R=>R>=x&&R<=E)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const T=_y;return{[T]:!0,[`${T}-disabled`]:e.disabled,[`${T}-vertical`]:e.vertical,[`${T}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const T="fox-range-container";return{[T]:!0,[`${T}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=T=>!!e.range&&Array.isArray(T),v=()=>{const{modelValue:T,min:E}=e;return g(T)?`${(T[1]-T[0])*100/d.value}%`:`${(T-Number(E))*100/d.value}%`},b=()=>{const{modelValue:T,min:E}=e;return g(T)?`${(T[0]-Number(E))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:v(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),p=T=>{const E="fox-range-mark",{modelValue:x,max:$,min:H}=e;let R=Number(H),Y=Number($);if(e.range){const[I,M]=x;R=I,Y=M}else Y=x;let Q=T<=Y&&T>=R;return{[`${E}-text`]:!0,[`${E}-text-active`]:Q}},k=T=>{const{min:E,vertical:x}=e;let $={left:`${(T-Number(E))/d.value*100}%`};return x&&($={top:`${(T-Number(E))/d.value*100}%`}),$},S=T=>{const{modelValue:E,max:x,min:$}=e;let H=Number($),R=Number(x);if(e.range){const[I,M]=E;H=I,R=M}return{background:T<=R&&T>=H?e.activeColor:e.inactiveColor}},N=T=>{const{min:E,max:x,step:$}=e;return T=Math.max(+E,Math.min(T,+x)),Math.round(T/+$)*+$},C=(T,E)=>JSON.stringify(T)===JSON.stringify(E),B=T=>T[0]>T[1]?T.slice(0).reverse():T,V=(T,E)=>{g(T)?T=B(T).map(N):T=N(T),C(T,e.modelValue)||o("update:modelValue",T),E&&!C(T,n)&&o("change",T)},D=T=>{if(e.disabled)return;const{min:E,modelValue:x}=e,$=Ve(r);let H=T.clientX-$.left,R=$.width;e.vertical&&(H=T.clientY-$.top,R=$.height);const Y=Number(E)+H/R*d.value;if(g(x)){const[Q,I]=x,M=(Q+I)/2;Y<=M?V([Y,I],!0):V([Q,Y],!0)}else V(Y,!0)},w=T=>{e.disabled||(i.start(T),a=e.modelValue,g(a)?n=a.map(N):n=N(a),s.value="start")},A=T=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(T),s.value="draging";const E=Ve(r);let x=i.deltaX.value,$=E.width,H=x/$*d.value;e.vertical&&(x=i.deltaY.value,$=E.height,H=x/$*d.value),g(n)?a[l.value]=n[l.value]+H:a=n+H,V(a),T.stopPropagation(),T.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(V(a,!0),o("drag-end")),s.value="")},F=T=>ho(e.modelValue)&&typeof T=="number"?e.modelValue[T]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:D,onTouchStart:w,onTouchMove:A,onTouchEnd:L,...t.toRefs(e),barStyle:u,curValue:F,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:k,marksList:c,tickStyle:S}}}),ov={key:0,class:"fox-range-min"},nv={key:0,class:"fox-range-mark"},lv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],av={key:0,class:"number"},rv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],sv={key:0,class:"number"},iv={key:1,class:"fox-range-max"};function cv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",ov,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",nv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",av,t.toDisplayString(e.curValue(s)),1))],4))],42,lv)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",sv,t.toDisplayString(e.curValue()),1))],4))],40,rv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",iv,t.toDisplayString(+e.max),1))],2)}const Ot=J(tv,[["render",cv]]),{create:uv,scope:dv}=W("short-password"),fv=uv({components:{[ie.name]:ie,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(dv),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=f=>{f.stopPropagation(),o("focus")};t.watch(()=>e.visible,f=>{s.value=f}),t.watch(()=>e.modelValue,f=>{a.value=f,String(f).length===r.value&&o("complete",f)});const c=()=>{o("update:visible",!1),o("close")},d=f=>Math.min(Math.max(4,f),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),mv={class:"fox-short-password-title"},pv={class:"fox-short-password-subtitle"},hv={class:"fox-short-password-wrapper"},gv={key:0,class:"fox-short-password__item-icon"},yv={class:"fox-short-password__message"},vv={class:"fox-short-password--error"},kv={key:0,class:"fox-short-password--forget"};function bv(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",mv,t.toDisplayString(e.title),1),t.createElementVNode("view",pv,t.toDisplayString(e.desc),1),t.createElementVNode("div",hv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",gv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",yv,[t.createElementVNode("view",vv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",kv,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const Ll=J(fv,[["render",bv]]);class Sv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Cv=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class wv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ss=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);qt(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Nv}=W("progress"),Bv=Nv({components:{Checked:te.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),Vv={class:"fox-progress"},Av={key:0,class:"fox-progress-text"};function $v(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Vv,[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",Av,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Kt=J(Bv,[["render",$v]]),{componentName:Tv,create:Ev,scope:Dv}=W("uploader"),xv=Ev({components:{[Kt.name]:Kt,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Dv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Tv]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,k)=>{const S=new Sv;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=C=>{p.status="ready",p.message=l("readyUpload"),m(k),o("start",C)},S.onProgress=(C,B)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(C.loaded/C.total*100).toFixed(0),o("progress",{event:C,option:B,percentage:p.percentage})},S.onSuccess=(C,B)=>{p.status="success",p.message=l("success"),o("success",{responseText:C,option:B,fileItem:p}),o("update:fileList",n)},S.onFailure=(C,B)=>{p.status="error",p.message=l("error"),o("failure",{responseText:C,option:B,fileItem:p})};let N=new Cv(S);e.autoUpload?N.upload():a.push(new Promise((C,B)=>{C(N)}))},m=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},f=()=>{Promise.all(a).then(p=>{p.forEach(k=>k.upload())})},h=p=>{p.forEach((k,S)=>{const N=new FormData;for(const[B,V]of Object.entries(e.data))N.append(B,V);N.append(e.name,k);const C=t.reactive(new wv);if(C.name=k.name,C.status="ready",C.type=k.type,C.formData=N,C.message=l("waitingUpload"),d(C,S),e.isPreview&&k.type.includes("image")){const B=new FileReader;B.onload=V=>{C.url=V.target.result,n.push(C)},B.readAsDataURL(k)}else n.push(C)})},y=p=>{const k=e.maximum*1,S=e.maximize*1,N=new Array;p=p.filter(B=>B.size>S?(N.push(B),!1):!0),N.length&&o("oversize",N);let C=p.length+n.length;return C>k&&p.splice(p.length-(C-k)),p},g=(p,k)=>{n.splice(k,1),o("delete",{file:p,fileList:n,index:k})},v=(p,k)=>{m(k),Ss(e.beforeDelete,{args:[p,n],done:()=>g(p,k)})},b=p=>{if(e.disabled)return;const k=p.target;let{files:S}=k;e.beforeUpload?e.beforeUpload(S).then(N=>u(N)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(k)},u=p=>{const k=y(new Array().slice.call(p));h(k)};return{onChange:b,onDelete:v,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Iv={key:0,class:"fox-uploader__slot"},qv={key:0,class:"fox-uploader__preview-img"},Mv={key:0,class:"fox-uploader__preview__progress"},zv={class:"fox-uploader__preview__progress__msg"},Lv=["onClick"],Pv=["onClick","src"],Fv={key:3,class:"fox-uploader__preview-img__file"},Rv=["onClick"],Ov={class:"file__name_tips"},Kv={class:"tips"},Uv={key:1,class:"fox-uploader__preview-list"},Hv=["onClick"],jv={class:"file__name_tips"};function Wv(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),f=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Iv,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",qv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Mv,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",zv,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Lv)):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,Pv)):(t.openBlock(),t.createElementBlock("view",Fv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Ov,t.toDisplayString(h.name),1)],8,Rv)])),t.createElementVNode("view",Kv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Uv,[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",jv,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,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Hv),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(f,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Pl=J(xv,[["render",Wv]]),Yv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME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Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Qv,scope:Gv}=W("number-keyboard"),Zv=Qv({components:{[ie.name]:ie},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Gv),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},k=Array.isArray(u)?u:[u];return k.length===1&&(p={id:k[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let k=Array.isArray(p)?p:[p];return k.length>2&&(k=[k[0],k[1]]),k.length==2&&e.title&&e.type!="rightColumn"&&(k=[k[0]]),k.length===1?e.title&&e.type!="rightColumn"?u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:k[0],type:"custom"}):k.length===2&&u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:k[1],type:"custom"}),u}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),f=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&f()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&b(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(u){u.stopPropagation()}function v(u){u.preventDefault(),a.value=void 0}function b(){o("update:visible",!1),o("close")}return{...n,delImg:Yv,lockImg:Xv,clickKeyIndex:a,defaultKey:i,closeBoard:b,onTouchEnd:v,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),Jv={ref:"root"},_v={class:"fox-number-keyboard"},e0={key:0,class:"fox-number-keyboard__header"},t0={class:"fox-number-keyboard__title"},o0={class:"fox-number-keyboard__body"},n0={class:"fox-number-keyboard__keys"},l0=["onTouchstart"],a0=["src"],r0=["src"],s0={key:0,class:"fox-number-keyboard__sidebar"},i0={class:"fox-key__wrapper"},c0=["src"];function u0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Jv,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",_v,[e.title?(t.openBlock(),t.createElementBlock("div",e0,[t.createElementVNode("h3",t0,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",o0,[t.createElementVNode("div",n0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,a0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,r0)):t.createCommentVNode("",!0)],42,l0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",s0,[t.createElementVNode("div",i0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,c0)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const Fl=J(Zv,[["render",u0]]),{componentName:d0,create:f0}=W("swipe"),m0=f0({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:o}){const l=t.computed(()=>({[d0]:!0})),n=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,d="",m="";const f=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(f.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},y=()=>{f.offset=0,c=!1,o("close",{name:e.name,position:d})},g=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),v=p=>{d=p>0?"right":"left";let k=p;switch(d){case"left":c&&m===d?k=-i.value:k=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?k=r.value:k=Math.abs(p)>r.value?r.value:p;break}f.offset=k},b=Ue();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||b.start(p)},onTouchMove(p){e.disabled||(b.move(p),b.isHorizontal()&&(f.moving=!0,v(b.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,m=d,d){case"left":Math.abs(f.offset)<=i.value/2?y():(f.offset=-i.value,h());break;case"right":Math.abs(f.offset)<=r.value/2?y():(f.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),p0={class:"fox-swipe__left",ref:"leftRef"},h0={class:"fox-swipe__content"},g0={class:"fox-swipe__right",ref:"rightRef"};function y0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",p0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",h0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",g0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ut=J(m0,[["render",y0]]),{componentName:v0,create:k0}=W("action-sheet"),b0=k0({components:{[ie.name]:ie,Loading:te.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[v0]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),S0={key:0,class:"fox-action-sheet__title"},C0={key:1},w0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},N0={key:1,class:"fox-action-sheet__menu"},B0=["onClick"],V0={key:1},A0={class:"fox-action-sheet__subdesc"};function $0(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",S0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",C0,[e.description?(t.openBlock(),t.createElementBlock("view",w0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",N0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",V0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",A0,t.toDisplayString(c[e.optionSubTag]),1)],14,B0))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Rl=J(b0,[["render",$0]]),{componentName:T0,create:E0}=W("backtop"),Ol=E0({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[T0]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(g=0){n.scrollEl instanceof Window?window.scrollTo(0,g):n.scrollEl.scrollTop=g}function c(){let g=We(function v(){var b=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=b*-n.scrollTop/e.duration+n.scrollTop;i(u),g=We(v),(b==e.duration||u==0)&&gr(g)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function m(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function f(g){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",g)}function h(){y.value?n.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,m()});const y=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];y.value&&g.push(y.value);const v=[];if(typeof l.default=="function")v.push(l.default());else{const u=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(u)}const b=t.h("div",{class:a.value,style:r.value,onClick:f},v);return g.push(b),g}}}),{componentName:D0,create:x0}=W("drag"),I0=x0({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[D0]:!0}));function r(){const f=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=f.clientWidth,n.screenHeight=f.clientHeight}function s(f){n.boundary.left?+f.style.left.split("px")[0]>n.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",Pe(()=>{s(f)})):f.style.left=`${n.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",Pe(()=>{s(f)})):f.style.left="0px"}function i(f,h){h-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",Pe(()=>{i(f,h)})):f.style.left=h+"px"}function c(f){f.preventDefault();const h=f.currentTarget;if(f.targetTouches.length===1){const y=f.targetTouches[0];n.nx=y.clientX-n.position.x,n.ny=y.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const g=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>g?n.xPum=g:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(f){const h=f.currentTarget;let g=f.changedTouches[0].clientX;const v=n.screenWidth-n.elWidth-n.boundary.right;g>v?g=v:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:v,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Pe(()=>{s(h)}):Pe(()=>{i(h,v)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function m(f){const h=f.currentTarget,y=f.touches[0],g=f.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const f=l;f.value.removeEventListener("touchstart",m),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:d}}});function q0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Kl=J(I0,[["render",q0]]),M0={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}},z0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function L0(e,o,l,n,a){return{props:{...ze,...M0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ae.useFoxI18n(o),m=d(r,["confirmText","cancelText"]),f=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const y=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 B=r.beforeClose(C);qt(B)?B.then(V=>{V&&(y(!1),c("closed",C))}):B===!0&&(y(!1),c("closed",C))}else y(!1),c("closed",C)},v=()=>{g("confirm")},b=()=>{g("cancel")},u=()=>{g("close")},p=(C,B)=>z0(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(r.tag,B)):t.h(C,B),k=()=>{const C=[];if(i.header){const V=i.header();C.push(V)}else{if(r.title){const V=t.h("view",{class:`${f}__header-title`},[r.title]);C.push(V)}if(r.showClose){const V={class:[`${f}__header-close-icon`],onClick:u},D=r.closeIcon??a,w=p(D,V);C.push(w)}}if(C.length===0)return null;const B={class:[`${f}__header`]};return t.h("view",B,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const V={class:[`${f}__content`]};if(r.textAlign&&V.class.push(r.textAlign),typeof r.content=="string"){V.innerHTML=r.content;const D=t.h("view",V);C.push(D)}else if(typeof r.content=="function"){const D=t.h("view",V,[r.content()]);C.push(D)}else{const D=t.h("view",V,[r.content]);C.push(D)}}if(C.length===0)return null;const B={class:[`${f}__body`]};return t.h("view",B,C)},N=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const V={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const D=t.h("view",V,[r.cancelButtonText??m.cancelText.value]);C.push(D)}if(r.showConfirmButton){const V={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},onClick:v};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const D=t.h("view",V,[r.confirmButtonText??m.confirmText.value]);C.push(D)}}else{if(r.showCancelButton){const V={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const D=t.h(n,V,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(D)}if(r.showConfirmButton){const V={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:v};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const D=t.h(n,V,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(D)}}if(C.length===0)return null;const B={class:[`${f}__footer`,`${f}__footer--${r.footerDirection}`]};return t.h("view",B,C)};return()=>{const C=[],B=k();B&&C.push(B);const V=S();V&&C.push(V);const D=N();D&&C.push(D);const w={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},A=t.h("view",w,C),L=[`${f}__popup`];r.popClass&&L.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 E={...me(r,ze),popClass:L.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,E,{default:()=>A})}}}}const{componentName:P0,create:F0,scope:R0}=W("dialog"),Cs=F0(L0(P0,R0,ie,Ie,te.Close));class O0{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class K0{options=new O0;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view"),s=`dialog-${l.id}`;r.id=s;const i={setup(){return l.onUpdate=d=>{if(d===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},l?.onOpened&&l?.onOpened(),()=>t.h(Cs,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const Ht=function(e){return new K0(e)};Ht.install=e=>{e.use(Cs),e.config.globalProperties.$dialog=Ht};const{componentName:U0,create:H0,scope:j0}=W("pull-refresh"),W0=H0({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(j0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=as(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[U0]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),f=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const S={};return e.headHeight!=50&&(S.height=fe(e.headHeight)),S}),y=S=>{const N=+(e.pullDistance||e.headHeight);let C=S;return S>N&&(S<N*2?C=(S+N)/2:C=N+S/4),Math.round(C)},g=(S,N)=>{const C=+(e.pullDistance||e.headHeight);c.distance=S,N?c.status="loading":S===0?c.status="normal":S<C?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},v=()=>c.status!=="loading"&&c.status!=="complete",b=()=>i.value==window?qn()==0:i.value&&i.value.scrollTop==0,u=S=>{v()&&(b()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(v()){r.move(S);const{deltaY:N}=r;r.isVertical()&&N.value>0&&c.isPullRefresh&&(S.cancelable&&S.preventDefault(),g(y(N.value)))}},k=()=>{c.isPullRefresh&&v()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?g(+e.headHeight,!0):g(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:k,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),Y0={class:"fox-pull-refresh-container-topbox-text"};function X0(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",Y0,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const Ul=J(W0,[["render",X0]]),{create:Q0}=W("notify"),G0=Q0({components:{[ie.name]:ie},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function Z0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Hl=J(G0,[["render",Z0]]),Tn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],Dt=[];const ws=e=>{if(e){const o=document.getElementById(e);Dt=Dt.filter(l=>l.id!==e),dt=dt.filter(l=>l!==e),o&&document.body.removeChild(o)}else dt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Dt=[],dt=[]},J0=e=>{const o=document.getElementById(e.id);if(o){const l=Dt.find(a=>a.id===e.id);l?e={...Tn,...l,...e}:e={...Tn,...e};const n=t.createVNode(Hl,e);return t.render(n,o),n.component.data}},Vt=e=>{e.unmount=ws;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return J0(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,dt.push(e.id),Dt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Hl,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},At=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},jl={text(e,o={}){return At(e),Vt({...o,msg:e})},primary(e,o={}){return At(e),Vt({...o,msg:e,type:"primary"})},success(e,o={}){return At(e),Vt({...o,msg:e,type:"success"})},danger(e,o={}){return At(e),Vt({...o,msg:e,type:"danger"})},warn(e,o={}){return At(e),Vt({...o,msg:e,type:"warning"})},hide(){ws()},install(e){e.use(Hl)}},{create:_0}=W("toast"),ek=_0({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,y=>{y&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=se(e.iconSize);return t.h(e.icon,{width:y,height:y,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),tk={key:1,class:"fox-toast-title"},ok=["innerHTML"];function nk(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",tk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,ok)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=J(ek,[["render",nk]]),En={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 ft=[],xt=[];const Ns=e=>{if(e){const o=document.getElementById(e);xt=xt.filter(l=>l.id!==e),ft=ft.filter(l=>l!==e),o&&document.body.removeChild(o)}else ft.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),xt=[],ft=[]},lk=e=>{const o=document.getElementById(e.id);if(o){const l=xt.find(a=>a.id===e.id);l?e={...En,...l,...e}:e={...En,...e};const n=t.createVNode(Wl,e);return t.render(n,o),Ct}},$t=e=>{e.unmount=Ns;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return lk(e)}else o=new Date().getTime()+"";e={...En,...e},e.id=o,ft.push(e.id),xt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Wl,e);return t.render(n,l),document.body.appendChild(l),Ct},Jt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,o={}){return Jt(e),$t({...o,type:"text",msg:e})},success(e,o={}){return Jt(e),$t({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Jt(e),$t({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Jt(e),$t({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return $t({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){Ns(e)},install(e){e.use(Wl),e.config.globalProperties.$toast=Ct}},{componentName:n2,create:ak}=W("audio"),rk=ak({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:te.Service,[Ot.name]:Ot},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var v=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<v.length;b++)document.addEventListener(v[b],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(b){b.message}});const r=v=>{const b=n.value;e.autoplay&&b&&b.paused&&b.play(),a.second=b.duration,a.duration=g(b.duration),o("can-play",v)},s=v=>{a.currentTime=parseInt(v.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const v=n.value;a.playing?(v.pause(),a.handPlaying=!1):(v.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=v=>{a.currentDuration=g(v),a.percent=v/a.second*100},f=()=>{a.playing=!1,o("ended")},h=v=>{const b=n.value;b.currentTime=a.second*v/100,o("changeProgress",b.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=v=>{if(!v)return"00:00:00";let b=parseInt(v),u=Math.floor(b/3600),p=Math.floor((b-u*3600)/60),k=b-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+k.toString()).slice(-2),S};return t.watch(()=>a.currentTime,v=>{m(v)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),sk={class:"fox-audio"},ik={key:0,class:"fox-audio__progress"},ck={class:"fox-audio__time"},uk={class:"fox-audio__bar"},dk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),fk={class:"fox-audio__time"},mk={key:1,class:"fox-audio__icon"},pk=["controls","src","preload","autoplay","loop","muted"];function hk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",sk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",ik,[t.createElementVNode("div",ck,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",uk,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[dk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",fk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",mk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,pk)])}const Yl=J(rk,[["render",hk]]),{componentName:l2,create:gk,scope:yk}=W("audio-operate"),vk=gk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(yk),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),kk={class:"fox-audio-operate"};function bk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",kk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Xl=J(vk,[["render",bk]]),{componentName:Sk,create:Ck}=W("avatar"),wk=Ck({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&y(g)});const m=t.computed(()=>({[Sk]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),f=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=g=>{d.maxIndex=g.length;for(let v=0;v<g.length;v++)g[v]&&g[v].classList&&g[v].classList[0]=="fox-avatar"&&g[v].setAttribute("data-index",v+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Nk(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const jt=J(wk,[["render",Nk]]),{componentName:Bk,create:Vk}=W("avatar-group"),Ak=Vk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[Bk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function $k(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Ql=J(Ak,[["render",$k]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function Tk(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:Ek,create:Dk}=W("list"),pr=document.documentElement.clientHeight||document.body.clientHeight||667,xk=Dk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:pr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,pr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[Ek]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),f=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},y=()=>{let u=a.value.childNodes;u=Array.from(u).filter(B=>B.nodeType===1);const p=u[0];u.forEach((B,V)=>{if(!B)return;const D=Ve(B),{height:w}=D,L=r.cachePositions[V+r.start].height-w;L&&(r.cachePositions[V+r.start].bottom-=L,r.cachePositions[V+r.start].height=w,r.cachePositions[V+r.start].dValue=L)});let k=0;p&&(k=r.start);const S=r.cachePositions.length;let N=r.cachePositions[k].dValue;r.cachePositions[k].dValue=0;for(let B=k+1;B<S;++B){const V=r.cachePositions[B];r.cachePositions[B].top=r.cachePositions[B-1].bottom,r.cachePositions[B].bottom=r.cachePositions[B].bottom-N,V.dValue!==0&&(N+=V.dValue,V.dValue=0)}const C=r.cachePositions[S-1].bottom;r.phantomHeight=C},g=(u=0)=>{let p=Tk(r.cachePositions,u,(S,N)=>{const C=S.bottom;return C===N?no.eq:C<N?no.lt:no.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},v=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,k=g(u);k!==p&&(r.originStartIndex=k,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),y();else{v();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:f,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:b}}});function Ik(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Gl=J(xk,[["render",Ik]]),{componentName:qk,create:Mk}=W("circleprogress"),zk=Mk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[qk]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>Be(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:Be(e.color)?`url(#${n})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!Be(e.color))return;let m=e.color;const f=Object.keys(m).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return f.map((y,g)=>{let v={key:"",value:""};v.key=y,v.value=m[y],h.push(v)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),Lk={viewBox:"0 0 100 100"},Pk=["id"],Fk=["offset","stop-color"],Rk=["d","stroke-width"],Ok=["d","stroke","stroke-linecap","stroke-width"],Kk={class:"fox-circleprogress-text"},Uk={key:0};function Hk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Lk,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,Fk))),128))],8,Pk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Rk),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,Ok)])),t.createElementVNode("div",Kk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Uk,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=J(zk,[["render",Hk]]),{componentName:jk,create:Wk}=W("noticebar"),Yk=Wk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[jk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let B={};return e.color&&(B.color=e.color),e.background&&(B.background=e.background),e.direction=="vertical"&&(B.height=`${e.height}px`),B}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let B={};if(e.complexAm)B={transform:`translateY(${r.distance}px)`};else if(r.animate){let V=~~(e.height/e.speed/4);B={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return B});t.watch(()=>e.text,B=>{h()}),t.watch(()=>e.list,B=>{r.scrollList=[...B]});const h=B=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const V=n.value.getBoundingClientRect().width,D=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?D>V:e.scrollable,r.isCanScroll?(r.wrapWidth=V,r.offsetWidth=D,r.duration=D/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=B=>{o("click",B)},g=B=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",B)},v=B=>{r.firstRound=!1,o("across-end",B),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let B=100;for(let V=0;V<B;V++)k(V,!(V<B-1))},e.standTime+100*e.speed)},k=(B,V)=>{setTimeout(()=>{r.distance-=e.height/100,V&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},B*e.speed)},S=B=>{o("click",B)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?C(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():b()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],B=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(B))});const C=B=>{B&&B.length>0&&(r.scrollList=B[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:m,horseLampStyle:f,wrap:n,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:v,go:S,handleClickIcon:N,slots:l,toPxDesc:fe,wrapContentClass:c}}}),Xk={class:"fox-noticebar__page-lefticon"},Qk={ref:"wrap",class:"fox-noticebar__page-wrap"},Gk={class:"showNotica"},Zk=["onClick"];function Jk(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",Xk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Qk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":o[1]||(o[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",Gk,[(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:f=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,Zk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Jl=J(Yk,[["render",Jk]]),_k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0d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NOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:a2,create:ob,scope:nb}=W("empty"),lb={empty:_k,error:eb,network:tb},ab=ob({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(nb),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:lb[n.value];return{...l,imageUrl:i,imgStyle:r}}}),rb={class:"fox-empty"},sb=["src"],ib={key:1,class:"fox-empty-description"};function cb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",rb,[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,sb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",ib,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=J(ab,[["render",cb]]),{create:ub,scope:db}=W("video"),fb=ub({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(db),n=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{n.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",ro(f,1e3)))},i=()=>{const C=a.value,B=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=C,n.progressBar.progressElm=B,n.progressBar.pos=B.getBoundingClientRect(),n.videoSet.progress.width=Math.round(B.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{m()}),n.videoElm.addEventListener("timeupdate",ro(f,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=C=>{var B=Math.floor(C/3600);B<10&&(B="0"+B);var V=Math.floor(C%3600/60);V<10&&(V="0"+V);var D=Math.round(C%3600%60);D<10&&(D="0"+D);var w="";return B!=0?w=B+":"+V+":"+D:w=V+":"+D,w},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},f=()=>{const C=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*C),n.videoSet.totalTime=d(n.videoElm.duration),n.videoSet.displayTime=d(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},h=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},y=()=>{n.state.isError=!0},g=()=>{n.state.vol=e.options.volume},v=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},b=()=>{},u=C=>{let V=C.targetTouches[0].pageX-n.progressBar.pos.left;V<=0&&(V=0),V>=n.videoSet.progress.width&&(V=n.videoSet.progress.width),n.videoSet.progress.current=V;let D=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},p=C=>{let V=C.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=V;let D=V/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},k=(C,B)=>{n.videoElm.currentTime=Math.floor(C*B)},S=()=>{n.state.isError=!1,s()},N=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:y,isDisabled:r,play:c,handleMuted:v,touchSlidSrart:b,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:N,t:l}}}),mb={class:"fox-video",ref:"videocon"},pb=["muted","autoplay","loop","poster","controls","preload"],hb=["src","type"],gb={class:"fox-video-controller__now"},yb={class:"fox-video-controller__progress"},vb={class:"fox-video-controller__progress-value",ref:"progressBar"},kb=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),bb=[kb],Sb={class:"fox-video-controller__played",ref:"playedBar"},Cb={class:"fox-video-controller__total"},wb={class:"fox-video-error"},Nb={class:"fox-video-error-tip"};function Bb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",mb,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,hb)],40,pb),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",gb,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",yb,[t.createElementVNode("div",vb,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},bb,36),t.createElementVNode("div",Sb,null,512)],512)]),t.createElementVNode("div",Cb,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",wb,[t.createElementVNode("p",Nb,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const kt=J(fb,[["render",Bb]]),{create:Vb,componentName:Ab}=W("steps"),ea=Vb({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=Ab;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:$b,componentName:Tb}=W("step"),Eb=$b({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=Tb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),Db={class:"fox-step-head"},xb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Ib={class:"fox-step-icon-inner"},qb={key:1,class:"fox-step-inner"},Mb={class:"fox-step-main"},zb={class:"fox-step-title"},Lb={key:0},Pb={key:0,class:"fox-step-content"},Fb=["innerHTML"];function Rb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",Db,[xb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Ib,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",qb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Mb,[t.createElementVNode("view",zb,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Lb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Pb,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Fb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=J(Eb,[["render",Rb]]),{create:Ob,componentName:on}=W("swiper"),Kb=Ob({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ue(),s=t.computed(()=>({[on]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const $=on;return{[`${$}-inner`]:!0,[`${$}-vertical`]:i.value}}),d=t.computed(()=>{const $=on;return{[`${$}-pagination`]:!0,[`${$}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*y.value),v=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),b=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let $=0;$=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${$}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=$=>{let H=[];const R=a.childrenVNode.length;let Y=l?.default?.();if(Y=Y.filter(Q=>Q.children&&Array.isArray(Q.children)),Y.forEach(Q=>{H=H.concat(Q.children)}),!R)a.childrenVNode=H.slice(),$.proxy&&a.children.push($.proxy);else if(R>H.length)a.children=a.children.filter(Q=>$.proxy!==Q);else if(R<H.length){for(let Q=0;Q<R;Q++)if(H[Q].key!==a.childrenVNode[Q].key){$.proxy&&a.children.splice(Q,0,$.proxy),$.vnode&&a.childrenVNode.splice(Q,0,$.vnode);break}R!==H.length&&($.proxy&&a.children.push($.proxy),$.vnode&&a.childrenVNode.push($.vnode))}else a.childrenVNode=H.slice(),$.proxy&&a.children.push($.proxy)},k=($,H=0)=>{let R=$*y.value;e.loop||(R=Math.min(R,-v.value));let Y=H-R;return e.loop||(Y=Fe(Y,v.value,0)),Y},S=$=>{const{active:H}=a;return $?e.loop?Fe(H+$,-1,h.value):Fe(H+$,0,h.value-1):H},N=({pace:$=0,offset:H=0,isEmit:R=!1})=>{if(h.value<=1)return;const{active:Y}=a,Q=S($),I=k(Q,H);if(e.loop){if(a.children[0]&&I!==v.value){const M=I<v.value;a.children[0].setOffset(M?g.value:0)}if(a.children[h.value-1]&&I!==0){const M=I>0;a.children[h.value-1].setOffset(M?-g.value:0)}}a.active=Q,a.offset=I,R&&Y!==a.active&&o("change",b.value),u()},C=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},B=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},V=$=>{C(),r.reset(),We(()=>{We(()=>{a.moving=!1,N({pace:$,isEmit:!0})})})},D=()=>{V(-1)},w=()=>{V(1)},A=$=>{C(),r.reset(),We(()=>{a.moving=!1;let H;e.loop&&h.value===$?H=a.active===0?0:$:H=$%h.value,N({pace:H-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(B(),a.autoplayTimer=setTimeout(()=>{w(),L()},Number(e.autoPlay)))},F=($=+e.initPage)=>{B(),a.rect=n.value.getBoundingClientRect(),$=Math.min(h.value-1,$),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=$,a.offset=k(a.active),a.moving=!0,u(),L()},T=$=>{e.isPreventDefault&&$.preventDefault(),e.isStopPropagation&&$.stopPropagation(),e.touchable&&(r.start($),a.touchTime=Date.now(),B(),C())},E=$=>{e.touchable&&a.moving&&(r.move($),f.value&&N({offset:m.value}))},x=$=>{if(!e.touchable||!a.moving)return;const H=m.value/(Date.now()-a.touchTime);if((Math.abs(H)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let Y=0;const Q=i.value?r.offsetY.value:r.offsetX.value;e.loop?Y=Q>0?m.value>0?-1:1:0:Y=-Math[m.value>0?"ceil":"floor"](m.value/y.value),N({pace:Y,isEmit:!0})}else m.value&&N({pace:0});a.moving=!1,u(),L()};return t.provide("parent",{props:e,size:y,relation:p}),$e({prev:D,next:w,to:A}),t.onDeactivated(()=>{B()}),t.onBeforeUnmount(()=>{B()}),t.watch(()=>e.initPage,$=>{t.nextTick(()=>{F(Number($))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,$=>{$>0?L():B()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:b,onTouchStart:T,onTouchMove:E,onTouchEnd:x}}});function Ub(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const bt=J(Kb,[["render",Ub]]),{create:Hb,componentName:jb}=W("swiper-item"),Wb=Hb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[jb]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:a}}});function Yb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const St=J(Wb,[["render",Yb]]),Bs={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:Xb}=W("image-preview-item"),Qb=Xb({props:{...Bs,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:{[kt.name]:kt,[St.name]:St},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ue(),a=t.computed(()=>{const{rootWidth:D,rootHeight:w}=e,A=w/D;return l.imageRatio>A}),r=t.computed(()=>{const D=e.image;if(D&&D.src){const{scale:w,moveX:A,moveY:L,moving:F,zooming:T}=l,E={transitionDuration:T||F?"0s":".3s"};if(w!==1){const x=A/w,$=L/w;E.transform=`scale(${w}, ${w}) translate(${x}px, ${$}px)`}return E}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:w}=e,A=a.value?w/l.imageRatio:D;return Math.max(0,(l.scale*A-D)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:w}=e,A=a.value?w:D*l.imageRatio;return Math.max(0,(l.scale*A-w)/2)}return 0}),c=D=>{const{naturalWidth:w,naturalHeight:A}=D.target;l.imageRatio=A/w},d=()=>{m(1),l.moveX=0,l.moveY=0},m=D=>{D=Fe(D,+e.minZoom,+e.maxZoom+1),D!==l.scale&&(l.scale=D,o("scale",{scale:D,index:e.initNo}))},f=()=>{const D=l.scale>1?1:2;m(D),l.moveX=0,l.moveY=0},h=D=>Math.sqrt((D[0].clientX-D[1].clientX)**2+(D[0].clientY-D[1].clientY)**2);let y,g,v,b,u,p,k;const S=D=>{const{touches:w}=D,{offsetX:A}=n;n.start(D),k=w.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=k===1&&l.scale!==1,l.zooming=k===2&&!A.value,l.zooming&&(v=l.scale,b=h(D.touches))},N=D=>{const{touches:w}=D;if(n.move(D),(l.moving||l.zooming)&&fn(D,!0),l.moving){const{deltaX:A,deltaY:L}=n,F=A.value+y,T=L.value+g;l.moveX=Fe(F,-s.value,s.value),l.moveY=Fe(T,-i.value,i.value)}if(l.zooming&&w.length===2){const A=h(w),L=v*A/b;m(L)}},C=()=>{if(k==1&&e.video&&e.video.source||k>1)return;const{offsetX:D,offsetY:w}=n,A=Date.now()-p,L=250,F=5;D.value<F&&w.value<F&&A<L&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},L))},B=D=>{let w=!1;(l.moving||l.zooming)&&(w=!0,l.moving&&y===l.moveX&&g===l.moveY&&(w=!1),D.touches.length||(l.zooming&&(l.moveX=Fe(l.moveX,-s.value,s.value),l.moveY=Fe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,v=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),fn(D,w),C(),n.reset()},V=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,D=>{D||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:N,onTouchEnd:B,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:V}}}),Gb=["src"];function Zb(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,Gb)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const Jb=J(Qb,[["render",Zb]]),{create:_b}=W("image-preview"),eS=_b({props:{...Bs,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:Jb,CircleClose:te.CircleClose,[ie.name]:ie,[bt.name]:bt},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>ho(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{Ss(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const m=Ve(l.value);n.rootHeight=m.height,n.rootWidth=m.width}};return t.watch(()=>e.show,m=>{n.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=n.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),tS={class:"fox-image-preview",ref:"swipeRef"},oS={key:0,class:"fox-image-preview-index"};function nS(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",tS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,f)=>(t.openBlock(),t.createBlock(s,{key:f,video:f<e.videos.length?m:{},image:f>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",oS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Vs=J(eS,[["render",nS]]);class lS{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 aS{options=new lS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=ri(l,{name:"image-preview",components:[ie,kt,bt,St,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Vs,l))}})})}}const Ho=e=>new aS(e);Ho.install=e=>{e.use(Vs)};function rS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:r2,create:sS}=W("countup"),iS=sS({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=V=>{V&&n.value.push(V)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(V,D)=>{f(),b(0)}),t.watch(()=>e.machinePrizeLevel,(V,D)=>{r.prizeLevelTrun=V}),t.watch(()=>e.initNum,(V,D)=>{r.current=V,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(V,D)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&b():(v(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(V,D,w)=>{const A=(V.toString().split(".")[1]||"").length,L=(D.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max(A,L));return w=="-"?Number((V*F-D*F).toFixed(0))/F:Number((V*F+D*F).toFixed(0))/F},y=V=>{let{num_total_len:D,pointNum:w,initDigit1:A,initDigit2:L,sortFlag:F}=r,T=F=="add"||F=="equal"?String(L)[V-(D-w)]:10-Number(String(L)[V-(D-w)]),E=F=="add"||F=="equal"?String(A)[V]:10-Number(String(A)[V]),x=V>D-w-1?-T*100+"%":V<=String(A).length-1?-E*100+"%":0;return x=="-1000%"&&(x=0),x},g=V=>{let{num_total_len:D,pointNum:w,initDigit1:A,initDigit2:L,sortFlag:F}=r,T=String(L)[V-(D-w)];return V>D-w-1?T||0:V<=String(A).length-1?String(A)[V]:0},v=()=>{let{endNum:V,initNum:D,speed:w,toFixed:A}=e,L=setInterval(()=>{if(D>V)if(r.current<=V||r.current<=w)r.current=V.toFixed(A),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(w));r.current=F.toFixed(A)}else if(r.current>=V)r.current=V.toFixed(A),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(w));r.current=F.toFixed(A)}},e.during)},b=V=>{let{initNum:D,endNum:w,toFixed:A,customBgImg:L}=e;L&&(D=e.customChangeNum);let F,T,E,x;D!=0?(A!=0&&(D=Number(D.toFixed(A))),String(D).indexOf(".")>-1?(F=String(D).split(".")[0].length,T=String(D).split(".")[1].length):(F=String(D).length,T=0)):(F=1,T=0),w!=0?(A!=0&&(w=Number(w.toFixed(A))),String(w).indexOf(".")>-1?(E=String(w).split(".")[0].length,x=String(w).split(".")[1].length):(E=String(w).length,x=0)):(E=1,x=0);let $=F>=E?F:E,H=T>=x?T:x;r.num_total_len=$+H,r.pointNum=H,D>w?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(D,w,"-"),r.numberVal=Number(String(D))):D<w?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(w,D,"-"),r.numberVal=Number(String(w))):r.sortFlag="equal";var R=1;for(let Q=0;Q<r.pointNum;Q++)R*=10;var Y=r.numberVal*R;if(r.relNum=Y,A!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Y).length),String(D).indexOf(".")>-1){let Q=String(D).split(".");r.initDigit1=Number(Q[0]),r.initDigit2=Number(Q[1])}else r.initDigit1=D,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let Q=n.value[r.num_total_len-1];u(Q)}):V!==0&&S()},u=V=>{f();var D=1;r.pointNum!=0&&(D=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(V),r.totalCount=h(r.totalCount,D,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=V=>{let D=V.getAttribute("turn-number"),w;if(r.sortFlag=="add"?w=parseInt(String(D))+1:w=parseInt(String(D))-1>=0?parseInt(String(D))-1:9,V.setAttribute("turn-number",String(w)),(V.style.transition=="none 0s ease 0s"||w==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),w==10||r.sortFlag=="reduce"&&w==0){var A=null;V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`,V.setAttribute("turn-number","0"),A=setTimeout(()=>{A&&clearTimeout(A),V.style.transition="none",V.style.top="0",k(V,w)},.975*e.during)}else V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`;V.style.top=="-100%"&&r.sortFlag=="reduce"&&p(V.previousSibling)},k=(V,D)=>{setTimeout(()=>{D==10&&V.previousSibling&&p(V.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(V)==-1&&r.notPrize.push(V)}};rS({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let D=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let A=D*(w+1+parseFloat(String(V)));r.prizeYPrev.length!=0&&(r.prizeY[w]=r.prizeYPrev[w]);let L=r.prizeYPrev[w]?r.prizeYPrev[w]:0,F=A+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(D-L);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[w]),B(w,F,L)},500*w)}});const B=(V,D,w)=>{let A=setInterval(()=>{if(w<=D)w+=10,r.prizeY[V]=parseFloat(String(w));else if(clearInterval(A),A=null,r.finshMachine+=1,r.prizeY[V]=D,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(T=>{let E=T;for(;E>L;)E-=L;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),cS={class:"fox-countup"},uS=["turn-number"];function dS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",cS,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,uS))),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 oa=J(iS,[["render",dS]]),fS=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:mS,create:pS}=W("countdown"),hS=pS({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[mS]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-fS(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,g=Math.max(n.handleEndTime-y,0);n.restTime=g,g||(n.counting=!1,f(),o("on-end")),g>0&&i()}}))},c=(y,g)=>{const v=y;let b={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,k=60*p,S=24*k;return v>0&&(b.d=v>=u?Math.floor(v/S):0,b.h=Math.floor(v%S/k),b.m=Math.floor(v%k/p),b.s=Math.floor(v%p/u),b.ms=Math.floor(v%u)),g=="custom"?b:d({...b})},d=y=>{let{d:g,h:v,m:b,s:u,ms:p}=y,k=e.format;if(k.includes("DD")?k=k.replace("DD",Je(g)):v+=Number(g)*24,k.includes("HH")?k=k.replace("HH",Je(v)):b+=Number(v)*60,k.includes("mm")?k=k.replace("mm",Je(b)):u+=Number(b)*60,k.includes("ss")?k=k.replace("ss",Je(u)):p+=Number(u)*1e3,k.includes("S")){const S=Je(p,3).toString();k.includes("SSS")?k=k.replace("SSS",S):k.includes("SS")?k=k.replace("SS",S.slice(0,2)):k.includes("S")&&(k=k.replace("SS",S.slice(0,1)))}return k},m=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},f=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(f(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,y=>{let g=c(y,"custom");o("update:modelValue",g),o("input",g)}),t.watch(()=>e.paused,(y,g)=>{g?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&f()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:f,renderTime:r,reset:h}}}),gS=["innerHTML"];function yS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,gS))],2)}const na=J(hS,[["render",yS]]),{create:vS}=W("badge"),kS=vS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),bS={class:"fox-badge"},SS=["textContent"];function CS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",bS,[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,SS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const la=J(kS,[["render",CS]]),{componentName:wS,create:NS}=W("tag"),BS=NS({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:te.Close},emits:["close","click"],setup(e,{emit:o}){return{classes:t.computed(()=>{const s=wS;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),o("close",s)},onClick:s=>{o("click",s)}}}});function VS(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Wt=J(BS,[["render",VS]]),{create:AS}=W("popover"),$S=AS({components:{FoxPopup:ie},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:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",k=e.location,S=k.split("-")[0];return`${p} ${p}-${S} ${p}--${k}`}),c=t.computed(()=>{const p={},{bgColor:k,arrowOffset:S,location:N}=e,C=N.split("-")[0],B=N.split("-")[1],V=16;return k&&(p[`border${d(C)}Color`]=k),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(B||(p.left=`calc(50% + ${S}px)`),B=="start"&&(p.left=`${V+S}px`),B=="end"&&(p.right=`${V-S}px`)),["left","right"].includes(C)&&(B||(p.top=`calc(50% - ${S}px)`),B=="start"&&(p.top=`${V-S}px`),B=="end"&&(p.bottom=`${V+S}px`))),p}),d=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,k=>k.substring(0,1).toUpperCase()+k.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const k=s.value.width,S=s.value.height,{width:N,height:C,left:B,top:V}=r.value,{location:D,offset:w}=e,A=D.split("-")[0],L=D.split("-")[1];let F=0,T=0;if(ho(w)&&w.length==2&&(F+=Number(w[1]),T+=Number(w[0])),N){if(["bottom","top"].includes(A)){const E=A=="bottom"?C+F:-(S+F);p.top=`${V+E}px`,L||(p.left=`${-(k-N)/2+B+T}px`),L=="start"&&(p.left=`${B+T}px`),L=="end"&&(p.left=`${r.value.right+T}px`)}if(["left","right"].includes(A)){const E=A=="left"?-(k+F):N+F;p.left=`${B+E}px`,L||(p.top=`${V-S/2+C/2-4+T}px`),L=="start"&&(p.top=`${V+T}px`),L=="end"&&(p.top=`${V+C+T}px`)}}return p}),f=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=Ve(l.value);e.targetId&&(p=Ve(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:n.value?.clientHeight,width:n.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const y=p=>{o("update",p),o("update:visible",p)},g=()=>{y(!e.visible),o("open")},v=()=>{o("update:visible",!1),o("close")},b=(p,k)=>{!p.disabled&&o("choose",p,k),e.closeOnClickAction&&v()},u=p=>{const k=l.value,S=n.value;let N=k&&!k.contains(p.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);N=C&&!C.contains(p.target)}N&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&v()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:v,chooseItem:b,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:jr}}}),TS={ref:"popoverContentRef",class:"fox-popover-content-group"},ES=["onClick"],DS={class:"fox-popover-menu-item-name"};function xS(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",TS,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",DS,t.toDisplayString(i.name),1)],10,ES))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Yt=J($S,[["render",xS]]),IS=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:qS}=W("skeleton"),MS=qS(IS({[jt.name]:jt})),zS={key:0},LS={key:1,class:"fox-skeleton"},PS={key:0,class:"fox-skeleton-animation"},FS={class:"fox-skeleton-content"};function RS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",LS,[e.animated?(t.openBlock(),t.createElementBlock("view",PS)):t.createCommentVNode("",!0),t.createElementVNode("view",FS,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",zS,[t.renderSlot(e.$slots,"default")]))}const aa=J(MS,[["render",RS]]),{create:OS,componentName:KS}=W("collapse"),US=OS({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[KS]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,m)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const d=n.value.filter(m=>m!==c);r(d,c,!1)}else{const d=n.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function HS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const ra=J(US,[["render",HS]]),{create:jS,componentName:WS}=W("collapse-item"),YS=jS({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:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=WS;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},f=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():f()}),{classes:r,renderIcon:jr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),XS={class:"fox-collapse-item__title-main"},QS={class:"fox-collapse-item__title-main-value"},GS=["innerHTML"],ZS={key:2,class:"fox-collapse-item__title-label"},JS={key:0,class:"fox-collapse-item__title-sub"},_S=["innerHTML"],e1={key:0,class:"fox-collapse__item-extraWrapper"},t1={class:"fox-collapse__item-extraWrapper__extraRender"},o1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function n1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",XS,[t.createElementVNode("view",QS,[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,GS)),e.label?(t.openBlock(),t.createElementBlock("view",ZS,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",JS,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,_S)),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",e1,[t.createElementVNode("div",t1,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",o1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const sa=J(YS,[["render",n1]]),l1=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:a1,create:r1,scope:s1}=W("table"),i1=r1({components:{RenderColumn:l1,DownArrow:te.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(s1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[a1]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(g=>g.key===y)[0],m=y=>{const g=e.columns.filter(v=>v.key===y);return g[0].stylecolumn?g[0].stylecolumn:""},f=y=>{y.sorter&&(o("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return t.watch(()=>e.data,y=>{a.curData=y.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:f,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),c1={class:"fox-table__main__head"},u1={class:"fox-table__main__head__tr"},d1=["onClick"],f1={class:"fox-table__main__body"},m1={key:1},p1={key:0,class:"fox-table__nodata"},h1={key:0,class:"fox-table__nodata__text"},g1={key:1,class:"fox-table__summary"},y1=["innerHTML"];function v1(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",c1,[t.createElementVNode("view",u1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,d1))),128))])]),t.createElementVNode("view",f1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",m1,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",p1,[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",h1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",g1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,y1)])):t.createCommentVNode("",!0)],2)}const ia=J(i1,[["render",v1]]),{componentName:k1,create:b1}=W("ellipsis"),S1=b1({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[k1]:!0}));t.watch(()=>e.content,(v,b)=>{v!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const v=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(v).forEach(p=>{n.style.setProperty(p,v.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(v.lineHeight==="normal"?e.lineHeight:v.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(v.paddingTop)+h(v.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const v=e.content.length,b=Math.floor((0+v)/2),u=e.direction==="middle"?f([0,b],[b,v]):m(0,v);r.value=u,document.body.removeChild(n)}},m=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(b-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(b,p)};const k=Math.round((v+b)/2);return e.direction==="end"?n.innerText=e.content.slice(0,k)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(k,p),n.offsetHeight<=a?e.direction==="end"?m(k,b):m(v,k):e.direction==="end"?m(v,k):m(k,b)},f=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v[1]-v[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],p)};const k=Math.floor((v[0]+v[1])/2),S=Math.ceil((b[0]+b[1])/2);return n.innerText=e.content.slice(0,k)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?f([k,v[1]],[b[0],S]):f([v[0],k],[S,b[1]])},h=v=>{if(!v)return 0;const b=v.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},y=v=>{v==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),C1={key:0},w1={key:1},N1={key:2};function B1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",C1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",w1,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",N1,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const ca=J(S1,[["render",B1]]),{componentName:V1,create:A1}=W("animate"),$1=A1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${V1}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),T1={class:"fox-animate"};function E1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",T1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ua=J($1,[["render",E1]]),{componentName:D1,create:x1}=W("watermark"),I1=x1({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:m,imageHeight:f,content:h,fontStyle:y,fontWeight:g,fontColor:v,fontSize:b,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),N=window.devicePixelRatio,C=S.getContext("2d"),B=`${(a+s)*N}px`,V=`${(r+i)*N}px`,D=s*N,w=i*N;if(S.setAttribute("width",B),S.setAttribute("height",V),C){if(d){C.translate(D/2,w/2),C.rotate(Math.PI/180*Number(c));const A=new Image;A.crossOrigin="anonymous",A.referrerPolicy="no-referrer",A.src=d,A.onload=()=>{C.drawImage(A,-m*N/2,-f*N/2,m*N,f*N),C.restore(),l.base64Url=S.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(D/2,w/2),C.rotate(Math.PI/180*Number(c));const A=Number(b)*N;C.font=`${y} normal ${g} ${A}px/${w}px ${u}`,C.fillStyle=v,C.fillText(h,0,0),C.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,m,f,h,y,g,v,b,u],()=>{p()});const k=t.computed(()=>{const S=D1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:k}}});function q1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const da=J(I1,[["render",q1]]);function M1(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:z1,create:L1}=W("trend-arrow"),P1=L1({components:{TriangleUp:te.TriangleUp,TriangleDown:te.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[z1]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${M1(Number(d),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function F1(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const fa=J(P1,[["render",F1]]),{create:R1}=W("tour"),O1=R1({components:{[Yt.name]:Yt,Close:te.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:y,height:g,left:v,top:b}=n.value,u=[v+y/2,b+g/2],p=Number(f||y),k=Number(h||g);return{width:`${p+ +m[1]*2}px`,height:`${k+ +m[0]*2}px`,top:`${u[1]-k/2-+m[0]}px`,left:`${u[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=Ve(m);n.value=f},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),K1={key:0,class:"fox-tour-content"},U1={key:0,class:"fox-tour-content-top"},H1={class:"fox-tour-content-inner"},j1={class:"fox-tour-content-bottom"},W1={class:"fox-tour-content-bottom-init"},Y1={class:"fox-tour-content-bottom-operate"},X1={key:1,class:"fox-tour-content fox-tour-content-tile"},Q1={class:"fox-tour-content-inner"};function G1(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",K1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",U1,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",H1,t.toDisplayString(c.content),1),t.createElementVNode("div",j1,[t.createElementVNode("div",W1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Y1,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",X1,[t.createElementVNode("div",Q1,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ma=J(O1,[["render",G1]]),{componentName:s2,create:Z1,scope:J1}=W("address"),_1=Z1({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ie.name]:ie,[Rt.name]:Rt},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(J1),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),m=t.ref(null),f=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),y=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach($=>{if(!$.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return E=E.sort(($,H)=>$.title.localeCompare(H.title)),E.forEach($=>{const H=x.findIndex(R=>R.title===$.title);H<=-1?x.push({title:$.title,list:[].concat($)}):x[H].list.push($)}),x};let g=t.ref([]),v=t.reactive({});const b=t.ref("self"),u=t.ref(20),p=()=>{const E=e.modelValue,x=E.length;if(x>0){if(i.value=x-1,h.value.length==0){i.value=0;return}for(let $=0;$<x;$++){let H=[];switch($){case 0:H=e.province;break;case 1:H=e.city;break;case 2:H=e.country;break;default:H=e.town}g.value[$]=H.filter(R=>R.id==E[$])[0]}S()}},k=(E,x)=>E&&E.name||i.value<x&&E?E.name:e.columnsPlaceholder[x]||l("select"),S=()=>{B(),t.nextTick(()=>{const E=a.value&&a.value.getElementsByClassName("active")[0];if(E){const x=E.offsetLeft;u.value=x||20}})},N=E=>{const x=i.value;c.value=i.value;const $={custom:d.value[x]};g.value[x]=E;for(let H=x+2;H<4;H++)g.value.splice(H,1);x<3?(i.value=x+1,S(),$.next=d.value[i.value],$.value=E,o("change",$)):(w(),o("update:modelValue"))},C=(E,x)=>{c.value=i.value,k(E,x)&&(i.value=x,S())},B=()=>{const E=m.value,x=c.value,$=f.value[i.value];E?.scrollTop&&(f.value[x]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:$,behavior:"auto"})})},V=E=>{const x=e.existAddress;let $={};x.forEach(H=>{H&&H.selectedAddress&&($=H),H.selectedAddress=!1}),E.selectedAddress=!0,v=E,o("selected",$,E,x),w()},D=()=>{g.value=[],i.value=0,S()},w=(E="self")=>{b.value=E=="cross"?"cross":"self",r.value=!1},A=()=>{b.value="mask"},L=()=>{const E={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},x={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach($=>{const H=g.value[$];E.addressIdStr+=`${$?"_":""}${H&&H.id||0}`,E.addressStr+=H&&H.name||""}),x.data=E):x.data=v,D(),b.value=="self"?o("close",x):o("close-mask",{closeWay:b}),o("update:visible",!1)},F=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",D(),o("switch-module",{type:s.value})},T=(E,x)=>{N(x)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:F,closeWay:b,close:L,getTabName:k,nextAreaList:N,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:C,selectedExist:V,clickOverlay:A,handClose:w,handleElevatorItem:T,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),eC={class:"fox-address"},tC={class:"fox-address__header"},oC={class:"fox-address__header__title"},nC={key:0,class:"fox-address__custom"},lC={class:"fox-address__region",ref:"tabRegion"},aC=["onClick"],rC={key:0,class:"active fox-address__region-item"},sC={key:0,class:"fox-address__detail"},iC={class:"fox-address__detail-list",ref:"scrollDom"},cC=["onClick"],uC={key:1,class:"fox-address__elevator-group"},dC={key:1,class:"fox-address__exist"},fC={class:"fox-address__exist-group"},mC={class:"fox-address__exist-group-list"},pC=["onClick"],hC={class:"fox-address__exist-item-info"},gC={key:0,class:"fox-address__exist-item-info-name"},yC={key:1,class:"fox-address__exist-item-info-phone"},vC={class:"fox-address__exist-item-info-bottom"},kC={class:"fox-address__exist-choose-btn"};function bC(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",eC,[t.createElementVNode("view",tC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",oC,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",nC,[t.createElementVNode("view",lC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:g=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,aC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",rC,[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",sC,[t.createElementVNode("ul",iC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,y)=>(t.openBlock(),t.createElementBlock("li",{key:y,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick: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,cC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",uC,[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",dC,[t.createElementVNode("div",fC,[t.createElementVNode("ul",mC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,y)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick: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",hC,[h.name?(t.openBlock(),t.createElementBlock("div",gC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",yC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",vC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,pC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",kC,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 pa=J(_1,[["render",bC]]),{componentName:SC,create:CC}=W("barrage"),wC=CC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[SC]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),m.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],v()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},g=k=>{let N=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const C=[];N&&Array.from(N).forEach(B=>{k=="init"?(B.style.opacity="0",C.push(B)):(B.classList="",B.style={})}),k=="init"&&(i.value=C)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,k=>{e.danmu.length>0&&(i.value=[...k])});const b=k=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,k):i.value.splice(S,0,k)},u=()=>{v(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const k=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");l&&typeof i.value[k]=="object"?(S=i.value[k],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[k],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const N=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=k%c.value*(N+d.value)+20+"px",S.style.opacity="1",!l){const C=S.offsetWidth;S.style.width=C+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:b}}});function NC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const ha=J(wC,[["render",NC]]),{componentName:BC,create:VC,scope:AC}=W("signature"),$C=VC({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:{[Ie.name]:Ie},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(AC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[BC]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],f,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},f=p=>{p.preventDefault();let k=i.isSupportTouch?p.touches[0]:p;o("signing",k);let S=a.value.getBoundingClientRect(),N=k.clientX-S.left,C=k.clientY-S.top;i.ctx.lineTo(N,C),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},v=()=>{u(a.value)},b=p=>{if(!p)return!0;var k=document.createElement("canvas");return k.width=p.width,k.height=p.height,p?.toDataURL()==k.toDataURL()},u=p=>{let k;switch(e.type){case"png":k=p.toDataURL("image/png");break;case"jpg":k=p.toDataURL("image/jpeg",.8);break}const S=b(p)?"请绘制签名":p,N=b(p)?"":k;o("confirm",S,N)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:v,clear:g,classes:s}}}),TC={class:"fox-signature-inner",ref:"wrap"},EC=["height","width"],DC={key:0,class:"fox-signature-unsopport"};function xC(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",TC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,EC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",DC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ga=J($C,[["render",xC]]),{componentName:IC,create:qC,scope:MC}=W("time-select"),zC=qC({components:{[ie.name]:ie},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=ae.useFoxI18n(MC),n=t.computed(()=>({[IC]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),LC={class:"fox-time-select__title"},PC={class:"fox-time-select__title__fixed"},FC={key:0},RC={class:"fox-time-select__content"},OC={class:"fox-time-select__content__pannel"},KC={class:"fox-time-select__content__detail"};function UC(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",LC,[t.createElementVNode("view",PC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",FC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",RC,[t.createElementVNode("view",OC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",KC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ya=J(zC,[["render",UC]]),{componentName:HC,create:jC}=W("time-pannel"),WC=jC({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[HC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function YC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const va=J(WC,[["render",YC]]),{componentName:XC,create:QC}=W("time-detail"),GC=QC({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[XC]:!0})),s=d=>{let m=a.currentTime.find(f=>f.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(f=>f===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==a.currentKey).list),c=d=>{o.emit("select",d)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),ZC={class:"fox-time-detail__detail fox-time-detail__detail--moring"},JC={class:"fox-time-detail__detail__list"},_C=["onClick"];function ew(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ZC,[t.createElementVNode("view",JC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,_C))),128))])])],2)}const ka=J(GC,[["render",ew]]),{componentName:i2,create:tw,scope:ow}=W("sku-header"),nw=tw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Xe.name]:Xe},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(ow);return{getSlots:r=>l[r],t:n}}}),lw={class:"fox-sku-header"},aw=["src"],rw={class:"fox-sku-header-right"},sw={key:3,class:"fox-sku-header-right-extra"};function iw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",lw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,aw),t.createElementVNode("view",rw,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",sw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const cw=J(nw,[["render",iw]]),{componentName:c2,create:uw}=W("sku-select"),dw=uw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),fw={class:"fox-sku-select"},mw={class:"fox-sku-select-item-title"},pw={class:"fox-sku-select-item-skus"},hw=["onClick"];function gw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",fw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",mw,t.toDisplayString(s.name),1),t.createElementVNode("view",pw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,hw))),128))])]))),128))])}const yw=J(dw,[["render",gw]]),{componentName:u2,create:vw}=W("sku-stepper"),kw=vw({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:{[Qe.name]:Qe},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,d)=>{o("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&<(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),bw={class:"fox-sku-stepper"},Sw={class:"fox-sku-stepper-title"},Cw=["innerHTML"],ww={class:"fox-sku-stepper-count"};function Nw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",bw,[t.createElementVNode("view",Sw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Cw),t.createElementVNode("view",ww,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const Bw=J(kw,[["render",Nw]]),{componentName:d2,create:Vw}=W("sku-operate"),Aw=Vw({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),$w={key:0,class:"fox-sku-operate"},Tw={key:0,class:"fox-sku-operate-desc"},Ew={key:1,class:"fox-sku-operate-btn"},Dw=["onClick"];function xw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",$w,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Tw,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",Ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,Dw))),128))]))])):t.createCommentVNode("",!0)}const Iw=J(Aw,[["render",xw]]),{componentName:f2,create:qw,scope:Mw}=W("sku"),zw=qw({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:cw,SkuSelect:yw,SkuStepper:Bw,SkuOperate:Iw,[ie.name]:ie},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Mw),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&v()}),t.onMounted(()=>{});const i=b=>l[b],c=b=>{o("select-sku",b)},d=b=>{s.value=b,o("change-stepper",b)},m=b=>{o("add",b)},f=b=>{o("reduce",b)},h=b=>{o("over-limit",b)},y=b=>{o("click-btn-operate",{type:b,value:s.value})},g=b=>{b=="icon"&&o("click-close-icon"),b=="overlay"&&o("click-overlay"),b=="close"&&o("close"),r.value=!1},v=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),Lw={class:"fox-sku"},Pw={class:"fox-sku-content"};function Fw(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=f=>e.showPopup=f),onClickCloseIcon:o[1]||(o[1]=f=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=f=>e.closePopup("overlay")),onClose:o[3]||(o[3]=f=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",Lw,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",Pw,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const ba=J(zw,[["render",Fw]]),{create:Rw}=W("card"),Ow=Rw({components:{[Xe.name]:Xe,[Wt.name]:Wt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),Kw={class:"fox-card"},Uw={class:"fox-card__left"},Hw=["src"],jw={class:"fox-card__right"},Ww={class:"fox-card__right__title"},Yw={key:0,class:"fox-card__right__price"},Xw={class:"fox-card__right__other"},Qw={class:"fox-card__right__shop"},Gw={class:"fox-card__right__shop__name"};function Zw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Kw,[t.createElementVNode("div",Uw,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Hw)]),t.createElementVNode("div",jw,[t.createElementVNode("div",Ww,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Yw,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",Xw,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",Qw,[t.createElementVNode("div",Gw,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Sa=J(Ow,[["render",Zw]]),{create:Jw,scope:_w}=W("ecard"),eN=Jw({components:{[Qe.name]:Qe},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(_w),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,y)=>{n.value=y,s.value=e.cardAmountMin,a.value=h.price,o("change",h),o("update:modelValue",h.price)},d=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},m=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},f=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:f,change:d,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),tN={class:"fox-ecard"},oN={class:"fox-ecard__title"},nN={class:"fox-ecard__list"},lN=["onClick"],aN={class:"fox-ecard__list__input--con"},rN=["placeholder"],sN={class:"fox-ecard__list__step"};function iN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",tN,[t.createElementVNode("view",oN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",nN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,lN))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",aN,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,rN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",sN,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Ca=J(eN,[["render",iN]]),{create:cN,scope:uN}=W("address-list-item"),dN=cN({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(uN);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),fN={class:"fox-address-list-item__info"},mN={class:"fox-address-list-item__info-contact"},pN={class:"fox-address-list-item__info-contact-name"},hN={class:"fox-address-list-item__info-contact-tel"},gN={key:0,class:"fox-address-list-item__info-contact-default"},yN={class:"fox-address-list-item__info-handle"},vN={class:"fox-address-list-item__addr"};function kN(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",fN,[t.createElementVNode("div",mN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",pN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",hN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",gN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",yN,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",vN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const hr=J(dN,[["render",kN]]),{create:bN}=W("address-list-general"),SN=bN({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:hr,[Ie.name]:Ie,[Ut.name]:Ut},setup(e,{emit:o}){const l=()=>t.h(hr,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){c(N)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=N=>{o("delIcon",N,e.item),N.stopPropagation()},i=N=>{o("editIcon",N,e.item),N.stopPropagation()},c=N=>{a.value||(o("clickItem",N,e.item),N.stopPropagation())},d=N=>{o("longDel",N,e.item),N.stopPropagation()},m=N=>{n=0,r.value=!0,o("longDown",N,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:N=>{n=setTimeout(()=>{m(N)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:N=>{o("longCopy",N,e.item),N.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:N=>{o("longSet",N,e.item),N.stopPropagation()},maskClick:N=>{n!=0&&(r.value=!1),N.stopPropagation(),N.preventDefault()},swipeDelClick:N=>{o("swipeDel",N,e.item),N.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),CN={key:0,class:"fox-address-list-general"},wN={class:"fox-address-list-swipe"};function NN(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",wN,[(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",CN,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const BN=J(SN,[["render",NN]]),{componentName:VN,create:AN,scope:$N}=W("address-list"),TN=AN({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:BN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n($N),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[VN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(v=>xr(a,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,b)=>{o("delIcon",v,b),v.stopPropagation()},c=(v,b)=>{o("editIcon",v,b),v.stopPropagation()},d=(v,b)=>{o("clickItem",v,b),v.stopPropagation()},m=(v,b)=>{o("longCopy",v,b),v.stopPropagation()},f=(v,b)=>{o("longSet",v,b),v.stopPropagation()},h=(v,b)=>{o("longDel",v,b),v.stopPropagation()},y=(v,b)=>{o("swipeDel",v,b),v.stopPropagation()},g=v=>{o("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function EN(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const wa=J(TN,[["render",EN]]),{componentName:m2,create:DN}=W("category"),xN=DN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),IN={class:"fox-category"},qN={class:"fox-category__cateList"},MN={key:0},zN=["onClick"];function LN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",IN,[t.createElementVNode("div",qN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,zN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Na=J(xN,[["render",LN]]),{componentName:p2,create:PN}=W("category-pane"),FN=PN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),RN={class:"fox-category-pane"},ON={key:0,class:"fox-category-pane__cateListRight"},KN={class:"fox-category-pane__childTitle"},UN={key:0,class:"fox-category-pane__childItemList"},HN=["onClick"],jN=["src"],WN={class:"fox-category-pane__skuImg"},YN={key:1,class:"fox-category-pane__cateListRight"},XN={class:"fox-category-pane__childTitle"},QN={key:0,class:"fox-category-pane__childItemList"},GN=["onClick"],ZN={class:"fox-category-pane__skuName"},JN={key:2,class:"fox-category-pane__selfItemList"},_N=["onClick"];function eB(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",RN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",ON,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",KN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",UN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,jN),t.createElementVNode("div",WN,t.toDisplayString(c?.catName),1)],8,HN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",YN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",XN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",QN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",ZN,t.toDisplayString(c?.catName),1)],8,GN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",JN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,_N))),128))])):t.createCommentVNode("",!0)])}const Ba=J(FN,[["render",eB]]),{componentName:h2,create:tB}=W("comment-header"),oB=tB({components:{[vt.name]:vt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),nB={class:"fox-comment-header__user"},lB={class:"fox-comment-header__user-avter"},aB=["src"],rB={class:"fox-comment-header__user-score"},sB={key:0,class:"fox-comment-header__time"};function iB(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",nB,[t.createElementVNode("view",lB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,aB)):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",rB,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",sB,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const cB=J(oB,[["render",iB]]),{componentName:g2,create:uB}=W("comment-images"),dB=uB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:a}}}),fB=["onClick"],mB=["src"],pB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),hB=["onClick"],gB=["src"],yB={key:0,class:"fox-comment-images__mask"};function vB(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,mB),pB],8,fB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,gB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",yB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,hB)):t.createCommentVNode("",!0)],64))),128))],2)}const kB=J(dB,[["render",vB]]),{componentName:y2,create:bB,scope:SB}=W("comment-bottom"),CB=bB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(SB),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),wB={class:"fox-comment-bottom"},NB={key:0},BB={class:"fox-comment-bottom__cpx"},VB=["onClick"];function AB(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",wB,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",NB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",BB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:f=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=f=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,VB))),128))])])}const $B=J(CB,[["render",AB]]),{componentName:TB,create:EB,scope:DB}=W("comment"),xB=EB({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:cB,CommentImages:kB,CommentBottom:$B,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(DB),n=t.computed(()=>({[TB]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),IB=["innerHTML"],qB={class:"fox-comment__follow-title"},MB={class:"fox-comment__follow-com"},zB={key:0,class:"fox-comment__follow-img"};function LB(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,IB),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",qB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",MB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",zB,[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 Va=J(xB,[["render",LB]]),PB=[Pn,Rn,On,Kn,Un,be,Hn,jn,Wn,Yn,Xn,xo,Qn,Gn,Jn,_n,zo,Lo,el,Po,Fo,tl,ol,ot,nl,ll,Uo,al,rl,sl,il,cl,ul,dl,tt,fl,ml,pl,hl,gl,Ie,yl,vl,at,ie,kl,bl,Sl,Cl,Mt,wl,Nl,Bl,Vl,Al,$l,Tl,El,Dl,Rt,xl,zt,Lt,Il,ql,Ml,zl,Ot,Ko,Io,Mo,qo,Qe,vt,yt,Ll,Pl,Fl,Ut,Rl,Ol,Kl,Ht,Oo,Ul,jl,Ro,Ct,Yl,Xl,jt,Ql,Gl,Kt,Zl,Jl,_l,kt,ea,ta,bt,St,Xe,Ho,oa,na,la,Wt,Yt,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba,Va],FB=new ai(PB,"4.0.0");exports.ActionSheet=Rl;exports.ActionsheetItem=al;exports.ActionsheetPane=Uo;exports.Address=pa;exports.AddressList=wa;exports.Animate=ua;exports.Audio=Yl;exports.AudioOperate=Xl;exports.Avatar=jt;exports.AvatarGroup=Ql;exports.BackTop=Ol;exports.Badge=la;exports.Barrage=ha;exports.Broadcast=Mn;exports.BroadcastKey=ke;exports.Button=Ie;exports.Calendar=Mo;exports.CalendarItem=_n;exports.Card=Sa;exports.Cascader=Io;exports.CascaderItem=Gn;exports.Category=Na;exports.CategoryPane=Ba;exports.Cell=yl;exports.CellGroup=vl;exports.Checkbox=Po;exports.CheckboxGroup=Fo;exports.CheckboxItem=tl;exports.CircleProgress=Zl;exports.Col=Sl;exports.Collapse=ra;exports.CollapseItem=sa;exports.Comment=Va;exports.Content=Kn;exports.CountDown=na;exports.CountUp=oa;exports.DataItemsKey=ut;exports.DateItem=Jn;exports.DatePicker=qo;exports.DateUtils=ne;exports.Dialog=Ht;exports.Divider=wl;exports.Domain=bo;exports.DomainKey=De;exports.DomainProvider=hl;exports.Drag=Kl;exports.Ecard=Ca;exports.Elevator=Rt;exports.Ellipsis=ca;exports.Empty=_l;exports.FixedNav=Al;exports.FloatingButton=dl;exports.FooterBar=On;exports.FoxActionSheet=Rl;exports.FoxActionsheetItem=al;exports.FoxActionsheetPane=Uo;exports.FoxAddress=pa;exports.FoxAddressList=wa;exports.FoxAnimate=ua;exports.FoxAudio=Yl;exports.FoxAudioOperate=Xl;exports.FoxAvatar=jt;exports.FoxAvatarGroup=Ql;exports.FoxBackTop=Ol;exports.FoxBadge=la;exports.FoxBarrage=ha;exports.FoxButton=Ie;exports.FoxCalendar=Mo;exports.FoxCalendarItem=_n;exports.FoxCard=Sa;exports.FoxCascader=Io;exports.FoxCascaderItem=Gn;exports.FoxCategory=Na;exports.FoxCategoryPane=Ba;exports.FoxCell=yl;exports.FoxCellGroup=vl;exports.FoxCheckbox=Po;exports.FoxCheckboxGroup=Fo;exports.FoxCheckboxItem=tl;exports.FoxCircleProgress=Zl;exports.FoxCol=Sl;exports.FoxCollapse=ra;exports.FoxCollapseItem=sa;exports.FoxComment=Va;exports.FoxContent=Kn;exports.FoxCountDown=na;exports.FoxCountUp=oa;exports.FoxDateItem=Jn;exports.FoxDatePicker=qo;exports.FoxDialog=Ht;exports.FoxDivider=wl;exports.FoxDomainProvider=hl;exports.FoxDrag=Kl;exports.FoxEcard=Ca;exports.FoxElevator=Rt;exports.FoxEllipsis=ca;exports.FoxEmpty=_l;exports.FoxFixedNav=Al;exports.FoxFloatingButton=dl;exports.FoxFooterBar=On;exports.FoxGrid=Nl;exports.FoxGridItem=Bl;exports.FoxGroup=Un;exports.FoxHeaderBar=Rn;exports.FoxHintText=ot;exports.FoxImage=kl;exports.FoxImagePreview=Ho;exports.FoxIndicator=Il;exports.FoxInfiniteLoading=Oo;exports.FoxInputItem=Wn;exports.FoxInputNumber=Qe;exports.FoxInputnumberItem=rl;exports.FoxItem=be;exports.FoxLayout=bl;exports.FoxLinkItem=nl;exports.FoxList=Gl;exports.FoxMapping=pl;exports.FoxMenu=$l;exports.FoxMenuItem=Tl;exports.FoxMessageBox=tt;exports.FoxMoneyItem=Yn;exports.FoxNavbar=Vl;exports.FoxNoticeBar=Jl;exports.FoxNotify=jl;exports.FoxNumberKeyboard=Fl;exports.FoxOverLay=at;exports.FoxPage=Pn;exports.FoxPagination=xl;exports.FoxPicker=yt;exports.FoxPickerItem=Qn;exports.FoxPopover=Yt;exports.FoxPopup=ie;exports.FoxPopupWrapper=fl;exports.FoxPrice=Xe;exports.FoxProgress=Kt;exports.FoxPullRefresh=Ul;exports.FoxRadio=zo;exports.FoxRadioGroup=Lo;exports.FoxRadioItem=el;exports.FoxRange=Ot;exports.FoxRate=vt;exports.FoxRateItem=ll;exports.FoxRollingProvider=gl;exports.FoxRow=Cl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Ko;exports.FoxShortPassword=Ll;exports.FoxSideNavBar=ql;exports.FoxSideNavBarItem=Ml;exports.FoxSignature=ga;exports.FoxSkeleton=aa;exports.FoxSku=ba;exports.FoxSlotItem=jn;exports.FoxStep=ta;exports.FoxSteps=ea;exports.FoxStepsBar=ul;exports.FoxSticky=Mt;exports.FoxSubSideNavBar=zl;exports.FoxSwipe=Ut;exports.FoxSwiper=bt;exports.FoxSwiperItem=St;exports.FoxSwitch=Ro;exports.FoxSwitchItem=ol;exports.FoxTabPane=Lt;exports.FoxTabbar=El;exports.FoxTabbarItem=Dl;exports.FoxTable=ia;exports.FoxTabs=zt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=Wt;exports.FoxText=ml;exports.FoxTextarea=xo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=ka;exports.FoxTimePannel=va;exports.FoxTimeSelect=ya;exports.FoxToast=Ct;exports.FoxTour=ma;exports.FoxTrendArrow=fa;exports.FoxUploader=Pl;exports.FoxVideo=kt;exports.FoxWaterMark=da;exports.Grid=Nl;exports.GridItem=Bl;exports.Group=Un;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=kl;exports.ImagePreview=Ho;exports.Indicator=Il;exports.InfiniteLoading=Oo;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=bl;exports.LinkItem=nl;exports.List=Gl;exports.Mapping=pl;exports.Menu=$l;exports.MenuItem=Tl;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.Navbar=Vl;exports.NoticeBar=Jl;exports.Notify=jl;exports.NumberKeyboard=Fl;exports.OverLay=at;exports.Page=Pn;exports.Pagination=xl;exports.Picker=yt;exports.PickerItem=Qn;exports.Popover=Yt;exports.Popup=ie;exports.PopupWrapper=fl;exports.Price=Xe;exports.PriorityPolicy=co;exports.Progress=Kt;exports.PullRefresh=Ul;exports.Radio=zo;exports.RadioGroup=Lo;exports.RadioItem=el;exports.Range=Ot;exports.Rate=vt;exports.RateItem=ll;exports.RollingProvider=gl;exports.Row=Cl;exports.RowItem=Hn;exports.SearchBar=Ko;exports.ShortPassword=Ll;exports.SideNavBar=ql;exports.SideNavBarItem=Ml;exports.Signature=ga;exports.Skeleton=aa;exports.Sku=ba;exports.SlotItem=jn;exports.Step=ta;exports.Steps=ea;exports.StepsBar=ul;exports.Sticky=Mt;exports.SubSideNavBar=zl;exports.Swipe=Ut;exports.Swiper=bt;exports.SwiperItem=St;exports.Switch=Ro;exports.SwitchItem=ol;exports.TabPane=Lt;exports.Tabbar=El;exports.TabbarItem=Dl;exports.Table=ia;exports.Tabs=zt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=Wt;exports.Text=ml;exports.Textarea=xo;exports.TextareaItem=Xn;exports.TimeDetail=ka;exports.TimePannel=va;exports.TimeSelect=ya;exports.Toast=Ct;exports.Tour=ma;exports.TrendArrow=fa;exports.UniqueID=Do;exports.Uploader=Pl;exports.ValidateSchema=Pr;exports.ValidateSchemaKey=Re;exports.Video=kt;exports.WaterMark=da;exports.cancelRaf=gr;exports.clamp=Fe;exports.clearNonNumber=dn;exports.clone=un;exports.compareTo=sn;exports.createBroadcast=vo;exports.createValidateSchema=ko;exports.debounce=ht;exports.debounceRef=Qs;exports.decimalLength=Dr;exports.default=FB;exports.defineBroadcast=Rs;exports.defineConfigDomain=Fr;exports.defineDataItem=Or;exports.defineDomain=Ln;exports.defineItem=we;exports.definePageState=Kr;exports.deleteGlobalValidator=Hs;exports.disabledProperty=Ce;exports.divide=xn;exports.excludeProps=In;exports.extend=nt;exports.floatData=xr;exports.getGlobalValidateCheckEvents=Mr;exports.getGlobalValidateResetEvents=Lr;exports.getPageContentAreaHeight=so;exports.getPageContentAreaWidth=io;exports.getPageFooterAreaHeight=wo;exports.getPageHeaderAreaHeight=Co;exports.getRootDomain=mt;exports.getScrollTopRoot=qn;exports.hasSymbol=Nr;exports.includeProps=me;exports.indexOf=Ps;exports.installRules=Rr;exports.integerLength=Er;exports.isArray=ho;exports.isArrayLike=Vr;exports.isBrowser=st;exports.isDate=Oe;exports.isESModule=Is;exports.isEmptyString=ce;exports.isEqual=xe;exports.isFunction=ao;exports.isHidden=yo;exports.isInnerPage=Js;exports.isMap=Es;exports.isNil=Sr;exports.isNumberString=Tr;exports.isObject=Be;exports.isPlainObject=cn;exports.isPromise=qt;exports.isRegExp=$r;exports.isSet=Ds;exports.isString=Cr;exports.isSubPage=_s;exports.isSymbol=xs;exports.isWindow=Br;exports.lastIndexOf=Fs;exports.makeArray=Ls;exports.merge=Ar;exports.multiply=vr;exports.negate=kr;exports.nextTick=Ms;exports.numberFormat=po;exports.objectToString=wr;exports.once=Gs;exports.padZero=Je;exports.preventDefault=fn;exports.property=Ne;exports.raf=Pe;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=js;exports.setGlobalValidateHandler=Ks;exports.setGlobalValidateMessages=Ys;exports.setGlobalValidateResetEvents=Ws;exports.setGlobalValidator=Us;exports.throttle=ro;exports.toBoolean=he;exports.toNumber=pe;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=fe;exports.toTypeString=go;exports.toValue=Ee;exports.tryTimes=zn;exports.typeOf=lt;exports.unNumberFormat=br;exports.updatePageState=mn;exports.useBroadcast=Tt;exports.useDomain=Ke;exports.useExpose=$e;exports.useInnerSize=Fn;exports.usePageState=So;exports.usePosition=Zr;exports.useRect=Ve;exports.useSize=No;exports.useTouch=Ue;exports.valueLength=ge;
|