@fox-js/foxui 4.0.1-94 → 4.0.1-95

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.
Files changed (99) hide show
  1. package/dist/index.cjs.js +2 -2
  2. package/dist/index.esm.js +5840 -6186
  3. package/dist/index.umd.js +2 -2
  4. package/dist/locale/index.d.ts +0 -90
  5. package/dist/locale/index.esm.js +0 -78
  6. package/dist/locale/index.umd.js +1 -1
  7. package/dist/style.css +481 -772
  8. package/dist/style.js +1 -1
  9. package/dist/theme/common/base.scss +39 -0
  10. package/dist/theme/common/border.scss +16 -0
  11. package/dist/theme/common/color.scss +126 -0
  12. package/dist/theme/common/fill.scss +25 -0
  13. package/dist/theme/common/shadow.scss +28 -0
  14. package/dist/theme/common/typography.scss +38 -0
  15. package/dist/theme/common/var.scss +6 -0
  16. package/dist/theme/components/actionsheet.scss +49 -0
  17. package/dist/theme/components/avatar.scss +15 -0
  18. package/dist/theme/components/backtop.scss +10 -0
  19. package/dist/theme/components/badge.scss +23 -0
  20. package/dist/theme/components/button.scss +97 -0
  21. package/dist/theme/components/buttons-item.scss +12 -0
  22. package/dist/theme/components/calendar.scss +31 -0
  23. package/dist/theme/components/card.scss +16 -0
  24. package/dist/theme/components/cascader.scss +23 -0
  25. package/dist/theme/components/cell.scss +44 -0
  26. package/dist/theme/components/checkbox.scss +35 -0
  27. package/dist/theme/components/circleprogress.scss +16 -0
  28. package/dist/theme/components/collapse.scss +24 -0
  29. package/dist/theme/components/content.scss +10 -0
  30. package/dist/theme/components/countdown.scss +11 -0
  31. package/dist/theme/components/dialog.scss +48 -0
  32. package/dist/theme/components/divider.scss +22 -0
  33. package/dist/theme/components/elevator.scss +49 -0
  34. package/dist/theme/components/ellipsis.scss +10 -0
  35. package/dist/theme/components/empty.scss +18 -0
  36. package/dist/theme/components/fixednav.scss +14 -0
  37. package/dist/theme/components/floating-button.scss +23 -0
  38. package/dist/theme/components/footer-bar.scss +16 -0
  39. package/dist/theme/components/footer.scss +11 -0
  40. package/dist/theme/components/form.scss +24 -0
  41. package/dist/theme/components/grid.scss +18 -0
  42. package/dist/theme/components/group.scss +28 -0
  43. package/dist/theme/components/header-bar.scss +36 -0
  44. package/dist/theme/components/hint-text.scss +22 -0
  45. package/dist/theme/components/icon.scss +11 -0
  46. package/dist/theme/components/index.scss +75 -0
  47. package/dist/theme/components/indicator.scss +18 -0
  48. package/dist/theme/components/infiniteloading.scss +12 -0
  49. package/dist/theme/components/input-number.scss +38 -0
  50. package/dist/theme/components/input.scss +61 -0
  51. package/dist/theme/components/link-item.scss +15 -0
  52. package/dist/theme/components/list.scss +9 -0
  53. package/dist/theme/components/menu.scss +31 -0
  54. package/dist/theme/components/messagebox.scss +55 -0
  55. package/dist/theme/components/navbar.scss +24 -0
  56. package/dist/theme/components/noticebar.scss +20 -0
  57. package/dist/theme/components/notify.scss +21 -0
  58. package/dist/theme/components/numberkeyboard.scss +30 -0
  59. package/dist/theme/components/pagination.scss +22 -0
  60. package/dist/theme/components/picker.scss +24 -0
  61. package/dist/theme/components/popover-dialog.scss +23 -0
  62. package/dist/theme/components/popover.scss +20 -0
  63. package/dist/theme/components/popup-wrapper.scss +40 -0
  64. package/dist/theme/components/popup.scss +13 -0
  65. package/dist/theme/components/price.scss +19 -0
  66. package/dist/theme/components/progress.scss +32 -0
  67. package/dist/theme/components/radio.scss +33 -0
  68. package/dist/theme/components/range.scss +18 -0
  69. package/dist/theme/components/rate.scss +13 -0
  70. package/dist/theme/components/row-item.scss +14 -0
  71. package/dist/theme/components/searchbar.scss +28 -0
  72. package/dist/theme/components/shortpassword.scss +17 -0
  73. package/dist/theme/components/sidenavbar.scss +27 -0
  74. package/dist/theme/components/skeleton.scss +10 -0
  75. package/dist/theme/components/slot-item.scss +10 -0
  76. package/dist/theme/components/steps-bar.scss +55 -0
  77. package/dist/theme/components/steps.scss +36 -0
  78. package/dist/theme/components/swiper.scss +12 -0
  79. package/dist/theme/components/switch-item.scss +9 -0
  80. package/dist/theme/components/switch.scss +20 -0
  81. package/dist/theme/components/tabbar.scss +21 -0
  82. package/dist/theme/components/table.scss +15 -0
  83. package/dist/theme/components/tabs-bar.scss +110 -0
  84. package/dist/theme/components/tabs-frame.scss +9 -0
  85. package/dist/theme/components/tag.scss +41 -0
  86. package/dist/theme/components/text.scss +36 -0
  87. package/dist/theme/components/textarea.scss +18 -0
  88. package/dist/theme/components/toast.scss +18 -0
  89. package/dist/theme/components/trendarrow.scss +12 -0
  90. package/dist/theme/components/uploader.scss +12 -0
  91. package/dist/theme/components/watermark.scss +9 -0
  92. package/dist/theme/dark/css-vars.scss +27 -0
  93. package/dist/theme/dark/var.scss +77 -0
  94. package/dist/theme/index.scss +248 -0
  95. package/dist/theme/mixins/_css-var.scss +39 -0
  96. package/dist/theme/mixins/index.scss +1 -0
  97. package/dist/theme/readme.md +359 -0
  98. package/dist/types/index.d.ts +146 -114
  99. package/package.json +3 -1
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(T,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(T=typeof globalThis<"u"?globalThis:T||self,t(T.FoxUI={},T.Vue,T.FoxValidator,T.FoxIconsVue,T.FoxI18n))})(this,function(T,t,rt,re,ye){Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var es=Object.create,Go=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,ls=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty,Ue=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),os=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ns(n),i=0,o=r.length,c;i<o;i++)c=r[i],!as.call(e,c)&&c!==a&&Go(e,c,{get:(s=>n[s]).bind(null,c),enumerable:!(l=ts(n,c))||l.enumerable});return e},He=(e,n,a)=>(a=e!=null?es(ls(e)):{},os(n||!e||!e.__esModule?Go(a,"default",{value:e,enumerable:!0}):a,e)),dn=window,rs=typeof window<"u";function is(){return typeof dn<"u"?dn.requestAnimationFrame||dn.webkitRequestAnimationFrame||function(e){dn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function _o(e){rs?cancelAnimationFrame(e):clearTimeout(e)}var Ge=is();function fn(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=Sl(Ae(e),Ae(n)),a==1&&(l==1?e=vl(e):n=vl(n));let r=Zo(e,n);return a?a==2?"-"+Ae(r):e.length<r.length?Ae(r.substring(1)):"-"+Ae(vl(r)):Ae(r)}function vl(e){let n="",a=e.length,l=e.split(".")[1],r=l?l.length:0;for(let o=0;o<a;o++)e[o]>="0"&&e[o]<="9"?n+=9-parseInt(e[o]):n+=e[o];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Zo(n,i)}function Ae(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Sl(e,n){let a=e.split("."),l=n.split("."),r=a[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(r-i)+1).join("0")+(a[0]?a[0]:""),r=a[1]?a[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Zo(e,n){[e,n]=Sl(e,n);let a="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){a="."+a;continue}let i=parseInt(e[r])+parseInt(n[r])+l;a=i%10+a,l=Math.floor(i/10)}return l?l.toString()+a:a}var Ne=(function(e){return 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})({});function It(e,n=0,a=Ne.HALF_EVEN){if(a===Ne.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),i=r[0],o=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let s=i.substr(0,i.length-n);return e=s+"."+i.substr(i.length-n)+o,s=It(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Jo(r[1],i,l,a)?(l?"-":"")+kl(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");o=r[1].substring(0,n);let c=r[1].substring(n);return c&&Jo(c,o,l,a)&&(o=kl(o),o.length>n)?(l?"-":"")+kl(i,parseInt(o[0]))+"."+o.substring(1):(l?"-":"")+i+"."+o}function Jo(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!a&&l===Ne.FLOOR||a&&l===Ne.CEILING)return!1;if(l===Ne.UP||a&&l===Ne.FLOOR||!a&&l===Ne.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case Ne.HALF_DOWN:return!1;case Ne.HALF_UP:return!0;case Ne.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function kl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let r=a;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function wl(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=qt(e),n=qt(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let i=l+r;if(e=qt(e.replace(".","")),n=qt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let o=n.length,c=0,s=[],d=o-1,h="";for(let u=0;u<o;u++)s[u]=e.length-1;for(let u=0;u<2*e.length;u++){let p=0;for(let y=n.length-1;y>=d&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(p+=parseInt(e[s[y]--])*parseInt(n[y]));p+=c,c=Math.floor(p/10),h=p%10+h,d--}return h=qt(ss(h,i)),a==1&&(h="-"+h),h}function ss(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function qt(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 Cl(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ae(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ae(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let h=e.length-d+r;e=Ae(e.substring(0,h)+"."+e.substring(h))}else r==d&&(e=Ae(e.replace(".","")))}let i=0,o=n.length,c="",s=e.indexOf(".")>-1&&e.indexOf(".")<o?e.substring(0,o+1):e.substring(0,o);if(e=e.indexOf(".")>-1&&e.indexOf(".")<o?e.substring(o+1):e.substring(o),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),o>s.length&&(d+=o-s.length,s=s+new Array(o-s.length+1).join("0")),i=d,c="0."+new Array(d).join("0")}for(a=a+2;i<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=fn(s,"-"+n),d++;c+=d,e?(e[0]=="."&&(c+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(c+="."),i++,s=s+"0")}return(l==1?"-":"")+Ae(It(c,a-2))}function Nl(e,n){return e=e.toString(),n=n.toString(),n=Al(n),fn(e,n)}function Al(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function er(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),tr(e),tr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Nl(e,wl(n,It(Cl(e,n),0,Ne.FLOOR)));return a+l}function tr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function nr(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=Sl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}var Pt=class ge{value;static RoundingModes=Ne;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Ae(a);let r="";a[0]=="-"&&(r="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=r+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=r+Ae(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=ge.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ge.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var o="",c=i;c>0;)c<a?(a=c,c=0):c-=a,o=n.substring(c,c+a)+(c<i-a&&c>=0?l:"")+o;return(r?"-":"")+o+n.substring(i)}getPrettyValue(n,a){return ge.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ne.HALF_EVEN){if(n=ge.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return It(n,a,l)}round(n=0,a=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ge(It(this.value,n,a))}static floor(n){return n=ge.validate(n),n.indexOf(".")===-1?n:ge.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=ge.validate(n),n.indexOf(".")===-1?n:ge.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,Ne.CEILING)}static add(n,a){return n=ge.validate(n),a=ge.validate(a),fn(n,a)}add(n){return new ge(fn(this.value,n.getValue()))}static subtract(n,a){return n=ge.validate(n),a=ge.validate(a),Nl(n,a)}subtract(n){return new ge(Nl(this.value,n.getValue()))}static multiply(n,a){return n=ge.validate(n),a=ge.validate(a),wl(n,a)}multiply(n){return new ge(wl(this.value,n.getValue()))}static divide(n,a,l){return n=ge.validate(n),a=ge.validate(a),Cl(n,a,l)}divide(n,a){return new ge(Cl(this.value,n.getValue(),a))}static modulus(n,a){return n=ge.validate(n),a=ge.validate(a),er(n,a)}modulus(n){return new ge(er(this.value,n.getValue()))}static compareTo(n,a){return n=ge.validate(n),a=ge.validate(a),nr(n,a)}compareTo(n){return nr(this.value,n.getValue())}static negate(n){return n=ge.validate(n),Al(n)}negate(){return new ge(Al(this.value))}};function lr(e,n){return Pt.multiply(`${e}`,`${n}`)}function Bl(e,n,a=8){return Pt.divide(`${e}`,`${n}`,a)}var K2=Pt.RoundingModes;function Tl(e,n){return e=`${e}`,n=`${n}`,Pt.compareTo(e,n)}function ar(e){return Pt.negate(e)}function mn(e,n=-1,a=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let o=i.charAt(0);o=="-"?i=i.substring(1):o="";let c=i,s="",d=i.indexOf(".");d!=-1&&(c=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let u="",p=c.split("").reverse();for(let y=0;y<p.length;y++)u+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");s.length==0?h=`${o}${u.split("").reverse().join("")}`:h=`${o}${u.split("").reverse().join("")}.${s}`}else s.length==0?h=`${o}${c}`:h=`${o}${c}.${s}`;return h}function or(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}var _e=typeof window<"u",je=Ge;function Ee(e){return e==null}var pn=Array.isArray,cs=e=>gn(e)==="[object Map]",us=e=>gn(e)==="[object Set]",We=e=>e instanceof Date,hn=e=>typeof e=="function",rr=e=>typeof e=="string",ds=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",ft=e=>$e(e)&&hn(e.then)&&hn(e.catch),ir=Object.prototype.toString,gn=e=>ir.call(e),fs=e=>gn(e)==="[object Object]",sr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ms(e){return e.__esModule||sr&&e[Symbol.toStringTag]==="Module"}var ps=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function mt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let i=e[a];for(let o in i){let c=n[o],s=i[o];if(c!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=c&&Array.isArray(c)?c:[]:d=c&&typeof c=="object"?c:{},n[o]=mt(r,d,s)}else s!==void 0&&(n[o]=s)}}return n}var Vl=ps?Promise.resolve():null;function hs(e,...n){Vl!==null?n&&n.length>0?Vl.then(()=>{e(n)}):Vl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ke(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var gs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function pt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):gs[n]||"object"}function El(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function $l(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function cr(e){return e&&typeof e=="object"&&"setInterval"in e}function ur(e){let n=!!e&&"length"in e&&e.length,a=pt(e);return a==="function"||cr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function dr(e,n){let a=+n.length,l=0,r=e.length;for(;l<a;l++)e[r++]=n[l];return e.length=r,e}function ys(e,n=[]){let a=n;return e!=null&&(ur(Object(e))?dr(a,typeof e=="string"?[e]:e):a.push(e)),a}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=pt(e);if(a!==pt(n))return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let o=l[i],c=e[o],s=n[o];if(!De(c,s))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!De(r,i))return!1}return!0}return!1}function Dl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function yn(e){return pe(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function mr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function pr(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function Il(e,n=!0,a=!0){n?e=pr(e,".",/\./g):e=e.replace(/\./g,""),a?e=pr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function bs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(De(e,a))return!0}):n.indexOf(e)}function vs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(De(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const a={};return n.forEach(l=>{for(const r in l)a[r]=e[r]}),a}function Ze(e,...n){const a=[];n.forEach(r=>{Reflect.apply([].push,a,Reflect.ownKeys(r))});const l={};for(const r in e)a.includes(r)||(l[r]=e[r]);return l}var Ss=(e,n,a)=>{const l=Object.assign({},e),r=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e};function ql(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var it=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ye=(e,n,a)=>Math.min(Math.max(e,n),a);function bn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ks(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var ze=Symbol.for("BroadcastKey"),hr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,a){this.parent=e,this.exposed=n,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(a=>e===a);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,n,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:a};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let a=!1;return!n.name||n.name==="*"||n.name==="+"||Dl(n.name)&&e&&n.name.test(e)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[e]):n.name===e&&(a=!0),a}trigger(e,n,a){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...a])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const i=e.resolve,o=e.uniqueId??"",c=(...s)=>{this.deletePersistantMessage(o),typeof i=="function"&&i(...s)};e.resolve=c}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Dl(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const o=Reflect.apply(i,null,[...a]);Ee(o)||r.push(o)}if(this.exposed&&typeof this.exposed[n]=="function"){const o=Reflect.apply(this.exposed[n],this.exposed,[...a]);Ee(o)||r.push(o)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const o=Reflect.apply(i.emit,i,[{...e},n,...a]);Array.isArray(o)&&o.length>0&&Reflect.apply([].push,r,[...o])}),r}emitToChildren(e,n,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const r=e.resolve,i=e.uniqueId??"",o=(...c)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...c)};e.resolve=o}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...a]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function xt(e,n,a,l){const r=new hr(n,e,a);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Mt(e){let n=e?.[ze];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(ze,null)),n}var ws=class{error(e,n){const a=Mt(n.exposed);a?a.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Mt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Mt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,a){Array.isArray(e)||(e=[e]);const l=Mt(a.exposed),r=n.find(o=>o.required===!0||o.type==="required"&&o.required!==!1),i=e.find(o=>o.required===!0||o.type==="required"&&o.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!1),this.reset(a))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},zt=new ws;function Cs(e){zt=e}function Ns(e){zt?Object.assign(zt,e):zt=e}function As(e,n){rt.Schema.setValidator(e,n)}function Bs(e){rt.Schema.deleteValidator(e)}var gr=["blur","clear"];function Ts(e){gr=e}function yr(){return gr}var br=["focus","change","setValue"];function Vs(e){br=e}function vr(){return br}function Es(e){rt.Schema.messages(e)}function Rt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function vn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Je=Symbol("ValidateSchemaKey"),Sr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,a){this.parent=e,this.descriptor=n,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const e=vn(Rt(this.attrRules,this.rules)),n=[],a=this.descriptor.context?.attrs??{};for(let r in a){let i=a[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),n.push(c);continue}let o=this.getValidator(r);if(o!==null){let c={type:r,validator:o};n.push(c)}}this.attrRules=vn(n);const l=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...n]);const l=zt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,n,a=!1){a?rt.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?rt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return rt.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const n=Rt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=vn(e):this.rules=vn([e]);const a=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new rt.Schema(a),o=this.proxy??r;return i.validate(r,{context:o}).then(c=>{if(c.pass)this.success();else{let s="error";Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors[0].message??s,c.errors=[c.errors[0]],c.errors[0].ref=o),this.error(s)}return c}).catch(c=>{const s=c.message??`${c}`;return this.error(s),c})}}return Promise.resolve({pass:!0})}};function Sn(e,n,a){a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string";const l={exposed:e,get $el(){return a.templateRefProxy?.$el},get props(){return a.props},get attrs(){return a.context?.attrs}};if(!a.validateHandler&&a.valueName!=="modelValue"){const r=a.valueName;a.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new Sr(n,a,l)}var kn=Symbol.for("EventEmitterKey"),kr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let a=this.register.get(e);if(a&&Array.isArray(a)){let l=a.findIndex(r=>r===n);l!==-1&&a.splice(l,1)}}on(e,n){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(n)}emit(e,...n){const a=this.register.get(e);a&&a.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(r){console.error(r.message,r)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function Pe(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function wn(e,n){let a=0;return function(...l){const r=new Date().getTime();r-a<n||(a=r,Reflect.apply(e,null,[...l]))}}function $s(e,n){const a=Pe((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){a(i,r)}}))}function Ds(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Pl(e,n,a,l=0,r=!0){let i=n,o=0;if(r){const s=e();if(o++,s||o>a)return}const c=()=>{const s=e();o++,!(s||o>a)&&(i+=l,setTimeout(c,i))};setTimeout(c,i)}var et=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Cn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,t.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,n){this._datas[e]=n}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,n=[]){for(const a in e){const l=e[a];n.length>0&&n.indexOf(l)!==-1||(this._props[a]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const l=a._props[e];n.push(l)}a=a._parent}return n}},Is=new Cn;function ht(){return Is}function tt(){return(0,t.inject)(et,null)}var xl=Symbol("OriginalDateKey");function Ml(e,n,a){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(et,null):null;i===null&&(i=ht());const o=n;let c=new Cn(o);c.parent=i;const s=v=>{c?.hasData(xl)||u(v),c?.set("modelValue",v)},d=()=>c?.getForSelf("modelValue")??null,h=()=>c?.getData(xl)??null,u=v=>{const f={};mt(!0,f,(0,t.toRaw)(v)),c.setData(xl,f)},p=e.props,y=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,v=>{c?.merge(v,y),v.modelValue&&u(v.modelValue)},{immediate:!0}):(c.merge(p,y),p.modelValue&&u(p.modelValue));const A=(v,f)=>{c?.set(v,f)},k=v=>c?.getForSelf(v)??null;if(c.componentPublicExposed[et]=c,(0,t.provide)(et,c),r!==null){const v=(0,t.inject)(ze,null),f=xt(c.componentPublicExposed,v,o,a);c.broadcast=f,c.componentPublicExposed[ze]=f,(0,t.provide)(ze,f),c.componentPublicExposed.broadcast=(g,b,...E)=>{if(f)return Reflect.apply(f.emit,f,[g,b,...E])};const m=(0,t.inject)(Je,null),S=Sn(c.componentPublicExposed,m,{componentName:"",context:e.context});c.validateSchema=S,c.componentPublicExposed[Je]=S,(0,t.provide)(Je,S),c.componentPublicExposed[Ft]=new Map,c.componentPublicExposed.validate=async(g=!0)=>{const b=[];let E=null;const V={};let N=!1;if(g===!0)E={name:"*"},N=!0;else if(Array.isArray(g)&&g.length>0){const C=g;E={name:M=>M?C.indexOf(M)!==-1:!1},N=!0}else if(g!=null&&typeof g=="object"){const C=g;if(C.deep!==!1){if(Object.assign(V,C),Array.isArray(C.include)&&C.include.length>0){const M=C.include;E={name:j=>j?M.indexOf(j)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const M=C.exclude;E={name:j=>j?M.indexOf(j)===-1:!1}}else E={name:"*"};N=!0}}if(N&&E){V.deep=!1;const C=f?.emitToChildren(E,"validate",V);C&&Reflect.apply([].push,b,C)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(C=>{let M=[];return C.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&(M=[...M,...j.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})};const B=e.context;c.componentPublicExposed.setNameValidateRules=(g,b=!0,E=!1)=>{if(E===!0){Reflect.ownKeys(g).forEach(V=>{let N=String(V);const C={componentName:"",fieldName:N,pureDataValidate:!0,context:B};if(c){const M=Cr(c,N,C,f,S);c.componentPublicExposed[Ft].set(N,M);const j=g[N];j&&M.validateSchema.setRule(j)}});return}if(b){const V=Reflect.ownKeys(g);f?.emitToChildren({name:N=>V.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",g,!1)}},c.componentPublicExposed.clearValidate=(g=!0)=>{let b=null;const E={};let V=!1;if(g===!0)b={name:"*"},V=!0;else if(Array.isArray(g)&&g.length>0){const N=g;b={name:C=>C?N.indexOf(C)!==-1:!1},V=!0}else if(g!=null&&typeof g=="object"){const N=g;if(N.deep!==!1){if(Array.isArray(N.include)&&N.include.length>0){const C=N.include;b={name:M=>M?C.indexOf(M)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;b={name:M=>M?C.indexOf(M)===-1:!1}}else b={name:"*"};Object.assign(E,N),V=!0}}V&&b&&(E.deep=!1,f?.emitToChildren(b,"clearValidate",E))},c.componentPublicExposed.resetFields=g=>{const b=d();if(!b)return;const E={};if(mt(!0,E,h()??{}),Array.isArray(g))g.forEach(V=>{b[V]=E[V]});else if(g&&Array.isArray(g.include))(g.include??[]).forEach(V=>{b[V]=E[V]});else if(g&&Array.isArray(g.exclude)){let V=g.exclude??[];Reflect.ownKeys(E).forEach(N=>{V.includes(N)||(b[N]=E[N])})}else Object.assign(b,E);c?.componentPublicExposed?.clearValidate(g)},c.componentPublicExposed.setModelValue=(g,b)=>{if(!b||b===o)s(g);else{const E={name:b,messagingPolicy:"Once"};f?.emitToChildren(E,"setModelValue",g)}},c.componentPublicExposed.getModelValue=()=>d(),c.componentPublicExposed.setDomainProperty=(g,b)=>{A(g,b)},c.componentPublicExposed.getDomainProperty=g=>k(g),setTimeout(function(){f?.pull()},0)}(0,t.onScopeDispose)(function(){c?.validateSchema&&c.validateSchema.destroy(),c?.broadcast&&c?.broadcast?.destroy(),c.componentPublicExposed[Ft]&&c.componentPublicExposed[Ft].clear(),c?.destroy(),c=null});const w=e.context?.expose;return{domain:c,exposeApi:(v={})=>{Object.assign(c.componentPublicExposed,v),w?.(c.componentPublicExposed)}}}function wr(e,n){let a=(0,t.inject)(et,null);a===null&&(a=ht());let l=new Cn(n);l.parent=a;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,c=>{l?.merge(c,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[et]=l,(0,t.provide)(et,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const o=e.context?.expose;return{domain:l,exposeApi:(c={})=>{Object.assign(l.componentPublicExposed,c),o?.(l.componentPublicExposed)}}}function Be(e,n,a){const l={},r=n??e.componentName??"";let i=xt(l,(0,t.inject)(ze,null),r,a);l[ze]=i,(0,t.provide)(ze,i),l.broadcast=(u,p,...y)=>i?Reflect.apply(i.emit,i,[u,p,...y]):null;const o=(0,t.inject)(Je,null);e.fieldName=e.fieldName??r;let c=Sn(l,o,e);l[Je]=c,(0,t.provide)(Je,c),l.validate=async(u=null)=>{if(!c)return Promise.resolve({pass:!0});const p=[];let y=null;const A={};let k=!1,w=!1;if(u===!0)y={name:"*"},w=!0,k=!0;else if(Array.isArray(u)&&u.indexOf(r)!==-1){const v=u;y={name:f=>f?v.indexOf(f)!==-1:!1},w=!0,k=!0}else if(u&&typeof u=="object"){const v=u,f=v.ignoreDisabled??!0,m=v.ignoreReadonly??!0,S=v.ignoreHidden??!0;f===!0&&e.disabled===!0||m===!0&&e.readonly===!0||S===!0&&El(e.templateRefProxy?.$el??e.templateRefProxy)?w=!1:(Array.isArray(v.include)&&v.include.indexOf(r)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(r),w=!0),Object.assign(A,v),k=v.deep??!1}if(w){const v=c?.validate();p.push(v)}if(k&&y){A.deep=!1;const v=i?.emitToChildren(y,"validate",A);v&&Reflect.apply([].push,p,v)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(v=>{let f=[];return v.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(f=[...f,...m.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=u=>c?.setRule(u),l.setNameValidateRules=(u,p=!1)=>{const y=u[r];y&&c?.setRule(y),p&&i&&i.emitToChildren({name:A=>Reflect.ownKeys(u).includes(A)},"setNameValidateRules",u,!1)},l.clearValidate=(u=!0)=>{if(!c)return;let p=null;const y={};let A=!1,k=!1;if(u===!0)p={name:"*"},k=!0,A=!0;else if(Array.isArray(u)&&u.indexOf(r)!==-1){const w=u;p={name:v=>v?w.indexOf(v)!==-1:!1},k=!0,A=!0}else if(u&&typeof u=="object"){const w=u;(w.ignoreHidden??!0)===!0&&El(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),k=!0),Object.assign(y,w),A=w.deep??!1}k&&c?.clear(),A&&p&&(y.deep=!1,i?.emitToChildren(p,"clearValidate",y))};let s=new kr(e.context?.emit);l[kn]=s,l.triggerEvent=(u,...p)=>{s.emit(u,...p)};const d=Pe((u="validate")=>{c&&(u==="reset"?c.clear():c.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yr()).forEach(u=>{s&&s.on(u,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vr()).forEach(u=>{s&&s.on(u,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,c?.destroy(),l[Je]=null,c=null,s?.destroy(),l[kn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const h=e.context?.expose;return{broadcast:i,validateSchema:c,emitEvent:(u,...p)=>{s&&Reflect.apply(s.emit,s,[u,...p])},onEvent:(u,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(u,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(u={})=>{Object.assign(l,u),h?.(l)}}}function Cr(e,n,a,l,r){const i={},o=n??"",c={getValue(){const u=e.getForSelf("modelValue");return u?u[o]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,o):!1}};a.fieldName=o,a.validateHandler={getValue(u){return c.getValue()}};let s=Sn({},r,a);i.validate=async(u=null)=>{if(!c.isExist())return console.warn(`validate error: field [${o}] not exist`),Promise.resolve({pass:!0});const p=[];let y=!1,A=!1;if(Array.isArray(u)&&u.indexOf(o)!==-1)A=!0,y=!0;else if(u&&typeof u=="object"){const k=u;Array.isArray(k.include)&&k.include.indexOf(o)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(o),A=!0,y=k.deep??!1}else typeof u=="boolean"&&(y=u),A=!0;if(A&&s){const k=s.validate();p.push(k)}if(y){let k=null;const w={};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const v=u;k={name:f=>f?v.indexOf(f)!==-1:!1}}else if(u!=null&&typeof u=="object"){const v=u;if(Object.assign(w,v),Array.isArray(v.include)&&v.include.length>0){const f=v.include;k={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const f=v.exclude;k={name:m=>m?f.indexOf(m)===-1:!1}}else k={name:"*"}}if(k&&d){w.deep=!1;const v=d.emitToChildren(k,"validate",w);Reflect.apply([].push,p,v)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let w=[];return k.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(w=[...w,...v.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=u=>s?.setRule(u),i.setNameValidateRules=u=>{const p=u[o];p&&s?.setRule(p)};let d=xt(i,l,o);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=a.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(u={})=>{Object.assign(i,u),h?.(i)}}}function Fe(e,n){let a={};if(n){const i=(0,t.inject)(ze,null),o=xt(a,i,n,{});a[ze]=o,(0,t.provide)(ze,o)}let l=new kr(e.context?.emit);a[kn]=l,a.triggerEvent=(i,...o)=>{l.emit(i,...o)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(a,kn),a=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...o)=>{l&&Reflect.apply(l.emit,l,[i,...o])},onEvent:(i,o)=>{l&&Reflect.apply(l.on,l,[o])},offEvent:(i,o)=>{l&&Reflect.apply(l.off,l,[o])},componentPublicExposed:a,exposeApi:(i={})=>{Object.assign(a,i),r?.(a)}}}var he=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",qs=he;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let r=Number(e.substring(0,a)),i=1;if(_e){const{fontSize:o}=window.getComputedStyle(document.documentElement,null),c=o.indexOf("px");c>0&&(i=Number(o.substring(0,c)))}return r*=i,r}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const l=Number(e);return isNaN(l)?0:l}function Ps(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var nt="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function zl(e,n,a={},l=!0,r=-1,i=-1,o=0,c=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ue(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(o,i)-ue(c,i),e.width=ue(a.width??n.width??0,r)}}function Nr(e,n={}){const a={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=ue(r.top),l.safeAreaBottom=ue(r.bottom),l.safeAreaLeft=ue(r.left),l.safeAreaRight=ue(r.right));const i=e.get("pageLayout");if(!i)return null;zl(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const o=(0,t.reactive)(l),c=e.getForParent(nt);c&&(l.height=Tn(e,c),l.width=Vn(e,c),(0,t.watch)([()=>Tn(e,c),()=>Vn(e,c)],([d,h])=>{o.height=d,o.width=h}));const s=!c;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,u=-1,p=-1,y=0,A=0])=>{zl(o,h,n,s,u,p,y,A)}),e.set(nt,o),o}function Nn(e){return e.get(nt)}function An(e,n){if(n=n??e.get(nt),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Bn(e,n){if(n=n??e.get(nt),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Tn(e,n){if(n=n??e.get(nt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=An(e,n),l=Bn(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-a-l-r-i}return 0}function Vn(e,n){if(n=n??e.get(nt),n){const a=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-a-l}return 0}function xs(e){return!!e.getForParent(nt)}var Rl=Symbol.for("InnerPageScopeKey");function Ar(e){(0,t.provide)(Rl,e)}function Lt(e=!1){return(0,t.inject)(Rl,e)}var Fl=Symbol.for("AbstractPageScopeKey");function Br(e){(0,t.provide)(Fl,e)}function Ot(e=!1){return(0,t.inject)(Fl,e)}function Tr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function Vr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function Er(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Ll=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function En(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=1,l){const r=tt();return r==null?e:a===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let c=i.length-1;c>=0;c--){const s=i[c];if(En(s,l))return s}const o=e.value;return En(o,l)?o:null}):(0,t.computed)(()=>{const i=e.value;if(En(i,l))return i;const o=r.getAll(n);for(let c=0;c<o.length;c++){const s=o[c];if(En(s,l))return s}return null})}function $r(e){return Te(e,"readonly",1)}function Dr(e){return Te(e,"disabled",1)}function Ir(e){return Te(e,"browse",1)}function Ve(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=Dr((0,t.computed)(()=>a.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:a,disabled:l,innerReadonly:r,readonly:$r((0,t.computed)(()=>r.value??e.readonly)),browse:Ir((0,t.computed)(()=>e.browse))}}function xe(e,n="modelValue",a=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof a=="function"&&(i=a(r.value));const o=(0,t.ref)(i);return(0,t.watch)(r,c=>{if(typeof a=="function"){const s=a(c);s!==o.value&&(o.value=s,l&&l("setValue",s))}else c!==o.value&&(o.value=c,l&&l("setValue",c))}),o}var qr=new Map,$n=new Map,Ol=null;function Ms(e){Ol=e}function zs(){return Ol}function st(){return Ol?.()??null}function Pr(e,n,a){if(a){let l=$n.get(a);l||(l=new Map,$n.set(a,l)),l.set(e,n)}else qr.set(e,n)}function lt(e,n){let a=null;if(n){let l=$n.get(n);l&&(a=l.get(e))}return a||(a=qr.get(e)),a}function Rs(e,n){for(let a in e){const l=e[a];Pr(a,l,n)}}function Fs(e){$n.delete(e)}function Ls(){return{top:0,left:0,bottom:0,right:0}}function Os(){return _e?{rootWidth:window.innerHeight||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ks(e,n){let a=e;if(n.componentPrefix){const l=a.indexOf("-");l!==-1?a=`${n.componentPrefix}${a.slice(l)}`:a=`${n.componentPrefix}-${a}`}return bn(a)}var Us=class{packages;resizeListener=null;resizeObserver=null;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const r=Ks(l.name,n);e.component(r,l)}});const a=ht();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Pe(()=>{const i={...l};this.updateLayout(i,a)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,a)},window.visualViewport?(r&&window.visualViewport.removeEventListener("resize",r),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(n,a)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const a=e.headerBarHeight??0,l=e.footerBarHeight??0,r=mt({},Ls(),e.safeAreaInset),i=Os(),o=mt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",r),n.set("headerBarHeight",a),n.set("footerBarHeight",l),n.set("pageLayout",o),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)c.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Ms(e)}getScopeGetter(){return zs()}setAPI(e,n,a){Pr(e,n,a)}getAPI(e,n){return lt(e,n)}batchSetAPI(e,n){Rs(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return ht()}};function ee(e){const n=`fox-${e}`,a=bn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=a,l.install=(r,i)=>{let o=l.name;i?.componentPrefix&&(o=`${i.componentPrefix}-${l.baseName}`,o=bn(o)),r.component(o,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Hs=(e,n)=>{let a=document.body;const l=e.teleport||"body";l!="body"&&(rr(l)?a=document.querySelector(l):a=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};hn(n.wrapper)?i=n.wrapper(a,r):i=n.wrapper;const o=(0,t.createApp)(i,e),c=n.components;return c&&c.forEach(s=>{o.use(s)}),a.appendChild(r),{instance:o.mount(r),unmount:()=>{o.unmount(),a.removeChild(r)}}},xr=(e,n)=>e?(0,t.h)(e,n):"",be={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Se={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Mr={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}},zr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Rr=[];for(const e in zr)Rr.push(e);var js={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}},Ws=(e,n)=>({inheritAttrs:!0,props:{...be,...Mr,...js},setup(a,l){const r=!!Ot(!1),i=Lt(!1),{domain:o,exposeApi:c}=Ml({props:a,context:l},a.name);if(o){const u=Nr(o,a);c({getPageContentHeight:()=>Tn(o,u),getPageContentWidth:()=>Vn(o,u),getPageHeaderHeight:()=>An(o,u),getPageFooterHeight:()=>Bn(o,u)}),u&&i&&(u.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(u,p=!1)=>{o.componentPublicExposed&&typeof o.componentPublicExposed.setNameValidateRules=="function"&&o.componentPublicExposed.setNameValidateRules(u,!0,p)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([u,p],[y,A])=>{if(u&&y){const k=(0,t.toRaw)(y),w=(0,t.toRaw)(u),v=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{v.includes(f)||(w[f]=[])}),h(w)}if(p&&A){const k=(0,t.toRaw)(A),w=(0,t.toRaw)(p),v=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{v.includes(f)||(w[f]=[])}),h(w,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&h((0,t.toRaw)(a.rules)),a.pureDataRules&&h((0,t.toRaw)(a.pureDataRules),!0)}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:Ys,create:Xs,scope:Qs}=ee("page"),Gs=Xs(Ws(Ys,Qs)),Kl=Gs;function Ul(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Dn(e){const n=(0,t.unref)(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),r=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-o}}var Fr={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(Fr,e)}function In(){return Fr}var Zs=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,i){const o=Tr(!1),c=Lt(!1),s=o?null:tt(),d=s?Nn(s):null,h=In(),u=e,p=(0,t.computed)(()=>{const $={[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed};return c||($[`${u}--safe-area-inset-top`]=r.safeAreaInsetTop),$}),y=(0,t.computed)(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),A=Ee(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return $;if(s&&d){const z=Le(r.padding??d.headerPadding);if(Object.assign($,z),Ee(A)||(d.headerHeight=A),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const x=ue(z.top??0);$.top=$.safeAreaTop+x,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Ee(A)||($.height=A),r.padding){const z=Le(r.padding);Object.assign($,z)}return $}),w=(0,t.ref)(null),v=()=>d&&w.value&&!$l(w.value)?(l||(d.headerAllHeight=Ul(w.value).height),d.headerMounted=!0,!0):!1,f=Pe(v,120);let m=null;(0,t.onMounted)(()=>{o||d&&(Pl(v,50,5,50,!0),window.ResizeObserver&&w.value&&(m=new window.ResizeObserver(f),m.observe(w.value)))}),(0,t.onUnmounted)(()=>{o||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const S=(0,t.computed)(()=>{const $={};return o||(k.value.height!==null&&k.value.height!==void 0&&($.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&($.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&($.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&($.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&($.paddingBottom=`${k.value.bottom}px`)),$}),B=(0,t.computed)(()=>{const $=k.value?.height;return Ee($)||$<0?!0:$>0});function g(){i.emit("back")}function b(){i.emit("click-title")}function E(){i.emit("click-right")}function V(){i.emit("click-right-text")}const N=()=>{if(!r.leftShow)return null;const $=[];if(i.slots.left)$.push(i.slots.left());else{if(i.slots.leftIcon){const z=(0,t.h)("view",{class:"left-icon",onClick:g},[i.slots.leftIcon()]);$.push(z)}else{const z=r.leftIcon??h.headerbar.Left??a,x=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(z)]);$.push(x)}if(r.leftText){const z=(0,t.h)("view",{class:"left-text",onClick:g},[r.leftText]);$.push(z)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},C=()=>{if(!r.rightShow)return null;const $=[];if(i.slots.right)$.push(i.slots.right());else{if(r.rightText){const z=(0,t.h)("view",{class:"right-text",onClick:V},[r.rightText]);$.push(z)}if(i.slots.rightIcon){const z=(0,t.h)("view",{class:"right-icon",onClick:E},[i.slots.rightIcon()]);$.push(z)}else if(r.rightIcon){const z=(0,t.h)("view",{class:"right-icon",onClick:E},[(0,t.h)(r.rightIcon)]);$.push(z)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},M=()=>{if(!r.titleShow)return null;const $=[],z=i.slots.default?i.slots.default():null;if(z)$.push(z);else{if(r.title){const x=(0,t.h)("view",{class:"title-text"},[r.title]);$.push(x)}if(i.slots.titleIcon){const x=(0,t.h)("view",{class:"title-icon",onClick:b},[i.slots.titleIcon()]);$.push(x)}else if(r.titleIcon){const x=(0,t.h)("view",{class:"title-icon",onClick:b},[(0,t.h)(r.titleIcon)]);$.push(x)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},j=()=>{const $=[],z=i.slots.bottom?i.slots.bottom():null;return z&&$.push(z),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(o||!B.value)return null;const $=[];if(i.slots.all)$.push(i.slots.all());else{const z=[],x=N();x&&z.push(x);const F=M();F&&z.push(F);const R=C();if(R&&z.push(R),z.length>0){const P=(0,t.h)("view",{class:y.value},z);$.push(P)}const X=j();X&&$.push(X)}return $.length===0?null:(0,t.h)("view",{class:p.value,style:S.value,ref:w},$)}}}),{componentName:Js,create:ec,scope:tc}=ee("header-bar"),nc=ec(Zs(Js,tc,re.Left,!1)),Hl=nc;function lc(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,r){const i=Vr(!1),o=Lt(!1),c=i?null:tt(),s=c?Nn(c):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return o||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),u=Ee(l.height)?null:ue(l.height),p=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return m;if(c&&s){const S=Le(l.padding??s.footerPadding);if(Object.assign(m,S),Ee(u)||(s.footerHeight=u),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const B=ue(S.bottom??0);m.bottom=m.safeAreaBottom+B,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Ee(u)||(m.height=u),l.padding){const S=Le(l.padding);Object.assign(m,S)}return m}),y=(0,t.computed)(()=>{const m=p.value?.height;return Ee(m)||m<0?!0:m>0}),A=(0,t.ref)(null),k=()=>s&&A.value&&!$l(A.value)?(a||(s.footerAllHeight=Ul(A.value).height),s.footerMounted=!0,!0):!1,w=Pe(k,120);let v=null;(0,t.onMounted)(()=>{i||s&&(Pl(k,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(w),v.observe(A.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,v&&(v.disconnect(),v=null))});const f=(0,t.computed)(()=>{const m={};return i||(p.value.height!==null&&p.value.height!==void 0&&(m.height=he(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(m.paddingTop=he(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(m.paddingLeft=he(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(m.paddingRight=he(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(m.paddingBottom=he(p.value.bottom))),m});return()=>{if(i||!y.value)return null;const m=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:A,class:h.value,style:f.value},m)}}}}var{componentName:ac,create:oc,scope:rc}=ee("footer-bar"),ic=oc(lc(ac,rc,!1)),jl=ic;function sc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:l,attrs:r}){const i=Er(!1),o=Lt(!1),c=i?null:tt(),s=(0,t.computed)(()=>({[e]:!0})),d=c?Nn(c):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(c&&d){if(a.padding){const b=Le(a.padding);Object.assign(d.contentPadding,b)}const w=An(c,d),v=Bn(c,d);let f="";d.contentHeight?f=`${d.contentHeight}`:f=`${d.height}px`,console.debug("[content]page height:",f),console.debug("[content]header height:",w),console.debug("[content]footer height:",v),console.debug("[content]padding:",d.contentPadding),k.height=f;let m=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||w>0)&&(m=m<0?0:m,k.paddingTop=`${w+m}px`);let S=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(S>=0||v>0)&&(S=S<0?0:S,k.paddingBottom=`${v+S}px`);const B=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);B>=0&&(k.paddingLeft=`${B}px`);const g=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(k.paddingRight=`${g}px`),k}if(a.padding){const w=Le(a.padding);w.left&&(k.paddingLeft=`${w.left}px`),w.top&&(k.paddingTop=`${w.top}px`),w.right&&(k.paddingRight=`${w.right}px`),w.bottom&&(k.paddingBottom=`${w.bottom}px`)}return k}),u=(0,t.ref)(null),p=()=>{if(d&&u.value){const k=Dn(u.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},y=Pe(p,120);let A=null;return(0,t.onMounted)(()=>{o||i||(requestAnimationFrame(p),window.ResizeObserver&&u.value&&(A=new window.ResizeObserver(y),A.observe(u.value)))}),(0,t.onUnmounted)(()=>{o||i||A&&(A.disconnect(),A=null)}),()=>i?l.default?.():(0,t.h)(a.tag??"view",{...r,ref:u,class:s.value,style:h.value},l)}}}var{componentName:cc,create:uc,scope:dc}=ee("content"),fc=uc(sc(cc,dc)),Wl=fc,gt="GroupStateKey",Lr=Symbol.for("GroupScopeKey");function qn(){return(0,t.inject)(Lr,!1)}function Pn(e=!0){(0,t.provide)(Lr,e)}function mc(e,n={}){Reflect.ownKeys(n).forEach(a=>{if(typeof a!="string")return;const l=n[a];Ee(l)||(e[a]=l)})}function pc(e,n={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};mc(a,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set(gt,l),l}function Yl(e,n,a=-1,l=-1,r=!1,i,o,c){const s=e.get(gt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),o||(o=d.maxItemWidth??-1);const h=ue(i),u=ue(o);c||(c=d.type??"grid");const p=()=>{const y=n===""||n===-1,A=ue(n);let k=de(a);const w=ue(l);if(!y){let m=(A-(k-1)*w)/k;for(;u!==-1&&m>u;)k++,m=(A-(k-1)*w)/k;for(;h!==-1&&k>1&&m<h;)k--,m=(A-(k-1)*w)/k}let v=!1;const f=s.layout;f.value.width=n,f.value.column!==k&&(f.value.column=k,v=!0),f.value.gutter!==w&&(f.value.gutter=w,v=!0),f.value.type!==c&&(f.value.type=c,v=!0),v&&(0,t.triggerRef)(f)};if(r)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function xn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.layout}function Mn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.order}function Or(e,n=1){if(n==="stretch")return-1;const a=de(n);return a===-1?100:100*a/e}function zn(e,n,a=1,l=0,r){const i={};let o=0;r?o=ue(r):o=Or(n.column,a),o>0&&(i.width=`${o}%`);const c=Or(n.column,l);c>0&&(i["margin-left"]=`${c}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Rn(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let r=de(a);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const i=de(l)%n.column;let o=(e.index+i)%n.column,c=o+r;return c>n.column?(o=0,c=o+r,e.index=e.index+(n.column-o)+r):e.index=e.index+i+r,i>0?{"grid-column":`${o+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var Kr=Symbol("RollingStateKey");function hc(e){(0,t.provide)(Kr,e)}function gc(){return(0,t.inject)(Kr,null)}function Xl(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function yc(e){let n=Xl(e);if(n<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Xl(a),document.body.removeChild(a)}return n}function bc(e,n,a){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof a=="number"?a:parseInt(a);if(l<=0)return"1fr";const o=(l-(r-1)*i)/r;return o>0?`${o}px`:"1fr"}function Ur(e){const n=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?n.push(...Ur(a.children)):n.push(a)}),n}function vc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Fn(e){function n(){return Ur(e?.()??[]).filter(vc)}return{getChildren:n}}var Sc={...be,...Mr,...zr};function kc(e,n,a){return{props:Sc,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:o}=Ml({props:l,ignorePropKeys:Rr,context:r},l.prop??l.name),c=pc(i,{type:l.type}),s=qn();Pn(!0);const d=l.rollingDisplay?gc():null,h=(0,t.ref)(null),u=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?xn(i,!0).value:null),y=(G,le=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(G,!0,le)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([G,le],[U,W])=>{if(G&&U){const I=(0,t.toRaw)(U),D=(0,t.toRaw)(G),L=D?Reflect.ownKeys(D):[];(I?Reflect.ownKeys(I):[]).forEach(J=>{L.includes(J)||(D[J]=[])}),y(D)}if(le&&W){const I=(0,t.toRaw)(W),D=(0,t.toRaw)(le),L=D?Reflect.ownKeys(D):[];(I?Reflect.ownKeys(I):[]).forEach(J=>{L.includes(J)||(D[J]=[])}),y(D,!0)}},{deep:!0});const A=e,k=(0,t.computed)(()=>{const G={};if(G.height=z.value,l.width)l.width!=="auto"&&(G.width=he(l.width));else{const le=s?Mn(i,!0):null;if(p.value&&le){if(p.value.type==="grid"){const U=Rn(le,p.value,l.span,l.offset);Object.assign(G,U)}else if(p.value.type==="flow"){const U=zn(le,p.value,l.span,l.offset,l.width);Object.assign(G,U)}}}return G}),w=(0,t.computed)(()=>{const G=c.layout.value.type;return G==="grid"||G==="flow"?{[`${A}--${G}`]:!0,[`${A}--${G}-justify-${l.justify}`]:!0,[`${A}--${G}-align-${l.align}`]:!0,[`${A}--gutter`]:!0}:{[`${A}--${G}`]:!0,[`${A}--gutter`]:!0}}),v=(0,t.computed)(()=>{if(c.layout.value.type==="grid"){let G="";if(l.columnWidth)G=`repeat(auto-fill, ${l.columnWidth})`;else{const le=bc(E.value,c.layout.value.column,c.layout.value.gutter);G=`repeat(${c.layout.value.column}, ${le})`}return{"column-gap":`${c.layout.value.gutter}px`,"grid-template-columns":G}}}),f=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),S=(0,t.computed)(()=>s||u.value?!0:ke(l.isWrap)),B=[],g=G=>{B.push(G)},b=()=>{let G=B.length;B.splice(0,G)},E=(0,t.ref)(-1),V=G=>{const le=Dn(G).width;le>0&&le!==E.value&&(E.value=le)};Yl(i,E.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([E,m,f],([G,le,U])=>{c.order.index=0,Yl(i,G,le,U,!1,l.minItemWidth,l.maxItemWidth,l.type)});const N=(0,t.computed)(()=>x.value?l.expandText??"":l.collapseText??""),C=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),M=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),j=(0,t.ref)(),$=(0,t.ref)(),z=(0,t.computed)(()=>F.value||he(l.height)||""),x=(0,t.ref)(!1),F=(0,t.ref)(""),R=(0,t.ref)(!1);let X=-1;const P=(G,le=!0)=>{const U=j.value;if(U&&x.value!==G){if(X=X<=0?yc(U):X,R.value=!0,le)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",G||(F.value="",R.value=!1)},G){let W=0;l.collapseHeight?W=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(W=$.value.offsetHeight),F.value=`${X}px`,(0,t.nextTick)(()=>{F.value=`${W}px`})}else F.value=`${X}px`;else if(G){let W=0;l.collapseHeight?W=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(W=$.value.offsetHeight),F.value=`${W}px`}else R.value=!1,F.value=`${X}px`;x.value=G,r.emit("update:collapse",G)}};(0,t.watch)(()=>l.collapse,G=>{P(G)});const _=G=>{r.emit("header-click",G)},te=()=>{oe()},oe=G=>{G=G??!x.value,P(G)};o({toggleCollapse:oe,doLayout:()=>{B[0]&&(V(B[0]),Yl(i,E.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Z=null,O=!0;const ne=G=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!_e&&(G&&P(ke(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const le=B[0];if(V(le),window.ResizeObserver){const U=Pe(()=>V(le),120);Z=new window.ResizeObserver(U),Z.observe(le)}}},H=()=>{Z?.disconnect(),Z=null},q=!u.value||d?.acquire();q&&(h.value=u.value?!0:null),(0,t.onMounted)(()=>{if(q&&(ne(O),O=!1),u.value&&d){let G=null,le=d.initialHeight;d.observe(j.value,U=>{if(U!==h.value)if(U)h.value=!0,x.value||(F.value=""),G=setTimeout(()=>{G=null,h.value!==!1&&(ne(O),O=!1)},100);else{if(G!==null&&clearTimeout(G),h.value=!1,!x.value)if(O)F.value=d.initialHeight;else{let W=Xl(j.value);W<=0?F.value=le:(F.value=`${W}px`,le=F.value)}O||H()}})}}),(0,t.onUnmounted)(()=>{Z?.disconnect(),d&&d.unobserve(j.value)});const K=(G="right")=>{const le=[];if(N.value){const I=(0,t.h)("span",{class:C.value},[N.value]);le.push(I)}const U={class:M.value},W=(0,t.h)(l.collapseIcon??a,U);return le.push(W),le.length>0?(0,t.h)("div",{class:{[`${A}__header-collapse`]:!0,[`is-${G}`]:!0},onClick:te},le):null},Y=(G,le,U,W)=>{const I={...w.value};if(le===0&&(I[`${A}__first`]=!0),U>=W-1&&(I[`${A}__last`]=!0),S.value===!1){const D=r.attrs.class;D&&(I[`${D}`]=!0)}return(0,t.h)("div",{ref:g,key:`${le}`,class:I,style:v.value},G)};return()=>{const G=l.prop??l.name;if(u.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:j,prop:G,class:{[`${A}`]:!0,"is-collapse":R.value},style:k.value},[]);c.order.index=0;const le=[];let U=0;if(r.slots.header){const L=(0,t.h)("div",{key:`${U++}`,ref:$,class:{[`${A}__header`]:!0,[`${A}__first`]:!0},onClick:_},[r.slots.header()]);le.push(L)}else{const L=[],J=l.collapsePosition==="left";if(J&&l.showCollapse){const ae=K("left");ae&&L.push(ae)}if(l.title||r.slots.title){if(l.showMark){const ae={class:{[`${A}__header-mark`]:!0}};l.markColor&&(ae.style={background:l.markColor});const se=(0,t.h)("div",ae);L.push(se)}if(r.slots.title){const ae=(0,t.h)("div",{class:{[`${A}__header-title`]:!0}},[r.slots.title()]);L.push(ae)}else if(l.title){const ae=(0,t.h)("div",{class:{[`${A}__header-title`]:!0}},[l.title]);L.push(ae)}}if(r.slots.toolbar&&L.push(r.slots.toolbar()),!J&&l.showCollapse){const ae=K("right");ae&&L.push(ae)}if(L.length>0){const ae=(0,t.h)("div",{key:`${U++}`,ref:$,class:{[`${A}__header`]:!0,[`${A}__first`]:!0},onClick:_},L);le.push(ae)}}b();const{getChildren:W}=Fn(r.slots.default),I=W(),D=c.layout.value.type;if(D==="grid"){const L=Y(I,U++,0,I.length);le.push(L)}else if(D==="flow"){const L=Y(I,U++,0,I.length);le.push(L)}else for(let L=0;L<I.length;L++){const J=I[L],ae=Y([J],U++,L,I.length);le.push(ae)}return S.value?(0,t.h)(l.tag||"div",{ref:j,prop:G,class:{[`${A}`]:!0,"is-collapse":R.value},style:k.value},[le]):le}}}}var{componentName:wc,create:Cc,scope:Nc}=ee("group"),Ac=Cc(kc(wc,Nc,re.RectUp)),Ql=Ac;function Bc(e){return e===window}var Tc=/matrix\((.+)\)/,Gl=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Bc(n))return{x:0,y:0};let a=0,l=0,r=n;for(;r!==null;)a+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,o=0,c=0,s=0;for(r=n;r!==document;){o+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const h=Tc.exec(d);if(h){let u=h[1].split(/\s*,\s*/);u.length==6&&(c+=Number(u[4]),s+=Number(u[5]))}}r=r.parentNode}return a-=i,l-=o,a+=c,l+=s,{x:a,y:l}},Vc=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},Ec=class{monitorRegister=new WeakMap;watch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let r=this.monitorRegister.get(a);r||(r=new Vc,a.addEventListener("scroll",r.listen),a===document.body&&a.addEventListener("resize",r.listen),this.monitorRegister.set(a,r)),r.add(n),a=a.parentNode}}unwatch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let r=this.monitorRegister.get(a);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",r.listen),a===document.body&&a.removeEventListener("resize",r.listen))),a=a.parentNode}}},Kt=new Ec,Hr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:$c,create:Dc}=ee("price"),Ic=Dc({props:{...Hr},setup(e){const n=(0,t.computed)(()=>({[$c]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>we(e.price)==0?"":mn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:a,intText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(0,i)}),decimalText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(i+1)})}}}),ie=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},qc=["innerHTML"],Pc=["innerHTML"];function xc(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,qc)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Pc)):(0,t.createCommentVNode)("",!0)],2)}var Ln=ie(Ic,[["render",xc]]),{componentName:_l,create:Mc}=ee("hint-text"),zc=Mc({components:{Price:Ln},props:{...Hr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),r=(0,t.ref)(0),i=(0,t.ref)(0),o=(0,t.ref)(e.placement),c=(0,t.ref)(!1),s=(0,t.ref)(null),d=(C,M,j,$,z,x)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,R=document.documentElement.clientHeight||document.body.clientHeight,X=C.split("-");let P=[];X[0]==="top"?P=["top","bottom","right","left"]:X[0]==="bottom"?P=["bottom","top","right","left"]:X[0]==="left"?P=["left","top","bottom","right"]:X[0]==="right"&&(P=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},te=[];for(let oe=0;oe<P.length;oe++){const Q=P[oe];if(te[0]=Q,X[1]&&(te[1]=X[1]),Q==="top"){const Z=M.y-x-e.arrowSize-e.offset;if(Z>=0){_.top=Z;let O=0;X[1]==="start"?O=M.x:X[1]==="end"?O=M.x+j-z:O=M.x+j/2-z/2;const ne=F-O-z;ne<0?(O+=ne,u.value=-ne):u.value=0,_.left=O<0?0:O;break}}else if(Q==="bottom"){const Z=M.y+$+e.arrowSize+e.offset;if(Z+x<=R){_.top=Z;let O=0;X[1]==="start"?O=M.x:X[1]==="end"?O=M.x+j-z:O=M.x+j/2-z/2;const ne=F-O-z;ne<0?(O+=ne,u.value=-ne):u.value=0,_.left=O<0?0:O;break}}else if(Q==="left"){const Z=M.x-z-e.arrowSize-e.offset;if(Z>=0){_.left=Z;let O=0;X[1]==="start"?O=M.y:X[1]==="end"?O=M.y+$-x:O=M.y+$/2-x/2,_.top=O<0?0:O;break}}else if(Q==="right"){const Z=M.x+j+e.arrowSize+e.offset;if(Z+z<=F){_.left=Z;let O=0;X[1]==="start"?O=M.y:X[1]==="end"?O=M.y+$-x:O=M.y+$/2-x/2,_.top=O<0?0:O;break}}}return{bestPlacement:te.join("-"),bestInsetRect:_}},h=(C,M,j=10)=>{if(!_e||M===!1||!C)return;l.value=Gl(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const $=s.value.offsetHeight,z=s.value.offsetWidth,{bestPlacement:x,bestInsetRect:F}=d(e.placement,l.value,r.value,i.value,z,$);o.value=x,a.value=F,c.value=!0},u=(0,t.ref)(0),p=Pe(()=>{h(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,C=>{y.value=C});const A=(0,t.computed)(()=>y.value&&k.value),k=(0,t.ref)(!0),w=Pe(C=>{const M=C[0];M&&(k.value=M.isIntersecting)},10),v=new IntersectionObserver(w);(0,t.watch)([()=>e.message,()=>e.visible],([C,M])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Kt.watch(e.reference,p),v.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,p),v.unobserve(e.reference),v.disconnect()});const f=(0,t.computed)(()=>{const C={[_l]:!0};return o.value.startsWith("top")?C["is-top"]=!0:o.value.startsWith("right")?C["is-right"]=!0:o.value.startsWith("bottom")?C["is-bottom"]=!0:o.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),m=(0,t.computed)(()=>{const C={};return a.value.top!==null&&(C.top=`${a.value.top}px`),a.value.right!==null&&(C.right=`${a.value.right}px`),a.value.bottom!==null&&(C.bottom=`${a.value.bottom}px`),a.value.left!==null&&(C.left=`${a.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`),C["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,c.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),S=(0,t.computed)(()=>{const C=[`${_l}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),B=(0,t.computed)(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),g=(0,t.computed)(()=>({[`${_l}__arrow`]:!0})),b=(0,t.computed)(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,o.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):o.value==="top-start"?(C.left=`${e.arrowOffset+u.value}px`,C.bottom=`-${e.arrowSize}px`):o.value==="top-end"?(C.right=`${e.arrowOffset-u.value}px`,C.bottom=`-${e.arrowSize}px`):o.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):o.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):o.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):o.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):o.value==="bottom-start"?(C.left=`${e.arrowOffset+u.value}px`,C.top=`-${e.arrowSize}px`):o.value==="bottom-end"?(C.right=`${e.arrowOffset-u.value}px`,C.top=`-${e.arrowSize}px`):o.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):o.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):o.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),E=(0,t.computed)(()=>A.value&&e.closeOnClick),V=(0,t.computed)(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:A,tipRef:s,classes:f,styles:m,textClasses:S,textStyles:B,arrowClasses:g,arrowStyles:b,overlayShow:E,overlayStyle:V,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),Rc=["innerHTML"];function Fc(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Rc))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var jr=ie(zc,[["render",Fc]]),On=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Zl={},Lc=new On,yt=new Map,Kn=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of yt.keys()){const a=document.getElementById(n);a&&((0,t.render)(null,a),a.parentNode?.removeChild(a))}yt.clear()}},Oc=e=>{e.unmount=Kn;const n=document.getElementById(e.id);if(n){const a=yt.get(e.id);a?e={...Zl,...a,...e}:e={...Zl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(jr,e),n)}return e.id},Kc=e=>{e.unmount=Kn;let n=e.id??`hinttext_${Lc.get()}`;e={...Zl,...e},e.id=n,yt.set(n,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(jr,e),a),document.body.appendChild(a),n},Uc=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),bt={show(e,n,a={},l=!0){if(!Uc(n))return;const r=a.id;return r&&yt.has(r)?Oc({...a,message:n,reference:e}):(l&&Kn(),Kc({...a,message:n,reference:e}))},hide(e){Kn(e)},install(e){e.config.globalProperties.$hintText=bt}};function Hc(e,n,a,l=!1){return{inheritAttrs:!0,props:{...be,...Se},emits:["appear","disappear"],setup(r,i){const o=r.prop??i.attrs.name,c=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return c.value}},o),d=tt(),h=qn();Pn(!1);const u=(0,t.computed)(()=>h&&d?xn(d,!1).value:null),p=e,y=(0,t.ref)(null),A=(0,t.computed)(()=>{const D={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:ke(r.hasBorder)};if(D[r.errorMarkClass]=!!R.value,D[r.warnMarkClass]=!!x.value,D[r.infoMarkClass]=!!$.value,typeof y.value=="function"){const L=y.value(o);D[L]=!0}else if(typeof y.value=="string"){const L=y.value;D[L]=!0}return D}),k=(0,t.ref)(null),w=(0,t.computed)(()=>{const D={};if(r.width)r.width!=="auto"&&(D.width=he(r.width));else{const L=h&&d?Mn(d,!1):null;if(u.value&&L){if(u.value.type==="grid"){const J=Rn(L,u.value,r.span,r.offset);Object.assign(D,J)}else if(u.value.type==="flow"){const J=zn(L,u.value,r.span,r.offset,r.width);Object.assign(D,J)}}}if(typeof k.value=="function"){const L=k.value(o);L&&Object.assign(D,L)}else if(k.value&&typeof k.value=="object"){const L=k.value;Object.assign(D,L)}return D}),v=(0,t.ref)(null),f=(0,t.computed)({get:()=>v.value??ke(r.isRequired),set:D=>{v.value=D}}),m=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",S=Te((0,t.toRef)(r,"labelPosition"),"labelPosition",Ll.Near),B=(0,t.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),g=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${B.value}`]:!0})),b=(0,t.computed)(()=>({label:!0,[`label--${B.value}`]:!0})),E=Te((0,t.toRef)(r,"labelWidth"),"labelWidth",Ll.Near),V=(0,t.computed)(()=>E&&E.value?{width:he(E.value)}:{}),N=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),C=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),M=(0,t.computed)(()=>({...r.contentStyle})),j=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(D){f.value=D},setErrorTip(D){j.errorTip=D},setErrorIcon(D){j.errorIcon=D},setWarnTip(D){j.warnTip=D},setWarnIcon(D){j.warnIcon=D},setInfoTip(D){j.infoTip=D},setInfoIcon(D){j.infoIcon=D},setCustomClassName(D){y.value=D},setCustomStyle(D){k.value=D}});const $=(0,t.computed)(()=>r.infoTip||j.infoTip),z=(0,t.computed)(()=>r.infoIcon||j.infoIcon),x=(0,t.computed)(()=>r.warnTip||j.warnTip),F=(0,t.computed)(()=>r.warnIcon||j.warnIcon),R=(0,t.computed)(()=>r.errorTip||j.errorTip),X=(0,t.computed)(()=>r.errorIcon||j.errorIcon),P=(0,t.computed)(()=>R.value?"error":x.value?"warn":$.value?"info":""),_=()=>P.value.length>0,te=(0,t.computed)(()=>P.value==="error"?R.value:P.value==="warn"?x.value:P.value==="info"?$.value:""),oe=(0,t.computed)(()=>P.value==="error"?X.value:P.value==="warn"?F.value:P.value==="info"?z.value:null),Q=(0,t.computed)(()=>{const D={[`${p}__tip`]:!0,[`${p}__tip--${P.value}`]:!0,[`${p}--animate`]:!0};return P.value==="error"&&r.errorClass?D[`${r.errorClass}`]=!0:P.value==="warn"&&r.warnClass?D[`${r.warnClass}`]=!0:P.value==="info"&&r.infoClass&&(D[`${r.infoClass}`]=!0),D}),Z=(0,t.computed)(()=>{const D={};return S&&S.value==="top"||!m()?D["padding-left"]="0px":E&&E.value&&(D["padding-left"]=he(E.value)),D}),O=(0,t.ref)();let ne="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([D,L,J,ae])=>{O.value&&(D&&!pe(L)?ne?a.show(O.value,L,{...ae,id:ne,type:J},!0):ne=a.show(O.value,L,{...ae,type:J},!0):a.hide(ne))});let H=null;const q=()=>{H||!O.value||(H=new IntersectionObserver(D=>{let L=!1;for(let J of D)if(J.intersectionRatio>0){L=!0,L&&i.emit("appear",J);break}L||i.emit("disappear")}),H.observe(O.value))},K=()=>{!H||!O.value||(H.unobserve(O.value),H=null)};(0,t.watch)(()=>ke(r.appearListen),D=>{D?q():K()}),(0,t.onMounted)(()=>{ke(r.appearListen)&&q()}),(0,t.onUnmounted)(K);const Y=()=>{if(!m())return null;const D=[],L=i.slots?.label?.()??r.label,J=(0,t.h)("div",{class:N.value},[L]);if(D.push(J),i.slots.fixedPreTip){const ae=i.slots.fixedPreTip();D.push(ae)}return(0,t.h)("div",{class:b.value,style:V.value},D)},G=()=>{const D=[];if(i.slots.prepend){const L=i.slots.prepend();D.push(L)}if(i.slots.default){const L=i.slots.default();D.push(L)}if(i.slots.append){const L=i.slots.append();D.push(L)}if(i.slots.fixedTip){const L=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);D.push(L)}return(0,t.h)("div",{ref:O,class:C.value,style:M.value},D)},le=()=>{const D=oe.value;return D?typeof D=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[D()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(D)]):null},U=()=>{const D=te.value;return D?typeof D=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[D()]):(0,t.h)("div",{class:"fox-item__tip--text"},[D]):null},W=()=>{if(!_())return null;const D=[],L=le();L&&D.push(L);const J=U();return J&&D.push(J),(0,t.h)("div",{class:Q.value,style:Z.value},D)},I=()=>i.slots?.hide?.()??null;return()=>{const D=[],L=[],J=Y();J&&L.push(J);const ae=G();ae&&L.push(ae);const se=(0,t.h)("div",{class:g.value},L);D.push(se);const fe=W();fe&&D.push(fe);const me=I();return me&&D.push(me),(0,t.h)("div",{class:A.value,style:w.value,prop:r.prop,ref:c},D)}}}}var{componentName:jc,create:Wc,scope:Yc}=ee("item"),Xc=Wc(Hc(jc,Yc,bt,!1)),Ut=Xc,Wr={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1},wrap:{type:[String],required:!1,default:"nowrap"}};function Qc(e,n){return{props:Wr,setup(a,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:a.span==="stretch",[`${r}__${a.align}`]:!0})),o=tt(),c=qn();Pn(!1);const s=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=he(a.width));else if(c&&o){const h=xn(o,!1),u=Mn(o,!1);if(h.value&&u){if(h.value.type==="grid"){const p=Rn(u,h.value,a.span,a.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=zn(u,h.value,a.span,a.offset,a.width);Object.assign(d,p)}}}return a.gutter&&(d.gap=he(a.gutter)),a.wrap&&(d["flex-wrap"]=a.wrap),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(a.divide)for(let u=0;u<h.length;u++){if(u>0){const p=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(p)}d.push(h[u])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Gc,create:_c,scope:Zc}=ee("row-item"),Jc=_c(Qc(Gc,Zc)),Un=Jc,eu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function tu(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var nu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function lu(e,n,a,l=!1){return{props:{...nu},emits:["click"],setup(r,i){const o=(0,t.ref)(null),c=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(m[`${e}--${r.type??"default"}`]=!0),r.size&&(m[`${e}--${r.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},S=r.textColor??r.color;return S&&(m.color=S),m}),d=(m,S)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const g=r.highlightFilter;m.indexOf(g)!==-1&&(S.innerHTML=m.replace(new RegExp(g,"g"),`<span>${g}</span>`),S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}else if(typeof r.highlightFilter=="function"){const g=r.highlightFilter(m);g&&(S.innerHTML=g,S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}return B},h=m=>{i.emit("click",m)};let u="";const p=()=>{const m=o.value;if(!m)return;const S=m.clientWidth;tu(m,B=>{const g=m.innerHTML??"";pe(g)||B<S||(u?a?.show(m,g,{type:"text",id:u,showArrow:r.showArrow},!0):u=a?.show(m,g,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{u&&a?.hide(u)};let A=null;const k=m=>{A||(A=setTimeout(()=>{p(),A=null},r.showAfter??0))},w=m=>{A&&(clearTimeout(A),A=null),setTimeout(()=>{y()},r.hideAfter??0)},v=()=>{const m=o.value;m&&(m.addEventListener("mouseover",k),m.addEventListener("mouseleave",w))},f=()=>{const m=o.value;m&&(m.removeEventListener("mouseover",k),m.removeEventListener("mouseleave",w))};return(0,t.onMounted)(()=>{!ke(r.showOverflowTooltip)||!a||v()}),(0,t.onBeforeUnmount)(()=>{!ke(r.showOverflowTooltip)||!a||f()}),()=>{const m={onClick:h,class:c.value,style:s.value,ref:o};let S=null;if(ke(r.numberFormat)&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const E=de(r.digits),V=de(r.decimalLength),N=ke(r.autoPadding);let C=`${g[0].children}`,M=C.split("").reverse().join("");M=mn(M,V,N,E,r.separator),C=M.split("").reverse().join(""),r.highlightFilter!==void 0&&(S=d(C,m)),S||(m.innerHTML=C,S=(0,t.h)(r.tag,m))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const E=`${g[0].children}`;S=d(E,m),S||(m.innerHTML=E,S=(0,t.h)(r.tag,m))}}}S||(S=(0,t.h)(r.tag,m,{default:i.slots.default}))}if(!r.mark&&!r.icon&&!i.slots.mark)return S;const B=[];if(i.slots.mark){const g={[`${e}__mark-wrap`]:!0};r.type&&(g[`${e}__mark-wrap--${r.type}`]=!0);const b={},E=r.color;E&&(b.color=E);const V=(0,t.h)("view",{class:g,style:b},{default:i.slots.mark});B.push(V)}else{const g={[`${e}__mark`]:!0};r.type&&(g[`${e}__mark--${r.type??"default"}`]=!0);const b={},E=r.color;E&&(b["background-color"]=E);const V=(0,t.h)("view",{class:g,style:b});B.push(V)}if(r.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});B.push(g)}return B.push(S),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},B)}}}}var{componentName:au,create:ou,scope:ru}=ee("text"),iu=ou(lu(au,ru,bt,!1)),vt=iu,su={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function cu(e,n,a=!1){return{props:{...su},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:o}){const c=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(0),u=(0,t.ref)(0),p=(0,t.ref)(l.placement),y=(0,t.ref)(!1),A=(0,t.ref)(!1),k=(0,t.ref)(null),w=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,v=(P,_,te,oe,Q,Z,O,ne=!0)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,q=document.documentElement.clientHeight||document.body.clientHeight,K=P.split("-");let Y=[];ne?K[0]==="top"?Y=["top","bottom","right","left"]:K[0]==="bottom"?Y=["bottom","top","right","left"]:K[0]==="left"?Y=["left","top","bottom","right"]:K[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[P[0]];const G={top:null,right:null,bottom:null,left:null},le=[];for(let U=0;U<Y.length;U++){const W=Y[U];if(le[0]=W,K[1]&&(le[1]=K[1]),W==="top"){const I=te-O-l.arrowSize/2-l.offset;if(I>=0){G.top=I;let D=0;K[1]==="start"?D=_:K[1]==="end"?D=_+oe-Z:D=_+oe/2-Z/2;const L=H-D-Z;L<0?(D+=L,m.value=-L):m.value=0,G.left=D<0?0:D;break}}else if(W==="bottom"){const I=te+Q+l.arrowSize/2+l.offset;if(I+O<=q){G.top=I;let D=0;K[1]==="start"?D=_:K[1]==="end"?D=_+oe-Z:D=_+oe/2-Z/2;const L=H-D-Z;L<0?(D+=L,m.value=-L):m.value=0,G.left=D<0?0:D;break}}else if(W==="left"){const I=_-Z-l.arrowSize/2-l.offset;if(I>=0){G.left=I;let D=0;K[1]==="start"?D=te:K[1]==="end"?D=te+Q-O:D=te+Q/2-O/2,G.top=D<0?0:D;break}}else if(W==="right"){const I=_+oe+l.arrowSize/2+l.offset;if(I+Z<=H){G.left=I;let D=0;K[1]==="start"?D=te:K[1]==="end"?D=te+Q-O:D=te+Q/2-O/2,G.top=D<0?0:D;break}}}return{bestPlacement:le.join("-"),bestInsetRect:G}},f=()=>{const P=l.visible,_=l.autoFit;if(!_e||P===!1)return;if(l.reference){const O=w(),ne=Gl(O);s.value=ne.x,d.value=ne.y,h.value=O.offsetWidth,u.value=O.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,u.value=l.referenceInset.bottom-l.referenceInset.top);const te=k.value.offsetWidth,oe=k.value.offsetHeight,{bestPlacement:Q,bestInsetRect:Z}=v(l.placement,s.value,d.value,h.value,u.value,te,oe,_);p.value=Q,c.value=Z},m=(0,t.ref)(0),S=Pe(()=>{f()},10),B=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([P])=>{B.value=P,P?(y.value=P,setTimeout(()=>{f(),A.value=!0},0)):A.value=!1});const g=(0,t.computed)(()=>B.value&&b.value),b=(0,t.ref)(!0),E=Pe(P=>{const _=P[0];_&&(b.value=_.isIntersecting)},10),V=new IntersectionObserver(E);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([P,_],[te,oe])=>{!P&&!_||(setTimeout(()=>{f()},0),l.autoFit&&(te&&(Kt.unwatch(te,S),V.unobserve(te)),P&&(Kt.watch(P,S),V.observe(P))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,S),V.unobserve(l.reference),V.disconnect())});const N=(0,t.computed)(()=>{const P={[e]:!0};return p.value.startsWith("top")?P["is-top"]=!0:p.value.startsWith("right")?P["is-right"]=!0:p.value.startsWith("bottom")?P["is-bottom"]=!0:p.value.startsWith("left")&&(P["is-left"]=!0),P[`is-${l.effect}`]=!0,!A.value&&g.value&&(P["is-opacity"]=!0),A.value&&g.value&&(P["is-show"]=!0),g.value||(P["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(P[`${l.customClass}`]=!0),P}),C=(0,t.computed)(()=>{const P={};return c.value.top!==null&&(P.top=`${c.value.top}px`),c.value.right!==null&&(P.right=`${c.value.right}px`),c.value.bottom!==null&&(P.bottom=`${c.value.bottom}px`),c.value.left!==null&&(P.left=`${c.value.left}px`),l.width&&(P.width=l.width),l.zIndex&&(P["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(P,l.customStyle),P}),M=()=>{B.value=!1,r("update:visible",!1)},j=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:M}):null,$=()=>{let P=null;return i.title?P=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(P=(0,t.h)("div",{class:`${e}__title`},[l.title])),P},z=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),x=(0,t.computed)(()=>{const P={};return l.showArrow?(P.width=`${l.arrowSize}px`,P.height=`${l.arrowSize}px`,p.value==="top"?(P.left="50%",P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-start"?(P.left=`${l.arrowOffset+m.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-end"?(P.right=`${l.arrowOffset-m.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="right"?(P.left="0",P.top="50%",P.transform="translate(-50%, -50%)"):p.value==="right-start"?(P.left="0",P.top=`${l.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="right-end"?(P.left="0",P.bottom=`-${l.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="bottom"?(P.left="50%",P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(P.left=`${l.arrowOffset+m.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(P.right=`${l.arrowOffset-m.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="left"?(P.right="0",P.top="50%",P.transform="translate(50%, -50%)"):p.value==="left-start"?(P.right="0",P.top=`${l.arrowOffset}px`,P.transform="translate(50%, -50%)"):p.value==="left-end"&&(P.right="0",P.bottom=`-${l.arrowOffset}px`,P.transform="translate(50%, -50%)"),P):{display:"none"}}),F=()=>(0,t.h)("div",{class:z.value,style:x.value}),R=()=>{B.value===!1&&(y.value=!1)},X=P=>{if(!k.value||B.value===!1)return;const{relatedTarget:_}=P;k.value.contains(_)||(B.value=!1,r("update:visible",!1))};return o({doLayout:f}),()=>{if(!y.value)return null;const P=[],_=j();_&&P.push(_);const te=[],oe=$();if(oe&&te.push(oe),i.default){const ne=i.default();te.push(ne)}const Q=F();Q&&te.push(Q);const Z={ref:k,class:N.value,style:C.value,onAnimationend:R};l.leaveHide&&(Z.onMouseleave=X);const O=(0,t.h)("div",Z,{default:()=>te});return P.push(O),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>P})}}}}var{componentName:uu,create:du,scope:fu}=ee("popover-dialog"),mu=du(cu(uu,fu,!1)),Hn=mu,pu={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function hu(e,n,a){return{props:{...Wr,...pu},emits:["click"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ye.useFoxI18n)(n),c=o(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(B){return B.props||{}}function u(B){return!!h(B).disabled}function p(B){return B.children??[]}const y=(0,t.ref)(),A=(0,t.computed)(()=>y.value?.$el??null),k=(0,t.ref)(!1),w=B=>{k.value=B},v=()=>{k.value=!k.value};function f(B,g){return()=>{g||(k.value=!1,h(B)?.onClick?.())}}function m(B,g){const b=p(B),E=u(B),V=f(B,E),N=[`${s}__dropdown-item`];return E&&N.push("is-disabled"),(0,t.h)("span",{class:N,onClick:V},b)}const S=B=>{const g=l.maxDisplayCount??B.length;if(g>=B.length)return B;const b=[],E=g-1;for(let j=0;j<E;j++)b.push(B[j]);const V=(i.moreIcon&&i.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(a),N=(0,t.h)(vt,{ref:j=>y.value=j,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:v},{default:()=>c.moreText.value,mark:()=>V});b.push(N);const C=[];for(let j=E;j<B.length;j++){const $=m(B[j],j);C.push($)}const M=(0,t.h)(Hn,{placement:l.dropdownPlacement,"onUpdate:visible":w,visible:k.value,reference:A.value,"custom-class":`${s}__popover`},{default:()=>C});return b.push(M),b};return()=>{const{getChildren:B}=Fn(i?.default),g=S(B());return(0,t.h)(Un,{class:d.value},{default:()=>g})}}}}var{componentName:gu,create:yu,scope:bu}=ee("buttons-item"),vu=yu(hu(gu,bu,eu)),Jl=vu,Su={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ku(e,n){return{props:Su,setup(a,l){const r=tt(),i=qn();Pn(!1);const o=(0,t.computed)(()=>i&&r?xn(r,!1).value:null),c=e,s=(0,t.computed)(()=>({[c]:!0,[`${c}__gutter`]:o.value&&o.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(a.width)a.width!=="auto"&&(h.width=he(a.width));else{const u=i&&r?Mn(r,!1):null;if(o.value&&u){if(o.value.type==="grid"){const p=Rn(u,o.value,a.span,a.offset);Object.assign(h,p)}else if(o.value.type==="flow"){const p=zn(u,o.value,a.span,a.offset,a.width);Object.assign(h,p)}}}return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",h,l.slots.default()):(0,t.h)("div",h)}}}}var{componentName:wu,create:Cu,scope:Nu}=ee("slot-item"),Au=Cu(ku(wu,Nu)),ea=Au;function Ie(e,n={}){return(0,t.h)(Ut,e,n)}function Bu(e,n,a,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const o=[],c=n[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[r]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],u=s.find(p=>p[l]===h);if(!u)break;o.push(u[a])}return o}if(Array.isArray(c))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const u=d.find(p=>p[l]===h);if(!u)break;o.push(u[a])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],u=s.find(p=>p[l]===h);if(!u)break;o.push(u[a]),s=u[r]}}return o}var Tu=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=lt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function Vu(){return new Tu(st())}var Eu={tag:{type:[String,Object],required:!1,default:"span"},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],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}};function $u(e,n,a=!1){return{props:Eu,setup(l,{attrs:r,slots:i}){const o=Vu(),c=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{c.value=await o.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(c.value)||c.value.length===0)return l.emptyText;let d=Bu(l.modelValue,c.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...r};if(i.default)return i.default({text:s.value,value:l.modelValue});const h=l.tag??"span";return typeof h=="object"?(0,t.h)(h,d,{default:()=>s.value}):(0,t.h)(h,d,[s.value])}}}}var{componentName:Du,create:Iu,scope:qu}=ee("mapping"),Pu=Iu($u(Du,qu,!1)),jn=Pu;function Me(e,n,a,l,r){const i="fox-browse-item";let o=null;a?o=(0,t.h)(jn,{class:[`${i}__mapping`],source:a,modelValue:e,separator:l,emptyText:r},{default:s=>(0,t.h)(vt,{class:[`${i}__text`]},{default:()=>s.text})}):o=(0,t.h)(vt,{class:[`${i}__text`]},{default:()=>e});const c={label:n.default,default:()=>o};return(0,t.h)(Ut,{class:[i]},c)}var Yr={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}},xu={...be,...Se,...Yr};function Mu(e,n,a,l,r){return{props:xu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:A}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),{toLocaleRefs:k}=(0,ye.useFoxI18n)(n),w=k(i,["placeholder"]),v=(0,t.ref)(!1),f=xe(i,"modelValue",null,y),m=e,S=(0,t.computed)(()=>({[m]:!0,"is-disabled":d.value,"is-readonly":u.value})),B=Te((0,t.computed)(()=>i.textAlign),"textAlign"),g=(0,t.computed)(()=>{const _={};return B.value&&(_["text-align"]=B.value),_}),b=_=>{let te=_.target.value;i.type==="digit"&&(te=Il(te,!0)),i.type==="number"&&(te=Il(te,!1)),i.maxLength&&te.length>Number(i.maxLength)&&(te=te.slice(0,Number(i.maxLength))),f.value=te,y("update:modelValue",te,_),y("change",te,_)};let E=xe(i,"hintText"),V=(0,t.ref)(!1);const N=_=>{let te=_.target.value;v.value=!0,pe(E.value)||(V.value=!0),y("focus",te,_)},C=_=>{setTimeout(()=>{V.value&&(V.value=!1),v.value=!1},0);let te=_.target.value;i.maxLength&&te.length>Number(i.maxLength)&&(te=te.slice(0,Number(i.maxLength))),y("blur",te,_)},M=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),j=(0,t.computed)(()=>{const _={};return o.slots.append&&!$.value&&!X.value&&(_.display="none"),_}),$=(0,t.computed)(()=>we(i.unit)>0),z=(0,t.computed)(()=>!X.value),x=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!z.value})),F=_=>{f.value="",y("update:modelValue","",_),y("change","",_),y("clear","")},R=(0,t.computed)(()=>ke(i.clearable)&&!d.value&&!u.value),X=(0,t.computed)(()=>{let _=we(f.value)>0;return ke(i.clearable)&&_&&v.value}),P=(0,t.computed)(()=>({action:!0,hidden:!X.value}));return A({setDisabled:_=>{s.value=_},setReadonly:_=>{h.value=_}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(f.value,o.slots);const _={class:S.value,style:g.value,type:i.type,maxlength:i.maxLength,placeholder:w.placeholder.value,disabled:d.value,readonly:u.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:b,onFocus:N,onBlur:C},te=[],oe=(0,t.h)("input",_);te.push(oe);const Q=[];if(R.value){const H=(0,t.h)(r,{class:["action-icon"]}),q=(0,t.h)("view",{class:P.value,onClick:F},{default:()=>[H]});Q.push(q)}if($.value){const H=(0,t.h)("view",{class:x.value},[i.unit]);Q.push(H)}const Z=(0,t.h)("view",{class:M.value,style:j.value},{default:()=>Q});te.push(Z);const O={default:()=>te};O.label=o.slots.default,O.prepend=o.slots.prepend,O.append=o.slots.append,O.fixedPreTip=o.slots.fixedPreTip,O.fixedTip=o.slots.fixedTip;const ne={...Ze(i,Yr),ref:c,hintText:E.value,hintVisible:V.value};return i.prop&&(ne.prop=`${i.prop}_item`),a(ne,O)}}}}var{componentName:zu,create:Ru,scope:Fu}=ee("input-item"),Lu=Ru(Mu(zu,Fu,Ie,Me,re.CircleClose)),ta=Lu;function Xr(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let r=l;for(let i=a.length-1;i>=l;i--)if(a.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>a.length?a=a.padEnd(r,"0"):a=a.substring(0,r),a}function Qr(e,n,a=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Xr(lr(`${e}`,`${n}`)):Xr(Bl(`${e}`,ar(`${n}`),20))}function Ou(e,n=-1,a=!1,l=3,r=","){return mn(e,de(n),a,l,r)}function Gr(e,n,a,l,r=!0){if(e==="")return"";if(e=or(e),n=de(n),n==1)return e;if(l)e=Qr(e,n),a&&(e=="0"&&r?e=`${e}.`.padEnd(de(a)+2,"0"):e=Bl(e,1,de(a)));else{let i=-1*n;e=Qr(e,i)}return e}function _r(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ke(n.minInclude),r=Tl(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",n.min),a.minValid=!1)}if(n.max!=null){let l=ke(n.maxInclude),r=Tl(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(a.maxValid=!1)}return a}var Zr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},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},maxLength:{type:[String,Number]}},Ku={...be,...Se,...Zr};function Uu(e,n,a,l,r){return{props:Ku,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:A}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=(0,t.ref)(!1),w=xe(i,"modelValue",null,y),v=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>i.rates,()=>i.precision],([O,ne,H])=>{if(pe(O)){v.value="";return}const q=Gr(O,ne,H,!1);v.value!==q&&(v.value=q)},{immediate:!0});const f=(0,t.computed)(()=>{let O="";return k.value&&(O=v.value),O}),{t:m}=(0,ye.useFoxI18n)(n),S=(0,t.computed)(()=>{let O=i.placeholder??"";return!k.value&&!pe(v.value)?O=Ou(v.value,i.decimalLength,i.autoPadding,i.digits,i.separator):O=pe(O)?m(["placeholder"]):O,O}),B=e,g=(0,t.computed)(()=>({[B]:!0,[`${B}__placeholder`]:v.value.length>0,"is-disabled":d.value,"is-readonly":u.value})),b=Te((0,t.computed)(()=>i.textAlign),"textAlign"),E=(0,t.computed)(()=>{const O={};return b.value&&(O["text-align"]=b.value),O}),V=(0,t.ref)(""),N=(0,t.computed)(()=>{let O=V.value;return pe(O)&&(O=i.errorTip??""),O}),C=(0,t.ref)(""),M=(0,t.ref)(!1),j=O=>{let ne=O.target.value;if(pe(ne)){v.value="",w.value="",y("update:modelValue","",O),y("change","",O),ke(i.showTip)&&M.value&&(M.value=!1);return}if(ne.length>=2){let H=ne;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){(0,t.triggerRef)(v);return}}if(ne!="-"){if(!yn(ne)){(0,t.triggerRef)(v);return}if(i.integerLength!=-1&&fr(ne)>Number(i.integerLength)){(0,t.triggerRef)(v);return}if(i.decimalLength&&i.decimalLength!=-1&&mr(ne)>Number(i.decimalLength)){(0,t.triggerRef)(v);return}let H=_r(ne,i);if(H.maxValid===!1){V.value=H.message,(0,t.triggerRef)(v);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(v);return}C.value=ne,ke(i.showTip)&&(M.value=ne.length>0),v.value=ne,w.value=Gr(ne,i.rates,i.precision,!0),y("update:modelValue",w.value,O),y("change",w.value,O)},$=O=>{if(k.value=!0,ke(i.showTip)){let ne=v.value;pe(ne)&&(ne=i.hintText),pe(ne)||(C.value=ne,M.value=!0)}V.value="",y("focus",w.value,O)},z=O=>{if(setTimeout(()=>{k.value=!1,ke(i.showTip)&&M.value===!0&&(M.value=!1)},0),!pe(v.value)){let ne=_r(v.value,i);if(ne.minValid===!1||ne.maxValid===!1){V.value=ne.message;return}}y("update:modelValue",w.value,O),y("blur",w.value,O)},x=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),F=(0,t.computed)(()=>{const O={};return o.slots.append&&!R.value&&!oe.value&&(O.display="none"),O}),R=(0,t.computed)(()=>we(i.unit)>0),X=(0,t.computed)(()=>!oe.value),P=(0,t.computed)(()=>({[`${B}__unit`]:!0,hidden:!X.value})),_=O=>{w.value="",y("update:modelValue","",O),y("change","",O),y("clear","")},te=(0,t.computed)(()=>ke(i.clearable)&&!d.value&&!u.value),oe=(0,t.computed)(()=>{let O=we(w.value)>0;return ke(i.clearable)&&O&&k.value}),Q=(0,t.computed)(()=>({action:!0,hidden:!oe.value}));A({setDisabled:O=>{s.value=O},setReadonly:O=>{h.value=O}});const Z=()=>w.value?S.value:w.value;return()=>{if(p.value==="on"&&(u.value||d.value))return l(Z(),o.slots);let O={class:g.value,style:E.value,type:"digit",maxlength:i.maxLength,placeholder:S.value,disabled:d.value,readonly:u.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:j,onFocus:$,onBlur:z},ne=[],H=(0,t.h)("input",O);ne.push(H);let q=[];if(te.value){const le=(0,t.h)(r,{class:["action-icon"]}),U=(0,t.h)("view",{class:Q.value,onClick:_},{default:()=>[le]});q.push(U)}if(R.value){const le=(0,t.h)("view",{class:P.value},[i.unit]);q.push(le)}const K=(0,t.h)("view",{class:x.value,style:F.value},{default:()=>q});ne.push(K);const Y={default:()=>ne};Y.label=o.slots.default,Y.prepend=o.slots.prepend,Y.append=o.slots.append,Y.fixedPreTip=o.slots.fixedPreTip,Y.fixedTip=o.slots.fixedTip;const G={...Ze(i,Zr),ref:c,errorTip:N.value,hintText:C.value,hintVisible:M.value,hintType:"number"};return i.prop&&(G.prop=`${i.prop}_item`),a(G,Y)}}}}var{componentName:Hu,create:ju,scope:Wu}=ee("money-item"),Yu=ju(Uu(Hu,Wu,Ie,Me,re.CircleClose)),na=Yu,la={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:Xu,create:Qu,scope:Gu}=ee("textarea"),_u=Qu({props:{...la},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=(0,ye.useFoxI18n)(Gu);const l=a(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Xu;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(c)});const o=(0,t.computed)(()=>({textAlign:e.textAlign})),c=()=>{let p=r.value;p.style.height="auto";let y=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:A,minHeight:k}=e.autosize;A!==void 0&&(y=Math.min(y,A)),k!==void 0&&(y=Math.max(y,k))}y&&(console.info("----------- height",y),p.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(c)});const s=(p,y)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,y),n("change",p,y)};return{...l,textareaRef:r,classes:i,styles:o,change:p=>{const y=p.target;s(y.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let y=p.target.value;s(y,p),n("blur",{value:y,event:p})}}}}),Zu=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Ju={key:0,class:"fox-textarea__limit"};function ed(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...o)=>e.change&&e.change(...o)),onBlur:n[1]||(n[1]=(...o)=>e.blur&&e.blur(...o)),onFocus:n[2]||(n[2]=(...o)=>e.focus&&e.focus(...o)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Zu),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ju,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Wn=ie(_u,[["render",ed]]);function td(e,n,a,l,r){return{props:{...be,...Se,...la},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),A=xe(i,"modelValue",null,y),k=S=>{A.value=S,y("update:modelValue",S,{}),y("change",S,{})};let w=xe(i,"hintText"),v=(0,t.ref)(!1);const f=S=>{pe(w.value)||(v.value=!0),y("focus",A.value,S)},m=S=>{setTimeout(()=>{v.value&&(v.value=!1)},0),y("blur",A.value,S)};return()=>{if(p.value==="on"&&(u.value||d.value))return l(A.value,o.slots);const S={...ve(i,la),disabled:d.value,readonly:u.value,value:A.value,"onUpdate:modelValue":k,onFocus:f,onBlur:m},B=[],g=(0,t.h)(r,S);B.push(g);const b={default:()=>B};b.label=o.slots.default,b.prepend=o.slots.prepend,b.append=o.slots.append,b.fixedPreTip=o.slots.fixedPreTip,b.fixedTip=o.slots.fixedTip;const E={...ve(i,Se,be),ref:c};return i.prop&&(E.prop=`${i.prop}_item`),a(E,b)}}}}var{componentName:nd,create:ld,scope:ad}=ee("textarea-item"),od=ld(td(nd,ad,Ie,Me,Wn)),aa=od;function rd(e){return e===window}var qe=e=>{const n=(0,t.unref)(e);if(rd(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Jr=10;function ei(e,n){return e>n&&e>Jr?"horizontal":n>e&&n>Jr?"vertical":""}function Yn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Xn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(o=>{if(o.touches){const c=o.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const c=o;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ei(e.offsetX,e.offsetY))}),start:(o=>{if(l(),o.touches){const c=o.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const c=o;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:a,state:e}}function at(){const e=(0,t.ref)(0),n=(0,t.ref)(0),a=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),o=(0,t.ref)(0),c=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),u=()=>h.value==="vertical",p=()=>h.value==="horizontal",y=()=>{o.value=0,c.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:(w=>{if(w.touches){const v=w.touches[0];o.value=v.clientX-e.value,c.value=v.clientY-n.value,r.value=v.clientX,i.value=v.clientY}else{const v=w;o.value=v.clientX-e.value,c.value=v.clientY-n.value,r.value=v.clientX,i.value=v.clientY}s.value=Math.abs(o.value),d.value=Math.abs(c.value),l.value=Date.now()-a.value,h.value||(h.value=ei(s.value,d.value))}),start:(w=>{if(y(),w.touches){const v=w.touches[0];e.value=v.clientX,n.value=v.clientY}else{const v=w;e.value=v.clientX,n.value=v.clientY}a.value=Date.now()}),reset:y,startX:e,startY:n,startTime:a,duration:l,moveX:r,moveY:i,deltaX:o,deltaY:c,offsetX:s,offsetY:d,direction:h,isVertical:u,isHorizontal:p}}var id=2e3,ti=()=>id++,ot={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},sd=(e,n)=>({components:n,props:{...ot},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(r.zIndex=ti());const i=(0,t.computed)(()=>{const k=e,w=[k,`${k}--${a.position}`];return a.round&&w.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&w.push(`${k}--${a.position}--safebottom`),typeof a.popClass=="string"?w.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(v=>{w.push(v)}),w}),o=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{l("update:visible",!0),a.zIndex?r.zIndex=a.zIndex:r.zIndex=ti(),a.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+a.duration*1e3)},h=k=>{l("click-pop",k)},u=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),a.closeOnClickOverlay&&l("update:visible",!1)},y=k=>{l("opend",k)},A=k=>{l("closed",k)};return(0,t.watch)(()=>a.visible,k=>{a.visible?s():d()}),(0,t.watch)(()=>a.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:o,transitionName:c,classes:i,onClick:h,onClickCloseIcon:u,onClickOverlay:p,onOpened:y,onClosed:A}}}),ni={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},oa={...ot,...ni,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},li=36;function cd(){return li}function ud(e){li=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ra(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function dd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ai(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var fd=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function md(){return new fd(st())}function oi(e,n,a){return!(Oe(e,n)!==Oe(e,a)||ct(e,n)!==ct(e,a))}function pd(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let o=0;o<n.length&&o<a.length;o++){const c=n[o];let s=a[o].findIndex(d=>{if(i==="text")return Oe(e,d)===c;if(i==="value"){let h=ct(e,d);return h==null&&(h=Oe(e,d)),h===c}else if(i==="item")return oi(e,d,c)});if(s==-1)break;r.push(s)}else{let o=a[0];for(let c=0;c<n.length;c++){const s=n[c];let d=o.findIndex(u=>{if(i==="text")return Oe(e,u)===s;if(i==="value"){let p=ct(e,u);return p==null&&(p=Oe(e,u)),p===s}else if(i==="item")return oi(e,u,s)});if(d==-1)break;r.push(d);const h=ra(e,o[d]);if(!Array.isArray(h))break;o=h}}return r}function ri(e,n,a,l){if(a.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let o=0;o<n.length&&o<a.length;o++){const c=a[o];let s=n[o];s<0&&s>=c.length&&(s=0);const d=c[s],h=Oe(e,d);if(r.texts.push(h),r.items.push(d),i==="text")r.values.push(h);else if(i==="value"){let u=ct(e,d);u==null&&(u=h),r.values.push(u)}else r.values.push(d)}else{let o=a[0];for(let c=0;c<n.length;c++){let s=n[c];s<0&&s>=o.length&&(s=0);const d=o[s],h=Object.assign({},d);h.children=null;const u=Oe(e,d);if(r.texts.push(u),r.items.push(h),i==="text")r.values.push(u);else if(i==="value"){let p=ct(e,d);p==null&&(p=u),r.values.push(p)}else r.values.push(h);if(!Array.isArray(d.children))break;o=d.children}}return r}function ii(e){return{text:e,value:e}}var hd=15,gd=300,yd=200,{create:bd}=ee("picker-column");function vd(e){e.stopPropagation()}function Sd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&vd(e)}var kd={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...ni},wd=bd({props:kd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),o=b=>{const E=b+1;return E>=u.currIndex+8||E<=u.currIndex-8},c=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${i.value}px`})),s=b=>{const E=b+1;return`transform: rotate3d(1, 0, 0, ${-u.rotation*E}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+i.value}px, 0)`})),h=(0,t.ref)(null),u=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=b=>Oe(e,b),y=b=>ct(e,b),A=at(),k=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},w=(b,E=!1,V=!1)=>{if(u.currIndex=b,E){const N=()=>{u.moving=!1,n("update:modelValue",b),n("change",b)};V?u.transitionEndTrigger=N:N()}},v=(b,E,V)=>{let N=b+u.startDistance;if(E==="end"){const C=-(e.source.length-1)*e.itemHeight;N<C&&(N=C),N>0&&(N=0);let M=Math.abs(Math.round(-N/e.itemHeight));const j=-M*e.itemHeight,$=`${(M+1)*u.rotation}deg`;w(M,!0,V?V>0:!1),f(j,E,V,$)}else{let C=(-N/e.itemHeight+1)*u.rotation;const M=(e.source.length+1)*u.rotation,j=0;if(C=Math.min(Math.max(C,j),M),e.threeDimensional&&(C<j||C>M))return;f(N,null,void 0,`${C}deg`)}},f=(b=0,E,V=yd,N)=>{E==="end"?u.scrollTime=V:u.scrollTime=0,u.deg=N,u.scrollDistance=b},m=(b,E)=>(b=Math.abs(b/E)/.003*(b<0?-1:1),b),S=b=>{e.readonly||(u.startDistance=u.scrollDistance,A.start(b),u.transitionEndTrigger=null)},B=b=>{e.readonly||(u.moving=!0,A.move(b),A.isVertical()&&(u.moving=!0,Sd(b,!0)),v(A.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const b=A.deltaY.value,E=A.duration.value;E<gd&&Math.abs(b)>hd?v(m(b,E),"end",de(e.swipeDuration)):v(b,"end",0)};return(0,t.watch)(()=>e.modelValue,b=>{const E=u.currIndex-b;E!==0&&(u.currIndex=b,u.startDistance=u.scrollDistance,v(E*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,b=>{if(u.currIndex>=b.length){const E=(b.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,v(E,"end",0)}}),(0,t.watch)(()=>e.visible,b=>{b===!1&&k()}),(0,t.onMounted)(()=>{v(-e.modelValue*e.itemHeight)}),{classes:a,styles:l,contentClasses:r,itemText:p,itemValue:y,...(0,t.toRefs)(u),roller:h,getItemText:Oe,onTouchStart:S,onTouchMove:B,onTouchEnd:g,isHidden:o,setRollerStyle:s,touchRollerStyle:c,touchTileStyle:d,stopMomentum:k}}}),Cd={key:1,class:"fox-picker__item-tile"};function Nd(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTransitionend:n[4]||(n[4]=(...o)=>e.stopMomentum&&e.stopMomentum(...o))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(c))},(0,t.toDisplayString)(e.itemText(o)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Cd,(0,t.toDisplayString)(e.itemText(o)),1))],64))),128))],6)],38)}var Ad=ie(wd,[["render",Nd]]),Ht=0,si="fox-overflow-hidden",ci=()=>_e?document.body:{classList:[]},Bd=e=>[()=>{if(e())try{!Ht&&ci().classList.add(si),Ht++}catch{}},()=>{if(e()&&Ht)try{Ht--,!Ht&&ci().classList.remove(si)}catch{}}],Td={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:Vd,create:Ed}=ee("overlay"),$d=Ed({props:{...Td},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=Bd(()=>e.lockScroll),r=(0,t.computed)(()=>({[Vd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,c=>{c?a():l()}),{classes:r,style:i,onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Dd(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...o)=>e.onClick&&e.onClick(...o),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ut=ie($d,[["render",Dd]]),{componentName:Id,create:qd}=ee("popup"),Pd=qd(sd(Id,{FoxOverLay:ut,Close:re.Close}));function xd(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxOverLay"),c=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(o,(0,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"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(c)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Ce=ie(Pd,[["render",xd]]),Md=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Ce,Ze({...e},{poppable:!1}),n):n?.default?.()??null}}),zd=Md,{create:Rd,componentName:ui,scope:Fd}=ee("picker"),Ld=Rd({components:{Column:Ad,Wrapper:zd},props:oa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=(0,ye.useFoxI18n)(Fd),r=a(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),o=(0,t.ref)(cd());(0,t.watch)(()=>e.visible,x=>{x&&o.value<=0&&setTimeout(()=>{i.value&&(o.value=qe(i.value).height,ud(o.value))},50)});const c=(0,t.computed)(()=>({[ui]:!0})),s=(0,t.computed)(()=>{const x=[];return Array.isArray(e.popClass)?x.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&x.push(e.popClass),x.push(`${ui}__popup`),x.join(" ")}),d=md(),h=(0,t.ref)("singleColumn");let u=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const x=[];for(let F=0;F<u.value.length;F++){const R=u.value[F];if(Array.isArray(R)){const X=R.filter(e.sourceFilter);x.push(X)}}return x}return u.value});(0,t.watch)([()=>e.source,()=>e.params],async([x,F])=>{if(x){let R=await d.load("picker",x,F);if(R.length>0){let X=R[0];if(Array.isArray(X)){if(typeof X[0]=="string"){let P=R,_=[];P.forEach(te=>{let oe=te.map(Q=>ii(Q));_.push(oe)}),u.value=_}else u.value=R;h.value="multipleColumn"}else if(typeof X=="string"){let P=R,_=[],te=P.map(oe=>ii(oe));_.push(te),u.value=_,h.value="singleColumn"}else{const P=ra(e,X);Array.isArray(P)?(h.value="cascade",u.value=[R]):(h.value="singleColumn",u.value=[R])}}else u.value=[]}},{immediate:!0});const y=(0,t.ref)([]),A=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=(0,t.ref)([]);let w=null;const v=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([x,F])=>{let R=pd(e,x,F,h.value);if(!De(R,v.value)){v.value=R,w||(w=R?[...R]:[]);let X=ri(e,R,F,h.value);X&&(y.value=X.texts,De(A.value,X.values)||(A.value=X.values),De(k.value,X.items)||(k.value=X.items),n("update:text",y.value))}});let f="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,x=>{m.value=x,x&&(f="active",v.value.length>0&&(w=[...v.value]))});const S=x=>{let F=ai(e,x);return $e(F)?F.defaultIndex??0:0},B=x=>{if(e.readonly===!0)return!0;let F=ai(e,x);return $e(F)?F.readonly??!1:!1},g=(x,F)=>{let R=v.value;R[x]=F;for(let P=0;P<x;P++)R[P]==null&&(R[P]=S(P));if(h.value==="cascade")for(let P=x+1;P<E.value.length;P++){let _=S(P);P<R.length?R[P]=_:R.push(_)}else for(let P=R.length;P<E.value.length;P++){let _=S(P);R.push(_)}v.value=R;let X=ri(e,R,p.value,h.value);X&&(y.value=X.texts,A.value=X.values,k.value=X.items)},b=x=>x<v.value.length?v.value[x]:S(x),E=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let x=[],F=0,R=p.value[0],X=0;for(;;){let P=R.map(oe=>{let Q=Object.assign({},oe);return dd(e,Q,null),Q});x.push(P),F>=v.value.length?X=0:X=v.value[F],(X<0||X>=R.length)&&(X=0);let _=R[X];const te=ra(e,_);if(!Array.isArray(te))break;R=te,F++}return x}),V=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*o.value),N=(x=!1)=>{if(e.readonly===!0){x&&n("update:visible",!1);return}let F=p.value.length-1;for(;F>=0&&!(v.value[F]===null||v.value[F]===void 0);F--);if(F>=0&&g(F,0),h.value==="singleColumn"){let R=A.value.length>0?A.value[0]:"",X=k.value.length>0?k.value[0]:null;n("update:modelValue",R),n("update:text",y.value),n("change",R,X),x&&(n("confirm",R),n("update:visible",!1))}else n("update:modelValue",A.value),n("update:text",y.value),n("change",A.value,k.value),x&&(n("confirm",A.value),n("update:visible",!1))},C=(x,F)=>{f!=="close"&&(g(x,F),e.isAutoBackFill&&N(!m.value))},M=()=>{f==="active"&&(f="confirm",w=Array.isArray(v.value)?[...v.value]:[],N(!0))},j=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),v.value=[],w=null};return{...r,pickerLineRef:i,classes:c,popClasses:s,columns:E,dataType:h,show:m,itemHeight:o,top:V,isReadonly:B,getIndex:b,change:C,close:()=>{if(f==="active"){if(f="close",w===null||w.length===0)j();else{if(Array.isArray(w))for(let x=0;x<w.length;x++)g(x,w[x]);N(!1)}n("close"),n("update:visible",!1)}},confirm:M,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}j(),w=null,n("clear",""),n("update:visible",!1)}}}}}),Od={key:0,class:"fox-picker__bar"},Kd={class:"fox-picker__title"},Ud={class:"fox-picker__bar__action"},Hd={class:"fox-picker__column"};function jd(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Column"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(c,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Od,[(0,t.createElementVNode)("view",Kd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Ud,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",Hd,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(o,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var jt=ie(Ld,[["render",jd]]),Wd={...be,...Se,...oa,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:" "}};function Yd(e,n,a,l,r,i,o,c=!0){return{props:Wd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:A,browse:k}=Ve(s),{emitEvent:w,exposeApi:v}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return A.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ye.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=xe(s,"modelValue",null,w),g=(0,t.ref)([]),b=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),E="fox-input-item",V=(0,t.computed)(()=>({[E]:!0,"is-disabled":p.value,"is-readonly":A.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const K={};return N.value&&(K["text-align"]=N.value),K}),M=(0,t.ref)(!1),j=()=>{M.value=!0},$=K=>{M.value=K},z=K=>{B.value=K,w("update:modelValue",K)},x=(K,Y)=>{w("change",K,Y)},F=K=>{let Y=K.target.value;S.value=!0,w("focus",Y,K)},R=K=>{setTimeout(()=>{S.value=!1},0);let Y=K.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),w("blur",Y,K)},X=K=>{g.value=K,Array.isArray(K)&&K.length===0?w("update:text",K[0]):w("update:text",K)},P=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),_=(0,t.computed)(()=>we(s.unit)>0),te=(0,t.computed)(()=>we(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!te.value})),Q=K=>{B.value="",w("update:modelValue","",K),w("change","",K),w("clear","")},Z=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),O=(0,t.computed)(()=>we(B.value)>0&&S.value),ne=K=>{O.value?Q(K):j()},H=(0,t.computed)(()=>O.value&&Z.value?r:i),q=(0,t.computed)(()=>({action:!0}));return v({setDisabled:K=>{u.value=K},setReadonly:K=>{y.value=K}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(b.value,d.slots);const K={class:V.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:j,onFocus:F,onBlur:R};c&&(K.disabled=!0);const Y=[],G=(0,t.h)("input",K);Y.push(G);const le=[],U=(0,t.h)(H.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:q.value,onClick:ne},{default:()=>[U]});if(le.push(W),_.value){const se=(0,t.h)("view",{class:oe.value},[s.unit]);le.push(se)}const I=(0,t.h)("view",{class:P.value},{default:()=>le});Y.push(I);const D={default:()=>Y};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const L=ve(s,oa);L.disabled=!1,L.readonly=p.value||A.value,L.visible=M.value,L["onUpdate:visible"]=$,L.modelValue=B.value,L["onUpdate:modelValue"]=z,L.text=g.value,L["onUpdate:text"]=X,L.onChange=x;const J=(0,t.h)(o,L);D.hide=()=>[J];const ae=ve(s,Se,be);return s.prop&&(ae.prop=`${s.prop}_item`),ae.ref=h,a(ae,D)}}}}var{componentName:Xd,create:Qd,scope:Gd}=ee("picker-item"),_d=Qd(Yd(Xd,Gd,Ie,Me,re.CircleClose,re.ArrowRight,jt,!1)),ia=_d,Zd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>e.poppable?(0,t.h)(Ce,{...a},n):n?.default?.()??null}}),Jd=Zd,Qn=(e,n,a)=>e.map(l=>{const{value:r="value",text:i="text",children:o="children"}=a??{},{[r]:c,[i]:s,[o]:d,...h}=l,u={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:c,text:s,children:d,_parent:n};return u.children&&u.children.length&&(u.children=Qn(u.children,u,a)),u}),di=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&di(l.children,n)},ef={topId:null,idKey:"id",pidKey:"pid",sortKey:""},tf=(e,n)=>{const{topId:a,idKey:l,pidKey:r,sortKey:i}={...ef,...n||{}};let o=[],c={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:h}=s,u=c[h]=c[h]||[];!o.length&&h===a&&(o=u),u.push(s),s.children=c[d]||(c[d]=[])}),i&&Object.keys(c).forEach(s=>{c[s].length>1&&c[s].sort((d,h)=>d[i]-h[i])}),c=null,o},sa={prop:{type:[String]},modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},fi=(e,n)=>n[e.textKey],Wt=(e,n)=>n[e.valueKey],nf=(e,n)=>n[e.visibleKey],mi=(e,n)=>n[e.disabledKey],lf=(e,n)=>{const a=n[e.doitKey];return ke(a)},af=(e,n)=>{const a=n[e.numKey];return a==null?null:de(n[a])},pi=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function of(e,n,a,l,r,i=!1){return{props:sa,emits:["update:modelValue","change","click"],setup(o,c){const{emitEvent:s,exposeApi:d}=Fe({context:c},o.prop),{slots:h}=c,u=(0,t.computed)(()=>{const I={};return I[`${e}`]=!0,I}),p=(0,t.computed)(()=>{const I={};return I[`${e}__titles`]=!0,I[`${o.direction}`]=!0,o.align&&(I[`${o.align}`]=!0),o.scroll===!0&&(I.scrollable=!0),o.shape&&(I[`${o.shape}`]=!0),o.showScrollArrow?(H.value===!0&&(I["has-left-scroll-arrow "]=!0),q.value===!0&&(I["has-right-scroll-arrow "]=!0)):o.showQuickNavigation&&(I["has-navigation"]=!0),I}),y=(0,t.computed)(()=>({})),A=(0,t.computed)(()=>{if(!o.gutter)return 0;const I=ue(o.gutter);return I<=0?0:I}),k=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,I=>{k.value!==I&&(k.value=I,_(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=(0,t.computed)(()=>{const I={};return m.value||(I.display="none"),I}),f=(0,t.ref)(),m=(0,t.ref)(!1),S=()=>{B(!m.value)},B=I=>{const D=I;D?(m.value=D,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,f.value?f.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},g=(0,t.ref)(),b=(0,t.ref)([]),E=(I,D)=>{b.value[D]=I},V=I=>D=>{E(D,I)},N=(I,D)=>{const L=g.value,J=b.value;if(!L||!J||!J[I])return;const ae=J[I];let se=0;o.direction==="vertical"?se=ae.offsetTop-(L.offsetHeight-ae.offsetHeight)/2:se=ae.offsetLeft-(L.offsetWidth-ae.offsetWidth)/2,C(L,se,D?0:.3,o.direction)},C=(I,D,L,J)=>{let ae=0;const se=J==="horizontal"?I.scrollLeft:I.scrollTop,fe=L===0?1:Math.round(L*1e3/16);function me(){J==="horizontal"?I.scrollLeft+=(D-se)/fe:I.scrollTop+=(D-se)/fe,++ae<fe&&je(me)}me()},M=(I,D)=>{const L=Wt(o,I),J={};return J[`${e}__titles-item`]=!0,J.disabled=mi(o,I),J.active=L===k.value,o.shape&&(J[`${o.shape}`]=!0),o.ellipsis&&(J.ellipsis=!0),D&&(D.class&&(J[`${D.class}`]=!0),D.disabled===!0&&(J.disabled=D.disabled)),J},j=(I,D)=>{const L={};if(A.value>0){const J=Math.abs(A.value/2);o.direction==="vertical"?(L["margin-top"]=`${J}px`,L["margin-bottom"]=`${J}px`):(L["margin-left"]=`${J}px`,L["margin-right"]=`${J}px`)}return D&&D.style&&Object.assign(L,D.style),L},$=(I,D)=>`${Wt(o,I)??D}`,z=(I,D)=>{const L=Wt(o,I),J={};J[`${e}__popup-item`]=!0,J.disabled=mi(o,I),J.active=L===k.value,o.shape&&(J[`${o.shape}`]=!0);const ae=pi(o,I,D);return ae&&ae.disabled===!0&&(J.disabled=ae.disabled),J},x=(0,t.computed)(()=>(o.data??[]).filter(I=>nf(o,I)!==!1)),F=(I,D)=>{const L=Wt(o,I);if(s("click",I,D),k.value==L)return;const J=()=>{k.value=L,o.scroll&&N(D,!1),s("update:modelValue",L),s("change",I,D)};if(typeof o.beforeChange=="function"){const ae=o.beforeChange(I,D);ft(ae)?ae.then(se=>{se!==!1&&J()}).catch(()=>{J()}):ae!==!1&&J()}else J()},R=(I,D)=>function(){F(I,D)},X=(I,D)=>{F(I,D),B(!1)},P=(I,D)=>function(){X(I,D)},_=I=>{if(!Array.isArray(o.data)||!o.scroll)return;ne()&&le();const D=o.data.findIndex(L=>Wt(o,L)===k.value);D!==-1&&N(D,I)},te=()=>{ne()||U()};(0,t.watch)(()=>o.data,()=>{setTimeout(_,0)}),(0,t.onMounted)(()=>{_(!0)}),(0,t.onBeforeUnmount)(()=>{te()}),d({});const oe=(I,D)=>{if(h.item)return h.item({item:I,index:D});const L=pi(o,I,D),J=[];if(h.text){const se=h.text({item:I,index:D});J.push(se)}else{const se=[];if(L?.doit===!0||lf(o,I)){const Qe=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});se.push(Qe)}const fe=L?.num??af(o,I);if(fe){let Qe="";const Re=de(fe);Re>=100?Qe="99+":Qe=`${Re}`;const un=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Qe]);se.push(un)}const me={class:`${e}__titles-item-text`};se.push(fi(o,I));const Xe=(0,t.h)("view",me,se);J.push(Xe)}const ae=(0,t.h)("view",{class:`${e}__titles-item-line`});return J.push(ae),(0,t.h)("view",{ref:V(D),class:M(I,L),style:j(I,L),key:$(I,D),onClick:R(I,D)},J)},Q=()=>{const I=h.default?h.default():[];if(I.length===0)for(let D=0;D<x.value.length;D++){const L=x.value[D],J=oe(L,D);I.push(J)}return(0,t.h)("view",{ref:g,class:p.value,style:y.value},I)},Z=()=>{let I=null;return h.navigation?I=h.navigation():I=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:S},[I])},O=()=>{const I=[];for(let D=0;D<x.value.length;D++){const L=x.value[D];let J=null;h.popupItem?J=h.popupItem({item:L,index:D}):J=fi(o,L);const ae=(0,t.h)("view",{class:z(L,D),key:$(L,D),onClick:P(L,D)},[J]);I.push(ae)}return(0,t.h)("view",{class:w.value,style:v.value},I)},ne=()=>o.showScrollArrow&&o.direction=="horizontal",H=(0,t.ref)(!1),q=(0,t.ref)(!1),K=I=>{const D=g.value,L=b.value;if(!(!D||!L))if(I==="left"){const J=D.scrollLeft;let ae=J;for(let se=0;se<L.length;se++){const fe=L[se].offsetLeft;if(J-fe<0)break;ae=fe}C(D,ae,.3,"horizontal")}else{const J=D.scrollLeft;let ae=J,se=D.offsetWidth;for(let fe=L.length-1;fe>=0;fe--){const me=L[fe].offsetLeft+L[fe].offsetWidth;if(me-J<D.offsetWidth){ae+=se-me;break}se=me}C(D,ae,.3,"horizontal")}},Y=Pe(()=>{const I=g.value;if(!I)return;let D=I.scrollLeft>0;D!==H.value&&(H.value=D);let L=I.scrollWidth-I.scrollLeft>I.offsetWidth;L!==q.value&&(q.value=L)},50),G=I=>{Y()},le=()=>{const I=g.value;I&&(Y(),I.addEventListener("scroll",G))},U=()=>{const I=g.value;I&&I.removeEventListener("scroll",G)},W=I=>{if(I==="left"&&H.value!==!0||I==="right"&&q.value!==!0)return null;let D=null;return I==="left"?h.leftArrow?D=h.leftArrow():D=(0,t.h)(l):h.rightArrow?D=h.rightArrow():D=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,I],onClick:()=>{K(I)}},[D])};return()=>{const I=[],D=Q();if(I.push(D),ne()){const L=W("left");L&&I.push(L);const J=W("right");J&&I.push(J)}else if(o.showQuickNavigation){const L=Z();I.push(L);const J=O();I.push(J)}return(0,t.h)("view",{class:u.value},I)}}}}var{create:rf,componentName:sf,scope:cf}=ee("tabs-bar"),uf=rf(of(sf,cf,re.MoreH,re.Left,re.Right,!1)),Yt=uf,hi=Symbol("TabsStatesKey"),ca={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},df=15,ff=300,mf=200;function pf(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function gi(e,n=0,a,l,r=mf){a==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var hf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,a,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=a,this.momentumReduceRatio=l,this.isTouch=r??Yn()}open(e){this.el=e;const n=Xn(),a=(l,r,i)=>{const o={delta:l,direction:r,type:i};this.onMove(o)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let r=0;if(this.direction==="horizontal"){if(n.isVertical())return;r=n.state.deltaX}else{if(n.isHorizontal())return;r=n.state.deltaY}a(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const r=n.state.duration;r<ff&&Math.abs(l)>df?(l=pf(l,r,this.momentumReduceRatio),a(l,this.direction,"end")):a(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function gf(e,n,a,l=1,r){return new hf(e,n,a,l,r)}function yf(e,n,a=!1){return{props:ca,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:o}=Fe({context:r},l.prop),{slots:c}=r,s=(0,t.shallowRef)([]),d={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:V=>{const N={name:V};d.current.value===V&&(N.loaded=!0),s.value.push(N),(0,t.triggerRef)(s)},remove:V=>{const N=s.value.findIndex(C=>C.name===V);N!==-1&&s.value.splice(N,1)},isLoaded:V=>{if(!l.lazy)return!0;const N=s.value.findIndex(C=>C.name===V);return N!==-1?d.current.value?s.value[N].loaded??!1:N===0:!1}};(0,t.provide)(hi,d);const h=V=>{const N=s.value.findIndex(C=>C.name===V);N!==-1&&(s.value[N].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([V,N])=>{d.current.value!==V&&(d.current.value=V??"",h(V??"")),d.direction.value!==N&&(d.direction.value=N)});const u=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),A=(0,t.computed)(()=>{const V={};if(l.width){const N=he(l.width);N&&(V.width=N)}if(l.height){const N=he(l.height);N&&(V.height=N)}return V});let k=!0;const w=(0,t.computed)(()=>{const V={};if(l.transition===!1)return V;const N=s.value.length;if(N<=0)return V;const C=s.value.findIndex(M=>M.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(V.height=`${N*d.tabHeight.value}px`,C!==-1&&(V.transform=`translate(0, -${C*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(V.width=`${N*d.tabWidth.value}px`,C!==-1&&(V.transform=`translate(-${C*d.tabWidth.value}px, 0)`)),k&&(k=!1,V.transition="transform 0s ease"),V}),v={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=V=>{const N=s.value.length,C=s.value.findIndex(M=>M.name===d.current.value);v.moved=0,V.direction==="vertical"?(v.min=-1*(d.tabHeight.value*(N-1)+d.tabHeight.value/4),v.max=d.tabHeight.value/4,v.start=-C*d.tabHeight.value,v.itemDistance=d.tabHeight.value):(v.min=-1*(d.tabWidth.value*(N-1)+d.tabWidth.value/4),v.max=d.tabWidth.value/4,v.start=-C*d.tabWidth.value,v.itemDistance=d.tabWidth.value)},m=V=>{const N=p.value;if(!N)return;let C=v.start+V.delta;if(C>v.max?C=v.max:C<v.min&&(C=v.min),V.type==="move")gi(N,C,"move",V.direction,300);else if(V.type==="end"){let M=Math.floor(Math.abs(C)*1/v.itemDistance);const j=Math.abs(C)%v.itemDistance;v.start>C?j>=v.itemDistance*v.triggerAutoMoveRatio&&(M+=1):j>v.itemDistance-v.itemDistance*v.triggerAutoMoveRatio&&(M+=1),C=-1*M*v.itemDistance,gi(N,C,"end",V.direction,300),v.moved=C;const $=s.value[M].name;d.current.value=$??"",h($??""),i("update:modelValue",$)}},S=()=>{},B=()=>{if(!u.value)return;const V=Dn(u.value);d.tabWidth.value=V.width,d.tabHeight.value=V.height},g=wn(B,250);let b=null,E=null;return(0,t.onMounted)(()=>{l.transition!==!1&&u.value&&(B(),window.ResizeObserver&&(E=new window.ResizeObserver(g),E.observe(u.value)),l.draggle&&(b=gf(f,m,S),b.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{E&&(E.disconnect(),E=null),b&&b.close()}),o({doLayout(){B()}}),()=>{const V=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[c?.default?.()]);return(0,t.h)("view",{class:y.value,style:A.value,ref:u},[V])}}}}var{create:bf,componentName:vf,scope:Sf}=ee("tabs-container"),kf=bf(yf(vf,Sf,!1)),Xt=kf,wf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Cf(e,n,a){return{props:wf,setup(l,{emit:r,slots:i}){const o=(0,t.inject)(hi);(0,t.onMounted)(()=>{o.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{o.remove(l.paneKey)});const c=(0,t.computed)(()=>{const h=[e];return o.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),o.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return o.transition===!1?(o.current.value!==l.paneKey&&(h.display="none"),h):(o.direction.value==="vertical"&&o.tabHeight.value>0?h.height=`${o.tabHeight.value}px`:o.tabWidth.value>0&&(h.width=`${o.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?ke(l.loaded):o.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const u={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??a,u),y=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),A=(0,t.h)("view",{class:`${e}__empty`},[p,y]);h.push(A)}return(0,t.h)("view",{class:c.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Nf,componentName:Af,scope:Bf}=ee("tabs-pane"),Tf=Nf(Cf(Af,Bf,re.Loading)),Gn=Tf,yi=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Qn(e,null,this.config)}updateChildren(e,n){n?n.children=Qn(e,n,this.config):this.nodes=Qn(e,null,this.config)}getNodeByValue(e){let n;return di(this.nodes,a=>{if(a.value===e)return n=a,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),a=l.children}return n}isLeaf(e,n){const{leaf:a,children:l}=e,r=Array.isArray(l)&&!!l.length;return a||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:Vf,scope:Ef}=ee("cascader-pane"),$f=Vf({components:{Loading:re.Loading,Checklist:re.Checklist,TabsBar:Yt,TabsContainer:Xt,TabsPane:Gn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(Ef),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),i=(0,t.ref)(),o=(0,t.ref)(!1),c=(0,t.ref)(e.modelValue),s=(0,t.ref)(new yi([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),u=(0,t.computed)(()=>o.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,S)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:S}))),p=new Map;let y;const A=async()=>{p.clear(),d.value=[],r.value=0,o.value=!1,y=null;let{options:m}=e;l.value.convertConfig&&(m=tf(m,l.value.convertConfig)),s.value=new yi(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await w({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!h.value)},k=async(m=!0)=>{const S=c.value;if(S===void 0||!s.value.nodes.length)return;if(S.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let B=S;if(h.value&&Array.isArray(S)&&S.length){B=[];let g=s.value.nodes.find(b=>b.value===S[0]);g&&(B=[g.value],o.value=!0,await w(await S.slice(1).reduce(async(b,E)=>{const V=await b;await w(V);const N=V&&V?.children?.find(C=>C.value===E);return N&&B.push(E),Promise.resolve(N)},Promise.resolve(g))),o.value=!1)}B.length&&S===e.modelValue&&s.value.getPathNodesByValue(B).map((g,b)=>{r.value=b,f.handleNode(g,m)})},w=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,h.value)||s.value.hasChildren(m,h.value))return;m.loading=!0;const S=m.root?null:m;let B=p.get(m);B||(B=new Promise(b=>{l.value.lazyLoad?.(m,b)}),p.set(m,B));const g=await B;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,S):m.leaf=!0,m.loading=!1,p.delete(m)},v=m=>{const S=m.map(B=>B.value);c.value=S,n("change",S,m),n("pathChange",m),n("update:modelValue",S)},f={async handleNode(m,S){const{disabled:B,loading:g}=m;if(!(!S&&B||!d.value[r.value])){if(s.value.isLeaf(m,h.value)){if(m.leaf=!0,d.value[r.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!S){const b=d.value.map(E=>E.selectedNode);v(b),n("pathChange",b)}return}if(s.value.hasChildren(m,h.value)){const b=m.level+1;d.value[r.value].selectedNode=m,d.value=d.value.slice(0,b),d.value.push({nodes:m.children||[],selectedNode:null}),r.value=b,S||n("pathChange",d.value.map(E=>E.selectedNode));return}y=m,!g&&(await w(m),y===m&&(d.value[r.value].selectedNode=m,f.handleNode(m,S)))}},handleTabChange(m,S){y=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,S){return m.selectedNode&&m.selectedNode.value===S.value}};return(0,t.watch)([l,()=>e.options],()=>{A()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{De(m,c.value)||(c.value=m,k(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(c.value)&&c.value.length>0&&k(),m&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:o,tabsCursor:r,tabsContainerRef:i,...f}}}),Df={class:"fox-cascader"},If={role:"menu",class:"fox-cascader__pane"},qf=["aria-checked","aria-disabled","onClick"],Pf={class:"fox-cascader__item__title"};function xf(e,n,a,l,r,i){const o=(0,t.resolveComponent)("TabsBar"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),h=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Df,[(0,t.createVNode)(o,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(h,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(u,p)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":p,key:p},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",If,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(u,y),disabled:y.disabled}]),"aria-checked":e.isSelected(u,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:A=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",Pf,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,qf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var Mf=ie($f,[["render",xf]]),{create:zf}=ee("cascader"),Rf=zf({components:{CascaderPane:Mf,Wrapper:Jd},props:{...ot,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(o){n("update:visible",o)}}),r=(o,c)=>{a.value=o,l.value=!1,n("change",o,c),n("update:modelValue",o)},i=o=>{n("pathChange",o)};return(0,t.watch)(()=>e.modelValue,o=>{o!==a.value&&(a.value=o)}),{onChange:r,onPathChange:i,innerValue:a,innerVisible:l}}}),Ff=["innerHTML"];function Lf(e,n,a,l,r,i){const o=(0,t.resolveComponent)("CascaderPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Ff)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(o,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var _n=ie(Rf,[["render",Lf]]);function St(e,n){return n[e.textKey??"text"]??""}function kt(e,n){return n[e.valueKey??"value"]}function bi(e,n){return n[e.childrenKey??"children"]}function Zn(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=St(e,r),o=kt(e,r);a.texts.push(i),a.values.push(o??"")}return a}function vi(e,n,a,l,r=[]){if(!a)return;const i=a[l];for(let o=0;o<n.length;o++)if(St(e,n[o])===i){const c=kt(e,n[o])??"",s={[e.textKey]:i,[e.valueKey]:c};r.push(s);const d=bi(e,n[o]);Array.isArray(d)&&vi(e,d,a,l+1,r);return}}function Si(e,n,a,l,r=[]){if(!a)return;const i=a[l];for(let o=0;o<n.length;o++)if(kt(e,n[o])===i){const c=St(e,n[o])??"",s={[e.textKey]:c,[e.valueKey]:i};r.push(s);const d=bi(e,n[o]);Array.isArray(d)&&Si(e,d,a,l+1,r);return}}function ua(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(St(e,n[l])!==St(e,a[l])||kt(e,n[l])!==kt(e,a[l]))return!1;return!0}var Of=class{scope;constructor(e){this.scope=e}async load(e,n,a){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,a);const r=lt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):($e(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,a))}};function Kf(){return new Of(st())}var ki={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]},emptyText:{type:[String]}},Uf={...be,...Se,...ki};function Hf(e,n,a,l,r,i,o,c=!1){return{props:Uf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:A,browse:k}=Ve(s),{emitEvent:w,exposeApi:v}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return A.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ye.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=Kf(),g=(0,t.ref)([]),b=(0,t.ref)([]),E=(0,t.computed)(()=>{if(Array.isArray(b.value)){if(b.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const W=b.value.length-1;return b.value[W]}return b.value.join(s.separator)}else return b.value??s.emptyText}),V=(0,t.ref)([]),N=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>g.value],async([W,I])=>{if(w("setValue",W),s.lazy===!0){N.value.length==0&&(s.emptyText?b.value=[s.emptyText]:b.value=Array.isArray(W)?W:[],V.value=Array.isArray(W)?W:[]);return}if(s.valueType==="item"){let D=W;if(!ua(s,D,N.value)){N.value=D;let L=Zn(s,D);b.value=L.texts,V.value=L.values}}else if(s.valueType==="text"){let D=W,L=[];if(vi(s,I,D,0,L),!ua(s,L,N.value)){N.value=L;let J=Zn(s,L);b.value=J.texts,V.value=J.values}}else{let D=W,L=[];if(Si(s,I,D,0,L),!ua(s,L,N.value)){N.value=L;let J=Zn(s,L);b.value=J.texts,V.value=J.values}}}),s.lazy===!0&&(V.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([W,I])=>{s.lazy||W&&(g.value=await B.load(W,I))},{immediate:!0});const C="fox-input-item",M=(0,t.computed)(()=>({[C]:!0,"is-disabled":p.value,"is-readonly":A.value})),j=Te((0,t.computed)(()=>s.textAlign),"textAlign"),$=(0,t.computed)(()=>{const W={};return j.value&&(W["text-align"]=j.value),W}),z=(0,t.ref)(!1),x=()=>{p.value===!0||A.value===!0||(z.value=!0)},F=W=>{z.value=W},R=(W,I)=>{let D=I.map(J=>{if(J==null)return J;let ae={...J};return Reflect.deleteProperty(ae,"text"),ae[s.textKey]=J.text??"",Reflect.deleteProperty(ae,"value"),ae[s.valueKey]=J.value??"",ae});N.value=D;let L=Zn(s,D);b.value=L.texts,V.value=L.values,s.valueType==="text"?(w("change",b.value,D),w("update:modelValue",b.value)):s.valueType==="item"?(w("change",D,D),w("update:modelValue",D)):(w("change",V.value,D),w("update:modelValue",V.value)),w("update:pathNodes",D)},X=W=>{w("pathChange",W.map(I=>{if(I==null)return I;let D={...I};return Reflect.deleteProperty(D,"text"),D[s.textKey]=I.text??"",Reflect.deleteProperty(D,"value"),D[s.valueKey]=I.value??"",D}))},P=W=>{S.value=!0,w("focus",V.value,W)},_=W=>{setTimeout(()=>{S.value=!1},0),w("blur",V.value,W)},te=(0,t.computed)(()=>({[`${C}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),oe=(0,t.computed)(()=>we(s.unit)>0),Q=(0,t.computed)(()=>we(s.unit)>0&&!S.value),Z=(0,t.computed)(()=>({hidden:!Q.value})),O=W=>{N.value=[],b.value=[],V.value=[],w("update:modelValue",[]),w("change",[],W),w("clear",[]),w("update:pathNodes",[])},ne=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),H=(0,t.computed)(()=>{let W=V.value&&V.value.length>0;return s.clearable&&W&&S.value}),q=W=>{H.value?O(W):x()},K=(0,t.computed)(()=>H.value&&ne.value?r:i),Y=(0,t.computed)(()=>({action:!0}));let G=null;const le=()=>typeof G=="function"?G:typeof s.lazyLoad=="function"?s.lazyLoad:(G=async(W,I)=>{const D=[],L=[];let J=0;if(!W.root){let ae=W;for(;ae;){const se=St(s,ae),fe=kt(s,ae);L.splice(0,0,se),D.splice(0,0,fe),ae=ae._parent}J=D.length}I(await B.load(s.source,{...W,level:J,pathLabels:L,pathValues:D},!0))},G),U=(0,t.ref)();return v({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},select:()=>{U?.value.select()},setDisabled:W=>{u.value=W},setReadonly:W=>{y.value=W}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(E.value,d.slots,s.emptyText);const W={class:M.value,style:$.value,ref:U,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:E.value,onClick:x,onFocus:P,onBlur:_};c&&(W.disabled=!0);const I=[],D=(0,t.h)("input",W);I.push(D);const L=[],J=(0,t.h)(K.value,{class:["action-icon"]}),ae=(0,t.h)("view",{class:Y.value,onClick:q},{default:()=>[J]});if(L.push(ae),oe.value){const un=(0,t.h)("view",{class:Z.value},[s.unit]);L.push(un)}const se=(0,t.h)("view",{class:te.value},{default:()=>L});I.push(se);const fe={default:()=>I};fe.label=d.slots.default,fe.prepend=d.slots.prepend,fe.append=d.slots.append,fe.fixedPreTip=d.slots.fixedPreTip,fe.fixedTip=d.slots.fixedTip;const me={};me.visible=z.value,me["onUpdate:visible"]=F,me.modelValue=V.value,me.onChange=R,me.onPathChange=X,me.title=s.title,me.valueKey=s.valueKey,me.textKey=s.textKey,me.childrenKey=s.childrenKey,me.convertConfig=s.convertConfig,s.lazy?(me.lazy=!0,me.lazyLoad=le()):me.options=g.value;const Xe={};Xe.header=d.slots.header;const Qe=(0,t.h)(o,me,Xe);fe.hide=()=>[Qe];const Re={...Ze(s,ki),ref:h};return s.prop&&(Re.prop=`${s.prop}_item`),a(Re,fe)}}}}var{componentName:jf,create:Wf,scope:Yf}=ee("cascader-item"),Xf=Wf(Hf(jf,Yf,Ie,Me,re.CircleClose,re.ArrowRight,_n,!1)),da=Xf,Qf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=l()})(e,(function(){"use strict";var a=1e3,l=6e4,r=36e5,i="millisecond",o="second",c="minute",s="hour",d="day",h="week",u="month",p="quarter",y="year",A="date",k="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var z=["th","st","nd","rd"],x=$%100;return"["+$+(z[(x-20)%10]||z[x]||z[0])+"]"}},m=function($,z,x){var F=String($);return!F||F.length>=z?$:""+Array(z+1-F.length).join(x)+$},S={s:m,z:function($){var z=-$.utcOffset(),x=Math.abs(z),F=Math.floor(x/60),R=x%60;return(z<=0?"+":"-")+m(F,2,"0")+":"+m(R,2,"0")},m:function $(z,x){if(z.date()<x.date())return-$(x,z);var F=12*(x.year()-z.year())+(x.month()-z.month()),R=z.clone().add(F,u),X=x-R<0,P=z.clone().add(F+(X?-1:1),u);return+(-(F+(x-R)/(X?R-P:P-R))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:u,y,w:h,d,D:A,h:s,m:c,s:o,ms:i,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},B="en",g={};g[B]=f;var b="$isDayjsObject",E=function($){return $ instanceof M||!(!$||!$[b])},V=function $(z,x,F){var R;if(!z)return B;if(typeof z=="string"){var X=z.toLowerCase();g[X]&&(R=X),x&&(g[X]=x,R=X);var P=z.split("-");if(!R&&P.length>1)return $(P[0])}else{var _=z.name;g[_]=z,R=_}return!F&&R&&(B=R),R||!F&&B},N=function($,z){if(E($))return $.clone();var x=typeof z=="object"?z:{};return x.date=$,x.args=arguments,new M(x)},C=S;C.l=V,C.i=E,C.w=function($,z){return N($,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var M=(function(){function $(x){this.$L=V(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[b]=!0}var z=$.prototype;return z.parse=function(x){this.$d=(function(F){var R=F.date,X=F.utc;if(R===null)return new Date(NaN);if(C.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var P=R.match(w);if(P){var _=P[2]-1||0,te=(P[7]||"0").substring(0,3);return X?new Date(Date.UTC(P[1],_,P[3]||1,P[4]||0,P[5]||0,P[6]||0,te)):new Date(P[1],_,P[3]||1,P[4]||0,P[5]||0,P[6]||0,te)}}return new Date(R)})(x),this.init()},z.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},z.$utils=function(){return C},z.isValid=function(){return this.$d.toString()!==k},z.isSame=function(x,F){var R=N(x);return this.startOf(F)<=R&&R<=this.endOf(F)},z.isAfter=function(x,F){return N(x)<this.startOf(F)},z.isBefore=function(x,F){return this.endOf(F)<N(x)},z.$g=function(x,F,R){return C.u(x)?this[F]:this.set(R,x)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(x,F){var R=this,X=!!C.u(F)||F,P=C.p(x),_=function(q,K){var Y=C.w(R.$u?Date.UTC(R.$y,K,q):new Date(R.$y,K,q),R);return X?Y:Y.endOf(d)},te=function(q,K){return C.w(R.toDate()[q].apply(R.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(K)),R)},oe=this.$W,Q=this.$M,Z=this.$D,O="set"+(this.$u?"UTC":"");switch(P){case y:return X?_(1,0):_(31,11);case u:return X?_(1,Q):_(0,Q+1);case h:var ne=this.$locale().weekStart||0,H=(oe<ne?oe+7:oe)-ne;return _(X?Z-H:Z+(6-H),Q);case d:case A:return te(O+"Hours",0);case s:return te(O+"Minutes",1);case c:return te(O+"Seconds",2);case o:return te(O+"Milliseconds",3);default:return this.clone()}},z.endOf=function(x){return this.startOf(x,!1)},z.$set=function(x,F){var R,X=C.p(x),P="set"+(this.$u?"UTC":""),_=(R={},R[d]=P+"Date",R[A]=P+"Date",R[u]=P+"Month",R[y]=P+"FullYear",R[s]=P+"Hours",R[c]=P+"Minutes",R[o]=P+"Seconds",R[i]=P+"Milliseconds",R)[X],te=X===d?this.$D+(F-this.$W):F;if(X===u||X===y){var oe=this.clone().set(A,1);oe.$d[_](te),oe.init(),this.$d=oe.set(A,Math.min(this.$D,oe.daysInMonth())).$d}else _&&this.$d[_](te);return this.init(),this},z.set=function(x,F){return this.clone().$set(x,F)},z.get=function(x){return this[C.p(x)]()},z.add=function(x,F){var R,X=this;x=Number(x);var P=C.p(F),_=function(Q){var Z=N(X);return C.w(Z.date(Z.date()+Math.round(Q*x)),X)};if(P===u)return this.set(u,this.$M+x);if(P===y)return this.set(y,this.$y+x);if(P===d)return _(1);if(P===h)return _(7);var te=(R={},R[c]=l,R[s]=r,R[o]=a,R)[P]||1,oe=this.$d.getTime()+x*te;return C.w(oe,this)},z.subtract=function(x,F){return this.add(-1*x,F)},z.format=function(x){var F=this,R=this.$locale();if(!this.isValid())return R.invalidDate||k;var X=x||"YYYY-MM-DDTHH:mm:ssZ",P=C.z(this),_=this.$H,te=this.$m,oe=this.$M,Q=R.weekdays,Z=R.months,O=R.meridiem,ne=function(K,Y,G,le){return K&&(K[Y]||K(F,X))||G[Y].slice(0,le)},H=function(K){return C.s(_%12||12,K,"0")},q=O||function(K,Y,G){var le=K<12?"AM":"PM";return G?le.toLowerCase():le};return X.replace(v,(function(K,Y){return Y||(function(G){switch(G){case"YY":return String(F.$y).slice(-2);case"YYYY":return C.s(F.$y,4,"0");case"M":return oe+1;case"MM":return C.s(oe+1,2,"0");case"MMM":return ne(R.monthsShort,oe,Z,3);case"MMMM":return ne(Z,oe);case"D":return F.$D;case"DD":return C.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return ne(R.weekdaysMin,F.$W,Q,2);case"ddd":return ne(R.weekdaysShort,F.$W,Q,3);case"dddd":return Q[F.$W];case"H":return String(_);case"HH":return C.s(_,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return q(_,te,!0);case"A":return q(_,te,!1);case"m":return String(te);case"mm":return C.s(te,2,"0");case"s":return String(F.$s);case"ss":return C.s(F.$s,2,"0");case"SSS":return C.s(F.$ms,3,"0");case"Z":return P}return null})(K)||P.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(x,F,R){var X,P=this,_=C.p(F),te=N(x),oe=(te.utcOffset()-this.utcOffset())*l,Q=this-te,Z=function(){return C.m(P,te)};switch(_){case y:X=Z()/12;break;case u:X=Z();break;case p:X=Z()/3;break;case h:X=(Q-oe)/6048e5;break;case d:X=(Q-oe)/864e5;break;case s:X=Q/r;break;case c:X=Q/l;break;case o:X=Q/a;break;default:X=Q}return R?X:C.a(X)},z.daysInMonth=function(){return this.endOf(u).$D},z.$locale=function(){return g[this.$L]},z.locale=function(x,F){if(!x)return this.$L;var R=this.clone(),X=V(x,F,!0);return X&&(R.$L=X),R},z.clone=function(){return C.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},$})(),j=M.prototype;return N.prototype=j,[["$ms",i],["$s",o],["$m",c],["$H",s],["$W",d],["$M",u],["$y",y],["$D",A]].forEach((function($){j[$[1]]=function(z){return this.$g(z,$[0],$[1])}})),N.extend=function($,z){return $.$i||($(z,M,N),$.$i=!0),N},N.locale=V,N.isDayjs=E,N.unix=function($){return N(1e3*$)},N.en=g[B],N.Ls=g,N.p={},N}))})),Gf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,o=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,s={},d=function(w){return(w=+w)+(w>68?1900:2e3)},h=function(w){return function(v){this[w]=+v}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var f=v.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m})(w)}],p=function(w){var v=s[w];return v&&(v.indexOf?v:v.s.concat(v.f))},y=function(w,v){var f,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(w.indexOf(m(S,0,v))>-1){f=S>12;break}}else f=w===(v?"pm":"PM");return f},A={A:[c,function(w){this.afternoon=y(w,!1)}],a:[c,function(w){this.afternoon=y(w,!0)}],Q:[r,function(w){this.month=3*(w-1)+1}],S:[r,function(w){this.milliseconds=100*+w}],SS:[i,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[o,h("seconds")],ss:[o,h("seconds")],m:[o,h("minutes")],mm:[o,h("minutes")],H:[o,h("hours")],h:[o,h("hours")],HH:[o,h("hours")],hh:[o,h("hours")],D:[o,h("day")],DD:[i,h("day")],Do:[c,function(w){var v=s.ordinal,f=w.match(/\d+/);if(this.day=f[0],v)for(var m=1;m<=31;m+=1)v(m).replace(/\[|\]/g,"")===w&&(this.day=m)}],w:[o,h("week")],ww:[i,h("week")],M:[o,h("month")],MM:[i,h("month")],MMM:[c,function(w){var v=p("months"),f=(p("monthsShort")||v.map((function(m){return m.slice(0,3)}))).indexOf(w)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[c,function(w){var v=p("months").indexOf(w)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(w){this.year=d(w)}],YYYY:[/\d{4}/,h("year")],Z:u,ZZ:u};function k(w){for(var v=w,f=s&&s.formats,m=(w=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(N,C,M){var j=M&&M.toUpperCase();return C||f[M]||a[M]||f[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,z,x){return z||x.slice(1)}))}))).match(l),S=m.length,B=0;B<S;B+=1){var g=m[B],b=A[g],E=b&&b[0],V=b&&b[1];m[B]=V?{regex:E,parser:V}:g.replace(/^\[|\]$/g,"")}return function(N){for(var C={},M=0,j=0;M<S;M+=1){var $=m[M];if(typeof $=="string")j+=$.length;else{var z=$.regex,x=$.parser,F=N.slice(j),R=z.exec(F)[0];x.call(C,R),N=N.replace(R,"")}}return(function(X){var P=X.afternoon;if(P!==void 0){var _=X.hours;P?_<12&&(X.hours+=12):_===12&&(X.hours=0),delete X.afternoon}})(C),C}}return function(w,v,f){f.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(d=w.parseTwoDigitYear);var m=v.prototype,S=m.parse;m.parse=function(B){var g=B.date,b=B.utc,E=B.args;this.$u=b;var V=E[1];if(typeof V=="string"){var N=E[2]===!0,C=E[3]===!0,M=N||C,j=E[2];C&&(j=E[2]),s=this.$locale(),!N&&j&&(s=f.Ls[j]),this.$d=(function(F,R,X,P){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*F);var _=k(R)(F),te=_.year,oe=_.month,Q=_.day,Z=_.hours,O=_.minutes,ne=_.seconds,H=_.milliseconds,q=_.zone,K=_.week,Y=new Date,G=Q||(te||oe?1:Y.getDate()),le=te||Y.getFullYear(),U=0;te&&!oe||(U=oe>0?oe-1:Y.getMonth());var W,I=Z||0,D=O||0,L=ne||0,J=H||0;return q?new Date(Date.UTC(le,U,G,I,D,L,J+60*q.offset*1e3)):X?new Date(Date.UTC(le,U,G,I,D,L,J)):(W=new Date(le,U,G,I,D,L,J),K&&(W=P(W).week(K).toDate()),W)}catch{return new Date("")}})(g,V,b,f),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),M&&g!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var $=V.length,z=1;z<=$;z+=1){E[1]=V[z-1];var x=f.apply(this,E);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}z===$&&(this.$d=new Date(""))}else S.call(this,B)}}}))})),_f=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(a,l){var r=l.prototype,i=r.format;r.format=function(o){var c=this,s=this.$locale();if(!this.isValid())return i.bind(this)(o);var d=this.$utils(),h=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(u){switch(u){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),u==="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 u}}));return i.bind(this)(h)}}}))})),Zf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(a,l,r){var i=l.prototype,o=function(u){return u&&(u.indexOf?u:u.s)},c=function(u,p,y,A,k){var w=u.name?u:u.$locale(),v=o(w[p]),f=o(w[y]),m=v||f.map((function(B){return B.slice(0,A)}));if(!k)return m;var S=w.weekStart;return m.map((function(B,g){return m[(g+(S||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(u,p){return u.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,k,w){return k||w.slice(1)}))})(u.formats[p.toUpperCase()])},h=function(){var u=this;return{months:function(p){return p?p.format("MMMM"):c(u,"months")},monthsShort:function(p){return p?p.format("MMM"):c(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):c(u,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):c(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):c(u,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(u.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},r.localeData=function(){var u=s();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return d(u,p)},meridiem:u.meridiem,ordinal:u.ordinal}},r.months=function(){return c(s(),"months")},r.monthsShort=function(){return c(s(),"monthsShort","months",3)},r.weekdays=function(u){return c(s(),"weekdays",null,null,u)},r.weekdaysShort=function(u){return c(s(),"weekdaysShort","weekdays",3,u)},r.weekdaysMin=function(u){return c(s(),"weekdaysMin","weekdays",2,u)}}}))})),Jf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var a="week",l="year";return function(r,i,o){var c=i.prototype;c.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=o(this).startOf(l).add(1,l).date(d),u=o(this).endOf(a);if(h.isBefore(u))return 1}var p=o(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),y=this.diff(p,a,!0);return y<0?o(this).startOf("week").week():Math.ceil(y)},c.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),em=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(a,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),o=this.year();return i===1&&r===11?o+1:r===0&&i>=52?o-1:o}}}))})),tm=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(a,l,r){l.prototype.dayOfYear=function(i){var o=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}}))})),nm=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),lm=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Ke=He(Qf(),1),am=He(Gf(),1),om=He(_f(),1),rm=He(Zf(),1),im=He(Jf(),1),sm=He(em(),1),cm=He(tm(),1),um=He(nm(),1),dm=He(lm(),1);Ke.default.extend(rm.default),Ke.default.extend(om.default),Ke.default.extend(am.default),Ke.default.extend(im.default),Ke.default.extend(sm.default),Ke.default.extend(cm.default),Ke.default.extend(um.default),Ke.default.extend(dm.default);var wt={format(e,n="YYYY-MM-DD"){return(0,Ke.default)(e).format(n)},parser(e,n){return(0,Ke.default)(e,n).toDate()},getDay(e,n,a){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),a=a??"YYYY-MM-DD",this.format(l,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){let l=new Date(e+"/"+n+"/"+a).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,a){const l=typeof e=="string"?this.parser(e,a):e,r=typeof n=="string"?this.parser(n,a):n,i=l.getTime(),o=r.getTime();return i==o?0:i>o?1:-1},between(e,n,a,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+a)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+a)):r=new Date(new Date(n).setDate(n.getDate()+a));const i=e.getTime(),o=r.getTime(),c=n.getTime();return o>c?i>=c&&i<=o:i>=o&&i<=c},inScope4Day(e,n,a){return this.between(e,n,a,"day")},inScope4Month(e,n,a){return this.between(e,n,a,"month")},inScope4Year(e,n,a){return this.between(e,n,a,"year")}},wi=new Date().getFullYear(),fa={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"},Jn=(e,n,a)=>{let l;if(We(n)?l=n:typeof n=="string"&&we(n)>0?l=wt.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},ma=(e,n,a)=>{We(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),wt.format(new Date(l),a)},pa={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},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(wi-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(wi+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:fm,scope:mm}=ee("date-picker"),pm=fm({components:{Picker:jt},props:{...pa},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(mm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{r.value=m});function i(m,S){return new Date(m,S,0).getDate()}const o=(m,S)=>{const B=e[`${m}Date`],g=B.getFullYear();let b=1,E=1,V=0,N=0;m==="max"&&(b=12,E=i(S.getFullYear(),S.getMonth()+1),V=23,N=59);const C=N;return S.getFullYear()===g&&(b=B.getMonth()+1,S.getMonth()+1===b&&(E=B.getDate(),S.getDate()===E&&(V=B.getHours(),S.getHours()===V&&(N=B.getMinutes())))),{[`${m}Year`]:g,[`${m}Month`]:b,[`${m}Date`]:E,[`${m}Hour`]:V,[`${m}Minute`]:N,[`${m}Seconds`]:C}},c=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:m,maxDate:S,maxMonth:B,maxHour:g,maxMinute:b,maxSeconds:E}=o("max",p.value),{minYear:V,minDate:N,minMonth:C,minHour:M,minMinute:j,minSeconds:$}=o("min",p.value);let z=[{type:"year",range:[V,m]},{type:"month",range:[C,B]},{type:"day",range:[N,S]},{type:"hour",range:[M,g]},{type:"minute",range:[j,b]},{type:"seconds",range:[$,E]}];switch(e.type){case"date":z=z.slice(0,3);break;case"datetime":z=z.slice(0,5);break;case"time":z=z.slice(3,6);break;case"year-month":z=z.slice(0,2);break;case"month-day":z=z.slice(1,3);break;case"datehour":z=z.slice(0,4);break;case"hour-minute":z=z.slice(3,5);break}return z}),s=(m,S,B,g,b)=>{const E=[];for(;m<=S;){let V=!0;if(typeof e.itemFilter=="function"){const N={text:`${m}`,value:m,type:B,currentYearMonth:g};V=e.itemFilter(N)}if(V)if(typeof e.itemFormatter=="function"){const N={text:`${m}`,value:m,type:B,currentYearMonth:g};e.itemFormatter(N),E.push({text:N.text,value:N.value})}else if(e.isShowChinese){let N=`${m}${l[B]}`;if(B==="day"){if(g[0]===b[0]&&g[1]===b[1]&&m===b[2])N=l.today;else{const C=new Date(g[0],g[1],m).getDay();N=`${N} ${l.fullWeekdays[C]}`}E.push({text:N,value:m})}else E.push({text:m+l[B],value:m})}else E.push({text:`${m}`,value:m});B==="minute"?m+=e.minuteStep:m++}return E},d=(0,t.computed)(()=>{const m=new Date,S=[m.getFullYear(),m.getMonth(),m.getDate()],B=[];p.value&&(B[0]=p.value.getFullYear(),B[1]=p.value.getMonth());let g=[];return c.value.forEach(b=>{let E=s(b.range[0],b.range[1],b.type,B,S);E&&g.push(E)}),g}),h=(m,S)=>m==="year"?S.getFullYear():m==="month"?S.getMonth()+1:m==="day"?S.getDate():m==="hour"?S.getHours():m==="minute"?S.getMinutes():m==="seconds"?S.getSeconds():0,u=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let S;if(typeof m=="string"?m.length==0||m==="Invalid Date"?S=new Date:e.valueFormat?S=Jn(e,e.modelValue,e.valueFormat):S=Jn(e,m,fa[e.type]):We(m)?S=m:S=new Date,!!S&&(!p.value||S.getTime()!==p.value.getTime())){p.value=S;let B=[];c.value.forEach(g=>{let b=h(g.type,S);B.push(b)}),u.value=B}},{immediate:!0});const y=m=>{if(!m||m.length===0){p.value=new Date;let S=[];c.value.forEach(B=>{let g=h(B.type,p.value);S.push(g)}),u.value=S;return}if(e.type==="date"){const S=m[0],B=m[1]-1,g=Math.min(m[2],i(S,B+1));g!==m[2]&&(m[2]=g),p.value=new Date(S,B,g)}else if(e.type==="datetime"){const S=m[0],B=m[1]-1,g=Math.min(m[2],i(S,B+1)),b=m[3],E=m[4];g!==m[2]&&(m[2]=g),p.value=new Date(S,B,g,b,E)}else if(e.type==="time"){const S=m[0],B=m[1],g=m[2],b=p.value??new Date;p.value=new Date(b.getFullYear(),b.getMonth(),b.getDate(),S,B,g)}else if(e.type==="year-month"){const S=m[0],B=m[1]-1;p.value=new Date(S,B)}else if(e.type==="month-day"){const S=(p.value??new Date).getFullYear(),B=m[0]-1,g=Math.min(m[1],i(S,B+1));g!==m[1]&&(m[1]=g),p.value=new Date(S,B,g)}else if(e.type==="datehour"){const S=m[0],B=m[1]-1,g=Math.min(m[2],i(S,B+1)),b=m[3];g!==m[2]&&(m[2]=g),p.value=new Date(S,B,g,b)}else if(e.type==="hour-minute"){const S=m[0],B=m[1],g=p.value??new Date;p.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),S,B)}u.value=m};return{columns:d,dateIndexs:u,show:r,onChange:m=>{y(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{y(m);const S=p.value??new Date;e.valueFormat?n("update:modelValue",ma(e,S,e.valueFormat)):n("update:modelValue",S),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{r.value=m,n("update:visible",m)}}}});function hm(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(o,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var el=ie(pm,[["render",hm]]),gm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function ym(e){let n=e.format;return n||(n=fa[e.type??"date"]),n}var bm={...be,...Se,...pa,...gm};function vm(e,n,a,l,r,i,o,c=!1){return{props:bm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:A,browse:k}=Ve(s),{emitEvent:w,exposeApi:v}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return A.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ye.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),g=xe(s,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:s.valueFormat?Jn(s,q,s.valueFormat)??q:Jn(s,q,fa[s.type])??q:We(q)?q:null,w),b=(0,t.computed)(()=>{if(!g.value)return"";const q=ym(s);return ma(s,g.value,q)}),E="fox-input-item",V=(0,t.computed)(()=>({[E]:!0,"is-disabled":p.value,"is-readonly":A.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const q={};return N.value&&(q["text-align"]=N.value),q}),M=(0,t.ref)(!1),j=()=>{M.value=!0},$=()=>{M.value=!1};d.expose({showPicker:j,hidePicker:$});const z=q=>{M.value=q},x=q=>{if(g.value=q,s.valueFormat){let K=ma(s,q,s.valueFormat);w("update:modelValue",K,{}),w("change",K,{})}else w("update:modelValue",q,{}),w("change",q,{})},F=q=>{let K=q.target.value;S.value=!0,w("focus",K,q)},R=q=>{setTimeout(()=>{S.value=!1},0);let K=q.target.value;s.maxLength&&K.length>Number(s.maxLength)&&(K=K.slice(0,Number(s.maxLength))),w("blur",K,q)},X=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),P=(0,t.computed)(()=>we(s.unit)>0),_=(0,t.computed)(()=>we(s.unit)>0&&!S.value),te=(0,t.computed)(()=>({hidden:!_.value})),oe=q=>{g.value="",w("update:modelValue","",q),w("change","",q),w("clear",""),$()},Q=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),Z=(0,t.computed)(()=>{let q=we(g.value)>0;return s.clearable&&q&&S.value}),O=q=>{Z.value?oe(q):j()},ne=(0,t.computed)(()=>Z.value&&Q.value?r:i),H=(0,t.computed)(()=>({action:!0}));return v({setDisabled:q=>{u.value=q},setReadonly:q=>{y.value=q}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(b.value,d.slots);const q={class:V.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:j,onFocus:F,onBlur:R};c&&(q.disabled=!0);const K=[],Y=(0,t.h)("input",q);K.push(Y);const G=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),U=(0,t.h)("view",{class:H.value,onClick:O},{default:()=>[le]});if(G.push(U),P.value){const se=(0,t.h)("view",{class:te.value},[s.unit]);G.push(se)}const W=(0,t.h)("view",{class:X.value},{default:()=>G});K.push(W);const I={default:()=>K};I.label=d.slots.default,I.prepend=d.slots.prepend,I.append=d.slots.append,I.fixedPreTip=d.slots.fixedPreTip,I.fixedTip=d.slots.fixedTip;const D=ve(s,pa);D.valueFormat=null,D.disabled=!1,D.readonly=p.value||A.value,D.visible=M.value,D["onUpdate:visible"]=z,D.modelValue=g.value,D["onUpdate:modelValue"]=x,D.onClear=oe;const L={};if(d.slots.top){const se=d.slots.top();L.top=()=>se}if(d.slots.bottom){const se=d.slots.bottom();L.default=()=>se}const J=(0,t.h)(o,D,L);I.hide=()=>[J];const ae={...ve(s,Se,be),ref:h};return s.prop&&(ae.prop=`${s.prop}_item`),a(ae,I)}}}}var{create:Sm,componentName:km,scope:wm}=ee("date-item"),Cm=Sm(vm(km,wm,Ie,Me,re.CircleClose,re.Date,el,!1)),ha=Cm,ce={format(e,n="YYYY-MM-DD"){return wt.format(e,n)},parser(e,n){return wt.parser(e,n)},isLeapYear:function(e){return wt.isLeapYear(e)},getWhatDay:function(e,n,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+a).getDay()]},getMonthPreDay:function(e,n){let a=new Date(e+"/"+n+"/01").getDay();return a==0&&(a=7),a},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a));let i=r.getDay();const o=r.getDate();let c=6-i;return l!==0&&(i=i==0?7:i,c=7-i),Math.ceil((o+c)/7)},getYearWeek:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a)),i=new Date(Number(e),0,1),o=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((o+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a)),i=r.getTime();let o=r.getDay();if(l===0){const s=i-o*864e5,d=i+(6-o)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{o=o==0?7:o;const c=1440*60*1e3,s=i-(o-1)*c,d=i+(7-o)*c;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=ce.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ce.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Nm,scope:Am}=ee("calendar-pane"),Bm=Nm({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},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ce.getDay(0)},endDate:{type:String,default:ce.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a,expose:l}){const{toLocaleRefs:r,t:i}=(0,ye.useFoxI18n)(Am),o=r(e,["title","confirmText","startText","endText","today"]),c=JSON.parse(i("weekdays")),s=(0,t.ref)([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.ref)(0),A=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=(0,t.computed)(()=>a.btn),w=(0,t.computed)(()=>a["top-info"]),v=(0,t.computed)(()=>a["bottom-info"]),f=(0,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}),m=H=>H.split("-"),S=H=>ce.isEqual(f.currDate[0],H),B=H=>ce.isEqual(f.currDate[1],H),g=H=>f.currDate?.length>0?f.currDate?.some(q=>ce.isEqual(q,H)):!1,b=(H,q)=>q.curData[0]+"-"+q.curData[1]+"-"+ce.getNumTwoBit(+H.day),E=(H,q)=>{const K=b(H,q),{type:Y}=e;return H.type=="curr"?ce.isEqual(f.currDate,K)||(Y=="range"||Y=="week")&&(S(K)||B(K))||Y=="multiple"&&g(K)?`${f.dayPrefix}--active`:f.propStartDate&&ce.compareDate(K,f.propStartDate)||f.propEndDate&&ce.compareDate(f.propEndDate,K)?`${f.dayPrefix}--disabled`:(Y=="range"||Y=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ce.compareDate(f.currDate[0],K)&&ce.compareDate(K,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},V=()=>{const{type:H}=e;if(H=="range"&&f.chooseData.length==2||H!="range"){let q=f.chooseData.slice(0);H=="week"&&(q={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("choose",q),e.poppable&&n("update")}},N=(H,q,K=!1)=>{if(E(H,q)!=`${f.dayPrefix}--disabled`){const{type:Y}=e;let[G,le]=q.curData,U=[...q.curData];if(U[2]=ce.getNumTwoBit(Number(H.day)),U[3]=`${U[0]}-${U[1]}-${U[2]}`,U[4]=ce.getWhatDay(+U[0],+U[1],+U[2]),Y=="multiple")if(f.currDate?.length>0){let W;f.currDate?.forEach((I,D)=>{I==U[3]&&(W=D)}),K?f.chooseData.push([...U]):W!==void 0?(f.currDate.splice(W,1),f.chooseData.splice(W,1)):(f.currDate.push(U[3]),f.chooseData.push([...U]))}else f.currDate=[U[3]],f.chooseData=[[...U]];else if(Y=="range"){let W=Object.values(f.currDate).length;W==2||W==0?f.currDate=[U[3]]:ce.compareDate(f.currDate[0],U[3])?Array.isArray(f.currDate)&&f.currDate.push(U[3]):Array.isArray(f.currDate)&&f.currDate.unshift(U[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...U]]:ce.compareDate(f.chooseData[0][3],U[3])?f.chooseData=[...f.chooseData,[...U]]:f.chooseData=[[...U],...f.chooseData]}else if(Y=="week"){let W=ce.getWeekDate(G,le,H.day,e.firstDayOfWeek);f.propStartDate&&ce.compareDate(W[0],f.propStartDate)&&W.splice(0,1,f.propStartDate),f.propEndDate&&ce.compareDate(f.propEndDate,W[1])&&W.splice(1,1,f.propEndDate),f.currDate=W,f.chooseData=[ce.formatResultDate(W[0]),ce.formatResultDate(W[1])]}else f.currDate=U[3],f.chooseData=[...U];if(!K){let W=f.chooseData;Y=="week"&&(W={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("select",W),(e.isAutoBackFill||!e.poppable)&&V()}}},C=H=>{let[q,K,Y]=H;return{date:H,monthWeekNum:ce.getMonthWeek(q,K,Y,e.firstDayOfWeek),yearWeekNum:ce.getYearWeek(q,K,Y,e.firstDayOfWeek)}},M=H=>{const q=H=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let K=parseInt(q.curData[0]),Y=parseInt(q.curData[1].toString().replace(/^0/,""));switch(H){case"prev":Y==1&&(K-=1),Y=Y==1?12:--Y;break;case"next":Y==12&&(K+=1),Y=Y==12?1:++Y;break}return[K+"",ce.getNumTwoBit(Y),ce.getMonthDays(String(K),String(Y))+""]},j=(H,q,K)=>{let{year:Y,month:G}=K;return q=="prev"&&H>=7&&(H-=7),Array.from(Array(H),(le,U)=>({day:String(U+1),type:q,year:Y,month:G}))},$=(H,q,K,Y)=>{H=H-e.firstDayOfWeek;let{year:G,month:le}=K;return q=="prev"&&H>=7&&(H-=7),Array.from(Array(Y),(U,W)=>({day:String(W+1),type:q,year:G,month:le})).slice(Y-H)},z=(H,q)=>{const K=ce.getMonthPreDay(+H[0],+H[1]);let Y=Number(H[1])-1,G=Number(H[0]);Y<=0&&(Y=12,G+=1);const le=ce.getMonthDays(String(H[0]),String(H[1])),U=ce.getMonthDays(G+"",Y+""),W={year:H[0],month:H[1]},I={curData:H,title:i("monthTitle",{year:W.year,month:W.month}),monthData:[...$(K,"prev",{month:String(Y),year:String(G)},U),...j(le,"curr",W)],cssHeight:0,cssScrollHeight:0};I.cssHeight=39+64*(I.monthData.length>35?6:5);let D=0;f.monthsData.length>0&&(D=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),I.cssScrollHeight=D,q=="next"?(!f.endData||!ce.compareDate(`${f.endData[0]}-${f.endData[1]}-${ce.getMonthDays(f.endData[0],f.endData[1])}`,`${H[0]}-${H[1]}-${H[2]}`))&&f.monthsData.push(I):!f.startData||!ce.compareDate(`${H[0]}-${H[1]}-${H[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(I):f.unLoadPrev=!0},x=()=>{let H=e.startDate?e.startDate:ce.getDay(0),q=e.endDate?e.endDate:ce.getDay(365);f.propStartDate=H,f.propEndDate=q,f.startData=m(H),f.endData=m(q),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const K={year:Number(f.startData[0]),month:Number(f.startData[1])},Y={year:Number(f.endData[0]),month:Number(f.endData[1])};let G=Y.month-K.month;Y.year-K.year>0&&(G=G+12*(Y.year-K.year)),G<=0&&(G=1),z(f.startData,"next");let le=1;do z(M("next"),"next");while(le++<G);if(f.monthsNum=G,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(H&&ce.compareDate(f.currDate[0],H)&&f.currDate.splice(0,1,H),q&&ce.compareDate(q,f.currDate[1])&&f.currDate.splice(1,1,q),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let U=[],W={};f.currDate.forEach(I=>{H&&!ce.compareDate(I,H)&&q&&!ce.compareDate(q,I)&&(Object.hasOwnProperty.call(W,I)||(U.push(I),W[I]=I))}),f.currDate=[...U],f.defaultData=[...m(U[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[U,W,I]=m(f.currDate[0]);f.currDate=ce.getWeekDate(U,W,I,e.firstDayOfWeek),H&&ce.compareDate(f.currDate[0],H)&&f.currDate.splice(0,1,H),q&&ce.compareDate(q,f.currDate[1])&&f.currDate.splice(1,1,q),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(H&&ce.compareDate(f.currDate,H)?f.currDate=H:q&&!ce.compareDate(f.currDate,q)&&(f.currDate=q),f.defaultData=[...m(f.currDate)])};l({scrollToDate:H=>{ce.compareDate(H,f.propStartDate)?H=f.propStartDate:ce.compareDate(H,f.propEndDate)||(H=f.propEndDate);let q=m(H);f.monthsData.forEach((K,Y)=>{if(K.title==i("monthTitle",{year:q[0],month:q[1]})&&d.value){let G=f.monthsData[Y].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let le=0,U=setInterval(()=>{if(le++,d.value){let W=G/10;d.value.scrollTop=d.value.scrollTop+W}le>=10&&(clearInterval(U),d.value&&(d.value.scrollTop=f.monthsData[Y].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[Y].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let H=0,q=0;f.defaultData.length>0&&f.monthsData.forEach((G,le)=>{G.title==i("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(H=le),(e.type=="range"||e.type=="week")&&G.title==i("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(q=le)}),P(f.monthsNum,H),f.currentIndex=H,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(N({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),N({day:f.defaultData[5],type:"curr"},f.monthsData[q],!0)):e.type=="week"?N({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(G=>{let le=m(G),U=f.currentIndex;f.monthsData.forEach((W,I)=>{W.title==i("monthTitle",{year:le[0],month:le[1]})&&(U=I)}),N({day:le[2],type:"curr"},f.monthsData[U],!0)}):N({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let K=f.monthsData[f.monthsData.length-1],Y=K.cssHeight+K.cssScrollHeight;Ge(()=>{d?.value&&h?.value&&p?.value&&(y.value=d.value.clientHeight,h.value.style.height=`${Y}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Y/(f.monthsNum+1))}});const P=(H,q)=>{H>=3?q>0&&q<H?f.defaultRange=[q-1,q+3]:q==0?f.defaultRange=[q,q+4]:q==H&&(f.defaultRange=[q-2,q+2]):f.defaultRange=[0,H+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},_=(H,q)=>(e.type=="range"||e.type=="week")&&H.type=="curr"&&E(H,q)=="fox-calendar__day--active",te=(H,q)=>_(H,q)&&S(b(H,q)),oe=(H,q)=>f.currDate.length>=2&&B(b(H,q))?_(H,q):!1,Q=()=>{if(f.currDate.length>=2)return ce.isEqual(f.currDate[0],f.currDate[1])},Z=H=>{const q=`${H.year}-${H.month}-${Number(H.day)<10?"0"+H.day:H.day}`;return ce.isEqual(q,ce.date2Str(new Date))},O=H=>{if(f.monthsData.length<=1)return;const q=H.target.scrollTop;let K=Math.floor(q/f.avgHeight);if(K==0)q>=f.monthsData[K+1].cssScrollHeight&&(K+=1);else if(K>0&&K<f.monthsNum-1)q>=f.monthsData[K+1].cssScrollHeight&&(K+=1),q<f.monthsData[K].cssScrollHeight&&(K-=1);else{const Y=Math.round(q+y.value);Y<f.monthsData[K].cssScrollHeight+f.monthsData[K].cssHeight&&q>f.monthsData[K-1].cssScrollHeight&&(K-=1),K+1<=f.monthsNum&&Y>=f.monthsData[K+1].cssScrollHeight+f.monthsData[K+1].cssHeight&&(K+=1),K>=1&&q<f.monthsData[K-1].cssScrollHeight&&(K-=1)}f.currentIndex!==K&&(f.currentIndex=K,P(f.monthsNum,K)),f.yearMonthTitle=f.monthsData[K].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),x()};return x(),(0,t.watch)(()=>e.defaultValue,H=>{H&&e.poppable&&ne()}),{weeks:s,compConthsData:A,showTopBtn:k,topInfo:w,bottomInfo:v,rangeTip:Q,mothsViewScroll:O,getClass:E,isStartTip:te,isEndTip:oe,chooseDay:N,isCurrDay:Z,confirm:V,months:d,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...o,monthsPanel:h,weeksPanel:u,viewArea:p}}}),Tm={class:"fox-calendar__header"},Vm={key:0,class:"fox-calendar__header-title"},Em={key:1,class:"fox-calendar__header-slot"},$m={key:2,class:"fox-calendar__header-subtitle"},Dm={class:"fox-calendar__weekdays",ref:"weeksPanel"},Im={class:"fox-calendar__panel",ref:"monthsPanel"},qm={class:"fox-calendar__month-title"},Pm={class:"fox-calendar__days"},xm=["onClick"],Mm={class:"fox-calendar__day-value"},zm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Rm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Fm={key:2,class:"fox-calendar__day-tips--curr"},Lm={key:4,class:"fox-calendar__day-tip"},Om={key:0,class:"fox-calendar__footer"};function Km(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Tm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",$m,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Dm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:c},(0,t.toDisplayString)(o),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...o)=>e.mothsViewScroll&&e.mothsViewScroll(...o))},[(0,t.createElementVNode)("view",Im,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:c},[(0,t.createElementVNode)("view",qm,(0,t.toDisplayString)(o.title),1),(0,t.createElementVNode)("view",Pm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,o)]),onClick:h=>e.chooseDay(s,o)},[(0,t.createElementVNode)("view",Mm,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",zm,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,o)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,o)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,xm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...o)=>e.confirm&&e.confirm(...o))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Um=ie(Bm,[["render",Km]]),Hm=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Ce,Ze({...e},{poppable:!1}),n):n?.default?.()??null}}),jm=Hm,Wm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),tl={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]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:Ym}=ee("calendar"),Xm=Ym({components:{Wrapper:jm,CalendarPane:Um},props:{...tl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a,expose:l}){const r=(0,t.computed)(()=>a.btn),i=(0,t.computed)(()=>a["top-info"]),o=(0,t.computed)(()=>a.day),c=(0,t.computed)(()=>a["bottom-info"]),s=(0,t.ref)(null),d=w=>{s.value?.scrollToDate(w)},h=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,w=>{w&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:h});const u=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:u,close:p,select:w=>{n("select",w)},choose:w=>{p(),n("choose",w)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:o,bottomInfo:c}}});function Qm(e,n,a,l,r,i){const o=(0,t.resolveComponent)("CalendarPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{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},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var nl=ie(Xm,[["render",Qm]]),Ci={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]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},ga=(e,n)=>{let a;return We(e)?a=e:typeof e=="string"&&we(e)>0?a=ce.parser(e,n):a=new Date,a},Ct=(e,n,a)=>(We(n)||(n=new Date),ce.format(n,a)),Nt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ce.date2Str(e),ce.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Gm={...be,...Se,...tl,...Ci};function _m(e,n,a,l,r,{CloseIcon:i,MarkIcon:o},c=!1){return{props:Gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:u,readonly:p,browse:y}=Ve(s),{emitEvent:A,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,ye.useFoxI18n)(n),v=w(s,["placeholder"]),f=(0,t.ref)(!1),m=(0,t.computed)(()=>s.type==="range"),S=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),B=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},g=(q,K="one",Y="YYYY-MM-DD")=>{if(Wm(q)){B();return}if(m.value&&Array.isArray(q)&&q.length==2){let G,le;typeof q[0]=="string"?(G=ga(q[0],Y),le=ga(q[1],Y)):(G=q[0],le=q[1]);let U=Nt(G),W=Nt(le);(S.startDate===null||S.startDate.getTime()!==G.getTime()||S.endDate?.getTime()!==le.getTime())&&(S.startDate=G,S.startArray=U,S.endDate=le,S.endArray=W)}else{let G;typeof q=="string"?G=ga(q,Y):G=q;let le=Nt(G);(S.startDate===null||S.startDate.getTime()!==G.getTime())&&(S.startDate=G,S.startArray=le)}};g(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,q=>{g(q,s.type,s.valueFormat),A("setValue",q)});const b=(0,t.computed)(()=>{if(S.startDate===null)return"";if(m.value){let q=Ct(s,S.startDate,s.format),K=Ct(s,S.endDate,s.format);return`${q} ${s.rangeSeparator} ${K}`}else{let q=Ct(s,S.startDate,s.format);return s.showWeek&&(q=`${q} ${S.startArray[4]}`),q}}),E=(0,t.computed)(()=>S.startDate===null?null:m.value?[ce.date2Str(S.startDate),ce.date2Str(S.endDate??new Date)]:ce.date2Str(S.startDate)),V="fox-input-item",N=(0,t.computed)(()=>({[V]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>s.textAlign),"textAlign"),M=(0,t.computed)(()=>{const q={};return C.value&&(q["text-align"]=C.value),q}),j=(0,t.ref)(!1),$=()=>{p.value||u.value||(j.value=!0)},z=q=>{j.value=q},x=q=>{if(q){if(m.value&&Array.isArray(q)){let K=q[0],Y=de(K[0]),G=de(K[1]),le=de(K[2]),U=new Date(Y,G-1,le),W=q[1];Y=de(W[0]),G=de(W[1]),le=de(W[2]);let I=new Date(Y,G-1,le);S.startDate=U,S.startArray=Nt(U),S.endDate=I,S.endArray=Nt(I),s.valueFormat?A("update:modelValue",[Ct(s,U,s.valueFormat),Ct(s,I,s.valueFormat)],{}):A("update:modelValue",[U,I],{})}else{let K=q,Y=de(K[0]),G=de(K[1]),le=de(K[2]),U=new Date(Y,G-1,le);S.startDate=U,S.startArray=Nt(U),s.valueFormat?A("update:modelValue",Ct(s,U,s.valueFormat),{}):A("update:modelValue",U,{})}A("change",q,{})}},F=q=>{let K=q.target.value;f.value=!0,A("focus",K,q)},R=q=>{setTimeout(()=>{f.value=!1},0);let K=q.target.value;s.maxLength&&K.length>Number(s.maxLength)&&(K=K.slice(0,Number(s.maxLength))),A("blur",K,q)},X=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),P=(0,t.computed)(()=>we(s.unit)>0),_=(0,t.computed)(()=>we(s.unit)>0&&!f.value),te=(0,t.computed)(()=>({hidden:!_.value})),oe=q=>{B(),A("update:modelValue",null,q),A("change","",q),A("clear","")},Q=(0,t.computed)(()=>s.clearable&&!u.value&&!p.value),Z=(0,t.computed)(()=>{let q=we(b.value)>0;return s.clearable&&q&&f.value}),O=q=>{Z.value?oe(q):$()},ne=(0,t.computed)(()=>Z.value&&Q.value?i:o),H=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(y.value==="on"&&(p.value||u.value))return r(b.value,d.slots);const q={class:N.value,style:M.value,type:"text",maxlength:s.maxLength,placeholder:v.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:$,onFocus:F,onBlur:R};c&&(q.disabled=!0);const K=[],Y=(0,t.h)("input",q);K.push(Y);const G=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),U=(0,t.h)("view",{class:H.value,onClick:O},{default:()=>[le]});if(G.push(U),P.value){const se=(0,t.h)("view",{class:te.value},[s.unit]);G.push(se)}const W=(0,t.h)("view",{class:X.value},{default:()=>G});K.push(W);const I={default:()=>K};I.label=d.slots.default,I.prepend=d.slots.prepend,I.append=d.slots.append,I.fixedPreTip=d.slots.fixedPreTip,I.fixedTip=d.slots.fixedTip;const D=ve(s,tl);D.visible=j.value,D["onUpdate:visible"]=z,D["default-value"]=E.value,D.onChoose=x;const L={};if(d.slots.btn){const se=d.slots.btn();L.btn=()=>se}d.slots.day&&(L.day=d.slots.day),d.slots.topInfo&&(L.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(L.bottomInfo=d.slots.bottomInfo);const J=(0,t.h)(a,D,L);I.hide=()=>[J];const ae={...Ze(s,tl,Ci),ref:h};return s.prop&&(ae.prop=`${s.prop}_item`),l(ae,I)}}}}var{componentName:Zm,create:Jm,scope:e0}=ee("calendar-item"),t0=Jm(_m(Zm,e0,nl,Ie,Me,{CloseIcon:re.CircleClose,MarkIcon:re.Date},!1)),ya=t0,n0={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 l0(e,{CheckNormal:n,Checked:a}){return{props:{...n0},setup(l,{emit:r,slots:i}){const o=(0,t.inject)("parent",null),c=In(),s=(0,t.computed)(()=>o.label.value===l.label),d=(0,t.computed)(()=>o.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const w=ue(l.iconSize),v=l.checkedIcon??c.radio.Checked??a;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(v,{width:w,height:w,class:k})}}else{if(i.icon)return i.icon();{const w=ue(l.iconSize),v=l.icon??c.radio.CheckNormal??n;return k.push("fox-radio__icon--unchecked"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(v,{width:w,height:w,class:k})}}},u=()=>{const k=[`${e}__label`];return l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},p=()=>{const k=[`${e}__button`];return s.value&&k.push(`${e}__button--active`),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},y=()=>{s.value||l.disabled||l.readonly||o.updateValue(l.label)},A=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${A?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?p():A?[u(),h()]:[h(),u()]])}}}var{componentName:a0,create:o0}=ee("radio"),r0=o0(l0(a0,{CheckNormal:re.CheckNormal,Checked:re.CheckChecked})),ll=r0,{componentName:Ni,create:i0}=ee("radio-group"),s0=i0({props:{prop:{type:[String]},modelValue:{type:[String,Number,Boolean],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:a,exposeApi:l}=Fe({context:n},e.prop),{slots:r}=n,i=o=>a("update:modelValue",o);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,o=>a("change",o)),l(),()=>{const o={};return e.textAlign&&(o["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ni} ${Ni}--${e.direction}`,style:o},r.default?.())}}}),al=s0;function Ai(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(ol(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(Qt(e,i)===a)return r}return-1}function ol(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function c0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function u0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var d0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function f0(){return new d0(st())}function m0(e){return{text:e,value:e}}var Bi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},p0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},h0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},g0={...be,...Se,...Bi,...p0,...h0};function y0(e,n,a,l,r,i){return{props:g0,emits:["change","update:modelValue","setValue"],setup(o,c){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:u,readonly:p,browse:y}=Ve(o),{emitEvent:A,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return o},context:c,get templateRefProxy(){return s.value}},o.prop??c.attrs.name),w=Te((0,t.computed)(()=>o.textAlign),"textAlign"),v=f0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof o.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(o.sourceFilter):f.value);(0,t.watch)([()=>o.source,()=>o.params],async([E,V])=>{if(E){const N=await v.load("radio",E,V);N.length>0?typeof N[0]=="string"?f.value=N.map(C=>m0(C)):f.value=N:f.value=[]}},{immediate:!0});let S=(0,t.ref)(-1);(0,t.watch)([()=>o.modelValue,()=>m.value],async([E,V])=>{S.value=Ai(o,V,E,o.valueType),A("setValue",E)},{deep:!0});const B=(0,t.computed)(()=>{if(!o.source)return o.modelValue;if(S.value===-1)return null;const E=m.value[S.value];return Qt(o,E)}),g=E=>{let V=null,N=null;if(m.value.length>0){let C=Ai(o,m.value,E,"value");S.value=C,C>=0&&(N=m.value[C],o.valueType==="text"?V=ol(o,N):o.valueType==="item"?V=N:V=Qt(o,N))}else V=E;A("update:modelValue",V),A("change",V,N)},b=()=>{let E=null,V=null;if(m.value.length>0&&S.value!==-1){let N=m.value[S.value];o.valueType==="text"?E=ol(o,N):o.valueType==="item"?E=N:E=Qt(o,N)}A("update:modelValue",E),A("change",E,V)};if(k({clear(){S.value!==-1&&(S.value=-1,b())},setDisabled:E=>{d.value=E},setReadonly:E=>{u.value=E}}),o.source){const E=()=>{const V=[],N=ve(o,Bi);return m.value.forEach((C,M)=>{const j=Qt(o,C),$=c0(o,C);let z={...N,label:j,disabled:$};const x=u0(o,C,M);z={...z,...x},h.value&&(z.disabled=!0),p.value&&(z.readonly=!0);const F={};if(c.slots.icon&&(F.icon=c.slots.icon),c.slots.checkedIcon&&(F.checkedIcon=c.slots.checkedIcon),typeof c.slots.text=="function"){const X=c.slots.text(C);F.default=()=>[X]}else{const X=ol(o,C);F.default=()=>X}let R=(0,t.h)(i,z,F);V.push(R)}),V};return()=>{if(y.value==="on"&&(p.value||h.value))return l(B.value,c.slots,m.value);const V=E(),N=(0,t.h)(r,{class:`${e}`,direction:o.direction,textPosition:o.textPosition,textAlign:w.value,modelValue:B.value,"onUpdate:modelValue":g},{default:()=>V}),C={default:()=>N};C.label=c.slots.default,C.prepend=c.slots.prepend,C.append=c.slots.append,C.fixedPreTip=c.slots.fixedPreTip,C.fixedTip=c.slots.fixedTip;const M={...ve(o,Se,be),ref:s};return o.prop&&(M.prop=`${o.prop}_item`),a(M,C)}}else return()=>{const E=c.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:o.direction,textPosition:o.textPosition,textAlign:w.value,modelValue:B,"update:modelValue":g},{default:()=>E})}}}}var{componentName:b0,create:v0,scope:S0}=ee("radio-item"),k0=v0(y0(b0,S0,Ie,Me,al,ll)),ba=k0,w0={prop:{type:[String]},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"}},C0=(e,{CheckNormal:n,Checked:a,Indeterminate:l})=>({props:w0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:o,exposeApi:c}=Fe({context:i},r.prop),s=In(),{slots:d}=i,h=(0,t.inject)("parent",null),u=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,B=>{u.partialSelect=B});const p=(0,t.computed)(()=>!!h),y=(0,t.computed)(()=>p.value?h.value.value.includes(r.label):!!r.modelValue),A=(0,t.computed)(()=>p.value?h.position:r.textPosition);let k="";const w=(B,g)=>{k="click",o("update:modelValue",B),o("change",B,g)};(0,t.watch)(()=>r.modelValue,B=>{k=="click"?k="":o("change",B)});const v=()=>{const B=[];if(u.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const g=ue(r.iconSize),b=r.indeterminateIcon??s.checkbox.Indeterminate??l;return B.push("fox-checkbox__icon--indeterminate"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:B})}}else if(y.value){if(d.checkedIcon)return d.checkedIcon();{const g=ue(r.iconSize),b=r.checkedIcon??s.checkbox.Checked??a;return B.push("fox-checkbox__icon"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:B})}}else{if(d.icon)return d.icon();{const g=ue(r.iconSize),b=r.icon??s.checkbox.CheckNormal??n;return B.push("fox-checkbox__icon--unchecked"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:B})}}},f=()=>{const B=[`${e}__label`];return r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},m=()=>{const B=[`${e}__button`];return y.value&&B.push(`${e}__button--active`),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},S=B=>{if(!(r.disabled||r.readonly)){if(y.value&&u.partialSelect){u.partialSelect=!1,w(y.value,d.default?.()[0].children);return}if(w(!y.value,d.default?.()[0].children),p.value){const g=h.value.value,b=h.max.value,{label:E}=r,V=g.indexOf(E);V>-1?g.splice(V,1):V<=-1&&(g.length<b||!b)&&g.push(E),h.updateValue(g)}}};return(0,t.onMounted)(()=>{p.value&&h.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(r)}),c(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${A.value==="left"?`${e}--reverse`:""}`,onClick:S},[r.shape=="button"?m():[v(),f()]])}}),{componentName:N0,create:A0}=ee("checkbox"),B0=A0(C0(N0,{CheckNormal:re.CheckNormal,Checked:re.Checked,Indeterminate:re.CheckDisabled})),rl=B0,{create:T0,componentName:Ti}=ee("checkbox-group"),V0={prop:{type:String},modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},E0=T0({props:V0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:a,exposeApi:l}=Fe({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),o=u=>{i.children.push(u)},c=u=>{const p=i.children.findIndex(y=>y===u);p!==-1&&i.children.splice(p,1)},s=u=>{a("update:modelValue",u),a("change",u)},d=u=>{const p=[];u&&i.children.forEach(y=>{y?.disabled||p.push(y?.label)}),a("update:modelValue",p)},h=()=>{a("update:modelValue",i.children.filter(u=>u?.disabled?!1:!e.modelValue.includes(u.label)).map(u=>u.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:o,unlink:c}),(0,t.watch)(()=>e.modelValue,u=>{a("change",u)}),l({toggleAll:d,toggleReverse:h}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ti} ${Ti}--${e.direction}`,style:u},r.default?.())}}}),il=E0;function Vi(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(va(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(sl(e,i)===a)return r}return-1}function va(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function sl(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function D0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var I0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function q0(){return new I0(st())}function P0(e){return{text:e,value:e}}var x0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ei={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},M0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},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:[]},separator:{type:[String],required:!1,default:", "}},z0={...be,...Se,...x0,...Ei,...M0};function R0(e,n,a,l,r,i){return{props:z0,emits:["change","update:modelValue","setValue"],setup(o,c){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:u,readonly:p,browse:y}=Ve(o),A=Te((0,t.computed)(()=>o.textAlign),"textAlign"),{emitEvent:k,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return o},context:c,get templateRefProxy(){return s.value}},o.prop??c.attrs.name),v=q0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof o.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(o.sourceFilter):f.value);(0,t.watch)([()=>o.source,()=>o.params],async([E,V])=>{if(E){const N=await v.load("checkbox",E,V);N.length>0?typeof N[0]=="string"?f.value=N.map(C=>P0(C)):f.value=N:f.value=[]}},{immediate:!0});const S=(0,t.ref)([]);(0,t.watch)([()=>o.modelValue,()=>m.value],async([E,V])=>{const N=[];Array.isArray(E)&&E.forEach(C=>{let M=Vi(o,V,C,o.valueType);M!==-1&&N.push(M)}),!De(N,S.value)&&(S.value=N,k("setValue",N))},{deep:!0});const B=(0,t.computed)(()=>{if(!o.source)return o.modelValue;let E=[];return S.value.forEach(V=>{let N=m.value[V];E.push(sl(o,N))}),E}),g=E=>{let V=[],N=[];if(m.value.length>0){const C=[];Array.isArray(E)&&E.forEach(M=>{let j=Vi(o,m.value,M,"value");j!==-1&&C.push(j);const $=m.value[j];N.push($),o.valueType==="text"?V.push(va(o,$)):o.valueType==="item"?V.push($):V.push(sl(o,$))}),S.value=C}else V=E;k("update:modelValue",V),k("change",V,N)},b=(0,t.ref)();if(w({toggleAll:E=>{b.value.toggleAll(E)},toggleReverse:()=>{b.value.toggleReverse()},setDisabled:E=>{d.value=E},setReadonly:E=>{u.value=E}}),o.source){const E=()=>{const V=[],N=ve(o,Ei);return m.value.forEach((C,M)=>{const j=sl(o,C),$=$0(o,C);let z={...N,label:j,disabled:$};const x=D0(o,C,M);z={...z,...x},h.value&&(z.disabled=!0),p.value&&(z.readonly=!0);const F={};if(c.slots.icon&&(F.icon=c.slots.icon),c.slots.checkedIcon&&(F.checkedIcon=c.slots.checkedIcon),c.slots.indeterminateIcon&&(F.indeterminateIcon=c.slots.indeterminateIcon),typeof c.slots.text=="function"){const X=c.slots.text(C);F.default=()=>[X]}else{const X=va(o,C);F.default=()=>X}let R=(0,t.h)(i,z,F);V.push(R)}),V};return()=>{if(y.value==="on"&&(p.value||h.value))return l(B.value,c.slots,m.value,o.separator);const V=E(),N=(0,t.h)(r,{class:`${e}`,ref:b,direction:o.direction,max:o.max,textPosition:o.textPosition,modelValue:B.value,"onUpdate:modelValue":g},{default:()=>V}),C={default:()=>N};C.label=c.slots.default,C.prepend=c.slots.prepend,C.append=c.slots.append,C.fixedPreTip=c.slots.fixedPreTip,C.fixedTip=c.slots.fixedTip;const M={...ve(o,Se,be),ref:s};return o.prop&&(M.prop=`${o.prop}_item`),a(M,C)}}else return()=>{const E=c.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:b,direction:o.direction,max:o.max,textPosition:o.textPosition,textAlign:A.value,modelValue:B,"onUpdate:modelValue":g},{default:()=>E})}}}}var{componentName:F0,create:L0,scope:O0}=ee("checkbox-item"),K0=L0(R0(F0,O0,Ie,Me,il,rl)),Sa=K0,ka={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:U0,create:H0}=ee("switch"),j0=H0({components:{Loading1:re.Loading1},props:{...ka},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const c=U0;return{[c]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${c}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let i="";const o=c=>{if(e.disabled||e.loading)return;i="click";const s=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,c)};return(0,t.watch)(()=>e.modelValue,c=>{i=="click"?i="":n("change",c)}),{classes:l,style:r,isActive:a,onClick:o}}}),W0={class:"fox-switch-button"};function Y0(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",W0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(o,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var cl=ie(j0,[["render",Y0]]),X0={...be,...Se,...ka};function Q0(e,n,a,l,r){return{props:X0,emits:["change","update:modelValue","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:A}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=e,w=xe(i,"modelValue",null,y),v=f=>{w.value=f,y("update:modelValue",f,{}),y("change",f,{})};return A({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(w.value,o.slots);const f={...ve(i,ka),disabled:d.value||u.value,value:w.value,"onUpdate:modelValue":v},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};B.label=o.slots.default,B.fixedPreTip=o.slots.fixedPreTip,B.fixedTip=o.slots.fixedTip;const g={...ve(i,Se,be),ref:c};return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,a(g,B)}}}}var{componentName:G0,create:_0,scope:Z0}=ee("switch-item"),J0=_0(Q0(G0,Z0,Ie,Me,cl)),wa=J0,ep={...be,...Se,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function tp(e,n,a,l){return{props:ep,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:o,disabled:c,readonly:s}=Ve(r),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return c.value},get props(){return r},context:i,get templateRefProxy(){return o.value}},r.prop??i.attrs.name),{toLocaleRefs:u}=(0,ye.useFoxI18n)(n),p=u(r,["placeholder"]),y=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,$=>{y.value=$,d("change",$)});const A=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!c.value&&pe(y.value),"is-disabled":c.value,"is-readonly":s.value})),w=Te((0,t.computed)(()=>r.textAlign),"textAlign"),v=(0,t.computed)(()=>{const $={};return w.value&&($["text-align"]=w.value),$}),f=(0,t.computed)(()=>!pe(r.modelValue)||i.slots.main?!0:!!pe(r.desc)),m=(0,t.computed)(()=>pe(y.value)?p.placeholder.value:y.value),S=(0,t.computed)(()=>!pe(r.desc)||i.slots.sub),B=(0,t.computed)(()=>({[`${e}__sub`]:!0})),g=(0,t.computed)(()=>{const $={};return w.value&&($["text-align"]=w.value),$}),b=()=>{d("focus",y.value)},E=()=>{d("blur",y.value)},V=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":c.value,"is-readonly":s.value})),N=(0,t.computed)(()=>we(r.unit)>0),C=$=>{c.value==!0||s.value==!0||d("click")},M=(0,t.computed)(()=>r.icon??a),j=(0,t.computed)(()=>({action:!0}));return h(),()=>{const $=[];if(typeof i.slots.content=="function"){const te=i.slots.content();$.push(te)}else{const te=[];if(f.value){const Q={tabIndex:0,class:k.value,style:v.value,onFocus:b,onBlur:E};let Z=null;i.slots.main?Z=(0,t.h)("view",Q,[i.slots.main(m.value)]):Z=(0,t.h)("view",Q,[m.value]),te.push(Z)}if(S.value){const Q={tabIndex:0,class:B.value,style:g.value,onFocus:b,onBlur:E};let Z=null;i.slots.sub?Z=(0,t.h)("view",Q,[i.slots.sub(r.desc)]):Z=(0,t.h)("view",Q,[r.desc]),te.push(Z)}const oe=(0,t.h)("view",{class:A.value,onClick:C},te);$.push(oe)}const z=[],x=ue(r.iconSize);let F=i.slots.icon;if(!F){const te={width:x,height:x,class:["action-icon"]};F=(0,t.h)(M.value,te)}const R=(0,t.h)("view",{class:j.value,onClick:C},{default:()=>[F]});if(z.push(R),N.value){const te=(0,t.h)("view",{},[r.unit]);z.push(te)}const X=(0,t.h)("view",{class:V.value},{default:()=>z});$.push(X);const P={default:()=>$};P.label=i.slots.default,P.prepend=i.slots.prepend,P.append=i.slots.append,P.fixedPreTip=i.slots.fixedPreTip,P.fixedTip=i.slots.fixedTip;const _={...ve(r,Se,be),ref:o};return r.prop&&(_.prop=`${r.prop}_item`),l(_,P)}}}}var{componentName:np,create:lp,scope:ap}=ee("link-item"),op=lp(tp(np,ap,re.ArrowRight,Ie)),Ca=op,Na={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:rp,componentName:ip}=ee("rate"),sp=rp({props:{...Na},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[ip]:!0})),i=y=>{n("update:modelValue",y),n("change",y)},o=(y,A)=>{if(e.disabled||e.readonly)return;let k=0;A===1&&e.modelValue===A||(k=A,e.allowHalf&&y==2&&(k-=.5)),i(k)},c=(y,A,k)=>{let w=0;for(let v=A.value.length-1;v>=0;v--){const f=A.value[v];if(y>f.offsetLeft){k?w=v+(y>f.offsetLeft+f.clientWidth/2?1:.5):w=v+1;break}}return w},s=at(),d={onTouchStart(y){!e.touchable||e.readonly||s.start(y)},onTouchMove(y){e.touchable&&(s.move(y),s.isHorizontal()&&l.value&&(y.preventDefault(),i(c(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),u=(0,t.computed)(()=>e.customIcon??re.StarFillN);return{classes:r,...d,onClick:o,toPxString:he,renderIcon:(y,A)=>(0,t.h)(y,A),rateRefs:l,refRandomId:h,slots:a,customIcon:u}}}),cp=["id"],up={class:"fox-rate-item__icon--full"},dp={key:0,class:"fox-rate-item__icon--half"},fp={key:1,class:"fox-rate-item__icon--half"};function mp(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),o=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:o,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+o,style:(0,t.normalizeStyle)(o<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",up,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:o<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||o>e.modelValue}]),onClick:c=>e.onClick(1,o)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>o?((0,t.openBlock)(),(0,t.createElementBlock)("view",dp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:o<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:c=>e.onClick(2,o)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<o?((0,t.openBlock)(),(0,t.createElementBlock)("view",fp,[((0,t.openBlock)(),(0,t.createBlock)((0,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:c=>e.onClick(2,o)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,cp))),128))],34)}var ul=ie(sp,[["render",mp]]),pp={...be,...Se,...Na};function hp(e,n,a,l,r){return{props:pp,emits:["change","update:modelValue","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:A}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=e,w=xe(i,"modelValue",null,y),v=f=>{w.value=f,y("update:modelValue",f,{}),y("change",f,{})};return A({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(w.value,o.slots);const f={...ve(i,Na),disabled:d.value,readonly:u.value,value:w.value,"onUpdate:modelValue":v},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};if(o.slots.default){const b=o.slots.default();B.label=()=>b}const g=ve(i,Se,be);return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,g.ref=c,a(g,B)}}}}var{componentName:gp,create:yp,scope:bp}=ee("rate-item"),vp=yp(hp(gp,bp,Ie,Me,ul)),Aa=vp,Sp=/scroll|auto|overlay/i,$i=window;function kp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ba(e,n=$i){let a=e;for(;a&&a!==n&&kp(a);){const{overflowY:l}=window.getComputedStyle(a);if(Sp.test(l))return a;a=a.parentNode}return n}function Di(e,n=$i){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=Ba(e.value,n))}),a}var Ii=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,wp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},containerClass:{type:[String]}};function Cp(e,n,a){return{props:wp,emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const o=e,{toLocaleRefs:c}=(0,ye.useFoxI18n)(n),s=c(l,["pullText","loadText","noMoreText"]),d=(0,t.ref)(),h=Di(d),u=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),p=(0,t.computed)(()=>({[o]:!0})),y=(0,t.computed)(()=>{const S=[`${o}__container`];return l.containerClass&&S.push(l.containerClass),S}),A=S=>S?S.offsetTop+A(S.offsetParent):0,k=()=>{let S=0,B=0,g="down";if(h.value==window){const b=Ii();d.value&&(S=A(d.value)+d.value.offsetHeight-b-window.innerHeight),B=b}else{const{scrollHeight:b,clientHeight:E,scrollTop:V}=h.value;S=b-E-V,B=V}return u.beforeScrollTop>B?g="up":g="down",u.beforeScrollTop=B,r("scroll-change",B),S<=l.threshold&&g=="down"},w=()=>{Ge(()=>{if(!k()||!l.hasMore||u.isInfiniting)return!1;u.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},v=()=>{h.value&&h.value.addEventListener("scroll",w,l.useCapture)},f=()=>{h.value&&h.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{v(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{f()});const m=(0,t.ref)(!1);return(0,t.onActivated)(()=>{m.value&&(m.value=!1,v())}),(0,t.onDeactivated)(()=>{m.value=!0,f()}),(0,t.watch)(()=>l.modelValue,S=>{S||(u.isInfiniting=!1)}),()=>{const S=(0,t.h)("view",{class:y.value},[i?.default?.()]),B=[];if(u.isInfiniting){let b=i?.loading?.()??null;if(!b){let V=i?.loadingIcon?.()??null;V||(V=(0,t.h)(a,{class:[`${o}__bottom-box__img`]}));const N=(0,t.h)("view",{class:`${o}__bottom-box__text`},[s.loadText.value]);b=[V,N]}const E=(0,t.h)("view",{class:`${o}__bottom-box`},b);B.push(E)}else if(!l.hasMore){let b=i?.finished?.()??null;b||(b=(0,t.h)("view",{class:`${o}__bottom-tips`},[s.noMoreText.value]),B.push(b))}const g=(0,t.h)("view",{class:`${o}__bottom`},B);return(0,t.h)("view",{class:p.value,ref:d},[S,g])}}}}var{componentName:Np,create:Ap,scope:Bp}=ee("infinite-loading"),Tp=Ap(Cp(Np,Bp,re.Loading)),dl=Tp,{componentName:Vp,create:Ep}=ee("button"),$p=Ep({components:{Loading:re.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:l,size:r,shape:i,disabled:o,loading:c,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!c.value&&!o.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=Vp;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${r.value}`]:r.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:h.value,[`${p}--disabled`]:o.value,[`${p}--loading`]:c.value}}),getStyle:(0,t.computed)(()=>{const p={};return s?.value&&(d.value?(p.color=s.value,p.background="#fff",s.value?.includes("gradient")||(p.borderColor=s.value)):(p.color="#fff",p.background=s.value)),p})}}}),Dp={class:"fox-button__wrap"};function Ip(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.createElementVNode)("view",Dp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var At=ie($p,[["render",Ip]]),qp={prop:{type:[String]},modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Pp=(e,n,a)=>({props:qp,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=Fe({context:r},l.prop),{toLocaleRefs:o}=(0,ye.useFoxI18n)(n),c=o(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),u=(0,t.computed)(()=>({background:l.inputBackground})),p=N=>{let C=N.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),i("update:modelValue",C,N),i("change",C,N)},y=(0,t.ref)({}),A=N=>{let C=N.target.value;d.active=!0,y.value=l.focusStyle,i("focus",C,N)},k=N=>{setTimeout(()=>{d.active=!1},0);let C=N.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),y.value={},i("blur",C,N)},w=N=>{i("update:modelValue","",N),i("change","",N),i("clear","")},v=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const N={};return v.value||(N.display="none"),N}),m=N=>{l.autoblur&&E.value?.blur(),(typeof N.cancelable!="boolean"||N.cancelable)&&N.preventDefault(),i("search",l.modelValue)},S=N=>{i("keyup-input",N)},B=N=>{i("click-input",N)},g=N=>{i("click-left-icon",l.modelValue,N)},b=(0,t.computed)(()=>({textAlign:l.inputAlign})),E=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&E.value.focus()});const V=()=>{const N=[];if(s.leftin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:g},[s.leftin()]);N.push($)}const C=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:E,style:b.value,type:l.inputType,maxlengt:l.maxLength,placeholder:c.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:p,onFocus:A,onBlur:k,onkeyup:S}),M=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:m},[C]);N.push(M);const j=[];if(l.clearable){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:w},[(0,t.h)(s?.clear?.()??l.clearIcon??a)]);j.push($)}if(s.rightin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);j.push($)}if(j.length>0){const $=(0,t.h)("view",{class:`${e}__input-inner-right`},j);N.push($)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...u.value,...y.value}},N)};return()=>{const N=[];if(l.label){const M=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);N.push(M)}if(s.leftout){const M=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);N.push(M)}const C=V();if(N.push(C),s.rightout){const M=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);N.push(M)}return(0,t.h)("view",{class:`${e}`,style:h.value},N)}}}),{componentName:xp,create:Mp,scope:zp}=ee("searchbar"),Rp=Mp(Pp(xp,zp,re.CircleClose)),fl=Rp,ml={prop:{type:[String]},poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Fp(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(pl(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(Pi(e,i)===a)return r}return-1}function pl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qi(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Pi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Lp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Op(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var Kp=class{scope;constructor(e){this.scope=e}async load(e,n,a,l,r,i,o){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof o=="function"&&(s=s.filter(o));let d=(a-1)*l,h=d+l;h>s.length&&(h=s.length);const u=s.slice(d,h);return{totalSize:s.length,page:u}}if(typeof n=="function")return await Reflect.apply(n,null,[a,l,r,i]);const c=lt(e,this.scope);return c===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):($e(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(c,null,[n,a,l,r]))}};function Up(){return new Kp(st())}function Hp(e,n,a,l,r,i,o,c,s,d,h){return{props:ml,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,p){const{emitEvent:y,exposeApi:A}=Fe({context:p},u.prop),{slots:k}=p,{toLocaleRefs:w}=(0,ye.useFoxI18n)(n),v=w(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),f=Up(),m=(0,t.ref)([]),S=(0,t.ref)(0),B=(0,t.ref)(""),g=(0,t.shallowRef)(null),b=(0,t.computed)(()=>{const U={};return u.params&&Object.assign(U,u.params),pe(B.value)||(U[`${u.searchKey}`]=B.value),g.value&&Object.assign(U,g.value),U});let E=!0;const V=async(U,W,I)=>{try{if(C.value===!1)return;let D=null;pe(B.value)||(D=J=>{const ae=pl(u,J);if(typeof ae=="string"&&ae.includes(B.value))return!0;const se=qi(u,J);return!!(typeof se=="string"&&se.includes(B.value))});const L=await f.load("actionsheet",U,W,I,b.value,E,D??void 0);E=!1,Array.isArray(L)?(m.value=L,S.value=1,C.value=!1):!Array.isArray(L.page)||L.page.length===0?(console.warn("[FoxUI] can not load more data"),C.value=!1):(Reflect.apply([].push,m.value,L.page),S.value=Math.ceil(m.value.length/u.pageSize),(L.totalSize&&m.value.length>=L.totalSize||I<L.page.length)&&(C.value=!1)),N.value=!1}catch(D){console.error("[FoxUI] ActionSheet load more data fail",D),C.value=!0,S.value=0,m.value=[]}setTimeout(()=>{y("loaded-data")},250)},N=(0,t.ref)(!1),C=(0,t.ref)(!0),M=async()=>{if(!u.source){N.value=!1;return}await V(u.source,S.value+1,u.pageSize)};let j=null;(0,t.watch)(B,(U,W)=>{j&&(clearTimeout(j),j=null),pe(U)&&!pe(W)&&(j=setTimeout(()=>{z()},u.searchDelayTriggerClear))});const $=()=>{C.value=!0,S.value=0,m.value=[],u.source&&M()},z=()=>{$()};(0,t.watch)([()=>u.source,()=>u.pageSize,()=>u.params],async([U,W,I])=>{u.source&&$()},{immediate:!0});const x=(0,t.computed)(()=>!u.multiple&&u.isAutoBackFill),F=(0,t.ref)([]);let R=null;const X=(0,t.ref)(u.visible);(0,t.watch)(()=>u.visible,U=>{X.value!==U&&(X.value=U),U?R=[...F.value]:R=null});const P=(U,W)=>{const I=[];return Array.isArray(U)||(U=[U]),U.forEach(D=>{let L=Fp(u,W,D,u.valueType);L!==-1&&I.push(L)}),De(I,F.value)?!1:(F.value=I,!0)};(0,t.watch)([()=>u.modelValue,()=>m.value],([U,W],[I,D])=>{P(U,W)&&te(_())},{deep:!0});const _=()=>{const U=[],W=[],I=[];for(let ae of F.value){const se=m.value[ae];W.push(se);const fe=pl(u,se);if(I.push(fe),u.valueType==="item")U.push(se);else if(u.valueType==="text")U.push(fe);else{const me=Pi(u,se);U.push(me)}}let D=null,L=null,J=null;return u.multiple?(D=U,L=I,J=W):(D=U[0]??null,L=I[0]??null,J=W[0]??null),{value:D,text:L,item:J}},te=U=>{y("update:modelValue",U.value),y("update:text",U.text),y("change",U.value,U.item,U.text)},oe=()=>{R&&(F.value=R)},Q=U=>{const W=F.value.indexOf(U);u.multiple?W===-1?F.value.push(U):F.value.splice(W,1):W===-1?F.value=[U]:F.value=[],(x.value||!u.poppable&&!u.showFooter)&&ne()},Z=U=>{X.value=U,y("update:visible",U)},O=()=>{const U=()=>{oe(),Z(!1)},W=u.beforeMethod??u.beforeClose;if(typeof W=="function"){const I=W("close");ft(I)?I.then(D=>{D!==!1&&U()}).catch(()=>{U()}):I!==!1&&U()}else U()},ne=()=>{const U=_(),W=()=>{te(U),Z(!1)},I=u.beforeMethod??u.beforeClose;if(typeof I=="function"){const D=I("confirm",U.value,U.item,U.text);ft(D)?D.then(L=>{L!==!1&&W()}).catch(()=>{W()}):D!==!1&&W()}else W()},H=()=>{let U=v.title.value??"";return k.title&&(U=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[U]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:O})])},q=()=>{let U=null;return k.search?U=k.search():U=(0,t.h)(i,{onSearch:$,placeholder:v.seachPlaceholder.value,disabled:u.disabled,modelValue:B.value,"onUpdate:modelValue":W=>{B.value=W}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[U])},K=(U,W,I,D,L)=>{if(k.optionLabel)return k.optionLabel({text:U,checked:W,disabled:I,subText:D,item:L});const J=[],ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[U]);if(J.push(ae),D){const se=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[D]);J.push(se)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},J)},Y=(U,W,I,D)=>k.optionIcon?k.optionIcon({checked:U,disabled:W,iconSize:I,item:D}):U?k.checkedIcon?k.checkedIcon({disabled:W,item:D}):(0,t.h)(u.checkedIcon??c,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:W,item:D}):(0,t.h)(u.icon??o,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}),G=()=>{const U=[];for(let W=0;W<m.value.length;W++){const I=m.value[W],D=pl(u,I),L=qi(u,I),J=["fox-actionsheet__list-item"],ae={};let se=Lp(u,I),fe=u.iconSize?ue(u.iconSize):null;const me=Op(u,I,W);me&&(se=se||me.disabled,me.class&&J.push(me.class),me.style&&Object.assign(ae,me.style)),se=!!(u.disabled||se);const Xe=F.value.includes(W);se&&J.push("is-disabled"),Xe&&J.push("is-checked");const Qe={class:J,style:ae,key:`${W}`,onClick:()=>{se||Q(W)}};let Re=[];if(k.option)Re.push(k.option({item:I,checked:Xe,disabled:se}));else{const L2=K(D,Xe,se,L,I);Re.push(L2);const O2=Y(Xe,se,fe,I);Re.push(O2),u.textPosition==="right"&&Re.reverse()}const un=(0,t.h)("view",Qe,Re);U.push(un)}return U},le=()=>{let U=[];if(k.buttons)U=k.buttons();else{const W=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:ne,disabled:u.disabled},{default:()=>v.confirmText.value});U.push(W)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[U])};return A({search:async(U=null,W=!0)=>{g.value=U&&(0,t.toRaw)(U),(0,t.triggerRef)(g),W&&(C.value=!0,S.value=0,m.value=[]),(0,t.nextTick)(()=>{M()})},clear:()=>{C.value=!0,S.value=0,m.value=[]},confirm:()=>{ne()},cancel:()=>{O()}}),()=>{const U=[];if(u.showHeader){const se=H();U.push(se)}if(u.showSearchbar){const se=q();U.push(se)}let W=null;if(k.content)W=k.content();else{const se=G();W=(0,t.h)(l,{hasMore:C.value,loadText:v.loadText.value,noMoreText:v.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":fe=>{N.value=fe},onLoadMore:M},{default:()=>se})}const I={};u.optionsHeight&&(I.height=u.optionsHeight);const D={"fox-actionsheet__list":!0};u.poppable||(D["fox-actionsheet__list--inner"]=!0);const L=(0,t.h)("view",{class:D,style:I},[W]);if(U.push(L),u.showFooter&&!x.value){const se=le();U.push(se)}const J=(0,t.h)("view",{class:"fox-actionsheet"},U);if(!u.poppable)return J;const ae=["fox-actionsheet__popup"];return u.popClass&&ae.push(u.popClass),(0,t.h)(a,{popClass:ae.join(" "),visible:X.value,closeable:!1,"onUpdate:visible":Z,position:u.position,round:"round",onClickOverlay:O,closeOnClickOverlay:u.closeOnClickOverlay},{default:()=>J})}}}}var{componentName:jp,create:Wp,scope:Yp}=ee("actionsheet-pane"),Xp=Wp(Hp(jp,Yp,Ce,dl,At,fl,re.CheckNormal,re.Checked,re.Close,re.Search2,!1)),hl=Xp,xi={type:{type:String,default:"text"},placeholder:{type:String},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:" "}},Qp={...be,...Se,...xi,...ml};function Gp(e,n,a,l,r,i,o,c){return{props:Qp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:A,browse:k}=Ve(s),{emitEvent:w,exposeApi:v}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return A.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ye.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=xe(s,"modelValue",null,w),g=(0,t.ref)(""),b=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),E="fox-input-item",V=(0,t.computed)(()=>({[E]:!0,"is-disabled":p.value,"is-readonly":A.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const Y={};return N.value&&(Y["text-align"]=N.value),Y}),M=(0,t.ref)(!1),j=()=>{M.value=!0},$=Y=>{M.value=Y},z=Y=>{B.value=Y,w("update:modelValue",Y)},x=(Y,G)=>{w("change",Y,G)},F=Y=>{let G=Y.target.value;S.value=!0,w("focus",G,Y)},R=Y=>{setTimeout(()=>{S.value=!1},0);let G=Y.target.value;s.maxLength&&G.length>Number(s.maxLength)&&(G=G.slice(0,Number(s.maxLength))),w("blur",G,Y)},X=Y=>{g.value=Y,w("update:text",Y)},P=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),_=(0,t.computed)(()=>we(s.unit)>0),te=(0,t.computed)(()=>we(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!te.value})),Q=Y=>{B.value="",w("update:modelValue","",Y),w("change","",Y),w("clear","")},Z=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),O=(0,t.computed)(()=>we(B.value)>0&&S.value),ne=Y=>{O.value?Q(Y):j()},H=(0,t.computed)(()=>O.value&&Z.value?r:i),q=(0,t.computed)(()=>({action:!0})),K=(0,t.ref)(null);return v({search:Y=>{K.value&&K.value.search(Y)},clear:()=>{K.value&&K.value.clear},confirm:Y=>{K.value&&K.value.confirm()},cancel:()=>{K.value&&K.value.cancel()},setDisabled:Y=>{u.value=Y},setReadonly:Y=>{y.value=Y}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(b.value,d.slots);const Y={class:V.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:j,onFocus:F,onBlur:R};c&&(Y.disabled=!0);const G=[],le=(0,t.h)("input",Y);G.push(le);const U=[],W=(0,t.h)(H.value,{class:["action-icon"]}),I=(0,t.h)("view",{class:q.value,onClick:ne},{default:()=>[W]});if(U.push(I),_.value){const fe=(0,t.h)("view",{class:oe.value},[s.unit]);U.push(fe)}const D=(0,t.h)("view",{class:P.value},{default:()=>U});G.push(D);const L={default:()=>G};L.label=d.slots.default,L.prepend=d.slots.prepend,L.append=d.slots.append,L.fixedPreTip=d.slots.fixedPreTip,L.fixedTip=d.slots.fixedTip;const J=ve(s,ml);J.ref=K,J.class=s.actionSheetClass,J.disabled=p.value||A.value,J.visible=M.value,J["onUpdate:visible"]=$,J.modelValue=B.value,J["onUpdate:modelValue"]=z,J.text=g.value,J["onUpdate:text"]=X,J.onChange=x,J.poppable=!0,J["text-position"]=s.textPosition;const ae=(0,t.h)(o,J,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});L.hide=()=>[ae];const se={...Ze(s,xi,ml),ref:h};return s.prop&&(se.prop=`${s.prop}_item`),a(se,L)}}}}var{componentName:_p,create:Zp,scope:Jp}=ee("actionsheet-item"),eh=Zp(Gp(_p,Jp,Ie,Me,re.CircleClose,re.ArrowRight,hl)),Ta=eh,Va={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:th,create:nh}=ee("input-number"),lh=nh({components:{Minus:re.Minus,Plus:re.Plus},props:{...Va},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const y=th;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),r=y=>{const A=y.target;n("update:modelValue",A.valueAsNumber,y)},i=(y,A)=>{let k=l(y);n("update:modelValue",k,A),n("change",k,A)},o=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,c=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,s=y=>{n("reduce",y),c()?i(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},d=y=>{n("add",y),o()?i(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},h=y=>{e.disabled||e.readonly||n("focus",y)},u=y=>{if(e.disabled||e.readonly)return;let A=y.target.valueAsNumber;A<Number(e.min)?A=Number(e.min):A>Number(e.max)&&(A=Number(e.max)),i(A,y),n("blur",y)},p=y=>{let A=Number(y);return A<Number(e.min)?A=Number(e.min):A>Number(e.max)&&(A=Number(e.max)),A};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=p(e.modelValue);y!==Number(e.modelValue)&&i(y,{})}),{classes:a,change:r,blur:u,focus:h,add:d,addAllow:o,reduce:s,reduceAllow:c,toPxString:he}}}),ah=["min","max","disabled","readonly","value"];function oh(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Minus"),c=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(o,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,ah),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(c,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var gl=ie(lh,[["render",oh]]),rh={...be,...Se,...Va};function ih(e,n,a,l,r){return{props:rh,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:A}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!u.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=(0,t.computed)(()=>{const S=[`${e}`];return i.textAlign==="left"?S.push("is-left"):i.textAlign==="center"?S.push("is-center"):i.textAlign==="right"&&S.push("is-right"),S.join(" ")}),w=xe(i,"modelValue",null,y),v=S=>{w.value=S,y("update:modelValue",S,{}),y("change",S,{})},f=S=>{y("add",S)},m=S=>{y("reduce",S)};return A({setDisabled:S=>{s.value=S},setReadonly:S=>{h.value=S}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(w.value,o.slots);const S={"left-icon":o.slots["left-icon"],"right-icon":o.slots["right-icon"]},B=ve(i,Va),g=(0,t.h)(r,{...o.attrs,...B,disabled:d.value,readonly:u.value,value:w.value,"onUpdate:modelValue":v,onAdd:f,onReduce:m},S),b=[];b.push(g);const E={default:()=>b};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const V={...ve(i,Se,be),ref:c};return i.prop&&(V.prop=`${i.prop}_item`),V["content-class"]=k.value,a(V,E)}}}}var{componentName:sh,create:ch,scope:uh}=ee("input-number-item"),dh=ch(ih(sh,uh,Ie,Me,gl)),Ea=dh,fh={...sa,...ca,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function mh(e,n,a,l){return{props:fh,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:o,exposeApi:c}=Fe({context:i},r.prop),{slots:s}=i,d=e,h=(0,t.computed)(()=>{const v=[`${d}`];return r.direction==="vertical"?v.push("vertical-tabbar"):v.push("horizontal-tabbar"),v}),u=(0,t.computed)(()=>{const v={};if(r.width){const f=he(r.width);f&&(v.width=f)}if(r.height){const f=he(r.height);f&&(v.height=f)}return v}),p=(0,t.computed)(()=>[`${d}__bar`]),y=(0,t.computed)(()=>[`${d}__container`]),A=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,v=>{A.value!==v&&(A.value=v)});const k=v=>{o("change",v)},w=v=>{A.value!==v&&(A.value=v,o("update:modelValue",v))};return c({}),()=>{const{getChildren:v}=Fn(s.default),f=v(),m=[];if(Array.isArray(r.data))m.push(...r.data);else for(let N=0;N<f.length;N++){const C=f[N].props??{},M={text:C.label??"",value:C["pane-key"]??C.paneKey??""};m.push(M)}const S={};for(let N in s)N!=="default"&&(S[N]=s[N]);const B=ve(r,sa);Object.assign(B,{prop:null,data:m,class:p.value,modelValue:A.value,direction:r.direction,onChange:k,"onUpdate:modelValue":w});const g=(0,t.h)(a,B,S),b={default:()=>f},E=ve(r,ca);Object.assign(E,{prop:null,class:y.value,modelValue:A.value,onChange:k,"onUpdate:modelValue":w});const V=(0,t.h)(l,E,b);return(0,t.h)("view",{class:h.value,style:u.value},[g,V])}}}}var{create:ph,componentName:hh,scope:gh}=ee("tabs-frame"),yh=ph(mh(hh,gh,Yt,Xt)),$a=yh,bh={prop:{type:[String]},direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function vh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function zi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Sh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Da(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ri(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Fi(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ia(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var kh=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[a]);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(l,null,[n,a]))}};function wh(){return new kh(st())}function Ch(e,n,a,l){return{props:bh,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:o,exposeApi:c}=Fe({context:i},r.prop),s=e,d=wh(),h=(0,t.ref)([]),u=(0,t.computed)(()=>h.value.filter(Q=>Sh(r,Q)!==!1)),p=(0,t.ref)(-1),y=()=>{const Q=r.modelValue,Z=u.value.findIndex(O=>Mi(r,O)===Q);p.value!==Z&&(p.value=Z,r.scroll&&te(Z,!1))};(0,t.watch)([()=>r.modelValue,u],()=>{y()});const A=Q=>p.value===Q,k=Q=>{if(Q<0&&Q>=u.value.length)return!1;const Z=u.value[Q],O=(Ia(r,Z,Q)??{}).status??Da(r,Z);return A(Q)||O},w=(0,t.computed)(()=>{const Q={[s]:!0};return r.mode?Q[`is-${r.mode}`]=!0:r.direction&&(Q[`is-${r.direction}`]=!0),r.scroll&&(Q["is-scroll"]=!0),Q}),v=(0,t.computed)(()=>({})),f=(Q,Z,O,ne,H)=>{const q={[`${s}__step`]:!0};return H&&(q[`${H}`]=!0),q[`${m.value}`]=!0,ne&&(q["is-doit"]=!0),Q===p.value?q["is-active"]=!0:Z==="done"?q["is-done"]=!0:Z==="error"?q["is-error"]=!0:Z==="half"?q["is-half"]=!0:O?q["is-disabled"]=!0:q["is-normal"]=!0,q},m=(0,t.computed)(()=>{let Q=r.align;if(!Q){if(r.mode==="simple")return"start";r.direction==="vertical"?Q="start":Q="center"}return Q}),S=(Q,Z={})=>{const O={...Z};if(m.value==="start"&&Q===u.value.length-1)O.flex="0 0 auto";else if(r.step){const ne=typeof r.step=="number"||yn(r.step)?he(r.step):r.step;r.direction==="vertical"?O.height=ne:O.width=ne}else O.flex="1 1 100%";return O},B=(Q,Z)=>{let O={};if(Z<u.value.length-1){const ne=Z+1;k(Z)&&k(ne)?r.direction==="vertical"?O.height="100%":O.width="100%":O.opacity="0"}return O},g=Q=>u.value.length-1===Q,b=(Q,Z)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&Z>p.value||p.value===Z)return;const O=p.value,ne=Z;p.value=Z,r.scroll&&te(Z,!1);const H=Mi(r,Q);o("update:modelValue",H),o("change",H,{fromIndex:O,currentIndex:ne,item:Q,items:u.value,clickNavigatePolicy:r.clickNavigatePolicy})},E=(0,t.ref)(!0),V=async(Q,Z)=>{try{const O=await d.load("stesbar",Q,Z);Array.isArray(O)&&(h.value=O),E.value=!1}catch(O){console.error("[FoxUI] Load StepsBar Data Fail",O),h.value=[]}setTimeout(()=>{o("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([Q,Z])=>{Q&&V(Q,Z)},{immediate:!0}),c({});const N=(Q,Z,O,ne,H,q)=>{const K=[];let Y=null;if(!q)if(i.slots.icon)Y=i.slots.icon({item:Q,index:Z,status:ne});else if(ne==="done"){const G={};r.iconSize&&(G.width=r.iconSize,G.height=r.iconSize),Y=(0,t.h)(r.icon??a,G)}else Y=(0,t.h)("span",{},[O??`${Z+1}`]);return Y&&K.push(Y),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{o("click",{item:Q,index:Z}),!H&&b(Q,Z)}},K)},C=(Q,Z,O)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:B(Q,Z)})]),M=()=>{let Q=null;if(i.slots.markIcon)Q=i.slots.markIcon();else{const Z={};r.iconSize&&(Z.width=r.markIconSize,Z.height=r.markIconSize),Q=(0,t.h)(r.markIcon??l,Z)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[Q])},j=(Q,Z,O,ne,H,q)=>{const K=[];if(!g(Z)){const G=C(Q,Z,ne);K.push(G)}const Y=N(Q,Z,O,ne,H,q);return K.push(Y),(0,t.h)("view",{class:"fox-steps-bar__head"},K)},$=(Q,Z,O,ne)=>{let H=null;return i.slots.main?H=i.slots.main({item:Q,index:Z,status:O}):H=vh(r,Q),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{o("click",{item:Q,index:Z}),!ne&&b(Q,Z)}},[H])},z=(Q,Z,O)=>{let ne=null;return i.slots.sub?(ne=i.slots.sub({item:Q,index:Z,status:O}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[ne])):null},x=(Q,Z)=>{const O=Ia(r,Q,Z)??{},ne=O.status??Da(r,Q);let H=zi(r,Q);O.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);let q=Ri(r,Q);O.doit===!0&&(q=!0);const K=O.label??Fi(r,Q),Y=[],G=N(Q,Z,K,ne,H,q);G&&Y.push(G);const le=$(Q,Z,ne,H);if(le&&Y.push(le),!g(Z)){const J=C(Q,Z,ne);J&&Y.push(J)}const U=[],W=(0,t.h)("view",{class:"fox-steps-bar__head"},Y);U.push(W);const I=z(Q,Z,ne);I&&U.push(I);const D=O.class,L=O.style??{};return(0,t.h)("view",{ref:_(Z),class:f(Z,ne,H,q,D),style:S(Z,L)},U)},F=(Q,Z)=>{const O=Ia(r,Q,Z)??{},ne=O.status??Da(r,Q);let H=zi(r,Q);O.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);let q=Ri(r,Q);O.doit===!0&&(q=!0);const K=O.label??Fi(r,Q),Y=[],G=r.layout;for(let W of G)if(W==="head"){const I=j(Q,Z,K,ne,H,q);Y.push(I)}else if(W==="main"){const I=$(Q,Z,ne,H);Y.push(I)}else if(W==="sub"){const I=z(Q,Z,ne);Y.push(I)}else if(W==="mark"){const I=M();Y.push(I)}const le=O.class,U=O.style??{};return(0,t.h)("view",{ref:_(Z),class:f(Z,ne,H,q,le),style:S(Z,U)},Y)},R=(0,t.ref)(),X=(0,t.ref)([]),P=(Q,Z)=>{X.value[Z]=Q},_=Q=>Z=>{P(Z,Q)},te=(Q,Z)=>{const O=R.value,ne=X.value;if(!O||!ne||!ne[Q])return;const H=ne[Q];let q=0;r.direction==="vertical"?q=H.offsetTop-(O.offsetHeight-H.offsetHeight)/2:q=H.offsetLeft-(O.offsetWidth-H.offsetWidth)/2,oe(O,q,Z?0:.3,r.direction)},oe=(Q,Z,O,ne)=>{let H=0;const q=ne==="horizontal"?Q.scrollLeft:Q.scrollTop,K=O===0?1:Math.round(O*1e3/16);function Y(){ne==="horizontal"?Q.scrollLeft+=(Z-q)/K:Q.scrollTop+=(Z-q)/K,++H<K&&je(Y)}Y()};return()=>{let Q=[];if(r.mode==="simple")for(let O=0;O<u.value.length;O++){const ne=u.value[O],H=x(ne,O);Q.push(H)}else for(let O=0;O<u.value.length;O++){const ne=u.value[O],H=F(ne,O);Q.push(H)}const Z={ref:R,class:w.value,style:v.value};return Q.length===0&&typeof i.slots.default=="function"&&(Q=i.slots.default()),(0,t.h)("view",Z,Q)}}}}var{componentName:Nh,create:Ah,scope:Bh}=ee("steps-bar"),Th=Ah(Ch(Nh,Bh,re.Checklist,re.ArrowRight)),qa=Th;function Vh(e){e.stopPropagation()}var Eh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Yn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Xn(),a=(l,r,i,o)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Vh(l),a(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{a(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function $h(e,n){return new Eh(e,n)}var Dh={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Ih=(e,n,a,l=!1)=>({props:{...Dh},emits:["click"],setup(r,{slots:i,emit:o}){let c=-1,s=-1;const d=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),h=(0,t.computed)(()=>{const B=[`${e}`];return r.customClass&&B.push(r.customClass),B}),u=B=>typeof B=="string"&&!yn(B)?B:`${B}px`,p=(0,t.computed)(()=>{const B={};return pe(d.top)||(B.top=u(d.top)),pe(d.right)||(B.right=u(d.right)),pe(d.bottom)||(B.bottom=u(d.bottom)),pe(d.left)||(B.left=u(d.left)),pe(r.width)||(B.width=u(r.width)),pe(r.height)||(B.height=u(r.height)),pe(r.color)||(B.color=r.color),pe(r.background)||(B.background=r.background),pe(r.borderRadius)||(B["border-radius"]=r.borderRadius),pe(r.zIndex)||(B["z-index"]=r.zIndex),B}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),A=()=>{o("click")},k=(0,t.ref)(null),w=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},v={x:0,y:0},S=$h(B=>{if(!k.value)return;const g=k.value;w(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,v.x=d.left,v.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!k.value)return;const g=k.value;w();let b=v.x+B.x;b<0&&(b=0),b>c-d.width&&(b=c-d.width);let E=v.y+B.y;E<0&&(E=0),E>s-d.height&&(E=s-d.height),d.left=b,d.top=E,g.style.left=`${b}px`,g.style.top=`${E}px`});return(0,t.onMounted)(()=>{if(r.draggable&&k.value){const B=[k.value];S.open(B)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&k.value&&S.close()}),()=>{let B=[];const g=typeof i.default=="function"?i.default():[];if(g&&g.length>0)B=g;else{const b=(0,t.h)(a,{class:y.value});B.push(b)}return(0,t.h)("view",{ref:b=>{k.value=b},class:h.value,style:p.value,onClick:A},B)}}}),{componentName:qh,create:Ph,scope:xh}=ee("floating-button"),Mh=Ph(Ih(qh,xh,re.Uploader,!1)),Pa=Mh,zh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Rh(e,n,a){return{props:{...zh},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ye.useFoxI18n)(n),c=o(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const A={[`${e}`]:!0};return l.disabled?A[`${e}--disabled`]=!0:A[`${e}--${l.type}`]=!0,A}),d=xe(l,"modelValue"),h=(0,t.computed)(()=>d.value?c.expandText.value??"":c.collapseText.value??""),u=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),y=()=>{r("update:modelValue",!d.value)};return()=>{const A=[];if(h.value){const v=(0,t.h)("span",{class:u.value},[h.value]);A.push(v)}const k={class:p.value},w=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(a);if(w){const v=(0,t.h)("view",k,[w]);A.push(v)}return l.textPosition==="right"&&A.reverse(),(0,t.h)("view",{class:s.value,onClick:y},A)}}}}var{componentName:Fh,create:Lh,scope:Oh}=ee("more-button"),Kh=Lh(Rh(Fh,Oh,re.RectUp)),xa=Kh,Uh={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Hh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function jh(e,n,a){return{props:{...Uh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:o}){const{toLocaleRefs:c}=(0,ye.useFoxI18n)(n),s=c(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),u=B=>{h.value=B,o("update:visible",B)};(0,t.watch)(()=>l.visible,B=>{h.value!==B&&(h.value=B)});const p=B=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(B)}catch(g){console.error(g)}},y=()=>{p("confirm")},A=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},w=(B,g)=>Hh(B)?(g.src=B,(0,t.h)("img",g)):typeof B=="string"?(Array.isArray(g.class)?g.class.push(B):g.class&&typeof g.class=="object"?g[`${B}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${B}`:g.class=B,(0,t.h)(l.tag,g)):(0,t.h)(B,g),v=()=>{const B=[];if(l.icon){const g={class:[`${d}__header-icon`]},b=w(l.icon,g);B.push(b)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);B.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:k},b=w(l.closeIcon,g);B.push(b)}return(0,t.h)("view",{class:[`${d}__header`]},B)},f=(B,g)=>{const b=[];if(g){const E=(0,t.h)("view",{class:`${d}__group-title`},[g]);b.push(E)}if(B){const E=[];Array.isArray(B)||(B=[B]);for(let V of B){const N=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:V});E.push(N)}if(E.length>0){const V=(0,t.h)("view",{class:`${d}__group-rows`},E);b.push(V)}}return b.length===0?null:(0,t.h)("view",{class:`${d}__group`},b)},m=()=>{const B=[];if(typeof l.message=="string")B.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const b=f(g);B.push(b)}else{const b=f(g.content,g.title);B.push(b)}else if(typeof l.message=="function"){const g=l.message();B.push(g)}else{const g=l.message;B.push(g)}return(0,t.h)("view",{class:`${d}__body`},B)},S=()=>{const B=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:A};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const b=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);B.push(b)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const b=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);B.push(b)}return B.length===0?null:(0,t.h)("view",{class:`${d}__footer`},B)};return()=>{const B=[],g=v();g&&B.push(g);const b=m();b&&B.push(b);const E=S();E&&B.push(E);const V=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},B),N=[`${d}__popup`];l.popClass&&N.push(l.popClass);const C={};return l.width&&(C.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(C.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(a,{popClass:N.join(" "),style:C,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>V})}}}}var{componentName:Wh,create:Yh,scope:Xh}=ee("messagebox"),Qh=Yh(jh(Wh,Xh,Ce)),Gh=Qh,_h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Zh="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",Jh="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",eg="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",tg=new On,ng={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},lg=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${tg.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const o=document.querySelector(`#${r}`);o&&o.parentNode?.removeChild(o)};const i=(0,t.createVNode)(Gh,e);n.appendChild(l),(0,t.render)(i,l)},dt={show:(e,n,a,l)=>{const r={...ng};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),a&&typeof a=="object"?Object.assign(r,a):(typeof a=="string"&&(r.title=a),l&&typeof l=="object"?Object.assign(r,l):typeof l=="string"&&(r.type=l)));const i=r.type??"info";return r.icon||(i==="success"?r.icon=Jh:i==="warning"?r.icon=eg:i==="error"?r.icon=_h:r.icon=Zh),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=re.Close),new Promise((o,c)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}o({action:d})},lg(r)})},alert:(e,n,a)=>dt.show("alert",e,n,a),confirm:(e,n,a)=>dt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=dt.alert,e.config.globalProperties.$confirm=dt.confirm}},ag=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let o in n)o==="bubbles"?r=!!n[o]:o==="cancelable"?i=!!n[o]:l[o]=n[o];l.initEvent(e,r,i),(a??document).dispatchEvent(l)},og=new On,rg=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),ig=e=>`${e}-${og.get()}`,sg=Symbol.for("InnerPageScopeKey"),cg=Symbol.for("PageWrapperKey"),ug="FoxLeave",dg="FoxLeaveEnd",fg={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 mg(e,n,a,l){return{props:{...ot,...fg},emits:["update:visible"],setup(r,{attrs:i,slots:o,emit:c}){(0,t.provide)(sg,!0);const s={};(0,t.provide)(cg,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},u=e,p=g=>{y.value=g,c("update:visible",g)},y=(0,t.ref)(!1),A=(g,b)=>rg(g)?(b.src=g,(0,t.h)("img",b)):typeof g=="string"?(Array.isArray(b.class)?b.class.push(g):b.class&&typeof b.class=="object"?b[`${g}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${g}`:b.class=g,(0,t.h)(r.tag,b)):(0,t.h)(g,b),k=()=>{if(!r.showHeader)return null;const g=[];if(o.header){const b=o.header();g.push(b)}else if(r.title){const b=(0,t.h)("view",{class:`${u}__header-title`},[r.title]);g.push(b)}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},w=()=>{if(!r.showClose)return null;const g={class:[`${u}__close-icon`],onClick:h};return A(r.closeIcon??l,g)};let v=null;const f=g=>{ag(dg,{},v)},m=ig(e),S=()=>{p(!0)},B=()=>{if(!v)return;const g=v.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const b=v.querySelector(".fox-popup");b&&(b.classList.add(`fox-popup-slide-${r.position}-leave-active`),b.classList.add(`fox-popup-slide-${r.position}-leave-to`),b.addEventListener("animationend",f,{once:!0}),b.addEventListener("transitionend",f,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{v=document.querySelector(`.${m}`),v?.addEventListener(ug,B,{once:!0}),S()}),()=>{const g=[],b=k();b&&g.push(b);const E=w();E&&g.push(E);const V=o.default?o.default():[];Reflect.apply([].push,g,V);const N={[`${u}`]:!0};r.mode&&(N[`${u}--${r.mode}`]=!0);const C=(0,t.h)("view",{class:N},g),M=[`${u}__popup`,m];r.popClass&&M.push(r.popClass),r.position&&M.push(`${u}__popup--${r.position}`);const j={};r.width&&(j.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(j.height=typeof r.height=="number"?`${r.height}px`:r.height);const $=(0,t.h)(a,{...ve(r,ot),popClass:M.join(" "),style:j,visible:y.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":p},{default:()=>C});return(0,t.h)("div",{class:[`${u}__root`,m]},[$])}}}}var{componentName:pg,create:hg,scope:gg}=ee("popup-wrapper"),yg=hg(mg(pg,gg,Ce,re.Close)),Ma=yg,bg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function vg(e,n,a,l){return{props:{...bg},emits:["update:visible"],setup(r,{emit:i,slots:o}){const c=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(a,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":c},o);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:Sg,create:kg,scope:wg}=ee("dropdown"),Cg=kg(vg(Sg,wg,Ce,!1)),za=Cg,Ng={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Ag(e,n){return{inheritAttrs:!1,props:Ng,setup(a,l){const{exposeApi:r}=wr({context:l,props:()=>a.config},a.name);return Ee(a.innerPageScope)||Ar(a.innerPageScope),Ee(a.abstractPageScope)||Br(a.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Bg,create:Tg,scope:Vg}=ee("domain-provider"),Eg=Tg(Ag(Bg,Vg)),Ra=Eg,$g={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 Dg(e,n){return{inheritAttrs:!1,props:$g,emits:["change"],setup(a,{slots:l,emit:r}){if(_e&&window.IntersectionObserver){const i=new WeakMap;let o=new Map;const c=(p,y)=>{if(h===null){o.set(p,{visible:null,callback:y});return}i.has(p)&&h.unobserve(p),i.set(p,{visible:null,callback:y}),h.observe(p)},s=p=>{if(h===null){o.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=a.initialVisibleObserverSize;hc({acquire:()=>{if(a.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:s});let h=null;const u=(p,y,A)=>{h=new IntersectionObserver(k=>{if(r("change",k),a.loadPolicy!=="always")for(let w of k){let v=!1;w.intersectionRatio>0&&(v=!0);const f=i.get(w.target);if(f)try{if(a.loadPolicy==="lazy"&&!v&&f.visible!==null)return;f.visible=v,f.callback(v)}catch(m){console.error(m)}}},{root:p,rootMargin:y,threshold:A}),o.forEach((k,w)=>{i.set(w,k),h?.observe(w)}),o.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([p,y])=>{if(y||!p||h)return;let A=null;typeof p=="string"?A=document.querySelector(p):A=p,A&&u(A,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Ig,create:qg,scope:Pg}=ee("rolling-provider"),xg=qg(Dg(Ig,Pg)),Fa=xg,{componentName:Mg,create:zg}=ee("cell"),Rg=zg({components:{Right:re.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const i=Mg;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:a,baseStyle:l}}}),Fg={key:0,class:"fox-cell__icon"},Lg={key:1,class:"fox-cell__title"},Og={class:"title"},Kg={class:"fox-cell__title-desc"};function Ug(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fg,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Og,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Kg,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var La=ie(Rg,[["render",Ug]]),Hg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function jg(e,n){return{props:{...Hg},setup(a,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const o={};return a.color&&(o.color=a.color),a.size&&(o.fontSize=he(a.size)),o});return()=>{const o={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(a.tag??"li",o,r)}}}}var{componentName:Wg,create:Yg,scope:Xg}=ee("icon"),Qg=Yg(jg(Wg,Xg)),Oa=Qg,{componentName:Gg,create:_g}=ee("cell-group"),Zg=_g({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Gg]:!0}))}}}),Jg={key:1,class:"fox-cell-group__title"},ey={key:3,class:"fox-cell-group__desc"},ty={class:"fox-cell-group__wrap"};function ny(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jg,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",ey,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ty,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ka=ie(Zg,[["render",ny]]),{componentName:ly,create:ay}=ee("image"),oy=ay({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:re.Image,ImageError:re.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=ly;return{[y]:!0,[`${y}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),o=(0,t.ref)(null),c=()=>{r.value=new IntersectionObserver(y=>{y.forEach(A=>{A.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),o.value&&r.value.observe(o.value)};(0,t.onMounted)(()=>{e.lazyLoad&&c()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let y={};return e.width&&(y.width=he(e.width)),e.height&&(y.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=he(e.radius)),y}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{a.isError=!1,a.loading=!0});const h=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},p=y=>{n("click",y)};return{...(0,t.toRefs)(a),imageClick:p,classes:l,styles:d,stylebox:s,error:u,load:h,show:i,imgRef:o}}}),ry=["src","date-src","alt"],iy={key:0,class:"fox-img-loading"},sy={key:1,class:"fox-img-error"};function cy(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Image"),c=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,ry),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",iy,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",sy,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ua=ie(oy,[["render",cy]]),{create:uy}=ee("layout"),dy=uy({}),Ha=dy,{componentName:fy,create:my}=ee("col"),py=my({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=fy,a=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}))}}});function hy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var ja=ie(py,[["render",hy]]),{componentName:gy,create:yy}=ee("row"),by=yy({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=gy;(0,t.provide)("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
1
+ (function(T,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(T=typeof globalThis<"u"?globalThis:T||self,t(T.FoxUI={},T.Vue,T.FoxValidator,T.FoxIconsVue,T.FoxI18n))})(this,function(T,t,ot,re,ye){Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Ji=Object.create,Xo=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ts=Object.getOwnPropertyNames,ns=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty,Ue=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),as=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ts(n),i=0,o=r.length,c;i<o;i++)c=r[i],!ls.call(e,c)&&c!==a&&Xo(e,c,{get:(s=>n[s]).bind(null,c),enumerable:!(l=es(n,c))||l.enumerable});return e},He=(e,n,a)=>(a=e!=null?Ji(ns(e)):{},as(n||!e||!e.__esModule?Xo(a,"default",{value:e,enumerable:!0}):a,e)),un=window,os=typeof window<"u";function rs(){return typeof un<"u"?un.requestAnimationFrame||un.webkitRequestAnimationFrame||function(e){un.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Qo(e){os?cancelAnimationFrame(e):clearTimeout(e)}var Ge=rs();function dn(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=vl(Ae(e),Ae(n)),a==1&&(l==1?e=bl(e):n=bl(n));let r=Go(e,n);return a?a==2?"-"+Ae(r):e.length<r.length?Ae(r.substring(1)):"-"+Ae(bl(r)):Ae(r)}function bl(e){let n="",a=e.length,l=e.split(".")[1],r=l?l.length:0;for(let o=0;o<a;o++)e[o]>="0"&&e[o]<="9"?n+=9-parseInt(e[o]):n+=e[o];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Go(n,i)}function Ae(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function vl(e,n){let a=e.split("."),l=n.split("."),r=a[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(r-i)+1).join("0")+(a[0]?a[0]:""),r=a[1]?a[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Go(e,n){[e,n]=vl(e,n);let a="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){a="."+a;continue}let i=parseInt(e[r])+parseInt(n[r])+l;a=i%10+a,l=Math.floor(i/10)}return l?l.toString()+a:a}var Ne=(function(e){return 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})({});function Dt(e,n=0,a=Ne.HALF_EVEN){if(a===Ne.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),i=r[0],o=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let s=i.substr(0,i.length-n);return e=s+"."+i.substr(i.length-n)+o,s=Dt(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,_o(r[1],i,l,a)?(l?"-":"")+Sl(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");o=r[1].substring(0,n);let c=r[1].substring(n);return c&&_o(c,o,l,a)&&(o=Sl(o),o.length>n)?(l?"-":"")+Sl(i,parseInt(o[0]))+"."+o.substring(1):(l?"-":"")+i+"."+o}function _o(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!a&&l===Ne.FLOOR||a&&l===Ne.CEILING)return!1;if(l===Ne.UP||a&&l===Ne.FLOOR||!a&&l===Ne.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case Ne.HALF_DOWN:return!1;case Ne.HALF_UP:return!0;case Ne.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Sl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let r=a;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function kl(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=It(e),n=It(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let i=l+r;if(e=It(e.replace(".","")),n=It(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let o=n.length,c=0,s=[],d=o-1,p="";for(let u=0;u<o;u++)s[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let b=n.length-1;b>=d&&b>=0;b--)s[b]>-1&&s[b]<e.length&&(h+=parseInt(e[s[b]--])*parseInt(n[b]));h+=c,c=Math.floor(h/10),p=h%10+p,d--}return p=It(is(p,i)),a==1&&(p="-"+p),p}function is(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function It(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 wl(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ae(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ae(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let p=e.length-d+r;e=Ae(e.substring(0,p)+"."+e.substring(p))}else r==d&&(e=Ae(e.replace(".","")))}let i=0,o=n.length,c="",s=e.indexOf(".")>-1&&e.indexOf(".")<o?e.substring(0,o+1):e.substring(0,o);if(e=e.indexOf(".")>-1&&e.indexOf(".")<o?e.substring(o+1):e.substring(o),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),o>s.length&&(d+=o-s.length,s=s+new Array(o-s.length+1).join("0")),i=d,c="0."+new Array(d).join("0")}for(a=a+2;i<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=dn(s,"-"+n),d++;c+=d,e?(e[0]=="."&&(c+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(c+="."),i++,s=s+"0")}return(l==1?"-":"")+Ae(Dt(c,a-2))}function Cl(e,n){return e=e.toString(),n=n.toString(),n=Nl(n),dn(e,n)}function Nl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Zo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Jo(e),Jo(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Cl(e,kl(n,Dt(wl(e,n),0,Ne.FLOOR)));return a+l}function Jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=vl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}var qt=class pe{value;static RoundingModes=Ne;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Ae(a);let r="";a[0]=="-"&&(r="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=r+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=r+Ae(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=pe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=pe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var o="",c=i;c>0;)c<a?(a=c,c=0):c-=a,o=n.substring(c,c+a)+(c<i-a&&c>=0?l:"")+o;return(r?"-":"")+o+n.substring(i)}getPrettyValue(n,a){return pe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ne.HALF_EVEN){if(n=pe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Dt(n,a,l)}round(n=0,a=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(Dt(this.value,n,a))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ne.CEILING)}static add(n,a){return n=pe.validate(n),a=pe.validate(a),dn(n,a)}add(n){return new pe(dn(this.value,n.getValue()))}static subtract(n,a){return n=pe.validate(n),a=pe.validate(a),Cl(n,a)}subtract(n){return new pe(Cl(this.value,n.getValue()))}static multiply(n,a){return n=pe.validate(n),a=pe.validate(a),kl(n,a)}multiply(n){return new pe(kl(this.value,n.getValue()))}static divide(n,a,l){return n=pe.validate(n),a=pe.validate(a),wl(n,a,l)}divide(n,a){return new pe(wl(this.value,n.getValue(),a))}static modulus(n,a){return n=pe.validate(n),a=pe.validate(a),Zo(n,a)}modulus(n){return new pe(Zo(this.value,n.getValue()))}static compareTo(n,a){return n=pe.validate(n),a=pe.validate(a),er(n,a)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Nl(n)}negate(){return new pe(Nl(this.value))}};function tr(e,n){return qt.multiply(`${e}`,`${n}`)}function Al(e,n,a=8){return qt.divide(`${e}`,`${n}`,a)}var V2=qt.RoundingModes;function Bl(e,n){return e=`${e}`,n=`${n}`,qt.compareTo(e,n)}function nr(e){return qt.negate(e)}function fn(e,n=-1,a=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let o=i.charAt(0);o=="-"?i=i.substring(1):o="";let c=i,s="",d=i.indexOf(".");d!=-1&&(c=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let p;if(l>0){let u="",h=c.split("").reverse();for(let b=0;b<h.length;b++)u+=h[b]+((b+1)%l==0&&b+1!=h.length?r:"");s.length==0?p=`${o}${u.split("").reverse().join("")}`:p=`${o}${u.split("").reverse().join("")}.${s}`}else s.length==0?p=`${o}${c}`:p=`${o}${c}.${s}`;return p}function lr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}var _e=typeof window<"u",Ze=Ge;function Ee(e){return e==null}var mn=Array.isArray,ss=e=>pn(e)==="[object Map]",cs=e=>pn(e)==="[object Set]",je=e=>e instanceof Date,hn=e=>typeof e=="function",ar=e=>typeof e=="string",us=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",ft=e=>$e(e)&&hn(e.then)&&hn(e.catch),or=Object.prototype.toString,pn=e=>or.call(e),ds=e=>pn(e)==="[object Object]",rr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function fs(e){return e.__esModule||rr&&e[Symbol.toStringTag]==="Module"}var ms=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function mt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let i=e[a];for(let o in i){let c=n[o],s=i[o];if(c!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=c&&Array.isArray(c)?c:[]:d=c&&typeof c=="object"?c:{},n[o]=mt(r,d,s)}else s!==void 0&&(n[o]=s)}}return n}var Tl=ms?Promise.resolve():null;function hs(e,...n){Tl!==null?n&&n.length>0?Tl.then(()=>{e(n)}):Tl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ke(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var ps={"[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 gn(e){let n=Object.prototype.toString.call(e);return e==null?String(e):ps[n]||"object"}function Vl(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function El(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function ir(e){return e&&typeof e=="object"&&"setInterval"in e}function sr(e){let n=!!e&&"length"in e&&e.length,a=gn(e);return a==="function"||ir(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function cr(e,n){let a=+n.length,l=0,r=e.length;for(;l<a;l++)e[r++]=n[l];return e.length=r,e}function gs(e,n=[]){let a=n;return e!=null&&(sr(Object(e))?cr(a,typeof e=="string"?[e]:e):a.push(e)),a}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=gn(e);if(a!==gn(n))return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let o=l[i],c=e[o],s=n[o];if(!De(c,s))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!De(r,i))return!1}return!0}return!1}function $l(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function yn(e){return he(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ur(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function dr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function fr(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function Dl(e,n=!0,a=!0){n?e=fr(e,".",/\./g):e=e.replace(/\./g,""),a?e=fr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ys(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(De(e,a))return!0}):n.indexOf(e)}function bs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(De(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const a={};return n.forEach(l=>{for(const r in l)a[r]=e[r]}),a}function We(e,...n){const a=[];n.forEach(r=>{Reflect.apply([].push,a,Reflect.ownKeys(r))});const l={};for(const r in e)a.includes(r)||(l[r]=e[r]);return l}var vs=(e,n,a)=>{const l=Object.assign({},e),r=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e};function Il(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ye=(e,n,a)=>Math.min(Math.max(e,n),a);function bn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function Ss(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Re=Symbol.for("BroadcastKey"),mr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,a){this.parent=e,this.exposed=n,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(a=>e===a);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,n,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:a};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let a=!1;return!n.name||n.name==="*"||n.name==="+"||$l(n.name)&&e&&n.name.test(e)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[e]):n.name===e&&(a=!0),a}trigger(e,n,a){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...a])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const i=e.resolve,o=e.uniqueId??"",c=(...s)=>{this.deletePersistantMessage(o),typeof i=="function"&&i(...s)};e.resolve=c}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):$l(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const o=Reflect.apply(i,null,[...a]);Ee(o)||r.push(o)}if(this.exposed&&typeof this.exposed[n]=="function"){const o=Reflect.apply(this.exposed[n],this.exposed,[...a]);Ee(o)||r.push(o)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const o=Reflect.apply(i.emit,i,[{...e},n,...a]);Array.isArray(o)&&o.length>0&&Reflect.apply([].push,r,[...o])}),r}emitToChildren(e,n,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const r=e.resolve,i=e.uniqueId??"",o=(...c)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...c)};e.resolve=o}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...a]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function xt(e,n,a,l){const r=new mr(n,e,a);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Pt(e){let n=e?.[Re];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Re,null)),n}var ks=class{error(e,n){const a=Pt(n.exposed);a?a.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Pt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Pt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,a){Array.isArray(e)||(e=[e]);const l=Pt(a.exposed),r=n.find(o=>o.required===!0||o.type==="required"&&o.required!==!1),i=e.find(o=>o.required===!0||o.type==="required"&&o.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!1),this.reset(a))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Mt=new ks;function ws(e){Mt=e}function Cs(e){Mt?Object.assign(Mt,e):Mt=e}function Ns(e,n){ot.Schema.setValidator(e,n)}function As(e){ot.Schema.deleteValidator(e)}var hr=["blur","clear"];function Bs(e){hr=e}function pr(){return hr}var gr=["focus","change","setValue"];function Ts(e){gr=e}function yr(){return gr}function Vs(e){ot.Schema.messages(e)}function Rt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function vn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Je=Symbol("ValidateSchemaKey"),br=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,a){this.parent=e,this.descriptor=n,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const e=vn(Rt(this.attrRules,this.rules)),n=[],a=this.descriptor.context?.attrs??{};for(let r in a){let i=a[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),n.push(c);continue}let o=this.getValidator(r);if(o!==null){let c={type:r,validator:o};n.push(c)}}this.attrRules=vn(n);const l=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...n]);const l=Mt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,n,a=!1){a?ot.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?ot.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return ot.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const n=Rt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=vn(e):this.rules=vn([e]);const a=Rt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new ot.Schema(a),o=this.proxy??r;return i.validate(r,{context:o}).then(c=>{if(c.pass)this.success();else{let s="error";Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors[0].message??s,c.errors=[c.errors[0]],c.errors[0].ref=o),this.error(s)}return c}).catch(c=>{const s=c.message??`${c}`;return this.error(s),c})}}return Promise.resolve({pass:!0})}};function Sn(e,n,a){a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string";const l={exposed:e,get $el(){return a.templateRefProxy?.$el},get props(){return a.props},get attrs(){return a.context?.attrs}};if(!a.validateHandler&&a.valueName!=="modelValue"){const r=a.valueName;a.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new br(n,a,l)}var kn=Symbol.for("EventEmitterKey"),vr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let a=this.register.get(e);if(a&&Array.isArray(a)){let l=a.findIndex(r=>r===n);l!==-1&&a.splice(l,1)}}on(e,n){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(n)}emit(e,...n){const a=this.register.get(e);a&&a.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(r){console.error(r.message,r)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function qe(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function wn(e,n){let a=0;return function(...l){const r=new Date().getTime();r-a<n||(a=r,Reflect.apply(e,null,[...l]))}}function Es(e,n){const a=qe((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){a(i,r)}}))}function $s(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function ql(e,n,a,l=0,r=!0){let i=n,o=0;if(r){const s=e();if(o++,s||o>a)return}const c=()=>{const s=e();o++,!(s||o>a)&&(i+=l,setTimeout(c,i))};setTimeout(c,i)}var et=Symbol("DomainKey"),zt=Symbol("DataItemsKey"),Cn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,t.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,n){this._datas[e]=n}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,n=[]){for(const a in e){const l=e[a];n.length>0&&n.indexOf(l)!==-1||(this._props[a]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const l=a._props[e];n.push(l)}a=a._parent}return n}},Ds=new Cn;function ht(){return Ds}function tt(){return(0,t.inject)(et,null)}var xl=Symbol("OriginalDateKey");function Pl(e,n,a){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(et,null):null;i===null&&(i=ht());const o=n;let c=new Cn(o);c.parent=i;const s=S=>{c?.hasData(xl)||u(S),c?.set("modelValue",S)},d=()=>c?.getForSelf("modelValue")??null,p=()=>c?.getData(xl)??null,u=S=>{const m={};mt(!0,m,(0,t.toRaw)(S)),c.setData(xl,m)},h=e.props,b=e.ignorePropKeys;(0,t.isReactive)(h)||typeof h=="function"?(0,t.watch)(h,S=>{c?.merge(S,b),S.modelValue&&u(S.modelValue)},{immediate:!0}):(c.merge(h,b),h.modelValue&&u(h.modelValue));const C=(S,m)=>{c?.set(S,m)},k=S=>c?.getForSelf(S)??null;if(c.componentPublicExposed[et]=c,(0,t.provide)(et,c),r!==null){const S=(0,t.inject)(Re,null),m=xt(c.componentPublicExposed,S,o,a);c.broadcast=m,c.componentPublicExposed[Re]=m,(0,t.provide)(Re,m),c.componentPublicExposed.broadcast=(g,v,...E)=>{if(m)return Reflect.apply(m.emit,m,[g,v,...E])};const f=(0,t.inject)(Je,null),y=Sn(c.componentPublicExposed,f,{componentName:"",context:e.context});c.validateSchema=y,c.componentPublicExposed[Je]=y,(0,t.provide)(Je,y),c.componentPublicExposed[zt]=new Map,c.componentPublicExposed.validate=async(g=!0)=>{const v=[];let E=null;const A={};let V=!1;if(g===!0)E={name:"*"},V=!0;else if(Array.isArray(g)&&g.length>0){const N=g;E={name:P=>P?N.indexOf(P)!==-1:!1},V=!0}else if(g!=null&&typeof g=="object"){const N=g;if(N.deep!==!1){if(Object.assign(A,N),Array.isArray(N.include)&&N.include.length>0){const P=N.include;E={name:G=>G?P.indexOf(G)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const P=N.exclude;E={name:G=>G?P.indexOf(G)===-1:!1}}else E={name:"*"};V=!0}}if(V&&E){A.deep=!1;const N=m?.emitToChildren(E,"validate",A);N&&Reflect.apply([].push,v,N)}return v.length==1?v[0]:v.length>1?Promise.all(v).then(N=>{let P=[];return N.forEach(G=>{G.pass===!1&&Array.isArray(G.errors)&&(P=[...P,...G.errors])}),P.length>0?{pass:!1,errors:P}:{pass:!0}}):Promise.resolve({pass:!0})};const B=e.context;c.componentPublicExposed.setNameValidateRules=(g,v=!0,E=!1)=>{if(E===!0){Reflect.ownKeys(g).forEach(A=>{let V=String(A);const N={componentName:"",fieldName:V,pureDataValidate:!0,context:B};if(c){const P=kr(c,V,N,m,y);c.componentPublicExposed[zt].set(V,P);const G=g[V];G&&P.validateSchema.setRule(G)}});return}if(v){const A=Reflect.ownKeys(g);m?.emitToChildren({name:V=>A.includes(V),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",g,!1)}},c.componentPublicExposed.clearValidate=(g=!0)=>{let v=null;const E={};let A=!1;if(g===!0)v={name:"*"},A=!0;else if(Array.isArray(g)&&g.length>0){const V=g;v={name:N=>N?V.indexOf(N)!==-1:!1},A=!0}else if(g!=null&&typeof g=="object"){const V=g;if(V.deep!==!1){if(Array.isArray(V.include)&&V.include.length>0){const N=V.include;v={name:P=>P?N.indexOf(P)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const N=V.exclude;v={name:P=>P?N.indexOf(P)===-1:!1}}else v={name:"*"};Object.assign(E,V),A=!0}}A&&v&&(E.deep=!1,m?.emitToChildren(v,"clearValidate",E))},c.componentPublicExposed.resetFields=g=>{const v=d();if(!v)return;const E={};if(mt(!0,E,p()??{}),Array.isArray(g))g.forEach(A=>{v[A]=E[A]});else if(g&&Array.isArray(g.include))(g.include??[]).forEach(A=>{v[A]=E[A]});else if(g&&Array.isArray(g.exclude)){let A=g.exclude??[];Reflect.ownKeys(E).forEach(V=>{A.includes(V)||(v[V]=E[V])})}else Object.assign(v,E);c?.componentPublicExposed?.clearValidate(g)},c.componentPublicExposed.setModelValue=(g,v)=>{if(!v||v===o)s(g);else{const E={name:v,messagingPolicy:"Once"};m?.emitToChildren(E,"setModelValue",g)}},c.componentPublicExposed.getModelValue=()=>d(),c.componentPublicExposed.setDomainProperty=(g,v)=>{C(g,v)},c.componentPublicExposed.getDomainProperty=g=>k(g),setTimeout(function(){m?.pull()},0)}(0,t.onScopeDispose)(function(){c?.validateSchema&&c.validateSchema.destroy(),c?.broadcast&&c?.broadcast?.destroy(),c.componentPublicExposed[zt]&&c.componentPublicExposed[zt].clear(),c?.destroy(),c=null});const w=e.context?.expose;return{domain:c,exposeApi:(S={})=>{Object.assign(c.componentPublicExposed,S),w?.(c.componentPublicExposed)}}}function Sr(e,n){let a=(0,t.inject)(et,null);a===null&&(a=ht());let l=new Cn(n);l.parent=a;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,c=>{l?.merge(c,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[et]=l,(0,t.provide)(et,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const o=e.context?.expose;return{domain:l,exposeApi:(c={})=>{Object.assign(l.componentPublicExposed,c),o?.(l.componentPublicExposed)}}}function Be(e,n,a){const l={},r=n??e.componentName??"";let i=xt(l,(0,t.inject)(Re,null),r,a);l[Re]=i,(0,t.provide)(Re,i),l.broadcast=(u,h,...b)=>i?Reflect.apply(i.emit,i,[u,h,...b]):null;const o=(0,t.inject)(Je,null);e.fieldName=e.fieldName??r;let c=Sn(l,o,e);l[Je]=c,(0,t.provide)(Je,c),l.validate=async(u=null)=>{if(!c)return Promise.resolve({pass:!0});const h=[];let b=null;const C={};let k=!1,w=!1;if(u===!0)b={name:"*"},w=!0,k=!0;else if(Array.isArray(u)&&u.indexOf(r)!==-1){const S=u;b={name:m=>m?S.indexOf(m)!==-1:!1},w=!0,k=!0}else if(u&&typeof u=="object"){const S=u,m=S.ignoreDisabled??!0,f=S.ignoreReadonly??!0,y=S.ignoreHidden??!0;m===!0&&e.disabled===!0||f===!0&&e.readonly===!0||y===!0&&Vl(e.templateRefProxy?.$el??e.templateRefProxy)?w=!1:(Array.isArray(S.include)&&S.include.indexOf(r)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(r),w=!0),Object.assign(C,S),k=S.deep??!1}if(w){const S=c?.validate();h.push(S)}if(k&&b){C.deep=!1;const S=i?.emitToChildren(b,"validate",C);S&&Reflect.apply([].push,h,S)}return h.length==1?h[0]:h.length>1?Promise.all(h).then(S=>{let m=[];return S.forEach(f=>{f.pass===!1&&Array.isArray(f.errors)&&(m=[...m,...f.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=u=>c?.setRule(u),l.setNameValidateRules=(u,h=!1)=>{const b=u[r];b&&c?.setRule(b),h&&i&&i.emitToChildren({name:C=>Reflect.ownKeys(u).includes(C)},"setNameValidateRules",u,!1)},l.clearValidate=(u=!0)=>{if(!c)return;let h=null;const b={};let C=!1,k=!1;if(u===!0)h={name:"*"},k=!0,C=!0;else if(Array.isArray(u)&&u.indexOf(r)!==-1){const w=u;h={name:S=>S?w.indexOf(S)!==-1:!1},k=!0,C=!0}else if(u&&typeof u=="object"){const w=u;(w.ignoreHidden??!0)===!0&&Vl(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),k=!0),Object.assign(b,w),C=w.deep??!1}k&&c?.clear(),C&&h&&(b.deep=!1,i?.emitToChildren(h,"clearValidate",b))};let s=new vr(e.context?.emit);l[kn]=s,l.triggerEvent=(u,...h)=>{s.emit(u,...h)};const d=qe((u="validate")=>{c&&(u==="reset"?c.clear():c.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:pr()).forEach(u=>{s&&s.on(u,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:yr()).forEach(u=>{s&&s.on(u,h=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,c?.destroy(),l[Je]=null,c=null,s?.destroy(),l[kn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const p=e.context?.expose;return{broadcast:i,validateSchema:c,emitEvent:(u,...h)=>{s&&Reflect.apply(s.emit,s,[u,...h])},onEvent:(u,h)=>{s&&Reflect.apply(s.on,s,[h])},offEvent:(u,h)=>{s&&Reflect.apply(s.off,s,[h])},componentPublicExposed:l,exposeApi:(u={})=>{Object.assign(l,u),p?.(l)}}}function kr(e,n,a,l,r){const i={},o=n??"",c={getValue(){const u=e.getForSelf("modelValue");return u?u[o]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,o):!1}};a.fieldName=o,a.validateHandler={getValue(u){return c.getValue()}};let s=Sn({},r,a);i.validate=async(u=null)=>{if(!c.isExist())return console.warn(`validate error: field [${o}] not exist`),Promise.resolve({pass:!0});const h=[];let b=!1,C=!1;if(Array.isArray(u)&&u.indexOf(o)!==-1)C=!0,b=!0;else if(u&&typeof u=="object"){const k=u;Array.isArray(k.include)&&k.include.indexOf(o)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(o),C=!0,b=k.deep??!1}else typeof u=="boolean"&&(b=u),C=!0;if(C&&s){const k=s.validate();h.push(k)}if(b){let k=null;const w={};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const S=u;k={name:m=>m?S.indexOf(m)!==-1:!1}}else if(u!=null&&typeof u=="object"){const S=u;if(Object.assign(w,S),Array.isArray(S.include)&&S.include.length>0){const m=S.include;k={name:f=>f?m.indexOf(f)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const m=S.exclude;k={name:f=>f?m.indexOf(f)===-1:!1}}else k={name:"*"}}if(k&&d){w.deep=!1;const S=d.emitToChildren(k,"validate",w);Reflect.apply([].push,h,S)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(k=>{let w=[];return k.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(w=[...w,...S.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=u=>s?.setRule(u),i.setNameValidateRules=u=>{const h=u[o];h&&s?.setRule(h)};let d=xt(i,l,o);(0,t.onScopeDispose)(()=>{s=null,d=null});const p=a.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(u={})=>{Object.assign(i,u),p?.(i)}}}function Fe(e,n){let a={};if(n){const i=(0,t.inject)(Re,null),o=xt(a,i,n,{});a[Re]=o,(0,t.provide)(Re,o)}let l=new vr(e.context?.emit);a[kn]=l,a.triggerEvent=(i,...o)=>{l.emit(i,...o)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(a,kn),a=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...o)=>{l&&Reflect.apply(l.emit,l,[i,...o])},onEvent:(i,o)=>{l&&Reflect.apply(l.on,l,[o])},offEvent:(i,o)=>{l&&Reflect.apply(l.off,l,[o])},componentPublicExposed:a,exposeApi:(i={})=>{Object.assign(a,i),r?.(a)}}}var ge=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",Is=ge;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let r=Number(e.substring(0,a)),i=1;if(_e){const{fontSize:o}=window.getComputedStyle(document.documentElement,null),c=o.indexOf("px");c>0&&(i=Number(o.substring(0,c)))}return r*=i,r}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const l=Number(e);return isNaN(l)?0:l}function qs(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var nt="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function Ml(e,n,a={},l=!0,r=-1,i=-1,o=0,c=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ue(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(o,i)-ue(c,i),e.width=ue(a.width??n.width??0,r)}}function wr(e,n={}){const a={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=ue(r.top),l.safeAreaBottom=ue(r.bottom),l.safeAreaLeft=ue(r.left),l.safeAreaRight=ue(r.right));const i=e.get("pageLayout");if(!i)return null;Ml(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const o=(0,t.reactive)(l),c=e.getForParent(nt);c&&(l.height=Tn(e,c),l.width=Vn(e,c),(0,t.watch)([()=>Tn(e,c),()=>Vn(e,c)],([d,p])=>{o.height=d,o.width=p}));const s=!c;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,p,u=-1,h=-1,b=0,C=0])=>{Ml(o,p,n,s,u,h,b,C)}),e.set(nt,o),o}function Nn(e){return e.get(nt)}function An(e,n){if(n=n??e.get(nt),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Bn(e,n){if(n=n??e.get(nt),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Tn(e,n){if(n=n??e.get(nt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=An(e,n),l=Bn(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-a-l-r-i}return 0}function Vn(e,n){if(n=n??e.get(nt),n){const a=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-a-l}return 0}function xs(e){return!!e.getForParent(nt)}var Rl=Symbol.for("InnerPageScopeKey");function Cr(e){(0,t.provide)(Rl,e)}function Ft(e=!1){return(0,t.inject)(Rl,e)}var zl=Symbol.for("AbstractPageScopeKey");function Nr(e){(0,t.provide)(zl,e)}function Lt(e=!1){return(0,t.inject)(zl,e)}function Ar(e=!1){const n=Lt(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function Br(e=!1){const n=Lt(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function Tr(e=!1){const n=Lt(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Fl=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function En(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=1,l){const r=tt();return r==null?e:a===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let c=i.length-1;c>=0;c--){const s=i[c];if(En(s,l))return s}const o=e.value;return En(o,l)?o:null}):(0,t.computed)(()=>{const i=e.value;if(En(i,l))return i;const o=r.getAll(n);for(let c=0;c<o.length;c++){const s=o[c];if(En(s,l))return s}return null})}function Vr(e){return Te(e,"readonly",1)}function Er(e){return Te(e,"disabled",1)}function $r(e){return Te(e,"browse",1)}function Ve(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=Er((0,t.computed)(()=>a.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:a,disabled:l,innerReadonly:r,readonly:Vr((0,t.computed)(()=>r.value??e.readonly)),browse:$r((0,t.computed)(()=>e.browse))}}function xe(e,n="modelValue",a=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof a=="function"&&(i=a(r.value));const o=(0,t.ref)(i);return(0,t.watch)(r,c=>{if(typeof a=="function"){const s=a(c);s!==o.value&&(o.value=s,l&&l("setValue",s))}else c!==o.value&&(o.value=c,l&&l("setValue",c))}),o}var Dr=new Map,$n=new Map,Ll=null;function Ps(e){Ll=e}function Ms(){return Ll}function it(){return Ll?.()??null}function Ir(e,n,a){if(a){let l=$n.get(a);l||(l=new Map,$n.set(a,l)),l.set(e,n)}else Dr.set(e,n)}function lt(e,n){let a=null;if(n){let l=$n.get(n);l&&(a=l.get(e))}return a||(a=Dr.get(e)),a}function Rs(e,n){for(let a in e){const l=e[a];Ir(a,l,n)}}function zs(e){$n.delete(e)}function Fs(){return{top:0,left:0,bottom:0,right:0}}function Ls(){return _e?{rootWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Os(e,n){let a=e;if(n.componentPrefix){const l=a.indexOf("-");l!==-1?a=`${n.componentPrefix}${a.slice(l)}`:a=`${n.componentPrefix}-${a}`}return bn(a)}var Ks=class{packages;resizeListener=null;resizeObserver=null;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const r=Os(l.name,n);e.component(r,l)}});const a=ht();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=qe(()=>{const i={...l};this.updateLayout(i,a)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,a)},window.visualViewport?(r&&window.visualViewport.removeEventListener("resize",r),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(n,a)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const a=e.headerBarHeight??0,l=e.footerBarHeight??0,r=mt({},Fs(),e.safeAreaInset),i=Ls(),o=mt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",r),n.set("headerBarHeight",a),n.set("footerBarHeight",l),n.set("pageLayout",o),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)c.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Ps(e)}getScopeGetter(){return Ms()}setAPI(e,n,a){Ir(e,n,a)}getAPI(e,n){return lt(e,n)}batchSetAPI(e,n){Rs(e,n)}clearScopeAPI(e){zs(e)}getRootDomain(){return ht()}};function te(e){const n=`fox-${e}`,a=bn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=a,l.install=(r,i)=>{let o=l.name;i?.componentPrefix&&(o=`${i.componentPrefix}-${l.baseName}`,o=bn(o)),r.component(o,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Us=(e,n)=>{let a=document.body;const l=e.teleport||"body";l!="body"&&(ar(l)?a=document.querySelector(l):a=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};hn(n.wrapper)?i=n.wrapper(a,r):i=n.wrapper;const o=(0,t.createApp)(i,e),c=n.components;return c&&c.forEach(s=>{o.use(s)}),a.appendChild(r),{instance:o.mount(r),unmount:()=>{o.unmount(),a.removeChild(r)}}},qr=(e,n)=>e?(0,t.h)(e,n):"",be={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Se={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},xr={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}},Pr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Mr=[];for(const e in Pr)Mr.push(e);var Hs={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}},js=(e,n)=>({inheritAttrs:!0,props:{...be,...xr,...Hs},setup(a,l){const r=!!Lt(!1),i=Ft(!1),{domain:o,exposeApi:c}=Pl({props:a,context:l},a.name);if(o){const u=wr(o,a);c({getPageContentHeight:()=>Tn(o,u),getPageContentWidth:()=>Vn(o,u),getPageHeaderHeight:()=>An(o,u),getPageFooterHeight:()=>Bn(o,u)}),u&&i&&(u.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),p=(u,h=!1)=>{o.componentPublicExposed&&typeof o.componentPublicExposed.setNameValidateRules=="function"&&o.componentPublicExposed.setNameValidateRules(u,!0,h)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([u,h],[b,C])=>{if(u&&b){const k=(0,t.toRaw)(b),w=(0,t.toRaw)(u),S=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(m=>{S.includes(m)||(w[m]=[])}),p(w)}if(h&&C){const k=(0,t.toRaw)(C),w=(0,t.toRaw)(h),S=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(m=>{S.includes(m)||(w[m]=[])}),p(w,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&p((0,t.toRaw)(a.rules)),a.pureDataRules&&p((0,t.toRaw)(a.pureDataRules),!0)}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:Ws,create:Ys,scope:Xs}=te("page"),Qs=Ys(js(Ws,Xs)),Ol=Qs;function Kl(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Dn(e){const n=(0,t.unref)(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),r=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-o}}var Rr={headerbar:{},radio:{},checkbox:{}};function Gs(e){Object.assign(Rr,e)}function In(){return Rr}var _s=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,i){const o=Ar(!1),c=Ft(!1),s=o?null:tt(),d=s?Nn(s):null,p=In(),u=e,h=(0,t.computed)(()=>{const $={[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed};return c||($[`${u}--safe-area-inset-top`]=r.safeAreaInsetTop),$}),b=(0,t.computed)(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),C=Ee(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return $;if(s&&d){const R=Le(r.padding??d.headerPadding);if(Object.assign($,R),Ee(C)||(d.headerHeight=C),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const M=ue(R.top??0);$.top=$.safeAreaTop+M,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Ee(C)||($.height=C),r.padding){const R=Le(r.padding);Object.assign($,R)}return $}),w=(0,t.ref)(null),S=()=>d&&w.value&&!El(w.value)?(l||(d.headerAllHeight=Kl(w.value).height),d.headerMounted=!0,!0):!1,m=qe(S,120);let f=null;(0,t.onMounted)(()=>{o||d&&(ql(S,50,5,50,!0),window.ResizeObserver&&w.value&&(f=new window.ResizeObserver(m),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{o||d&&(d.headerMounted=!1,f&&(f.disconnect(),f=null))});const y=(0,t.computed)(()=>{const $={};return o||(k.value.height!==null&&k.value.height!==void 0&&($.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&($.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&($.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&($.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&($.paddingBottom=`${k.value.bottom}px`)),$}),B=(0,t.computed)(()=>{const $=k.value?.height;return Ee($)||$<0?!0:$>0});function g(){i.emit("back")}function v(){i.emit("click-title")}function E(){i.emit("click-right")}function A(){i.emit("click-right-text")}const V=()=>{if(!r.leftShow)return null;const $=[];if(i.slots.left)$.push(i.slots.left());else{if(i.slots.leftIcon){const R=(0,t.h)("view",{class:"left-icon",onClick:g},[i.slots.leftIcon()]);$.push(R)}else{const R=r.leftIcon??p.headerbar.Left??a,M=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(R)]);$.push(M)}if(r.leftText){const R=(0,t.h)("view",{class:"left-text",onClick:g},[r.leftText]);$.push(R)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},N=()=>{if(!r.rightShow)return null;const $=[];if(i.slots.right)$.push(i.slots.right());else{if(r.rightText){const R=(0,t.h)("view",{class:"right-text",onClick:A},[r.rightText]);$.push(R)}if(i.slots.rightIcon){const R=(0,t.h)("view",{class:"right-icon",onClick:E},[i.slots.rightIcon()]);$.push(R)}else if(r.rightIcon){const R=(0,t.h)("view",{class:"right-icon",onClick:E},[(0,t.h)(r.rightIcon)]);$.push(R)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},P=()=>{if(!r.titleShow)return null;const $=[],R=i.slots.default?i.slots.default():null;if(R)$.push(R);else{if(r.title){const M=(0,t.h)("view",{class:"title-text"},[r.title]);$.push(M)}if(i.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:v},[i.slots.titleIcon()]);$.push(M)}else if(r.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:v},[(0,t.h)(r.titleIcon)]);$.push(M)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},G=()=>{const $=[],R=i.slots.bottom?i.slots.bottom():null;return R&&$.push(R),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(o||!B.value)return null;const $=[];if(i.slots.all)$.push(i.slots.all());else{const R=[],M=V();M&&R.push(M);const U=P();U&&R.push(U);const z=N();if(z&&R.push(z),R.length>0){const x=(0,t.h)("view",{class:b.value},R);$.push(x)}const Y=G();Y&&$.push(Y)}return $.length===0?null:(0,t.h)("view",{class:h.value,style:y.value,ref:w},$)}}}),{componentName:Zs,create:Js,scope:ec}=te("header-bar"),tc=Js(_s(Zs,ec,re.Left,!1)),Ul=tc;function nc(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,r){const i=Br(!1),o=Ft(!1),c=i?null:tt(),s=c?Nn(c):null,d=e,p=(0,t.computed)(()=>{const f={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return o||(f[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),f}),u=Ee(l.height)?null:ue(l.height),h=(0,t.computed)(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return f;if(c&&s){const y=Le(l.padding??s.footerPadding);if(Object.assign(f,y),Ee(u)||(s.footerHeight=u),f.height=s.footerHeight,f.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,f.safeAreaBottom>0){const B=ue(y.bottom??0);f.bottom=f.safeAreaBottom+B,f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)}return f}if(Ee(u)||(f.height=u),l.padding){const y=Le(l.padding);Object.assign(f,y)}return f}),b=(0,t.computed)(()=>{const f=h.value?.height;return Ee(f)||f<0?!0:f>0}),C=(0,t.ref)(null),k=()=>s&&C.value&&!El(C.value)?(a||(s.footerAllHeight=Kl(C.value).height),s.footerMounted=!0,!0):!1,w=qe(k,120);let S=null;(0,t.onMounted)(()=>{i||s&&(ql(k,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(w),S.observe(C.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const m=(0,t.computed)(()=>{const f={};return i||(h.value.height!==null&&h.value.height!==void 0&&(f.height=ge(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(f.paddingTop=ge(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(f.paddingLeft=ge(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(f.paddingRight=ge(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(f.paddingBottom=ge(h.value.bottom))),f});return()=>{if(i||!b.value)return null;const f=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:C,class:p.value,style:m.value},f)}}}}var{componentName:lc,create:ac,scope:oc}=te("footer-bar"),rc=ac(nc(lc,oc,!1)),Hl=rc;function ic(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:l,attrs:r}){const i=Tr(!1),o=Ft(!1),c=i?null:tt(),s=(0,t.computed)(()=>({[e]:!0})),d=c?Nn(c):null,p=(0,t.computed)(()=>{const k={};if(i)return k;if(c&&d){if(a.padding){const v=Le(a.padding);Object.assign(d.contentPadding,v)}const w=An(c,d),S=Bn(c,d);let m="";d.contentHeight?m=`${d.contentHeight}`:m=`${d.height}px`,console.debug("[content]page height:",m),console.debug("[content]header height:",w),console.debug("[content]footer height:",S),console.debug("[content]padding:",d.contentPadding),k.height=m;let f=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(f>=0||w>0)&&(f=f<0?0:f,k.paddingTop=`${w+f}px`);let y=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(y>=0||S>0)&&(y=y<0?0:y,k.paddingBottom=`${S+y}px`);const B=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);B>=0&&(k.paddingLeft=`${B}px`);const g=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(k.paddingRight=`${g}px`),k}if(a.padding){const w=Le(a.padding);w.left&&(k.paddingLeft=`${w.left}px`),w.top&&(k.paddingTop=`${w.top}px`),w.right&&(k.paddingRight=`${w.right}px`),w.bottom&&(k.paddingBottom=`${w.bottom}px`)}return k}),u=(0,t.ref)(null),h=()=>{if(d&&u.value){const k=Dn(u.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},b=qe(h,120);let C=null;return(0,t.onMounted)(()=>{o||i||(requestAnimationFrame(h),window.ResizeObserver&&u.value&&(C=new window.ResizeObserver(b),C.observe(u.value)))}),(0,t.onUnmounted)(()=>{o||i||C&&(C.disconnect(),C=null)}),()=>i?l.default?.():(0,t.h)(a.tag??"view",{...r,ref:u,class:s.value,style:p.value},l)}}}var{componentName:sc,create:cc,scope:uc}=te("content"),dc=cc(ic(sc,uc)),jl=dc,pt="GroupStateKey",zr=Symbol.for("GroupScopeKey");function qn(){return(0,t.inject)(zr,!1)}function xn(e=!0){(0,t.provide)(zr,e)}function fc(e,n={}){Reflect.ownKeys(n).forEach(a=>{if(typeof a!="string")return;const l=n[a];Ee(l)||(e[a]=l)})}function mc(e,n={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};fc(a,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set(pt,l),l}function Wl(e,n,a=-1,l=-1,r=!1,i,o,c){const s=e.get(pt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),o||(o=d.maxItemWidth??-1);const p=ue(i),u=ue(o);c||(c=d.type??"grid");const h=()=>{const b=n===""||n===-1,C=ue(n);let k=de(a);const w=ue(l);if(!b){let f=(C-(k-1)*w)/k;for(;u!==-1&&f>u;)k++,f=(C-(k-1)*w)/k;for(;p!==-1&&k>1&&f<p;)k--,f=(C-(k-1)*w)/k}let S=!1;const m=s.layout;m.value.width=n,m.value.column!==k&&(m.value.column=k,S=!0),m.value.gutter!==w&&(m.value.gutter=w,S=!0),m.value.type!==c&&(m.value.type=c,S=!0),S&&(0,t.triggerRef)(m)};if(r)h();else{const b=++s.passport;setTimeout(()=>{b===s.passport&&h()},50)}}function Pn(e,n=!1){let a;return n?a=e.getForParent(pt):a=e.get(pt),a.layout}function Mn(e,n=!1){let a;return n?a=e.getForParent(pt):a=e.get(pt),a.order}function Fr(e,n=1){if(n==="stretch")return-1;const a=de(n);return a===-1?100:100*a/e}function Rn(e,n,a=1,l=0,r){const i={};let o=0;r?o=ue(r):o=Fr(n.column,a),o>0&&(i.width=`${o}%`);const c=Fr(n.column,l);c>0&&(i["margin-left"]=`${c}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function zn(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let r=de(a);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const i=de(l)%n.column;let o=(e.index+i)%n.column,c=o+r;return c>n.column?(o=0,c=o+r,e.index=e.index+(n.column-o)+r):e.index=e.index+i+r,i>0?{"grid-column":`${o+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var Lr=Symbol("RollingStateKey");function hc(e){(0,t.provide)(Lr,e)}function pc(){return(0,t.inject)(Lr,null)}function Yl(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function gc(e){let n=Yl(e);if(n<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Yl(a),document.body.removeChild(a)}return n}function yc(e,n,a){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof a=="number"?a:parseInt(a);if(l<=0)return"1fr";const o=(l-(r-1)*i)/r;return o>0?`${o}px`:"1fr"}function Or(e){const n=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?n.push(...Or(a.children)):n.push(a)}),n}function bc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Ot(e){function n(){return Or(e?.()??[]).filter(bc)}return{getChildren:n}}var vc={...be,...xr,...Pr};function Sc(e,n,a){return{props:vc,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:o}=Pl({props:l,ignorePropKeys:Mr,context:r},l.prop??l.name),c=mc(i,{type:l.type}),s=qn();xn(!0);const d=l.rollingDisplay?pc():null,p=(0,t.ref)(null),u=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),h=(0,t.computed)(()=>s&&i?Pn(i,!0).value:null),b=(Q,le=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(Q,!0,le)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([Q,le],[K,j])=>{if(Q&&K){const I=(0,t.toRaw)(K),D=(0,t.toRaw)(Q),F=D?Reflect.ownKeys(D):[];(I?Reflect.ownKeys(I):[]).forEach(J=>{F.includes(J)||(D[J]=[])}),b(D)}if(le&&j){const I=(0,t.toRaw)(j),D=(0,t.toRaw)(le),F=D?Reflect.ownKeys(D):[];(I?Reflect.ownKeys(I):[]).forEach(J=>{F.includes(J)||(D[J]=[])}),b(D,!0)}},{deep:!0});const C=e,k=(0,t.computed)(()=>{const Q={};if(Q.height=R.value,l.width)l.width!=="auto"&&(Q.width=ge(l.width));else{const le=s?Mn(i,!0):null;if(h.value&&le){if(h.value.type==="grid"){const K=zn(le,h.value,l.span,l.offset);Object.assign(Q,K)}else if(h.value.type==="flow"){const K=Rn(le,h.value,l.span,l.offset,l.width);Object.assign(Q,K)}}}return Q}),w=(0,t.computed)(()=>{const Q=c.layout.value.type;return Q==="grid"||Q==="flow"?{[`${C}--${Q}`]:!0,[`${C}--${Q}-justify-${l.justify}`]:!0,[`${C}--${Q}-align-${l.align}`]:!0,[`${C}--gutter`]:!0}:{[`${C}--${Q}`]:!0,[`${C}--gutter`]:!0}}),S=(0,t.computed)(()=>{if(c.layout.value.type==="grid"){let Q="";if(l.columnWidth)Q=`repeat(auto-fill, ${l.columnWidth})`;else{const le=yc(E.value,c.layout.value.column,c.layout.value.gutter);Q=`repeat(${c.layout.value.column}, ${le})`}return{"column-gap":`${c.layout.value.gutter}px`,"grid-template-columns":Q}}}),m=(0,t.toRef)(l,"gutter"),f=(0,t.toRef)(l,"column"),y=(0,t.computed)(()=>s||u.value?!0:ke(l.isWrap)),B=[],g=Q=>{B.push(Q)},v=()=>{let Q=B.length;B.splice(0,Q)},E=(0,t.ref)(-1),A=Q=>{const le=Dn(Q).width;le>0&&le!==E.value&&(E.value=le)};Wl(i,E.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([E,f,m],([Q,le,K])=>{c.order.index=0,Wl(i,Q,le,K,!1,l.minItemWidth,l.maxItemWidth,l.type)});const V=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),N=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),P=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),G=(0,t.ref)(),$=(0,t.ref)(),R=(0,t.computed)(()=>U.value||ge(l.height)||""),M=(0,t.ref)(!1),U=(0,t.ref)(""),z=(0,t.ref)(!1);let Y=-1;const x=(Q,le=!0)=>{const K=G.value;if(K&&M.value!==Q){if(Y=Y<=0?gc(K):Y,z.value=!0,le)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",Q||(U.value="",z.value=!1)},Q){let j=0;l.collapseHeight?j=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(j=$.value.offsetHeight),U.value=`${Y}px`,(0,t.nextTick)(()=>{U.value=`${j}px`})}else U.value=`${Y}px`;else if(Q){let j=0;l.collapseHeight?j=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(j=$.value.offsetHeight),U.value=`${j}px`}else z.value=!1,U.value=`${Y}px`;M.value=Q,r.emit("update:collapse",Q)}};(0,t.watch)(()=>l.collapse,Q=>{x(Q)});const _=Q=>{r.emit("header-click",Q)},ee=()=>{oe()},oe=Q=>{Q=Q??!M.value,x(Q)};o({toggleCollapse:oe,doLayout:()=>{B[0]&&(A(B[0]),Wl(i,E.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Z=null,L=!0;const ne=Q=>{if(l.rules&&b((0,t.toRaw)(l.rules)),l.pureDataRules&&b((0,t.toRaw)(l.pureDataRules),!0),!!_e&&(Q&&x(ke(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const le=B[0];if(A(le),window.ResizeObserver){const K=qe(()=>A(le),120);Z=new window.ResizeObserver(K),Z.observe(le)}}},H=()=>{Z?.disconnect(),Z=null},q=!u.value||d?.acquire();q&&(p.value=u.value?!0:null),(0,t.onMounted)(()=>{if(q&&(ne(L),L=!1),u.value&&d){let Q=null,le=d.initialHeight;d.observe(G.value,K=>{if(K!==p.value)if(K)p.value=!0,M.value||(U.value=""),Q=setTimeout(()=>{Q=null,p.value!==!1&&(ne(L),L=!1)},100);else{if(Q!==null&&clearTimeout(Q),p.value=!1,!M.value)if(L)U.value=d.initialHeight;else{let j=Yl(G.value);j<=0?U.value=le:(U.value=`${j}px`,le=U.value)}L||H()}})}}),(0,t.onUnmounted)(()=>{Z?.disconnect(),d&&d.unobserve(G.value)});const O=(Q="right")=>{const le=[];if(V.value){const I=(0,t.h)("span",{class:N.value},[V.value]);le.push(I)}const K={class:P.value},j=(0,t.h)(l.collapseIcon??a,K);return le.push(j),le.length>0?(0,t.h)("div",{class:{[`${C}__header-collapse`]:!0,[`is-${Q}`]:!0},onClick:ee},le):null},W=(Q,le,K,j)=>{const I={...w.value};if(le===0&&(I[`${C}__first`]=!0),K>=j-1&&(I[`${C}__last`]=!0),y.value===!1){const D=r.attrs.class;D&&(I[`${D}`]=!0)}return(0,t.h)("div",{ref:g,key:`${le}`,class:I,style:S.value},Q)};return()=>{const Q=l.prop??l.name;if(u.value&&p.value!==!0)return(0,t.h)(l.tag||"div",{ref:G,prop:Q,class:{[`${C}`]:!0,"is-collapse":z.value},style:k.value},[]);c.order.index=0;const le=[];let K=0;if(r.slots.header){const F=(0,t.h)("div",{key:`${K++}`,ref:$,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:_},[r.slots.header()]);le.push(F)}else{const F=[],J=l.collapsePosition==="left";if(J&&l.showCollapse){const ae=O("left");ae&&F.push(ae)}if(l.title||r.slots.title){if(l.showMark){const ae={class:{[`${C}__header-mark`]:!0}};l.markColor&&(ae.style={background:l.markColor});const se=(0,t.h)("div",ae);F.push(se)}if(r.slots.title){const ae=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[r.slots.title()]);F.push(ae)}else if(l.title){const ae=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[l.title]);F.push(ae)}}if(r.slots.toolbar&&F.push(r.slots.toolbar()),!J&&l.showCollapse){const ae=O("right");ae&&F.push(ae)}if(F.length>0){const ae=(0,t.h)("div",{key:`${K++}`,ref:$,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:_},F);le.push(ae)}}v();const{getChildren:j}=Ot(r.slots.default),I=j(),D=c.layout.value.type;if(D==="grid"){const F=W(I,K++,0,I.length);le.push(F)}else if(D==="flow"){const F=W(I,K++,0,I.length);le.push(F)}else for(let F=0;F<I.length;F++){const J=I[F],ae=W([J],K++,F,I.length);le.push(ae)}return y.value?(0,t.h)(l.tag||"div",{ref:G,prop:Q,class:{[`${C}`]:!0,"is-collapse":z.value},style:k.value},[le]):le}}}}var{componentName:kc,create:wc,scope:Cc}=te("group"),Nc=wc(Sc(kc,Cc,re.RectUp)),Xl=Nc;function Ac(e){return e===window}var Bc=/matrix\((.+)\)/,Ql=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Ac(n))return{x:0,y:0};let a=0,l=0,r=n;for(;r!==null;)a+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,o=0,c=0,s=0;for(r=n;r!==document;){o+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const p=Bc.exec(d);if(p){let u=p[1].split(/\s*,\s*/);u.length==6&&(c+=Number(u[4]),s+=Number(u[5]))}}r=r.parentNode}return a-=i,l-=o,a+=c,l+=s,{x:a,y:l}},Tc=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},Vc=class{monitorRegister=new WeakMap;watch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let r=this.monitorRegister.get(a);r||(r=new Tc,a.addEventListener("scroll",r.listen),a===document.body&&a.addEventListener("resize",r.listen),this.monitorRegister.set(a,r)),r.add(n),a=a.parentNode}}unwatch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let r=this.monitorRegister.get(a);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",r.listen),a===document.body&&a.removeEventListener("resize",r.listen))),a=a.parentNode}}},Kt=new Vc,Kr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ec,create:$c}=te("price"),Dc=$c({props:{...Kr},setup(e){const n=(0,t.computed)(()=>({[Ec]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>we(e.price)==0?"":fn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:a,intText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(0,i)}),decimalText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(i+1)})}}}),ie=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},Ic=["innerHTML"],qc=["innerHTML"];function xc(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ic)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,qc)):(0,t.createCommentVNode)("",!0)],2)}var Fn=ie(Dc,[["render",xc]]),{componentName:Gl,create:Pc}=te("hint-text"),Mc=Pc({components:{Price:Fn},props:{...Kr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),r=(0,t.ref)(0),i=(0,t.ref)(0),o=(0,t.ref)(e.placement),c=(0,t.ref)(!1),s=(0,t.ref)(null),d=(N,P,G,$,R,M)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,Y=N.split("-");let x=[];Y[0]==="top"?x=["top","bottom","right","left"]:Y[0]==="bottom"?x=["bottom","top","right","left"]:Y[0]==="left"?x=["left","top","bottom","right"]:Y[0]==="right"&&(x=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},ee=[];for(let oe=0;oe<x.length;oe++){const X=x[oe];if(ee[0]=X,Y[1]&&(ee[1]=Y[1]),X==="top"){const Z=P.y-M-e.arrowSize-e.offset;if(Z>=0){_.top=Z;let L=0;Y[1]==="start"?L=P.x:Y[1]==="end"?L=P.x+G-R:L=P.x+G/2-R/2;const ne=U-L-R;ne<0?(L+=ne,u.value=-ne):u.value=0,_.left=L<0?0:L;break}}else if(X==="bottom"){const Z=P.y+$+e.arrowSize+e.offset;if(Z+M<=z){_.top=Z;let L=0;Y[1]==="start"?L=P.x:Y[1]==="end"?L=P.x+G-R:L=P.x+G/2-R/2;const ne=U-L-R;ne<0?(L+=ne,u.value=-ne):u.value=0,_.left=L<0?0:L;break}}else if(X==="left"){const Z=P.x-R-e.arrowSize-e.offset;if(Z>=0){_.left=Z;let L=0;Y[1]==="start"?L=P.y:Y[1]==="end"?L=P.y+$-M:L=P.y+$/2-M/2,_.top=L<0?0:L;break}}else if(X==="right"){const Z=P.x+G+e.arrowSize+e.offset;if(Z+R<=U){_.left=Z;let L=0;Y[1]==="start"?L=P.y:Y[1]==="end"?L=P.y+$-M:L=P.y+$/2-M/2,_.top=L<0?0:L;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:_}},p=(N,P,G=10)=>{if(!_e||P===!1||!N)return;l.value=Ql(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const $=s.value.offsetHeight,R=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:U}=d(e.placement,l.value,r.value,i.value,R,$);o.value=M,a.value=U,c.value=!0},u=(0,t.ref)(0),h=qe(()=>{p(e.message,e.visible)},10),b=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,N=>{b.value=N});const C=(0,t.computed)(()=>b.value&&k.value),k=(0,t.ref)(!0),w=qe(N=>{const P=N[0];P&&(k.value=P.isIntersecting)},10),S=new IntersectionObserver(w);(0,t.watch)([()=>e.message,()=>e.visible],([N,P])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Kt.watch(e.reference,h),S.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,h),S.unobserve(e.reference),S.disconnect()});const m=(0,t.computed)(()=>{const N={[Gl]:!0};return o.value.startsWith("top")?N["is-top"]=!0:o.value.startsWith("right")?N["is-right"]=!0:o.value.startsWith("bottom")?N["is-bottom"]=!0:o.value.startsWith("right")&&(N["is-right"]=!0),e.size==="small"?N["is-small"]=!0:e.size==="large"&&(N["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(N[`${e.customClass}`]=!0),N}),f=(0,t.computed)(()=>{const N={};return a.value.top!==null&&(N.top=`${a.value.top}px`),a.value.right!==null&&(N.right=`${a.value.right}px`),a.value.bottom!==null&&(N.bottom=`${a.value.bottom}px`),a.value.left!==null&&(N.left=`${a.value.left}px`),e.autoFit&&(N["min-width"]=`${r.value}px`),N["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,c.value&&(N.opacity="1"),e.transition||(N.transition="none"),e.zIndex&&(N["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(N,e.customStyle),N}),y=(0,t.computed)(()=>{const N=[`${Gl}__content`];return e.customTextClass&&N.push(e.customTextClass),N}),B=(0,t.computed)(()=>{const N={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(N,e.customTextStyle),N}),g=(0,t.computed)(()=>({[`${Gl}__arrow`]:!0})),v=(0,t.computed)(()=>{const N={};return e.showArrow?(N.width=`${e.arrowSize}px`,N.height=`${e.arrowSize}px`,o.value==="top"?(N.left="50%",N.bottom=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):o.value==="top-start"?(N.left=`${e.arrowOffset+u.value}px`,N.bottom=`-${e.arrowSize}px`):o.value==="top-end"?(N.right=`${e.arrowOffset-u.value}px`,N.bottom=`-${e.arrowSize}px`):o.value==="right"?(N.left=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):o.value==="right-start"?(N.left=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):o.value==="right-end"?(N.left=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`):o.value==="bottom"?(N.left="50%",N.top=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):o.value==="bottom-start"?(N.left=`${e.arrowOffset+u.value}px`,N.top=`-${e.arrowSize}px`):o.value==="bottom-end"?(N.right=`${e.arrowOffset-u.value}px`,N.top=`-${e.arrowSize}px`):o.value==="left"?(N.right=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):o.value==="left-start"?(N.right=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):o.value==="left-end"&&(N.right=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`),N):{display:"none"}}),E=(0,t.computed)(()=>C.value&&e.closeOnClick),A=(0,t.computed)(()=>{const N={};return e.zIndex&&(N["z-index"]=`${e.zIndex}`),N});return{show:C,tipRef:s,classes:m,styles:f,textClasses:y,textStyles:B,arrowClasses:g,arrowStyles:v,overlayShow:E,overlayStyle:A,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),Rc=["innerHTML"];function zc(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Rc))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Ur=ie(Mc,[["render",zc]]),Ln=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},_l={},Fc=new Ln,gt=new Map,On=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of gt.keys()){const a=document.getElementById(n);a&&((0,t.render)(null,a),a.parentNode?.removeChild(a))}gt.clear()}},Lc=e=>{e.unmount=On;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={..._l,...a,...e}:e={..._l,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Ur,e),n)}return e.id},Oc=e=>{e.unmount=On;let n=e.id??`hinttext_${Fc.get()}`;e={..._l,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(Ur,e),a),document.body.appendChild(a),n},Kc=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),yt={show(e,n,a={},l=!0){if(!Kc(n))return;const r=a.id;return r&&gt.has(r)?Lc({...a,message:n,reference:e}):(l&&On(),Oc({...a,message:n,reference:e}))},hide(e){On(e)},install(e){e.config.globalProperties.$hintText=yt}};function Uc(e,n,a,l=!1){return{inheritAttrs:!0,props:{...be,...Se},emits:["appear","disappear"],setup(r,i){const o=r.prop??i.attrs.name,c=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return c.value}},o),d=tt(),p=qn();xn(!1);const u=(0,t.computed)(()=>p&&d?Pn(d,!1).value:null),h=e,b=(0,t.ref)(null),C=(0,t.computed)(()=>{const D={[h]:!0,[`${h}__gutter`]:u.value&&u.value.type!=="flow",[`${h}__stretch`]:r.span==="stretch",[`${h}__input--border`]:ke(r.hasBorder)};if(D[r.errorMarkClass]=!!z.value,D[r.warnMarkClass]=!!M.value,D[r.infoMarkClass]=!!$.value,typeof b.value=="function"){const F=b.value(o);D[F]=!0}else if(typeof b.value=="string"){const F=b.value;D[F]=!0}return D}),k=(0,t.ref)(null),w=(0,t.computed)(()=>{const D={};if(r.width)r.width!=="auto"&&(D.width=ge(r.width));else{const F=p&&d?Mn(d,!1):null;if(u.value&&F){if(u.value.type==="grid"){const J=zn(F,u.value,r.span,r.offset);Object.assign(D,J)}else if(u.value.type==="flow"){const J=Rn(F,u.value,r.span,r.offset,r.width);Object.assign(D,J)}}}if(typeof k.value=="function"){const F=k.value(o);F&&Object.assign(D,F)}else if(k.value&&typeof k.value=="object"){const F=k.value;Object.assign(D,F)}return D}),S=(0,t.ref)(null),m=(0,t.computed)({get:()=>S.value??ke(r.isRequired),set:D=>{S.value=D}}),f=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",y=Te((0,t.toRef)(r,"labelPosition"),"labelPosition",Fl.Near),B=(0,t.computed)(()=>y&&y.value==="top"?"top":y&&y.value==="right"?"right":"left"),g=(0,t.computed)(()=>({[`${h}__main`]:!0,[`${h}__main--${B.value}`]:!0})),v=(0,t.computed)(()=>({label:!0,[`label--${B.value}`]:!0})),E=Te((0,t.toRef)(r,"labelWidth"),"labelWidth",Fl.Near),A=(0,t.computed)(()=>E&&E.value?{width:ge(E.value)}:{}),V=(0,t.computed)(()=>({"label--string":!0,"label--required":m.value})),N=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),P=(0,t.computed)(()=>({...r.contentStyle})),G=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(D){m.value=D},setErrorTip(D){G.errorTip=D},setErrorIcon(D){G.errorIcon=D},setWarnTip(D){G.warnTip=D},setWarnIcon(D){G.warnIcon=D},setInfoTip(D){G.infoTip=D},setInfoIcon(D){G.infoIcon=D},setCustomClassName(D){b.value=D},setCustomStyle(D){k.value=D}});const $=(0,t.computed)(()=>r.infoTip||G.infoTip),R=(0,t.computed)(()=>r.infoIcon||G.infoIcon),M=(0,t.computed)(()=>r.warnTip||G.warnTip),U=(0,t.computed)(()=>r.warnIcon||G.warnIcon),z=(0,t.computed)(()=>r.errorTip||G.errorTip),Y=(0,t.computed)(()=>r.errorIcon||G.errorIcon),x=(0,t.computed)(()=>z.value?"error":M.value?"warn":$.value?"info":""),_=()=>x.value.length>0,ee=(0,t.computed)(()=>x.value==="error"?z.value:x.value==="warn"?M.value:x.value==="info"?$.value:""),oe=(0,t.computed)(()=>x.value==="error"?Y.value:x.value==="warn"?U.value:x.value==="info"?R.value:null),X=(0,t.computed)(()=>{const D={[`${h}__tip`]:!0,[`${h}__tip--${x.value}`]:!0,[`${h}--animate`]:!0};return x.value==="error"&&r.errorClass?D[`${r.errorClass}`]=!0:x.value==="warn"&&r.warnClass?D[`${r.warnClass}`]=!0:x.value==="info"&&r.infoClass&&(D[`${r.infoClass}`]=!0),D}),Z=(0,t.computed)(()=>{const D={};return y&&y.value==="top"||!f()?D["padding-left"]="0px":E&&E.value&&(D["padding-left"]=ge(E.value)),D}),L=(0,t.ref)();let ne="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([D,F,J,ae])=>{L.value&&(D&&!he(F)?ne?a.show(L.value,F,{...ae,id:ne,type:J},!0):ne=a.show(L.value,F,{...ae,type:J},!0):a.hide(ne))});let H=null;const q=()=>{H||!L.value||(H=new IntersectionObserver(D=>{let F=!1;for(let J of D)if(J.intersectionRatio>0){F=!0,F&&i.emit("appear",J);break}F||i.emit("disappear")}),H.observe(L.value))},O=()=>{!H||!L.value||(H.unobserve(L.value),H=null)};(0,t.watch)(()=>ke(r.appearListen),D=>{D?q():O()}),(0,t.onMounted)(()=>{ke(r.appearListen)&&q()}),(0,t.onUnmounted)(O);const W=()=>{if(!f())return null;const D=[],F=i.slots?.label?.()??r.label,J=(0,t.h)("div",{class:V.value},[F]);if(D.push(J),i.slots.fixedPreTip){const ae=i.slots.fixedPreTip();D.push(ae)}return(0,t.h)("div",{class:v.value,style:A.value},D)},Q=()=>{const D=[];if(i.slots.prepend){const F=i.slots.prepend();D.push(F)}if(i.slots.default){const F=i.slots.default();D.push(F)}if(i.slots.append){const F=i.slots.append();D.push(F)}if(i.slots.fixedTip){const F=(0,t.h)("div",{class:[`${h}__fixed-tip`]},[i.slots.fixedTip()]);D.push(F)}return(0,t.h)("div",{ref:L,class:N.value,style:P.value},D)},le=()=>{const D=oe.value;return D?typeof D=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[D()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(D)]):null},K=()=>{const D=ee.value;return D?typeof D=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[D()]):(0,t.h)("div",{class:"fox-item__tip--text"},[D]):null},j=()=>{if(!_())return null;const D=[],F=le();F&&D.push(F);const J=K();return J&&D.push(J),(0,t.h)("div",{class:X.value,style:Z.value},D)},I=()=>i.slots?.hide?.()??null;return()=>{const D=[],F=[],J=W();J&&F.push(J);const ae=Q();ae&&F.push(ae);const se=(0,t.h)("div",{class:g.value},F);D.push(se);const fe=j();fe&&D.push(fe);const me=I();return me&&D.push(me),(0,t.h)("div",{class:C.value,style:w.value,prop:r.prop,ref:c},D)}}}}var{componentName:Hc,create:jc,scope:Wc}=te("item"),Yc=jc(Uc(Hc,Wc,yt,!1)),Ut=Yc,Hr={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1},wrap:{type:[String],required:!1,default:"nowrap"}};function Xc(e,n){return{props:Hr,setup(a,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:a.span==="stretch",[`${r}__${a.align}`]:!0})),o=tt(),c=qn();xn(!1);const s=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=ge(a.width));else if(c&&o){const p=Pn(o,!1),u=Mn(o,!1);if(p.value&&u){if(p.value.type==="grid"){const h=zn(u,p.value,a.span,a.offset);Object.assign(d,h)}else if(p.value.type==="flow"){const h=Rn(u,p.value,a.span,a.offset,a.width);Object.assign(d,h)}}}return a.gutter&&(d["column-gap"]=ge(a.gutter)),a.wrap&&(d["flex-wrap"]=a.wrap),d});return()=>{const d=[];if(l.slots.default){const{getChildren:p}=Ot(l.slots.default),u=p();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const b=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(b)}d.push(u[h])}else Reflect.apply([].push,d,u)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Qc,create:Gc,scope:_c}=te("row-item"),Zc=Gc(Xc(Qc,_c)),Kn=Zc;function Jc(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var eu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function tu(e,n,a,l=!1){return{props:eu,emits:["click"],setup(r,i){const o=(0,t.ref)(null),c=(0,t.computed)(()=>{const f={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(f[`${e}--${r.type??"default"}`]=!0),r.size&&(f[`${e}--${r.size}`]=!0),f}),s=(0,t.computed)(()=>{const f={},y=r.textColor??r.color;return y&&(f.color=y),f}),d=(f,y)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const g=r.highlightFilter;f.indexOf(g)!==-1&&(y.innerHTML=f.replace(new RegExp(g,"g"),`<span>${g}</span>`),y.class["is-highlight"]=!0,B=(0,t.h)(r.tag,y))}else if(typeof r.highlightFilter=="function"){const g=r.highlightFilter(f);g&&(y.innerHTML=g,y.class["is-highlight"]=!0,B=(0,t.h)(r.tag,y))}return B},p=f=>{i.emit("click",f)};let u="";const h=()=>{const f=o.value;if(!f)return;const y=f.clientWidth;Jc(f,B=>{const g=f.innerHTML??"";he(g)||B<y||(u?a?.show(f,g,{type:"text",id:u,showArrow:r.showArrow},!0):u=a?.show(f,g,{type:"text",showArrow:r.showArrow},!0)??"")})},b=()=>{u&&a?.hide(u)};let C=null;const k=f=>{C||(C=setTimeout(()=>{h(),C=null},r.showAfter??0))},w=f=>{C&&(clearTimeout(C),C=null),setTimeout(()=>{b()},r.hideAfter??0)},S=()=>{const f=o.value;f&&(f.addEventListener("mouseover",k),f.addEventListener("mouseleave",w))},m=()=>{const f=o.value;f&&(f.removeEventListener("mouseover",k),f.removeEventListener("mouseleave",w))};return(0,t.onMounted)(()=>{!ke(r.showOverflowTooltip)||!a||S()}),(0,t.onBeforeUnmount)(()=>{!ke(r.showOverflowTooltip)||!a||m()}),()=>{const f={class:c.value,style:s.value,ref:o,onClick:p};let y=null;if(ke(r.numberFormat)&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const v=g[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const E=de(r.digits),A=de(r.decimalLength),V=ke(r.autoPadding);let N=`${g[0].children}`,P=N.split("").reverse().join("");P=fn(P,A,V,E,r.separator),N=P.split("").reverse().join(""),r.highlightFilter!==void 0&&(y=d(N,f)),y||(f.innerHTML=N,y=(0,t.h)(r.tag,f))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const v=g[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const E=`${g[0].children}`;y=d(E,f),y||(f.innerHTML=E,y=(0,t.h)(r.tag,f))}}}y||(y=(0,t.h)(r.tag,f,{default:i.slots.default}))}if(!r.mark&&!i.slots.mark)return y;const B=[];if(i.slots.mark){const g={[`${e}__mark-wrap`]:!0};r.type&&(g[`${e}__mark-wrap--${r.type}`]=!0);const v={},E=r.color;E&&(v.color=E);const A=(0,t.h)("view",{class:g,style:v,onClick:p},{default:i.slots.mark});B.push(A)}else{const g={[`${e}__mark`]:!0};r.type&&(g[`${e}__mark--${r.type??"default"}`]=!0);const v={},E=r.color;E&&(v["background-color"]=E);const A=(0,t.h)("view",{class:g,style:v,onClick:p});B.push(A)}if(r.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});B.push(g)}return B.push(y),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},B)}}}}var{componentName:nu,create:lu,scope:au}=te("text"),ou=lu(tu(nu,au,yt,!1)),bt=ou,ru={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function iu(e,n,a=!1){return{props:{...ru},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:o}){const c=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(0),u=(0,t.ref)(0),h=(0,t.ref)(l.placement),b=(0,t.ref)(!1),C=(0,t.ref)(!1),k=(0,t.ref)(null),w=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,S=(x,_,ee,oe,X,Z,L,ne=!0)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,q=document.documentElement.clientHeight||document.body.clientHeight,O=x.split("-");let W=[];ne?O[0]==="top"?W=["top","bottom","right","left"]:O[0]==="bottom"?W=["bottom","top","right","left"]:O[0]==="left"?W=["left","top","bottom","right"]:O[0]==="right"&&(W=["right","top","bottom","left"]):W=[x[0]];const Q={top:null,right:null,bottom:null,left:null},le=[];for(let K=0;K<W.length;K++){const j=W[K];if(le[0]=j,O[1]&&(le[1]=O[1]),j==="top"){const I=ee-L-l.arrowSize/2-l.offset;if(I>=0){Q.top=I;let D=0;O[1]==="start"?D=_:O[1]==="end"?D=_+oe-Z:D=_+oe/2-Z/2;const F=H-D-Z;F<0?(D+=F,f.value=-F):f.value=0,Q.left=D<0?0:D;break}}else if(j==="bottom"){const I=ee+X+l.arrowSize/2+l.offset;if(I+L<=q){Q.top=I;let D=0;O[1]==="start"?D=_:O[1]==="end"?D=_+oe-Z:D=_+oe/2-Z/2;const F=H-D-Z;F<0?(D+=F,f.value=-F):f.value=0,Q.left=D<0?0:D;break}}else if(j==="left"){const I=_-Z-l.arrowSize/2-l.offset;if(I>=0){Q.left=I;let D=0;O[1]==="start"?D=ee:O[1]==="end"?D=ee+X-L:D=ee+X/2-L/2,Q.top=D<0?0:D;break}}else if(j==="right"){const I=_+oe+l.arrowSize/2+l.offset;if(I+Z<=H){Q.left=I;let D=0;O[1]==="start"?D=ee:O[1]==="end"?D=ee+X-L:D=ee+X/2-L/2,Q.top=D<0?0:D;break}}}return{bestPlacement:le.join("-"),bestInsetRect:Q}},m=()=>{const x=l.visible,_=l.autoFit;if(!_e||x===!1)return;if(l.reference){const L=w(),ne=Ql(L);s.value=ne.x,d.value=ne.y,p.value=L.offsetWidth,u.value=L.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,u.value=l.referenceInset.bottom-l.referenceInset.top);const ee=k.value.offsetWidth,oe=k.value.offsetHeight,{bestPlacement:X,bestInsetRect:Z}=S(l.placement,s.value,d.value,p.value,u.value,ee,oe,_);h.value=X,c.value=Z},f=(0,t.ref)(0),y=qe(()=>{m()},10),B=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([x])=>{B.value=x,x?(b.value=x,setTimeout(()=>{m(),C.value=!0},0)):C.value=!1});const g=(0,t.computed)(()=>B.value&&v.value),v=(0,t.ref)(!0),E=qe(x=>{const _=x[0];_&&(v.value=_.isIntersecting)},10),A=new IntersectionObserver(E);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([x,_],[ee,oe])=>{!x&&!_||(setTimeout(()=>{m()},0),l.autoFit&&(ee&&(Kt.unwatch(ee,y),A.unobserve(ee)),x&&(Kt.watch(x,y),A.observe(x))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,y),A.unobserve(l.reference),A.disconnect())});const V=(0,t.computed)(()=>{const x={[e]:!0};return h.value.startsWith("top")?x["is-top"]=!0:h.value.startsWith("right")?x["is-right"]=!0:h.value.startsWith("bottom")?x["is-bottom"]=!0:h.value.startsWith("left")&&(x["is-left"]=!0),x[`is-${l.effect}`]=!0,!C.value&&g.value&&(x["is-opacity"]=!0),C.value&&g.value&&(x["is-show"]=!0),g.value||(x["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(x[`${l.customClass}`]=!0),x}),N=(0,t.computed)(()=>{const x={};return c.value.top!==null&&(x.top=`${c.value.top}px`),c.value.right!==null&&(x.right=`${c.value.right}px`),c.value.bottom!==null&&(x.bottom=`${c.value.bottom}px`),c.value.left!==null&&(x.left=`${c.value.left}px`),l.width&&(x.width=l.width),l.zIndex&&(x["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(x,l.customStyle),x}),P=()=>{B.value=!1,r("update:visible",!1)},G=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:P}):null,$=()=>{let x=null;return i.title?x=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(x=(0,t.h)("div",{class:`${e}__title`},[l.title])),x},R=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const x={};return l.showArrow?(x.width=`${l.arrowSize}px`,x.height=`${l.arrowSize}px`,h.value==="top"?(x.left="50%",x.bottom="0",x.transform="translate(-50%, 50%)"):h.value==="top-start"?(x.left=`${l.arrowOffset+f.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):h.value==="top-end"?(x.right=`${l.arrowOffset-f.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):h.value==="right"?(x.left="0",x.top="50%",x.transform="translate(-50%, -50%)"):h.value==="right-start"?(x.left="0",x.top=`${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):h.value==="right-end"?(x.left="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):h.value==="bottom"?(x.left="50%",x.top="0",x.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(x.left=`${l.arrowOffset+f.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(x.right=`${l.arrowOffset-f.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):h.value==="left"?(x.right="0",x.top="50%",x.transform="translate(50%, -50%)"):h.value==="left-start"?(x.right="0",x.top=`${l.arrowOffset}px`,x.transform="translate(50%, -50%)"):h.value==="left-end"&&(x.right="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(50%, -50%)"),x):{display:"none"}}),U=()=>(0,t.h)("div",{class:R.value,style:M.value}),z=()=>{B.value===!1&&(b.value=!1)},Y=x=>{if(!k.value||B.value===!1)return;const{relatedTarget:_}=x;k.value.contains(_)||(B.value=!1,r("update:visible",!1))};return o({doLayout:m}),()=>{if(!b.value)return null;const x=[],_=G();_&&x.push(_);const ee=[],oe=$();if(oe&&ee.push(oe),i.default){const ne=i.default();ee.push(ne)}const X=U();X&&ee.push(X);const Z={ref:k,class:V.value,style:N.value,onAnimationend:z};l.leaveHide&&(Z.onMouseleave=Y);const L=(0,t.h)("div",Z,{default:()=>ee});return x.push(L),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>x})}}}}var{componentName:su,create:cu,scope:uu}=te("popover-dialog"),du=cu(iu(su,uu,!1)),Un=du,jr={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1},morePosition:{type:[String],required:!1,default:()=>"right"}};function fu(e,n,a){return{props:{...Hr,...jr},emits:["click"],setup(l,{slots:r}){const{toLocaleRefs:i}=(0,ye.useFoxI18n)(n),o=i(l,["moreText"]),c=e,s=(0,t.computed)(()=>({[c]:!0}));function d(y){return y.props||{}}function p(y){return!!d(y).disabled}function u(y){return y.children??[]}const h=(0,t.ref)(),b=(0,t.computed)(()=>h.value?.$el??null),C=(0,t.ref)(!1),k=y=>{C.value=y},w=()=>{C.value=!C.value};function S(y,B){return()=>{B||(C.value=!1,d(y)?.onClick?.())}}function m(y,B){const g=u(y),v=p(y),E=S(y,v),A=[`${c}__dropdown-item`];return v&&A.push("is-disabled"),(0,t.h)("span",{class:A,onClick:E},g)}const f=y=>{const B=l.maxDisplayCount??y.length;if(B>=y.length)return y;const g=[],v=B;for(let P=0;P<v;P++)g.push(y[P]);const E=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(a),A=(0,t.h)(bt,{ref:P=>h.value=P,class:`${c}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:w},{default:()=>o.moreText.value,mark:()=>E});l.morePosition==="left"?g.splice(0,0,A):g.push(A);const V=[];for(let P=v;P<y.length;P++){const G=m(y[P],P);V.push(G)}const N=(0,t.h)(Un,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:C.value,reference:b.value,"custom-class":`${c}__popover`},{default:()=>V});return g.push(N),g};return()=>{const{getChildren:y}=Ot(r?.default),B=f(y());return(0,t.h)(Kn,{...We(l,jr),class:s.value},{default:()=>B})}}}}var{componentName:mu,create:hu,scope:pu}=te("buttons-item"),gu=hu(fu(mu,pu,re.MoreFilled)),Zl=gu,yu={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function bu(e,n){return{props:yu,setup(a,l){const r=tt(),i=qn();xn(!1);const o=(0,t.computed)(()=>i&&r?Pn(r,!1).value:null),c=e,s=(0,t.computed)(()=>({[c]:!0,[`${c}__gutter`]:o.value&&o.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=ge(a.width));else{const u=i&&r?Mn(r,!1):null;if(o.value&&u){if(o.value.type==="grid"){const h=zn(u,o.value,a.span,a.offset);Object.assign(p,h)}else if(o.value.type==="flow"){const h=Rn(u,o.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:vu,create:Su,scope:ku}=te("slot-item"),wu=Su(bu(vu,ku)),Jl=wu;function Ie(e,n={}){return(0,t.h)(Ut,e,n)}function Cu(e,n,a,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const o=[],c=n[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[r]){let s=n;for(let d=0;s&&d<i.length;d++){let p=i[d],u=s.find(h=>h[l]===p);if(!u)break;o.push(u[a])}return o}if(Array.isArray(c))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],p=i[s];const u=d.find(h=>h[l]===p);if(!u)break;o.push(u[a])}else{let s=n;for(let d=0;s&&d<i.length;d++){let p=i[d],u=s.find(h=>h[l]===p);if(!u)break;o.push(u[a]),s=u[r]}}return o}var Nu=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=lt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function Au(){return new Nu(it())}function Bu(e){return e&&e.startsWith("fox-")}var Tu={tag:{type:[String,Object],required:!1,default:"span"},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],required:!1,default:"/"},unit:{type:[String],required:!1},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}};function Vu(e,n,a=!1){return{props:Tu,setup(l,{attrs:r,slots:i}){const o=Au(),c=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,p])=>{c.value=await o.load(l.sourceType,d,p)},{immediate:!0});const s=(0,t.computed)(()=>{let d="";if(!Array.isArray(c.value)||c.value.length===0)d=l.emptyText;else{let p=Cu(l.modelValue,c.value,l.textKey,l.valueKey,l.childrenKey);p.length==0?d=l.emptyText??"":p.length===1?l.optionType=="item"?d=`${l.modelValue}${l.separator}${p[0]}`:d=p[0]:d=p.join(l.separator)}return l.unit&&(d=`${d}${l.unit}`),d});return()=>{const d={...r};if(i.default)return i.default({text:s.value,value:l.modelValue});const p=l.tag??"span";return typeof p=="object"?(0,t.h)(p,d,{default:()=>s.value}):Bu(p)?(0,t.h)((0,t.resolveComponent)(p),d,[s.value]):(0,t.h)(p,d,[s.value])}}}}var{componentName:Eu,create:$u,scope:Du}=te("mapping"),Iu=$u(Vu(Eu,Du,!1)),Hn=Iu;function Pe(e,n){const a="fox-browse-item";let l=null;if(e.source)l=(0,t.h)(Hn,{class:[`${a}__mapping`],source:e.source,modelValue:e.modelValue,separator:e.separator,emptyText:e.emptyText,unit:e.unit},{default:i=>(0,t.h)(bt,{class:[`${a}__text`]},{default:()=>i.text})});else{const i=e.unit?`${e.modelValue??""}${e.unit}`:`${e.modelValue??""}`;l=(0,t.h)(bt,{class:[`${a}__text`]},{default:()=>i})}const r={label:n.default,default:()=>l};return(0,t.h)(Ut,{class:[a]},r)}var Wr={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}},qu={...be,...Se,...Wr};function xu(e,n,a,l,r){return{props:qu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:p,readonly:u,browse:h}=Ve(i),{emitEvent:b,exposeApi:C}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),{toLocaleRefs:k}=(0,ye.useFoxI18n)(n),w=k(i,["placeholder"]),S=(0,t.ref)(!1),m=xe(i,"modelValue",null,b),f=e,y=(0,t.computed)(()=>({[f]:!0,"is-disabled":d.value,"is-readonly":u.value})),B=Te((0,t.computed)(()=>i.textAlign),"textAlign"),g=(0,t.computed)(()=>{const _={};return B.value&&(_["text-align"]=B.value),_}),v=_=>{let ee=_.target.value;i.type==="digit"&&(ee=Dl(ee,!0)),i.type==="number"&&(ee=Dl(ee,!1)),i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),m.value=ee,b("update:modelValue",ee,_),b("change",ee,_)};let E=xe(i,"hintText"),A=(0,t.ref)(!1);const V=_=>{let ee=_.target.value;S.value=!0,he(E.value)||(A.value=!0),b("focus",ee,_)},N=_=>{setTimeout(()=>{A.value&&(A.value=!1),S.value=!1},0);let ee=_.target.value;i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),b("blur",ee,_)},P=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),G=(0,t.computed)(()=>{const _={};return o.slots.append&&!$.value&&!Y.value&&(_.display="none"),_}),$=(0,t.computed)(()=>we(i.unit)>0),R=(0,t.computed)(()=>!Y.value),M=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!R.value})),U=_=>{m.value="",b("update:modelValue","",_),b("change","",_),b("clear","")},z=(0,t.computed)(()=>ke(i.clearable)&&!d.value&&!u.value),Y=(0,t.computed)(()=>{let _=we(m.value)>0;return ke(i.clearable)&&_&&S.value}),x=(0,t.computed)(()=>({action:!0,hidden:!Y.value}));return C({setDisabled:_=>{s.value=_},setReadonly:_=>{p.value=_}}),()=>{if(h.value==="on"&&(u.value||d.value))return l({modelValue:m.value,unit:i.unit},o.slots);const _={class:y.value,style:g.value,type:i.type,maxlength:i.maxLength,placeholder:w.placeholder.value,disabled:d.value,readonly:u.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:v,onFocus:V,onBlur:N},ee=[],oe=(0,t.h)("input",_);ee.push(oe);const X=[];if(z.value){const H=(0,t.h)(r,{class:["action-icon"]}),q=(0,t.h)("view",{class:x.value,onClick:U},{default:()=>[H]});X.push(q)}if($.value){const H=(0,t.h)("view",{class:M.value},[i.unit]);X.push(H)}const Z=(0,t.h)("view",{class:P.value,style:G.value},{default:()=>X});ee.push(Z);const L={default:()=>ee};L.label=o.slots.default,L.prepend=o.slots.prepend,L.append=o.slots.append,L.fixedPreTip=o.slots.fixedPreTip,L.fixedTip=o.slots.fixedTip;const ne={...We(i,Wr),ref:c,hintText:E.value,hintVisible:A.value};return i.prop&&(ne.prop=`${i.prop}_item`),a(ne,L)}}}}var{componentName:Pu,create:Mu,scope:Ru}=te("input-item"),zu=Mu(xu(Pu,Ru,Ie,Pe,re.CircleClose)),ea=zu;function Yr(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let r=l;for(let i=a.length-1;i>=l;i--)if(a.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>a.length?a=a.padEnd(r,"0"):a=a.substring(0,r),a}function Xr(e,n,a=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Yr(tr(`${e}`,`${n}`)):Yr(Al(`${e}`,nr(`${n}`),20))}function Fu(e,n=-1,a=!1,l=3,r=","){return fn(e,de(n),a,l,r)}function Qr(e,n,a,l,r=!0){if(e==="")return"";if(e=lr(e),n=de(n),n==1)return e;if(l)e=Xr(e,n),a&&(e=="0"&&r?e=`${e}.`.padEnd(de(a)+2,"0"):e=Al(e,1,de(a)));else{let i=-1*n;e=Xr(e,i)}return e}function Gr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ke(n.minInclude),r=Bl(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",n.min),a.minValid=!1)}if(n.max!=null){let l=ke(n.maxInclude),r=Bl(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(a.maxValid=!1)}return a}var _r={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},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},maxLength:{type:[String,Number]}},Lu={...be,...Se,..._r};function Ou(e,n,a,l,r){return{props:Lu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:p,readonly:u,browse:h}=Ve(i),{emitEvent:b,exposeApi:C}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=(0,t.ref)(!1),w=xe(i,"modelValue",null,b),S=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>i.rates,()=>i.precision],([L,ne,H])=>{if(he(L)){S.value="";return}const q=Qr(L,ne,H,!1);S.value!==q&&(S.value=q)},{immediate:!0});const m=(0,t.computed)(()=>{let L="";return k.value&&(L=S.value),L}),{t:f}=(0,ye.useFoxI18n)(n),y=(0,t.computed)(()=>{let L=i.placeholder??"";return!k.value&&!he(S.value)?L=Fu(S.value,i.decimalLength,i.autoPadding,i.digits,i.separator):L=he(L)?f(["placeholder"]):L,L}),B=e,g=(0,t.computed)(()=>({[B]:!0,[`${B}__placeholder`]:S.value.length>0,"is-disabled":d.value,"is-readonly":u.value})),v=Te((0,t.computed)(()=>i.textAlign),"textAlign"),E=(0,t.computed)(()=>{const L={};return v.value&&(L["text-align"]=v.value),L}),A=(0,t.ref)(""),V=(0,t.computed)(()=>{let L=A.value;return he(L)&&(L=i.errorTip??""),L}),N=(0,t.ref)(""),P=(0,t.ref)(!1),G=L=>{let ne=L.target.value;if(he(ne)){S.value="",w.value="",b("update:modelValue","",L),b("change","",L),ke(i.showTip)&&P.value&&(P.value=!1);return}if(ne.length>=2){let H=ne;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){(0,t.triggerRef)(S);return}}if(ne!="-"){if(!yn(ne)){(0,t.triggerRef)(S);return}if(i.integerLength!=-1&&ur(ne)>Number(i.integerLength)){(0,t.triggerRef)(S);return}if(i.decimalLength&&i.decimalLength!=-1&&dr(ne)>Number(i.decimalLength)){(0,t.triggerRef)(S);return}let H=Gr(ne,i);if(H.maxValid===!1){A.value=H.message,(0,t.triggerRef)(S);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(S);return}N.value=ne,ke(i.showTip)&&(P.value=ne.length>0),S.value=ne,w.value=Qr(ne,i.rates,i.precision,!0),b("update:modelValue",w.value,L),b("change",w.value,L)},$=L=>{if(k.value=!0,ke(i.showTip)){let ne=S.value;he(ne)&&(ne=i.hintText),he(ne)||(N.value=ne,P.value=!0)}A.value="",b("focus",w.value,L)},R=L=>{if(setTimeout(()=>{k.value=!1,ke(i.showTip)&&P.value===!0&&(P.value=!1)},0),!he(S.value)){let ne=Gr(S.value,i);if(ne.minValid===!1||ne.maxValid===!1){A.value=ne.message;return}}b("update:modelValue",w.value,L),b("blur",w.value,L)},M=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),U=(0,t.computed)(()=>{const L={};return o.slots.append&&!z.value&&!oe.value&&(L.display="none"),L}),z=(0,t.computed)(()=>we(i.unit)>0),Y=(0,t.computed)(()=>!oe.value),x=(0,t.computed)(()=>({[`${B}__unit`]:!0,hidden:!Y.value})),_=L=>{w.value="",b("update:modelValue","",L),b("change","",L),b("clear","")},ee=(0,t.computed)(()=>ke(i.clearable)&&!d.value&&!u.value),oe=(0,t.computed)(()=>{let L=we(w.value)>0;return ke(i.clearable)&&L&&k.value}),X=(0,t.computed)(()=>({action:!0,hidden:!oe.value}));C({setDisabled:L=>{s.value=L},setReadonly:L=>{p.value=L}});const Z=()=>w.value?y.value:w.value;return()=>{if(h.value==="on"&&(u.value||d.value))return l({modelValue:Z(),unit:i.unit},o.slots);let L={class:g.value,style:E.value,type:"digit",maxlength:i.maxLength,placeholder:y.value,disabled:d.value,readonly:u.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:G,onFocus:$,onBlur:R},ne=[],H=(0,t.h)("input",L);ne.push(H);let q=[];if(ee.value){const le=(0,t.h)(r,{class:["action-icon"]}),K=(0,t.h)("view",{class:X.value,onClick:_},{default:()=>[le]});q.push(K)}if(z.value){const le=(0,t.h)("view",{class:x.value},[i.unit]);q.push(le)}const O=(0,t.h)("view",{class:M.value,style:U.value},{default:()=>q});ne.push(O);const W={default:()=>ne};W.label=o.slots.default,W.prepend=o.slots.prepend,W.append=o.slots.append,W.fixedPreTip=o.slots.fixedPreTip,W.fixedTip=o.slots.fixedTip;const Q={...We(i,_r),ref:c,errorTip:V.value,hintText:N.value,hintVisible:P.value,hintType:"number"};return i.prop&&(Q.prop=`${i.prop}_item`),a(Q,W)}}}}var{componentName:Ku,create:Uu,scope:Hu}=te("money-item"),ju=Uu(Ou(Ku,Hu,Ie,Pe,re.CircleClose)),ta=ju,na={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:Wu,create:Yu,scope:Xu}=te("textarea"),Qu=Yu({props:{...na},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=(0,ye.useFoxI18n)(Xu);const l=a(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const h=Wu;return{[h]:!0,[`${h}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(c)});const o=(0,t.computed)(()=>({textAlign:e.textAlign})),c=()=>{let h=r.value;h.style.height="auto";let b=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:C,minHeight:k}=e.autosize;C!==void 0&&(b=Math.min(b,C)),k!==void 0&&(b=Math.max(b,k))}b&&(console.info("----------- height",b),h.style.height=b+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(c)});const s=(h,b)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,b),n("change",h,b)};return{...l,textareaRef:r,classes:i,styles:o,change:h=>{const b=h.target;s(b.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let b=h.target.value;s(b,h),n("blur",{value:b,event:h})}}}}),Gu=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],_u={key:0,class:"fox-textarea__limit"};function Zu(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...o)=>e.change&&e.change(...o)),onBlur:n[1]||(n[1]=(...o)=>e.blur&&e.blur(...o)),onFocus:n[2]||(n[2]=(...o)=>e.focus&&e.focus(...o)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Gu),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",_u,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var jn=ie(Qu,[["render",Zu]]);function Ju(e,n,a,l,r){return{props:{...be,...Se,...na},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:p,readonly:u,browse:h}=Ve(i),{emitEvent:b}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),C=xe(i,"modelValue",null,b),k=y=>{C.value=y,b("update:modelValue",y,{}),b("change",y,{})};let w=xe(i,"hintText"),S=(0,t.ref)(!1);const m=y=>{he(w.value)||(S.value=!0),b("focus",C.value,y)},f=y=>{setTimeout(()=>{S.value&&(S.value=!1)},0),b("blur",C.value,y)};return()=>{if(h.value==="on"&&(u.value||d.value))return l({modelValue:C.value},o.slots);const y={...ve(i,na),disabled:d.value,readonly:u.value,value:C.value,"onUpdate:modelValue":k,onFocus:m,onBlur:f},B=[],g=(0,t.h)(r,y);B.push(g);const v={default:()=>B};v.label=o.slots.default,v.prepend=o.slots.prepend,v.append=o.slots.append,v.fixedPreTip=o.slots.fixedPreTip,v.fixedTip=o.slots.fixedTip;const E={...ve(i,Se,be),ref:c};return i.prop&&(E.prop=`${i.prop}_item`),a(E,v)}}}}var{componentName:ed,create:td,scope:nd}=te("textarea-item"),ld=td(Ju(ed,nd,Ie,Pe,jn)),la=ld;function ad(e){return e===window}var Me=e=>{const n=(0,t.unref)(e);if(ad(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Zr=10;function Jr(e,n){return e>n&&e>Zr?"horizontal":n>e&&n>Zr?"vertical":""}function Wn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Yn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(o=>{if(o.touches){const c=o.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const c=o;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Jr(e.offsetX,e.offsetY))}),start:(o=>{if(l(),o.touches){const c=o.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const c=o;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:a,state:e}}function st(){const e=(0,t.ref)(0),n=(0,t.ref)(0),a=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),o=(0,t.ref)(0),c=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(""),u=()=>p.value==="vertical",h=()=>p.value==="horizontal",b=()=>{o.value=0,c.value=0,s.value=0,d.value=0,p.value="",a.value=0};return{move:(w=>{if(w.touches){const S=w.touches[0];o.value=S.clientX-e.value,c.value=S.clientY-n.value,r.value=S.clientX,i.value=S.clientY}else{const S=w;o.value=S.clientX-e.value,c.value=S.clientY-n.value,r.value=S.clientX,i.value=S.clientY}s.value=Math.abs(o.value),d.value=Math.abs(c.value),l.value=Date.now()-a.value,p.value||(p.value=Jr(s.value,d.value))}),start:(w=>{if(b(),w.touches){const S=w.touches[0];e.value=S.clientX,n.value=S.clientY}else{const S=w;e.value=S.clientX,n.value=S.clientY}a.value=Date.now()}),reset:b,startX:e,startY:n,startTime:a,duration:l,moveX:r,moveY:i,deltaX:o,deltaY:c,offsetX:s,offsetY:d,direction:p,isVertical:u,isHorizontal:h}}var od=2e3,ei=()=>od++,at={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},rd=(e,n)=>({components:n,props:{...at},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(r.zIndex=ei());const i=(0,t.computed)(()=>{const k=e,w=[k,`${k}--${a.position}`];return a.round&&w.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&w.push(`${k}--${a.position}--safebottom`),typeof a.popClass=="string"?w.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(S=>{w.push(S)}),w}),o=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{l("update:visible",!0),a.zIndex?r.zIndex=a.zIndex:r.zIndex=ei(),a.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+a.duration*1e3)},p=k=>{l("click-pop",k)},u=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},h=k=>{l("click-overlay",k),a.closeOnClickOverlay&&l("update:visible",!1)},b=k=>{l("opend",k)},C=k=>{l("closed",k)};return(0,t.watch)(()=>a.visible,k=>{a.visible?s():d()}),(0,t.watch)(()=>a.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:o,transitionName:c,classes:i,onClick:p,onClickCloseIcon:u,onClickOverlay:h,onOpened:b,onClosed:C}}}),ti={readonly:{type:[Boolean],default:()=>null},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},aa={...at,...ti,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},ni=36;function id(){return ni}function sd(e){ni=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function oa(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function cd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function li(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var ud=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function dd(){return new ud(it())}function ai(e,n,a){return!(Oe(e,n)!==Oe(e,a)||ct(e,n)!==ct(e,a))}function fd(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let o=0;o<n.length&&o<a.length;o++){const c=n[o];let s=a[o].findIndex(d=>{if(i==="text")return Oe(e,d)===c;if(i==="value"){let p=ct(e,d);return p==null&&(p=Oe(e,d)),p===c}else if(i==="item")return ai(e,d,c)});if(s==-1)break;r.push(s)}else{let o=a[0];for(let c=0;c<n.length;c++){const s=n[c];let d=o.findIndex(u=>{if(i==="text")return Oe(e,u)===s;if(i==="value"){let h=ct(e,u);return h==null&&(h=Oe(e,u)),h===s}else if(i==="item")return ai(e,u,s)});if(d==-1)break;r.push(d);const p=oa(e,o[d]);if(!Array.isArray(p))break;o=p}}return r}function oi(e,n,a,l){if(a.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let o=0;o<n.length&&o<a.length;o++){const c=a[o];let s=n[o];s<0&&s>=c.length&&(s=0);const d=c[s],p=Oe(e,d);if(r.texts.push(p),r.items.push(d),i==="text")r.values.push(p);else if(i==="value"){let u=ct(e,d);u==null&&(u=p),r.values.push(u)}else r.values.push(d)}else{let o=a[0];for(let c=0;c<n.length;c++){let s=n[c];s<0&&s>=o.length&&(s=0);const d=o[s],p=Object.assign({},d);p.children=null;const u=Oe(e,d);if(r.texts.push(u),r.items.push(p),i==="text")r.values.push(u);else if(i==="value"){let h=ct(e,d);h==null&&(h=u),r.values.push(h)}else r.values.push(p);if(!Array.isArray(d.children))break;o=d.children}}return r}function ri(e){return{text:e,value:e}}var md=15,hd=300,pd=200,{create:gd}=te("picker-column");function yd(e){e.stopPropagation()}function bd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&yd(e)}var vd={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...ti},Sd=gd({props:vd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),o=v=>{const E=v+1;return E>=u.currIndex+8||E<=u.currIndex-8},c=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${i.value}px`})),s=v=>{const E=v+1;return`transform: rotate3d(1, 0, 0, ${-u.rotation*E}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+i.value}px, 0)`})),p=(0,t.ref)(null),u=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=v=>Oe(e,v),b=v=>ct(e,v),C=st(),k=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},w=(v,E=!1,A=!1)=>{if(u.currIndex=v,E){const V=()=>{u.moving=!1,n("update:modelValue",v),n("change",v)};A?u.transitionEndTrigger=V:V()}},S=(v,E,A)=>{let V=v+u.startDistance;if(E==="end"){const N=-(e.source.length-1)*e.itemHeight;V<N&&(V=N),V>0&&(V=0);let P=Math.abs(Math.round(-V/e.itemHeight));const G=-P*e.itemHeight,$=`${(P+1)*u.rotation}deg`;w(P,!0,A?A>0:!1),m(G,E,A,$)}else{let N=(-V/e.itemHeight+1)*u.rotation;const P=(e.source.length+1)*u.rotation,G=0;if(N=Math.min(Math.max(N,G),P),e.threeDimensional&&(N<G||N>P))return;m(V,null,void 0,`${N}deg`)}},m=(v=0,E,A=pd,V)=>{E==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=V,u.scrollDistance=v},f=(v,E)=>(v=Math.abs(v/E)/.003*(v<0?-1:1),v),y=v=>{e.readonly||(u.startDistance=u.scrollDistance,C.start(v),u.transitionEndTrigger=null)},B=v=>{e.readonly||(u.moving=!0,C.move(v),C.isVertical()&&(u.moving=!0,bd(v,!0)),S(C.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const v=C.deltaY.value,E=C.duration.value;E<hd&&Math.abs(v)>md?S(f(v,E),"end",de(e.swipeDuration)):S(v,"end",0)};return(0,t.watch)(()=>e.modelValue,v=>{const E=u.currIndex-v;E!==0&&(u.currIndex=v,u.startDistance=u.scrollDistance,S(E*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,v=>{if(u.currIndex>=v.length){const E=(v.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,S(E,"end",0)}}),(0,t.watch)(()=>e.visible,v=>{v===!1&&k()}),(0,t.onMounted)(()=>{S(-e.modelValue*e.itemHeight)}),{classes:a,styles:l,contentClasses:r,itemText:h,itemValue:b,...(0,t.toRefs)(u),roller:p,getItemText:Oe,onTouchStart:y,onTouchMove:B,onTouchEnd:g,isHidden:o,setRollerStyle:s,touchRollerStyle:c,touchTileStyle:d,stopMomentum:k}}}),kd={key:1,class:"fox-picker__item-tile"};function wd(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTransitionend:n[4]||(n[4]=(...o)=>e.stopMomentum&&e.stopMomentum(...o))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(c))},(0,t.toDisplayString)(e.itemText(o)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",kd,(0,t.toDisplayString)(e.itemText(o)),1))],64))),128))],6)],38)}var Cd=ie(Sd,[["render",wd]]),Ht=0,ii="fox-overflow-hidden",si=()=>_e?document.body:{classList:[]},Nd=e=>[()=>{if(e())try{!Ht&&si().classList.add(ii),Ht++}catch{}},()=>{if(e()&&Ht)try{Ht--,!Ht&&si().classList.remove(ii)}catch{}}],Ad={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:Bd,create:Td}=te("overlay"),Vd=Td({props:{...Ad},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=Nd(()=>e.lockScroll),r=(0,t.computed)(()=>({[Bd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,c=>{c?a():l()}),{classes:r,style:i,onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ed(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...o)=>e.onClick&&e.onClick(...o),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ut=ie(Vd,[["render",Ed]]),{componentName:$d,create:Dd}=te("popup"),Id=Dd(rd($d,{FoxOverLay:ut,Close:re.Close}));function qd(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxOverLay"),c=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(o,(0,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"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(c)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Ce=ie(Id,[["render",qd]]),xd=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Ce,We({...e},{poppable:!1}),n):n?.default?.()??null}}),Pd=xd,{create:Md,componentName:ci,scope:Rd}=te("picker"),zd=Md({components:{Column:Cd,Wrapper:Pd},props:aa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=(0,ye.useFoxI18n)(Rd),r=a(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),o=(0,t.ref)(id());(0,t.watch)(()=>e.visible,M=>{M&&o.value<=0&&setTimeout(()=>{i.value&&(o.value=Me(i.value).height,sd(o.value))},50)});const c=(0,t.computed)(()=>({[ci]:!0})),s=(0,t.computed)(()=>{const M=[];return Array.isArray(e.popClass)?M.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&M.push(e.popClass),M.push(`${ci}__popup`),M.join(" ")}),d=dd(),p=(0,t.ref)("singleColumn");let u=(0,t.ref)([]);const h=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const M=[];for(let U=0;U<u.value.length;U++){const z=u.value[U];if(Array.isArray(z)){const Y=z.filter(e.sourceFilter);M.push(Y)}}return M}return u.value});(0,t.watch)([()=>e.source,()=>e.params],async([M,U])=>{if(M){let z=await d.load("picker",M,U);if(z.length>0){let Y=z[0];if(Array.isArray(Y)){if(typeof Y[0]=="string"){let x=z,_=[];x.forEach(ee=>{let oe=ee.map(X=>ri(X));_.push(oe)}),u.value=_}else u.value=z;p.value="multipleColumn"}else if(typeof Y=="string"){let x=z,_=[],ee=x.map(oe=>ri(oe));_.push(ee),u.value=_,p.value="singleColumn"}else{const x=oa(e,Y);Array.isArray(x)?(p.value="cascade",u.value=[z]):(p.value="singleColumn",u.value=[z])}}else u.value=[]}},{immediate:!0});const b=(0,t.ref)([]),C=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=(0,t.ref)([]);let w=null;const S=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>h.value],([M,U])=>{let z=fd(e,M,U,p.value);if(!De(z,S.value)){S.value=z,w||(w=z?[...z]:[]);let Y=oi(e,z,U,p.value);Y&&(b.value=Y.texts,De(C.value,Y.values)||(C.value=Y.values),De(k.value,Y.items)||(k.value=Y.items),n("update:text",b.value))}});let m="";const f=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,M=>{f.value=M,M&&(m="active",S.value.length>0&&(w=[...S.value]))});const y=M=>{let U=li(e,M);return $e(U)?U.defaultIndex??0:0},B=M=>{if(e.readonly===!0)return!0;let U=li(e,M);return $e(U)?U.readonly??!1:!1},g=(M,U)=>{let z=S.value;z[M]=U;for(let x=0;x<M;x++)z[x]==null&&(z[x]=y(x));if(p.value==="cascade")for(let x=M+1;x<E.value.length;x++){let _=y(x);x<z.length?z[x]=_:z.push(_)}else for(let x=z.length;x<E.value.length;x++){let _=y(x);z.push(_)}S.value=z;let Y=oi(e,z,h.value,p.value);Y&&(b.value=Y.texts,C.value=Y.values,k.value=Y.items)},v=M=>M<S.value.length?S.value[M]:y(M),E=(0,t.computed)(()=>{if(h.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return h.value;let M=[],U=0,z=h.value[0],Y=0;for(;;){let x=z.map(oe=>{let X=Object.assign({},oe);return cd(e,X,null),X});M.push(x),U>=S.value.length?Y=0:Y=S.value[U],(Y<0||Y>=z.length)&&(Y=0);let _=z[Y];const ee=oa(e,_);if(!Array.isArray(ee))break;z=ee,U++}return M}),A=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*o.value),V=(M=!1)=>{if(e.readonly===!0){M&&n("update:visible",!1);return}let U=h.value.length-1;for(;U>=0&&!(S.value[U]===null||S.value[U]===void 0);U--);if(U>=0&&g(U,0),p.value==="singleColumn"){let z=C.value.length>0?C.value[0]:"",Y=k.value.length>0?k.value[0]:null;n("update:modelValue",z),n("update:text",b.value),n("change",z,Y),M&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",C.value),n("update:text",b.value),n("change",C.value,k.value),M&&(n("confirm",C.value),n("update:visible",!1))},N=(M,U)=>{m!=="close"&&(g(M,U),e.isAutoBackFill&&V(!f.value))},P=()=>{m==="active"&&(m="confirm",w=Array.isArray(S.value)?[...S.value]:[],V(!0))},G=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),S.value=[],w=null};return{...r,pickerLineRef:i,classes:c,popClasses:s,columns:E,dataType:p,show:f,itemHeight:o,top:A,isReadonly:B,getIndex:v,change:N,close:()=>{if(m==="active"){if(m="close",w===null||w.length===0)G();else{if(Array.isArray(w))for(let M=0;M<w.length;M++)g(M,w[M]);V(!1)}n("close"),n("update:visible",!1)}},confirm:P,clear:()=>{if(m==="active"){if(m="clear",e.readonly===!0){n("update:visible",!1);return}G(),w=null,n("clear",""),n("update:visible",!1)}}}}}),Fd={key:0,class:"fox-picker__bar"},Ld={class:"fox-picker__title"},Od={class:"fox-picker__bar__action"},Kd={class:"fox-picker__column"};function Ud(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Column"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(c,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fd,[(0,t.createElementVNode)("view",Ld,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Od,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",Kd,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(o,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":p=>e.change(d,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var jt=ie(zd,[["render",Ud]]),Hd={...be,...Se,...aa,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:" "}};function jd(e,n,a,l,r,i,o,c=!0){return{props:Hd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:p,innerDisabled:u,disabled:h,innerReadonly:b,readonly:C,browse:k}=Ve(s),{emitEvent:w,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.value},get disabled(){return h.value},get props(){return s},context:d,get templateRefProxy(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,ye.useFoxI18n)(n),f=m(s,["placeholder"]),y=(0,t.ref)(!1),B=xe(s,"modelValue",null,w),g=(0,t.ref)([]),v=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),E="fox-input-item",A=(0,t.computed)(()=>({[E]:!0,"is-disabled":h.value,"is-readonly":C.value})),V=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const O={};return V.value&&(O["text-align"]=V.value),O}),P=(0,t.ref)(!1),G=()=>{P.value=!0},$=O=>{P.value=O},R=O=>{B.value=O,w("update:modelValue",O)},M=(O,W)=>{w("change",O,W)},U=O=>{let W=O.target.value;y.value=!0,w("focus",W,O)},z=O=>{setTimeout(()=>{y.value=!1},0);let W=O.target.value;s.maxLength&&W.length>Number(s.maxLength)&&(W=W.slice(0,Number(s.maxLength))),w("blur",W,O)},Y=O=>{g.value=O,Array.isArray(O)&&O.length===0?w("update:text",O[0]):w("update:text",O)},x=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":h.value,"is-readonly":C.value})),_=(0,t.computed)(()=>we(s.unit)>0),ee=(0,t.computed)(()=>we(s.unit)>0&&!y.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),X=O=>{B.value="",w("update:modelValue","",O),w("change","",O),w("clear","")},Z=(0,t.computed)(()=>s.clearable&&!h.value&&!C.value),L=(0,t.computed)(()=>we(B.value)>0&&y.value),ne=O=>{L.value?X(O):G()},H=(0,t.computed)(()=>L.value&&Z.value?r:i),q=(0,t.computed)(()=>({action:!0}));return S({setDisabled:O=>{u.value=O},setReadonly:O=>{b.value=O}}),()=>{if(k.value==="on"&&(C.value||h.value))return l({modelValue:B.value,source:s.source,unit:s.unit},d.slots);const O={class:A.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:G,onFocus:U,onBlur:z};c&&(O.disabled=!0);const W=[],Q=(0,t.h)("input",O);W.push(Q);const le=[],K=(0,t.h)(H.value,{class:["action-icon"]}),j=(0,t.h)("view",{class:q.value,onClick:ne},{default:()=>[K]});if(le.push(j),_.value){const se=(0,t.h)("view",{class:oe.value},[s.unit]);le.push(se)}const I=(0,t.h)("view",{class:x.value},{default:()=>le});W.push(I);const D={default:()=>W};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const F=ve(s,aa);F.disabled=!1,F.readonly=h.value||C.value,F.visible=P.value,F["onUpdate:visible"]=$,F.modelValue=B.value,F["onUpdate:modelValue"]=R,F.text=g.value,F["onUpdate:text"]=Y,F.onChange=M;const J=(0,t.h)(o,F);D.hide=()=>[J];const ae=ve(s,Se,be);return s.prop&&(ae.prop=`${s.prop}_item`),ae.ref=p,a(ae,D)}}}}var{componentName:Wd,create:Yd,scope:Xd}=te("picker-item"),Qd=Yd(jd(Wd,Xd,Ie,Pe,re.CircleClose,re.ArrowRight,jt,!1)),ra=Qd,Gd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>e.poppable?(0,t.h)(Ce,{...a},n):n?.default?.()??null}}),_d=Gd,Xn=(e,n,a)=>e.map(l=>{const{value:r="value",text:i="text",children:o="children"}=a??{},{[r]:c,[i]:s,[o]:d,...p}=l,u={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:c,text:s,children:d,_parent:n};return u.children&&u.children.length&&(u.children=Xn(u.children,u,a)),u}),ui=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&ui(l.children,n)},Zd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Jd=(e,n)=>{const{topId:a,idKey:l,pidKey:r,sortKey:i}={...Zd,...n||{}};let o=[],c={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:p}=s,u=c[p]=c[p]||[];!o.length&&p===a&&(o=u),u.push(s),s.children=c[d]||(c[d]=[])}),i&&Object.keys(c).forEach(s=>{c[s].length>1&&c[s].sort((d,p)=>d[i]-p[i])}),c=null,o},ia={prop:{type:[String]},modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},di=(e,n)=>n[e.textKey],Wt=(e,n)=>n[e.valueKey],ef=(e,n)=>n[e.visibleKey],fi=(e,n)=>n[e.disabledKey],tf=(e,n)=>{const a=n[e.doitKey];return ke(a)},nf=(e,n)=>{const a=n[e.numKey];return a==null?null:de(n[a])},mi=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function lf(e,n,a,l,r,i=!1){return{props:ia,emits:["update:modelValue","change","click"],setup(o,c){const{emitEvent:s,exposeApi:d}=Fe({context:c},o.prop),{slots:p}=c,u=(0,t.computed)(()=>{const I={};return I[`${e}`]=!0,I}),h=(0,t.computed)(()=>{const I={};return I[`${e}__titles`]=!0,I[`${o.direction}`]=!0,o.align&&(I[`${o.align}`]=!0),o.scroll===!0&&(I.scrollable=!0),o.shape&&(I[`${o.shape}`]=!0),o.showScrollArrow?(H.value===!0&&(I["has-left-scroll-arrow "]=!0),q.value===!0&&(I["has-right-scroll-arrow "]=!0)):o.showQuickNavigation&&(I["has-navigation"]=!0),I}),b=(0,t.computed)(()=>({})),C=(0,t.computed)(()=>{if(!o.gutter)return 0;const I=ue(o.gutter);return I<=0?0:I}),k=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,I=>{k.value!==I&&(k.value=I,_(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=(0,t.computed)(()=>{const I={};return f.value||(I.display="none"),I}),m=(0,t.ref)(),f=(0,t.ref)(!1),y=()=>{B(!f.value)},B=I=>{const D=I;D?(f.value=D,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},g=(0,t.ref)(),v=(0,t.ref)([]),E=(I,D)=>{v.value[D]=I},A=I=>D=>{E(D,I)},V=(I,D)=>{const F=g.value,J=v.value;if(!F||!J||!J[I])return;const ae=J[I];let se=0;o.direction==="vertical"?se=ae.offsetTop-(F.offsetHeight-ae.offsetHeight)/2:se=ae.offsetLeft-(F.offsetWidth-ae.offsetWidth)/2,N(F,se,D?0:.3,o.direction)},N=(I,D,F,J)=>{let ae=0;const se=J==="horizontal"?I.scrollLeft:I.scrollTop,fe=F===0?1:Math.round(F*1e3/16);function me(){J==="horizontal"?I.scrollLeft+=(D-se)/fe:I.scrollTop+=(D-se)/fe,++ae<fe&&Ze(me)}me()},P=(I,D)=>{const F=Wt(o,I),J={};return J[`${e}__titles-item`]=!0,J.disabled=fi(o,I),J.active=F===k.value,o.shape&&(J[`${o.shape}`]=!0),o.ellipsis&&(J.ellipsis=!0),D&&(D.class&&(J[`${D.class}`]=!0),D.disabled===!0&&(J.disabled=D.disabled)),J},G=(I,D)=>{const F={};if(C.value>0){const J=Math.abs(C.value/2);o.direction==="vertical"?(F["margin-top"]=`${J}px`,F["margin-bottom"]=`${J}px`):(F["margin-left"]=`${J}px`,F["margin-right"]=`${J}px`)}return D&&D.style&&Object.assign(F,D.style),F},$=(I,D)=>`${Wt(o,I)??D}`,R=(I,D)=>{const F=Wt(o,I),J={};J[`${e}__popup-item`]=!0,J.disabled=fi(o,I),J.active=F===k.value,o.shape&&(J[`${o.shape}`]=!0);const ae=mi(o,I,D);return ae&&ae.disabled===!0&&(J.disabled=ae.disabled),J},M=(0,t.computed)(()=>(o.data??[]).filter(I=>ef(o,I)!==!1)),U=(I,D)=>{const F=Wt(o,I);if(s("click",I,D),k.value==F)return;const J=()=>{k.value=F,o.scroll&&V(D,!1),s("update:modelValue",F),s("change",I,D)};if(typeof o.beforeChange=="function"){const ae=o.beforeChange(I,D);ft(ae)?ae.then(se=>{se!==!1&&J()}).catch(()=>{J()}):ae!==!1&&J()}else J()},z=(I,D)=>function(){U(I,D)},Y=(I,D)=>{U(I,D),B(!1)},x=(I,D)=>function(){Y(I,D)},_=I=>{if(!Array.isArray(o.data)||!o.scroll)return;ne()&&le();const D=o.data.findIndex(F=>Wt(o,F)===k.value);D!==-1&&V(D,I)},ee=()=>{ne()||K()};(0,t.watch)(()=>o.data,()=>{setTimeout(_,0)}),(0,t.onMounted)(()=>{_(!0)}),(0,t.onBeforeUnmount)(()=>{ee()}),d({});const oe=(I,D)=>{if(p.item)return p.item({item:I,index:D});const F=mi(o,I,D),J=[];if(p.text){const se=p.text({item:I,index:D});J.push(se)}else{const se=[];if(F?.doit===!0||tf(o,I)){const Qe=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});se.push(Qe)}const fe=F?.num??nf(o,I);if(fe){let Qe="";const ze=de(fe);ze>=100?Qe="99+":Qe=`${ze}`;const cn=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Qe]);se.push(cn)}const me={class:`${e}__titles-item-text`};se.push(di(o,I));const Xe=(0,t.h)("view",me,se);J.push(Xe)}const ae=(0,t.h)("view",{class:`${e}__titles-item-line`});return J.push(ae),(0,t.h)("view",{ref:A(D),class:P(I,F),style:G(I,F),key:$(I,D),onClick:z(I,D)},J)},X=()=>{const I=p.default?p.default():[];if(I.length===0)for(let D=0;D<M.value.length;D++){const F=M.value[D],J=oe(F,D);I.push(J)}return(0,t.h)("view",{ref:g,class:h.value,style:b.value},I)},Z=()=>{let I=null;return p.navigation?I=p.navigation():I=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:y},[I])},L=()=>{const I=[];for(let D=0;D<M.value.length;D++){const F=M.value[D];let J=null;p.popupItem?J=p.popupItem({item:F,index:D}):J=di(o,F);const ae=(0,t.h)("view",{class:R(F,D),key:$(F,D),onClick:x(F,D)},[J]);I.push(ae)}return(0,t.h)("view",{class:w.value,style:S.value},I)},ne=()=>o.showScrollArrow&&o.direction=="horizontal",H=(0,t.ref)(!1),q=(0,t.ref)(!1),O=I=>{const D=g.value,F=v.value;if(!(!D||!F))if(I==="left"){const J=D.scrollLeft;let ae=J;for(let se=0;se<F.length;se++){const fe=F[se].offsetLeft;if(J-fe<0)break;ae=fe}N(D,ae,.3,"horizontal")}else{const J=D.scrollLeft;let ae=J,se=D.offsetWidth;for(let fe=F.length-1;fe>=0;fe--){const me=F[fe].offsetLeft+F[fe].offsetWidth;if(me-J<D.offsetWidth){ae+=se-me;break}se=me}N(D,ae,.3,"horizontal")}},W=qe(()=>{const I=g.value;if(!I)return;let D=I.scrollLeft>0;D!==H.value&&(H.value=D);let F=I.scrollWidth-I.scrollLeft>I.offsetWidth;F!==q.value&&(q.value=F)},50),Q=I=>{W()},le=()=>{const I=g.value;I&&(W(),I.addEventListener("scroll",Q))},K=()=>{const I=g.value;I&&I.removeEventListener("scroll",Q)},j=I=>{if(I==="left"&&H.value!==!0||I==="right"&&q.value!==!0)return null;let D=null;return I==="left"?p.leftArrow?D=p.leftArrow():D=(0,t.h)(l):p.rightArrow?D=p.rightArrow():D=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,I],onClick:()=>{O(I)}},[D])};return()=>{const I=[],D=X();if(I.push(D),ne()){const F=j("left");F&&I.push(F);const J=j("right");J&&I.push(J)}else if(o.showQuickNavigation){const F=Z();I.push(F);const J=L();I.push(J)}return(0,t.h)("view",{class:u.value},I)}}}}var{create:af,componentName:of,scope:rf}=te("tabs-bar"),sf=af(lf(of,rf,re.MoreH,re.Left,re.Right,!1)),Yt=sf,hi=Symbol("TabsStatesKey"),sa={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},cf=15,uf=300,df=200;function ff(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function pi(e,n=0,a,l,r=df){a==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var mf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,a,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=a,this.momentumReduceRatio=l,this.isTouch=r??Wn()}open(e){this.el=e;const n=Yn(),a=(l,r,i)=>{const o={delta:l,direction:r,type:i};this.onMove(o)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let r=0;if(this.direction==="horizontal"){if(n.isVertical())return;r=n.state.deltaX}else{if(n.isHorizontal())return;r=n.state.deltaY}a(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const r=n.state.duration;r<uf&&Math.abs(l)>cf?(l=ff(l,r,this.momentumReduceRatio),a(l,this.direction,"end")):a(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function hf(e,n,a,l=1,r){return new mf(e,n,a,l,r)}function pf(e,n,a=!1){return{props:sa,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:o}=Fe({context:r},l.prop),{slots:c}=r,s=(0,t.shallowRef)([]),d={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:A=>{const V={name:A};d.current.value===A&&(V.loaded=!0),s.value.push(V),(0,t.triggerRef)(s)},remove:A=>{const V=s.value.findIndex(N=>N.name===A);V!==-1&&s.value.splice(V,1)},isLoaded:A=>{if(!l.lazy)return!0;const V=s.value.findIndex(N=>N.name===A);return V!==-1?d.current.value?s.value[V].loaded??!1:V===0:!1}};(0,t.provide)(hi,d);const p=A=>{const V=s.value.findIndex(N=>N.name===A);V!==-1&&(s.value[V].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([A,V])=>{d.current.value!==A&&(d.current.value=A??"",p(A??"")),d.direction.value!==V&&(d.direction.value=V)});const u=(0,t.ref)(null),h=(0,t.ref)(null),b=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),C=(0,t.computed)(()=>{const A={};if(l.width){const V=ge(l.width);V&&(A.width=V)}if(l.height){const V=ge(l.height);V&&(A.height=V)}return A});let k=!0;const w=(0,t.computed)(()=>{const A={};if(l.transition===!1)return A;const V=s.value.length;if(V<=0)return A;const N=s.value.findIndex(P=>P.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(A.height=`${V*d.tabHeight.value}px`,N!==-1&&(A.transform=`translate(0, -${N*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(A.width=`${V*d.tabWidth.value}px`,N!==-1&&(A.transform=`translate(-${N*d.tabWidth.value}px, 0)`)),k&&(k=!1,A.transition="transform 0s ease"),A}),S={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},m=A=>{const V=s.value.length,N=s.value.findIndex(P=>P.name===d.current.value);S.moved=0,A.direction==="vertical"?(S.min=-1*(d.tabHeight.value*(V-1)+d.tabHeight.value/4),S.max=d.tabHeight.value/4,S.start=-N*d.tabHeight.value,S.itemDistance=d.tabHeight.value):(S.min=-1*(d.tabWidth.value*(V-1)+d.tabWidth.value/4),S.max=d.tabWidth.value/4,S.start=-N*d.tabWidth.value,S.itemDistance=d.tabWidth.value)},f=A=>{const V=h.value;if(!V)return;let N=S.start+A.delta;if(N>S.max?N=S.max:N<S.min&&(N=S.min),A.type==="move")pi(V,N,"move",A.direction,300);else if(A.type==="end"){let P=Math.floor(Math.abs(N)*1/S.itemDistance);const G=Math.abs(N)%S.itemDistance;S.start>N?G>=S.itemDistance*S.triggerAutoMoveRatio&&(P+=1):G>S.itemDistance-S.itemDistance*S.triggerAutoMoveRatio&&(P+=1),N=-1*P*S.itemDistance,pi(V,N,"end",A.direction,300),S.moved=N;const $=s.value[P].name;d.current.value=$??"",p($??""),i("update:modelValue",$)}},y=()=>{},B=()=>{if(!u.value)return;const A=Dn(u.value);d.tabWidth.value=A.width,d.tabHeight.value=A.height},g=wn(B,250);let v=null,E=null;return(0,t.onMounted)(()=>{l.transition!==!1&&u.value&&(B(),window.ResizeObserver&&(E=new window.ResizeObserver(g),E.observe(u.value)),l.draggle&&(v=hf(m,f,y),v.open(h.value)))}),(0,t.onBeforeUnmount)(()=>{E&&(E.disconnect(),E=null),v&&v.close()}),o({doLayout(){B()}}),()=>{const A=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:h},[c?.default?.()]);return(0,t.h)("view",{class:b.value,style:C.value,ref:u},[A])}}}}var{create:gf,componentName:yf,scope:bf}=te("tabs-container"),vf=gf(pf(yf,bf,!1)),Xt=vf,Sf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function kf(e,n,a){return{props:Sf,setup(l,{emit:r,slots:i}){const o=(0,t.inject)(hi);(0,t.onMounted)(()=>{o.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{o.remove(l.paneKey)});const c=(0,t.computed)(()=>{const p=[e];return o.direction.value==="vertical"?p.push("is-vertical"):p.push("is-horizontal"),o.transition===!1?p.push("is-no-transition"):p.push("is-transition"),p}),s=(0,t.computed)(()=>{const p={};return o.transition===!1?(o.current.value!==l.paneKey&&(p.display="none"),p):(o.direction.value==="vertical"&&o.tabHeight.value>0?p.height=`${o.tabHeight.value}px`:o.tabWidth.value>0&&(p.width=`${o.tabWidth.value}px`),p)}),d=(0,t.computed)(()=>l.loaded!=null?ke(l.loaded):o.isLoaded(l.paneKey));return()=>{let p=[];if(d.value)p=i?.default?.()??[];else if(i.empty)p=i.empty();else{const u={class:`${e}__empty-icon`},h=(0,t.h)(l.emptyIcon??a,u),b=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),C=(0,t.h)("view",{class:`${e}__empty`},[h,b]);p.push(C)}return(0,t.h)("view",{class:c.value,style:s.value,prop:l.paneKey},p)}}}}var{create:wf,componentName:Cf,scope:Nf}=te("tabs-pane"),Af=wf(kf(Cf,Nf,re.Loading)),Qn=Af,gi=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Xn(e,null,this.config)}updateChildren(e,n){n?n.children=Xn(e,n,this.config):this.nodes=Xn(e,null,this.config)}getNodeByValue(e){let n;return ui(this.nodes,a=>{if(a.value===e)return n=a,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),a=l.children}return n}isLeaf(e,n){const{leaf:a,children:l}=e,r=Array.isArray(l)&&!!l.length;return a||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:Bf,scope:Tf}=te("cascader-pane"),Vf=Bf({components:{Loading:re.Loading,Checklist:re.Checklist,TabsBar:Yt,TabsContainer:Xt,TabsPane:Qn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(Tf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),i=(0,t.ref)(),o=(0,t.ref)(!1),c=(0,t.ref)(e.modelValue),s=(0,t.ref)(new gi([],{})),d=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),u=(0,t.computed)(()=>o.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((f,y)=>({text:f.selectedNode?f.selectedNode.text:a("select"),value:y}))),h=new Map;let b;const C=async()=>{h.clear(),d.value=[],r.value=0,o.value=!1,b=null;let{options:f}=e;l.value.convertConfig&&(f=Jd(f,l.value.convertConfig)),s.value=new gi(f,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!s.value.nodes.length&&await w({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!p.value)},k=async(f=!0)=>{const y=c.value;if(y===void 0||!s.value.nodes.length)return;if(y.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let B=y;if(p.value&&Array.isArray(y)&&y.length){B=[];let g=s.value.nodes.find(v=>v.value===y[0]);g&&(B=[g.value],o.value=!0,await w(await y.slice(1).reduce(async(v,E)=>{const A=await v;await w(A);const V=A&&A?.children?.find(N=>N.value===E);return V&&B.push(E),Promise.resolve(V)},Promise.resolve(g))),o.value=!1)}B.length&&y===e.modelValue&&s.value.getPathNodesByValue(B).map((g,v)=>{r.value=v,m.handleNode(g,f)})},w=async f=>{if(!f)return;if(!l.value.lazyLoad){f.leaf=!0;return}if(s.value.isLeaf(f,p.value)||s.value.hasChildren(f,p.value))return;f.loading=!0;const y=f.root?null:f;let B=h.get(f);B||(B=new Promise(v=>{l.value.lazyLoad?.(f,v)}),h.set(f,B));const g=await B;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,y):f.leaf=!0,f.loading=!1,h.delete(f)},S=f=>{const y=f.map(B=>B.value);c.value=y,n("change",y,f),n("pathChange",f),n("update:modelValue",y)},m={async handleNode(f,y){const{disabled:B,loading:g}=f;if(!(!y&&B||!d.value[r.value])){if(s.value.isLeaf(f,p.value)){if(f.leaf=!0,d.value[r.value].selectedNode=f,d.value=d.value.slice(0,f.level+1),!y){const v=d.value.map(E=>E.selectedNode);S(v),n("pathChange",v)}return}if(s.value.hasChildren(f,p.value)){const v=f.level+1;d.value[r.value].selectedNode=f,d.value=d.value.slice(0,v),d.value.push({nodes:f.children||[],selectedNode:null}),r.value=v,y||n("pathChange",d.value.map(E=>E.selectedNode));return}b=f,!g&&(await w(f),b===f&&(d.value[r.value].selectedNode=f,m.handleNode(f,y)))}},handleTabChange(f,y){b=null},formatTabTitle(f){return f.selectedNode?f.selectedNode.text:a("select")},isSelected(f,y){return f.selectedNode&&f.selectedNode.value===y.value}};return(0,t.watch)([l,()=>e.options],()=>{C()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,f=>{De(f,c.value)||(c.value=f,k(!p.value))}),(0,t.watch)(()=>e.visible,f=>{f&&Array.isArray(c.value)&&c.value.length>0&&k(),f&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:o,tabsCursor:r,tabsContainerRef:i,...m}}}),Ef={class:"fox-cascader"},$f={role:"menu",class:"fox-cascader__pane"},Df=["aria-checked","aria-disabled","onClick"],If={class:"fox-cascader__item__title"};function qf(e,n,a,l,r,i){const o=(0,t.resolveComponent)("TabsBar"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ef,[(0,t.createVNode)(o,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(u,h)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":h,key:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",$f,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.nodes,b=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:b.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(u,b),disabled:b.disabled}]),"aria-checked":e.isSelected(u,b),"aria-disabled":b.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(b,!1)},[(0,t.createElementVNode)("view",If,(0,t.toDisplayString)(b.text),1),b.loading?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Df))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var xf=ie(Vf,[["render",qf]]),{create:Pf}=te("cascader"),Mf=Pf({components:{CascaderPane:xf,Wrapper:_d},props:{...at,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(o){n("update:visible",o)}}),r=(o,c)=>{a.value=o,l.value=!1,n("change",o,c),n("update:modelValue",o)},i=o=>{n("pathChange",o)};return(0,t.watch)(()=>e.modelValue,o=>{o!==a.value&&(a.value=o)}),{onChange:r,onPathChange:i,innerValue:a,innerVisible:l}}}),Rf=["innerHTML"];function zf(e,n,a,l,r,i){const o=(0,t.resolveComponent)("CascaderPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Rf)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(o,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var Gn=ie(Mf,[["render",zf]]);function vt(e,n){return n[e.textKey??"text"]??""}function St(e,n){return n[e.valueKey??"value"]}function yi(e,n){return n[e.childrenKey??"children"]}function _n(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=vt(e,r),o=St(e,r);a.texts.push(i),a.values.push(o??"")}return a}function bi(e,n,a,l,r=[]){if(!a)return;const i=a[l];for(let o=0;o<n.length;o++)if(vt(e,n[o])===i){const c=St(e,n[o])??"",s={[e.textKey]:i,[e.valueKey]:c};r.push(s);const d=yi(e,n[o]);Array.isArray(d)&&bi(e,d,a,l+1,r);return}}function vi(e,n,a,l,r=[]){if(!a)return;const i=a[l];for(let o=0;o<n.length;o++)if(St(e,n[o])===i){const c=vt(e,n[o])??"",s={[e.textKey]:c,[e.valueKey]:i};r.push(s);const d=yi(e,n[o]);Array.isArray(d)&&vi(e,d,a,l+1,r);return}}function ca(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(vt(e,n[l])!==vt(e,a[l])||St(e,n[l])!==St(e,a[l]))return!1;return!0}var Ff=class{scope;constructor(e){this.scope=e}async load(e,n,a){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,a);const r=lt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):($e(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,a))}};function Lf(){return new Ff(it())}var Si={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]},emptyText:{type:[String]}},Of={...be,...Se,...Si};function Kf(e,n,a,l,r,i,o,c=!1){return{props:Of,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:p,innerDisabled:u,disabled:h,innerReadonly:b,readonly:C,browse:k}=Ve(s),{emitEvent:w,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.value},get disabled(){return h.value},get props(){return s},context:d,get templateRefProxy(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,ye.useFoxI18n)(n),f=m(s,["placeholder"]),y=(0,t.ref)(!1),B=Lf(),g=(0,t.ref)([]),v=(0,t.ref)([]),E=(0,t.computed)(()=>{if(Array.isArray(v.value)){if(v.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const j=v.value.length-1;return v.value[j]}return v.value.join(s.separator)}else return v.value??s.emptyText}),A=(0,t.ref)([]),V=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>g.value],async([j,I])=>{if(w("setValue",j),s.lazy===!0){V.value.length==0&&(s.emptyText?v.value=[s.emptyText]:v.value=Array.isArray(j)?j:[],A.value=Array.isArray(j)?j:[]);return}if(s.valueType==="item"){let D=j;if(!ca(s,D,V.value)){V.value=D;let F=_n(s,D);v.value=F.texts,A.value=F.values}}else if(s.valueType==="text"){let D=j,F=[];if(bi(s,I,D,0,F),!ca(s,F,V.value)){V.value=F;let J=_n(s,F);v.value=J.texts,A.value=J.values}}else{let D=j,F=[];if(vi(s,I,D,0,F),!ca(s,F,V.value)){V.value=F;let J=_n(s,F);v.value=J.texts,A.value=J.values}}}),s.lazy===!0&&(A.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([j,I])=>{s.lazy||j&&(g.value=await B.load(j,I))},{immediate:!0});const N="fox-input-item",P=(0,t.computed)(()=>({[N]:!0,"is-disabled":h.value,"is-readonly":C.value})),G=Te((0,t.computed)(()=>s.textAlign),"textAlign"),$=(0,t.computed)(()=>{const j={};return G.value&&(j["text-align"]=G.value),j}),R=(0,t.ref)(!1),M=()=>{h.value===!0||C.value===!0||(R.value=!0)},U=j=>{R.value=j},z=(j,I)=>{let D=I.map(J=>{if(J==null)return J;let ae={...J};return Reflect.deleteProperty(ae,"text"),ae[s.textKey]=J.text??"",Reflect.deleteProperty(ae,"value"),ae[s.valueKey]=J.value??"",ae});V.value=D;let F=_n(s,D);v.value=F.texts,A.value=F.values,s.valueType==="text"?(w("change",v.value,D),w("update:modelValue",v.value)):s.valueType==="item"?(w("change",D,D),w("update:modelValue",D)):(w("change",A.value,D),w("update:modelValue",A.value)),w("update:pathNodes",D)},Y=j=>{w("pathChange",j.map(I=>{if(I==null)return I;let D={...I};return Reflect.deleteProperty(D,"text"),D[s.textKey]=I.text??"",Reflect.deleteProperty(D,"value"),D[s.valueKey]=I.value??"",D}))},x=j=>{y.value=!0,w("focus",A.value,j)},_=j=>{setTimeout(()=>{y.value=!1},0),w("blur",A.value,j)},ee=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":h.value,"is-readonly":C.value})),oe=(0,t.computed)(()=>we(s.unit)>0),X=(0,t.computed)(()=>we(s.unit)>0&&!y.value),Z=(0,t.computed)(()=>({hidden:!X.value})),L=j=>{V.value=[],v.value=[],A.value=[],w("update:modelValue",[]),w("change",[],j),w("clear",[]),w("update:pathNodes",[])},ne=(0,t.computed)(()=>s.clearable&&!h.value&&!C.value),H=(0,t.computed)(()=>{let j=A.value&&A.value.length>0;return s.clearable&&j&&y.value}),q=j=>{H.value?L(j):M()},O=(0,t.computed)(()=>H.value&&ne.value?r:i),W=(0,t.computed)(()=>({action:!0}));let Q=null;const le=()=>typeof Q=="function"?Q:typeof s.lazyLoad=="function"?s.lazyLoad:(Q=async(j,I)=>{const D=[],F=[];let J=0;if(!j.root){let ae=j;for(;ae;){const se=vt(s,ae),fe=St(s,ae);F.splice(0,0,se),D.splice(0,0,fe),ae=ae._parent}J=D.length}I(await B.load(s.source,{...j,level:J,pathLabels:F,pathValues:D},!0))},Q),K=(0,t.ref)();return S({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},setDisabled:j=>{u.value=j},setReadonly:j=>{b.value=j}}),()=>{if(k.value==="on"&&(C.value||h.value))return l({modelValue:E.value},d.slots);const j={class:P.value,style:$.value,ref:K,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:E.value,onClick:M,onFocus:x,onBlur:_};c&&(j.disabled=!0);const I=[],D=(0,t.h)("input",j);I.push(D);const F=[],J=(0,t.h)(O.value,{class:["action-icon"]}),ae=(0,t.h)("view",{class:W.value,onClick:q},{default:()=>[J]});if(F.push(ae),oe.value){const cn=(0,t.h)("view",{class:Z.value},[s.unit]);F.push(cn)}const se=(0,t.h)("view",{class:ee.value},{default:()=>F});I.push(se);const fe={default:()=>I};fe.label=d.slots.default,fe.prepend=d.slots.prepend,fe.append=d.slots.append,fe.fixedPreTip=d.slots.fixedPreTip,fe.fixedTip=d.slots.fixedTip;const me={};me.visible=R.value,me["onUpdate:visible"]=U,me.modelValue=A.value,me.onChange=z,me.onPathChange=Y,me.title=s.title,me.valueKey=s.valueKey,me.textKey=s.textKey,me.childrenKey=s.childrenKey,me.convertConfig=s.convertConfig,s.lazy?(me.lazy=!0,me.lazyLoad=le()):me.options=g.value;const Xe={};Xe.header=d.slots.header;const Qe=(0,t.h)(o,me,Xe);fe.hide=()=>[Qe];const ze={...We(s,Si),ref:p};return s.prop&&(ze.prop=`${s.prop}_item`),a(ze,fe)}}}}var{componentName:Uf,create:Hf,scope:jf}=te("cascader-item"),Wf=Hf(Kf(Uf,jf,Ie,Pe,re.CircleClose,re.ArrowRight,Gn,!1)),ua=Wf,Yf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=l()})(e,(function(){"use strict";var a=1e3,l=6e4,r=36e5,i="millisecond",o="second",c="minute",s="hour",d="day",p="week",u="month",h="quarter",b="year",C="date",k="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var R=["th","st","nd","rd"],M=$%100;return"["+$+(R[(M-20)%10]||R[M]||R[0])+"]"}},f=function($,R,M){var U=String($);return!U||U.length>=R?$:""+Array(R+1-U.length).join(M)+$},y={s:f,z:function($){var R=-$.utcOffset(),M=Math.abs(R),U=Math.floor(M/60),z=M%60;return(R<=0?"+":"-")+f(U,2,"0")+":"+f(z,2,"0")},m:function $(R,M){if(R.date()<M.date())return-$(M,R);var U=12*(M.year()-R.year())+(M.month()-R.month()),z=R.clone().add(U,u),Y=M-z<0,x=R.clone().add(U+(Y?-1:1),u);return+(-(U+(M-z)/(Y?z-x:x-z))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:u,y:b,w:p,d,D:C,h:s,m:c,s:o,ms:i,Q:h}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},B="en",g={};g[B]=m;var v="$isDayjsObject",E=function($){return $ instanceof P||!(!$||!$[v])},A=function $(R,M,U){var z;if(!R)return B;if(typeof R=="string"){var Y=R.toLowerCase();g[Y]&&(z=Y),M&&(g[Y]=M,z=Y);var x=R.split("-");if(!z&&x.length>1)return $(x[0])}else{var _=R.name;g[_]=R,z=_}return!U&&z&&(B=z),z||!U&&B},V=function($,R){if(E($))return $.clone();var M=typeof R=="object"?R:{};return M.date=$,M.args=arguments,new P(M)},N=y;N.l=A,N.i=E,N.w=function($,R){return V($,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var P=(function(){function $(M){this.$L=A(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[v]=!0}var R=$.prototype;return R.parse=function(M){this.$d=(function(U){var z=U.date,Y=U.utc;if(z===null)return new Date(NaN);if(N.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var x=z.match(w);if(x){var _=x[2]-1||0,ee=(x[7]||"0").substring(0,3);return Y?new Date(Date.UTC(x[1],_,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ee)):new Date(x[1],_,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ee)}}return new Date(z)})(M),this.init()},R.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},R.$utils=function(){return N},R.isValid=function(){return this.$d.toString()!==k},R.isSame=function(M,U){var z=V(M);return this.startOf(U)<=z&&z<=this.endOf(U)},R.isAfter=function(M,U){return V(M)<this.startOf(U)},R.isBefore=function(M,U){return this.endOf(U)<V(M)},R.$g=function(M,U,z){return N.u(M)?this[U]:this.set(z,M)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(M,U){var z=this,Y=!!N.u(U)||U,x=N.p(M),_=function(q,O){var W=N.w(z.$u?Date.UTC(z.$y,O,q):new Date(z.$y,O,q),z);return Y?W:W.endOf(d)},ee=function(q,O){return N.w(z.toDate()[q].apply(z.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(O)),z)},oe=this.$W,X=this.$M,Z=this.$D,L="set"+(this.$u?"UTC":"");switch(x){case b:return Y?_(1,0):_(31,11);case u:return Y?_(1,X):_(0,X+1);case p:var ne=this.$locale().weekStart||0,H=(oe<ne?oe+7:oe)-ne;return _(Y?Z-H:Z+(6-H),X);case d:case C:return ee(L+"Hours",0);case s:return ee(L+"Minutes",1);case c:return ee(L+"Seconds",2);case o:return ee(L+"Milliseconds",3);default:return this.clone()}},R.endOf=function(M){return this.startOf(M,!1)},R.$set=function(M,U){var z,Y=N.p(M),x="set"+(this.$u?"UTC":""),_=(z={},z[d]=x+"Date",z[C]=x+"Date",z[u]=x+"Month",z[b]=x+"FullYear",z[s]=x+"Hours",z[c]=x+"Minutes",z[o]=x+"Seconds",z[i]=x+"Milliseconds",z)[Y],ee=Y===d?this.$D+(U-this.$W):U;if(Y===u||Y===b){var oe=this.clone().set(C,1);oe.$d[_](ee),oe.init(),this.$d=oe.set(C,Math.min(this.$D,oe.daysInMonth())).$d}else _&&this.$d[_](ee);return this.init(),this},R.set=function(M,U){return this.clone().$set(M,U)},R.get=function(M){return this[N.p(M)]()},R.add=function(M,U){var z,Y=this;M=Number(M);var x=N.p(U),_=function(X){var Z=V(Y);return N.w(Z.date(Z.date()+Math.round(X*M)),Y)};if(x===u)return this.set(u,this.$M+M);if(x===b)return this.set(b,this.$y+M);if(x===d)return _(1);if(x===p)return _(7);var ee=(z={},z[c]=l,z[s]=r,z[o]=a,z)[x]||1,oe=this.$d.getTime()+M*ee;return N.w(oe,this)},R.subtract=function(M,U){return this.add(-1*M,U)},R.format=function(M){var U=this,z=this.$locale();if(!this.isValid())return z.invalidDate||k;var Y=M||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),_=this.$H,ee=this.$m,oe=this.$M,X=z.weekdays,Z=z.months,L=z.meridiem,ne=function(O,W,Q,le){return O&&(O[W]||O(U,Y))||Q[W].slice(0,le)},H=function(O){return N.s(_%12||12,O,"0")},q=L||function(O,W,Q){var le=O<12?"AM":"PM";return Q?le.toLowerCase():le};return Y.replace(S,(function(O,W){return W||(function(Q){switch(Q){case"YY":return String(U.$y).slice(-2);case"YYYY":return N.s(U.$y,4,"0");case"M":return oe+1;case"MM":return N.s(oe+1,2,"0");case"MMM":return ne(z.monthsShort,oe,Z,3);case"MMMM":return ne(Z,oe);case"D":return U.$D;case"DD":return N.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return ne(z.weekdaysMin,U.$W,X,2);case"ddd":return ne(z.weekdaysShort,U.$W,X,3);case"dddd":return X[U.$W];case"H":return String(_);case"HH":return N.s(_,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return q(_,ee,!0);case"A":return q(_,ee,!1);case"m":return String(ee);case"mm":return N.s(ee,2,"0");case"s":return String(U.$s);case"ss":return N.s(U.$s,2,"0");case"SSS":return N.s(U.$ms,3,"0");case"Z":return x}return null})(O)||x.replace(":","")}))},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(M,U,z){var Y,x=this,_=N.p(U),ee=V(M),oe=(ee.utcOffset()-this.utcOffset())*l,X=this-ee,Z=function(){return N.m(x,ee)};switch(_){case b:Y=Z()/12;break;case u:Y=Z();break;case h:Y=Z()/3;break;case p:Y=(X-oe)/6048e5;break;case d:Y=(X-oe)/864e5;break;case s:Y=X/r;break;case c:Y=X/l;break;case o:Y=X/a;break;default:Y=X}return z?Y:N.a(Y)},R.daysInMonth=function(){return this.endOf(u).$D},R.$locale=function(){return g[this.$L]},R.locale=function(M,U){if(!M)return this.$L;var z=this.clone(),Y=A(M,U,!0);return Y&&(z.$L=Y),z},R.clone=function(){return N.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},$})(),G=P.prototype;return V.prototype=G,[["$ms",i],["$s",o],["$m",c],["$H",s],["$W",d],["$M",u],["$y",b],["$D",C]].forEach((function($){G[$[1]]=function(R){return this.$g(R,$[0],$[1])}})),V.extend=function($,R){return $.$i||($(R,P,V),$.$i=!0),V},V.locale=A,V.isDayjs=E,V.unix=function($){return V(1e3*$)},V.en=g[B],V.Ls=g,V.p={},V}))})),Xf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,o=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,s={},d=function(w){return(w=+w)+(w>68?1900:2e3)},p=function(w){return function(S){this[w]=+S}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var m=S.match(/([+-]|\d\d)/g),f=60*m[1]+(+m[2]||0);return f===0?0:m[0]==="+"?-f:f})(w)}],h=function(w){var S=s[w];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(w,S){var m,f=s.meridiem;if(f){for(var y=1;y<=24;y+=1)if(w.indexOf(f(y,0,S))>-1){m=y>12;break}}else m=w===(S?"pm":"PM");return m},C={A:[c,function(w){this.afternoon=b(w,!1)}],a:[c,function(w){this.afternoon=b(w,!0)}],Q:[r,function(w){this.month=3*(w-1)+1}],S:[r,function(w){this.milliseconds=100*+w}],SS:[i,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[o,p("seconds")],ss:[o,p("seconds")],m:[o,p("minutes")],mm:[o,p("minutes")],H:[o,p("hours")],h:[o,p("hours")],HH:[o,p("hours")],hh:[o,p("hours")],D:[o,p("day")],DD:[i,p("day")],Do:[c,function(w){var S=s.ordinal,m=w.match(/\d+/);if(this.day=m[0],S)for(var f=1;f<=31;f+=1)S(f).replace(/\[|\]/g,"")===w&&(this.day=f)}],w:[o,p("week")],ww:[i,p("week")],M:[o,p("month")],MM:[i,p("month")],MMM:[c,function(w){var S=h("months"),m=(h("monthsShort")||S.map((function(f){return f.slice(0,3)}))).indexOf(w)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[c,function(w){var S=h("months").indexOf(w)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,p("year")],YY:[i,function(w){this.year=d(w)}],YYYY:[/\d{4}/,p("year")],Z:u,ZZ:u};function k(w){for(var S=w,m=s&&s.formats,f=(w=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,N,P){var G=P&&P.toUpperCase();return N||m[P]||a[P]||m[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,R,M){return R||M.slice(1)}))}))).match(l),y=f.length,B=0;B<y;B+=1){var g=f[B],v=C[g],E=v&&v[0],A=v&&v[1];f[B]=A?{regex:E,parser:A}:g.replace(/^\[|\]$/g,"")}return function(V){for(var N={},P=0,G=0;P<y;P+=1){var $=f[P];if(typeof $=="string")G+=$.length;else{var R=$.regex,M=$.parser,U=V.slice(G),z=R.exec(U)[0];M.call(N,z),V=V.replace(z,"")}}return(function(Y){var x=Y.afternoon;if(x!==void 0){var _=Y.hours;x?_<12&&(Y.hours+=12):_===12&&(Y.hours=0),delete Y.afternoon}})(N),N}}return function(w,S,m){m.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(d=w.parseTwoDigitYear);var f=S.prototype,y=f.parse;f.parse=function(B){var g=B.date,v=B.utc,E=B.args;this.$u=v;var A=E[1];if(typeof A=="string"){var V=E[2]===!0,N=E[3]===!0,P=V||N,G=E[2];N&&(G=E[2]),s=this.$locale(),!V&&G&&(s=m.Ls[G]),this.$d=(function(U,z,Y,x){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*U);var _=k(z)(U),ee=_.year,oe=_.month,X=_.day,Z=_.hours,L=_.minutes,ne=_.seconds,H=_.milliseconds,q=_.zone,O=_.week,W=new Date,Q=X||(ee||oe?1:W.getDate()),le=ee||W.getFullYear(),K=0;ee&&!oe||(K=oe>0?oe-1:W.getMonth());var j,I=Z||0,D=L||0,F=ne||0,J=H||0;return q?new Date(Date.UTC(le,K,Q,I,D,F,J+60*q.offset*1e3)):Y?new Date(Date.UTC(le,K,Q,I,D,F,J)):(j=new Date(le,K,Q,I,D,F,J),O&&(j=x(j).week(O).toDate()),j)}catch{return new Date("")}})(g,A,v,m),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),P&&g!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var $=A.length,R=1;R<=$;R+=1){E[1]=A[R-1];var M=m.apply(this,E);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}R===$&&(this.$d=new Date(""))}else y.call(this,B)}}}))})),Qf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(a,l){var r=l.prototype,i=r.format;r.format=function(o){var c=this,s=this.$locale();if(!this.isValid())return i.bind(this)(o);var d=this.$utils(),p=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(u){switch(u){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),u==="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 u}}));return i.bind(this)(p)}}}))})),Gf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(a,l,r){var i=l.prototype,o=function(u){return u&&(u.indexOf?u:u.s)},c=function(u,h,b,C,k){var w=u.name?u:u.$locale(),S=o(w[h]),m=o(w[b]),f=S||m.map((function(B){return B.slice(0,C)}));if(!k)return f;var y=w.weekStart;return f.map((function(B,g){return f[(g+(y||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(u,h){return u.formats[h]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,k,w){return k||w.slice(1)}))})(u.formats[h.toUpperCase()])},p=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):c(u,"months")},monthsShort:function(h){return h?h.format("MMM"):c(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):c(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):c(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):c(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return p.bind(this)()},r.localeData=function(){var u=s();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(h){return d(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},r.months=function(){return c(s(),"months")},r.monthsShort=function(){return c(s(),"monthsShort","months",3)},r.weekdays=function(u){return c(s(),"weekdays",null,null,u)},r.weekdaysShort=function(u){return c(s(),"weekdaysShort","weekdays",3,u)},r.weekdaysMin=function(u){return c(s(),"weekdaysMin","weekdays",2,u)}}}))})),_f=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var a="week",l="year";return function(r,i,o){var c=i.prototype;c.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=o(this).startOf(l).add(1,l).date(d),u=o(this).endOf(a);if(p.isBefore(u))return 1}var h=o(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),b=this.diff(h,a,!0);return b<0?o(this).startOf("week").week():Math.ceil(b)},c.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Zf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(a,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),o=this.year();return i===1&&r===11?o+1:r===0&&i>=52?o-1:o}}}))})),Jf=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(a,l,r){l.prototype.dayOfYear=function(i){var o=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}}))})),em=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),tm=Ue(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Ke=He(Yf(),1),nm=He(Xf(),1),lm=He(Qf(),1),am=He(Gf(),1),om=He(_f(),1),rm=He(Zf(),1),im=He(Jf(),1),sm=He(em(),1),cm=He(tm(),1);Ke.default.extend(am.default),Ke.default.extend(lm.default),Ke.default.extend(nm.default),Ke.default.extend(om.default),Ke.default.extend(rm.default),Ke.default.extend(im.default),Ke.default.extend(sm.default),Ke.default.extend(cm.default);var kt={format(e,n="YYYY-MM-DD"){return(0,Ke.default)(e).format(n)},parser(e,n){return(0,Ke.default)(e,n).toDate()},getDay(e,n,a){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),a=a??"YYYY-MM-DD",this.format(l,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){let l=new Date(e+"/"+n+"/"+a).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,a){const l=typeof e=="string"?this.parser(e,a):e,r=typeof n=="string"?this.parser(n,a):n,i=l.getTime(),o=r.getTime();return i==o?0:i>o?1:-1},between(e,n,a,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+a)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+a)):r=new Date(new Date(n).setDate(n.getDate()+a));const i=e.getTime(),o=r.getTime(),c=n.getTime();return o>c?i>=c&&i<=o:i>=o&&i<=c},inScope4Day(e,n,a){return this.between(e,n,a,"day")},inScope4Month(e,n,a){return this.between(e,n,a,"month")},inScope4Year(e,n,a){return this.between(e,n,a,"year")}},ki=new Date().getFullYear(),da={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"},Zn=(e,n,a)=>{let l;if(je(n)?l=n:typeof n=="string"&&we(n)>0?l=kt.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},fa=(e,n,a)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),kt.format(new Date(l),a)},ma={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},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(ki-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(ki+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:um,scope:dm}=te("date-picker"),fm=um({components:{Picker:jt},props:{...ma},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(dm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,f=>{r.value=f});function i(f,y){return new Date(f,y,0).getDate()}const o=(f,y)=>{const B=e[`${f}Date`],g=B.getFullYear();let v=1,E=1,A=0,V=0;f==="max"&&(v=12,E=i(y.getFullYear(),y.getMonth()+1),A=23,V=59);const N=V;return y.getFullYear()===g&&(v=B.getMonth()+1,y.getMonth()+1===v&&(E=B.getDate(),y.getDate()===E&&(A=B.getHours(),y.getHours()===A&&(V=B.getMinutes())))),{[`${f}Year`]:g,[`${f}Month`]:v,[`${f}Date`]:E,[`${f}Hour`]:A,[`${f}Minute`]:V,[`${f}Seconds`]:N}},c=(0,t.computed)(()=>{if(!h.value)return[];const{maxYear:f,maxDate:y,maxMonth:B,maxHour:g,maxMinute:v,maxSeconds:E}=o("max",h.value),{minYear:A,minDate:V,minMonth:N,minHour:P,minMinute:G,minSeconds:$}=o("min",h.value);let R=[{type:"year",range:[A,f]},{type:"month",range:[N,B]},{type:"day",range:[V,y]},{type:"hour",range:[P,g]},{type:"minute",range:[G,v]},{type:"seconds",range:[$,E]}];switch(e.type){case"date":R=R.slice(0,3);break;case"datetime":R=R.slice(0,5);break;case"time":R=R.slice(3,6);break;case"year-month":R=R.slice(0,2);break;case"month-day":R=R.slice(1,3);break;case"datehour":R=R.slice(0,4);break;case"hour-minute":R=R.slice(3,5);break}return R}),s=(f,y,B,g,v)=>{const E=[];for(;f<=y;){let A=!0;if(typeof e.itemFilter=="function"){const V={text:`${f}`,value:f,type:B,currentYearMonth:g};A=e.itemFilter(V)}if(A)if(typeof e.itemFormatter=="function"){const V={text:`${f}`,value:f,type:B,currentYearMonth:g};e.itemFormatter(V),E.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${f}${l[B]}`;if(B==="day"){if(g[0]===v[0]&&g[1]===v[1]&&f===v[2])V=l.today;else{const N=new Date(g[0],g[1],f).getDay();V=`${V} ${l.fullWeekdays[N]}`}E.push({text:V,value:f})}else E.push({text:f+l[B],value:f})}else E.push({text:`${f}`,value:f});B==="minute"?f+=e.minuteStep:f++}return E},d=(0,t.computed)(()=>{const f=new Date,y=[f.getFullYear(),f.getMonth(),f.getDate()],B=[];h.value&&(B[0]=h.value.getFullYear(),B[1]=h.value.getMonth());let g=[];return c.value.forEach(v=>{let E=s(v.range[0],v.range[1],v.type,B,y);E&&g.push(E)}),g}),p=(f,y)=>f==="year"?y.getFullYear():f==="month"?y.getMonth()+1:f==="day"?y.getDate():f==="hour"?y.getHours():f==="minute"?y.getMinutes():f==="seconds"?y.getSeconds():0,u=(0,t.ref)(),h=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,f=>{let y;if(typeof f=="string"?f.length==0||f==="Invalid Date"?y=new Date:e.valueFormat?y=Zn(e,e.modelValue,e.valueFormat):y=Zn(e,f,da[e.type]):je(f)?y=f:y=new Date,!!y&&(!h.value||y.getTime()!==h.value.getTime())){h.value=y;let B=[];c.value.forEach(g=>{let v=p(g.type,y);B.push(v)}),u.value=B}},{immediate:!0});const b=f=>{if(!f||f.length===0){h.value=new Date;let y=[];c.value.forEach(B=>{let g=p(B.type,h.value);y.push(g)}),u.value=y;return}if(e.type==="date"){const y=f[0],B=f[1]-1,g=Math.min(f[2],i(y,B+1));g!==f[2]&&(f[2]=g),h.value=new Date(y,B,g)}else if(e.type==="datetime"){const y=f[0],B=f[1]-1,g=Math.min(f[2],i(y,B+1)),v=f[3],E=f[4];g!==f[2]&&(f[2]=g),h.value=new Date(y,B,g,v,E)}else if(e.type==="time"){const y=f[0],B=f[1],g=f[2],v=h.value??new Date;h.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),y,B,g)}else if(e.type==="year-month"){const y=f[0],B=f[1]-1;h.value=new Date(y,B)}else if(e.type==="month-day"){const y=(h.value??new Date).getFullYear(),B=f[0]-1,g=Math.min(f[1],i(y,B+1));g!==f[1]&&(f[1]=g),h.value=new Date(y,B,g)}else if(e.type==="datehour"){const y=f[0],B=f[1]-1,g=Math.min(f[2],i(y,B+1)),v=f[3];g!==f[2]&&(f[2]=g),h.value=new Date(y,B,g,v)}else if(e.type==="hour-minute"){const y=f[0],B=f[1],g=h.value??new Date;h.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),y,B)}u.value=f};return{columns:d,dateIndexs:u,show:r,onChange:f=>{b(f)},onClose:()=>{n("update:close",!1)},onConfirm:f=>{b(f);const y=h.value??new Date;e.valueFormat?n("update:modelValue",fa(e,y,e.valueFormat)):n("update:modelValue",y),n("confirm",f)},onClear:()=>{n("clear")},onUpdateVisible:f=>{r.value=f,n("update:visible",f)}}}});function mm(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(o,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var Jn=ie(fm,[["render",mm]]),hm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function pm(e){let n=e.format;return n||(n=da[e.type??"date"]),n}var gm={...be,...Se,...ma,...hm};function ym(e,n,a,l,r,i,o,c=!1){return{props:gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:p,innerDisabled:u,disabled:h,innerReadonly:b,readonly:C,browse:k}=Ve(s),{emitEvent:w,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.value},get disabled(){return h.value},get props(){return s},context:d,get templateRefProxy(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,ye.useFoxI18n)(n),f=m(s,["placeholder"]),y=(0,t.ref)(!1),g=xe(s,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:s.valueFormat?Zn(s,q,s.valueFormat)??q:Zn(s,q,da[s.type])??q:je(q)?q:null,w),v=(0,t.computed)(()=>{if(!g.value)return"";const q=pm(s);return fa(s,g.value,q)}),E="fox-input-item",A=(0,t.computed)(()=>({[E]:!0,"is-disabled":h.value,"is-readonly":C.value})),V=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const q={};return V.value&&(q["text-align"]=V.value),q}),P=(0,t.ref)(!1),G=()=>{P.value=!0},$=()=>{P.value=!1};d.expose({showPicker:G,hidePicker:$});const R=q=>{P.value=q},M=q=>{if(g.value=q,s.valueFormat){let O=fa(s,q,s.valueFormat);w("update:modelValue",O,{}),w("change",O,{})}else w("update:modelValue",q,{}),w("change",q,{})},U=q=>{let O=q.target.value;y.value=!0,w("focus",O,q)},z=q=>{setTimeout(()=>{y.value=!1},0);let O=q.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),w("blur",O,q)},Y=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":h.value,"is-readonly":C.value})),x=(0,t.computed)(()=>we(s.unit)>0),_=(0,t.computed)(()=>we(s.unit)>0&&!y.value),ee=(0,t.computed)(()=>({hidden:!_.value})),oe=q=>{g.value="",w("update:modelValue","",q),w("change","",q),w("clear",""),$()},X=(0,t.computed)(()=>s.clearable&&!h.value&&!C.value),Z=(0,t.computed)(()=>{let q=we(g.value)>0;return s.clearable&&q&&y.value}),L=q=>{Z.value?oe(q):G()},ne=(0,t.computed)(()=>Z.value&&X.value?r:i),H=(0,t.computed)(()=>({action:!0}));return S({setDisabled:q=>{u.value=q},setReadonly:q=>{b.value=q}}),()=>{if(k.value==="on"&&(C.value||h.value))return l({modelValue:v.value},d.slots);const q={class:A.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:G,onFocus:U,onBlur:z};c&&(q.disabled=!0);const O=[],W=(0,t.h)("input",q);O.push(W);const Q=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:H.value,onClick:L},{default:()=>[le]});if(Q.push(K),x.value){const se=(0,t.h)("view",{class:ee.value},[s.unit]);Q.push(se)}const j=(0,t.h)("view",{class:Y.value},{default:()=>Q});O.push(j);const I={default:()=>O};I.label=d.slots.default,I.prepend=d.slots.prepend,I.append=d.slots.append,I.fixedPreTip=d.slots.fixedPreTip,I.fixedTip=d.slots.fixedTip;const D=ve(s,ma);D.valueFormat=null,D.disabled=!1,D.readonly=h.value||C.value,D.visible=P.value,D["onUpdate:visible"]=R,D.modelValue=g.value,D["onUpdate:modelValue"]=M,D.onClear=oe;const F={};if(d.slots.top){const se=d.slots.top();F.top=()=>se}if(d.slots.bottom){const se=d.slots.bottom();F.default=()=>se}const J=(0,t.h)(o,D,F);I.hide=()=>[J];const ae={...ve(s,Se,be),ref:p};return s.prop&&(ae.prop=`${s.prop}_item`),a(ae,I)}}}}var{create:bm,componentName:vm,scope:Sm}=te("date-item"),km=bm(ym(vm,Sm,Ie,Pe,re.CircleClose,re.Date,Jn,!1)),ha=km,ce={format(e,n="YYYY-MM-DD"){return kt.format(e,n)},parser(e,n){return kt.parser(e,n)},isLeapYear:function(e){return kt.isLeapYear(e)},getWhatDay:function(e,n,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+a).getDay()]},getMonthPreDay:function(e,n){let a=new Date(e+"/"+n+"/01").getDay();return a==0&&(a=7),a},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a));let i=r.getDay();const o=r.getDate();let c=6-i;return l!==0&&(i=i==0?7:i,c=7-i),Math.ceil((o+c)/7)},getYearWeek:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a)),i=new Date(Number(e),0,1),o=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((o+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a)),i=r.getTime();let o=r.getDay();if(l===0){const s=i-o*864e5,d=i+(6-o)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{o=o==0?7:o;const c=1440*60*1e3,s=i-(o-1)*c,d=i+(7-o)*c;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=ce.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ce.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:wm,scope:Cm}=te("calendar-pane"),Nm=wm({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},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ce.getDay(0)},endDate:{type:String,default:ce.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a,expose:l}){const{toLocaleRefs:r,t:i}=(0,ye.useFoxI18n)(Cm),o=r(e,["title","confirmText","startText","endText","today"]),c=JSON.parse(i("weekdays")),s=(0,t.ref)([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),p=(0,t.ref)(null),u=(0,t.ref)(null),h=(0,t.ref)(null),b=(0,t.ref)(0),C=(0,t.computed)(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),k=(0,t.computed)(()=>a.btn),w=(0,t.computed)(()=>a["top-info"]),S=(0,t.computed)(()=>a["bottom-info"]),m=(0,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}),f=H=>H.split("-"),y=H=>ce.isEqual(m.currDate[0],H),B=H=>ce.isEqual(m.currDate[1],H),g=H=>m.currDate?.length>0?m.currDate?.some(q=>ce.isEqual(q,H)):!1,v=(H,q)=>q.curData[0]+"-"+q.curData[1]+"-"+ce.getNumTwoBit(+H.day),E=(H,q)=>{const O=v(H,q),{type:W}=e;return H.type=="curr"?ce.isEqual(m.currDate,O)||(W=="range"||W=="week")&&(y(O)||B(O))||W=="multiple"&&g(O)?`${m.dayPrefix}--active`:m.propStartDate&&ce.compareDate(O,m.propStartDate)||m.propEndDate&&ce.compareDate(m.propEndDate,O)?`${m.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&ce.compareDate(m.currDate[0],O)&&ce.compareDate(O,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},A=()=>{const{type:H}=e;if(H=="range"&&m.chooseData.length==2||H!="range"){let q=m.chooseData.slice(0);H=="week"&&(q={weekDate:[N(m.chooseData[0]),N(m.chooseData[1])]}),n("choose",q),e.poppable&&n("update")}},V=(H,q,O=!1)=>{if(E(H,q)!=`${m.dayPrefix}--disabled`){const{type:W}=e;let[Q,le]=q.curData,K=[...q.curData];if(K[2]=ce.getNumTwoBit(Number(H.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=ce.getWhatDay(+K[0],+K[1],+K[2]),W=="multiple")if(m.currDate?.length>0){let j;m.currDate?.forEach((I,D)=>{I==K[3]&&(j=D)}),O?m.chooseData.push([...K]):j!==void 0?(m.currDate.splice(j,1),m.chooseData.splice(j,1)):(m.currDate.push(K[3]),m.chooseData.push([...K]))}else m.currDate=[K[3]],m.chooseData=[[...K]];else if(W=="range"){let j=Object.values(m.currDate).length;j==2||j==0?m.currDate=[K[3]]:ce.compareDate(m.currDate[0],K[3])?Array.isArray(m.currDate)&&m.currDate.push(K[3]):Array.isArray(m.currDate)&&m.currDate.unshift(K[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...K]]:ce.compareDate(m.chooseData[0][3],K[3])?m.chooseData=[...m.chooseData,[...K]]:m.chooseData=[[...K],...m.chooseData]}else if(W=="week"){let j=ce.getWeekDate(Q,le,H.day,e.firstDayOfWeek);m.propStartDate&&ce.compareDate(j[0],m.propStartDate)&&j.splice(0,1,m.propStartDate),m.propEndDate&&ce.compareDate(m.propEndDate,j[1])&&j.splice(1,1,m.propEndDate),m.currDate=j,m.chooseData=[ce.formatResultDate(j[0]),ce.formatResultDate(j[1])]}else m.currDate=K[3],m.chooseData=[...K];if(!O){let j=m.chooseData;W=="week"&&(j={weekDate:[N(m.chooseData[0]),N(m.chooseData[1])]}),n("select",j),(e.isAutoBackFill||!e.poppable)&&A()}}},N=H=>{let[q,O,W]=H;return{date:H,monthWeekNum:ce.getMonthWeek(q,O,W,e.firstDayOfWeek),yearWeekNum:ce.getYearWeek(q,O,W,e.firstDayOfWeek)}},P=H=>{const q=H=="prev"?m.monthsData[0]:m.monthsData[m.monthsData.length-1];let O=parseInt(q.curData[0]),W=parseInt(q.curData[1].toString().replace(/^0/,""));switch(H){case"prev":W==1&&(O-=1),W=W==1?12:--W;break;case"next":W==12&&(O+=1),W=W==12?1:++W;break}return[O+"",ce.getNumTwoBit(W),ce.getMonthDays(String(O),String(W))+""]},G=(H,q,O)=>{let{year:W,month:Q}=O;return q=="prev"&&H>=7&&(H-=7),Array.from(Array(H),(le,K)=>({day:String(K+1),type:q,year:W,month:Q}))},$=(H,q,O,W)=>{H=H-e.firstDayOfWeek;let{year:Q,month:le}=O;return q=="prev"&&H>=7&&(H-=7),Array.from(Array(W),(K,j)=>({day:String(j+1),type:q,year:Q,month:le})).slice(W-H)},R=(H,q)=>{const O=ce.getMonthPreDay(+H[0],+H[1]);let W=Number(H[1])-1,Q=Number(H[0]);W<=0&&(W=12,Q+=1);const le=ce.getMonthDays(String(H[0]),String(H[1])),K=ce.getMonthDays(Q+"",W+""),j={year:H[0],month:H[1]},I={curData:H,title:i("monthTitle",{year:j.year,month:j.month}),monthData:[...$(O,"prev",{month:String(W),year:String(Q)},K),...G(le,"curr",j)],cssHeight:0,cssScrollHeight:0};I.cssHeight=39+64*(I.monthData.length>35?6:5);let D=0;m.monthsData.length>0&&(D=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),I.cssScrollHeight=D,q=="next"?(!m.endData||!ce.compareDate(`${m.endData[0]}-${m.endData[1]}-${ce.getMonthDays(m.endData[0],m.endData[1])}`,`${H[0]}-${H[1]}-${H[2]}`))&&m.monthsData.push(I):!m.startData||!ce.compareDate(`${H[0]}-${H[1]}-${H[2]}`,`${m.startData[0]}-${m.startData[1]}-01`)?m.monthsData.unshift(I):m.unLoadPrev=!0},M=()=>{let H=e.startDate?e.startDate:ce.getDay(0),q=e.endDate?e.endDate:ce.getDay(365);m.propStartDate=H,m.propEndDate=q,m.startData=f(H),m.endData=f(q),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const O={year:Number(m.startData[0]),month:Number(m.startData[1])},W={year:Number(m.endData[0]),month:Number(m.endData[1])};let Q=W.month-O.month;W.year-O.year>0&&(Q=Q+12*(W.year-O.year)),Q<=0&&(Q=1),R(m.startData,"next");let le=1;do R(P("next"),"next");while(le++<Q);if(m.monthsNum=Q,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(H&&ce.compareDate(m.currDate[0],H)&&m.currDate.splice(0,1,H),q&&ce.compareDate(q,m.currDate[1])&&m.currDate.splice(1,1,q),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let K=[],j={};m.currDate.forEach(I=>{H&&!ce.compareDate(I,H)&&q&&!ce.compareDate(q,I)&&(Object.hasOwnProperty.call(j,I)||(K.push(I),j[I]=I))}),m.currDate=[...K],m.defaultData=[...f(K[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[K,j,I]=f(m.currDate[0]);m.currDate=ce.getWeekDate(K,j,I,e.firstDayOfWeek),H&&ce.compareDate(m.currDate[0],H)&&m.currDate.splice(0,1,H),q&&ce.compareDate(q,m.currDate[1])&&m.currDate.splice(1,1,q),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]}}else m.currDate&&(H&&ce.compareDate(m.currDate,H)?m.currDate=H:q&&!ce.compareDate(m.currDate,q)&&(m.currDate=q),m.defaultData=[...f(m.currDate)])};l({scrollToDate:H=>{ce.compareDate(H,m.propStartDate)?H=m.propStartDate:ce.compareDate(H,m.propEndDate)||(H=m.propEndDate);let q=f(H);m.monthsData.forEach((O,W)=>{if(O.title==i("monthTitle",{year:q[0],month:q[1]})&&d.value){let Q=m.monthsData[W].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let le=0,K=setInterval(()=>{if(le++,d.value){let j=Q/10;d.value.scrollTop=d.value.scrollTop+j}le>=10&&(clearInterval(K),d.value&&(d.value.scrollTop=m.monthsData[W].cssScrollHeight))},40)}else d.value.scrollTop=m.monthsData[W].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)},doLayout:()=>{let H=0,q=0;m.defaultData.length>0&&m.monthsData.forEach((Q,le)=>{Q.title==i("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(H=le),(e.type=="range"||e.type=="week")&&Q.title==i("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(q=le)}),x(m.monthsNum,H),m.currentIndex=H,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?(V({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),V({day:m.defaultData[5],type:"curr"},m.monthsData[q],!0)):e.type=="week"?V({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(Q=>{let le=f(Q),K=m.currentIndex;m.monthsData.forEach((j,I)=>{j.title==i("monthTitle",{year:le[0],month:le[1]})&&(K=I)}),V({day:le[2],type:"curr"},m.monthsData[K],!0)}):V({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let O=m.monthsData[m.monthsData.length-1],W=O.cssHeight+O.cssScrollHeight;Ge(()=>{d?.value&&p?.value&&h?.value&&(b.value=d.value.clientHeight,p.value.style.height=`${W}px`,d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(W/(m.monthsNum+1))}});const x=(H,q)=>{H>=3?q>0&&q<H?m.defaultRange=[q-1,q+3]:q==0?m.defaultRange=[q,q+4]:q==H&&(m.defaultRange=[q-2,q+2]):m.defaultRange=[0,H+2],m.translateY=m.monthsData[m.defaultRange[0]].cssScrollHeight},_=(H,q)=>(e.type=="range"||e.type=="week")&&H.type=="curr"&&E(H,q)=="fox-calendar__day--active",ee=(H,q)=>_(H,q)&&y(v(H,q)),oe=(H,q)=>m.currDate.length>=2&&B(v(H,q))?_(H,q):!1,X=()=>{if(m.currDate.length>=2)return ce.isEqual(m.currDate[0],m.currDate[1])},Z=H=>{const q=`${H.year}-${H.month}-${Number(H.day)<10?"0"+H.day:H.day}`;return ce.isEqual(q,ce.date2Str(new Date))},L=H=>{if(m.monthsData.length<=1)return;const q=H.target.scrollTop;let O=Math.floor(q/m.avgHeight);if(O==0)q>=m.monthsData[O+1].cssScrollHeight&&(O+=1);else if(O>0&&O<m.monthsNum-1)q>=m.monthsData[O+1].cssScrollHeight&&(O+=1),q<m.monthsData[O].cssScrollHeight&&(O-=1);else{const W=Math.round(q+b.value);W<m.monthsData[O].cssScrollHeight+m.monthsData[O].cssHeight&&q>m.monthsData[O-1].cssScrollHeight&&(O-=1),O+1<=m.monthsNum&&W>=m.monthsData[O+1].cssScrollHeight+m.monthsData[O+1].cssHeight&&(O+=1),O>=1&&q<m.monthsData[O-1].cssScrollHeight&&(O-=1)}m.currentIndex!==O&&(m.currentIndex=O,x(m.monthsNum,O)),m.yearMonthTitle=m.monthsData[O].title},ne=()=>{m.chooseData.splice(0),m.monthsData.splice(0),M()};return M(),(0,t.watch)(()=>e.defaultValue,H=>{H&&e.poppable&&ne()}),{weeks:s,compConthsData:C,showTopBtn:k,topInfo:w,bottomInfo:S,rangeTip:X,mothsViewScroll:L,getClass:E,isStartTip:ee,isEndTip:oe,chooseDay:V,isCurrDay:Z,confirm:A,months:d,...(0,t.toRefs)(m),...(0,t.toRefs)(e),...o,monthsPanel:p,weeksPanel:u,viewArea:h}}}),Am={class:"fox-calendar__header"},Bm={key:0,class:"fox-calendar__header-title"},Tm={key:1,class:"fox-calendar__header-slot"},Vm={key:2,class:"fox-calendar__header-subtitle"},Em={class:"fox-calendar__weekdays",ref:"weeksPanel"},$m={class:"fox-calendar__panel",ref:"monthsPanel"},Dm={class:"fox-calendar__month-title"},Im={class:"fox-calendar__days"},qm=["onClick"],xm={class:"fox-calendar__day-value"},Pm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Mm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Rm={key:2,class:"fox-calendar__day-tips--curr"},zm={key:4,class:"fox-calendar__day-tip"},Fm={key:0,class:"fox-calendar__footer"};function Lm(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Am,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Em,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:c},(0,t.toDisplayString)(o),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...o)=>e.mothsViewScroll&&e.mothsViewScroll(...o))},[(0,t.createElementVNode)("view",$m,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:c},[(0,t.createElementVNode)("view",Dm,(0,t.toDisplayString)(o.title),1),(0,t.createElementVNode)("view",Im,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,o)]),onClick:p=>e.chooseDay(s,o)},[(0,t.createElementVNode)("view",xm,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pm,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,o)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,o)?((0,t.openBlock)(),(0,t.createElementBlock)("view",zm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,qm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...o)=>e.confirm&&e.confirm(...o))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Om=ie(Nm,[["render",Lm]]),Km=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Ce,We({...e},{poppable:!1}),n):n?.default?.()??null}}),Um=Km,Hm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),el={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]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:jm}=te("calendar"),Wm=jm({components:{Wrapper:Um,CalendarPane:Om},props:{...el},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a,expose:l}){const r=(0,t.computed)(()=>a.btn),i=(0,t.computed)(()=>a["top-info"]),o=(0,t.computed)(()=>a.day),c=(0,t.computed)(()=>a["bottom-info"]),s=(0,t.ref)(null),d=w=>{s.value?.scrollToDate(w)},p=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,w=>{w&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:p});const u=()=>{n("update:visible",!1)},h=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{h()},update:u,close:h,select:w=>{n("select",w)},choose:w=>{h(),n("choose",w)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:o,bottomInfo:c}}});function Ym(e,n,a,l,r,i){const o=(0,t.resolveComponent)("CalendarPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{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},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var tl=ie(Wm,[["render",Ym]]),wi={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]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},pa=(e,n)=>{let a;return je(e)?a=e:typeof e=="string"&&we(e)>0?a=ce.parser(e,n):a=new Date,a},wt=(e,n,a)=>(je(n)||(n=new Date),ce.format(n,a)),Ct=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ce.date2Str(e),ce.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Xm={...be,...Se,...el,...wi};function Qm(e,n,a,l,r,{CloseIcon:i,MarkIcon:o},c=!1){return{props:Xm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:p,disabled:u,readonly:h,browse:b}=Ve(s),{emitEvent:C,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return u.value},get props(){return s},context:d,get templateRefProxy(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,ye.useFoxI18n)(n),S=w(s,["placeholder"]),m=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),y=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),B=()=>{y.startDate!==null&&(y.startDate=null,y.endDate=null,y.startArray=[],y.endArray=[])},g=(q,O="one",W="YYYY-MM-DD")=>{if(Hm(q)){B();return}if(f.value&&Array.isArray(q)&&q.length==2){let Q,le;typeof q[0]=="string"?(Q=pa(q[0],W),le=pa(q[1],W)):(Q=q[0],le=q[1]);let K=Ct(Q),j=Ct(le);(y.startDate===null||y.startDate.getTime()!==Q.getTime()||y.endDate?.getTime()!==le.getTime())&&(y.startDate=Q,y.startArray=K,y.endDate=le,y.endArray=j)}else{let Q;typeof q=="string"?Q=pa(q,W):Q=q;let le=Ct(Q);(y.startDate===null||y.startDate.getTime()!==Q.getTime())&&(y.startDate=Q,y.startArray=le)}};g(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,q=>{g(q,s.type,s.valueFormat),C("setValue",q)});const v=(0,t.computed)(()=>{if(y.startDate===null)return"";if(f.value){let q=wt(s,y.startDate,s.format),O=wt(s,y.endDate,s.format);return`${q} ${s.rangeSeparator} ${O}`}else{let q=wt(s,y.startDate,s.format);return s.showWeek&&(q=`${q} ${y.startArray[4]}`),q}}),E=(0,t.computed)(()=>y.startDate===null?null:f.value?[ce.date2Str(y.startDate),ce.date2Str(y.endDate??new Date)]:ce.date2Str(y.startDate)),A="fox-input-item",V=(0,t.computed)(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":h.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),P=(0,t.computed)(()=>{const q={};return N.value&&(q["text-align"]=N.value),q}),G=(0,t.ref)(!1),$=()=>{h.value||u.value||(G.value=!0)},R=q=>{G.value=q},M=q=>{if(q){if(f.value&&Array.isArray(q)){let O=q[0],W=de(O[0]),Q=de(O[1]),le=de(O[2]),K=new Date(W,Q-1,le),j=q[1];W=de(j[0]),Q=de(j[1]),le=de(j[2]);let I=new Date(W,Q-1,le);y.startDate=K,y.startArray=Ct(K),y.endDate=I,y.endArray=Ct(I),s.valueFormat?C("update:modelValue",[wt(s,K,s.valueFormat),wt(s,I,s.valueFormat)],{}):C("update:modelValue",[K,I],{})}else{let O=q,W=de(O[0]),Q=de(O[1]),le=de(O[2]),K=new Date(W,Q-1,le);y.startDate=K,y.startArray=Ct(K),s.valueFormat?C("update:modelValue",wt(s,K,s.valueFormat),{}):C("update:modelValue",K,{})}C("change",q,{})}},U=q=>{let O=q.target.value;m.value=!0,C("focus",O,q)},z=q=>{setTimeout(()=>{m.value=!1},0);let O=q.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),C("blur",O,q)},Y=(0,t.computed)(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":h.value})),x=(0,t.computed)(()=>we(s.unit)>0),_=(0,t.computed)(()=>we(s.unit)>0&&!m.value),ee=(0,t.computed)(()=>({hidden:!_.value})),oe=q=>{B(),C("update:modelValue",null,q),C("change","",q),C("clear","")},X=(0,t.computed)(()=>s.clearable&&!u.value&&!h.value),Z=(0,t.computed)(()=>{let q=we(v.value)>0;return s.clearable&&q&&m.value}),L=q=>{Z.value?oe(q):$()},ne=(0,t.computed)(()=>Z.value&&X.value?i:o),H=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(b.value==="on"&&(h.value||u.value))return r({modelValue:v.value},d.slots);const q={class:V.value,style:P.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:$,onFocus:U,onBlur:z};c&&(q.disabled=!0);const O=[],W=(0,t.h)("input",q);O.push(W);const Q=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:H.value,onClick:L},{default:()=>[le]});if(Q.push(K),x.value){const se=(0,t.h)("view",{class:ee.value},[s.unit]);Q.push(se)}const j=(0,t.h)("view",{class:Y.value},{default:()=>Q});O.push(j);const I={default:()=>O};I.label=d.slots.default,I.prepend=d.slots.prepend,I.append=d.slots.append,I.fixedPreTip=d.slots.fixedPreTip,I.fixedTip=d.slots.fixedTip;const D=ve(s,el);D.visible=G.value,D["onUpdate:visible"]=R,D["default-value"]=E.value,D.onChoose=M;const F={};if(d.slots.btn){const se=d.slots.btn();F.btn=()=>se}d.slots.day&&(F.day=d.slots.day),d.slots.topInfo&&(F.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(F.bottomInfo=d.slots.bottomInfo);const J=(0,t.h)(a,D,F);I.hide=()=>[J];const ae={...We(s,el,wi),ref:p};return s.prop&&(ae.prop=`${s.prop}_item`),l(ae,I)}}}}var{componentName:Gm,create:_m,scope:Zm}=te("calendar-item"),Jm=_m(Qm(Gm,Zm,tl,Ie,Pe,{CloseIcon:re.CircleClose,MarkIcon:re.Date},!1)),ga=Jm,e0={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 t0(e,{CheckNormal:n,Checked:a}){return{props:{...e0},setup(l,{emit:r,slots:i}){const o=(0,t.inject)("parent",null),c=In(),s=(0,t.computed)(()=>o.label.value===l.label),d=(0,t.computed)(()=>o.position),p=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const w=ue(l.iconSize),S=l.checkedIcon??c.radio.Checked??a;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(S,{width:w,height:w,class:k})}}else{if(i.icon)return i.icon();{const w=ue(l.iconSize),S=l.icon??c.radio.CheckNormal??n;return k.push("fox-radio__icon--unchecked"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(S,{width:w,height:w,class:k})}}},u=()=>{const k=[`${e}__label`];return l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},h=()=>{const k=[`${e}__button`];return s.value&&k.push(`${e}__button--active`),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},b=()=>{s.value||l.disabled||l.readonly||o.updateValue(l.label)},C=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${C?`${e}--reverse`:""}`,onClick:b},[l.shape=="button"?h():C?[u(),p()]:[p(),u()]])}}}var{componentName:n0,create:l0}=te("radio"),a0=l0(t0(n0,{CheckNormal:re.CheckNormal,Checked:re.CheckChecked})),nl=a0,{componentName:Ci,create:o0}=te("radio-group"),r0=o0({props:{prop:{type:[String]},modelValue:{type:[String,Number,Boolean],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:a,exposeApi:l}=Fe({context:n},e.prop),{slots:r}=n,i=o=>a("update:modelValue",o);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,o=>a("change",o)),l(),()=>{const o={};return e.textAlign&&(o["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ci} ${Ci}--${e.direction}`,style:o},r.default?.())}}}),ll=r0;function Ni(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(al(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(Qt(e,i)===a)return r}return-1}function al(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function i0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function s0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var c0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function u0(){return new c0(it())}function d0(e){return{text:e,value:e}}var Ai={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},f0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},m0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},h0={...be,...Se,...Ai,...f0,...m0};function p0(e,n,a,l,r,i){return{props:h0,emits:["change","update:modelValue","setValue"],setup(o,c){const{itemTemplateRef:s,innerDisabled:d,disabled:p,innerReadonly:u,readonly:h,browse:b}=Ve(o),{emitEvent:C,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return p.value},get props(){return o},context:c,get templateRefProxy(){return s.value}},o.prop??c.attrs.name),w=Te((0,t.computed)(()=>o.textAlign),"textAlign"),S=u0(),m=(0,t.ref)([]),f=(0,t.computed)(()=>typeof o.sourceFilter=="function"&&Array.isArray(m.value)?m.value.filter(o.sourceFilter):m.value);(0,t.watch)([()=>o.source,()=>o.params],async([E,A])=>{if(E){const V=await S.load("radio",E,A);V.length>0?typeof V[0]=="string"?m.value=V.map(N=>d0(N)):m.value=V:m.value=[]}},{immediate:!0});let y=(0,t.ref)(-1);(0,t.watch)([()=>o.modelValue,()=>f.value],async([E,A])=>{y.value=Ni(o,A,E,o.valueType),C("setValue",E)},{deep:!0});const B=(0,t.computed)(()=>{if(!o.source)return o.modelValue;if(y.value===-1)return null;const E=f.value[y.value];return Qt(o,E)}),g=E=>{let A=null,V=null;if(f.value.length>0){let N=Ni(o,f.value,E,"value");y.value=N,N>=0&&(V=f.value[N],o.valueType==="text"?A=al(o,V):o.valueType==="item"?A=V:A=Qt(o,V))}else A=E;C("update:modelValue",A),C("change",A,V)},v=()=>{let E=null,A=null;if(f.value.length>0&&y.value!==-1){let V=f.value[y.value];o.valueType==="text"?E=al(o,V):o.valueType==="item"?E=V:E=Qt(o,V)}C("update:modelValue",E),C("change",E,A)};if(k({clear(){y.value!==-1&&(y.value=-1,v())},setDisabled:E=>{d.value=E},setReadonly:E=>{u.value=E}}),o.source){const E=()=>{const A=[],V=ve(o,Ai);return f.value.forEach((N,P)=>{const G=Qt(o,N),$=i0(o,N);let R={...V,label:G,disabled:$};const M=s0(o,N,P);R={...R,...M},p.value&&(R.disabled=!0),h.value&&(R.readonly=!0);const U={};if(c.slots.icon&&(U.icon=c.slots.icon),c.slots.checkedIcon&&(U.checkedIcon=c.slots.checkedIcon),typeof c.slots.text=="function"){const Y=c.slots.text(N);U.default=()=>[Y]}else{const Y=al(o,N);U.default=()=>Y}let z=(0,t.h)(i,R,U);A.push(z)}),A};return()=>{if(b.value==="on"&&(h.value||p.value))return l({modelValue:B.value,source:f.value},c.slots);const A=E(),V=(0,t.h)(r,{class:`${e}`,direction:o.direction,textPosition:o.textPosition,textAlign:w.value,modelValue:B.value,"onUpdate:modelValue":g},{default:()=>A}),N={default:()=>V};N.label=c.slots.default,N.prepend=c.slots.prepend,N.append=c.slots.append,N.fixedPreTip=c.slots.fixedPreTip,N.fixedTip=c.slots.fixedTip;const P={...ve(o,Se,be),ref:s};return o.prop&&(P.prop=`${o.prop}_item`),a(P,N)}}else return()=>{const E=c.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:o.direction,textPosition:o.textPosition,textAlign:w.value,modelValue:B,"update:modelValue":g},{default:()=>E})}}}}var{componentName:g0,create:y0,scope:b0}=te("radio-item"),v0=y0(p0(g0,b0,Ie,Pe,ll,nl)),ya=v0,S0={prop:{type:[String]},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"}},k0=(e,{CheckNormal:n,Checked:a,Indeterminate:l})=>({props:S0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:o,exposeApi:c}=Fe({context:i},r.prop),s=In(),{slots:d}=i,p=(0,t.inject)("parent",null),u=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,B=>{u.partialSelect=B});const h=(0,t.computed)(()=>!!p),b=(0,t.computed)(()=>h.value?p.value.value.includes(r.label):!!r.modelValue),C=(0,t.computed)(()=>h.value?p.position:r.textPosition);let k="";const w=(B,g)=>{k="click",o("update:modelValue",B),o("change",B,g)};(0,t.watch)(()=>r.modelValue,B=>{k=="click"?k="":o("change",B)});const S=()=>{const B=[];if(u.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const g=ue(r.iconSize),v=r.indeterminateIcon??s.checkbox.Indeterminate??l;return B.push("fox-checkbox__icon--indeterminate"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(v,{width:g,height:g,class:B})}}else if(b.value){if(d.checkedIcon)return d.checkedIcon();{const g=ue(r.iconSize),v=r.checkedIcon??s.checkbox.Checked??a;return B.push("fox-checkbox__icon"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(v,{width:g,height:g,class:B})}}else{if(d.icon)return d.icon();{const g=ue(r.iconSize),v=r.icon??s.checkbox.CheckNormal??n;return B.push("fox-checkbox__icon--unchecked"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(v,{width:g,height:g,class:B})}}},m=()=>{const B=[`${e}__label`];return r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},f=()=>{const B=[`${e}__button`];return b.value&&B.push(`${e}__button--active`),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},y=B=>{if(!(r.disabled||r.readonly)){if(b.value&&u.partialSelect){u.partialSelect=!1,w(b.value,d.default?.()[0].children);return}if(w(!b.value,d.default?.()[0].children),h.value){const g=p.value.value,v=p.max.value,{label:E}=r,A=g.indexOf(E);A>-1?g.splice(A,1):A<=-1&&(g.length<v||!v)&&g.push(E),p.updateValue(g)}}};return(0,t.onMounted)(()=>{h.value&&p.link(r)}),(0,t.onBeforeUnmount)(()=>{h.value&&p.unlink(r)}),c(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${C.value==="left"?`${e}--reverse`:""}`,onClick:y},[r.shape=="button"?f():[S(),m()]])}}),{componentName:w0,create:C0}=te("checkbox"),N0=C0(k0(w0,{CheckNormal:re.CheckNormal,Checked:re.Checked,Indeterminate:re.CheckDisabled})),ol=N0,{create:A0,componentName:Bi}=te("checkbox-group"),B0={prop:{type:String},modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},T0=A0({props:B0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:a,exposeApi:l}=Fe({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),o=u=>{i.children.push(u)},c=u=>{const h=i.children.findIndex(b=>b===u);h!==-1&&i.children.splice(h,1)},s=u=>{a("update:modelValue",u),a("change",u)},d=u=>{const h=[];u&&i.children.forEach(b=>{b?.disabled||h.push(b?.label)}),a("update:modelValue",h)},p=()=>{a("update:modelValue",i.children.filter(u=>u?.disabled?!1:!e.modelValue.includes(u.label)).map(u=>u.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:o,unlink:c}),(0,t.watch)(()=>e.modelValue,u=>{a("change",u)}),l({toggleAll:d,toggleReverse:p}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Bi} ${Bi}--${e.direction}`,style:u},r.default?.())}}}),rl=T0;function Ti(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(ba(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(il(e,i)===a)return r}return-1}function ba(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function il(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function V0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function E0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var $0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function D0(){return new $0(it())}function I0(e){return{text:e,value:e}}var q0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Vi={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},x0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},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:[]},separator:{type:[String],required:!1,default:", "}},P0={...be,...Se,...q0,...Vi,...x0};function M0(e,n,a,l,r,i){return{props:P0,emits:["change","update:modelValue","setValue"],setup(o,c){const{itemTemplateRef:s,innerDisabled:d,disabled:p,innerReadonly:u,readonly:h,browse:b}=Ve(o),C=Te((0,t.computed)(()=>o.textAlign),"textAlign"),{emitEvent:k,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return p.value},get props(){return o},context:c,get templateRefProxy(){return s.value}},o.prop??c.attrs.name),S=D0(),m=(0,t.ref)([]),f=(0,t.computed)(()=>typeof o.sourceFilter=="function"&&Array.isArray(m.value)?m.value.filter(o.sourceFilter):m.value);(0,t.watch)([()=>o.source,()=>o.params],async([E,A])=>{if(E){const V=await S.load("checkbox",E,A);V.length>0?typeof V[0]=="string"?m.value=V.map(N=>I0(N)):m.value=V:m.value=[]}},{immediate:!0});const y=(0,t.ref)([]);(0,t.watch)([()=>o.modelValue,()=>f.value],async([E,A])=>{const V=[];Array.isArray(E)&&E.forEach(N=>{let P=Ti(o,A,N,o.valueType);P!==-1&&V.push(P)}),!De(V,y.value)&&(y.value=V,k("setValue",V))},{deep:!0});const B=(0,t.computed)(()=>{if(!o.source)return o.modelValue;let E=[];return y.value.forEach(A=>{let V=f.value[A];E.push(il(o,V))}),E}),g=E=>{let A=[],V=[];if(f.value.length>0){const N=[];Array.isArray(E)&&E.forEach(P=>{let G=Ti(o,f.value,P,"value");G!==-1&&N.push(G);const $=f.value[G];V.push($),o.valueType==="text"?A.push(ba(o,$)):o.valueType==="item"?A.push($):A.push(il(o,$))}),y.value=N}else A=E;k("update:modelValue",A),k("change",A,V)},v=(0,t.ref)();if(w({toggleAll:E=>{v.value.toggleAll(E)},toggleReverse:()=>{v.value.toggleReverse()},setDisabled:E=>{d.value=E},setReadonly:E=>{u.value=E}}),o.source){const E=()=>{const A=[],V=ve(o,Vi);return f.value.forEach((N,P)=>{const G=il(o,N),$=V0(o,N);let R={...V,label:G,disabled:$};const M=E0(o,N,P);R={...R,...M},p.value&&(R.disabled=!0),h.value&&(R.readonly=!0);const U={};if(c.slots.icon&&(U.icon=c.slots.icon),c.slots.checkedIcon&&(U.checkedIcon=c.slots.checkedIcon),c.slots.indeterminateIcon&&(U.indeterminateIcon=c.slots.indeterminateIcon),typeof c.slots.text=="function"){const Y=c.slots.text(N);U.default=()=>[Y]}else{const Y=ba(o,N);U.default=()=>Y}let z=(0,t.h)(i,R,U);A.push(z)}),A};return()=>{if(b.value==="on"&&(h.value||p.value))return l({modelValue:B.value,source:f.value,separator:o.separator},c.slots);const A=E(),V=(0,t.h)(r,{class:`${e}`,ref:v,direction:o.direction,max:o.max,textPosition:o.textPosition,modelValue:B.value,"onUpdate:modelValue":g},{default:()=>A}),N={default:()=>V};N.label=c.slots.default,N.prepend=c.slots.prepend,N.append=c.slots.append,N.fixedPreTip=c.slots.fixedPreTip,N.fixedTip=c.slots.fixedTip;const P={...ve(o,Se,be),ref:s};return o.prop&&(P.prop=`${o.prop}_item`),a(P,N)}}else return()=>{const E=c.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:v,direction:o.direction,max:o.max,textPosition:o.textPosition,textAlign:C.value,modelValue:B,"onUpdate:modelValue":g},{default:()=>E})}}}}var{componentName:R0,create:z0,scope:F0}=te("checkbox-item"),L0=z0(M0(R0,F0,Ie,Pe,rl,ol)),va=L0,Sa={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:O0,create:K0}=te("switch"),U0=K0({components:{Loading1:re.Loading1},props:{...Sa},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const c=O0;return{[c]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${c}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let i="";const o=c=>{if(e.disabled||e.loading)return;i="click";const s=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,c)};return(0,t.watch)(()=>e.modelValue,c=>{i=="click"?i="":n("change",c)}),{classes:l,style:r,isActive:a,onClick:o}}}),H0={class:"fox-switch-button"};function j0(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",H0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(o,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var sl=ie(U0,[["render",j0]]),W0={...be,...Se,...Sa};function Y0(e,n,a,l,r){return{props:W0,emits:["change","update:modelValue","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:p,readonly:u,browse:h}=Ve(i),{emitEvent:b,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=e,w=(0,t.computed)(()=>({[k]:!0,disabled:d.value,readonly:u.value})),S=`${k}__content`,m=xe(i,"modelValue",null,b),f=y=>{m.value=y,b("update:modelValue",y,{}),b("change",y,{})};return C({setDisabled:y=>{s.value=y},setReadonly:y=>{p.value=y}}),()=>{if(h.value==="on"&&(u.value||d.value))return l({modelValue:m.value},o.slots);let y=ve(i,Sa);const B={class:w.value,...y,disabled:d.value||u.value,value:m.value,"onUpdate:modelValue":f},g=[],v=(0,t.h)(r,B);g.push(v);const E={default:()=>g};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const A={...ve(i,Se,be),ref:c};return i.prop&&(A.prop=`${i.prop}_item`),A["content-class"]=S,a(A,E)}}}}var{componentName:X0,create:Q0,scope:G0}=te("switch-item"),_0=Q0(Y0(X0,G0,Ie,Pe,sl)),ka=_0,Z0={...be,...Se,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function J0(e,n,a,l){return{props:Z0,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:o,disabled:c,readonly:s}=Ve(r),{emitEvent:d,exposeApi:p}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return c.value},get props(){return r},context:i,get templateRefProxy(){return o.value}},r.prop??i.attrs.name),{toLocaleRefs:u}=(0,ye.useFoxI18n)(n),h=u(r,["placeholder"]),b=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,$=>{b.value=$,d("change",$)});const C=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!c.value&&he(b.value),"is-disabled":c.value,"is-readonly":s.value})),w=Te((0,t.computed)(()=>r.textAlign),"textAlign"),S=(0,t.computed)(()=>{const $={};return w.value&&($["text-align"]=w.value),$}),m=(0,t.computed)(()=>!he(r.modelValue)||i.slots.main?!0:!!he(r.desc)),f=(0,t.computed)(()=>he(b.value)?h.placeholder.value:b.value),y=(0,t.computed)(()=>!he(r.desc)||i.slots.sub),B=(0,t.computed)(()=>({[`${e}__sub`]:!0})),g=(0,t.computed)(()=>{const $={};return w.value&&($["text-align"]=w.value),$}),v=()=>{d("focus",b.value)},E=()=>{d("blur",b.value)},A=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":c.value,"is-readonly":s.value})),V=(0,t.computed)(()=>we(r.unit)>0),N=$=>{c.value==!0||s.value==!0||d("click")},P=(0,t.computed)(()=>r.icon??a),G=(0,t.computed)(()=>({action:!0}));return p(),()=>{const $=[];if(typeof i.slots.content=="function"){const ee=i.slots.content();$.push(ee)}else{const ee=[];if(m.value){const X={tabIndex:0,class:k.value,style:S.value,onFocus:v,onBlur:E};let Z=null;i.slots.main?Z=(0,t.h)("view",X,[i.slots.main(f.value)]):Z=(0,t.h)("view",X,[f.value]),ee.push(Z)}if(y.value){const X={tabIndex:0,class:B.value,style:g.value,onFocus:v,onBlur:E};let Z=null;i.slots.sub?Z=(0,t.h)("view",X,[i.slots.sub(r.desc)]):Z=(0,t.h)("view",X,[r.desc]),ee.push(Z)}const oe=(0,t.h)("view",{class:C.value,onClick:N},ee);$.push(oe)}const R=[],M=ue(r.iconSize);let U=i.slots.icon;if(!U){const ee={width:M,height:M,class:["action-icon"]};U=(0,t.h)(P.value,ee)}const z=(0,t.h)("view",{class:G.value,onClick:N},{default:()=>[U]});if(R.push(z),V.value){const ee=(0,t.h)("view",{},[r.unit]);R.push(ee)}const Y=(0,t.h)("view",{class:A.value},{default:()=>R});$.push(Y);const x={default:()=>$};x.label=i.slots.default,x.prepend=i.slots.prepend,x.append=i.slots.append,x.fixedPreTip=i.slots.fixedPreTip,x.fixedTip=i.slots.fixedTip;const _={...ve(r,Se,be),ref:o};return r.prop&&(_.prop=`${r.prop}_item`),l(_,x)}}}}var{componentName:eh,create:th,scope:nh}=te("link-item"),lh=th(J0(eh,nh,re.ArrowRight,Ie)),wa=lh,Ca={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:ah,componentName:oh}=te("rate"),rh=ah({props:{...Ca},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[oh]:!0})),i=b=>{n("update:modelValue",b),n("change",b)},o=(b,C)=>{if(e.disabled||e.readonly)return;let k=0;C===1&&e.modelValue===C||(k=C,e.allowHalf&&b==2&&(k-=.5)),i(k)},c=(b,C,k)=>{let w=0;for(let S=C.value.length-1;S>=0;S--){const m=C.value[S];if(b>m.offsetLeft){k?w=S+(b>m.offsetLeft+m.clientWidth/2?1:.5):w=S+1;break}}return w},s=st(),d={onTouchStart(b){!e.touchable||e.readonly||s.start(b)},onTouchMove(b){e.touchable&&(s.move(b),s.isHorizontal()&&l.value&&(b.preventDefault(),i(c(s.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),u=(0,t.computed)(()=>e.customIcon??re.StarFillN);return{classes:r,...d,onClick:o,toPxString:ge,renderIcon:(b,C)=>(0,t.h)(b,C),rateRefs:l,refRandomId:p,slots:a,customIcon:u}}}),ih=["id"],sh={class:"fox-rate-item__icon--full"},ch={key:0,class:"fox-rate-item__icon--half"},uh={key:1,class:"fox-rate-item__icon--half"};function dh(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),o=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:o,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+o,style:(0,t.normalizeStyle)(o<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",sh,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:o<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||o>e.modelValue}]),onClick:c=>e.onClick(1,o)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>o?((0,t.openBlock)(),(0,t.createElementBlock)("view",ch,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:o<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:c=>e.onClick(2,o)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<o?((0,t.openBlock)(),(0,t.createElementBlock)("view",uh,[((0,t.openBlock)(),(0,t.createBlock)((0,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:c=>e.onClick(2,o)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,ih))),128))],34)}var cl=ie(rh,[["render",dh]]),fh={...be,...Se,...Ca};function mh(e,n,a,l,r){return{props:fh,emits:["change","update:modelValue","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:p,readonly:u,browse:h}=Ve(i),{emitEvent:b,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=e,w=xe(i,"modelValue",null,b),S=m=>{w.value=m,b("update:modelValue",m,{}),b("change",m,{})};return C({setDisabled:m=>{s.value=m},setReadonly:m=>{p.value=m}}),()=>{if(h.value==="on"&&(u.value||d.value))return l({modelValue:w.value},o.slots);const m={...ve(i,Ca),disabled:d.value,readonly:u.value,value:w.value,"onUpdate:modelValue":S},f=[],y=(0,t.h)(r,m);f.push(y);const B={default:()=>f};if(o.slots.default){const v=o.slots.default();B.label=()=>v}const g=ve(i,Se,be);return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,g.ref=c,a(g,B)}}}}var{componentName:hh,create:ph,scope:gh}=te("rate-item"),yh=ph(mh(hh,gh,Ie,Pe,cl)),Na=yh,bh=/scroll|auto|overlay/i,Ei=window;function vh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Aa(e,n=Ei){let a=e;for(;a&&a!==n&&vh(a);){const{overflowY:l}=window.getComputedStyle(a);if(bh.test(l))return a;a=a.parentNode}return n}function $i(e,n=Ei){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=Aa(e.value,n))}),a}var Di=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},containerClass:{type:[String]}};function kh(e,n,a){return{props:Sh,emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const o=e,{toLocaleRefs:c}=(0,ye.useFoxI18n)(n),s=c(l,["pullText","loadText","noMoreText"]),d=(0,t.ref)(),p=$i(d),u=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),h=(0,t.computed)(()=>({[o]:!0})),b=(0,t.computed)(()=>{const y=[`${o}__container`];return l.containerClass&&y.push(l.containerClass),y}),C=y=>y?y.offsetTop+C(y.offsetParent):0,k=()=>{let y=0,B=0,g="down";if(p.value==window){const v=Di();d.value&&(y=C(d.value)+d.value.offsetHeight-v-window.innerHeight),B=v}else{const{scrollHeight:v,clientHeight:E,scrollTop:A}=p.value;y=v-E-A,B=A}return u.beforeScrollTop>B?g="up":g="down",u.beforeScrollTop=B,r("scroll-change",B),y<=l.threshold&&g=="down"},w=()=>{Ge(()=>{if(!k()||!l.hasMore||u.isInfiniting)return!1;u.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},S=()=>{p.value&&p.value.addEventListener("scroll",w,l.useCapture)},m=()=>{p.value&&p.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{S(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{m()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,S())}),(0,t.onDeactivated)(()=>{f.value=!0,m()}),(0,t.watch)(()=>l.modelValue,y=>{y||(u.isInfiniting=!1)}),()=>{const y=(0,t.h)("view",{class:b.value},[i?.default?.()]),B=[];if(u.isInfiniting){let v=i?.loading?.()??null;if(!v){let A=i?.loadingIcon?.()??null;A||(A=(0,t.h)(a,{class:[`${o}__bottom-box__img`]}));const V=(0,t.h)("view",{class:`${o}__bottom-box__text`},[s.loadText.value]);v=[A,V]}const E=(0,t.h)("view",{class:`${o}__bottom-box`},v);B.push(E)}else if(!l.hasMore){let v=i?.finished?.()??null;v||(v=(0,t.h)("view",{class:`${o}__bottom-tips`},[s.noMoreText.value]),B.push(v))}const g=(0,t.h)("view",{class:`${o}__bottom`},B);return(0,t.h)("view",{class:h.value,ref:d},[y,g])}}}}var{componentName:wh,create:Ch,scope:Nh}=te("infinite-loading"),Ah=Ch(kh(wh,Nh,re.Loading)),ul=Ah,{componentName:Bh,create:Th}=te("button"),Vh=Th({components:{Loading:re.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:l,size:r,shape:i,disabled:o,loading:c,color:s,plain:d,block:p}=(0,t.toRefs)(e);return{handleClick:h=>{!c.value&&!o.value&&n("click",h)},classes:(0,t.computed)(()=>{const h=Bh;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--${r.value}`]:r.value,[`${h}--${i.value}`]:i.value,[`${h}--plain`]:d.value,[`${h}--block`]:p.value,[`${h}--disabled`]:o.value,[`${h}--loading`]:c.value}}),getStyle:(0,t.computed)(()=>{const h={};return s?.value&&(d.value?(h.color=s.value,h.background="#fff",s.value?.includes("gradient")||(h.borderColor=s.value)):(h.color="#fff",h.background=s.value)),h})}}}),Eh={class:"fox-button__wrap"};function $h(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.createElementVNode)("view",Eh,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var Nt=ie(Vh,[["render",$h]]),Dh={prop:{type:[String]},modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Ih=(e,n,a)=>({props:Dh,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=Fe({context:r},l.prop),{toLocaleRefs:o}=(0,ye.useFoxI18n)(n),c=o(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),p=(0,t.computed)(()=>({background:l.background})),u=(0,t.computed)(()=>({background:l.inputBackground})),h=V=>{let N=V.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),i("update:modelValue",N,V),i("change",N,V)},b=(0,t.ref)({}),C=V=>{let N=V.target.value;d.active=!0,b.value=l.focusStyle,i("focus",N,V)},k=V=>{setTimeout(()=>{d.active=!1},0);let N=V.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),b.value={},i("blur",N,V)},w=V=>{i("update:modelValue","",V),i("change","",V),i("clear","")},S=(0,t.computed)(()=>String(l.modelValue).length>0),m=(0,t.computed)(()=>{const V={};return S.value||(V.display="none"),V}),f=V=>{l.autoblur&&E.value?.blur(),(typeof V.cancelable!="boolean"||V.cancelable)&&V.preventDefault(),i("search",l.modelValue)},y=V=>{i("keyup-input",V)},B=V=>{i("click-input",V)},g=V=>{i("click-left-icon",l.modelValue,V)},v=(0,t.computed)(()=>({textAlign:l.inputAlign})),E=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&E.value.focus()});const A=()=>{const V=[];if(s.leftin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:g},[s.leftin()]);V.push($)}const N=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:E,style:v.value,type:l.inputType,maxlengt:l.maxLength,placeholder:c.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:h,onFocus:C,onBlur:k,onkeyup:y}),P=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:f},[N]);V.push(P);const G=[];if(l.clearable){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:w},[(0,t.h)(s?.clear?.()??l.clearIcon??a)]);G.push($)}if(s.rightin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);G.push($)}if(G.length>0){const $=(0,t.h)("view",{class:`${e}__input-inner-right`},G);V.push($)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...u.value,...b.value}},V)};return()=>{const V=[];if(l.label){const P=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);V.push(P)}if(s.leftout){const P=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);V.push(P)}const N=A();if(V.push(N),s.rightout){const P=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);V.push(P)}return(0,t.h)("view",{class:`${e}`,style:p.value},V)}}}),{componentName:qh,create:xh,scope:Ph}=te("searchbar"),Mh=xh(Ih(qh,Ph,re.CircleClose)),dl=Mh,fl={prop:{type:[String]},poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Rh(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(ml(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(qi(e,i)===a)return r}return-1}function ml(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ii(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function qi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function zh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Fh(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var Lh=class{scope;constructor(e){this.scope=e}async load(e,n,a,l,r,i,o){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof o=="function"&&(s=s.filter(o));let d=(a-1)*l,p=d+l;p>s.length&&(p=s.length);const u=s.slice(d,p);return{totalSize:s.length,page:u}}if(typeof n=="function")return await Reflect.apply(n,null,[a,l,r,i]);const c=lt(e,this.scope);return c===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):($e(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(c,null,[n,a,l,r]))}};function Oh(){return new Lh(it())}function Kh(e,n,a,l,r,i,o,c,s,d,p){return{props:fl,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,h){const{emitEvent:b,exposeApi:C}=Fe({context:h},u.prop),{slots:k}=h,{toLocaleRefs:w}=(0,ye.useFoxI18n)(n),S=w(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),m=Oh(),f=(0,t.ref)([]),y=(0,t.ref)(0),B=(0,t.ref)(""),g=(0,t.shallowRef)(null),v=(0,t.computed)(()=>{const K={};return u.params&&Object.assign(K,u.params),he(B.value)||(K[`${u.searchKey}`]=B.value),g.value&&Object.assign(K,g.value),K});let E=!0;const A=async(K,j,I)=>{try{if(N.value===!1)return;let D=null;he(B.value)||(D=J=>{const ae=ml(u,J);if(typeof ae=="string"&&ae.includes(B.value))return!0;const se=Ii(u,J);return!!(typeof se=="string"&&se.includes(B.value))});const F=await m.load("actionsheet",K,j,I,v.value,E,D??void 0);E=!1,Array.isArray(F)?(f.value=F,y.value=1,N.value=!1):!Array.isArray(F.page)||F.page.length===0?(console.warn("[FoxUI] can not load more data"),N.value=!1):(Reflect.apply([].push,f.value,F.page),y.value=Math.ceil(f.value.length/u.pageSize),(F.totalSize&&f.value.length>=F.totalSize||I<F.page.length)&&(N.value=!1)),V.value=!1}catch(D){console.error("[FoxUI] ActionSheet load more data fail",D),N.value=!0,y.value=0,f.value=[]}setTimeout(()=>{b("loaded-data")},250)},V=(0,t.ref)(!1),N=(0,t.ref)(!0),P=async()=>{if(!u.source){V.value=!1;return}await A(u.source,y.value+1,u.pageSize)};let G=null;(0,t.watch)(B,(K,j)=>{G&&(clearTimeout(G),G=null),he(K)&&!he(j)&&(G=setTimeout(()=>{R()},u.searchDelayTriggerClear))});const $=()=>{N.value=!0,y.value=0,f.value=[],u.source&&P()},R=()=>{$()};(0,t.watch)([()=>u.source,()=>u.pageSize,()=>u.params],async([K,j,I])=>{u.source&&$()},{immediate:!0});const M=(0,t.computed)(()=>!u.multiple&&u.isAutoBackFill),U=(0,t.ref)([]);let z=null;const Y=(0,t.ref)(u.visible);(0,t.watch)(()=>u.visible,K=>{Y.value!==K&&(Y.value=K),K?z=[...U.value]:z=null});const x=(K,j)=>{const I=[];return Array.isArray(K)||(K=[K]),K.forEach(D=>{let F=Rh(u,j,D,u.valueType);F!==-1&&I.push(F)}),De(I,U.value)?!1:(U.value=I,!0)};(0,t.watch)([()=>u.modelValue,()=>f.value],([K,j],[I,D])=>{x(K,j)&&ee(_())},{deep:!0});const _=()=>{const K=[],j=[],I=[];for(let ae of U.value){const se=f.value[ae];j.push(se);const fe=ml(u,se);if(I.push(fe),u.valueType==="item")K.push(se);else if(u.valueType==="text")K.push(fe);else{const me=qi(u,se);K.push(me)}}let D=null,F=null,J=null;return u.multiple?(D=K,F=I,J=j):(D=K[0]??null,F=I[0]??null,J=j[0]??null),{value:D,text:F,item:J}},ee=K=>{b("update:modelValue",K.value),b("update:text",K.text),b("change",K.value,K.item,K.text)},oe=()=>{z&&(U.value=z)},X=K=>{const j=U.value.indexOf(K);u.multiple?j===-1?U.value.push(K):U.value.splice(j,1):j===-1?U.value=[K]:U.value=[],(M.value||!u.poppable&&!u.showFooter)&&ne()},Z=K=>{Y.value=K,b("update:visible",K)},L=()=>{const K=()=>{oe(),Z(!1)},j=u.beforeMethod??u.beforeClose;if(typeof j=="function"){const I=j("close");ft(I)?I.then(D=>{D!==!1&&K()}).catch(()=>{K()}):I!==!1&&K()}else K()},ne=()=>{const K=_(),j=()=>{ee(K),Z(!1)},I=u.beforeMethod??u.beforeClose;if(typeof I=="function"){const D=I("confirm",K.value,K.item,K.text);ft(D)?D.then(F=>{F!==!1&&j()}).catch(()=>{j()}):D!==!1&&j()}else j()},H=()=>{let K=S.title.value??"";return k.title&&(K=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[K]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:L})])},q=()=>{let K=null;return k.search?K=k.search():K=(0,t.h)(i,{onSearch:$,placeholder:S.seachPlaceholder.value,disabled:u.disabled,modelValue:B.value,"onUpdate:modelValue":j=>{B.value=j}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[K])},O=(K,j,I,D,F)=>{if(k.optionLabel)return k.optionLabel({text:K,checked:j,disabled:I,subText:D,item:F});const J=[],ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[K]);if(J.push(ae),D){const se=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[D]);J.push(se)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},J)},W=(K,j,I,D)=>k.optionIcon?k.optionIcon({checked:K,disabled:j,iconSize:I,item:D}):K?k.checkedIcon?k.checkedIcon({disabled:j,item:D}):(0,t.h)(u.checkedIcon??c,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:j,item:D}):(0,t.h)(u.icon??o,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}),Q=()=>{const K=[];for(let j=0;j<f.value.length;j++){const I=f.value[j],D=ml(u,I),F=Ii(u,I),J=["fox-actionsheet__list-item"],ae={};let se=zh(u,I),fe=u.iconSize?ue(u.iconSize):null;const me=Fh(u,I,j);me&&(se=se||me.disabled,me.class&&J.push(me.class),me.style&&Object.assign(ae,me.style)),se=!!(u.disabled||se);const Xe=U.value.includes(j);se&&J.push("is-disabled"),Xe&&J.push("is-checked");const Qe={class:J,style:ae,key:`${j}`,onClick:()=>{se||X(j)}};let ze=[];if(k.option)ze.push(k.option({item:I,checked:Xe,disabled:se}));else{const B2=O(D,Xe,se,F,I);ze.push(B2);const T2=W(Xe,se,fe,I);ze.push(T2),u.textPosition==="right"&&ze.reverse()}const cn=(0,t.h)("view",Qe,ze);K.push(cn)}return K},le=()=>{let K=[];if(k.buttons)K=k.buttons();else{const j=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:ne,disabled:u.disabled},{default:()=>S.confirmText.value});K.push(j)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[K])};return C({search:async(K=null,j=!0)=>{g.value=K&&(0,t.toRaw)(K),(0,t.triggerRef)(g),j&&(N.value=!0,y.value=0,f.value=[]),(0,t.nextTick)(()=>{P()})},clear:()=>{N.value=!0,y.value=0,f.value=[]},confirm:()=>{ne()},cancel:()=>{L()}}),()=>{const K=[];if(u.showHeader){const se=H();K.push(se)}if(u.showSearchbar){const se=q();K.push(se)}let j=null;if(k.content)j=k.content();else{const se=Q();j=(0,t.h)(l,{hasMore:N.value,loadText:S.loadText.value,noMoreText:S.noMoreText.value,modelValue:V.value,"onUpdate:modelValue":fe=>{V.value=fe},onLoadMore:P},{default:()=>se})}const I={};u.optionsHeight&&(I.height=u.optionsHeight);const D={"fox-actionsheet__list":!0};u.poppable||(D["fox-actionsheet__list--inner"]=!0);const F=(0,t.h)("view",{class:D,style:I},[j]);if(K.push(F),u.showFooter&&!M.value){const se=le();K.push(se)}const J=(0,t.h)("view",{class:"fox-actionsheet"},K);if(!u.poppable)return J;const ae=["fox-actionsheet__popup"];return u.popClass&&ae.push(u.popClass),(0,t.h)(a,{popClass:ae.join(" "),visible:Y.value,closeable:!1,"onUpdate:visible":Z,position:u.position,round:"round",onClickOverlay:L,closeOnClickOverlay:u.closeOnClickOverlay},{default:()=>J})}}}}var{componentName:Uh,create:Hh,scope:jh}=te("actionsheet-pane"),Wh=Hh(Kh(Uh,jh,Ce,ul,Nt,dl,re.CheckNormal,re.Checked,re.Close,re.Search2,!1)),hl=Wh,xi={type:{type:String,default:"text"},placeholder:{type:String},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:" "}},Yh={...be,...Se,...xi,...fl};function Xh(e,n,a,l,r,i,o,c){return{props:Yh,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:p,innerDisabled:u,disabled:h,innerReadonly:b,readonly:C,browse:k}=Ve(s),{emitEvent:w,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.value},get disabled(){return h.value},get props(){return s},context:d,get templateRefProxy(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,ye.useFoxI18n)(n),f=m(s,["placeholder"]),y=(0,t.ref)(!1),B=xe(s,"modelValue",null,w),g=(0,t.ref)(""),v=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),E="fox-input-item",A=(0,t.computed)(()=>({[E]:!0,"is-disabled":h.value,"is-readonly":C.value})),V=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const W={};return V.value&&(W["text-align"]=V.value),W}),P=(0,t.ref)(!1),G=()=>{P.value=!0},$=W=>{P.value=W},R=W=>{B.value=W,w("update:modelValue",W)},M=(W,Q)=>{w("change",W,Q)},U=W=>{let Q=W.target.value;y.value=!0,w("focus",Q,W)},z=W=>{setTimeout(()=>{y.value=!1},0);let Q=W.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),w("blur",Q,W)},Y=W=>{g.value=W,w("update:text",W)},x=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":h.value,"is-readonly":C.value})),_=(0,t.computed)(()=>we(s.unit)>0),ee=(0,t.computed)(()=>we(s.unit)>0&&!y.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),X=W=>{B.value="",w("update:modelValue","",W),w("change","",W),w("clear","")},Z=(0,t.computed)(()=>s.clearable&&!h.value&&!C.value),L=(0,t.computed)(()=>we(B.value)>0&&y.value),ne=W=>{L.value?X(W):G()},H=(0,t.computed)(()=>L.value&&Z.value?r:i),q=(0,t.computed)(()=>({action:!0})),O=(0,t.ref)(null);return S({search:W=>{O.value&&O.value.search(W)},clear:()=>{O.value&&O.value.clear},confirm:W=>{O.value&&O.value.confirm()},cancel:()=>{O.value&&O.value.cancel()},setDisabled:W=>{u.value=W},setReadonly:W=>{b.value=W}}),()=>{if(k.value==="on"&&(C.value||h.value))return l({modelValue:v.value,unit:s.unit},d.slots);const W={class:A.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:v.value,onClick:G,onFocus:U,onBlur:z};c&&(W.disabled=!0);const Q=[],le=(0,t.h)("input",W);Q.push(le);const K=[],j=(0,t.h)(H.value,{class:["action-icon"]}),I=(0,t.h)("view",{class:q.value,onClick:ne},{default:()=>[j]});if(K.push(I),_.value){const fe=(0,t.h)("view",{class:oe.value},[s.unit]);K.push(fe)}const D=(0,t.h)("view",{class:x.value},{default:()=>K});Q.push(D);const F={default:()=>Q};F.label=d.slots.default,F.prepend=d.slots.prepend,F.append=d.slots.append,F.fixedPreTip=d.slots.fixedPreTip,F.fixedTip=d.slots.fixedTip;const J=ve(s,fl);J.ref=O,J.class=s.actionSheetClass,J.disabled=h.value||C.value,J.visible=P.value,J["onUpdate:visible"]=$,J.modelValue=B.value,J["onUpdate:modelValue"]=R,J.text=g.value,J["onUpdate:text"]=Y,J.onChange=M,J.poppable=!0,J["text-position"]=s.textPosition;const ae=(0,t.h)(o,J,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});F.hide=()=>[ae];const se={...We(s,xi,fl),ref:p};return s.prop&&(se.prop=`${s.prop}_item`),a(se,F)}}}}var{componentName:Qh,create:Gh,scope:_h}=te("actionsheet-item"),Zh=Gh(Xh(Qh,_h,Ie,Pe,re.CircleClose,re.ArrowRight,hl)),Ba=Zh,Ta={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:()=>null},readonly:{type:[Boolean],default:()=>null}},{componentName:Jh,create:ep}=te("input-number"),tp=ep({components:{Minus:re.Minus,Plus:re.Plus},props:{...Ta},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const b=Jh;return{[b]:!0,[`${b}--disabled`]:e.disabled}}),l=b=>Number(b).toFixed(Number(e.decimalPlaces)),r=b=>{const C=b.target;n("update:modelValue",C.valueAsNumber,b)},i=(b,C)=>{let k=l(b);n("update:modelValue",k,C),n("change",k,C)},o=(b=Number(e.modelValue))=>b<Number(e.max)&&!e.disabled,c=(b=Number(e.modelValue))=>b>Number(e.min)&&!e.disabled,s=b=>{n("reduce",b),c()?i(Number(e.modelValue)-Number(e.step),b):n("overlimit",b,"reduce")},d=b=>{n("add",b),o()?i(Number(e.modelValue)+Number(e.step),b):n("overlimit",b,"add")},p=b=>{e.disabled||e.readonly||n("focus",b)},u=b=>{if(e.disabled||e.readonly)return;let C=b.target.valueAsNumber;C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),i(C,b),n("blur",b)},h=b=>{let C=Number(b);return C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),C};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const b=h(e.modelValue);b!==Number(e.modelValue)&&i(b,{})}),{classes:a,change:r,blur:u,focus:p,add:d,addAllow:o,reduce:s,reduceAllow:c,toPxString:ge}}}),np=["min","max","disabled","readonly","value"];function lp(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Minus"),c=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(o,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,np),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(c,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var pl=ie(tp,[["render",lp]]),ap={...be,...Se,...Ta};function op(e,n,a,l,r){return{props:ap,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:p,readonly:u,browse:h}=Ve(i),{emitEvent:b,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!u.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=(0,t.computed)(()=>{const y=[`${e}`];return i.textAlign==="left"?y.push("is-left"):i.textAlign==="center"?y.push("is-center"):i.textAlign==="right"&&y.push("is-right"),y.join(" ")}),w=xe(i,"modelValue",null,b),S=y=>{w.value=y,b("update:modelValue",y,{}),b("change",y,{})},m=y=>{b("add",y)},f=y=>{b("reduce",y)};return C({setDisabled:y=>{s.value=y},setReadonly:y=>{p.value=y}}),()=>{if(h.value==="on"&&(u.value||d.value))return l({modelValue:w.value},o.slots);const y={"left-icon":o.slots["left-icon"],"right-icon":o.slots["right-icon"]},B=ve(i,Ta),g=(0,t.h)(r,{...o.attrs,...B,disabled:d.value,readonly:u.value,value:w.value,"onUpdate:modelValue":S,onAdd:m,onReduce:f},y),v=[];v.push(g);const E={default:()=>v};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const A={...ve(i,Se,be),ref:c};return i.prop&&(A.prop=`${i.prop}_item`),A["content-class"]=k.value,a(A,E)}}}}var{componentName:rp,create:ip,scope:sp}=te("input-number-item"),cp=ip(op(rp,sp,Ie,Pe,pl)),Va=cp,up={...ia,...sa,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function dp(e,n,a,l){return{props:up,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:o,exposeApi:c}=Fe({context:i},r.prop),{slots:s}=i,d=e,p=(0,t.computed)(()=>{const S=[`${d}`];return r.direction==="vertical"?S.push("vertical-tabbar"):S.push("horizontal-tabbar"),S}),u=(0,t.computed)(()=>{const S={};if(r.width){const m=ge(r.width);m&&(S.width=m)}if(r.height){const m=ge(r.height);m&&(S.height=m)}return S}),h=(0,t.computed)(()=>[`${d}__bar`]),b=(0,t.computed)(()=>[`${d}__container`]),C=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,S=>{C.value!==S&&(C.value=S)});const k=S=>{o("change",S)},w=S=>{C.value!==S&&(C.value=S,o("update:modelValue",S))};return c({}),()=>{const{getChildren:S}=Ot(s.default),m=S(),f=[];if(Array.isArray(r.data))f.push(...r.data);else for(let V=0;V<m.length;V++){const N=m[V].props??{},P={text:N.label??"",value:N["pane-key"]??N.paneKey??""};f.push(P)}const y={};for(let V in s)V!=="default"&&(y[V]=s[V]);const B=ve(r,ia);Object.assign(B,{prop:null,data:f,class:h.value,modelValue:C.value,direction:r.direction,onChange:k,"onUpdate:modelValue":w});const g=(0,t.h)(a,B,y),v={default:()=>m},E=ve(r,sa);Object.assign(E,{prop:null,class:b.value,modelValue:C.value,onChange:k,"onUpdate:modelValue":w});const A=(0,t.h)(l,E,v);return(0,t.h)("view",{class:p.value,style:u.value},[g,A])}}}}var{create:fp,componentName:mp,scope:hp}=te("tabs-frame"),pp=fp(dp(mp,hp,Yt,Xt)),Ea=pp,gp={prop:{type:[String]},direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function yp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Pi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Mi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function $a(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ri(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function zi(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Da(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var vp=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[a]);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(l,null,[n,a]))}};function Sp(){return new vp(it())}function kp(e,n,a,l){return{props:gp,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:o,exposeApi:c}=Fe({context:i},r.prop),s=e,d=Sp(),p=(0,t.ref)([]),u=(0,t.computed)(()=>p.value.filter(X=>bp(r,X)!==!1)),h=(0,t.ref)(-1),b=()=>{const X=r.modelValue,Z=u.value.findIndex(L=>Pi(r,L)===X);h.value!==Z&&(h.value=Z,r.scroll&&ee(Z,!1))};(0,t.watch)([()=>r.modelValue,u],()=>{b()});const C=X=>h.value===X,k=X=>{if(X<0&&X>=u.value.length)return!1;const Z=u.value[X],L=(Da(r,Z,X)??{}).status??$a(r,Z);return C(X)||L},w=(0,t.computed)(()=>{const X={[s]:!0};return r.mode?X[`is-${r.mode}`]=!0:r.direction&&(X[`is-${r.direction}`]=!0),r.scroll&&(X["is-scroll"]=!0),X}),S=(0,t.computed)(()=>({})),m=(X,Z,L,ne,H)=>{const q={[`${s}__step`]:!0};return H&&(q[`${H}`]=!0),q[`${f.value}`]=!0,ne&&(q["is-doit"]=!0),X===h.value?q["is-active"]=!0:Z==="done"?q["is-done"]=!0:Z==="error"?q["is-error"]=!0:Z==="half"?q["is-half"]=!0:L?q["is-disabled"]=!0:q["is-normal"]=!0,q},f=(0,t.computed)(()=>{let X=r.align;if(!X){if(r.mode==="simple")return"start";r.direction==="vertical"?X="start":X="center"}return X}),y=(X,Z={})=>{const L={...Z};if(f.value==="start"&&X===u.value.length-1)L.flex="0 0 auto";else if(r.step){const ne=typeof r.step=="number"||yn(r.step)?ge(r.step):r.step;r.direction==="vertical"?L.height=ne:L.width=ne}else L.flex="1 1 100%";return L},B=(X,Z)=>{let L={};if(Z<u.value.length-1){const ne=Z+1;k(Z)&&k(ne)?r.direction==="vertical"?L.height="100%":L.width="100%":L.opacity="0"}return L},g=X=>u.value.length-1===X,v=(X,Z)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&Z>h.value||h.value===Z)return;const L=h.value,ne=Z;h.value=Z,r.scroll&&ee(Z,!1);const H=Pi(r,X);o("update:modelValue",H),o("change",H,{fromIndex:L,currentIndex:ne,item:X,items:u.value,clickNavigatePolicy:r.clickNavigatePolicy})},E=(0,t.ref)(!0),A=async(X,Z)=>{try{const L=await d.load("stesbar",X,Z);Array.isArray(L)&&(p.value=L),E.value=!1}catch(L){console.error("[FoxUI] Load StepsBar Data Fail",L),p.value=[]}setTimeout(()=>{o("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([X,Z])=>{X&&A(X,Z)},{immediate:!0}),c({});const V=(X,Z,L,ne,H,q)=>{const O=[];let W=null;if(!q)if(i.slots.icon)W=i.slots.icon({item:X,index:Z,status:ne});else if(ne==="done"){const Q={};r.iconSize&&(Q.width=r.iconSize,Q.height=r.iconSize),W=(0,t.h)(r.icon??a,Q)}else W=(0,t.h)("span",{},[L??`${Z+1}`]);return W&&O.push(W),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{o("click",{item:X,index:Z}),!H&&v(X,Z)}},O)},N=(X,Z,L)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:B(X,Z)})]),P=()=>{let X=null;if(i.slots.markIcon)X=i.slots.markIcon();else{const Z={};r.iconSize&&(Z.width=r.markIconSize,Z.height=r.markIconSize),X=(0,t.h)(r.markIcon??l,Z)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[X])},G=(X,Z,L,ne,H,q)=>{const O=[];if(!g(Z)){const Q=N(X,Z,ne);O.push(Q)}const W=V(X,Z,L,ne,H,q);return O.push(W),(0,t.h)("view",{class:"fox-steps-bar__head"},O)},$=(X,Z,L,ne)=>{let H=null;return i.slots.main?H=i.slots.main({item:X,index:Z,status:L}):H=yp(r,X),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{o("click",{item:X,index:Z}),!ne&&v(X,Z)}},[H])},R=(X,Z,L)=>{let ne=null;return i.slots.sub?(ne=i.slots.sub({item:X,index:Z,status:L}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[ne])):null},M=(X,Z)=>{const L=Da(r,X,Z)??{},ne=L.status??$a(r,X);let H=Mi(r,X);L.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);let q=Ri(r,X);L.doit===!0&&(q=!0);const O=L.label??zi(r,X),W=[],Q=V(X,Z,O,ne,H,q);Q&&W.push(Q);const le=$(X,Z,ne,H);if(le&&W.push(le),!g(Z)){const J=N(X,Z,ne);J&&W.push(J)}const K=[],j=(0,t.h)("view",{class:"fox-steps-bar__head"},W);K.push(j);const I=R(X,Z,ne);I&&K.push(I);const D=L.class,F=L.style??{};return(0,t.h)("view",{ref:_(Z),class:m(Z,ne,H,q,D),style:y(Z,F)},K)},U=(X,Z)=>{const L=Da(r,X,Z)??{},ne=L.status??$a(r,X);let H=Mi(r,X);L.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);let q=Ri(r,X);L.doit===!0&&(q=!0);const O=L.label??zi(r,X),W=[],Q=r.layout;for(let j of Q)if(j==="head"){const I=G(X,Z,O,ne,H,q);W.push(I)}else if(j==="main"){const I=$(X,Z,ne,H);W.push(I)}else if(j==="sub"){const I=R(X,Z,ne);W.push(I)}else if(j==="mark"){const I=P();W.push(I)}const le=L.class,K=L.style??{};return(0,t.h)("view",{ref:_(Z),class:m(Z,ne,H,q,le),style:y(Z,K)},W)},z=(0,t.ref)(),Y=(0,t.ref)([]),x=(X,Z)=>{Y.value[Z]=X},_=X=>Z=>{x(Z,X)},ee=(X,Z)=>{const L=z.value,ne=Y.value;if(!L||!ne||!ne[X])return;const H=ne[X];let q=0;r.direction==="vertical"?q=H.offsetTop-(L.offsetHeight-H.offsetHeight)/2:q=H.offsetLeft-(L.offsetWidth-H.offsetWidth)/2,oe(L,q,Z?0:.3,r.direction)},oe=(X,Z,L,ne)=>{let H=0;const q=ne==="horizontal"?X.scrollLeft:X.scrollTop,O=L===0?1:Math.round(L*1e3/16);function W(){ne==="horizontal"?X.scrollLeft+=(Z-q)/O:X.scrollTop+=(Z-q)/O,++H<O&&Ze(W)}W()};return()=>{let X=[];if(r.mode==="simple")for(let L=0;L<u.value.length;L++){const ne=u.value[L],H=M(ne,L);X.push(H)}else for(let L=0;L<u.value.length;L++){const ne=u.value[L],H=U(ne,L);X.push(H)}const Z={ref:z,class:w.value,style:S.value};return X.length===0&&typeof i.slots.default=="function"&&(X=i.slots.default()),(0,t.h)("view",Z,X)}}}}var{componentName:wp,create:Cp,scope:Np}=te("steps-bar"),Ap=Cp(kp(wp,Np,re.Checklist,re.ArrowRight)),Ia=Ap;function Bp(e){e.stopPropagation()}var Tp=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Wn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Yn(),a=(l,r,i,o)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Bp(l),a(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{a(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Vp(e,n){return new Tp(e,n)}var Ep={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},$p=(e,n,a,l=!1)=>({props:{...Ep},emits:["click"],setup(r,{slots:i,emit:o}){let c=-1,s=-1;const d=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),p=(0,t.computed)(()=>{const B=[`${e}`];return r.customClass&&B.push(r.customClass),B}),u=B=>typeof B=="string"&&!yn(B)?B:`${B}px`,h=(0,t.computed)(()=>{const B={};return he(d.top)||(B.top=u(d.top)),he(d.right)||(B.right=u(d.right)),he(d.bottom)||(B.bottom=u(d.bottom)),he(d.left)||(B.left=u(d.left)),he(r.width)||(B.width=u(r.width)),he(r.height)||(B.height=u(r.height)),he(r.color)||(B.color=r.color),he(r.background)||(B.background=r.background),he(r.borderRadius)||(B["border-radius"]=r.borderRadius),he(r.zIndex)||(B["z-index"]=r.zIndex),B}),b=(0,t.computed)(()=>({[`${e}__icon`]:!0})),C=()=>{o("click")},k=(0,t.ref)(null),w=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},S={x:0,y:0},y=Vp(B=>{if(!k.value)return;const g=k.value;w(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,S.x=d.left,S.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!k.value)return;const g=k.value;w();let v=S.x+B.x;v<0&&(v=0),v>c-d.width&&(v=c-d.width);let E=S.y+B.y;E<0&&(E=0),E>s-d.height&&(E=s-d.height),d.left=v,d.top=E,g.style.left=`${v}px`,g.style.top=`${E}px`});return(0,t.onMounted)(()=>{if(r.draggable&&k.value){const B=[k.value];y.open(B)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&k.value&&y.close()}),()=>{let B=[];const g=typeof i.default=="function"?i.default():[];if(g&&g.length>0)B=g;else{const v=(0,t.h)(a,{class:b.value});B.push(v)}return(0,t.h)("view",{ref:v=>{k.value=v},class:p.value,style:h.value,onClick:C},B)}}}),{componentName:Dp,create:Ip,scope:qp}=te("floating-button"),xp=Ip($p(Dp,qp,re.Uploader,!1)),qa=xp,Pp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Mp(e,n,a){return{props:{...Pp},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ye.useFoxI18n)(n),c=o(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const C={[`${e}`]:!0};return l.disabled?C[`${e}--disabled`]=!0:C[`${e}--${l.type}`]=!0,C}),d=xe(l,"modelValue"),p=(0,t.computed)(()=>d.value?c.expandText.value??"":c.collapseText.value??""),u=(0,t.computed)(()=>({[`${e}__text`]:!0})),h=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),b=()=>{r("update:modelValue",!d.value)};return()=>{const C=[];if(p.value){const S=(0,t.h)("span",{class:u.value},[p.value]);C.push(S)}const k={class:h.value},w=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(a);if(w){const S=(0,t.h)("view",k,[w]);C.push(S)}return l.textPosition==="right"&&C.reverse(),(0,t.h)("view",{class:s.value,onClick:b},C)}}}}var{componentName:Rp,create:zp,scope:Fp}=te("more-button"),Lp=zp(Mp(Rp,Fp,re.RectUp)),xa=Lp,Op={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Kp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Up(e,n,a){return{props:{...Op},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:o}){const{toLocaleRefs:c}=(0,ye.useFoxI18n)(n),s=c(l,["confirmText","cancelText"]),d=e,p=(0,t.ref)(l.visible),u=B=>{p.value=B,o("update:visible",B)};(0,t.watch)(()=>l.visible,B=>{p.value!==B&&(p.value=B)});const h=B=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(B)}catch(g){console.error(g)}},b=()=>{h("confirm")},C=()=>{h("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&h("close")},w=(B,g)=>Kp(B)?(g.src=B,(0,t.h)("img",g)):typeof B=="string"?(Array.isArray(g.class)?g.class.push(B):g.class&&typeof g.class=="object"?g[`${B}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${B}`:g.class=B,(0,t.h)(l.tag,g)):(0,t.h)(B,g),S=()=>{const B=[];if(l.icon){const g={class:[`${d}__header-icon`]},v=w(l.icon,g);B.push(v)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);B.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:k},v=w(l.closeIcon,g);B.push(v)}return(0,t.h)("view",{class:[`${d}__header`]},B)},m=(B,g)=>{const v=[];if(g){const E=(0,t.h)("view",{class:`${d}__group-title`},[g]);v.push(E)}if(B){const E=[];Array.isArray(B)||(B=[B]);for(let A of B){const V=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:A});E.push(V)}if(E.length>0){const A=(0,t.h)("view",{class:`${d}__group-rows`},E);v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:`${d}__group`},v)},f=()=>{const B=[];if(typeof l.message=="string")B.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const v=m(g);B.push(v)}else{const v=m(g.content,g.title);B.push(v)}else if(typeof l.message=="function"){const g=l.message();B.push(g)}else{const g=l.message;B.push(g)}return(0,t.h)("view",{class:`${d}__body`},B)},y=()=>{const B=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:C};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const v=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);B.push(v)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:b};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const v=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);B.push(v)}return B.length===0?null:(0,t.h)("view",{class:`${d}__footer`},B)};return()=>{const B=[],g=S();g&&B.push(g);const v=f();v&&B.push(v);const E=y();E&&B.push(E);const A=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},B),V=[`${d}__popup`];l.popClass&&V.push(l.popClass);const N={};return l.width&&(N.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(N.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(a,{popClass:V.join(" "),style:N,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>A})}}}}var{componentName:Hp,create:jp,scope:Wp}=te("messagebox"),Yp=jp(Up(Hp,Wp,Ce)),Xp=Yp,Qp="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",Gp="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",_p="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",Zp="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 Ln,eg={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},tg=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${Jp.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const o=document.querySelector(`#${r}`);o&&o.parentNode?.removeChild(o)};const i=(0,t.createVNode)(Xp,e);n.appendChild(l),(0,t.render)(i,l)},dt={show:(e,n,a,l)=>{const r={...eg};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),a&&typeof a=="object"?Object.assign(r,a):(typeof a=="string"&&(r.title=a),l&&typeof l=="object"?Object.assign(r,l):typeof l=="string"&&(r.type=l)));const i=r.type??"info";return r.icon||(i==="success"?r.icon=_p:i==="warning"?r.icon=Zp:i==="error"?r.icon=Qp:r.icon=Gp),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=re.Close),new Promise((o,c)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(p){console.error(p)}o({action:d})},tg(r)})},alert:(e,n,a)=>dt.show("alert",e,n,a),confirm:(e,n,a)=>dt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=dt.alert,e.config.globalProperties.$confirm=dt.confirm}},ng=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let o in n)o==="bubbles"?r=!!n[o]:o==="cancelable"?i=!!n[o]:l[o]=n[o];l.initEvent(e,r,i),(a??document).dispatchEvent(l)},lg=new Ln,ag=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),og=e=>`${e}-${lg.get()}`,rg=Symbol.for("InnerPageScopeKey"),ig=Symbol.for("PageWrapperKey"),sg="FoxLeave",cg="FoxLeaveEnd",ug={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 dg(e,n,a,l){return{props:{...at,...ug},emits:["update:visible"],setup(r,{attrs:i,slots:o,emit:c}){(0,t.provide)(rg,!0);const s={};(0,t.provide)(ig,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),p=()=>{d("close")},u=e,h=g=>{b.value=g,c("update:visible",g)},b=(0,t.ref)(!1),C=(g,v)=>ag(g)?(v.src=g,(0,t.h)("img",v)):typeof g=="string"?(Array.isArray(v.class)?v.class.push(g):v.class&&typeof v.class=="object"?v[`${g}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${g}`:v.class=g,(0,t.h)(r.tag,v)):(0,t.h)(g,v),k=()=>{if(!r.showHeader)return null;const g=[];if(o.header){const v=o.header();g.push(v)}else if(r.title){const v=(0,t.h)("view",{class:`${u}__header-title`},[r.title]);g.push(v)}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},w=()=>{if(!r.showClose)return null;const g={class:[`${u}__close-icon`],onClick:p};return C(r.closeIcon??l,g)};let S=null;const m=g=>{ng(cg,{},S)},f=og(e),y=()=>{h(!0)},B=()=>{if(!S)return;const g=S.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const v=S.querySelector(".fox-popup");v&&(v.classList.add(`fox-popup-slide-${r.position}-leave-active`),v.classList.add(`fox-popup-slide-${r.position}-leave-to`),v.addEventListener("animationend",m,{once:!0}),v.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{S=document.querySelector(`.${f}`),S?.addEventListener(sg,B,{once:!0}),y()}),()=>{const g=[],v=k();v&&g.push(v);const E=w();E&&g.push(E);const A=o.default?o.default():[];Reflect.apply([].push,g,A);const V={[`${u}`]:!0};r.mode&&(V[`${u}--${r.mode}`]=!0);const N=(0,t.h)("view",{class:V},g),P=[`${u}__popup`,f];r.popClass&&P.push(r.popClass),r.position&&P.push(`${u}__popup--${r.position}`);const G={};r.width&&(G.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(G.height=typeof r.height=="number"?`${r.height}px`:r.height);const $=(0,t.h)(a,{...ve(r,at),popClass:P.join(" "),style:G,visible:b.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},{default:()=>N});return(0,t.h)("div",{class:[`${u}__root`,f]},[$])}}}}var{componentName:fg,create:mg,scope:hg}=te("popup-wrapper"),pg=mg(dg(fg,hg,Ce,re.Close)),Pa=pg,gg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function yg(e,n,a,l){return{props:{...gg},emits:["update:visible"],setup(r,{emit:i,slots:o}){const c=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(a,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":c},o);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:bg,create:vg,scope:Sg}=te("dropdown"),kg=vg(yg(bg,Sg,Ce,!1)),Ma=kg,wg={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Cg(e,n){return{inheritAttrs:!1,props:wg,setup(a,l){const{exposeApi:r}=Sr({context:l,props:()=>a.config},a.name);return Ee(a.innerPageScope)||Cr(a.innerPageScope),Ee(a.abstractPageScope)||Nr(a.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Ng,create:Ag,scope:Bg}=te("domain-provider"),Tg=Ag(Cg(Ng,Bg)),Ra=Tg,Vg={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Eg(e,n){return{inheritAttrs:!1,props:Vg,emits:["change"],setup(a,{slots:l,emit:r}){if(_e&&window.IntersectionObserver){const i=new WeakMap;let o=new Map;const c=(h,b)=>{if(p===null){o.set(h,{visible:null,callback:b});return}i.has(h)&&p.unobserve(h),i.set(h,{visible:null,callback:b}),p.observe(h)},s=h=>{if(p===null){o.delete(h);return}i.has(h)&&(i.delete(h),p.unobserve(h))};let d=a.initialVisibleObserverSize;hc({acquire:()=>{if(a.loadPolicy==="always")return!0;const h=d>0;return d--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:s});let p=null;const u=(h,b,C)=>{p=new IntersectionObserver(k=>{if(r("change",k),a.loadPolicy!=="always")for(let w of k){let S=!1;w.intersectionRatio>0&&(S=!0);const m=i.get(w.target);if(m)try{if(a.loadPolicy==="lazy"&&!S&&m.visible!==null)return;m.visible=S,m.callback(S)}catch(f){console.error(f)}}},{root:h,rootMargin:b,threshold:C}),o.forEach((k,w)=>{i.set(w,k),p?.observe(w)}),o.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([h,b])=>{if(b||!h||p)return;let C=null;typeof h=="string"?C=document.querySelector(h):C=h,C&&u(C,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:$g,create:Dg,scope:Ig}=te("rolling-provider"),qg=Dg(Eg($g,Ig)),za=qg,{componentName:xg,create:Pg}=te("cell"),Mg=Pg({components:{Right:re.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const i=xg;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:a,baseStyle:l}}}),Rg={key:0,class:"fox-cell__icon"},zg={key:1,class:"fox-cell__title"},Fg={class:"title"},Lg={class:"fox-cell__title-desc"};function Og(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rg,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",zg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Fg,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Lg,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Fa=ie(Mg,[["render",Og]]),Kg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Ug(e,n){return{props:{...Kg},setup(a,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const o={};return a.color&&(o.color=a.color),a.size&&(o.fontSize=ge(a.size)),o});return()=>{const o={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(a.tag??"li",o,r)}}}}var{componentName:Hg,create:jg,scope:Wg}=te("icon"),Yg=jg(Ug(Hg,Wg)),La=Yg,{componentName:Xg,create:Qg}=te("cell-group"),Gg=Qg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Xg]:!0}))}}}),_g={key:1,class:"fox-cell-group__title"},Zg={key:3,class:"fox-cell-group__desc"},Jg={class:"fox-cell-group__wrap"};function ey(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",_g,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Jg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Oa=ie(Gg,[["render",ey]]),{componentName:ty,create:ny}=te("image"),ly=ny({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:re.Image,ImageError:re.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const b=ty;return{[b]:!0,[`${b}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),o=(0,t.ref)(null),c=()=>{r.value=new IntersectionObserver(b=>{b.forEach(C=>{C.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),o.value&&r.value.observe(o.value)};(0,t.onMounted)(()=>{e.lazyLoad&&c()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let b={};return e.width&&(b.width=ge(e.width)),e.height&&(b.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(b.overflow="hidden",b.borderRadius=ge(e.radius)),b}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,b=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=b=>{n("click",b)};return{...(0,t.toRefs)(a),imageClick:h,classes:l,styles:d,stylebox:s,error:u,load:p,show:i,imgRef:o}}}),ay=["src","date-src","alt"],oy={key:0,class:"fox-img-loading"},ry={key:1,class:"fox-img-error"};function iy(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Image"),c=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,ay),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",oy,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",ry,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ka=ie(ly,[["render",iy]]),{create:sy}=te("layout"),cy=sy({}),Ua=cy,{componentName:uy,create:dy}=te("col"),fy=dy({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=uy,a=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}))}}});function my(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Ha=ie(fy,[["render",my]]),{componentName:hy,create:py}=te("row"),gy=py({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=hy;(0,t.provide)("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
2
  ${a("",e.type)}
3
3
  ${a("justify",e.justify)}
4
4
  ${a("align",e.align)}
@@ -6,4 +6,4 @@
6
6
  ${n}
7
7
  `:`
8
8
  ${n}
9
- `)}}});function vy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Wa=ie(by,[["render",vy]]),{create:Sy}=ee("sticky"),ky=Sy({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),o=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),c=(0,t.computed)(()=>r.fixed?{[e.position]:`${i.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!a.value&&!d)return;const h=qe(a),u=l.value,p=qe(u),y=qe(d);r.height=h.height;const A=()=>{let w=!1;if(e.position==="top")w=d?i.value>h.top&&y.bottom>0:i.value>h.top;else{const v=document.documentElement.clientHeight;w=d?y.bottom>0&&v-i.value-p.height>y.top:v-i.value<h.bottom}return w},k=()=>{if(d)if(e.position==="top"){const w=y.bottom-i.value-p.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,v=y.bottom-(w-i.value);return v<0?v:0}return 0};r.transform=k(),r.fixed=A()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Ba(a.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Ba(a.value).removeEventListener("scroll",s)}),{rootRef:a,rootStyle:o,stickyRef:l,stickyStyle:c}}});function wy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Gt=ie(ky,[["render",wy]]),{componentName:Cy,create:Ny}=ee("divider"),Ay=Ny({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const a=Cy;let l={[a]:!0},r={};return e.direction==="horizontal"?r={...l,[`${a}-center`]:n.slots.default,[`${a}-left`]:e.contentPosition==="left",[`${a}-right`]:e.contentPosition==="right",[`${a}-dashed`]:e.dashed,[`${a}-hairline`]:e.hairline}:r={...l,[`${a}-vertical`]:e.direction==="vertical"},r})}}});function By(e,n,a,l,r,i){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Ya=ie(Ay,[["render",By]]),_t=(e,n={})=>{const a=(0,t.shallowRef)([]),l=i=>{a.value.push(i),(0,t.triggerRef)(a)},r=i=>{const o=a.value.findIndex(c=>c===i);o!=-1&&(a.value.splice(o,1),(0,t.triggerRef)(a))};return(0,t.onUnmounted)(()=>{const i=a.value.length;a.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:a,...n}),{children:a}};function Zt(e,n){const a=(0,t.inject)(e,null);if(a){const{link:l,unlink:r,children:i}=a;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:a,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:a,index:(0,t.computed)(()=>-1)}}var{componentName:Ty}=ee("grid"),Li=Symbol("grid"),Vy={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}},Ey={props:Vy,setup(e,{slots:n}){_t(Li,{props:e});const a=(0,t.computed)(()=>{const r=Ty;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=he(e.gutter)),r});return()=>(0,t.h)("view",{class:a.value,style:l.value},n.default?.())}},{create:$y}=ee("grid"),Dy=$y(Ey),Xa=Dy,{create:Iy,componentName:Oi}=ee("grid-item"),qy=Iy({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:a,index:l}=Zt(Li,{props:e}),r=(0,t.computed)(()=>({[Oi]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+a.props.columnNum}%`};return a.props.square?s.paddingTop=`${100/+a.props.columnNum}%`:a.props.gutter&&(s.paddingRight=he(a.props.gutter),l.value>=a.props.columnNum&&(s.marginTop=he(a.props.gutter))),s}),o=(0,t.computed)(()=>{const s=`${Oi}__content`;return{[`${s}`]:!0,[`${s}--border`]:a.props.border,[`${s}--surround`]:a.props.border&&a.props.gutter,[`${s}--center`]:a.props.center,[`${s}--square`]:a.props.square,[`${s}--reverse`]:a.props.reverse,[`${s}--${a.props.direction}`]:!!a.props.direction,[`${s}--clickable`]:a.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:o,handleClick:s=>{n("click",s)}}}}),Py={class:"fox-grid-item__text"};function xy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Py,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Qa=ie(qy,[["render",xy]]),{componentName:My,create:zy}=ee("navbar"),Ry=zy({components:{Left:re.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:o}=(0,t.toRefs)(e),c=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const w=My;return{[w]:!0,[`${w}--border`]:a.value,[`${w}--fixed`]:l.value,[`${w}--safe-area-inset-top`]:r.value}}),u=(0,t.computed)(()=>({zIndex:o.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,c.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function A(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:c,navBarHtml:s,classes:h,styles:u,handleLeft:p,handleCenter:y,handleCenterIcon:A,handleRight:k}}}),Fy={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Ly={key:1,class:"fox-navbar__text"},Oy={class:"fox-navbar__title"},Ky={key:0,class:"fox-navbar__text"},Uy={key:1,class:"fox-navbar__text"},Hy={class:"fox-navbar__title"},jy={key:0,class:"fox-navbar__text"};function Wy(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fy,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(o,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ly,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Oy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ky,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(o,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Hy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",jy,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Ga=ie(Ry,[["render",Wy]]),Yy=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:r}){const{toLocaleRefs:i}=(0,ye.useFoxI18n)(n),o=i(l,["activeText","unActiveText"]),c=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...o,classes:c,updateValue:(u=!l.visible)=>{r("update:visible",u)},selected:(u,p)=>{r("selected",{item:u,event:p}),s.value=u.id},current:s}}}),{componentName:Xy,create:Qy,scope:Gy}=ee("fixednav"),_y=Qy(Yy(Xy,Gy,{[ut.name]:ut,Left:re.Left})),Zy={class:"fox-fixednav__list"},Jy=["onClick"],eb=["src"],tb={class:"span"},nb={key:0,class:"b"},lb={class:"text"};function ab(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-overlay"),c=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Zy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:h=>e.selected(s,h),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,eb),(0,t.createElementVNode)("view",tb,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",nb,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,Jy))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(c,{color:"#fff"}),(0,t.createElementVNode)("view",lb,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var _a=ie(_y,[["render",ab]]),Ki=Symbol("fox-menu"),{componentName:ob,create:rb}=ee("menu"),ib=rb({components:{RectUp:re.RectUp,RectDown:re.RectDown},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:{type:String,default:""}},setup(e){const n=(0,t.ref)(),a=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=_t(Ki,{props:e,offset:a}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),o=(0,t.computed)(()=>({[ob]:!0,"scroll-fixed":l.value})),c=()=>{if(n.value){const p=qe(n);e.direction==="down"?a.value=p.bottom:a.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((y,A)=>{A===p?(c(),y.toggle()):y.state.showPopup&&y.toggle(!1,{immediate:!0})})},d=p=>Math.max(0,"scrollTop"in p?p.scrollTop:p.pageYOffset),h=()=>{const{scrollFixed:p}=e;l.value=d(window)>(typeof p=="boolean"?30:Number(p))},u=p=>{let y="";const{titleClass:A}=e;return p&&(y+="active"),A&&(y+=` ${A}`),y};return(0,t.onMounted)(()=>{const{scrollFixed:p}=e;p&&window.addEventListener("scroll",h)}),(0,t.onUnmounted)(()=>{const{scrollFixed:p}=e;p&&window.removeEventListener("scroll",h)}),{toggleItem:s,children:r,opened:i,classes:o,barRef:n,getClasses:u}}}),sb=["onClick"],cb={class:"fox-menu__title-text"},ub={class:"fox-menu__title-icon"};function db(e,n,a,l,r,i){const o=(0,t.resolveComponent)("RectUp"),c=(0,t.resolveComponent)("RectDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{ref:"barRef",class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.props.disabled,active:s.state.showPopup}]),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""}),onClick:h=>!s.props.disabled&&e.toggleItem(d)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",cb,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",ub,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])])],2)],14,sb))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Za=ie(ib,[["render",db]]),{create:fb}=ee("menu-item"),mb=fb({props:{title:[String],options:{type:Array,default:[]},disabled:{type:[Boolean],default:!1},modelValue:{type:[String,Number,Boolean]},cols:{type:Number,default:1},activeTitleClass:{type:[String]},inactiveTitleClass:{type:[String]}},components:{FoxPopup:Ce,Check:re.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>h.props.direction==="down"?{top:h.offset.value+"px"}:{bottom:h.offset.value+"px"}),r=(0,t.computed)(()=>{const u={height:h.offset.value+"px"};return h.props.direction==="down"?{...u,top:"0px"}:{...u,bottom:"0px"}}),i=(u=!a.showPopup)=>{u!==a.showPopup&&(a.showPopup=u,u&&(a.showWrapper=!0,n("open")))},o=()=>{if(e.title)return e.title;const u=e.options?.find(p=>p.value===e.modelValue);return u?u.text:""},c=u=>{a.showPopup=!1,u.value!==e.modelValue&&(n("update:modelValue",u.value),n("change",u.value))},s=()=>{n("close"),a.showWrapper=!1},d=()=>{a.showPopup=!1,n("close")},{parent:h}=Zt(Ki,{props:e,state:a,toggle:i,renderTitle:o});return{style:l,placeholderElementStyle:r,renderTitle:o,state:a,parent:h,toggle:i,onClick:c,handleClose:s,handleClickOutside:d}}}),pb={class:"fox-menu-item"},hb={class:"fox-menu-item__content fox-menu-item__overflow"},gb=["onClick"];function yb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Check"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",pb,[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-menu-item-placeholder-element",style:(0,t.normalizeStyle)(e.placeholderElementStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s))},null,4),[[t.vShow,e.state.showPopup]]),(0,t.createVNode)(c,(0,t.mergeProps)(e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),style:{position:"absolute"},"overlay-style":{position:"absolute"},position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"destroy-on-close":!1,overlay:e.parent.props.overlay,"lock-scroll":e.parent.props.lockScroll,"teleport-disable":!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay,onClosed:e.handleClose}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",hb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(o,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,gb))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["visible","position","duration","overlay","lock-scroll","close-on-click-overlay","onClosed"])],512)),[[t.vShow,e.state.showWrapper]])}var Ja=ie(mb,[["render",yb]]),Ui=Symbol("fox-tabbar"),{create:bb}=ee("tabbar"),vb=bb({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,{emit:n}){function a(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,r.value[i]))}const l=(0,t.reactive)({size:e.size,value:de(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a}),{children:r}=_t(Ui,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:a}}});function Sb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var eo=ie(vb,[["render",Sb]]),{create:kb}=ee("tabbar-item"),wb=kb({props:{title:{type:[String],default:""},icon:{type:Object},activeIcon:{type:Object},num:{type:[String],default:""},activeImg:{type:[String],default:""},img:{type:[String],default:""},dot:{type:[Boolean],default:!1}},setup(e,n){const{parent:a,index:l}=Zt(Ui,{props:e}),r=(0,t.computed)(()=>l.value===a.state.value);function i(c){a&&typeof a.state.changeIndex=="function"&&a.state.changeIndex(c)}const o=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:a.state,index:l,active:r,change:i,currentIcon:o}}}),Cb={class:"fox-tabbar-item_icon-box"},Nb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Ab={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Bb={key:1,class:"fox-tabbar-item_icon-box_dot"},Tb={key:2},Vb={key:0};function Eb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=o=>e.change(e.index))},[(0,t.createElementVNode)("view",Cb,[e.dot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.num&&e.num<=99?((0,t.openBlock)(),(0,t.createElementBlock)("view",Nb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ab,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Bb)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tb,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.currentIcon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vb,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.title?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"default",{key:1})],2)])],6)}var to=ie(wb,[["render",Eb]]),{componentName:$b,create:Db}=ee("elevator"),Ib=Db({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=(0,t.ref)(null),l=(0,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}),r=(0,t.computed)(()=>({[$b]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),o=(0,t.computed)(()=>a.value.clientHeight),c=(v,f)=>v.getAttribute("data-"+f),s=v=>{(0,t.nextTick)(()=>{!l.listGroup.includes(v)&&v!=null&&l.listGroup.push(v)})},d=()=>{let v=0;l.listHeight.push(v);for(let f=0;f<l.listGroup.length;f++){let m=l.listGroup[f];v+=Math.floor(m.clientHeight),l.listHeight.push(v)}},h=v=>{!v&&v!==0||(v<0&&(v=0),v>l.listHeight.length-2&&(v=l.listHeight.length-2),l.codeIndex=v,a.value.scrollTo(0,l.listHeight[v]))},u=v=>{l.scrollStart=!0;let f=c(v.target,"index"),m=v.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+f,l.codeIndex=+f,h(+f)},p=v=>{let f=v.touches[0];l.touchState.y2=f.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,h(l.codeIndex)},y=()=>{l.scrollStart=!1},A=(v,f)=>{n.emit("click-item",v,f),l.currentData=f,l.currentKey=v},k=v=>{n.emit("click-index",v)},w=v=>{let f=v.target.scrollTop;const m=l.listHeight;l.scrollY=f;for(let S=0;S<m.length-1;S++){let B=m[S],g=m[S+1];if(l.scrollY>=B&&l.scrollY<g){l.currentIndex=S,l.diff=g-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{a.value.addEventListener("scroll",w)}),n.expose({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,v=>{const f=l.listHeight;let m=v>0&&v<e.titleHeight?v-e.titleHeight:0;l.scrollY+o.value===f[f.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,v=>{n.emit("change",v)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:o,setListGroup:s,listview:a,touchStart:u,touchMove:p,touchEnd:y,handleClickItem:A,handleClickIndex:k}}}),qb={class:"fox-elevator__list__item__code"},Pb=["onClick"],xb=["innerHTML"],Mb={class:"fox-elevator__fixed-title"},zb={class:"fox-elevator__bars__inner"},Rb=["data-index","onClick"];function Fb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,o=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:o[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",qb,(0,t.toDisplayString)(o[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.list,c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===c.id&&e.currentKey===o[e.acceptKey]}]),key:c.id,onClick:s=>e.handleClickItem(o[e.acceptKey],c)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:c}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:c.name},null,8,xb))],10,Pb))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",Mb,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...o)=>e.touchStart&&e.touchStart(...o)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...o)=>e.touchMove&&e.touchMove(...o),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...o)=>e.touchEnd&&e.touchEnd(...o))},[(0,t.createElementVNode)("view",zb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:o[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":c,key:o[e.acceptKey],onClick:s=>e.handleClickIndex(o[e.acceptKey])},(0,t.toDisplayString)(o[e.acceptKey]),11,Rb))),128))])],32)],2)}var no=ie(Ib,[["render",Fb]]),{componentName:U2,create:Lb,scope:Ob}=ee("pagination"),Kb=Lb({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ye.useFoxI18n)(Ob),l=a(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:o,forceEllipses:c}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:y,itemsPerPage:A}=(0,t.toRefs)(e),k=+p.value||Math.ceil(+y.value/+A.value);return Math.max(1,k)}),d=(p,y)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),y&&n("change",p))},h=(p,y,A=!1)=>({number:p,text:y,active:A}),u=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const y=s.value,A=+o.value;let k=1,w=y;const v=y>A;v&&(k=Math.max(r.value-Math.floor(A/2),1),w=k+A-1,w>y&&(w=y,k=w-A+1));for(var f=k;f<=w;f++){const m=h(f,f,r.value==f);p.push(m)}if(v&&A>0&&c.value){if(k>1){const m=h(k-1,"...");p.unshift(m)}if(w<y){const m=h(w+1,"...");p.push(m)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:u,forceEllipses:c}}}),Ub={class:"fox-pagination"},Hb={key:0,class:"fox-pagination-contain"},jb=["onClick"],Wb={key:1,class:"fox-pagination-contain"},Yb={class:"fox-pagination-simple"};function Xb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ub,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=o=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",o.active?"active":""]),onClick:s=>e.select(o.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:o},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.text),1)])],10,jb))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wb,[(0,t.createElementVNode)("view",Yb,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=o=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var lo=ie(Kb,[["render",Xb]]),Qb=(e,n,a,l)=>{const r=(0,t.ref)(),i=(0,t.ref)({width:0,height:0}),o=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let u=await l(r,a);i.value.width=u.width||0,i.value.height=u.height||0}else i.value.width=r.value?.clientWidth||0,i.value.height=r.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{o()},100)});const c=(0,t.reactive)({offset:0,moving:!1}),s=at();let d="";const h=(u,p)=>{let y=u;switch(e.direction=="horizontal"?(d=u>0?"right":"left",y=Math.abs(y)/i.value.width*100):(d=p>0?"bottom":"top",y=p,y=Math.abs(y)/i.value?.height*100),y>85&&(y=85),d){case"left":case"top":n.isEnd()&&(y=0,c.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,c.moving=!1);break}c.offset=y};return{touchMethods:{onTouchStart(u){e.swipeable&&s.start(u)},onTouchMove(u){e.swipeable&&(s.move(u),c.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(u.preventDefault(),u.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(u.preventDefault(),u.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,d){case"left":case"top":c.offset>35&&n.next();break;case"right":case"bottom":c.offset<-35&&n.prev();break}}},touchState:c,tabsContentRef:r}},Gb=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:_b}=ee("tabs"),Zb=_b({components:{[Gt.name]:Gt,JoySmile:re.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null);let r;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const i=(0,t.ref)([]),o=N=>{N.forEach((C,M)=>{let j=C.type;if(j=j.name||j,j=="fox-tab-pane"){let $=new Gb;if(C.props?.title||C.props?.["pane-key"]||C.props?.paneKey){let z=pt(C.props?.["pane-key"]),x=z=="number"||z=="string"?String(C.props?.["pane-key"]):null,F=pt(C.props?.paneKey),R=F=="number"||F=="string"?String(C.props?.paneKey):null;$.title=C.props?.title,$.paneKey=x||R||String(M),$.disabled=C.props?.disabled}i.value.push($)}else{if(C.children==" ")return;Array.isArray(C.children)&&o(C.children)}})},c=(0,t.ref)(e.modelValue||0),s=N=>{let C=i.value.findIndex(M=>M.paneKey==N);i.value.length==0||C==-1||(c.value=C)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),u=(0,t.ref)([]),p=N=>{const C=h.value,M=u.value;if(!C||!M||!M[c.value])return;const j=M[c.value];let $=0;e.direction==="vertical"?$=j.offsetTop-C.offsetTop+10-(C.offsetHeight-j.offsetHeight)/2:$=j.offsetLeft-(C.offsetWidth-j.offsetWidth)/2,y(C,$,N?0:.3,e.direction)},y=(N,C,M,j)=>{let $=0;const z=j==="horizontal"?N.scrollLeft:N.scrollTop,x=M===0?1:Math.round(M*1e3/16);function F(){j==="horizontal"?N.scrollLeft+=(C-z)/x:N.scrollTop+=(C-z)/x,++$<x&&je(F)}F()},A=(N=a.default?.())=>{i.value=[],N=N?.filter(C=>typeof C.children!="string"),N&&N.length&&o(N),s(e.modelValue),(0,t.nextTick)(()=>{p()})},k=N=>{r=N.fixed};(0,t.watch)(()=>a.default?.(),N=>{A(N)});const w=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,N=>{if(s(N),p(),r){let C=qe(l.value).top+w(),M=Math.ceil(C-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),(0,t.onMounted)(A),(0,t.onActivated)(A);const v={isBegin:()=>c.value==0,isEnd:()=>c.value==i.value.length-1,next:()=>{c.value+=1,v.updateValue(i.value[c.value])},prev:()=>{c.value-=1,v.updateValue(i.value[c.value])},updateValue:N=>{n("update:modelValue",N.paneKey),n("change",N)},tabChange:(N,C)=>{n("click",N),!(N.disabled||c.value==C)&&(c.value=C,v.updateValue(N))},setTabItemRef:(N,C)=>{u.value[C]=N}},{tabsContentRef:f,touchState:m,touchMethods:S}=Qb(e,v),B=(0,t.computed)(()=>{let N=c.value*100;m.moving&&(N+=m.offset);let C={transform:e.direction=="horizontal"?`translate3d(-${N}%, 0, 0)`:`translate3d( 0,-${N}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(C={}),C}),g=(0,t.computed)(()=>({background:e.background})),b=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),E=(0,t.computed)(()=>{if(!e.titleGutter)return{};const N=he(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}}),V=(0,t.computed)(()=>a.fixedTitle);return{navRef:h,tabsContentRef:f,titles:i,contentStyle:B,tabsNavStyle:g,titleStyle:E,tabsActiveStyle:b,container:l,getScrollY:d,onStickyScroll:k,...v,...S,hasFixedTitle:V}}}),Jb=["onClick"],ev={key:0,class:"fox-tabs__titles-fixed-item"},tv=["onClick"],nv={key:0,class:"fox-tabs__titles-fixed-item"};function lv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("JoySmile"),c=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(o,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,Jb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",ev,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey,ref_for:!0,ref:h=>e.setTabItemRef(h,d)},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(o,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,tv))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",nv,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)),(0,t.createElementVNode)("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:(0,t.normalizeStyle)(e.contentStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var ao=ie(Zb,[["render",lv]]),{create:av}=ee("tab-pane"),ov=av({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:l}}});function rv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var oo=ie(ov,[["render",rv]]),{componentName:Hi,create:iv}=ee("indicator"),sv=iv({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Hi;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Hi,padZero:it}}});function cv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,o=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:o},[o===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(o)||o),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ro=ie(sv,[["render",cv]]),{componentName:uv,create:dv}=ee("side-navbar"),fv=dv({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),a=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[uv]:!0})),r=(o,c=1)=>{for(let s=0;s<o.length;s++){let d=o[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*c+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++a.count))}a.count--},i=()=>{let o=n.value.childNodes;o.length&&(o=Array.from(o).filter(c=>c.nodeType!==3).map(c=>c),r(o))};return(0,t.onMounted)(()=>{i(),a.observer=new MutationObserver(function(){a.count=1,i()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(a),list:n,classes:l}}}),mv={class:"fox-side-navbar__content"},pv={class:"fox-side-navbar__content__list",ref:"list"};function hv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",mv,[(0,t.createElementVNode)("view",pv,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var io=ie(fv,[["render",hv]]),{componentName:gv,create:yv}=ee("side-navbar-item"),bv=yv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[gv]:!0})),handleClick:()=>{n.emit("click")}})}),vv=["ikey"],Sv={class:"fox-side-navbar-item__title"};function kv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...o)=>e.handleClick&&e.handleClick(...o),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",Sv,(0,t.toDisplayString)(e.title),1)],10,vv)}var so=ie(bv,[["render",kv]]),{componentName:wv,create:Cv}=ee("sub-side-navbar"),Nv=Cv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:re.ArrowDown2,ArrowUp2:re.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[wv]:!0})),r=(0,t.computed)(()=>({height:a.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return(0,t.onMounted)(()=>{a.direction=e.open?"":"up"}),{...(0,t.toRefs)(a),classes:l,style:r,handleClick:i}}}),Av=["ikey"],Bv={class:"fox-sub-side-navbar__title__text"},Tv={class:"fox-sub-side-navbar__title__icon"};function Vv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("ArrowDown2"),c=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",Bv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Tv,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(c,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,Av)}var co=ie(Nv,[["render",Vv]]),{componentName:Ev,create:$v}=ee("range"),Dv=$v({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),o=(0,t.ref)(),c=at(),s=(0,t.computed)(()=>{const{marks:$,max:z,min:x}=e;return Object.keys($).map(parseFloat).sort((F,R)=>F-R).filter(F=>{const R=de(F);return R>=de(x)&&R<=de(z)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const $=Ev;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),u=(0,t.computed)(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),A=$=>!!e.range&&Array.isArray($),k=()=>{const{modelValue:$,min:z}=e;return A($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(z))*100/d.value}%`},w=()=>{const{modelValue:$,min:z}=e;return A($)?`${($[0]-Number(z))*100/d.value}%`:"0%"},v=(0,t.computed)(()=>e.vertical?{height:k(),top:w(),background:e.activeColor,transition:o.value?"none":void 0}:{width:k(),left:w(),background:e.activeColor,transition:o.value?"none":void 0}),f=$=>{const z="fox-range-mark",{modelValue:x,max:F,min:R}=e;let X=Number(R),P=Number(F);if(e.range){const[te,oe]=x;X=te,P=oe}else P=x;let _=$<=P&&$>=X;return{[`${z}-text`]:!0,[`${z}-text-active`]:_}},m=$=>{const{min:z,vertical:x}=e;let F={left:`${($-Number(z))/d.value*100}%`};return x&&(F={top:`${($-Number(z))/d.value*100}%`}),F},S=$=>{const{modelValue:z,max:x,min:F}=e;let R=Number(F),X=Number(x);if(e.range){const[P,_]=z;R=P,X=_}return{background:$<=X&&$>=R?e.activeColor:e.inactiveColor}},B=$=>{const{min:z,max:x,step:F}=e;return $=Math.max(+z,Math.min($,+x)),Math.round($/+F)*+F},g=($,z)=>JSON.stringify($)===JSON.stringify(z),b=$=>$[0]>$[1]?$.slice(0).reverse():$,E=($,z)=>{A($)?$=b($).map(B):$=B($),g($,e.modelValue)||n("update:modelValue",$),z&&!g($,l)&&n("change",$)},V=$=>{if(e.disabled)return;const{min:z,modelValue:x}=e,F=qe(i);let R=$.clientX-F.left,X=F.width;e.vertical&&(R=$.clientY-F.top,X=F.height);const P=Number(z)+R/X*d.value;if(A(x)){const[_,te]=x;P<=(_+te)/2?E([P,te],!0):E([_,P],!0)}else E(P,!0)},N=$=>{e.disabled||(c.start($),r=e.modelValue,A(r)?l=r.map(B):l=B(r),o.value="start")},C=$=>{if(e.disabled)return;o.value==="start"&&n("drag-start"),c.move($),o.value="draging";const z=qe(i);let x=c.deltaX.value,F=z.width,R=x/F*d.value;e.vertical&&(x=c.deltaY.value,F=z.height,R=x/F*d.value),A(l)?r[a.value]=l[a.value]+R:r=l+R,E(r),$.stopPropagation(),$.preventDefault()},M=()=>{e.disabled||(o.value==="draging"&&(E(r,!0),n("drag-end")),o.value="")},j=$=>pn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:y,onClick:V,onTouchStart:N,onTouchMove:C,onTouchEnd:M,...(0,t.toRefs)(e),barStyle:v,curValue:j,buttonIndex:a,containerClasses:u,markClassName:f,marksStyle:m,marksList:s,tickStyle:S}}}),Iv={key:0,class:"fox-range-min"},qv={key:0,class:"fox-range-mark"},Pv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],xv={key:0,class:"number"},Mv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],zv={key:0,class:"number"},Rv={key:1,class:"fox-range-max"};function Fv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Iv,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...o)=>e.onClick&&e.onClick(...o),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",qv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,o=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:o,class:(0,t.normalizeClass)(e.markClassName(o)),style:(0,t.normalizeStyle)(e.marksStyle(o))},[(0,t.createTextVNode)((0,t.toDisplayString)(o)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(o))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],o=>(0,t.createElementVNode)("view",{key:o,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":o==0,"fox-range-button-wrapper-right":o==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(o),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(c=>{typeof o=="number"&&(e.buttonIndex=o),e.onTouchStart(c)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.onTouchMove&&e.onTouchMove(...c),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onClick:n[3]||(n[3]=c=>c.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",xv,(0,t.toDisplayString)(e.curValue(o)),1))],4))],42,Pv)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(o=>{e.onTouchStart(o)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...o)=>e.onTouchMove&&e.onTouchMove(...o),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...o)=>e.onTouchEnd&&e.onTouchEnd(...o),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...o)=>e.onTouchEnd&&e.onTouchEnd(...o),["stop","prevent"])),onClick:n[8]||(n[8]=o=>o.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",zv,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Mv))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Rv,(0,t.toDisplayString)(+e.max),1))],2)}var Jt=ie(Dv,[["render",Fv]]),{create:Lv,scope:Ov}=ee("short-password"),Kv=Lv({components:{FoxPopup:Ce,Tips:re.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ye.useFoxI18n)(Ov),l=a(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),o=(0,t.ref)(e.visible),c=u=>{u.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,u=>{o.value=u}),(0,t.watch)(()=>e.modelValue,u=>{r.value=u,String(u).length===i.value&&n("complete",u)});const s=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:i,realInput:r,onTouchStart:c,range:d,close:s,onTips:()=>{n("tips")},show:o,...l}}}),Uv={class:"fox-short-password-title"},Hv={class:"fox-short-password-subtitle"},jv={class:"fox-short-password-wrapper"},Wv={key:0,class:"fox-short-password__item-icon"},Yv={class:"fox-short-password__message"},Xv={class:"fox-short-password--error"},Qv={key:0,class:"fox-short-password--forget"};function Gv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Tips"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(c,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Uv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Hv,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",jv,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wv)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Yv,[(0,t.createElementVNode)("view",Xv,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qv,[(0,t.createVNode)(o,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var uo=ie(Kv,[["render",Gv]]),_v=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Zv=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",a=>{e.onProgress?.(a,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[a,l]of Object.entries(e.headers))n.setRequestHeader(a,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Jv=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},ji=(e,{args:n=[],done:a,canceled:l})=>{if(e){const r=e.apply(null,n);ft(r)?r.then(i=>{i?a(i):l&&l()}).catch(()=>{}):r?a():l&&l()}else a()},{create:eS}=ee("progress"),tS=eS({components:{Checked:re.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,a=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),o=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),c=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:a,percentage:i,bgStyle:o,textStyle:c,progressOuter:l,insideText:r,slotDefault:n}}}),nS={class:"fox-progress"},lS={key:0,class:"fox-progress-text"};function aS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",nS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:(0,t.normalizeStyle)({height:e.height})},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:(0,t.normalizeStyle)(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:(0,t.normalizeStyle)({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[(0,t.createElementVNode)("span",{style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)],4)):(0,t.createCommentVNode)("",!0),e.showText&&e.textInside&&e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,ref:"insideText",style:(0,t.normalizeStyle)({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[(0,t.renderSlot)(e.$slots,"default")],4)):(0,t.createCommentVNode)("",!0)],6),e.showText&&!e.textInside?((0,t.openBlock)(),(0,t.createElementBlock)("div",lS,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(o,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var en=ie(tS,[["render",aS]]),{componentName:oS,create:rS,scope:iS}=ee("uploader"),sS=rS({components:{[en.name]:en,Photograph:re.Photograph,Failure:re.Failure,Loading:re.Loading,Del:re.Del,Link:re.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(iS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[oS]:!0})),o=()=>{let f={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(f.capture="camera"),(0,t.h)("input",f)},c=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},d=(f,m)=>{const S=new _v;S.url=e.url,S.formData=f.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=f.formData.get(e.name)}catch{}S.onStart=g=>{f.status="ready",f.message=a("readyUpload"),h(m),n("start",g)},S.onProgress=(g,b)=>{f.status="uploading",f.message=a("uploading"),f.percentage=(g.loaded/g.total*100).toFixed(0),n("progress",{event:g,option:b,percentage:f.percentage})},S.onSuccess=(g,b)=>{f.status="success",f.message=a("success"),n("success",{responseText:g,option:b,fileItem:f}),n("update:fileList",l)},S.onFailure=(g,b)=>{f.status="error",f.message=a("error"),n("failure",{responseText:g,option:b,fileItem:f})};let B=new Zv(S);e.autoUpload?B.upload():r.push(new Promise((g,b)=>{g(B)}))},h=(f=-1)=>{f>-1?r.splice(f,1):(r=[],l.splice(0,l.length))},u=()=>{Promise.all(r).then(f=>{f.forEach(m=>m.upload())})},p=f=>{f.forEach((m,S)=>{const B=new FormData;for(const[b,E]of Object.entries(e.data))B.append(b,E);B.append(e.name,m);const g=(0,t.reactive)(new Jv);if(g.name=m.name,g.status="ready",g.type=m.type,g.formData=B,g.message=a("waitingUpload"),d(g,S),e.isPreview&&m.type.includes("image")){const b=new FileReader;b.onload=E=>{g.url=E.target.result,l.push(g)},b.readAsDataURL(m)}else l.push(g)})},y=f=>{const m=e.maximum*1,S=e.maximize*1,B=new Array;f=f.filter(b=>b.size>S?(B.push(b),!1):!0),B.length&&n("oversize",B);let g=f.length+l.length;return g>m&&f.splice(f.length-(g-m)),f},A=(f,m)=>{l.splice(m,1),n("delete",{file:f,fileList:l,index:m})},k=(f,m)=>{h(m),ji(e.beforeDelete,{args:[f,l],done:()=>A(f,m)})},w=f=>{if(e.disabled)return;const m=f.target;let{files:S}=m;e.beforeUpload?e.beforeUpload(S).then(B=>v(B)):v(S),n("change",{fileList:l,event:f}),e.clearInput&&c(m)},v=f=>{p(y(new Array().slice.call(f)))};return{onChange:w,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:u,renderInput:o}}}),cS={key:0,class:"fox-uploader__slot"},uS={key:0,class:"fox-uploader__preview-img"},dS={key:0,class:"fox-uploader__preview__progress"},fS={class:"fox-uploader__preview__progress__msg"},mS=["onClick"],pS=["onClick","src"],hS={key:3,class:"fox-uploader__preview-img__file"},gS=["onClick"],yS={class:"file__name_tips"},bS={class:"tips"},vS={key:1,class:"fox-uploader__preview-list"},SS=["onClick"],kS={class:"file__name_tips"};function wS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Failure"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),u=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",cS,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(p,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:p.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",uS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",dS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",fS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:A=>e.onDelete(p,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(o)])],8,mS)):(0,t.createCommentVNode)("",!0),p?.type?.includes("image")&&p.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:A=>e.fileItemClick(p),src:p.url},null,8,pS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",hS,[(0,t.createElementVNode)("view",{onClick:A=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",yS,(0,t.toDisplayString)(p.name),1)],8,gS)])),(0,t.createElementVNode)("view",bS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",vS,[(0,t.createElementVNode)("view",{onClick:A=>e.fileItemClick(p),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[p.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",kS,(0,t.toDisplayString)(p.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:A=>e.onDelete(p,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,SS),p.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,size:"small",percentage:p.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"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(u,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var fo=ie(sS,[["render",wS]]),CS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cuk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t3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:AS,scope:BS}=ee("number-keyboard"),TS=AS({components:{FoxPopup:Ce},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ye.useFoxI18n)(BS),l=a(e,["confirmText"]),r=(0,t.computed)(()=>{const f=["fox-number-keyboard-popup"];return e.popClass&&f.push(e.popClass),f}),i=(0,t.ref)(void 0),o=(0,t.ref)(e.visible),c=(0,t.ref)();function s(){const{customKey:f}=e;let m={id:"lock",type:"lock"},S=Array.isArray(f)?f:[f];return S.length===1&&(m={id:S[0],type:"custom"}),[...d(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function d(){const f=[];for(let m=1;m<=9;m++)f.push({id:m,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function h(){const f=d(),{customKey:m}=e;let S=Array.isArray(m)?m:[m];return S.length>2&&(S=[S[0],S[1]]),S.length==2&&e.title&&e.type!="rightColumn"&&(S=[S[0]]),S.length===1?e.title&&e.type!="rightColumn"?f.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:S[0],type:"custom"}):S.length===2&&f.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:S[1],type:"custom"}),f}const u=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?h():s()),p=()=>{e.visible&&n("blur")},y=f=>{const m=c.value;m&&!m.contains(f.target)&&p()};(0,t.watch)(()=>e.visible,f=>{o.value=f,f?window.addEventListener("touchstart",y,!1):window.removeEventListener("touchstart",y,!1)});function A(f,m){m.stopPropagation(),i.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&v(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function k(f){f.stopPropagation()}function w(f){f.preventDefault(),i.value=void 0}function v(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:CS,lockImg:NS,clickKeyIndex:i,defaultKey:s,closeBoard:v,onTouchEnd:w,onTouchMove:k,onTouchstart:A,keysList:u,genCustomKeys:h,getBasicKeys:d,root:c,show:o}}}),VS={ref:"root"},ES={class:"fox-number-keyboard"},$S={key:0,class:"fox-number-keyboard__header"},DS={class:"fox-number-keyboard__title"},IS={class:"fox-number-keyboard__body"},qS={class:"fox-number-keyboard__keys"},PS=["onTouchstart"],xS=["src"],MS=["src"],zS={key:0,class:"fox-number-keyboard__sidebar"},RS={class:"fox-key__wrapper"},FS=["src"];function LS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",VS,[(0,t.createVNode)(o,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=c=>e.show=c),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",ES,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",$S,[(0,t.createElementVNode)("h3",DS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=c=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",IS,[(0,t.createElementVNode)("div",qS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,c=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+c.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":c.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":c.id==e.clickKeyIndex},{"fox-key--lock":c.type=="lock"},{"fox-key--delete":c.type=="delete"}]),onTouchstart:s=>e.onTouchstart(c,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[c.type=="number"||c.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(c.id),1)],64)):(0,t.createCommentVNode)("",!0),c.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,xS)):(0,t.createCommentVNode)("",!0),c.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,MS)):(0,t.createCommentVNode)("",!0)],42,PS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",zS,[(0,t.createElementVNode)("div",RS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=c=>e.onTouchstart({id:"delete",type:"delete"},c)),onTouchmove:n[4]||(n[4]=c=>e.onTouchMove(c)),onTouchend:n[5]||(n[5]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,FS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=c=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var mo=ie(TS,[["render",LS]]),{componentName:OS,create:KS}=ee("swipe"),US=KS({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n,expose:a}){const l=(0,t.computed)(()=>({[OS]:!0})),r=m=>m.value?.clientWidth||0,i=(0,t.ref)(),o=(0,t.computed)(()=>r(i)),c=(0,t.ref)(),s=(0,t.computed)(()=>r(c));let d=!1,h="",u="";const p=(0,t.reactive)({offset:0,moving:!1}),y=(m="")=>{d=!0,m&&(p.offset=m==="left"?-s.value:o.value),n("open",{name:e.name,position:h||m})},A=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:h})},k=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),w=m=>{h=m>0?"right":"left";let S=m;switch(h){case"left":d&&u===h?S=-s.value:S=Math.abs(m)>s.value?-s.value:m;break;case"right":d&&u===h?S=o.value:S=Math.abs(m)>o.value?o.value:m;break}p.offset=S},v=at(),f={onTouchStart(m){e.disabled||v.start(m)},onTouchMove(m){e.disabled||(v.move(m),v.isHorizontal()&&(p.moving=!0,w(v.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,u=h,h){case"left":Math.abs(p.offset)<=s.value/2?A():(p.offset=-s.value,y());break;case"right":Math.abs(p.offset)<=o.value/2?A():(p.offset=o.value,y());break}}};return a({open:y,close:A}),{classes:l,touchStyle:k,...f,leftRef:i,rightRef:c,open:y,close:A}}}),HS={class:"fox-swipe__left",ref:"leftRef"},jS={class:"fox-swipe__content"},WS={class:"fox-swipe__right",ref:"rightRef"};function YS(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o))},[(0,t.createElementVNode)("view",HS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",jS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",WS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var po=ie(US,[["render",YS]]),{componentName:XS,create:QS}=ee("action-sheet"),GS=QS({components:{Popup:Ce,Loading:re.Loading},props:{...ot,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[XS]:!0}));return{slotDefault:a,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),_S={key:0,class:"fox-action-sheet__title"},ZS={key:1},JS={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},e1={key:1,class:"fox-action-sheet__menu"},t1=["onClick"],n1={key:1},l1={class:"fox-action-sheet__subdesc"};function a1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",_S,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",ZS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",JS,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",e1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:h=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",n1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",l1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,t1))),128))])):(0,t.createCommentVNode)("",!0),e.cancelTxt?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ho=ie(GS,[["render",a1]]),{componentName:o1,create:r1}=ee("backtop"),i1=r1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[o1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function o(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function c(A=0){l.scrollEl instanceof Window?window.scrollTo(0,A):l.scrollEl.scrollTop=A}function s(){let A=Ge(function k(){var w=e.duration-Math.max(0,l.startTime-+new Date+e.duration),v=w*-l.scrollTop/e.duration+l.scrollTop;c(v),A=Ge(k),(w==e.duration||v==0)&&_o(A)})}function d(){l.scrollEl.addEventListener("scroll",o,!1),l.scrollEl.addEventListener("resize",o,!1)}function h(){l.scrollEl.removeEventListener("scroll",o,!1),l.scrollEl.removeEventListener("resize",o,!1)}function u(A){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():c(),n("click",A)}function p(){y.value?l.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),p()}),(0,t.onUnmounted)(()=>{h()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,p())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,h()});const y=(0,t.computed)(()=>{if(typeof a.content=="function"){const A=a.content();return Array.isArray(A)?A[0]:A}return null});return()=>{const A=[];y.value&&A.push(y.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const v=(0,t.h)(re.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(v)}const w=(0,t.h)("div",{class:r.value,style:i.value,onClick:u},k);return A.push(w),A}}}),go=i1,{componentName:s1,create:c1}=ee("drag"),u1=c1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,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}}),r=(0,t.computed)(()=>({[s1]:!0}));function i(){const u=document.documentElement;l.elWidth=a.value.offsetWidth,l.elHeight=a.value.offsetHeight,l.screenWidth=u.clientWidth,l.screenHeight=u.clientHeight}function o(u){l.boundary.left?+u.style.left.split("px")[0]>l.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{o(u)})):u.style.left=`${l.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{o(u)})):u.style.left="0px"}function c(u,p){p-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",je(()=>{c(u,p)})):u.style.left=p+"px"}function s(u){u.preventDefault();const p=u.currentTarget;if(u.targetTouches.length===1){const y=u.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const A=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>A?l.xPum=A:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function d(u){const p=u.currentTarget;let y=u.changedTouches[0].clientX;const A=l.screenWidth-l.elWidth-l.boundary.right;y>A?y=A:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:A,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?je(()=>{o(p)}):je(()=>{c(p,A)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(u){const p=u.currentTarget,y=u.touches[0],A=u.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=A.clientX-l.position.x,l.ny=A.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",h),u.value.removeEventListener("touchmove",s),u.value.removeEventListener("touchend",d)}),{classes:r,myDrag:a,touchStart:h,touchMove:s,touchEnd:d}}});function d1(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=o=>e.touchStart(o)),onTouchmove:n[1]||(n[1]=o=>e.touchMove(o)),onTouchend:n[2]||(n[2]=o=>e.touchEnd(o))},[(0,t.renderSlot)(e.$slots,"default")],34)}var yo=ie(u1,[["render",d1]]),f1={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}},m1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function p1(e,n,a,l,r){return{props:{...ot,...f1},setup(i,{attrs:o,slots:c,emit:s}){const{toLocaleRefs:d}=(0,ye.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),u=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,g=>{p.value!==g&&(p.value=g,g&&s("opened"))});const y=g=>{p.value=g,s("update:visible",g),s("update",g)},A=g=>{if(s(g),!(g==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const b=i.beforeClose(g);ft(b)?b.then(E=>{E&&(y(!1),s("closed",g))}):b===!0&&(y(!1),s("closed",g))}else y(!1),s("closed",g)},k=()=>{A("confirm")},w=()=>{A("cancel")},v=()=>{A("close")},f=(g,b)=>m1(g)?(b.src=g,(0,t.h)("img",b)):typeof g=="string"?(Array.isArray(b.class)?b.class.push(g):b.class&&typeof b.class=="object"?b[`${g}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${g}`:b.class=g,(0,t.h)(i.tag,b)):(0,t.h)(g,b),m=()=>{const g=[];if(c.header){const b=c.header();g.push(b)}else{if(i.title){const b=(0,t.h)("view",{class:`${u}__header-title`},[i.title]);g.push(b)}if(i.showClose){const b={class:[`${u}__header-close-icon`],onClick:v},E=f(i.closeIcon??r,b);g.push(E)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},S=()=>{const g=[];if(c.default)g.push(c.default());else{const b={class:[`${u}__content`]};if(i.textAlign&&b.class.push(i.textAlign),typeof i.content=="string"){b.innerHTML=i.content;const E=(0,t.h)("view",b);g.push(E)}else if(typeof i.content=="function"){const E=(0,t.h)("view",b,[i.content()]);g.push(E)}else{const E=(0,t.h)("view",b,[i.content]);g.push(E)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__body`]},g)},B=()=>{if(!i.showFooter)return null;const g=[];if(c.footer)g.push(c.footer());else if(i.plain){if(i.showCancelButton){const b={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:w};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const E=(0,t.h)("view",b,[i.cancelButtonText??h.cancelText.value]);g.push(E)}if(i.showConfirmButton){const b={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&b.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(b.style,i.confirmButtonStyle);const E=(0,t.h)("view",b,[i.confirmButtonText??h.confirmText.value]);g.push(E)}}else{if(i.showCancelButton){const b={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:w};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const E=(0,t.h)(l,b,{default:()=>[i.cancelButtonText??h.cancelText.value]});g.push(E)}if(i.showConfirmButton){const b={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&b.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(b.style,i.confirmButtonStyle);const E=(0,t.h)(l,b,{default:()=>[i.confirmButtonText??h.confirmText.value]});g.push(E)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__footer`,`${u}__footer--${i.footerDirection}`]},g)};return()=>{const g=[],b=m();b&&g.push(b);const E=S();E&&g.push(E);const V=B();V&&g.push(V);const N=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--plain`]:i.plain}},g),C=[`${u}__popup`];i.popClass&&C.push(i.popClass);const M={};return i.width&&(M.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(M.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(a,{...ve(i,ot),popClass:C.join(" "),style:M,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:i.position,onClickOverlay:v,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>N})}}}}var{componentName:h1,create:g1,scope:y1}=ee("dialog"),b1=g1(p1(h1,y1,Ce,At,re.Close)),Wi=b1,v1=class{title="";content="";cancelText=null;confirmText=null;textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=e=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1},S1=class{options=new v1;constructor(e){let n=Object.assign(this.options,e),a=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?a=document.querySelector(l):a=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const o=(0,t.createVNode)({setup(){return n.onUpdate=c=>{if(c===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Wi,n)}});a.appendChild(r),(0,t.render)(o,r)}},tn=function(e){return new S1(e)};tn.install=e=>{e.use(Wi),e.config.globalProperties.$dialog=tn};var k1={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},containerClass:{type:[String]}},w1=(e,n,a)=>({props:k1,emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const o=e,{toLocaleRefs:c}=(0,ye.useFoxI18n)(n),s=c(l,["pullingText","loosingText","loadingText"]),d=Xn(),h=(0,t.ref)(),u=Di(h),p=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=(0,t.computed)(()=>({[o]:!0})),A=(0,t.computed)(()=>{const V=[`${o}__container`];return l.containerClass&&V.push(l.containerClass),V}),k=(0,t.computed)(()=>{switch(p.status){case"pulling":return i.pulling?"":s.pullingText.value;case"loosing":return i.loosing?"":s.loosingText.value;case"loading":return i.loading?"":s.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:p.distance?`translate3d(0,${p.distance}px, 0)`:""})),v=(0,t.computed)(()=>{const V={};return l.headHeight!=50&&(V.height=he(l.headHeight)),V}),f=V=>{const N=+(l.pullDistance||l.headHeight);let C=V;return V>N&&(V<N*2?C=(V+N)/2:C=N+V/4),Math.round(C)},m=(V,N)=>{const C=+(l.pullDistance||l.headHeight);p.distance=V,N?p.status="loading":V===0?p.status="normal":V<C?p.status="pulling":p.status="loosing",r("change",{status:p.status,distance:V})},S=()=>p.status!=="loading"&&p.status!=="complete",B=()=>u.value==window?Ii()==0:u.value&&u.value.scrollTop==0,g=V=>{S()&&(B()?(d.start(V),p.isPullRefresh=!0,p.moving=!0):(p.distance=0,p.isPullRefresh=!1))},b=V=>{S()&&p.moving&&(d.move(V),d.isVertical()&&d.state.deltaY>0&&p.isPullRefresh&&(V.cancelable&&V.preventDefault(),m(f(d.state.deltaY))))},E=()=>{p.moving=!1,p.isPullRefresh&&S()&&d.state.deltaY&&(p.status==="loosing"?(m(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):m(0)),setTimeout(()=>{d.reset()},0)};return(0,t.watch)(()=>l.modelValue,V=>{V?m(+l.headHeight,!0):m(0)}),()=>{const V=[];let N=null;p.status==="loading"?(N=i?.loading?.()??null,N||(N=(0,t.h)(a,{class:[`${o}__container-topbox-icon`]}))):p.status==="pulling"?N=i?.pulling?.()??null:p.status==="loosing"&&(N=i?.loosing?.()??null),N&&V.push(N);const C=(0,t.h)("dive",{class:[`${o}__container-topbox-text`]},[k.value]);V.push(C);const M=(0,t.h)("div",{class:[`${o}__container-topbox`],style:v.value},V),j=(0,t.h)("div",{class:A.value,style:w.value},[M,i?.default?.()]),$={ref:h,class:y.value};return Yn()?Object.assign($,{onTouchstart:g,onTouchmove:b,onTouchend:E}):Object.assign($,{onMousedown:g,onMousemove:b,onMouseup:E}),(0,t.h)("div",$,[j])}}}),{componentName:C1,create:N1,scope:A1}=ee("pull-refresh"),B1=N1(w1(C1,A1,re.Loading)),bo=B1,{create:T1}=ee("notify"),V1=T1({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:n}){const a=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},o=(0,t.ref)(!1),c=(0,t.watch)(()=>e.visible,d=>{o.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{r(),c&&c(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:o}}});function E1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(o,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.isShowPopup=c),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...c)=>e.clickCover&&e.clickCover(...c))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var vo=ie(V1,[["render",E1]]),So={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},Bt=[],nn=[],Yi=e=>{if(e){const n=document.getElementById(e);nn=nn.filter(a=>a.id!==e),Bt=Bt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Bt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),nn=[],Bt=[]},$1=e=>{const n=document.getElementById(e.id);if(n){const a=nn.find(r=>r.id===e.id);a?e={...So,...a,...e}:e={...So,...e};const l=(0,t.createVNode)(vo,e);return(0,t.render)(l,n),l.component.data}},ln=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,Bt.find(r=>r===e.id))return $1(e)}else n=new Date().getTime()+"";e={...So,...e},e.id=n,Bt.push(e.id),nn.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>(0,t.h)(vo,e)}});document.body.appendChild(a),(0,t.render)(l,a)},an=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ko={text(e,n={}){return an(e),ln({...n,msg:e})},primary(e,n={}){return an(e),ln({...n,msg:e,type:"primary"})},success(e,n={}){return an(e),ln({...n,msg:e,type:"success"})},danger(e,n={}){return an(e),ln({...n,msg:e,type:"danger"})},warn(e,n={}){return an(e),ln({...n,msg:e,type:"warning"})},hide(){Yi()},install(e){e.use(vo)}},{create:D1}=ee("toast"),I1=D1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{a&&(clearTimeout(a),a=null)},i=()=>{l.mounted=!1},o=()=>{r(),e.duration&&(a=setTimeout(()=>{i()},e.duration))},c=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&o(),(0,t.watch)(()=>e.duration,y=>{y&&o()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=ue(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,color:e.iconColor})},h=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:c,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:u,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),q1={key:1,class:"fox-toast-title"},P1=["innerHTML"];function x1(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...o)=>e.clickCover&&e.clickCover(...o))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",q1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,P1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var wo=ie(I1,[["render",x1]]),Co={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},Tt=[],on=[],Xi=e=>{if(e){const n=document.getElementById(e);on=on.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else Tt.forEach(n=>{const a=document.getElementById(n);a&&((0,t.render)(null,a),document.body.removeChild(a))}),on=[],Tt=[]},M1=e=>{const n=document.getElementById(e.id);if(n){const a=on.find(r=>r.id===e.id);a?e={...Co,...a,...e}:e={...Co,...e};const l=(0,t.createVNode)(wo,e);return(0,t.render)(null,n),(0,t.render)(l,n),Vt}},rn=e=>{e.unmount=Xi;let n;if(e.id){if(n=e.id,Tt.find(l=>l===e.id))return M1(e)}else n=new Date().getTime()+"";e={...Co,...e},e.id=n,Tt.push(e.id),on.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(wo,e),a),document.body.appendChild(a),Vt},yl=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Vt={text(e,n={}){if(yl(e))return rn({...n,type:"text",msg:e})},success(e,n={}){if(yl(e))return rn({icon:re.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(yl(e))return rn({icon:re.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(yl(e))return rn({icon:re.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return rn({icon:re.Loading,...n,msg:e,type:"loading"})},hide(e){Xi(e)},install(e){e.use(wo),e.config.globalProperties.$toast=Vt}},{componentName:H2,create:z1}=ee("audio"),R1=z1({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:re.Service,[Jt.name]:Jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),r=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let w=0;w<k.length;w++)document.addEventListener(k[w],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(w){w.message}});const i=k=>{const w=l.value;e.autoplay&&w&&w.paused&&w.play(),r.second=w.duration,r.duration=A(w.duration),n("can-play",k)},o=k=>{r.currentTime=parseInt(k.target.currentTime)},c=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const k=l.value;r.playing?(k.pause(),r.handPlaying=!1):(k.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},h=k=>{r.currentDuration=A(k),r.percent=k/r.second*100},u=()=>{r.playing=!1,n("ended")},p=k=>{const w=l.value;w.currentTime=r.second*k/100,n("changeProgress",w.currentTime)},y=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},A=k=>{if(!k)return"00:00:00";let w=parseInt(k),v=Math.floor(w/3600),f=Math.floor((w-v*3600)/60),m=w-v*3600-f*60,S="";return S+=("0"+v.toString()).slice(-2)+":",S+=("0"+f.toString()).slice(-2)+":",S+=("0"+m.toString()).slice(-2),S};return(0,t.watch)(()=>r.currentTime,k=>{h(k)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:y,forward:d,fastBack:c,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:c,forward:d,changeStatus:s,progressChange:p,audioEnd:u,onTimeupdate:o,handleMute:y,onCanplay:i,slots:a}}}),F1={class:"fox-audio"},L1={key:0,class:"fox-audio__progress"},O1={class:"fox-audio__time"},K1={class:"fox-audio__bar"},U1={class:"fox-audio__time"},H1={key:1,class:"fox-audio__icon"},j1=["controls","src","preload","autoplay","loop","muted"];function W1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-range"),c=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",F1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",L1,[(0,t.createElementVNode)("div",O1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",K1,[(0,t.createVNode)(o,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",U1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",H1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,j1)])}var No=ie(R1,[["render",W1]]),{componentName:j2,create:Y1,scope:X1}=ee("audio-operate"),Q1=Y1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(X1),l=(0,t.reactive)((0,t.inject)("audioParent")),r=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:r,t:a}}}),G1={class:"fox-audio-operate"};function _1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",G1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...c)=>e.fastBack&&e.fastBack(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...c)=>e.forward&&e.forward(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...c)=>e.handleMute&&e.handleMute(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var Ao=ie(Q1,[["render",_1]]),{componentName:Z1,create:J1}=ee("avatar"),ek=J1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],o=(0,t.inject)("avatarGroup",null),c=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const A=o?.avatarGroupRef?.value?.children;A&&y(A)});const h=(0,t.computed)(()=>({[Z1]:!0,[`fox-avatar-${n.value||o?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||o?.props?.shape||"normal"}`]:!0})),u=(0,t.computed)(()=>({width:i.indexOf(n.value)>-1?"":`${n.value}px`,height:i.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${r.value}`,marginLeft:d.index!=1&&(o?.props?.span?`${o?.props?.span}px`:""),zIndex:o?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${o?.props?.maxBgColor}`,color:`${o?.props?.maxColor}`})),y=A=>{d.maxIndex=A.length;for(let k=0;k<A.length;k++)A[k]&&A[k].classList&&A[k].classList[0]=="fox-avatar"&&A[k].setAttribute("data-index",k+1);d.index=c?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=o?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:u,maxStyles:p,avatarGroup:o,visible:s,avatarRef:c,...(0,t.toRefs)(d)}}});function tk(e,n,a,l,r,i){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var sn=ie(ek,[["render",tk]]),{componentName:nk,create:lk}=ee("avatar-group"),ak=lk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),o=(0,t.computed)(()=>({[nk]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:o,avatarGroupRef:r}}});function ok(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Bo=ie(ak,[["render",ok]]),To=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function rk(e,n,a){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const o=e[i],c=a(o,n);if(c===1)return i;c===2?l=i+1:c===3&&(r=i-1)}return i}var{componentName:ik,create:sk}=ee("list"),Qi=document.documentElement.clientHeight||document.body.clientHeight||667,ck=sk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Qi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),o=(0,t.computed)(()=>Math.min(e.containerHeight,Qi)),c=(0,t.computed)(()=>Math.ceil(o.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+c.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[ik]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),u=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let v=0;v<i.list.length;++v)i.cachePositions[v]={index:v,height:e.height,top:v*e.height,bottom:(v+1)*(e.height+e.margin),dValue:0}},y=()=>{let v=r.value.childNodes;v=Array.from(v).filter(g=>g.nodeType===1);const f=v[0];v.forEach((g,b)=>{if(!g)return;const{height:E}=qe(g),V=i.cachePositions[b+i.start].height-E;V&&(i.cachePositions[b+i.start].bottom-=V,i.cachePositions[b+i.start].height=E,i.cachePositions[b+i.start].dValue=V)});let m=0;f&&(m=i.start);const S=i.cachePositions.length;let B=i.cachePositions[m].dValue;i.cachePositions[m].dValue=0;for(let g=m+1;g<S;++g){const b=i.cachePositions[g];i.cachePositions[g].top=i.cachePositions[g-1].bottom,i.cachePositions[g].bottom=i.cachePositions[g].bottom-B,b.dValue!==0&&(B+=b.dValue,b.dValue=0)}i.phantomHeight=i.cachePositions[S-1].bottom},A=(v=0)=>{let f=rk(i.cachePositions,v,(m,S)=>{const B=m.bottom;return B===S?To.eq:B<S?To.lt:To.gt});return i.cachePositions[f].bottom<v&&(f+=1),f},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,a.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},w=()=>{const v=a.value?.scrollTop,{originStartIndex:f}=i,m=A(v);m!==f&&(i.originStartIndex=m,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(v>i.scrollTop?"scroll-up":"scroll-down",v),i.scrollTop=v};return(0,t.watch)(()=>e.listData,v=>{if(i.list=v.slice(),i.list.length===v.length)p(),y();else{k();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&y()}),{...(0,t.toRefs)(i),list:a,phantom:l,actualContent:r,getTransform:u,visibleData:h,classes:d,getContainerHeight:o,handleScrollEvent:w}}});function uk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...o)=>e.handleScrollEvent&&e.handleScrollEvent(...o)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:o},[(0,t.renderSlot)(e.$slots,"default",{item:o,index:c+e.start})]))),128))],4)],38)}var Vo=ie(ck,[["render",uk]]),{componentName:dk,create:fk}=ee("circleprogress"),mk=fk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[dk]:!0})),i=(0,t.computed)(()=>{const c=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${c} 0 90 a 45 45 0 1, ${c} 0 -90`}),o=(0,t.computed)(()=>$e(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let c=283,s=c*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${c}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:o,stop:(0,t.computed)(()=>{if(!$e(e.color))return;let c=e.color;const s=Object.keys(c).sort((h,u)=>parseFloat(h)-parseFloat(u));let d=[];return s.map((h,u)=>{let p={key:"",value:""};p.key=h,p.value=c[h],d.push(p)}),d}),slotDefault:a,refRandomId:l}}}),pk={viewBox:"0 0 100 100"},hk=["id"],gk=["offset","stop-color"],yk=["d","stroke-width"],bk=["d","stroke","stroke-linecap","stroke-width"],vk={class:"fox-circleprogress-text"},Sk={key:0};function kk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",pk,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:c,offset:o.key,"stop-color":o.value},null,8,gk))),128))],8,hk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,yk),(0,t.createElementVNode)("path",{class:"fox-circleprogress-hover",style:(0,t.normalizeStyle)(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,bk)])),(0,t.createElementVNode)("div",vk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",Sk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Eo=ie(mk,[["render",kk]]),{componentName:wk,create:Ck}=ee("noticebar"),Nk=Ck({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:re.Notice,CircleClose:re.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,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}),o=(0,t.computed)(()=>({[wk]:!0})),c=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":c.value,[i.animationClass]:!0})),d=(0,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}),h=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),u=(0,t.computed)(()=>{let b={};if(e.complexAm)b={transform:`translateY(${i.distance}px)`};else if(i.animate){let E=~~(e.height/e.speed/4);b={transition:`all ${E==0?~~(e.height/e.speed):E}s`,"margin-top":`-${e.height}px`}}return b});(0,t.watch)(()=>e.text,b=>{p(b)}),(0,t.watch)(()=>e.list,b=>{i.scrollList=[...b]});const p=b=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const E=l.value.getBoundingClientRect().width,V=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?V>E:e.scrollable,i.isCanScroll?(i.wrapWidth=E,i.offsetWidth=V,i.duration=V/e.speed,i.animationClass="play"):i.animationClass=""},0)},y=b=>{n("click",b)},A=b=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",b)},k=b=>{i.firstRound=!1,n("across-end",b),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},w=()=>{v(),i.timer=setInterval(v,~~(e.height/e.speed/4*1e3)+e.standTime)},v=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},f=()=>{i.timer=setInterval(()=>{let b=100;for(let E=0;E<b;E++)m(E,!(E<b-1))},e.standTime+100*e.speed)},m=(b,E)=>{setTimeout(()=>{i.distance-=e.height/100,E&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},b*e.speed)},S=b=>{n("click",b)},B=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(a.default?g(a.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():w()},e.standTime)):p(e.text)}),(0,t.watch)(()=>a.default?a.default():[],b=>{e.direction==="vertical"&&a.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),g(b))});const g=b=>{b&&b.length>0&&(i.scrollList=b[0].children)};return(0,t.onActivated)(()=>{i.keepAlive&&(i.keepAlive=!1)}),(0,t.onDeactivated)(()=>{i.keepAlive=!0,clearInterval(i.timer)}),(0,t.onUnmounted)(()=>{clearInterval(i.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(i),isEllipsis:c,classes:o,barStyle:d,contentStyle:h,horseLampStyle:u,wrap:l,content:r,handleClick:y,onClickIcon:A,onAnimationEnd:k,go:S,handleClickIcon:B,slots:a,toPxString:he,wrapContentClass:s}}}),Ak={key:0,class:"fox-noticebar__page-lefticon"},Bk={ref:"wrap",class:"fox-noticebar__page-wrap"},Tk={class:"showNotica"},Vk=["onClick"];function Ek(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Notice"),c=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ak,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Bk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",Tk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:h,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:h,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:u=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:h},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,Vk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var $o=ie(Nk,[["render",Ek]]),$k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2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g==",{componentName:W2,create:qk,scope:Pk}=ee("empty"),xk={empty:$k,error:Dk,network:Ik},Mk=qk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ye.useFoxI18n)(Pk),a=n(e,["description"]),{image:l,imageSize:r}=(0,t.toRefs)(e),i=(0,t.computed)(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),o=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:xk[l.value];return{...a,imageUrl:o,imgStyle:i}}}),zk={class:"fox-empty"},Rk=["src"],Fk={key:1,class:"fox-empty-description"};function Lk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",zk,[(0,t.createElementVNode)("view",{class:"fox-empty-image",style:(0,t.normalizeStyle)(e.imgStyle)},[e.$slots.image?(0,t.renderSlot)(e.$slots,"image",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.imageUrl?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"img",src:e.imageUrl},null,8,Rk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Fk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Do=ie(Mk,[["render",Lk]]),{create:Ok,scope:Kk}=ee("video"),Uk=Ok({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(Kk),l=(0,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}),r=(0,t.ref)(null),i=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,g=>{g.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,g=>{l.state.isMuted=g?g.muted:!1},{immediate:!0});const o=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),A(),l.showToolbox?c():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",p),l.videoElm.addEventListener("timeupdate",wn(u,1e3)))},c=()=>{const g=r.value,b=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=g,l.progressBar.progressElm=b,l.progressBar.pos=b.getBoundingClientRect(),l.videoSet.progress.width=Math.round(b.getBoundingClientRect().width)},s=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{h()}),l.videoElm.addEventListener("timeupdate",wn(u,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},d=g=>{let b=[];const E=Math.floor(g/3600);E>0&&(E<10?b.push(`0${E}`):b.push(`${E}`));const V=Math.floor(g%3600/60);V<10?b.push(`0${V}`):b.push(`${V}`);const N=Math.round(g%3600%60);return N<10?b.push(`0${N}`):b.push(`${N}`),b.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},u=()=>{const g=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*g),l.videoSet.totalTime=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},p=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},y=()=>{l.state.isError=!0},A=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},w=()=>{},v=g=>{let b=g.targetTouches[0].pageX-l.progressBar.pos.left;b<=0&&(b=0),b>=l.videoSet.progress.width&&(b=l.videoSet.progress.width),l.videoSet.progress.current=b;let E=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(E,l.videoElm.duration)},f=g=>{let b=g.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=b;let E=b/l.videoSet.progress.width;l.videoElm.duration&&m(E,l.videoElm.duration)},m=(g,b)=>{l.videoElm.currentTime=Math.floor(g*b)},S=()=>{l.state.isError=!1,o()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{o()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:w,touchSlidMove:v,touchSlidEnd:f,retry:S,fullScreen:B,t:a}}}),Hk={class:"fox-video",ref:"videocon"},jk=["muted","autoplay","loop","poster","controls","preload"],Wk=["src","type"],Yk={class:"fox-video-controller__now"},Xk={class:"fox-video-controller__progress"},Qk={class:"fox-video-controller__progress-value",ref:"progressBar"},Gk={class:"fox-video-controller__played",ref:"playedBar"},_k={class:"fox-video-controller__total"},Zk={class:"fox-video-error"},Jk={class:"fox-video-error-tip"};function ew(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Hk,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...o)=>e.handleError&&e.handleError(...o))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Wk)],40,jk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...o)=>e.play&&e.play(...o))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...o)=>e.play&&e.play(...o))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...o)=>e.play&&e.play(...o))}),(0,t.createElementVNode)("div",Yk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Xk,[(0,t.createElementVNode)("div",Qk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(o=>e.touchSlidMove(o),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(o=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(o=>e.touchSlidEnd(o),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Gk,null,512)],512)]),(0,t.createElementVNode)("div",_k,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...o)=>e.handleMuted&&e.handleMuted(...o))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...o)=>e.fullScreen&&e.fullScreen(...o))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Zk,[(0,t.createElementVNode)("p",Jk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...o)=>e.retry&&e.retry(...o))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Et=ie(Uk,[["render",ew]]),Gi=Symbol("fox-steps"),{create:tw,componentName:nw}=ee("steps"),lw=tw({props:{direction:{type:[String],default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const l=(0,t.computed)(()=>{const i=nw;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return _t(Gi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},a.default?.())}}),Io=lw,{create:aw,componentName:ow}=ee("step"),rw=aw({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:a}=Zt(Gi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=a.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),o=(0,t.computed)(()=>{const s=ow;return{[s]:!0,[`${s}-${i.value}`]:!0}}),c=()=>{n.onEmit(a.value)};return{...(0,t.toRefs)(l),index:a,classes:o,handleClickStep:c}}}),iw={class:"fox-step-head"},sw={class:"fox-step-icon-inner"},cw={key:1,class:"fox-step-inner"},uw={class:"fox-step-main"},dw={class:"fox-step-title"},fw={key:0},mw={key:0,class:"fox-step-content"},pw=["innerHTML"];function hw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...o)=>e.handleClickStep&&e.handleClickStep(...o))},[(0,t.createElementVNode)("view",iw,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",sw,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",cw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",uw,[(0,t.createElementVNode)("view",dw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",fw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",mw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,pw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var qo=ie(rw,[["render",hw]]),_i=Symbol("fox-swiper"),{create:gw,componentName:Po}=ee("swiper"),yw=gw({props:{width:{type:[Number,String],default:()=>window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:[Boolean],default:!1},paginationColor:{type:[String],default:"#fff"},loop:{type:[Boolean],default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:[Boolean],default:!0},isPreventDefault:{type:[Boolean],default:!0},isStopPropagation:{type:[Boolean],default:!0}},emits:["change"],setup(e,{emit:n,slots:a,expose:l}){const r=(0,t.ref)(),i=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,style:{}}),o=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:c}=_t(_i,{props:e,size:o}),s=at(),d=(0,t.computed)(()=>({[Po]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const R=Po;return{[`${R}-inner`]:!0,[`${R}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const R=Po;return{[`${R}-pagination`]:!0,[`${R}-pagination-vertical`]:h.value}}),y=(0,t.computed)(()=>h.value?s.deltaY.value:s.deltaX.value),A=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>c.value.length),w=(0,t.computed)(()=>k.value*o.value),v=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-o.value*k.value:0),f=(0,t.computed)(()=>(i.active+k.value)%k.value),m=()=>{let R=0;R=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${h.value?"Y":"X"}(${R}px)`,[h.value?"height":"width"]:`${o.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},S=(R,X=0)=>{let P=R*o.value;e.loop||(P=Math.min(P,-v.value));let _=X-P;return e.loop||(_=Ye(_,v.value,0)),_},B=R=>{const{active:X}=i;return R?e.loop?Ye(X+R,-1,k.value):Ye(X+R,0,k.value-1):X},g=({pace:R=0,offset:X=0,isEmit:P=!1})=>{if(k.value<=1)return;const{active:_}=i,te=B(R),oe=S(te,X);if(e.loop){if(c.value[0]&&oe!==v.value){const Q=oe<v.value;c.value[0].setOffset(Q?w.value:0)}if(c.value[k.value-1]&&oe!==0){const Q=oe>0;c.value[k.value-1].setOffset(Q?-w.value:0)}}i.active=te,i.offset=oe,P&&_!==i.active&&n("change",f.value),m()},b=()=>{i.moving=!0,i.active<=-1&&g({pace:k.value}),i.active>=k.value&&g({pace:-k.value})},E=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},V=R=>{b(),s.reset(),Ge(()=>{Ge(()=>{i.moving=!1,g({pace:R,isEmit:!0})})})},N=()=>{V(-1)},C=()=>{V(1)},M=R=>{b(),s.reset(),Ge(()=>{i.moving=!1;let X=0;e.loop&&k.value===R?X=i.active===0?0:R:X=R%k.value,g({pace:X-i.active,isEmit:!0})})},j=()=>{const R=de(e.autoPlay);R<=0||k.value<=1||(E(),i.autoplayTimer=setTimeout(()=>{C(),j()},R))},$=(R=+e.initPage)=>{E(),i.rect=r.value.getBoundingClientRect(),R=Math.min(k.value-1,R),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=R,i.offset=S(i.active),i.moving=!0,m(),j()},z=R=>{e.isPreventDefault&&R.preventDefault(),e.isStopPropagation&&R.stopPropagation(),e.touchable&&(s.start(R),i.touchTime=Date.now(),E(),b())},x=R=>{e.touchable&&i.moving&&(s.move(R),A.value&&g({offset:y.value}))},F=R=>{if(!e.touchable||!i.moving)return;const X=y.value/(Date.now()-i.touchTime);if((Math.abs(X)>.3||Math.abs(y.value)>+(o.value/2).toFixed(2))&&A.value){let P=0;const _=h.value?s.offsetY.value:s.offsetX.value;e.loop?P=_>0?y.value>0?-1:1:0:P=-Math[y.value>0?"ceil":"floor"](y.value/o.value),g({pace:P,isEmit:!0})}else y.value&&g({pace:0});i.moving=!1,m(),j()};return l({prev:N,next:C,to:M}),(0,t.onDeactivated)(()=>{E()}),(0,t.onBeforeUnmount)(()=>{E()}),(0,t.watch)(()=>e.initPage,R=>{(0,t.nextTick)(()=>{$(Number(R))})}),(0,t.watch)(()=>c.value.length,()=>{(0,t.nextTick)(()=>{$()})}),(0,t.watch)(()=>e.autoPlay,R=>{de(R)>0?j():E()}),{state:i,children:c,classes:d,classesInner:u,classesPagination:p,container:r,activePagination:f,onTouchStart:z,onTouchMove:x,onTouchEnd:F}}});function bw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children.length,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===c?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===c}),key:c},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var $t=ie(yw,[["render",bw]]),{create:vw,componentName:Sw}=ee("swiper-item"),kw=vw({setup(e,{slots:n,expose:a}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[Sw]:!0})),i=s=>{l.offset=s},{parent:o}=Zt(_i,{setOffset:i}),c=(0,t.computed)(()=>{const s={},d=o?.props.direction;return o?.size.value&&(s[d==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return a({setOffset:i}),{style:c,classes:r}}});function ww(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Dt=ie(kw,[["render",ww]]),Zi={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:Cw}=ee("image-preview-item"),Nw=Cw({props:{...Zi,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:{[Et.name]:Et,[Dt.name]:Dt},setup(e,{emit:n}){const a=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=at(),r=(0,t.computed)(()=>{const{rootWidth:V,rootHeight:N}=e,C=N/V;return a.imageRatio>C}),i=(0,t.computed)(()=>{const V=e.image;if(V&&V.src){const{scale:N,moveX:C,moveY:M,moving:j,zooming:$}=a,z={transitionDuration:$||j?"0s":".3s"};return N!==1&&(z.transform=`scale(${N}, ${N}) translate(${C/N}px, ${M/N}px)`),z}return{}}),o=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:N}=e,C=r.value?N/a.imageRatio:V;return Math.max(0,(a.scale*C-V)/2)}return 0}),c=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:N}=e,C=r.value?N:V*a.imageRatio;return Math.max(0,(a.scale*C-N)/2)}return 0}),s=V=>{const{naturalWidth:N,naturalHeight:C}=V.target;a.imageRatio=C/N},d=()=>{h(1),a.moveX=0,a.moveY=0},h=V=>{V=Ye(V,+e.minZoom,+e.maxZoom+1),V!==a.scale&&(a.scale=V,n("scale",{scale:V,index:e.initNo}))},u=()=>{h(a.scale>1?1:2),a.moveX=0,a.moveY=0},p=V=>Math.sqrt((V[0].clientX-V[1].clientX)**2+(V[0].clientY-V[1].clientY)**2);let y,A,k,w,v,f,m;const S=V=>{const{touches:N}=V,{offsetX:C}=l;l.start(V),m=N.length,y=a.moveX,A=a.moveY,f=Date.now(),a.moving=m===1&&a.scale!==1,a.zooming=m===2&&!C.value,a.zooming&&(k=a.scale,w=p(V.touches))},B=V=>{const{touches:N}=V;if(l.move(V),(a.moving||a.zooming)&&ql(V,!0),a.moving){const{deltaX:C,deltaY:M}=l,j=C.value+y,$=M.value+A;a.moveX=Ye(j,-o.value,o.value),a.moveY=Ye($,-c.value,c.value)}if(a.zooming&&N.length===2){const C=p(N);h(k*C/w)}},g=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:V,offsetY:N}=l,C=Date.now()-f,M=250,j=5;V.value<j&&N.value<j&&C<M&&(v?(clearTimeout(v),v=null,u()):v=setTimeout(()=>{e.contentClose&&n("close"),v=null},M))},b=V=>{let N=!1;(a.moving||a.zooming)&&(N=!0,a.moving&&y===a.moveX&&A===a.moveY&&(N=!1),V.touches.length||(a.zooming&&(a.moveX=Ye(a.moveX,-o.value,o.value),a.moveY=Ye(a.moveY,-c.value,c.value),a.zooming=!1),a.moving=!1,y=0,A=0,k=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),ql(V,N),g(),l.reset()},E=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,V=>{V||d()}),{...(0,t.toRefs)(a),onTouchStart:S,onTouchMove:B,onTouchEnd:b,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:E}}}),Aw=["src"];function Bw(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-video"),c=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(c,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,Aw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(o,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Tw=ie(Nw,[["render",Bw]]),{create:Vw}=ee("image-preview"),Ew=Vw({props:{...Zi,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:Tw,CircleClose:re.CircleClose,[Ce.name]:Ce,[$t.name]:$t},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),r=(0,t.computed)(()=>{const h="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${h}-right`:`${h}-left`}`}),i=(0,t.computed)(()=>pn(e.videos)?[].concat(e.videos).concat(e.images):e.images),o=h=>{h!==l.active&&(l.active=h,n("change",l.active))},c=()=>{ji(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(a.value){const h=qe(a.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(o(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&o(h)}),(0,t.onMounted)(()=>{o(e.initNo)}),{swipeRef:a,...(0,t.toRefs)(l),onClose:c,mergeImages:i,setActive:o,iconClasses:r}}}),$w={class:"fox-image-preview",ref:"swipeRef"},Dw={key:0,class:"fox-image-preview-index"};function Iw(e,n,a,l,r,i){const o=(0,t.resolveComponent)("image-preview-item"),c=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=h=>e.showPop=h),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",$w,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(c,{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:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(h,u)=>((0,t.openBlock)(),(0,t.createBlock)(o,{key:u,video:u<e.videos.length?h:{},image:u>=e.videos.length?h:{},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"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...h)=>e.onClose&&e.onClose(...h))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Ji=ie(Ew,[["render",Iw]]),qw=class{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"},Pw=class{options=new qw;constructor(e){const n=Object.assign(this.options,e),{unmount:a}=Hs(n,{name:"image-preview",components:[Ce,Et,$t,Dt,ut],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{a()})},(0,t.h)(Ji,n))}})})}},bl=e=>new Pw(e);bl.install=e=>{e.use(Ji)};var{create:xw}=ee("countup"),Mw=xw({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","scrollEnd"],setup(e,{emit:n,expose:a}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=V=>{V&&r.value.push(V)},o=(0,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:c,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),v(0)}),(0,t.watch)(()=>e.machinePrizeLevel,V=>{o.prizeLevelTrun=V}),(0,t.watch)(()=>e.initNum,V=>{o.current=V,o.valFlag=!1,u()}),(0,t.watch)(()=>e.endNum,()=>{o.current=e.initNum,o.valFlag=!1,u()});const u=()=>{if(o.valFlag)return!1;c&&(s||d?h!="machine"&&v():(w(),setTimeout(()=>{o.valFlag=!0},300)))},p=()=>{clearInterval(Number(o.timer)),o.timer=null},y=(V,N,C)=>{const M=(V.toString().split(".")[1]||"").length,j=(N.toString().split(".")[1]||"").length,$=Math.pow(10,Math.max(M,j));return C=="-"?Number((V*$-N*$).toFixed(0))/$:Number((V*$+N*$).toFixed(0))/$},A=V=>{let{num_total_len:N,pointNum:C,initDigit1:M,initDigit2:j,sortFlag:$}=o,z=$=="add"||$=="equal"?String(j)[V-(N-C)]:10-Number(String(j)[V-(N-C)]),x=$=="add"||$=="equal"?String(M)[V]:10-Number(String(M)[V]),F=V>N-C-1?-z*100+"%":V<=String(M).length-1?-x*100+"%":0;return F=="-1000%"&&(F=0),F},k=V=>{let{num_total_len:N,pointNum:C,initDigit1:M,initDigit2:j}=o,$=String(j)[V-(N-C)];return V>N-C-1?$||0:V<=String(M).length-1?String(M)[V]:0},w=()=>{let{endNum:V,initNum:N,speed:C,toFixed:M}=e,j=setInterval(()=>{N>V?Number(o.current)<=V||Number(o.current)<=C?(o.current=V.toFixed(M),clearInterval(j),n("scrollEnd"),o.valFlag=!1):o.current=(parseFloat(String(o.current))-parseFloat(String(C))).toFixed(M):Number(o.current)>=V?(o.current=V.toFixed(M),clearInterval(j),n("scrollEnd"),o.valFlag=!1):o.current=(parseFloat(String(o.current))+parseFloat(String(C))).toFixed(M)},e.during)},v=V=>{let{initNum:N,endNum:C,toFixed:M,customBgImg:j}=e;j&&(N=e.customChangeNum);let $,z,x,F;N!=0?(M!=0&&(N=Number(N.toFixed(M))),String(N).indexOf(".")>-1?($=String(N).split(".")[0].length,z=String(N).split(".")[1].length):($=String(N).length,z=0)):($=1,z=0),C!=0?(M!=0&&(C=Number(C.toFixed(M))),String(C).indexOf(".")>-1?(x=String(C).split(".")[0].length,F=String(C).split(".")[1].length):(x=String(C).length,F=0)):(x=1,F=0);let R=$>=x?$:x,X=z>=F?z:F;o.num_total_len=R+X,o.pointNum=X,N>C?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=y(N,C,"-"),o.numberVal=Number(String(N))):N<C?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=y(C,N,"-"),o.numberVal=Number(String(C))):o.sortFlag="equal";var P=1;for(let te=0;te<o.pointNum;te++)P*=10;var _=o.numberVal*P;if(o.relNum=_,M!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(_).length),String(N).indexOf(".")>-1){let te=String(N).split(".");o.initDigit1=Number(te[0]),o.initDigit2=Number(te[1])}else o.initDigit1=N,o.initDigit2=0;s&&!j?(0,t.nextTick)(()=>{if(o.sortFlag=="equal")return!1;let te=r.value[o.num_total_len-1];f(te)}):V!==0&&B()},f=V=>{p();var N=1;o.pointNum!=0&&(N=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{m(V),o.totalCount=y(o.totalCount,N,"-"),o.totalCount<=0&&(p(),n("scrollEnd"),o.valFlag=!1)},e.during)},m=V=>{let N=V.getAttribute("turn-number"),C;if(o.sortFlag=="add"?C=parseInt(String(N))+1:C=parseInt(String(N))-1>=0?parseInt(String(N))-1:9,V.setAttribute("turn-number",String(C)),(V.style.transition=="none 0s ease 0s"||C==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),C==10||o.sortFlag=="reduce"&&C==0){var M=null;V.style.top=`-${o.sortFlag=="add"?C*100:(10-C)*100}%`,V.setAttribute("turn-number","0"),M=setTimeout(()=>{M&&clearTimeout(M),V.style.transition="none",V.style.top="0",S(V,C)},.975*e.during)}else V.style.top=`-${o.sortFlag=="add"?C*100:(10-C)*100}%`;V.style.top=="-100%"&&o.sortFlag=="reduce"&&m(V.previousSibling)},S=(V,N)=>{setTimeout(()=>{N==10&&V.previousSibling&&m(V.previousSibling)},200)},B=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),o.valFlag=!1})})},g=()=>{for(o.notPrize=[];o.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(V)==-1&&o.notPrize.push(V)}};a({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let N=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&g();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let M=N*(C+1+parseFloat(String(V)));o.prizeYPrev.length!=0&&(o.prizeY[C]=o.prizeYPrev[C]);let j=o.prizeYPrev[C]?o.prizeYPrev[C]:0,$=M+j+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(N-j);o.prizeLevelTrun<0&&($+=e.numHeight*o.notPrize[C]),E(C,$,j)},500*C)}});const E=(V,N,C)=>{let M=setInterval(()=>{if(C<=N)C+=10,o.prizeY[V]=parseFloat(String(C));else if(clearInterval(M),M=null,o.finshMachine+=1,o.prizeY[V]=N,o.finshMachine==e.machineNum){let j=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach($=>{let z=$;for(;z>j;)z-=j;o.prizeYPrev.push(z)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scrollEnd",!1),o.valFlag=!1):(n("scrollEnd",!0),o.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{o.current=e.initNum,(0,t.nextTick)(()=>{u()})}),(0,t.onUnmounted)(()=>{p(),o.timer=null}),{...(0,t.toRefs)(o),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:A,turnNumber:k}}}),zw={class:"fox-countup"},Rw=["turn-number"];function Fw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",zw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+c,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[c]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+c,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)==e.num_total_len-e.pointNum?Number(c)*1.5:Number(c)*1.3:Number(c))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[c]*e.numHeight+e.customSpacNum*+String(e.relNum)[c])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})}," . ",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:o,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(c),left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)*1.1:Number(c))+"px"}),"turn-number":e.turnNumber(c)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"dote"+d,class:"fox-countup__number-item__span",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Rw))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,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)):(0,t.createCommentVNode)("",!0)],4)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.current),1)],64))],64))])}var xo=ie(Mw,[["render",Fw]]),Lw=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:Ow,create:Kw}=ee("countdown"),Uw=Kw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Ow]:!0})),i=(0,t.computed)(()=>s(l.restTime)),o=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Lw(e.startTime),l.counting||(l.counting=!0),c()},c=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,A=Math.max(l.handleEndTime-y,0);l.restTime=A,A||(l.counting=!1,u(),n("on-end")),A>0&&c()}}))},s=(y,A)=>{const k=y;let w={d:0,h:0,m:0,s:0,ms:0};const v=1e3,f=60*v,m=60*f,S=24*m;return k>0&&(w.d=k>=v?Math.floor(k/S):0,w.h=Math.floor(k%S/m),w.m=Math.floor(k%m/f),w.s=Math.floor(k%f/v),w.ms=Math.floor(k%v)),A=="custom"?w:d({...w})},d=y=>{let{d:A,h:k,m:w,s:v,ms:f}=y,m=e.format;if(m.includes("DD")?m=m.replace("DD",it(A)):k+=Number(A)*24,m.includes("HH")?m=m.replace("HH",it(k)):w+=Number(k)*60,m.includes("mm")?m=m.replace("mm",it(w)):v+=Number(w)*60,m.includes("ss")?m=m.replace("ss",it(v)):f+=Number(v)*1e3,m.includes("S")){const S=it(f,3).toString();m.includes("SSS")?m=m.replace("SSS",S):m.includes("SS")?m=m.replace("SS",S.slice(0,2)):m.includes("S")&&(m=m.replace("SS",S.slice(0,1)))}return m},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c(),n("on-restart",l.restTime))},u=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(u(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?o():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let A=s(y,"custom");n("update:modelValue",A),n("input",A)}),(0,t.watch)(()=>e.paused,(y,A)=>{A?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c()),n("on-restart",l.restTime)):l.counting&&u()}),(0,t.watch)(()=>e.endTime,y=>{o()}),(0,t.watch)(()=>e.startTime,y=>{o()}),{...(0,t.toRefs)(e),slots:a,classes:r,start:h,pause:u,renderTime:i,reset:p}}}),Hw=["innerHTML"];function jw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Hw))],2)}var Mo=ie(Uw,[["render",jw]]),{create:Ww}=ee("badge"),Yw=Ww({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){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,a=e.max;return typeof n=="number"&&typeof a=="number"&&a<n?`${a}+`:n})}}}),Xw={class:"fox-badge"},Qw=["textContent"];function Gw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Xw,[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-badge__icon",style:(0,t.normalizeStyle)(e.stl)},[(0,t.renderSlot)(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),(0,t.renderSlot)(e.$slots,"default"),(0,t.withDirectives)((0,t.createElementVNode)("view",{textContent:(0,t.toDisplayString)(e.content),class:(0,t.normalizeClass)(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:(0,t.normalizeStyle)(e.stl)},null,14,Qw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var zo=ie(Yw,[["render",Gw]]),{componentName:_w,create:Zw}=ee("tag"),Jw=Zw({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:re.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const o=_w;return{[o]:!0,[`${o}--${e.type}`]:!0,[`${o}--plain`]:e.plain,[`${o}--round`]:e.round,[`${o}--mark`]:e.mark,[`${o}--symbol`]:e.symbol,[`${o}--text`]:e.text,[`${o}--light`]:e.light}}),getStyle:()=>{const o={};return e.textColor?o.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(o.color=e.color),e.plain?(o.background="#fff",o["border-color"]=e.color):!e.text&&e.color&&(o.background=e.color),o},onClose:o=>{o.stopPropagation(),n("close",o)},onClick:o=>{n("click",o)}}}});function eC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Ro=ie(Jw,[["render",eC]]),{create:tC}=ee("popover"),nC=tC({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:n}){const a=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),o=(0,t.ref)();const c=(0,t.computed)(()=>{const f="fox-popover-arrow",m=e.location;return`${f} ${f}-${m.split("-")[0]} ${f}--${m}`}),s=(0,t.computed)(()=>{const f={},{bgColor:m,arrowOffset:S,location:B}=e,g=B.split("-")[0],b=B.split("-")[1],E=16;return m&&(f[`border${d(g)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(g)&&(b||(f.left=`calc(50% + ${S}px)`),b=="start"&&(f.left=`${E+S}px`),b=="end"&&(f.right=`${E-S}px`)),["left","right"].includes(g)&&(b||(f.top=`calc(50% - ${S}px)`),b=="start"&&(f.top=`${E-S}px`),b=="end"&&(f.bottom=`${E+S}px`))),f}),d=f=>(f=f.toLowerCase(),f=f.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),f),h=(0,t.computed)(()=>{let f={};if(!i.value||!o.value)return{};const m=o.value.width,S=o.value.height,{width:B,height:g,left:b,top:E}=i.value,{location:V,offset:N}=e,C=V.split("-")[0],M=V.split("-")[1];let j=0,$=0;return pn(N)&&N.length==2&&(j+=Number(N[1]),$+=Number(N[0])),B&&(["bottom","top"].includes(C)&&(f.top=`${E+(C=="bottom"?g+j:-(S+j))}px`,M||(f.left=`${-(m-B)/2+b+$}px`),M=="start"&&(f.left=`${b+$}px`),M=="end"&&(f.left=`${i.value.right+$}px`)),["left","right"].includes(C)&&(f.left=`${b+(C=="left"?-(m+j):B+j)}px`,M||(f.top=`${E-S/2+g/2-4+$}px`),M=="start"&&(f.top=`${E+$}px`),M=="end"&&(f.top=`${E+g+$}px`))),f}),u=(0,t.computed)(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=qe(a.value);e.targetId&&(f=qe(document.querySelector(`#${e.targetId}`))),i.value=f,setTimeout(()=>{o.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,f=>{r.value=f,f?(window.addEventListener("touchstart",v,!0),p()):window.removeEventListener("touchstart",v,!0)});const y=f=>{n("update",f),n("update:visible",f)},A=()=>{y(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},w=(f,m)=>{!f.disabled&&n("choose",f,m),e.closeOnClickAction&&k()},v=f=>{const m=a.value,S=l.value;let B=m&&!m.contains(f.target);if(e.targetId){const g=document.querySelector(`#${e.targetId}`);B=g&&!g.contains(f.target)}B&&S&&!S.contains(f.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:A,popoverArrow:c,closePopover:k,chooseItem:w,popoverRef:a,popoverContentRef:l,getRootPosition:h,customStyle:u,popoverArrowStyle:s,renderIcon:xr}}}),lC={ref:"popoverContentRef",class:"fox-popover-content-group"},aC=["onClick"],oC={class:"fox-popover-menu-item-name"};function rC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...c)=>e.openPopover&&e.openPopover(...c))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(o,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.showPopup=c),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",lC,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(c,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([c.className,c.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(c,s),["stop"])},[c.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(c.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",oC,(0,t.toDisplayString)(c.name),1)],10,aC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var cn=ie(nC,[["render",rC]]),iC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:sC}=ee("skeleton"),cC=sC(iC({[sn.name]:sn})),uC={key:0},dC={key:1,class:"fox-skeleton"},fC={key:0,class:"fox-skeleton-animation"},mC={class:"fox-skeleton-content"};function pC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",dC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",fC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",mC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",uC,[(0,t.renderSlot)(e.$slots,"default")]))}var Fo=ie(cC,[["render",pC]]),{create:hC,componentName:gC}=ee("collapse"),yC=hC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),r=(0,t.computed)(()=>({[gC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,h=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,h)},o=s=>{e.accordion?l.value===s?i("",s,!1):i(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?i(l.value.filter(d=>d!==s),s,!1):i(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},c=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:o,isExpanded:c}),{collapseDom:a,classes:r}}});function bC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Lo=ie(yC,[["render",bC]]),{create:vC,componentName:SC}=ee("collapse-item"),kC=vC({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:re.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const u=SC;return{[u]:!0,[u+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),o=(0,t.ref)(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},s=()=>{i.value&&(o.value="auto")},d=()=>{o.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const u=a.value?.offsetHeight;o.value=u?`${u}px`:"auto"})})},h=()=>{const u=a.value?.offsetHeight;o.value=u?`${u}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.value="0px"})})};return(0,t.watch)(i,u=>{u?d():h()}),{classes:r,renderIcon:xr,wrapperRef:n,contentRef:a,open:d,toggle:c,wrapperHeight:o,expanded:i,onTransitionEnd:s}}}),wC={class:"fox-collapse-item__title-main"},CC={class:"fox-collapse-item__title-main-value"},NC=["innerHTML"],AC={key:2,class:"fox-collapse-item__title-label"},BC={key:0,class:"fox-collapse-item__title-sub"},TC=["innerHTML"],VC={key:0,class:"fox-collapse__item-extraWrapper"},EC={class:"fox-collapse__item-extraWrapper__extraRender"},$C={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function DC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...o)=>e.toggle&&e.toggle(...o))},[(0,t.createElementVNode)("view",wC,[(0,t.createElementVNode)("view",CC,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,NC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",AC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",BC,[(0,t.renderSlot)(e.$slots,"value")])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,TC)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:(0,t.normalizeStyle)({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?((0,t.openBlock)(),(0,t.createElementBlock)("view",VC,[(0,t.createElementVNode)("div",EC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o))},[(0,t.createElementVNode)("view",$C,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Oo=ie(kC,[["render",DC]]),IC=(0,t.defineComponent)({setup(e){return()=>(0,t.h)("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:qC,create:PC,scope:xC}=ee("table"),MC=PC({components:{RenderColumn:IC,DownArrow:re.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:l}=(0,ye.useFoxI18n)(xC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[qC]:!0})),o=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),c=y=>y.stylehead?y.stylehead:"",s=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(A=>A.key===y)[0],h=y=>{const A=e.columns.filter(k=>k.key===y);return A[0].stylecolumn?A[0].stylecolumn:""},u=y=>{y.sorter&&(n("sorter",y),r.curData=typeof y.sorter=="function"?r.curData.sort(y.sorter):y.sorter==="default"?r.curData.sort():r.curData)},p=()=>e.columns.map(y=>[y.key,y.render]);return(0,t.watch)(()=>e.data,y=>{r.curData=y.slice()}),{...(0,t.toRefs)(r),classes:i,cellClasses:o,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:u,sortDataItem:p,t:l,stylehead:c,stylecolumn:s}}}),zC={class:"fox-table__main__head"},RC={class:"fox-table__main__head__tr"},FC=["onClick"],LC={class:"fox-table__main__body"},OC={key:1},KC={key:0,class:"fox-table__nodata"},UC={key:0,class:"fox-table__nodata__text"},HC={key:1,class:"fox-table__summary"},jC=["innerHTML"];function WC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("DownArrow"),c=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",zC,[(0,t.createElementVNode)("view",RC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,FC))),128))])]),(0,t.createElementVNode)("view",LC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,h])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof h=="function"?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",OC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[(0,t.renderSlot)(e.$slots,"nodata"),e.$slots.nodata?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",UC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",HC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,jC)])):(0,t.createCommentVNode)("",!0)],2)}var Ko=ie(MC,[["render",WC]]),{componentName:YC,create:XC}=ee("ellipsis"),QC=XC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),o=(0,t.reactive)({exceeded:!1,expanded:!1}),c=(0,t.computed)(()=>({[YC]:!0}));(0,t.watch)(()=>e.content,(k,w)=>{k!=w&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!a.value)return;const k=window.getComputedStyle(a.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(v=>{l.style.setProperty(v,k.getPropertyValue(v))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const w=p(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);r=Math.floor(w*(Number(e.rows)+.5)+p(k.paddingTop)+p(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)o.exceeded=!1,document.body.removeChild(l);else{o.exceeded=!0;const k=e.content.length,w=Math.floor((0+k)/2);i.value=e.direction==="middle"?u([0,w],[w,k]):h(0,k),document.body.removeChild(l)}},h=(k,w)=>{const v=o.expanded?e.collapseText:e.expandText,f=e.content.length;if(w-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(w,f)};const m=Math.round((k+w)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+v:l.innerText=v+e.symbol+e.content.slice(m,f),l.offsetHeight<=r?e.direction==="end"?h(m,w):h(k,m):e.direction==="end"?h(k,m):h(m,w)},u=(k,w)=>{const v=o.expanded?e.collapseText:e.expandText,f=e.content.length;if(k[1]-k[0]<=1&&w[1]-w[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(w[1],f)};const m=Math.floor((k[0]+k[1])/2),S=Math.ceil((w[0]+w[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+v+e.symbol+e.content.slice(S,f),l.offsetHeight<=r?u([m,k[1]],[w[0],S]):u([k[0],m],[S,w[1]])},p=k=>{if(!k)return 0;const w=k.match(/^\d*(\.\d*)?/);return w?Number(w[0]):0},y=k=>{k==1?(o.expanded=!0,n("change","expand")):(o.expanded=!1,n("change","collapse"))},A=()=>{n("click")};return{...(0,t.toRefs)(o),root:a,ellipsis:i,classes:c,clickHandle:y,handleClick:A}}}),GC={key:0},_C={key:1},ZC={key:2};function JC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...o)=>e.handleClick&&e.handleClick(...o)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",GC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",_C,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(o=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",ZC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(o=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Uo=ie(QC,[["render",JC]]),{componentName:e2,create:t2}=ee("animate"),n2=t2({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let o=(0,t.computed)(()=>({"fox-animate__container":!0,[`${e2}-${a.value}`]:r.value==="initial"||i.clicked?a.value:!1,loop:l.value}));const c=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:o,handleClick:c}}}),l2={class:"fox-animate"};function a2(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",l2,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...o)=>e.handleClick&&e.handleClick(...o)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ho=ie(n2,[["render",a2]]),{componentName:o2,create:r2}=ee("watermark"),i2=r2({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:o,height:c,rotate:s,image:d,imageWidth:h,imageHeight:u,content:p,fontStyle:y,fontWeight:A,fontColor:k,fontSize:w,fontFamily:v}=e,f=()=>{const S=document.createElement("canvas"),B=window.devicePixelRatio,g=S.getContext("2d"),b=`${(r+o)*B}px`,E=`${(i+c)*B}px`,V=o*B,N=c*B;if(S.setAttribute("width",b),S.setAttribute("height",E),g)if(d){g.translate(V/2,N/2),g.rotate(Math.PI/180*Number(s));const C=new Image;C.crossOrigin="anonymous",C.referrerPolicy="no-referrer",C.src=d,C.onload=()=>{g.drawImage(C,-h*B/2,-u*B/2,h*B,u*B),g.restore(),a.base64Url=S.toDataURL()}}else p&&(g.textBaseline="middle",g.textAlign="center",g.translate(V/2,N/2),g.rotate(Math.PI/180*Number(s)),g.font=`${y} normal ${A} ${Number(w)*B}px/${N}px ${v}`,g.fillStyle=k,g.fillText(p,0,0),g.restore(),a.base64Url=S.toDataURL());else throw new Error("当前环境不支持Canvas")};f(),(0,t.watch)(()=>[l,r,i,o,c,s,d,h,u,p,y,A,k,w,v],()=>{f()});const m=(0,t.computed)(()=>{const S=o2;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(a),classes:m}}});function s2(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var jo=ie(i2,[["render",s2]]);function c2(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}var{componentName:u2,create:d2}=ee("trend-arrow"),f2=d2({components:{TriangleUp:re.TriangleUp,TriangleDown:re.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),a=(0,t.computed)(()=>({[u2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:o,showSign:c,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${c&&i!==0?n.rateTrend?"+":"-":""}${c2(Number(d),o)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:o,syncTextColor:c,textColor:s,rate:d}=e;return{color:d===0?s:c?n.rateTrend?o:i:s}});return{...(0,t.toRefs)(n),classes:a,calcRate:l,calcStyle:r}}});function m2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("TriangleUp"),c=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(o,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(c,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Wo=ie(f2,[["render",m2]]),{create:p2}=ee("tour"),h2=p2({components:{[cn.name]:cn,Close:re.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),r=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:h,maskWidth:u,maskHeight:p}=e,{width:y,height:A,left:k,top:w}=l.value,v=[k+y/2,w+A/2],f=Number(u||y),m=Number(p||A);return{width:`${f+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${v[1]-m/2-+h[0]}px`,left:`${v[0]-f/2-+h[1]}px`}}),o=h=>{h=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,t.nextTick)(()=>{a.showPopup=!0,c()}),n("change",a.active)},c=()=>{l.value=qe(document.querySelector(`#${e.steps[a.active].target}`))},s=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{a.active=0,c()}),(0,t.watch)(()=>e.modelValue,h=>{h&&c(),a.active=0,a.showTour=h,a.showPopup=h}),{...(0,t.toRefs)(a),classes:r,maskStyle:i,changeStep:o,close:s,handleClickMask:d}}}),g2={key:0,class:"fox-tour-content"},y2={key:0,class:"fox-tour-content-top"},b2={class:"fox-tour-content-inner"},v2={class:"fox-tour-content-bottom"},S2={class:"fox-tour-content-bottom-init"},k2={class:"fox-tour-content-bottom-operate"},w2={key:1,class:"fox-tour-content fox-tour-content-tile"},C2={class:"fox-tour-content-inner"};function N2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Close"),c=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(c,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=h=>e.showPopup=h),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",g2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",y2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(o,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",b2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",v2,[(0,t.createElementVNode)("div",S2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",k2,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=h=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...h)=>e.close&&e.close(...h))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=h=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",w2,[(0,t.createElementVNode)("div",C2,(0,t.toDisplayString)(s.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var Yo=ie(h2,[["render",N2]]),{componentName:A2,create:B2}=ee("barrage"),T2=B2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[A2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),o=null;const c=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),u=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,A("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{c.value=[],k()});const y=()=>{p.value=r.value.offsetWidth,a&&A("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),v()},300)},A=m=>{let S=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const B=[];S&&Array.from(S).forEach(g=>{m=="init"?(g.style.opacity="0",B.push(g)):(g.classList="",g.style={})}),m=="init"&&(c.value=B)},k=()=>{o&&(clearTimeout(o),o=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(c.value=[...m])});const w=m=>{const S=h.value%c.value.length;!e.loop&&h.value===c.value.length?c.value.splice(c.value.length,0,m):c.value.splice(S,0,m)},v=()=>{k(),o=setTimeout(()=>{f()},e.frequency)},f=()=>{const m=e.loop?h.value%c.value.length:h.value;let S=document.createElement("view");a&&typeof c.value[m]=="object"?(S=c.value[m],S?.classList?.add("fox-barrage__item")):(S.innerHTML=c.value[m],S.classList.add("fox-barrage__item"),i.value.appendChild(S)),(0,t.nextTick)(()=>{const B=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${u}ms`,S.style.top=m%s.value*(B+d.value)+20+"px",S.style.opacity="1",!a){const g=S.offsetWidth;S.style.width=g+20+"px"}S.addEventListener("animationend",()=>{a?S.classList.remove("move"):i.value.removeChild(S)}),!(!e.loop&&h.value>=c.value.length-1)&&(h.value++,h.value>=c.value.length&&(h.value=0),S.removeEventListener("animationend",()=>{}),v())})};return{classTime:n,classes:l,danmuList:c,dmBody:r,dmContainer:i,add:w}}});function V2(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Xo=ie(T2,[["render",V2]]),{componentName:E2,create:$2,scope:D2}=ee("signature"),I2=$2({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:{FoxButton:At},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:a}){const{toLocaleRefs:l}=(0,ye.useFoxI18n)(D2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),o=(0,t.ref)(null),c=(0,t.computed)(()=>({[E2]:!0,[`${e.customClass}`]:e.customClass})),s=(0,t.reactive)({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),d=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},h=()=>{i.value.addEventListener(s.events[0],u,!1)},u=m=>{m.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),i.value.addEventListener(s.events[1],p,!1),i.value.addEventListener(s.events[2],y,!1),i.value.addEventListener(s.events[3],A,!1)},p=m=>{m.preventDefault();let S=s.isSupportTouch?m.touches[0]:m;n("signing",S);let B=i.value.getBoundingClientRect(),g=S.clientX-B.left,b=S.clientY-B.top;s.ctx.lineTo(g,b),s.ctx.stroke()},y=m=>{m.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},A=m=>{m.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},k=()=>{i.value.addEventListener(s.events[2],y,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},w=()=>{f(i.value)},v=m=>{if(!m)return!0;var S=document.createElement("canvas");return S.width=m.width,S.height=m.height,m?.toDataURL()==S.toDataURL()},f=m=>{let S;switch(e.type){case"png":S=m.toDataURL("image/png");break;case"jpg":S=m.toDataURL("image/jpeg",.8);break}n("confirm",v(m)?"请绘制签名":m,v(m)?"":S)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=o.value.offsetWidth,s.canvasHeight=o.value.offsetHeight,h())}),a({confirm:w,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:o,isCanvasSupported:d,confirm:w,clear:k,classes:c}}}),q2={class:"fox-signature__inner",ref:"wrap"},P2=["height","width"],x2={key:0,class:"fox-signature-unsopport"},M2={class:"fox-signature__toolbar"};function z2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",q2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,P2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",x2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",M2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(o,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=c=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(o,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=c=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Qo=ie(I2,[["render",z2]]),R2=[Kl,Hl,jl,Wl,Ql,Ut,Un,Jl,ea,ta,na,aa,Wn,ia,da,ha,ya,ll,al,ba,rl,il,Sa,wa,bt,Ca,Aa,hl,Ta,Ea,Yt,Xt,Gn,$a,qa,Pa,xa,dt,Ma,za,Hn,vt,jn,Ra,Fa,At,La,Oa,Ka,ut,Ce,Ua,Ha,ja,Wa,Gt,Ya,Xa,Qa,Ga,_a,Za,Ja,eo,to,no,lo,ao,oo,ro,io,so,co,Jt,fl,_n,nl,el,gl,ul,jt,uo,fo,mo,po,ho,go,yo,tn,dl,bo,ko,cl,Vt,No,Ao,sn,Bo,Vo,en,Eo,$o,Do,Et,Io,qo,$t,Dt,Ln,bl,xo,Mo,zo,Ro,cn,Fo,Lo,Oo,Ko,Uo,Ho,jo,Wo,Yo,Xo,Qo],F2=new Us(R2,"4.0.0");T.AbstractPageScopeKey=Fl,T.ActionSheet=ho,T.FoxActionSheet=ho,T.ActionsheetItem=Ta,T.FoxActionsheetItem=Ta,T.ActionsheetPane=hl,T.FoxActionsheetPane=hl,T.Animate=Ho,T.FoxAnimate=Ho,T.Audio=No,T.FoxAudio=No,T.AudioOperate=Ao,T.FoxAudioOperate=Ao,T.Avatar=sn,T.FoxAvatar=sn,T.AvatarGroup=Bo,T.FoxAvatarGroup=Bo,T.BackTop=go,T.FoxBackTop=go,T.Badge=zo,T.FoxBadge=zo,T.Barrage=Xo,T.FoxBarrage=Xo,T.Broadcast=hr,T.BroadcastKey=ze,T.Button=At,T.FoxButton=At,T.ButtonsItem=Jl,T.FoxButtonsItem=Jl,T.Calendar=nl,T.FoxCalendar=nl,T.CalendarItem=ya,T.FoxCalendarItem=ya,T.Cascader=_n,T.FoxCascader=_n,T.CascaderItem=da,T.FoxCascaderItem=da,T.Cell=La,T.FoxCell=La,T.CellGroup=Ka,T.FoxCellGroup=Ka,T.Checkbox=rl,T.FoxCheckbox=rl,T.CheckboxGroup=il,T.FoxCheckboxGroup=il,T.CheckboxItem=Sa,T.FoxCheckboxItem=Sa,T.CircleProgress=Eo,T.FoxCircleProgress=Eo,T.Col=ja,T.FoxCol=ja,T.Collapse=Lo,T.FoxCollapse=Lo,T.CollapseItem=Oo,T.FoxCollapseItem=Oo,T.Content=Wl,T.FoxContent=Wl,T.CountDown=Mo,T.FoxCountDown=Mo,T.CountUp=xo,T.FoxCountUp=xo,T.DataItemsKey=Ft,T.DateItem=ha,T.FoxDateItem=ha,T.DatePicker=el,T.FoxDatePicker=el,T.DateUtils=wt,T.Dialog=tn,T.FoxDialog=tn,T.Divider=Ya,T.FoxDivider=Ya,T.Domain=Cn,T.DomainKey=et,T.DomainProvider=Ra,T.FoxDomainProvider=Ra,T.Drag=yo,T.FoxDrag=yo,T.Dropdown=za,T.FoxDropdown=za,T.Elevator=no,T.FoxElevator=no,T.Ellipsis=Uo,T.FoxEllipsis=Uo,T.Empty=Do,T.FoxEmpty=Do,T.FixedNav=_a,T.FoxFixedNav=_a,T.FloatingButton=Pa,T.FoxFloatingButton=Pa,T.FooterBar=jl,T.FoxFooterBar=jl,T.FoxGrid=Xa,T.Grid=Xa,T.FoxGridItem=Qa,T.GridItem=Qa,T.FoxGroup=Ql,T.Group=Ql,T.FoxHeaderBar=Hl,T.HeaderBar=Hl,T.FoxHintText=bt,T.HintText=bt,T.FoxIcon=Oa,T.Icon=Oa,T.FoxImage=Ua,T.Image=Ua,T.FoxImagePreview=bl,T.ImagePreview=bl,T.FoxIndicator=ro,T.Indicator=ro,T.FoxInfiniteLoading=dl,T.InfiniteLoading=dl,T.FoxInputItem=ta,T.InputItem=ta,T.FoxInputNumber=gl,T.InputNumber=gl,T.FoxInputNumberItem=Ea,T.InputNumberItem=Ea,T.FoxItem=Ut,T.Item=Ut,T.FoxLayout=Ha,T.Layout=Ha,T.FoxLinkItem=Ca,T.LinkItem=Ca,T.FoxList=Vo,T.List=Vo,T.FoxMapping=jn,T.Mapping=jn,T.FoxMenu=Za,T.Menu=Za,T.FoxMenuItem=Ja,T.MenuItem=Ja,T.FoxMessageBox=dt,T.MessageBox=dt,T.FoxMoneyItem=na,T.MoneyItem=na,T.FoxMoreButton=xa,T.MoreButton=xa,T.FoxNavbar=Ga,T.Navbar=Ga,T.FoxNoticeBar=$o,T.NoticeBar=$o,T.FoxNotify=ko,T.Notify=ko,T.FoxNumberKeyboard=mo,T.NumberKeyboard=mo,T.FoxOverLay=ut,T.OverLay=ut,T.FoxPage=Kl,T.Page=Kl,T.FoxPagination=lo,T.Pagination=lo,T.FoxPicker=jt,T.Picker=jt,T.FoxPickerItem=ia,T.PickerItem=ia,T.FoxPopover=cn,T.Popover=cn,T.FoxPopoverDialog=Hn,T.PopoverDialog=Hn,T.FoxPopup=Ce,T.Popup=Ce,T.FoxPopupWrapper=Ma,T.PopupWrapper=Ma,T.FoxPrice=Ln,T.Price=Ln,T.FoxProgress=en,T.Progress=en,T.FoxPullRefresh=bo,T.PullRefresh=bo,T.FoxRadio=ll,T.Radio=ll,T.FoxRadioGroup=al,T.RadioGroup=al,T.FoxRadioItem=ba,T.RadioItem=ba,T.FoxRange=Jt,T.Range=Jt,T.FoxRate=ul,T.Rate=ul,T.FoxRateItem=Aa,T.RateItem=Aa,T.FoxRollingProvider=Fa,T.RollingProvider=Fa,T.FoxRow=Wa,T.Row=Wa,T.FoxRowItem=Un,T.RowItem=Un,T.FoxSearchBar=fl,T.SearchBar=fl,T.FoxShortPassword=uo,T.ShortPassword=uo,T.FoxSideNavBar=io,T.SideNavBar=io,T.FoxSideNavBarItem=so,T.SideNavBarItem=so,T.FoxSignature=Qo,T.Signature=Qo,T.FoxSkeleton=Fo,T.Skeleton=Fo,T.FoxSlotItem=ea,T.SlotItem=ea,T.FoxStep=qo,T.Step=qo,T.FoxSteps=Io,T.Steps=Io,T.FoxStepsBar=qa,T.StepsBar=qa,T.FoxSticky=Gt,T.Sticky=Gt,T.FoxSubSideNavBar=co,T.SubSideNavBar=co,T.FoxSwipe=po,T.Swipe=po,T.FoxSwiper=$t,T.Swiper=$t,T.FoxSwiperItem=Dt,T.SwiperItem=Dt,T.FoxSwitch=cl,T.Switch=cl,T.FoxSwitchItem=wa,T.SwitchItem=wa,T.FoxTabPane=oo,T.TabPane=oo,T.FoxTabbar=eo,T.Tabbar=eo,T.FoxTabbarItem=to,T.TabbarItem=to,T.FoxTable=Ko,T.Table=Ko,T.FoxTabs=ao,T.Tabs=ao,T.FoxTabsBar=Yt,T.TabsBar=Yt,T.FoxTabsContainer=Xt,T.TabsContainer=Xt,T.FoxTabsFrame=$a,T.TabsFrame=$a,T.FoxTabsPane=Gn,T.TabsPane=Gn,T.FoxTag=Ro,T.Tag=Ro,T.FoxText=vt,T.Text=vt,T.FoxTextarea=Wn,T.Textarea=Wn,T.FoxTextareaItem=aa,T.TextareaItem=aa,T.FoxToast=Vt,T.Toast=Vt,T.FoxTour=Yo,T.Tour=Yo,T.FoxTrendArrow=Wo,T.TrendArrow=Wo,T.FoxUploader=fo,T.Uploader=fo,T.FoxVideo=Et,T.Video=Et,T.FoxWaterMark=jo,T.WaterMark=jo,T.InnerPageScopeKey=Rl,T.PriorityPolicy=Ll,T.UniqueID=On,T.ValidateSchema=Sr,T.ValidateSchemaKey=Je,T.browseProperty=Ir,T.cancelRaf=_o,T.clamp=Ye,T.clearNonNumber=Il,T.compareTo=Tl,T.createBroadcast=xt,T.createValidateSchema=Sn,T.debounce=Pe,T.debounceRef=$s,T.decimalLength=mr,T.default=F2,T.defineConfigDomain=wr,T.defineDataItem=Cr,T.defineDomain=Ml,T.defineDomainItemProperty=Ve,T.defineItem=Be,T.definePageState=Nr,T.defineSimpleItem=Fe,T.deleteGlobalValidator=Bs,T.disabledProperty=Dr,T.divide=Bl,T.excludeProps=Ze,T.extend=mt,T.floatData=Ss,T.getGlobalIcons=In,T.getGlobalValidateCheckEvents=yr,T.getGlobalValidateResetEvents=vr,T.getPageContentAreaHeight=Tn,T.getPageContentAreaWidth=Vn,T.getPageFooterAreaHeight=Bn,T.getPageHeaderAreaHeight=An,T.getRootDomain=ht,T.hasSymbol=sr,T.includeProps=ve,T.indexOf=bs,T.injectAbstractPageScope=Ot,T.injectAbstractPageScopeForContent=Er,T.injectAbstractPageScopeForFooterBar=Vr,T.injectAbstractPageScopeForHeaderBar=Tr,T.injectInnerPageScope=Lt,T.integerLength=fr,T.isArray=pn,T.isArrayLike=ur,T.isBrowser=_e,T.isDate=We,T.isDisplayNone=$l,T.isESModule=ms,T.isEmptyString=pe,T.isEqual=De,T.isFunction=hn,T.isHidden=El,T.isMap=cs,T.isNil=Ee,T.isNumberString=yn,T.isObject=$e,T.isPlainObject=fs,T.isPromise=ft,T.isRegExp=Dl,T.isSet=us,T.isString=rr,T.isSubPage=xs,T.isSymbol=ds,T.isTouch=Yn,T.isWindow=cr,T.kebabToPascal=bn,T.lastIndexOf=vs,T.makeArray=ys,T.merge=dr,T.multiply=lr,T.negate=ar,T.nextTick=hs,T.numberFormat=mn,T.objectToString=ir,T.once=Ds,T.overrideGlobalIcons=_s,T.overrideGlobalValidateHandler=Ns,T.padZero=it,T.pascalToKebab=ks,T.preventDefault=ql,T.property=Te,T.provideAbstractPageScope=Br,T.provideInnerPageScope=Ar,T.px2Number=Ps,T.raf=je,T.readonlyProperty=$r,T.setGlobalValidateCheckEvents=Ts,T.setGlobalValidateHandler=Cs,T.setGlobalValidateMessages=Es,T.setGlobalValidateResetEvents=Vs,T.setGlobalValidator=As,T.throttle=wn,T.toBoolean=ke,T.toNumber=de,T.toPadding=Le,T.toPx=ue,T.toPxDesc=qs,T.toPxString=he,T.toTypeString=gn,T.toValue=xe,T.tryTimes=Pl,T.typeOf=pt,T.unNumberFormat=or,T.updatePageState=zl,T.useBroadcast=Mt,T.useDomain=tt,T.useInnerSize=Dn,T.usePageState=Nn,T.usePosition=Gl,T.useRawTouch=Xn,T.useRect=qe,T.useSize=Ul,T.useSlotChildren=Fn,T.useTouch=at,T.valueLength=we});
9
+ `)}}});function yy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var ja=ie(gy,[["render",yy]]),{create:by}=te("sticky"),vy=by({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),o=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),c=(0,t.computed)(()=>r.fixed?{[e.position]:`${i.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!a.value&&!d)return;const p=Me(a),u=l.value,h=Me(u),b=Me(d);r.height=p.height;const C=()=>{let w=!1;if(e.position==="top")w=d?i.value>p.top&&b.bottom>0:i.value>p.top;else{const S=document.documentElement.clientHeight;w=d?b.bottom>0&&S-i.value-h.height>b.top:S-i.value<p.bottom}return w},k=()=>{if(d)if(e.position==="top"){const w=b.bottom-i.value-h.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,S=b.bottom-(w-i.value);return S<0?S:0}return 0};r.transform=k(),r.fixed=C()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Aa(a.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Aa(a.value).removeEventListener("scroll",s)}),{rootRef:a,rootStyle:o,stickyRef:l,stickyStyle:c}}});function Sy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Wa=ie(vy,[["render",Sy]]),{componentName:ky,create:wy}=te("divider"),Cy=wy({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const a=ky;let l={[a]:!0},r={};return e.direction==="horizontal"?r={...l,[`${a}-center`]:n.slots.default,[`${a}-left`]:e.contentPosition==="left",[`${a}-right`]:e.contentPosition==="right",[`${a}-dashed`]:e.dashed,[`${a}-hairline`]:e.hairline}:r={...l,[`${a}-vertical`]:e.direction==="vertical"},r})}}});function Ny(e,n,a,l,r,i){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Ya=ie(Cy,[["render",Ny]]),Gt=(e,n={})=>{const a=(0,t.shallowRef)([]),l=i=>{a.value.push(i),(0,t.triggerRef)(a)},r=i=>{const o=a.value.findIndex(c=>c===i);o!=-1&&(a.value.splice(o,1),(0,t.triggerRef)(a))};return(0,t.onUnmounted)(()=>{const i=a.value.length;a.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:a,...n}),{children:a}};function _t(e,n){const a=(0,t.inject)(e,null);if(a){const{link:l,unlink:r,children:i}=a;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:a,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:a,index:(0,t.computed)(()=>-1)}}var{componentName:Ay}=te("grid"),Fi=Symbol("grid"),By={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}},Ty={props:By,setup(e,{slots:n}){Gt(Fi,{props:e});const a=(0,t.computed)(()=>{const r=Ay;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=ge(e.gutter)),r});return()=>(0,t.h)("view",{class:a.value,style:l.value},n.default?.())}},{create:Vy}=te("grid"),Ey=Vy(Ty),Xa=Ey,{create:$y,componentName:Li}=te("grid-item"),Dy=$y({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:a,index:l}=_t(Fi,{props:e}),r=(0,t.computed)(()=>({[Li]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+a.props.columnNum}%`};return a.props.square?s.paddingTop=`${100/+a.props.columnNum}%`:a.props.gutter&&(s.paddingRight=ge(a.props.gutter),l.value>=a.props.columnNum&&(s.marginTop=ge(a.props.gutter))),s}),o=(0,t.computed)(()=>{const s=`${Li}__content`;return{[`${s}`]:!0,[`${s}--border`]:a.props.border,[`${s}--surround`]:a.props.border&&a.props.gutter,[`${s}--center`]:a.props.center,[`${s}--square`]:a.props.square,[`${s}--reverse`]:a.props.reverse,[`${s}--${a.props.direction}`]:!!a.props.direction,[`${s}--clickable`]:a.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:o,handleClick:s=>{n("click",s)}}}}),Iy={class:"fox-grid-item__text"};function qy(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Iy,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Qa=ie(Dy,[["render",qy]]),{componentName:xy,create:Py}=te("navbar"),My=Py({components:{Left:re.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:o}=(0,t.toRefs)(e),c=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const p=(0,t.computed)(()=>{const w=xy;return{[w]:!0,[`${w}--border`]:a.value,[`${w}--fixed`]:l.value,[`${w}--safe-area-inset-top`]:r.value}}),u=(0,t.computed)(()=>({zIndex:o.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,c.value.style.height=d.value+"px"})});function h(){n("on-click-back")}function b(){n("on-click-title")}function C(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:c,navBarHtml:s,classes:p,styles:u,handleLeft:h,handleCenter:b,handleCenterIcon:C,handleRight:k}}}),Ry={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},zy={key:1,class:"fox-navbar__text"},Fy={class:"fox-navbar__title"},Ly={key:0,class:"fox-navbar__text"},Oy={key:1,class:"fox-navbar__text"},Ky={class:"fox-navbar__title"},Uy={key:0,class:"fox-navbar__text"};function Hy(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ry,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(o,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",zy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Fy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ly,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(o,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Oy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Ky,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uy,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Ga=ie(My,[["render",Hy]]),jy=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:r}){const{toLocaleRefs:i}=(0,ye.useFoxI18n)(n),o=i(l,["activeText","unActiveText"]),c=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...o,classes:c,updateValue:(u=!l.visible)=>{r("update:visible",u)},selected:(u,h)=>{r("selected",{item:u,event:h}),s.value=u.id},current:s}}}),{componentName:Wy,create:Yy,scope:Xy}=te("fixednav"),Qy=Yy(jy(Wy,Xy,{[ut.name]:ut,Left:re.Left})),Gy={class:"fox-fixednav__list"},_y=["onClick"],Zy=["src"],Jy={class:"span"},eb={key:0,class:"b"},tb={class:"text"};function nb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-overlay"),c=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Gy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:p=>e.selected(s,p),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,Zy),(0,t.createElementVNode)("view",Jy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",eb,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,_y))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(c,{color:"#fff"}),(0,t.createElementVNode)("view",tb,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var _a=ie(Qy,[["render",nb]]),Oi=Symbol("fox-menu"),{componentName:lb,create:ab}=te("menu"),ob=ab({components:{RectUp:re.RectUp,RectDown:re.RectDown},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:{type:String,default:""}},setup(e){const n=(0,t.ref)(),a=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=Gt(Oi,{props:e,offset:a}),i=(0,t.computed)(()=>r.value.some(h=>h.state.showWrapper)),o=(0,t.computed)(()=>({[lb]:!0,"scroll-fixed":l.value})),c=()=>{if(n.value){const h=Me(n);e.direction==="down"?a.value=h.bottom:a.value=window.innerHeight-h.top}},s=h=>{r.value.forEach((b,C)=>{C===h?(c(),b.toggle()):b.state.showPopup&&b.toggle(!1,{immediate:!0})})},d=h=>Math.max(0,"scrollTop"in h?h.scrollTop:h.pageYOffset),p=()=>{const{scrollFixed:h}=e;l.value=d(window)>(typeof h=="boolean"?30:Number(h))},u=h=>{let b="";const{titleClass:C}=e;return h&&(b+="active"),C&&(b+=` ${C}`),b};return(0,t.onMounted)(()=>{const{scrollFixed:h}=e;h&&window.addEventListener("scroll",p)}),(0,t.onUnmounted)(()=>{const{scrollFixed:h}=e;h&&window.removeEventListener("scroll",p)}),{toggleItem:s,children:r,opened:i,classes:o,barRef:n,getClasses:u}}}),rb=["onClick"],ib={class:"fox-menu__title-text"},sb={class:"fox-menu__title-icon"};function cb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("RectUp"),c=(0,t.resolveComponent)("RectDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{ref:"barRef",class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.props.disabled,active:s.state.showPopup}]),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""}),onClick:p=>!s.props.disabled&&e.toggleItem(d)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",ib,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",sb,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])])],2)],14,rb))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Za=ie(ob,[["render",cb]]),{create:ub}=te("menu-item"),db=ub({props:{title:[String],options:{type:Array,default:[]},disabled:{type:[Boolean],default:!1},modelValue:{type:[String,Number,Boolean]},cols:{type:Number,default:1},activeTitleClass:{type:[String]},inactiveTitleClass:{type:[String]}},components:{FoxPopup:Ce,Check:re.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>p.props.direction==="down"?{top:p.offset.value+"px"}:{bottom:p.offset.value+"px"}),r=(0,t.computed)(()=>{const u={height:p.offset.value+"px"};return p.props.direction==="down"?{...u,top:"0px"}:{...u,bottom:"0px"}}),i=(u=!a.showPopup)=>{u!==a.showPopup&&(a.showPopup=u,u&&(a.showWrapper=!0,n("open")))},o=()=>{if(e.title)return e.title;const u=e.options?.find(h=>h.value===e.modelValue);return u?u.text:""},c=u=>{a.showPopup=!1,u.value!==e.modelValue&&(n("update:modelValue",u.value),n("change",u.value))},s=()=>{n("close"),a.showWrapper=!1},d=()=>{a.showPopup=!1,n("close")},{parent:p}=_t(Oi,{props:e,state:a,toggle:i,renderTitle:o});return{style:l,placeholderElementStyle:r,renderTitle:o,state:a,parent:p,toggle:i,onClick:c,handleClose:s,handleClickOutside:d}}}),fb={class:"fox-menu-item"},mb={class:"fox-menu-item__content fox-menu-item__overflow"},hb=["onClick"];function pb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Check"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",fb,[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-menu-item-placeholder-element",style:(0,t.normalizeStyle)(e.placeholderElementStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s))},null,4),[[t.vShow,e.state.showPopup]]),(0,t.createVNode)(c,(0,t.mergeProps)(e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),style:{position:"absolute"},"overlay-style":{position:"absolute"},position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"destroy-on-close":!1,overlay:e.parent.props.overlay,"lock-scroll":e.parent.props.lockScroll,"teleport-disable":!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay,onClosed:e.handleClose}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",mb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(o,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,hb))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["visible","position","duration","overlay","lock-scroll","close-on-click-overlay","onClosed"])],512)),[[t.vShow,e.state.showWrapper]])}var Ja=ie(db,[["render",pb]]),Ki=Symbol("fox-tabbar"),{create:gb}=te("tabbar"),yb=gb({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,{emit:n}){function a(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,r.value[i]))}const l=(0,t.reactive)({size:e.size,value:de(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a}),{children:r}=Gt(Ki,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:a}}});function bb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var eo=ie(yb,[["render",bb]]),{create:vb}=te("tabbar-item"),Sb=vb({props:{title:{type:[String],default:""},icon:{type:Object},activeIcon:{type:Object},num:{type:[String],default:""},activeImg:{type:[String],default:""},img:{type:[String],default:""},dot:{type:[Boolean],default:!1}},setup(e,n){const{parent:a,index:l}=_t(Ki,{props:e}),r=(0,t.computed)(()=>l.value===a.state.value);function i(c){a&&typeof a.state.changeIndex=="function"&&a.state.changeIndex(c)}const o=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:a.state,index:l,active:r,change:i,currentIcon:o}}}),kb={class:"fox-tabbar-item_icon-box"},wb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Cb={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Nb={key:1,class:"fox-tabbar-item_icon-box_dot"},Ab={key:2},Bb={key:0};function Tb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=o=>e.change(e.index))},[(0,t.createElementVNode)("view",kb,[e.dot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.num&&e.num<=99?((0,t.openBlock)(),(0,t.createElementBlock)("view",wb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cb,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Nb)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ab,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.currentIcon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bb,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.title?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"default",{key:1})],2)])],6)}var to=ie(Sb,[["render",Tb]]),{componentName:Vb,create:Eb}=te("elevator"),$b=Eb({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=(0,t.ref)(null),l=(0,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}),r=(0,t.computed)(()=>({[Vb]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),o=(0,t.computed)(()=>a.value.clientHeight),c=(S,m)=>S.getAttribute("data-"+m),s=S=>{(0,t.nextTick)(()=>{!l.listGroup.includes(S)&&S!=null&&l.listGroup.push(S)})},d=()=>{let S=0;l.listHeight.push(S);for(let m=0;m<l.listGroup.length;m++){let f=l.listGroup[m];S+=Math.floor(f.clientHeight),l.listHeight.push(S)}},p=S=>{!S&&S!==0||(S<0&&(S=0),S>l.listHeight.length-2&&(S=l.listHeight.length-2),l.codeIndex=S,a.value.scrollTo(0,l.listHeight[S]))},u=S=>{l.scrollStart=!0;let m=c(S.target,"index"),f=S.touches[0];l.touchState.y1=f.pageY,l.anchorIndex=+m,l.codeIndex=+m,p(+m)},h=S=>{let m=S.touches[0];l.touchState.y2=m.pageY;let f=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+f,p(l.codeIndex)},b=()=>{l.scrollStart=!1},C=(S,m)=>{n.emit("click-item",S,m),l.currentData=m,l.currentKey=S},k=S=>{n.emit("click-index",S)},w=S=>{let m=S.target.scrollTop;const f=l.listHeight;l.scrollY=m;for(let y=0;y<f.length-1;y++){let B=f[y],g=f[y+1];if(l.scrollY>=B&&l.scrollY<g){l.currentIndex=y,l.diff=g-l.scrollY;return}}l.currentIndex=f.length-2};return(0,t.onMounted)(()=>{a.value.addEventListener("scroll",w)}),n.expose({scrollTo:p}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,S=>{const m=l.listHeight;let f=S>0&&S<e.titleHeight?S-e.titleHeight:0;l.scrollY+o.value===m[m.length-1]&&f!==0&&(f=0),l.fixedTop!==f&&(l.fixedTop=f)}),(0,t.watch)(()=>l.currentIndex,S=>{n.emit("change",S)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:o,setListGroup:s,listview:a,touchStart:u,touchMove:h,touchEnd:b,handleClickItem:C,handleClickIndex:k}}}),Db={class:"fox-elevator__list__item__code"},Ib=["onClick"],qb=["innerHTML"],xb={class:"fox-elevator__fixed-title"},Pb={class:"fox-elevator__bars__inner"},Mb=["data-index","onClick"];function Rb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,o=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:o[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Db,(0,t.toDisplayString)(o[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.list,c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===c.id&&e.currentKey===o[e.acceptKey]}]),key:c.id,onClick:s=>e.handleClickItem(o[e.acceptKey],c)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:c}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:c.name},null,8,qb))],10,Ib))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",xb,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...o)=>e.touchStart&&e.touchStart(...o)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...o)=>e.touchMove&&e.touchMove(...o),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...o)=>e.touchEnd&&e.touchEnd(...o))},[(0,t.createElementVNode)("view",Pb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:o[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":c,key:o[e.acceptKey],onClick:s=>e.handleClickIndex(o[e.acceptKey])},(0,t.toDisplayString)(o[e.acceptKey]),11,Mb))),128))])],32)],2)}var no=ie($b,[["render",Rb]]),{componentName:E2,create:zb,scope:Fb}=te("pagination"),Lb=zb({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ye.useFoxI18n)(Fb),l=a(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:o,forceEllipses:c}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:h,totalItems:b,itemsPerPage:C}=(0,t.toRefs)(e),k=+h.value||Math.ceil(+b.value/+C.value);return Math.max(1,k)}),d=(h,b)=>{h>s.value||h<1||(h!=r.value&&n("update:modelValue",h),b&&n("change",h))},p=(h,b,C=!1)=>({number:h,text:b,active:C}),u=(0,t.computed)(()=>{if(i.value=="simple")return;let h=[];const b=s.value,C=+o.value;let k=1,w=b;const S=b>C;S&&(k=Math.max(r.value-Math.floor(C/2),1),w=k+C-1,w>b&&(w=b,k=w-C+1));for(var m=k;m<=w;m++){const f=p(m,m,r.value==m);h.push(f)}if(S&&C>0&&c.value){if(k>1){const f=p(k-1,"...");h.unshift(f)}if(w<b){const f=p(w+1,"...");h.push(f)}}return h});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:u,forceEllipses:c}}}),Ob={class:"fox-pagination"},Kb={key:0,class:"fox-pagination-contain"},Ub=["onClick"],Hb={key:1,class:"fox-pagination-contain"},jb={class:"fox-pagination-simple"};function Wb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ob,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=o=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Kb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",o.active?"active":""]),onClick:s=>e.select(o.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:o},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.text),1)])],10,Ub))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[(0,t.createElementVNode)("view",jb,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=o=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var lo=ie(Lb,[["render",Wb]]),{componentName:Ui,create:Yb}=te("indicator"),Xb=Yb({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Ui;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ui,padZero:rt}}});function Qb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,o=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:o},[o===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(o)||o),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ao=ie(Xb,[["render",Qb]]),{componentName:Gb,create:_b}=te("side-navbar"),Zb=_b({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),a=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[Gb]:!0})),r=(o,c=1)=>{for(let s=0;s<o.length;s++){let d=o[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*c+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++a.count))}a.count--},i=()=>{let o=n.value.childNodes;o.length&&(o=Array.from(o).filter(c=>c.nodeType!==3).map(c=>c),r(o))};return(0,t.onMounted)(()=>{i(),a.observer=new MutationObserver(function(){a.count=1,i()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(a),list:n,classes:l}}}),Jb={class:"fox-side-navbar__content"},ev={class:"fox-side-navbar__content__list",ref:"list"};function tv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",Jb,[(0,t.createElementVNode)("view",ev,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var oo=ie(Zb,[["render",tv]]),{componentName:nv,create:lv}=te("side-navbar-item"),av=lv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[nv]:!0})),handleClick:()=>{n.emit("click")}})}),ov=["ikey"],rv={class:"fox-side-navbar-item__title"};function iv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...o)=>e.handleClick&&e.handleClick(...o),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",rv,(0,t.toDisplayString)(e.title),1)],10,ov)}var ro=ie(av,[["render",iv]]),{componentName:sv,create:cv}=te("sub-side-navbar"),uv=cv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:re.ArrowDown2,ArrowUp2:re.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[sv]:!0})),r=(0,t.computed)(()=>({height:a.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return(0,t.onMounted)(()=>{a.direction=e.open?"":"up"}),{...(0,t.toRefs)(a),classes:l,style:r,handleClick:i}}}),dv=["ikey"],fv={class:"fox-sub-side-navbar__title__text"},mv={class:"fox-sub-side-navbar__title__icon"};function hv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("ArrowDown2"),c=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",fv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",mv,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(c,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,dv)}var io=ie(uv,[["render",hv]]),{componentName:pv,create:gv}=te("range"),yv=gv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),o=(0,t.ref)(),c=st(),s=(0,t.computed)(()=>{const{marks:$,max:R,min:M}=e;return Object.keys($).map(parseFloat).sort((U,z)=>U-z).filter(U=>{const z=de(U);return z>=de(M)&&z<=de(R)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),p=(0,t.computed)(()=>{const $=pv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),u=(0,t.computed)(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=(0,t.computed)(()=>({background:e.inactiveColor})),b=(0,t.computed)(()=>({borderColor:e.buttonColor})),C=$=>!!e.range&&Array.isArray($),k=()=>{const{modelValue:$,min:R}=e;return C($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(R))*100/d.value}%`},w=()=>{const{modelValue:$,min:R}=e;return C($)?`${($[0]-Number(R))*100/d.value}%`:"0%"},S=(0,t.computed)(()=>e.vertical?{height:k(),top:w(),background:e.activeColor,transition:o.value?"none":void 0}:{width:k(),left:w(),background:e.activeColor,transition:o.value?"none":void 0}),m=$=>{const R="fox-range-mark",{modelValue:M,max:U,min:z}=e;let Y=Number(z),x=Number(U);if(e.range){const[ee,oe]=M;Y=ee,x=oe}else x=M;let _=$<=x&&$>=Y;return{[`${R}-text`]:!0,[`${R}-text-active`]:_}},f=$=>{const{min:R,vertical:M}=e;let U={left:`${($-Number(R))/d.value*100}%`};return M&&(U={top:`${($-Number(R))/d.value*100}%`}),U},y=$=>{const{modelValue:R,max:M,min:U}=e;let z=Number(U),Y=Number(M);if(e.range){const[x,_]=R;z=x,Y=_}return{background:$<=Y&&$>=z?e.activeColor:e.inactiveColor}},B=$=>{const{min:R,max:M,step:U}=e;return $=Math.max(+R,Math.min($,+M)),Math.round($/+U)*+U},g=($,R)=>JSON.stringify($)===JSON.stringify(R),v=$=>$[0]>$[1]?$.slice(0).reverse():$,E=($,R)=>{C($)?$=v($).map(B):$=B($),g($,e.modelValue)||n("update:modelValue",$),R&&!g($,l)&&n("change",$)},A=$=>{if(e.disabled)return;const{min:R,modelValue:M}=e,U=Me(i);let z=$.clientX-U.left,Y=U.width;e.vertical&&(z=$.clientY-U.top,Y=U.height);const x=Number(R)+z/Y*d.value;if(C(M)){const[_,ee]=M;x<=(_+ee)/2?E([x,ee],!0):E([_,x],!0)}else E(x,!0)},V=$=>{e.disabled||(c.start($),r=e.modelValue,C(r)?l=r.map(B):l=B(r),o.value="start")},N=$=>{if(e.disabled)return;o.value==="start"&&n("drag-start"),c.move($),o.value="draging";const R=Me(i);let M=c.deltaX.value,U=R.width,z=M/U*d.value;e.vertical&&(M=c.deltaY.value,U=R.height,z=M/U*d.value),C(l)?r[a.value]=l[a.value]+z:r=l+z,E(r),$.stopPropagation(),$.preventDefault()},P=()=>{e.disabled||(o.value==="draging"&&(E(r,!0),n("drag-end")),o.value="")},G=$=>mn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:i,classes:p,wrapperStyle:h,buttonStyle:b,onClick:A,onTouchStart:V,onTouchMove:N,onTouchEnd:P,...(0,t.toRefs)(e),barStyle:S,curValue:G,buttonIndex:a,containerClasses:u,markClassName:m,marksStyle:f,marksList:s,tickStyle:y}}}),bv={key:0,class:"fox-range-min"},vv={key:0,class:"fox-range-mark"},Sv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],kv={key:0,class:"number"},wv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Cv={key:0,class:"number"},Nv={key:1,class:"fox-range-max"};function Av(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",bv,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...o)=>e.onClick&&e.onClick(...o),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",vv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,o=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:o,class:(0,t.normalizeClass)(e.markClassName(o)),style:(0,t.normalizeStyle)(e.marksStyle(o))},[(0,t.createTextVNode)((0,t.toDisplayString)(o)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(o))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],o=>(0,t.createElementVNode)("view",{key:o,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":o==0,"fox-range-button-wrapper-right":o==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(o),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(c=>{typeof o=="number"&&(e.buttonIndex=o),e.onTouchStart(c)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.onTouchMove&&e.onTouchMove(...c),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onClick:n[3]||(n[3]=c=>c.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",kv,(0,t.toDisplayString)(e.curValue(o)),1))],4))],42,Sv)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(o=>{e.onTouchStart(o)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...o)=>e.onTouchMove&&e.onTouchMove(...o),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...o)=>e.onTouchEnd&&e.onTouchEnd(...o),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...o)=>e.onTouchEnd&&e.onTouchEnd(...o),["stop","prevent"])),onClick:n[8]||(n[8]=o=>o.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Cv,(0,t.toDisplayString)(e.curValue()),1))],4))],40,wv))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Nv,(0,t.toDisplayString)(+e.max),1))],2)}var Zt=ie(yv,[["render",Av]]),{create:Bv,scope:Tv}=te("short-password"),Vv=Bv({components:{FoxPopup:Ce,Tips:re.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ye.useFoxI18n)(Tv),l=a(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),o=(0,t.ref)(e.visible),c=u=>{u.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,u=>{o.value=u}),(0,t.watch)(()=>e.modelValue,u=>{r.value=u,String(u).length===i.value&&n("complete",u)});const s=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:i,realInput:r,onTouchStart:c,range:d,close:s,onTips:()=>{n("tips")},show:o,...l}}}),Ev={class:"fox-short-password-title"},$v={class:"fox-short-password-subtitle"},Dv={class:"fox-short-password-wrapper"},Iv={key:0,class:"fox-short-password__item-icon"},qv={class:"fox-short-password__message"},xv={class:"fox-short-password--error"},Pv={key:0,class:"fox-short-password--forget"};function Mv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Tips"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(c,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Ev,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",$v,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Dv,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Iv)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",qv,[(0,t.createElementVNode)("view",xv,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pv,[(0,t.createVNode)(o,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var so=ie(Vv,[["render",Mv]]),Rv=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},zv=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",a=>{e.onProgress?.(a,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[a,l]of Object.entries(e.headers))n.setRequestHeader(a,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Fv=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Hi=(e,{args:n=[],done:a,canceled:l})=>{if(e){const r=e.apply(null,n);ft(r)?r.then(i=>{i?a(i):l&&l()}).catch(()=>{}):r?a():l&&l()}else a()},{create:Lv}=te("progress"),Ov=Lv({components:{Checked:re.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,a=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),o=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),c=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:a,percentage:i,bgStyle:o,textStyle:c,progressOuter:l,insideText:r,slotDefault:n}}}),Kv={class:"fox-progress"},Uv={key:0,class:"fox-progress-text"};function Hv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Kv,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:(0,t.normalizeStyle)({height:e.height})},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:(0,t.normalizeStyle)(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:(0,t.normalizeStyle)({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[(0,t.createElementVNode)("span",{style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)],4)):(0,t.createCommentVNode)("",!0),e.showText&&e.textInside&&e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,ref:"insideText",style:(0,t.normalizeStyle)({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[(0,t.renderSlot)(e.$slots,"default")],4)):(0,t.createCommentVNode)("",!0)],6),e.showText&&!e.textInside?((0,t.openBlock)(),(0,t.createElementBlock)("div",Uv,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(o,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Jt=ie(Ov,[["render",Hv]]),{componentName:jv,create:Wv,scope:Yv}=te("uploader"),Xv=Wv({components:{[Jt.name]:Jt,Photograph:re.Photograph,Failure:re.Failure,Loading:re.Loading,Del:re.Del,Link:re.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(Yv),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[jv]:!0})),o=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),(0,t.h)("input",m)},c=m=>{m.value=""},s=m=>{n("file-item-click",{fileItem:m})},d=(m,f)=>{const y=new Rv;y.url=e.url,y.formData=m.formData,y.timeout=e.timeout*1,y.method=e.method,y.xhrState=e.xhrState,y.headers=e.headers,y.withCredentials=e.withCredentials,y.beforeXhrUpload=e.beforeXhrUpload;try{y.sourceFile=m.formData.get(e.name)}catch{}y.onStart=g=>{m.status="ready",m.message=a("readyUpload"),p(f),n("start",g)},y.onProgress=(g,v)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(g.loaded/g.total*100).toFixed(0),n("progress",{event:g,option:v,percentage:m.percentage})},y.onSuccess=(g,v)=>{m.status="success",m.message=a("success"),n("success",{responseText:g,option:v,fileItem:m}),n("update:fileList",l)},y.onFailure=(g,v)=>{m.status="error",m.message=a("error"),n("failure",{responseText:g,option:v,fileItem:m})};let B=new zv(y);e.autoUpload?B.upload():r.push(new Promise((g,v)=>{g(B)}))},p=(m=-1)=>{m>-1?r.splice(m,1):(r=[],l.splice(0,l.length))},u=()=>{Promise.all(r).then(m=>{m.forEach(f=>f.upload())})},h=m=>{m.forEach((f,y)=>{const B=new FormData;for(const[v,E]of Object.entries(e.data))B.append(v,E);B.append(e.name,f);const g=(0,t.reactive)(new Fv);if(g.name=f.name,g.status="ready",g.type=f.type,g.formData=B,g.message=a("waitingUpload"),d(g,y),e.isPreview&&f.type.includes("image")){const v=new FileReader;v.onload=E=>{g.url=E.target.result,l.push(g)},v.readAsDataURL(f)}else l.push(g)})},b=m=>{const f=e.maximum*1,y=e.maximize*1,B=new Array;m=m.filter(v=>v.size>y?(B.push(v),!1):!0),B.length&&n("oversize",B);let g=m.length+l.length;return g>f&&m.splice(m.length-(g-f)),m},C=(m,f)=>{l.splice(f,1),n("delete",{file:m,fileList:l,index:f})},k=(m,f)=>{p(f),Hi(e.beforeDelete,{args:[m,l],done:()=>C(m,f)})},w=m=>{if(e.disabled)return;const f=m.target;let{files:y}=f;e.beforeUpload?e.beforeUpload(y).then(B=>S(B)):S(y),n("change",{fileList:l,event:m}),e.clearInput&&c(f)},S=m=>{h(b(new Array().slice.call(m)))};return{onChange:w,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:p,submit:u,renderInput:o}}}),Qv={key:0,class:"fox-uploader__slot"},Gv={key:0,class:"fox-uploader__preview-img"},_v={key:0,class:"fox-uploader__preview__progress"},Zv={class:"fox-uploader__preview__progress__msg"},Jv=["onClick"],eS=["onClick","src"],tS={key:3,class:"fox-uploader__preview-img__file"},nS=["onClick"],lS={class:"file__name_tips"},aS={class:"tips"},oS={key:1,class:"fox-uploader__preview-list"},rS=["onClick"],iS={class:"file__name_tips"};function sS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Failure"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),p=(0,t.resolveComponent)("fox-progress"),u=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qv,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(h,b)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Gv,[h.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",_v,[h.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[h.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Zv,(0,t.toDisplayString)(h.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:C=>e.onDelete(h,b)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(o)])],8,Jv)):(0,t.createCommentVNode)("",!0),h?.type?.includes("image")&&h.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:C=>e.fileItemClick(h),src:h.url},null,8,eS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",tS,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",lS,(0,t.toDisplayString)(h.name),1)],8,nS)])),(0,t.createElementVNode)("view",aS,(0,t.toDisplayString)(h.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",oS,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(h),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[h.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",iS,(0,t.toDisplayString)(h.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:C=>e.onDelete(h,b)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,rS),h.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(u,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var co=ie(Xv,[["render",sS]]),cS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEu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JiAMAHdgDBBywQ0E5BuECYAJqCZAGPl+pxMQPoeSZwUy6ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:dS,scope:fS}=te("number-keyboard"),mS=dS({components:{FoxPopup:Ce},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ye.useFoxI18n)(fS),l=a(e,["confirmText"]),r=(0,t.computed)(()=>{const m=["fox-number-keyboard-popup"];return e.popClass&&m.push(e.popClass),m}),i=(0,t.ref)(void 0),o=(0,t.ref)(e.visible),c=(0,t.ref)();function s(){const{customKey:m}=e;let f={id:"lock",type:"lock"},y=Array.isArray(m)?m:[m];return y.length===1&&(f={id:y[0],type:"custom"}),[...d(),f,{id:0,type:"number"},{id:"delete",type:"delete"}]}function d(){const m=[];for(let f=1;f<=9;f++)m.push({id:f,type:"number"});return e.randomKeys?m.sort(()=>Math.random()>.5?1:-1):m}function p(){const m=d(),{customKey:f}=e;let y=Array.isArray(f)?f:[f];return y.length>2&&(y=[y[0],y[1]]),y.length==2&&e.title&&e.type!="rightColumn"&&(y=[y[0]]),y.length===1?e.title&&e.type!="rightColumn"?m.push({id:y[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):m.push({id:0,type:"number"},{id:y[0],type:"custom"}):y.length===2&&m.push({id:y[0],type:"custom"},{id:0,type:"number"},{id:y[1],type:"custom"}),m}const u=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?p():s()),h=()=>{e.visible&&n("blur")},b=m=>{const f=c.value;f&&!f.contains(m.target)&&h()};(0,t.watch)(()=>e.visible,m=>{o.value=m,m?window.addEventListener("touchstart",b,!1):window.removeEventListener("touchstart",b,!1)});function C(m,f){f.stopPropagation(),i.value=m.id,(m.type=="number"||m.type=="custom")&&(n("input",m.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+m.id)),m.type=="lock"&&S(),m.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function k(m){m.stopPropagation()}function w(m){m.preventDefault(),i.value=void 0}function S(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:cS,lockImg:uS,clickKeyIndex:i,defaultKey:s,closeBoard:S,onTouchEnd:w,onTouchMove:k,onTouchstart:C,keysList:u,genCustomKeys:p,getBasicKeys:d,root:c,show:o}}}),hS={ref:"root"},pS={class:"fox-number-keyboard"},gS={key:0,class:"fox-number-keyboard__header"},yS={class:"fox-number-keyboard__title"},bS={class:"fox-number-keyboard__body"},vS={class:"fox-number-keyboard__keys"},SS=["onTouchstart"],kS=["src"],wS=["src"],CS={key:0,class:"fox-number-keyboard__sidebar"},NS={class:"fox-key__wrapper"},AS=["src"];function BS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",hS,[(0,t.createVNode)(o,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=c=>e.show=c),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",pS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",gS,[(0,t.createElementVNode)("h3",yS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=c=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",bS,[(0,t.createElementVNode)("div",vS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,c=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+c.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":c.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":c.id==e.clickKeyIndex},{"fox-key--lock":c.type=="lock"},{"fox-key--delete":c.type=="delete"}]),onTouchstart:s=>e.onTouchstart(c,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[c.type=="number"||c.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(c.id),1)],64)):(0,t.createCommentVNode)("",!0),c.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,kS)):(0,t.createCommentVNode)("",!0),c.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,wS)):(0,t.createCommentVNode)("",!0)],42,SS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",CS,[(0,t.createElementVNode)("div",NS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=c=>e.onTouchstart({id:"delete",type:"delete"},c)),onTouchmove:n[4]||(n[4]=c=>e.onTouchMove(c)),onTouchend:n[5]||(n[5]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,AS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=c=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var uo=ie(mS,[["render",BS]]),{componentName:TS,create:VS}=te("swipe"),ES=VS({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n,expose:a}){const l=(0,t.computed)(()=>({[TS]:!0})),r=f=>f.value?.clientWidth||0,i=(0,t.ref)(),o=(0,t.computed)(()=>r(i)),c=(0,t.ref)(),s=(0,t.computed)(()=>r(c));let d=!1,p="",u="";const h=(0,t.reactive)({offset:0,moving:!1}),b=(f="")=>{d=!0,f&&(h.offset=f==="left"?-s.value:o.value),n("open",{name:e.name,position:p||f})},C=()=>{h.offset=0,d=!1,n("close",{name:e.name,position:p})},k=(0,t.computed)(()=>({transform:`translate3d(${h.offset}px, 0, 0)`})),w=f=>{p=f>0?"right":"left";let y=f;switch(p){case"left":d&&u===p?y=-s.value:y=Math.abs(f)>s.value?-s.value:f;break;case"right":d&&u===p?y=o.value:y=Math.abs(f)>o.value?o.value:f;break}h.offset=y},S=st(),m={onTouchStart(f){e.disabled||S.start(f)},onTouchMove(f){e.disabled||(S.move(f),S.isHorizontal()&&(h.moving=!0,w(S.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(h.moving)switch(h.moving=!1,u=p,p){case"left":Math.abs(h.offset)<=s.value/2?C():(h.offset=-s.value,b());break;case"right":Math.abs(h.offset)<=o.value/2?C():(h.offset=o.value,b());break}}};return a({open:b,close:C}),{classes:l,touchStyle:k,...m,leftRef:i,rightRef:c,open:b,close:C}}}),$S={class:"fox-swipe__left",ref:"leftRef"},DS={class:"fox-swipe__content"},IS={class:"fox-swipe__right",ref:"rightRef"};function qS(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o))},[(0,t.createElementVNode)("view",$S,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",DS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",IS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var fo=ie(ES,[["render",qS]]),{componentName:xS,create:PS}=te("action-sheet"),MS=PS({components:{Popup:Ce,Loading:re.Loading},props:{...at,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[xS]:!0}));return{slotDefault:a,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),RS={key:0,class:"fox-action-sheet__title"},zS={key:1},FS={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},LS={key:1,class:"fox-action-sheet__menu"},OS=["onClick"],KS={key:1},US={class:"fox-action-sheet__subdesc"};function HS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",RS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",zS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",FS,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",LS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:p=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",KS,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",US,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,OS))),128))])):(0,t.createCommentVNode)("",!0),e.cancelTxt?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var mo=ie(MS,[["render",HS]]),{componentName:jS,create:WS}=te("backtop"),YS=WS({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[jS]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function o(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function c(C=0){l.scrollEl instanceof Window?window.scrollTo(0,C):l.scrollEl.scrollTop=C}function s(){let C=Ge(function k(){var w=e.duration-Math.max(0,l.startTime-+new Date+e.duration),S=w*-l.scrollTop/e.duration+l.scrollTop;c(S),C=Ge(k),(w==e.duration||S==0)&&Qo(C)})}function d(){l.scrollEl.addEventListener("scroll",o,!1),l.scrollEl.addEventListener("resize",o,!1)}function p(){l.scrollEl.removeEventListener("scroll",o,!1),l.scrollEl.removeEventListener("resize",o,!1)}function u(C){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():c(),n("click",C)}function h(){b.value?l.scrollEl=b.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),h()}),(0,t.onUnmounted)(()=>{p()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,h())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,p()});const b=(0,t.computed)(()=>{if(typeof a.content=="function"){const C=a.content();return Array.isArray(C)?C[0]:C}return null});return()=>{const C=[];b.value&&C.push(b.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const S=(0,t.h)(re.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(S)}const w=(0,t.h)("div",{class:r.value,style:i.value,onClick:u},k);return C.push(w),C}}}),ho=YS,{componentName:XS,create:QS}=te("drag"),GS=QS({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,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}}),r=(0,t.computed)(()=>({[XS]:!0}));function i(){const u=document.documentElement;l.elWidth=a.value.offsetWidth,l.elHeight=a.value.offsetHeight,l.screenWidth=u.clientWidth,l.screenHeight=u.clientHeight}function o(u){l.boundary.left?+u.style.left.split("px")[0]>l.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ze(()=>{o(u)})):u.style.left=`${l.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ze(()=>{o(u)})):u.style.left="0px"}function c(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ze(()=>{c(u,h)})):u.style.left=h+"px"}function s(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const b=u.targetTouches[0];l.nx=b.clientX-l.position.x,l.ny=b.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const C=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>C?l.xPum=C:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(h.style.left=l.xPum+"px"),e.direction!="x"&&(h.style.top=l.yPum+"px")}}function d(u){const h=u.currentTarget;let b=u.changedTouches[0].clientX;const C=l.screenWidth-l.elWidth-l.boundary.right;b>C?b=C:b<l.boundary.left?b=l.boundary.left:b=b<l.screenWidth/2?l.boundary.left:C,e.direction!="y"&&e.attract&&(b<l.screenWidth/2?Ze(()=>{o(h)}):Ze(()=>{c(h,C)})),e.direction!="x"&&(h.style.top=l.yPum+"px")}function p(u){const h=u.currentTarget,b=u.touches[0],C=u.targetTouches[0];l.startTop=h.offsetTop,l.startLeft=h.offsetLeft,l.position.x=b.clientX,l.position.y=b.clientY,l.nx=C.clientX-l.position.x,l.ny=C.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",p),u.value.removeEventListener("touchmove",s),u.value.removeEventListener("touchend",d)}),{classes:r,myDrag:a,touchStart:p,touchMove:s,touchEnd:d}}});function _S(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=o=>e.touchStart(o)),onTouchmove:n[1]||(n[1]=o=>e.touchMove(o)),onTouchend:n[2]||(n[2]=o=>e.touchEnd(o))},[(0,t.renderSlot)(e.$slots,"default")],34)}var po=ie(GS,[["render",_S]]),ZS={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}},JS=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function e1(e,n,a,l,r){return{props:{...at,...ZS},setup(i,{attrs:o,slots:c,emit:s}){const{toLocaleRefs:d}=(0,ye.useFoxI18n)(n),p=d(i,["confirmText","cancelText"]),u=e,h=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,g=>{h.value!==g&&(h.value=g,g&&s("opened"))});const b=g=>{h.value=g,s("update:visible",g),s("update",g)},C=g=>{if(s(g),!(g==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const v=i.beforeClose(g);ft(v)?v.then(E=>{E&&(b(!1),s("closed",g))}):v===!0&&(b(!1),s("closed",g))}else b(!1),s("closed",g)},k=()=>{C("confirm")},w=()=>{C("cancel")},S=()=>{C("close")},m=(g,v)=>JS(g)?(v.src=g,(0,t.h)("img",v)):typeof g=="string"?(Array.isArray(v.class)?v.class.push(g):v.class&&typeof v.class=="object"?v[`${g}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${g}`:v.class=g,(0,t.h)(i.tag,v)):(0,t.h)(g,v),f=()=>{const g=[];if(c.header){const v=c.header();g.push(v)}else{if(i.title){const v=(0,t.h)("view",{class:`${u}__header-title`},[i.title]);g.push(v)}if(i.showClose){const v={class:[`${u}__header-close-icon`],onClick:S},E=m(i.closeIcon??r,v);g.push(E)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},y=()=>{const g=[];if(c.default)g.push(c.default());else{const v={class:[`${u}__content`]};if(i.textAlign&&v.class.push(i.textAlign),typeof i.content=="string"){v.innerHTML=i.content;const E=(0,t.h)("view",v);g.push(E)}else if(typeof i.content=="function"){const E=(0,t.h)("view",v,[i.content()]);g.push(E)}else{const E=(0,t.h)("view",v,[i.content]);g.push(E)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__body`]},g)},B=()=>{if(!i.showFooter)return null;const g=[];if(c.footer)g.push(c.footer());else if(i.plain){if(i.showCancelButton){const v={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:w};i.cancelButtonClass&&v.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(v.style,i.cancleButtonStyle);const E=(0,t.h)("view",v,[i.cancelButtonText??p.cancelText.value]);g.push(E)}if(i.showConfirmButton){const v={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&v.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(v.style,i.confirmButtonStyle);const E=(0,t.h)("view",v,[i.confirmButtonText??p.confirmText.value]);g.push(E)}}else{if(i.showCancelButton){const v={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:w};i.cancelButtonClass&&v.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(v.style,i.cancleButtonStyle);const E=(0,t.h)(l,v,{default:()=>[i.cancelButtonText??p.cancelText.value]});g.push(E)}if(i.showConfirmButton){const v={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&v.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(v.style,i.confirmButtonStyle);const E=(0,t.h)(l,v,{default:()=>[i.confirmButtonText??p.confirmText.value]});g.push(E)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__footer`,`${u}__footer--${i.footerDirection}`]},g)};return()=>{const g=[],v=f();v&&g.push(v);const E=y();E&&g.push(E);const A=B();A&&g.push(A);const V=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--plain`]:i.plain}},g),N=[`${u}__popup`];i.popClass&&N.push(i.popClass);const P={};return i.width&&(P.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(P.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(a,{...ve(i,at),popClass:N.join(" "),style:P,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":b,position:i.position,onClickOverlay:S,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>V})}}}}var{componentName:t1,create:n1,scope:l1}=te("dialog"),a1=n1(e1(t1,l1,Ce,Nt,re.Close)),ji=a1,o1=class{title="";content="";cancelText=null;confirmText=null;textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=e=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1},r1=class{options=new o1;constructor(e){let n=Object.assign(this.options,e),a=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?a=document.querySelector(l):a=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const o=(0,t.createVNode)({setup(){return n.onUpdate=c=>{if(c===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(ji,n)}});a.appendChild(r),(0,t.render)(o,r)}},en=function(e){return new r1(e)};en.install=e=>{e.use(ji),e.config.globalProperties.$dialog=en};var i1={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},containerClass:{type:[String]}},s1=(e,n,a)=>({props:i1,emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const o=e,{toLocaleRefs:c}=(0,ye.useFoxI18n)(n),s=c(l,["pullingText","loosingText","loadingText"]),d=Yn(),p=(0,t.ref)(),u=$i(p),h=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=(0,t.computed)(()=>({[o]:!0})),C=(0,t.computed)(()=>{const A=[`${o}__container`];return l.containerClass&&A.push(l.containerClass),A}),k=(0,t.computed)(()=>{switch(h.status){case"pulling":return i.pulling?"":s.pullingText.value;case"loosing":return i.loosing?"":s.loosingText.value;case"loading":return i.loading?"":s.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:h.distance?`translate3d(0,${h.distance}px, 0)`:""})),S=(0,t.computed)(()=>{const A={};return l.headHeight!=50&&(A.height=ge(l.headHeight)),A}),m=A=>{const V=+(l.pullDistance||l.headHeight);let N=A;return A>V&&(A<V*2?N=(A+V)/2:N=V+A/4),Math.round(N)},f=(A,V)=>{const N=+(l.pullDistance||l.headHeight);h.distance=A,V?h.status="loading":A===0?h.status="normal":A<N?h.status="pulling":h.status="loosing",r("change",{status:h.status,distance:A})},y=()=>h.status!=="loading"&&h.status!=="complete",B=()=>u.value==window?Di()==0:u.value&&u.value.scrollTop==0,g=A=>{y()&&(B()?(d.start(A),h.isPullRefresh=!0,h.moving=!0):(h.distance=0,h.isPullRefresh=!1))},v=A=>{y()&&h.moving&&(d.move(A),d.isVertical()&&d.state.deltaY>0&&h.isPullRefresh&&(A.cancelable&&A.preventDefault(),f(m(d.state.deltaY))))},E=()=>{h.moving=!1,h.isPullRefresh&&y()&&d.state.deltaY&&(h.status==="loosing"?(f(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):f(0)),setTimeout(()=>{d.reset()},0)};return(0,t.watch)(()=>l.modelValue,A=>{A?f(+l.headHeight,!0):f(0)}),()=>{const A=[];let V=null;h.status==="loading"?(V=i?.loading?.()??null,V||(V=(0,t.h)(a,{class:[`${o}__container-topbox-icon`]}))):h.status==="pulling"?V=i?.pulling?.()??null:h.status==="loosing"&&(V=i?.loosing?.()??null),V&&A.push(V);const N=(0,t.h)("dive",{class:[`${o}__container-topbox-text`]},[k.value]);A.push(N);const P=(0,t.h)("div",{class:[`${o}__container-topbox`],style:S.value},A),G=(0,t.h)("div",{class:C.value,style:w.value},[P,i?.default?.()]),$={ref:p,class:b.value};return Wn()?Object.assign($,{onTouchstart:g,onTouchmove:v,onTouchend:E}):Object.assign($,{onMousedown:g,onMousemove:v,onMouseup:E}),(0,t.h)("div",$,[G])}}}),{componentName:c1,create:u1,scope:d1}=te("pull-refresh"),f1=u1(s1(c1,d1,re.Loading)),go=f1,{create:m1}=te("notify"),h1=m1({components:{FoxPopup:Ce},props:{id:String,msg:{type:String,default:""},duration:{type:Number,default:3e3},customClass:{type:String,default:""},color:{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:{type:Function},onClick:{type:Function},unmount:{type:Function}},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},o=(0,t.ref)(!1),c=(0,t.watch)(()=>e.visible,d=>{o.value=e.visible;const p=e.duration;d&&p&&(l=setTimeout(()=>{i()},p))},{immediate:!0});return{onAfterLeave:()=>{r(),c&&c(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:o}}});function p1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createBlock)(o,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.isShowPopup=c),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.customClass]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...c)=>e.clickCover&&e.clickCover(...c))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var yo=ie(h1,[["render",p1]]),bo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,customClass:"",onClose:Function,teleport:"",unmount:new Function},At=[],tn=[],Wi=e=>{if(e){const n=document.getElementById(e);tn=tn.filter(a=>a.id!==e),At=At.filter(a=>a!==e),n&&document.body.removeChild(n)}else At.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),tn=[],At=[]},g1=e=>{const n=document.getElementById(e.id);if(n){const a=tn.find(r=>r.id===e.id);a?e={...bo,...a,...e}:e={...bo,...e};const l=(0,t.createVNode)(yo,e);return(0,t.render)(l,n),l.component.data}},nn=e=>{e.unmount=Wi;let n;if(e.id){if(n=e.id,At.find(r=>r===e.id))return g1(e)}else n=new Date().getTime()+"";e={...bo,...e},e.id=n,At.push(e.id),tn.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>(0,t.h)(yo,e)}});document.body.appendChild(a),(0,t.render)(l,a)},ln=e=>{if(!e){console.warn("[FoxUI Notify]: msg不能为空");return}},vo={text(e,n={}){return ln(e),nn({...n,msg:e})},primary(e,n={}){return ln(e),nn({...n,msg:e,type:"primary"})},success(e,n={}){return ln(e),nn({...n,msg:e,type:"success"})},danger(e,n={}){return ln(e),nn({...n,msg:e,type:"danger"})},warn(e,n={}){return ln(e),nn({...n,msg:e,type:"warning"})},hide(){Wi()},install(e){e.use(yo)}},{create:y1}=te("toast"),b1=y1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{a&&(clearTimeout(a),a=null)},i=()=>{l.mounted=!1},o=()=>{r(),e.duration&&(a=setTimeout(()=>{i()},e.duration))},c=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&o(),(0,t.watch)(()=>e.duration,b=>{b&&o()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const b=ue(e.iconSize);return(0,t.h)(e.icon,{width:b,height:b,color:e.iconColor})},p=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:c,renderIcon:d,hasIcon:s,toastBodyClass:p,toastIconWrapperClass:u,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),v1={key:1,class:"fox-toast-title"},S1=["innerHTML"];function k1(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...o)=>e.clickCover&&e.clickCover(...o))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",v1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,S1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var So=ie(b1,[["render",k1]]),ko={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},Bt=[],an=[],Yi=e=>{if(e){const n=document.getElementById(e);an=an.filter(a=>a.id!==e),Bt=Bt.filter(a=>a!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else Bt.forEach(n=>{const a=document.getElementById(n);a&&((0,t.render)(null,a),document.body.removeChild(a))}),an=[],Bt=[]},w1=e=>{const n=document.getElementById(e.id);if(n){const a=an.find(r=>r.id===e.id);a?e={...ko,...a,...e}:e={...ko,...e};const l=(0,t.createVNode)(So,e);return(0,t.render)(null,n),(0,t.render)(l,n),Tt}},on=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,Bt.find(l=>l===e.id))return w1(e)}else n=new Date().getTime()+"";e={...ko,...e},e.id=n,Bt.push(e.id),an.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(So,e),a),document.body.appendChild(a),Tt},gl=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Tt={text(e,n={}){if(gl(e))return on({...n,type:"text",msg:e})},success(e,n={}){if(gl(e))return on({icon:re.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(gl(e))return on({icon:re.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(gl(e))return on({icon:re.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return on({icon:re.Loading,...n,msg:e,type:"loading"})},hide(e){Yi(e)},install(e){e.use(So),e.config.globalProperties.$toast=Tt}},{componentName:$2,create:C1}=te("audio"),N1=C1({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:re.Service,[Zt.name]:Zt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),r=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let w=0;w<k.length;w++)document.addEventListener(k[w],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(w){w.message}});const i=k=>{const w=l.value;e.autoplay&&w&&w.paused&&w.play(),r.second=w.duration,r.duration=C(w.duration),n("can-play",k)},o=k=>{r.currentTime=parseInt(k.target.currentTime)},c=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const k=l.value;r.playing?(k.pause(),r.handPlaying=!1):(k.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},p=k=>{r.currentDuration=C(k),r.percent=k/r.second*100},u=()=>{r.playing=!1,n("ended")},h=k=>{const w=l.value;w.currentTime=r.second*k/100,n("changeProgress",w.currentTime)},b=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},C=k=>{if(!k)return"00:00:00";let w=parseInt(k),S=Math.floor(w/3600),m=Math.floor((w-S*3600)/60),f=w-S*3600-m*60,y="";return y+=("0"+S.toString()).slice(-2)+":",y+=("0"+m.toString()).slice(-2)+":",y+=("0"+f.toString()).slice(-2),y};return(0,t.watch)(()=>r.currentTime,k=>{p(k)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:b,forward:d,fastBack:c,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:c,forward:d,changeStatus:s,progressChange:h,audioEnd:u,onTimeupdate:o,handleMute:b,onCanplay:i,slots:a}}}),A1={class:"fox-audio"},B1={key:0,class:"fox-audio__progress"},T1={class:"fox-audio__time"},V1={class:"fox-audio__bar"},E1={class:"fox-audio__time"},$1={key:1,class:"fox-audio__icon"},D1=["controls","src","preload","autoplay","loop","muted"];function I1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-range"),c=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",A1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",B1,[(0,t.createElementVNode)("div",T1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",V1,[(0,t.createVNode)(o,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",E1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",$1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,D1)])}var wo=ie(N1,[["render",I1]]),{componentName:D2,create:q1,scope:x1}=te("audio-operate"),P1=q1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(x1),l=(0,t.reactive)((0,t.inject)("audioParent")),r=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:r,t:a}}}),M1={class:"fox-audio-operate"};function R1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",M1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...c)=>e.fastBack&&e.fastBack(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...c)=>e.forward&&e.forward(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...c)=>e.handleMute&&e.handleMute(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var Co=ie(P1,[["render",R1]]),{componentName:z1,create:F1}=te("avatar"),L1=F1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],o=(0,t.inject)("avatarGroup",null),c=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const C=o?.avatarGroupRef?.value?.children;C&&b(C)});const p=(0,t.computed)(()=>({[z1]:!0,[`fox-avatar-${n.value||o?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||o?.props?.shape||"normal"}`]:!0})),u=(0,t.computed)(()=>({width:i.indexOf(n.value)>-1?"":`${n.value}px`,height:i.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${r.value}`,marginLeft:d.index!=1&&(o?.props?.span?`${o?.props?.span}px`:""),zIndex:o?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=(0,t.computed)(()=>({backgroundColor:`${o?.props?.maxBgColor}`,color:`${o?.props?.maxColor}`})),b=C=>{d.maxIndex=C.length;for(let k=0;k<C.length;k++)C[k]&&C[k].classList&&C[k].classList[0]=="fox-avatar"&&C[k].setAttribute("data-index",k+1);d.index=c?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=o?.props?.maxCount&&(d.showMax=!0)};return{classes:p,styles:u,maxStyles:h,avatarGroup:o,visible:s,avatarRef:c,...(0,t.toRefs)(d)}}});function O1(e,n,a,l,r,i){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var rn=ie(L1,[["render",O1]]),{componentName:K1,create:U1}=te("avatar-group"),H1=U1({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),o=(0,t.computed)(()=>({[K1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:o,avatarGroupRef:r}}});function j1(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var No=ie(H1,[["render",j1]]),Ao=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function W1(e,n,a){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const o=e[i],c=a(o,n);if(c===1)return i;c===2?l=i+1:c===3&&(r=i-1)}return i}var{componentName:Y1,create:X1}=te("list"),Xi=document.documentElement.clientHeight||document.body.clientHeight||667,Q1=X1({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Xi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),o=(0,t.computed)(()=>Math.min(e.containerHeight,Xi)),c=(0,t.computed)(()=>Math.ceil(o.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+c.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[Y1]:!0})),p=(0,t.computed)(()=>i.list.slice(i.start,s.value)),u=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},h=()=>{i.cachePositions=[];for(let S=0;S<i.list.length;++S)i.cachePositions[S]={index:S,height:e.height,top:S*e.height,bottom:(S+1)*(e.height+e.margin),dValue:0}},b=()=>{let S=r.value.childNodes;S=Array.from(S).filter(g=>g.nodeType===1);const m=S[0];S.forEach((g,v)=>{if(!g)return;const{height:E}=Me(g),A=i.cachePositions[v+i.start].height-E;A&&(i.cachePositions[v+i.start].bottom-=A,i.cachePositions[v+i.start].height=E,i.cachePositions[v+i.start].dValue=A)});let f=0;m&&(f=i.start);const y=i.cachePositions.length;let B=i.cachePositions[f].dValue;i.cachePositions[f].dValue=0;for(let g=f+1;g<y;++g){const v=i.cachePositions[g];i.cachePositions[g].top=i.cachePositions[g-1].bottom,i.cachePositions[g].bottom=i.cachePositions[g].bottom-B,v.dValue!==0&&(B+=v.dValue,v.dValue=0)}i.phantomHeight=i.cachePositions[y-1].bottom},C=(S=0)=>{let m=W1(i.cachePositions,S,(f,y)=>{const B=f.bottom;return B===y?Ao.eq:B<y?Ao.lt:Ao.gt});return i.cachePositions[m].bottom<S&&(m+=1),m},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,a.value.scrollTop=0,h(),i.phantomHeight=e.height*i.list.length},w=()=>{const S=a.value?.scrollTop,{originStartIndex:m}=i,f=C(S);f!==m&&(i.originStartIndex=f,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(S>i.scrollTop?"scroll-up":"scroll-down",S),i.scrollTop=S};return(0,t.watch)(()=>e.listData,S=>{if(i.list=S.slice(),i.list.length===S.length)h(),b();else{k();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&b()}),{...(0,t.toRefs)(i),list:a,phantom:l,actualContent:r,getTransform:u,visibleData:p,classes:d,getContainerHeight:o,handleScrollEvent:w}}});function G1(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...o)=>e.handleScrollEvent&&e.handleScrollEvent(...o)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:o},[(0,t.renderSlot)(e.$slots,"default",{item:o,index:c+e.start})]))),128))],4)],38)}var Bo=ie(Q1,[["render",G1]]),{componentName:_1,create:Z1}=te("circleprogress"),J1=Z1({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[_1]:!0})),i=(0,t.computed)(()=>{const c=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${c} 0 90 a 45 45 0 1, ${c} 0 -90`}),o=(0,t.computed)(()=>$e(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let c=283,s=c*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${c}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:o,stop:(0,t.computed)(()=>{if(!$e(e.color))return;let c=e.color;const s=Object.keys(c).sort((p,u)=>parseFloat(p)-parseFloat(u));let d=[];return s.map((p,u)=>{let h={key:"",value:""};h.key=p,h.value=c[p],d.push(h)}),d}),slotDefault:a,refRandomId:l}}}),ek={viewBox:"0 0 100 100"},tk=["id"],nk=["offset","stop-color"],lk=["d","stroke-width"],ak=["d","stroke","stroke-linecap","stroke-width"],ok={class:"fox-circleprogress-text"},rk={key:0};function ik(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",ek,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:c,offset:o.key,"stop-color":o.value},null,8,nk))),128))],8,tk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,lk),(0,t.createElementVNode)("path",{class:"fox-circleprogress-hover",style:(0,t.normalizeStyle)(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,ak)])),(0,t.createElementVNode)("div",ok,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",rk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var To=ie(J1,[["render",ik]]),{componentName:sk,create:ck}=te("noticebar"),uk=ck({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:re.Notice,CircleClose:re.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,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}),o=(0,t.computed)(()=>({[sk]:!0})),c=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":c.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let v={};return e.color&&(v.color=e.color),e.background&&(v.background=e.background),e.direction=="vertical"&&(v.height=`${e.height}px`),v}),p=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),u=(0,t.computed)(()=>{let v={};if(e.complexAm)v={transform:`translateY(${i.distance}px)`};else if(i.animate){let E=~~(e.height/e.speed/4);v={transition:`all ${E==0?~~(e.height/e.speed):E}s`,"margin-top":`-${e.height}px`}}return v});(0,t.watch)(()=>e.text,v=>{h(v)}),(0,t.watch)(()=>e.list,v=>{i.scrollList=[...v]});const h=v=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const E=l.value.getBoundingClientRect().width,A=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?A>E:e.scrollable,i.isCanScroll?(i.wrapWidth=E,i.offsetWidth=A,i.duration=A/e.speed,i.animationClass="play"):i.animationClass=""},0)},b=v=>{n("click",v)},C=v=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",v)},k=v=>{i.firstRound=!1,n("across-end",v),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},w=()=>{S(),i.timer=setInterval(S,~~(e.height/e.speed/4*1e3)+e.standTime)},S=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{i.timer=setInterval(()=>{let v=100;for(let E=0;E<v;E++)f(E,!(E<v-1))},e.standTime+100*e.speed)},f=(v,E)=>{setTimeout(()=>{i.distance-=e.height/100,E&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},v*e.speed)},y=v=>{n("click",v)},B=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(a.default?g(a.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():w()},e.standTime)):h(e.text)}),(0,t.watch)(()=>a.default?a.default():[],v=>{e.direction==="vertical"&&a.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),g(v))});const g=v=>{v&&v.length>0&&(i.scrollList=v[0].children)};return(0,t.onActivated)(()=>{i.keepAlive&&(i.keepAlive=!1)}),(0,t.onDeactivated)(()=>{i.keepAlive=!0,clearInterval(i.timer)}),(0,t.onUnmounted)(()=>{clearInterval(i.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(i),isEllipsis:c,classes:o,barStyle:d,contentStyle:p,horseLampStyle:u,wrap:l,content:r,handleClick:b,onClickIcon:C,onAnimationEnd:k,go:y,handleClickIcon:B,slots:a,toPxString:ge,wrapContentClass:s}}}),dk={key:0,class:"fox-noticebar__page-lefticon"},fk={ref:"wrap",class:"fox-noticebar__page-wrap"},mk={class:"showNotica"},hk=["onClick"];function pk(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Notice"),c=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",dk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",fk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",mk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,p)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:p,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,p)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:p,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:u=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:p},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,hk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Vo=ie(uk,[["render",pk]]),gk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz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HKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:I2,create:vk,scope:Sk}=te("empty"),kk={empty:gk,error:yk,network:bk},wk=vk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ye.useFoxI18n)(Sk),a=n(e,["description"]),{image:l,imageSize:r}=(0,t.toRefs)(e),i=(0,t.computed)(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),o=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:kk[l.value];return{...a,imageUrl:o,imgStyle:i}}}),Ck={class:"fox-empty"},Nk=["src"],Ak={key:1,class:"fox-empty-description"};function Bk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ck,[(0,t.createElementVNode)("view",{class:"fox-empty-image",style:(0,t.normalizeStyle)(e.imgStyle)},[e.$slots.image?(0,t.renderSlot)(e.$slots,"image",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.imageUrl?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"img",src:e.imageUrl},null,8,Nk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ak,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Eo=ie(wk,[["render",Bk]]),{create:Tk,scope:Vk}=te("video"),Ek=Tk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=(0,ye.useFoxI18n)(Vk),l=(0,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}),r=(0,t.ref)(null),i=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,g=>{g.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,g=>{l.state.isMuted=g?g.muted:!1},{immediate:!0});const o=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),C(),l.showToolbox?c():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",h),l.videoElm.addEventListener("timeupdate",wn(u,1e3)))},c=()=>{const g=r.value,v=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=g,l.progressBar.progressElm=v,l.progressBar.pos=v.getBoundingClientRect(),l.videoSet.progress.width=Math.round(v.getBoundingClientRect().width)},s=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{p()}),l.videoElm.addEventListener("timeupdate",wn(u,1e3)),l.videoElm.addEventListener("ended",h),n("play",l.videoElm)}catch{b()}else l.videoElm.pause(),n("pause",l.videoElm)},d=g=>{let v=[];const E=Math.floor(g/3600);E>0&&(E<10?v.push(`0${E}`):v.push(`${E}`));const A=Math.floor(g%3600/60);A<10?v.push(`0${A}`):v.push(`${A}`);const V=Math.round(g%3600%60);return V<10?v.push(`0${V}`):v.push(`${V}`),v.join(":")},p=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},u=()=>{const g=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*g),l.videoSet.totalTime=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},h=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},b=()=>{l.state.isError=!0},C=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},w=()=>{},S=g=>{let v=g.targetTouches[0].pageX-l.progressBar.pos.left;v<=0&&(v=0),v>=l.videoSet.progress.width&&(v=l.videoSet.progress.width),l.videoSet.progress.current=v;let E=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&f(E,l.videoElm.duration)},m=g=>{let v=g.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=v;let E=v/l.videoSet.progress.width;l.videoElm.duration&&f(E,l.videoElm.duration)},f=(g,v)=>{l.videoElm.currentTime=Math.floor(g*v)},y=()=>{l.state.isError=!1,o()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{o()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:b,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:w,touchSlidMove:S,touchSlidEnd:m,retry:y,fullScreen:B,t:a}}}),$k={class:"fox-video",ref:"videocon"},Dk=["muted","autoplay","loop","poster","controls","preload"],Ik=["src","type"],qk={class:"fox-video-controller__now"},xk={class:"fox-video-controller__progress"},Pk={class:"fox-video-controller__progress-value",ref:"progressBar"},Mk={class:"fox-video-controller__played",ref:"playedBar"},Rk={class:"fox-video-controller__total"},zk={class:"fox-video-error"},Fk={class:"fox-video-error-tip"};function Lk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",$k,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...o)=>e.handleError&&e.handleError(...o))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Ik)],40,Dk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...o)=>e.play&&e.play(...o))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...o)=>e.play&&e.play(...o))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...o)=>e.play&&e.play(...o))}),(0,t.createElementVNode)("div",qk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",xk,[(0,t.createElementVNode)("div",Pk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(o=>e.touchSlidMove(o),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(o=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(o=>e.touchSlidEnd(o),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Mk,null,512)],512)]),(0,t.createElementVNode)("div",Rk,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...o)=>e.handleMuted&&e.handleMuted(...o))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...o)=>e.fullScreen&&e.fullScreen(...o))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",zk,[(0,t.createElementVNode)("p",Fk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...o)=>e.retry&&e.retry(...o))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Vt=ie(Ek,[["render",Lk]]),Qi=Symbol("fox-steps"),{create:Ok,componentName:Kk}=te("steps"),Uk=Ok({props:{direction:{type:[String],default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const l=(0,t.computed)(()=>{const i=Kk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return Gt(Qi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},a.default?.())}}),$o=Uk,{create:Hk,componentName:jk}=te("step"),Wk=Hk({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:a}=_t(Qi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=a.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),o=(0,t.computed)(()=>{const s=jk;return{[s]:!0,[`${s}-${i.value}`]:!0}}),c=()=>{n.onEmit(a.value)};return{...(0,t.toRefs)(l),index:a,classes:o,handleClickStep:c}}}),Yk={class:"fox-step-head"},Xk={class:"fox-step-icon-inner"},Qk={key:1,class:"fox-step-inner"},Gk={class:"fox-step-main"},_k={class:"fox-step-title"},Zk={key:0},Jk={key:0,class:"fox-step-content"},ew=["innerHTML"];function tw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...o)=>e.handleClickStep&&e.handleClickStep(...o))},[(0,t.createElementVNode)("view",Yk,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",Xk,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Qk,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",Gk,[(0,t.createElementVNode)("view",_k,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",Zk,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jk,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,ew)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Do=ie(Wk,[["render",tw]]),Gi=Symbol("fox-swiper"),{create:nw,componentName:Io}=te("swiper"),lw=nw({props:{width:{type:[Number,String],default:()=>window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:[Boolean],default:!1},paginationColor:{type:[String],default:"#fff"},loop:{type:[Boolean],default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:[Boolean],default:!0},isPreventDefault:{type:[Boolean],default:!0},isStopPropagation:{type:[Boolean],default:!0}},emits:["change"],setup(e,{emit:n,slots:a,expose:l}){const r=(0,t.ref)(),i=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,style:{}}),o=(0,t.computed)(()=>i[p.value?"height":"width"]),{children:c}=Gt(Gi,{props:e,size:o}),s=st(),d=(0,t.computed)(()=>({[Io]:!0})),p=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const z=Io;return{[`${z}-inner`]:!0,[`${z}-vertical`]:p.value}}),h=(0,t.computed)(()=>{const z=Io;return{[`${z}-pagination`]:!0,[`${z}-pagination-vertical`]:p.value}}),b=(0,t.computed)(()=>p.value?s.deltaY.value:s.deltaX.value),C=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>c.value.length),w=(0,t.computed)(()=>k.value*o.value),S=(0,t.computed)(()=>i.rect?(p.value?i.rect.height:i.rect.width)-o.value*k.value:0),m=(0,t.computed)(()=>(i.active+k.value)%k.value),f=()=>{let z=0;z=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${p.value?"Y":"X"}(${z}px)`,[p.value?"height":"width"]:`${o.value*k.value}px`,[p.value?"width":"height"]:`${p.value?i.width:i.height}px`}},y=(z,Y=0)=>{let x=z*o.value;e.loop||(x=Math.min(x,-S.value));let _=Y-x;return e.loop||(_=Ye(_,S.value,0)),_},B=z=>{const{active:Y}=i;return z?e.loop?Ye(Y+z,-1,k.value):Ye(Y+z,0,k.value-1):Y},g=({pace:z=0,offset:Y=0,isEmit:x=!1})=>{if(k.value<=1)return;const{active:_}=i,ee=B(z),oe=y(ee,Y);if(e.loop){if(c.value[0]&&oe!==S.value){const X=oe<S.value;c.value[0].setOffset(X?w.value:0)}if(c.value[k.value-1]&&oe!==0){const X=oe>0;c.value[k.value-1].setOffset(X?-w.value:0)}}i.active=ee,i.offset=oe,x&&_!==i.active&&n("change",m.value),f()},v=()=>{i.moving=!0,i.active<=-1&&g({pace:k.value}),i.active>=k.value&&g({pace:-k.value})},E=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},A=z=>{v(),s.reset(),Ge(()=>{Ge(()=>{i.moving=!1,g({pace:z,isEmit:!0})})})},V=()=>{A(-1)},N=()=>{A(1)},P=z=>{v(),s.reset(),Ge(()=>{i.moving=!1;let Y=0;e.loop&&k.value===z?Y=i.active===0?0:z:Y=z%k.value,g({pace:Y-i.active,isEmit:!0})})},G=()=>{const z=de(e.autoPlay);z<=0||k.value<=1||(E(),i.autoplayTimer=setTimeout(()=>{N(),G()},z))},$=(z=+e.initPage)=>{E(),i.rect=r.value.getBoundingClientRect(),z=Math.min(k.value-1,z),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=z,i.offset=y(i.active),i.moving=!0,f(),G()},R=z=>{e.isPreventDefault&&z.preventDefault(),e.isStopPropagation&&z.stopPropagation(),e.touchable&&(s.start(z),i.touchTime=Date.now(),E(),v())},M=z=>{e.touchable&&i.moving&&(s.move(z),C.value&&g({offset:b.value}))},U=z=>{if(!e.touchable||!i.moving)return;const Y=b.value/(Date.now()-i.touchTime);if((Math.abs(Y)>.3||Math.abs(b.value)>+(o.value/2).toFixed(2))&&C.value){let x=0;const _=p.value?s.offsetY.value:s.offsetX.value;e.loop?x=_>0?b.value>0?-1:1:0:x=-Math[b.value>0?"ceil":"floor"](b.value/o.value),g({pace:x,isEmit:!0})}else b.value&&g({pace:0});i.moving=!1,f(),G()};return l({prev:V,next:N,to:P}),(0,t.onDeactivated)(()=>{E()}),(0,t.onBeforeUnmount)(()=>{E()}),(0,t.watch)(()=>e.initPage,z=>{(0,t.nextTick)(()=>{$(Number(z))})}),(0,t.watch)(()=>c.value.length,()=>{(0,t.nextTick)(()=>{$()})}),(0,t.watch)(()=>e.autoPlay,z=>{de(z)>0?G():E()}),{state:i,children:c,classes:d,classesInner:u,classesPagination:h,container:r,activePagination:m,onTouchStart:R,onTouchMove:M,onTouchEnd:U}}});function aw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children.length,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===c?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===c}),key:c},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Et=ie(lw,[["render",aw]]),{create:ow,componentName:rw}=te("swiper-item"),iw=ow({setup(e,{slots:n,expose:a}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[rw]:!0})),i=s=>{l.offset=s},{parent:o}=_t(Gi,{setOffset:i}),c=(0,t.computed)(()=>{const s={},d=o?.props.direction;return o?.size.value&&(s[d==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return a({setOffset:i}),{style:c,classes:r}}});function sw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var $t=ie(iw,[["render",sw]]),_i={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:cw}=te("image-preview-item"),uw=cw({props:{..._i,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:{[Vt.name]:Vt,[$t.name]:$t},setup(e,{emit:n}){const a=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=st(),r=(0,t.computed)(()=>{const{rootWidth:A,rootHeight:V}=e,N=V/A;return a.imageRatio>N}),i=(0,t.computed)(()=>{const A=e.image;if(A&&A.src){const{scale:V,moveX:N,moveY:P,moving:G,zooming:$}=a,R={transitionDuration:$||G?"0s":".3s"};return V!==1&&(R.transform=`scale(${V}, ${V}) translate(${N/V}px, ${P/V}px)`),R}return{}}),o=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:V}=e,N=r.value?V/a.imageRatio:A;return Math.max(0,(a.scale*N-A)/2)}return 0}),c=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:V}=e,N=r.value?V:A*a.imageRatio;return Math.max(0,(a.scale*N-V)/2)}return 0}),s=A=>{const{naturalWidth:V,naturalHeight:N}=A.target;a.imageRatio=N/V},d=()=>{p(1),a.moveX=0,a.moveY=0},p=A=>{A=Ye(A,+e.minZoom,+e.maxZoom+1),A!==a.scale&&(a.scale=A,n("scale",{scale:A,index:e.initNo}))},u=()=>{p(a.scale>1?1:2),a.moveX=0,a.moveY=0},h=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let b,C,k,w,S,m,f;const y=A=>{const{touches:V}=A,{offsetX:N}=l;l.start(A),f=V.length,b=a.moveX,C=a.moveY,m=Date.now(),a.moving=f===1&&a.scale!==1,a.zooming=f===2&&!N.value,a.zooming&&(k=a.scale,w=h(A.touches))},B=A=>{const{touches:V}=A;if(l.move(A),(a.moving||a.zooming)&&Il(A,!0),a.moving){const{deltaX:N,deltaY:P}=l,G=N.value+b,$=P.value+C;a.moveX=Ye(G,-o.value,o.value),a.moveY=Ye($,-c.value,c.value)}if(a.zooming&&V.length===2){const N=h(V);p(k*N/w)}},g=()=>{if(f==1&&e.video&&e.video.source||f>1)return;const{offsetX:A,offsetY:V}=l,N=Date.now()-m,P=250,G=5;A.value<G&&V.value<G&&N<P&&(S?(clearTimeout(S),S=null,u()):S=setTimeout(()=>{e.contentClose&&n("close"),S=null},P))},v=A=>{let V=!1;(a.moving||a.zooming)&&(V=!0,a.moving&&b===a.moveX&&C===a.moveY&&(V=!1),A.touches.length||(a.zooming&&(a.moveX=Ye(a.moveX,-o.value,o.value),a.moveY=Ye(a.moveY,-c.value,c.value),a.zooming=!1),a.moving=!1,b=0,C=0,k=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Il(A,V),g(),l.reset()},E=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,A=>{A||d()}),{...(0,t.toRefs)(a),onTouchStart:y,onTouchMove:B,onTouchEnd:v,getDistance:h,imageStyle:i,imageLoad:s,closeSwiper:E}}}),dw=["src"];function fw(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-video"),c=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(c,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,dw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(o,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var mw=ie(uw,[["render",fw]]),{create:hw}=te("image-preview"),pw=hw({props:{..._i,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:mw,CircleClose:re.CircleClose,[Ce.name]:Ce,[Et.name]:Et},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),r=(0,t.computed)(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),i=(0,t.computed)(()=>mn(e.videos)?[].concat(e.videos).concat(e.images):e.images),o=p=>{p!==l.active&&(l.active=p,n("change",l.active))},c=()=>{Hi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(a.value){const p=Me(a.value);l.rootHeight=p.height,l.rootWidth=p.width}};return(0,t.watch)(()=>e.show,p=>{l.showPop=p,p&&(o(e.initNo),d())}),(0,t.watch)(()=>e.initNo,p=>{p!=l.active&&o(p)}),(0,t.onMounted)(()=>{o(e.initNo)}),{swipeRef:a,...(0,t.toRefs)(l),onClose:c,mergeImages:i,setActive:o,iconClasses:r}}}),gw={class:"fox-image-preview",ref:"swipeRef"},yw={key:0,class:"fox-image-preview-index"};function bw(e,n,a,l,r,i){const o=(0,t.resolveComponent)("image-preview-item"),c=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",gw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(c,{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:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(p,u)=>((0,t.openBlock)(),(0,t.createBlock)(o,{key:u,video:u<e.videos.length?p:{},image:u>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",yw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Zi=ie(pw,[["render",bw]]),vw=class{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"},Sw=class{options=new vw;constructor(e){const n=Object.assign(this.options,e),{unmount:a}=Us(n,{name:"image-preview",components:[Ce,Vt,Et,$t,ut],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{a()})},(0,t.h)(Zi,n))}})})}},yl=e=>new Sw(e);yl.install=e=>{e.use(Zi)};var{create:kw}=te("countup"),ww=kw({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","scrollEnd"],setup(e,{emit:n,expose:a}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=A=>{A&&r.value.push(A)},o=(0,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:c,scrolling:s,customBgImg:d,type:p}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{h(),S(0)}),(0,t.watch)(()=>e.machinePrizeLevel,A=>{o.prizeLevelTrun=A}),(0,t.watch)(()=>e.initNum,A=>{o.current=A,o.valFlag=!1,u()}),(0,t.watch)(()=>e.endNum,()=>{o.current=e.initNum,o.valFlag=!1,u()});const u=()=>{if(o.valFlag)return!1;c&&(s||d?p!="machine"&&S():(w(),setTimeout(()=>{o.valFlag=!0},300)))},h=()=>{clearInterval(Number(o.timer)),o.timer=null},b=(A,V,N)=>{const P=(A.toString().split(".")[1]||"").length,G=(V.toString().split(".")[1]||"").length,$=Math.pow(10,Math.max(P,G));return N=="-"?Number((A*$-V*$).toFixed(0))/$:Number((A*$+V*$).toFixed(0))/$},C=A=>{let{num_total_len:V,pointNum:N,initDigit1:P,initDigit2:G,sortFlag:$}=o,R=$=="add"||$=="equal"?String(G)[A-(V-N)]:10-Number(String(G)[A-(V-N)]),M=$=="add"||$=="equal"?String(P)[A]:10-Number(String(P)[A]),U=A>V-N-1?-R*100+"%":A<=String(P).length-1?-M*100+"%":0;return U=="-1000%"&&(U=0),U},k=A=>{let{num_total_len:V,pointNum:N,initDigit1:P,initDigit2:G}=o,$=String(G)[A-(V-N)];return A>V-N-1?$||0:A<=String(P).length-1?String(P)[A]:0},w=()=>{let{endNum:A,initNum:V,speed:N,toFixed:P}=e,G=setInterval(()=>{V>A?Number(o.current)<=A||Number(o.current)<=N?(o.current=A.toFixed(P),clearInterval(G),n("scrollEnd"),o.valFlag=!1):o.current=(parseFloat(String(o.current))-parseFloat(String(N))).toFixed(P):Number(o.current)>=A?(o.current=A.toFixed(P),clearInterval(G),n("scrollEnd"),o.valFlag=!1):o.current=(parseFloat(String(o.current))+parseFloat(String(N))).toFixed(P)},e.during)},S=A=>{let{initNum:V,endNum:N,toFixed:P,customBgImg:G}=e;G&&(V=e.customChangeNum);let $,R,M,U;V!=0?(P!=0&&(V=Number(V.toFixed(P))),String(V).indexOf(".")>-1?($=String(V).split(".")[0].length,R=String(V).split(".")[1].length):($=String(V).length,R=0)):($=1,R=0),N!=0?(P!=0&&(N=Number(N.toFixed(P))),String(N).indexOf(".")>-1?(M=String(N).split(".")[0].length,U=String(N).split(".")[1].length):(M=String(N).length,U=0)):(M=1,U=0);let z=$>=M?$:M,Y=R>=U?R:U;o.num_total_len=z+Y,o.pointNum=Y,V>N?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=b(V,N,"-"),o.numberVal=Number(String(V))):V<N?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=b(N,V,"-"),o.numberVal=Number(String(N))):o.sortFlag="equal";var x=1;for(let ee=0;ee<o.pointNum;ee++)x*=10;var _=o.numberVal*x;if(o.relNum=_,P!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(_).length),String(V).indexOf(".")>-1){let ee=String(V).split(".");o.initDigit1=Number(ee[0]),o.initDigit2=Number(ee[1])}else o.initDigit1=V,o.initDigit2=0;s&&!G?(0,t.nextTick)(()=>{if(o.sortFlag=="equal")return!1;let ee=r.value[o.num_total_len-1];m(ee)}):A!==0&&B()},m=A=>{h();var V=1;o.pointNum!=0&&(V=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{f(A),o.totalCount=b(o.totalCount,V,"-"),o.totalCount<=0&&(h(),n("scrollEnd"),o.valFlag=!1)},e.during)},f=A=>{let V=A.getAttribute("turn-number"),N;if(o.sortFlag=="add"?N=parseInt(String(V))+1:N=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,A.setAttribute("turn-number",String(N)),(A.style.transition=="none 0s ease 0s"||N==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),N==10||o.sortFlag=="reduce"&&N==0){var P=null;A.style.top=`-${o.sortFlag=="add"?N*100:(10-N)*100}%`,A.setAttribute("turn-number","0"),P=setTimeout(()=>{P&&clearTimeout(P),A.style.transition="none",A.style.top="0",y(A,N)},.975*e.during)}else A.style.top=`-${o.sortFlag=="add"?N*100:(10-N)*100}%`;A.style.top=="-100%"&&o.sortFlag=="reduce"&&f(A.previousSibling)},y=(A,V)=>{setTimeout(()=>{V==10&&A.previousSibling&&f(A.previousSibling)},200)},B=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),o.valFlag=!1})})},g=()=>{for(o.notPrize=[];o.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(A)==-1&&o.notPrize.push(A)}};a({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&g();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let P=V*(N+1+parseFloat(String(A)));o.prizeYPrev.length!=0&&(o.prizeY[N]=o.prizeYPrev[N]);let G=o.prizeYPrev[N]?o.prizeYPrev[N]:0,$=P+G+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(V-G);o.prizeLevelTrun<0&&($+=e.numHeight*o.notPrize[N]),E(N,$,G)},500*N)}});const E=(A,V,N)=>{let P=setInterval(()=>{if(N<=V)N+=10,o.prizeY[A]=parseFloat(String(N));else if(clearInterval(P),P=null,o.finshMachine+=1,o.prizeY[A]=V,o.finshMachine==e.machineNum){let G=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach($=>{let R=$;for(;R>G;)R-=G;o.prizeYPrev.push(R)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scrollEnd",!1),o.valFlag=!1):(n("scrollEnd",!0),o.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{o.current=e.initNum,(0,t.nextTick)(()=>{u()})}),(0,t.onUnmounted)(()=>{h(),o.timer=null}),{...(0,t.toRefs)(o),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:C,turnNumber:k}}}),Cw={class:"fox-countup"},Nw=["turn-number"];function Aw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Cw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+c,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[c]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+c,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)==e.num_total_len-e.pointNum?Number(c)*1.5:Number(c)*1.3:Number(c))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[c]*e.numHeight+e.customSpacNum*+String(e.relNum)[c])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})}," . ",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:o,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(c),left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)*1.1:Number(c))+"px"}),"turn-number":e.turnNumber(c)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"dote"+d,class:"fox-countup__number-item__span",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Nw))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,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)):(0,t.createCommentVNode)("",!0)],4)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.current),1)],64))],64))])}var qo=ie(ww,[["render",Aw]]),Bw=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:Tw,create:Vw}=te("countdown"),Ew=Vw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Tw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),o=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Bw(e.startTime),l.counting||(l.counting=!0),c()},c=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const b=Date.now()-l.diffTime,C=Math.max(l.handleEndTime-b,0);l.restTime=C,C||(l.counting=!1,u(),n("on-end")),C>0&&c()}}))},s=(b,C)=>{const k=b;let w={d:0,h:0,m:0,s:0,ms:0};const S=1e3,m=60*S,f=60*m,y=24*f;return k>0&&(w.d=k>=S?Math.floor(k/y):0,w.h=Math.floor(k%y/f),w.m=Math.floor(k%f/m),w.s=Math.floor(k%m/S),w.ms=Math.floor(k%S)),C=="custom"?w:d({...w})},d=b=>{let{d:C,h:k,m:w,s:S,ms:m}=b,f=e.format;if(f.includes("DD")?f=f.replace("DD",rt(C)):k+=Number(C)*24,f.includes("HH")?f=f.replace("HH",rt(k)):w+=Number(k)*60,f.includes("mm")?f=f.replace("mm",rt(w)):S+=Number(w)*60,f.includes("ss")?f=f.replace("ss",rt(S)):m+=Number(S)*1e3,f.includes("S")){const y=rt(m,3).toString();f.includes("SSS")?f=f.replace("SSS",y):f.includes("SS")?f=f.replace("SS",y.slice(0,2)):f.includes("S")&&(f=f.replace("SS",y.slice(0,1)))}return f},p=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c(),n("on-restart",l.restTime))},u=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},h=()=>{e.autoStart||(u(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?o():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,b=>{let C=s(b,"custom");n("update:modelValue",C),n("input",C)}),(0,t.watch)(()=>e.paused,(b,C)=>{C?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c()),n("on-restart",l.restTime)):l.counting&&u()}),(0,t.watch)(()=>e.endTime,b=>{o()}),(0,t.watch)(()=>e.startTime,b=>{o()}),{...(0,t.toRefs)(e),slots:a,classes:r,start:p,pause:u,renderTime:i,reset:h}}}),$w=["innerHTML"];function Dw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,$w))],2)}var xo=ie(Ew,[["render",Dw]]),{create:Iw}=te("badge"),qw=Iw({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){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,a=e.max;return typeof n=="number"&&typeof a=="number"&&a<n?`${a}+`:n})}}}),xw={class:"fox-badge"},Pw=["textContent"];function Mw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",xw,[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-badge__icon",style:(0,t.normalizeStyle)(e.stl)},[(0,t.renderSlot)(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),(0,t.renderSlot)(e.$slots,"default"),(0,t.withDirectives)((0,t.createElementVNode)("view",{textContent:(0,t.toDisplayString)(e.content),class:(0,t.normalizeClass)(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:(0,t.normalizeStyle)(e.stl)},null,14,Pw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Po=ie(qw,[["render",Mw]]),{componentName:Rw,create:zw}=te("tag"),Fw=zw({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:re.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const o=Rw;return{[o]:!0,[`${o}--${e.type}`]:!0,[`${o}--plain`]:e.plain,[`${o}--round`]:e.round,[`${o}--mark`]:e.mark,[`${o}--symbol`]:e.symbol,[`${o}--text`]:e.text,[`${o}--light`]:e.light}}),getStyle:()=>{const o={};return e.textColor?o.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(o.color=e.color),e.plain?(o.background="#fff",o["border-color"]=e.color):!e.text&&e.color&&(o.background=e.color),o},onClose:o=>{o.stopPropagation(),n("close",o)},onClick:o=>{n("click",o)}}}});function Lw(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Mo=ie(Fw,[["render",Lw]]),{create:Ow}=te("popover"),Kw=Ow({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:n}){const a=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),o=(0,t.ref)();const c=(0,t.computed)(()=>{const m="fox-popover-arrow",f=e.location;return`${m} ${m}-${f.split("-")[0]} ${m}--${f}`}),s=(0,t.computed)(()=>{const m={},{bgColor:f,arrowOffset:y,location:B}=e,g=B.split("-")[0],v=B.split("-")[1],E=16;return f&&(m[`border${d(g)}Color`]=f),e.arrowOffset!=0&&(["bottom","top"].includes(g)&&(v||(m.left=`calc(50% + ${y}px)`),v=="start"&&(m.left=`${E+y}px`),v=="end"&&(m.right=`${E-y}px`)),["left","right"].includes(g)&&(v||(m.top=`calc(50% - ${y}px)`),v=="start"&&(m.top=`${E-y}px`),v=="end"&&(m.bottom=`${E+y}px`))),m}),d=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,f=>f.substring(0,1).toUpperCase()+f.substring(1)),m),p=(0,t.computed)(()=>{let m={};if(!i.value||!o.value)return{};const f=o.value.width,y=o.value.height,{width:B,height:g,left:v,top:E}=i.value,{location:A,offset:V}=e,N=A.split("-")[0],P=A.split("-")[1];let G=0,$=0;return mn(V)&&V.length==2&&(G+=Number(V[1]),$+=Number(V[0])),B&&(["bottom","top"].includes(N)&&(m.top=`${E+(N=="bottom"?g+G:-(y+G))}px`,P||(m.left=`${-(f-B)/2+v+$}px`),P=="start"&&(m.left=`${v+$}px`),P=="end"&&(m.left=`${i.value.right+$}px`)),["left","right"].includes(N)&&(m.left=`${v+(N=="left"?-(f+G):B+G)}px`,P||(m.top=`${E-y/2+g/2-4+$}px`),P=="start"&&(m.top=`${E+$}px`),P=="end"&&(m.top=`${E+g+$}px`))),m}),u=(0,t.computed)(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),h=()=>{let m=Me(a.value);e.targetId&&(m=Me(document.querySelector(`#${e.targetId}`))),i.value=m,setTimeout(()=>{o.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{h()},200)}),(0,t.watch)(()=>e.visible,m=>{r.value=m,m?(window.addEventListener("touchstart",S,!0),h()):window.removeEventListener("touchstart",S,!0)});const b=m=>{n("update",m),n("update:visible",m)},C=()=>{b(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},w=(m,f)=>{!m.disabled&&n("choose",m,f),e.closeOnClickAction&&k()},S=m=>{const f=a.value,y=l.value;let B=f&&!f.contains(m.target);if(e.targetId){const g=document.querySelector(`#${e.targetId}`);B=g&&!g.contains(m.target)}B&&y&&!y.contains(m.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:C,popoverArrow:c,closePopover:k,chooseItem:w,popoverRef:a,popoverContentRef:l,getRootPosition:p,customStyle:u,popoverArrowStyle:s,renderIcon:qr}}}),Uw={ref:"popoverContentRef",class:"fox-popover-content-group"},Hw=["onClick"],jw={class:"fox-popover-menu-item-name"};function Ww(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...c)=>e.openPopover&&e.openPopover(...c))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(o,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.showPopup=c),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Uw,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(c,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([c.className,c.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(c,s),["stop"])},[c.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(c.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jw,(0,t.toDisplayString)(c.name),1)],10,Hw))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var sn=ie(Kw,[["render",Ww]]),Yw=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:Xw}=te("skeleton"),Qw=Xw(Yw({[rn.name]:rn})),Gw={key:0},_w={key:1,class:"fox-skeleton"},Zw={key:0,class:"fox-skeleton-animation"},Jw={class:"fox-skeleton-content"};function eC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",_w,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zw)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Jw,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",Gw,[(0,t.renderSlot)(e.$slots,"default")]))}var Ro=ie(Qw,[["render",eC]]),{create:tC,componentName:nC}=te("collapse"),lC=tC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),r=(0,t.computed)(()=>({[nC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,p=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,p)},o=s=>{e.accordion?l.value===s?i("",s,!1):i(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?i(l.value.filter(d=>d!==s),s,!1):i(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},c=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:o,isExpanded:c}),{collapseDom:a,classes:r}}});function aC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var zo=ie(lC,[["render",aC]]),{create:oC,componentName:rC}=te("collapse-item"),iC=oC({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:re.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const u=rC;return{[u]:!0,[u+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),o=(0,t.ref)(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},s=()=>{i.value&&(o.value="auto")},d=()=>{o.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const u=a.value?.offsetHeight;o.value=u?`${u}px`:"auto"})})},p=()=>{const u=a.value?.offsetHeight;o.value=u?`${u}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.value="0px"})})};return(0,t.watch)(i,u=>{u?d():p()}),{classes:r,renderIcon:qr,wrapperRef:n,contentRef:a,open:d,toggle:c,wrapperHeight:o,expanded:i,onTransitionEnd:s}}}),sC={class:"fox-collapse-item__title-main"},cC={class:"fox-collapse-item__title-main-value"},uC=["innerHTML"],dC={key:2,class:"fox-collapse-item__title-label"},fC={key:0,class:"fox-collapse-item__title-sub"},mC=["innerHTML"],hC={key:0,class:"fox-collapse__item-extraWrapper"},pC={class:"fox-collapse__item-extraWrapper__extraRender"},gC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function yC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...o)=>e.toggle&&e.toggle(...o))},[(0,t.createElementVNode)("view",sC,[(0,t.createElementVNode)("view",cC,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,uC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",dC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",fC,[(0,t.renderSlot)(e.$slots,"value")])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,mC)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:(0,t.normalizeStyle)({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?((0,t.openBlock)(),(0,t.createElementBlock)("view",hC,[(0,t.createElementVNode)("div",pC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o))},[(0,t.createElementVNode)("view",gC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Fo=ie(iC,[["render",yC]]),bC=(0,t.defineComponent)({setup(e){return()=>(0,t.h)("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:vC,create:SC,scope:kC}=te("table"),wC=SC({components:{RenderColumn:bC,DownArrow:re.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:l}=(0,ye.useFoxI18n)(kC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[vC]:!0})),o=b=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${b.align?b.align:""}`]:!0}),c=b=>b.stylehead?b.stylehead:"",s=b=>b.stylecolumn?b.stylecolumn:"",d=b=>e.columns.filter(C=>C.key===b)[0],p=b=>{const C=e.columns.filter(k=>k.key===b);return C[0].stylecolumn?C[0].stylecolumn:""},u=b=>{b.sorter&&(n("sorter",b),r.curData=typeof b.sorter=="function"?r.curData.sort(b.sorter):b.sorter==="default"?r.curData.sort():r.curData)},h=()=>e.columns.map(b=>[b.key,b.render]);return(0,t.watch)(()=>e.data,b=>{r.curData=b.slice()}),{...(0,t.toRefs)(r),classes:i,cellClasses:o,getColumnItem:d,getColumnItemStyle:p,handleSorterClick:u,sortDataItem:h,t:l,stylehead:c,stylecolumn:s}}}),CC={class:"fox-table__main__head"},NC={class:"fox-table__main__head__tr"},AC=["onClick"],BC={class:"fox-table__main__body"},TC={key:1},VC={key:0,class:"fox-table__nodata"},EC={key:0,class:"fox-table__nodata__text"},$C={key:1,class:"fox-table__summary"},DC=["innerHTML"];function IC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("DownArrow"),c=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",CC,[(0,t.createElementVNode)("view",NC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,AC))),128))])]),(0,t.createElementVNode)("view",BC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,p])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof p=="function"?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,slots:[p,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",TC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",VC,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[(0,t.renderSlot)(e.$slots,"nodata"),e.$slots.nodata?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",EC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",$C,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,DC)])):(0,t.createCommentVNode)("",!0)],2)}var Lo=ie(wC,[["render",IC]]),{componentName:qC,create:xC}=te("ellipsis"),PC=xC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),o=(0,t.reactive)({exceeded:!1,expanded:!1}),c=(0,t.computed)(()=>({[qC]:!0}));(0,t.watch)(()=>e.content,(k,w)=>{k!=w&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!a.value)return;const k=window.getComputedStyle(a.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(S=>{l.style.setProperty(S,k.getPropertyValue(S))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const w=h(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);r=Math.floor(w*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)o.exceeded=!1,document.body.removeChild(l);else{o.exceeded=!0;const k=e.content.length,w=Math.floor((0+k)/2);i.value=e.direction==="middle"?u([0,w],[w,k]):p(0,k),document.body.removeChild(l)}},p=(k,w)=>{const S=o.expanded?e.collapseText:e.expandText,m=e.content.length;if(w-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(w,m)};const f=Math.round((k+w)/2);return e.direction==="end"?l.innerText=e.content.slice(0,f)+e.symbol+S:l.innerText=S+e.symbol+e.content.slice(f,m),l.offsetHeight<=r?e.direction==="end"?p(f,w):p(k,f):e.direction==="end"?p(k,f):p(f,w)},u=(k,w)=>{const S=o.expanded?e.collapseText:e.expandText,m=e.content.length;if(k[1]-k[0]<=1&&w[1]-w[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(w[1],m)};const f=Math.floor((k[0]+k[1])/2),y=Math.ceil((w[0]+w[1])/2);return l.innerText=e.content.slice(0,f)+e.symbol+S+e.symbol+e.content.slice(y,m),l.offsetHeight<=r?u([f,k[1]],[w[0],y]):u([k[0],f],[y,w[1]])},h=k=>{if(!k)return 0;const w=k.match(/^\d*(\.\d*)?/);return w?Number(w[0]):0},b=k=>{k==1?(o.expanded=!0,n("change","expand")):(o.expanded=!1,n("change","collapse"))},C=()=>{n("click")};return{...(0,t.toRefs)(o),root:a,ellipsis:i,classes:c,clickHandle:b,handleClick:C}}}),MC={key:0},RC={key:1},zC={key:2};function FC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...o)=>e.handleClick&&e.handleClick(...o)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",MC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",RC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(o=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",zC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(o=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Oo=ie(PC,[["render",FC]]),{componentName:LC,create:OC}=te("animate"),KC=OC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let o=(0,t.computed)(()=>({"fox-animate__container":!0,[`${LC}-${a.value}`]:r.value==="initial"||i.clicked?a.value:!1,loop:l.value}));const c=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:o,handleClick:c}}}),UC={class:"fox-animate"};function HC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",UC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...o)=>e.handleClick&&e.handleClick(...o)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ko=ie(KC,[["render",HC]]),{componentName:jC,create:WC}=te("watermark"),YC=WC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:o,height:c,rotate:s,image:d,imageWidth:p,imageHeight:u,content:h,fontStyle:b,fontWeight:C,fontColor:k,fontSize:w,fontFamily:S}=e,m=()=>{const y=document.createElement("canvas"),B=window.devicePixelRatio,g=y.getContext("2d"),v=`${(r+o)*B}px`,E=`${(i+c)*B}px`,A=o*B,V=c*B;if(y.setAttribute("width",v),y.setAttribute("height",E),g)if(d){g.translate(A/2,V/2),g.rotate(Math.PI/180*Number(s));const N=new Image;N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=d,N.onload=()=>{g.drawImage(N,-p*B/2,-u*B/2,p*B,u*B),g.restore(),a.base64Url=y.toDataURL()}}else h&&(g.textBaseline="middle",g.textAlign="center",g.translate(A/2,V/2),g.rotate(Math.PI/180*Number(s)),g.font=`${b} normal ${C} ${Number(w)*B}px/${V}px ${S}`,g.fillStyle=k,g.fillText(h,0,0),g.restore(),a.base64Url=y.toDataURL());else throw new Error("当前环境不支持Canvas")};m(),(0,t.watch)(()=>[l,r,i,o,c,s,d,p,u,h,b,C,k,w,S],()=>{m()});const f=(0,t.computed)(()=>{const y=jC;return{[y]:!0,[`${y}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(a),classes:f}}});function XC(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Uo=ie(YC,[["render",XC]]);function QC(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}var{componentName:GC,create:_C}=te("trend-arrow"),ZC=_C({components:{TriangleUp:re.TriangleUp,TriangleDown:re.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),a=(0,t.computed)(()=>({[GC]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:o,showSign:c,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${c&&i!==0?n.rateTrend?"+":"-":""}${QC(Number(d),o)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:o,syncTextColor:c,textColor:s,rate:d}=e;return{color:d===0?s:c?n.rateTrend?o:i:s}});return{...(0,t.toRefs)(n),classes:a,calcRate:l,calcStyle:r}}});function JC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("TriangleUp"),c=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(o,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(c,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Ho=ie(ZC,[["render",JC]]),{create:e2}=te("tour"),t2=e2({components:{[sn.name]:sn,Close:re.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),r=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:p,maskWidth:u,maskHeight:h}=e,{width:b,height:C,left:k,top:w}=l.value,S=[k+b/2,w+C/2],m=Number(u||b),f=Number(h||C);return{width:`${m+ +p[1]*2}px`,height:`${f+ +p[0]*2}px`,top:`${S[1]-f/2-+p[0]}px`,left:`${S[0]-m/2-+p[1]}px`}}),o=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,t.nextTick)(()=>{a.showPopup=!0,c()}),n("change",a.active)},c=()=>{l.value=Me(document.querySelector(`#${e.steps[a.active].target}`))},s=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{a.active=0,c()}),(0,t.watch)(()=>e.modelValue,p=>{p&&c(),a.active=0,a.showTour=p,a.showPopup=p}),{...(0,t.toRefs)(a),classes:r,maskStyle:i,changeStep:o,close:s,handleClickMask:d}}}),n2={key:0,class:"fox-tour-content"},l2={key:0,class:"fox-tour-content-top"},a2={class:"fox-tour-content-inner"},o2={class:"fox-tour-content-bottom"},r2={class:"fox-tour-content-bottom-init"},i2={class:"fox-tour-content-bottom-operate"},s2={key:1,class:"fox-tour-content fox-tour-content-tile"},c2={class:"fox-tour-content-inner"};function u2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Close"),c=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(c,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",n2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",l2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[(0,t.createVNode)(o,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",a2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",o2,[(0,t.createElementVNode)("div",r2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",i2,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",s2,[(0,t.createElementVNode)("div",c2,(0,t.toDisplayString)(s.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var jo=ie(t2,[["render",u2]]),{componentName:d2,create:f2}=te("barrage"),m2=f2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[d2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),o=null;const c=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),p=(0,t.ref)(0),u=e.speeds,h=(0,t.ref)(0);(0,t.onMounted)(()=>{b(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),p.value=0,C("hidden")):document.visibilityState==="visible"&&b()})}),(0,t.onUnmounted)(()=>{c.value=[],k()});const b=()=>{h.value=r.value.offsetWidth,a&&C("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${h.value}px`),S()},300)},C=f=>{let y=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const B=[];y&&Array.from(y).forEach(g=>{f=="init"?(g.style.opacity="0",B.push(g)):(g.classList="",g.style={})}),f=="init"&&(c.value=B)},k=()=>{o&&(clearTimeout(o),o=null)};(0,t.watch)(()=>e.danmu,f=>{e.danmu.length>0&&(c.value=[...f])});const w=f=>{const y=p.value%c.value.length;!e.loop&&p.value===c.value.length?c.value.splice(c.value.length,0,f):c.value.splice(y,0,f)},S=()=>{k(),o=setTimeout(()=>{m()},e.frequency)},m=()=>{const f=e.loop?p.value%c.value.length:p.value;let y=document.createElement("view");a&&typeof c.value[f]=="object"?(y=c.value[f],y?.classList?.add("fox-barrage__item")):(y.innerHTML=c.value[f],y.classList.add("fox-barrage__item"),i.value.appendChild(y)),(0,t.nextTick)(()=>{const B=y.offsetHeight;if(y?.classList?.add("move"),y.style.animationDuration=`${u}ms`,y.style.top=f%s.value*(B+d.value)+20+"px",y.style.opacity="1",!a){const g=y.offsetWidth;y.style.width=g+20+"px"}y.addEventListener("animationend",()=>{a?y.classList.remove("move"):i.value.removeChild(y)}),!(!e.loop&&p.value>=c.value.length-1)&&(p.value++,p.value>=c.value.length&&(p.value=0),y.removeEventListener("animationend",()=>{}),S())})};return{classTime:n,classes:l,danmuList:c,dmBody:r,dmContainer:i,add:w}}});function h2(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Wo=ie(m2,[["render",h2]]),{componentName:p2,create:g2,scope:y2}=te("signature"),b2=g2({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:{FoxButton:Nt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:a}){const{toLocaleRefs:l}=(0,ye.useFoxI18n)(y2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),o=(0,t.ref)(null),c=(0,t.computed)(()=>({[p2]:!0,[`${e.customClass}`]:e.customClass})),s=(0,t.reactive)({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),d=()=>{let f=document.createElement("canvas");return!!(f.getContext&&f.getContext("2d"))},p=()=>{i.value.addEventListener(s.events[0],u,!1)},u=f=>{f.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),i.value.addEventListener(s.events[1],h,!1),i.value.addEventListener(s.events[2],b,!1),i.value.addEventListener(s.events[3],C,!1)},h=f=>{f.preventDefault();let y=s.isSupportTouch?f.touches[0]:f;n("signing",y);let B=i.value.getBoundingClientRect(),g=y.clientX-B.left,v=y.clientY-B.top;s.ctx.lineTo(g,v),s.ctx.stroke()},b=f=>{f.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],h,!1),i.value.removeEventListener(s.events[2],b,!1)},C=f=>{f.preventDefault(),i.value.removeEventListener(s.events[1],h,!1),i.value.removeEventListener(s.events[2],b,!1)},k=()=>{i.value.addEventListener(s.events[2],b,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},w=()=>{m(i.value)},S=f=>{if(!f)return!0;var y=document.createElement("canvas");return y.width=f.width,y.height=f.height,f?.toDataURL()==y.toDataURL()},m=f=>{let y;switch(e.type){case"png":y=f.toDataURL("image/png");break;case"jpg":y=f.toDataURL("image/jpeg",.8);break}n("confirm",S(f)?"请绘制签名":f,S(f)?"":y)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=o.value.offsetWidth,s.canvasHeight=o.value.offsetHeight,p())}),a({confirm:w,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:o,isCanvasSupported:d,confirm:w,clear:k,classes:c}}}),v2={class:"fox-signature__inner",ref:"wrap"},S2=["height","width"],k2={key:0,class:"fox-signature-unsopport"},w2={class:"fox-signature__toolbar"};function C2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",v2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,S2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",k2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",w2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(o,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=c=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(o,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=c=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Yo=ie(b2,[["render",C2]]),N2=[Ol,Ul,Hl,jl,Xl,Ut,Kn,Zl,Jl,ea,ta,la,jn,ra,ua,ha,ga,nl,ll,ya,ol,rl,va,ka,yt,wa,Na,hl,Ba,Va,Yt,Xt,Qn,Ea,Ia,qa,xa,dt,Pa,Ma,Un,bt,Hn,Ra,za,Nt,Fa,La,Oa,ut,Ce,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga,_a,Za,Ja,eo,to,no,lo,ao,oo,ro,io,Zt,dl,Gn,tl,Jn,pl,cl,jt,so,co,uo,fo,mo,ho,po,en,ul,go,vo,sl,Tt,wo,Co,rn,No,Bo,Jt,To,Vo,Eo,Vt,$o,Do,Et,$t,Fn,yl,qo,xo,Po,Mo,sn,Ro,zo,Fo,Lo,Oo,Ko,Uo,Ho,jo,Wo,Yo],A2=new Ks(N2,"4.0.0");T.AbstractPageScopeKey=zl,T.ActionSheet=mo,T.FoxActionSheet=mo,T.ActionsheetItem=Ba,T.FoxActionsheetItem=Ba,T.ActionsheetPane=hl,T.FoxActionsheetPane=hl,T.Animate=Ko,T.FoxAnimate=Ko,T.Audio=wo,T.FoxAudio=wo,T.AudioOperate=Co,T.FoxAudioOperate=Co,T.Avatar=rn,T.FoxAvatar=rn,T.AvatarGroup=No,T.FoxAvatarGroup=No,T.BackTop=ho,T.FoxBackTop=ho,T.Badge=Po,T.FoxBadge=Po,T.Barrage=Wo,T.FoxBarrage=Wo,T.Broadcast=mr,T.BroadcastKey=Re,T.Button=Nt,T.FoxButton=Nt,T.ButtonsItem=Zl,T.FoxButtonsItem=Zl,T.Calendar=tl,T.FoxCalendar=tl,T.CalendarItem=ga,T.FoxCalendarItem=ga,T.Cascader=Gn,T.FoxCascader=Gn,T.CascaderItem=ua,T.FoxCascaderItem=ua,T.Cell=Fa,T.FoxCell=Fa,T.CellGroup=Oa,T.FoxCellGroup=Oa,T.Checkbox=ol,T.FoxCheckbox=ol,T.CheckboxGroup=rl,T.FoxCheckboxGroup=rl,T.CheckboxItem=va,T.FoxCheckboxItem=va,T.CircleProgress=To,T.FoxCircleProgress=To,T.Col=Ha,T.FoxCol=Ha,T.Collapse=zo,T.FoxCollapse=zo,T.CollapseItem=Fo,T.FoxCollapseItem=Fo,T.Content=jl,T.FoxContent=jl,T.CountDown=xo,T.FoxCountDown=xo,T.CountUp=qo,T.FoxCountUp=qo,T.DataItemsKey=zt,T.DateItem=ha,T.FoxDateItem=ha,T.DatePicker=Jn,T.FoxDatePicker=Jn,T.DateUtils=kt,T.Dialog=en,T.FoxDialog=en,T.Divider=Ya,T.FoxDivider=Ya,T.Domain=Cn,T.DomainKey=et,T.DomainProvider=Ra,T.FoxDomainProvider=Ra,T.Drag=po,T.FoxDrag=po,T.Dropdown=Ma,T.FoxDropdown=Ma,T.Elevator=no,T.FoxElevator=no,T.Ellipsis=Oo,T.FoxEllipsis=Oo,T.Empty=Eo,T.FoxEmpty=Eo,T.FixedNav=_a,T.FoxFixedNav=_a,T.FloatingButton=qa,T.FoxFloatingButton=qa,T.FooterBar=Hl,T.FoxFooterBar=Hl,T.FoxGrid=Xa,T.Grid=Xa,T.FoxGridItem=Qa,T.GridItem=Qa,T.FoxGroup=Xl,T.Group=Xl,T.FoxHeaderBar=Ul,T.HeaderBar=Ul,T.FoxHintText=yt,T.HintText=yt,T.FoxIcon=La,T.Icon=La,T.FoxImage=Ka,T.Image=Ka,T.FoxImagePreview=yl,T.ImagePreview=yl,T.FoxIndicator=ao,T.Indicator=ao,T.FoxInfiniteLoading=ul,T.InfiniteLoading=ul,T.FoxInputItem=ea,T.InputItem=ea,T.FoxInputNumber=pl,T.InputNumber=pl,T.FoxInputNumberItem=Va,T.InputNumberItem=Va,T.FoxItem=Ut,T.Item=Ut,T.FoxLayout=Ua,T.Layout=Ua,T.FoxLinkItem=wa,T.LinkItem=wa,T.FoxList=Bo,T.List=Bo,T.FoxMapping=Hn,T.Mapping=Hn,T.FoxMenu=Za,T.Menu=Za,T.FoxMenuItem=Ja,T.MenuItem=Ja,T.FoxMessageBox=dt,T.MessageBox=dt,T.FoxMoneyItem=ta,T.MoneyItem=ta,T.FoxMoreButton=xa,T.MoreButton=xa,T.FoxNavbar=Ga,T.Navbar=Ga,T.FoxNoticeBar=Vo,T.NoticeBar=Vo,T.FoxNotify=vo,T.Notify=vo,T.FoxNumberKeyboard=uo,T.NumberKeyboard=uo,T.FoxOverLay=ut,T.OverLay=ut,T.FoxPage=Ol,T.Page=Ol,T.FoxPagination=lo,T.Pagination=lo,T.FoxPicker=jt,T.Picker=jt,T.FoxPickerItem=ra,T.PickerItem=ra,T.FoxPopover=sn,T.Popover=sn,T.FoxPopoverDialog=Un,T.PopoverDialog=Un,T.FoxPopup=Ce,T.Popup=Ce,T.FoxPopupWrapper=Pa,T.PopupWrapper=Pa,T.FoxPrice=Fn,T.Price=Fn,T.FoxProgress=Jt,T.Progress=Jt,T.FoxPullRefresh=go,T.PullRefresh=go,T.FoxRadio=nl,T.Radio=nl,T.FoxRadioGroup=ll,T.RadioGroup=ll,T.FoxRadioItem=ya,T.RadioItem=ya,T.FoxRange=Zt,T.Range=Zt,T.FoxRate=cl,T.Rate=cl,T.FoxRateItem=Na,T.RateItem=Na,T.FoxRollingProvider=za,T.RollingProvider=za,T.FoxRow=ja,T.Row=ja,T.FoxRowItem=Kn,T.RowItem=Kn,T.FoxSearchBar=dl,T.SearchBar=dl,T.FoxShortPassword=so,T.ShortPassword=so,T.FoxSideNavBar=oo,T.SideNavBar=oo,T.FoxSideNavBarItem=ro,T.SideNavBarItem=ro,T.FoxSignature=Yo,T.Signature=Yo,T.FoxSkeleton=Ro,T.Skeleton=Ro,T.FoxSlotItem=Jl,T.SlotItem=Jl,T.FoxStep=Do,T.Step=Do,T.FoxSteps=$o,T.Steps=$o,T.FoxStepsBar=Ia,T.StepsBar=Ia,T.FoxSticky=Wa,T.Sticky=Wa,T.FoxSubSideNavBar=io,T.SubSideNavBar=io,T.FoxSwipe=fo,T.Swipe=fo,T.FoxSwiper=Et,T.Swiper=Et,T.FoxSwiperItem=$t,T.SwiperItem=$t,T.FoxSwitch=sl,T.Switch=sl,T.FoxSwitchItem=ka,T.SwitchItem=ka,T.FoxTabbar=eo,T.Tabbar=eo,T.FoxTabbarItem=to,T.TabbarItem=to,T.FoxTable=Lo,T.Table=Lo,T.FoxTabsBar=Yt,T.TabsBar=Yt,T.FoxTabsContainer=Xt,T.TabsContainer=Xt,T.FoxTabsFrame=Ea,T.TabsFrame=Ea,T.FoxTabsPane=Qn,T.TabsPane=Qn,T.FoxTag=Mo,T.Tag=Mo,T.FoxText=bt,T.Text=bt,T.FoxTextarea=jn,T.Textarea=jn,T.FoxTextareaItem=la,T.TextareaItem=la,T.FoxToast=Tt,T.Toast=Tt,T.FoxTour=jo,T.Tour=jo,T.FoxTrendArrow=Ho,T.TrendArrow=Ho,T.FoxUploader=co,T.Uploader=co,T.FoxVideo=Vt,T.Video=Vt,T.FoxWaterMark=Uo,T.WaterMark=Uo,T.InnerPageScopeKey=Rl,T.PriorityPolicy=Fl,T.UniqueID=Ln,T.ValidateSchema=br,T.ValidateSchemaKey=Je,T.browseProperty=$r,T.cancelRaf=Qo,T.clamp=Ye,T.clearNonNumber=Dl,T.compareTo=Bl,T.createBroadcast=xt,T.createValidateSchema=Sn,T.debounce=qe,T.debounceRef=Es,T.decimalLength=dr,T.default=A2,T.defineConfigDomain=Sr,T.defineDataItem=kr,T.defineDomain=Pl,T.defineDomainItemProperty=Ve,T.defineItem=Be,T.definePageState=wr,T.defineSimpleItem=Fe,T.deleteGlobalValidator=As,T.disabledProperty=Er,T.divide=Al,T.excludeProps=We,T.extend=mt,T.floatData=vs,T.getGlobalIcons=In,T.getGlobalValidateCheckEvents=pr,T.getGlobalValidateResetEvents=yr,T.getPageContentAreaHeight=Tn,T.getPageContentAreaWidth=Vn,T.getPageFooterAreaHeight=Bn,T.getPageHeaderAreaHeight=An,T.getRootDomain=ht,T.hasSymbol=rr,T.includeProps=ve,T.indexOf=ys,T.injectAbstractPageScope=Lt,T.injectAbstractPageScopeForContent=Tr,T.injectAbstractPageScopeForFooterBar=Br,T.injectAbstractPageScopeForHeaderBar=Ar,T.injectInnerPageScope=Ft,T.integerLength=ur,T.isArray=mn,T.isArrayLike=sr,T.isBrowser=_e,T.isDate=je,T.isDisplayNone=El,T.isESModule=fs,T.isEmptyString=he,T.isEqual=De,T.isFunction=hn,T.isHidden=Vl,T.isMap=ss,T.isNil=Ee,T.isNumberString=yn,T.isObject=$e,T.isPlainObject=ds,T.isPromise=ft,T.isRegExp=$l,T.isSet=cs,T.isString=ar,T.isSubPage=xs,T.isSymbol=us,T.isTouch=Wn,T.isWindow=ir,T.kebabToPascal=bn,T.lastIndexOf=bs,T.makeArray=gs,T.merge=cr,T.multiply=tr,T.negate=nr,T.nextTick=hs,T.numberFormat=fn,T.objectToString=or,T.once=$s,T.overrideGlobalIcons=Gs,T.overrideGlobalValidateHandler=Cs,T.padZero=rt,T.pascalToKebab=Ss,T.preventDefault=Il,T.property=Te,T.provideAbstractPageScope=Nr,T.provideInnerPageScope=Cr,T.px2Number=qs,T.raf=Ze,T.readonlyProperty=Vr,T.setGlobalValidateCheckEvents=Bs,T.setGlobalValidateHandler=ws,T.setGlobalValidateMessages=Vs,T.setGlobalValidateResetEvents=Ts,T.setGlobalValidator=Ns,T.throttle=wn,T.toBoolean=ke,T.toNumber=de,T.toPadding=Le,T.toPx=ue,T.toPxDesc=Is,T.toPxString=ge,T.toTypeString=pn,T.toValue=xe,T.tryTimes=ql,T.typeOf=gn,T.unNumberFormat=lr,T.updatePageState=Ml,T.useBroadcast=Pt,T.useDomain=tt,T.useInnerSize=Dn,T.usePageState=Nn,T.usePosition=Ql,T.useRawTouch=Yn,T.useRect=Me,T.useSize=Kl,T.useSlotChildren=Ot,T.useTouch=st,T.valueLength=we});