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

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 +8284 -8384
  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 +825 -832
  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 +23 -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 +50 -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 +163 -118
  99. package/package.json +3 -1
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var ts=Object.create,Dr=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyNames,os=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty,We=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),rs=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ls(n),i=0,a=r.length,u;i<a;i++)u=r[i],!as.call(e,u)&&u!==o&&Dr(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=ns(n,u))||l.enumerable});return e},Ye=(e,n,o)=>(o=e!=null?ts(os(e)):{},rs(n||!e||!e.__esModule?Dr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),rt=require("@fox-js/validator"),ae=require("@fox-js/icons-vue"),ve=require("@fox-js/i18n");var cn=window,is=typeof window<"u";function ss(){return typeof cn<"u"?cn.requestAnimationFrame||cn.webkitRequestAnimationFrame||function(e){cn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ir(e){is?cancelAnimationFrame(e):clearTimeout(e)}var Qe=ss();function bn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Ql(Ne(e),Ne(n)),o==1&&(l==1?e=yl(e):n=yl(n));let r=qr(e,n);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(yl(r)):Ne(r)}function yl(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return qr(n,i)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Ql(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[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"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function qr(e,n){[e,n]=Ql(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}var Ce=(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 jt(e,n=0,o=Ce.HALF_EVEN){if(o===Ce.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],a=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)+a,s=jt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Xa(r[1],i,l,o)?(l?"-":"")+bl(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");a=r[1].substring(0,n);let u=r[1].substring(n);return u&&Xa(u,a,l,o)&&(a=bl(a),a.length>n)?(l?"-":"")+bl(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function Xa(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!o&&l===Ce.FLOOR||o&&l===Ce.CEILING)return!1;if(l===Ce.UP||o&&l===Ce.FLOOR||!o&&l===Ce.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 Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function bl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;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 El(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Dt(e),n=Dt(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=Dt(e.replace(".","")),n=Dt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let a=n.length,u=0,s=[],d=a-1,h="";for(let c=0;c<a;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let p=0;for(let g=n.length-1;g>=d&&g>=0;g--)s[g]>-1&&s[g]<e.length&&(p+=parseInt(e[s[g]--])*parseInt(n[g]));p+=u,u=Math.floor(p/10),h=p%10+h,d--}return h=Dt(us(h,i)),o==1&&(h="-"+h),h}function us(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Dt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function $l(e,n,o=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=Ne(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ne(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let h=e.length-d+r;e=Ne(e.substring(0,h)+"."+e.substring(h))}else r==d&&(e=Ne(e.replace(".","")))}let i=0,a=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),a>s.length&&(d+=a-s.length,s=s+new Array(a-s.length+1).join("0")),i=d,u="0."+new Array(d).join("0")}for(o=o+2;i<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=bn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,s=s+"0")}return(l==1?"-":"")+Ne(jt(u,o-2))}function Dl(e,n){return e=e.toString(),n=n.toString(),n=Il(n),bn(e,n)}function Il(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Qa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ga(e),Ga(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Dl(e,El(n,jt($l(e,n),0,Ce.FLOOR)));return o+l}function Ga(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Za(e,n){let o=!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),o=!0),[e,n]=Ql(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]?o?-1:1:o?1:-1;return 0}var Jt=class pe{value;static RoundingModes=Ce;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[o,l]=n.split(/[eE]/);o=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=pe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&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 a="",u=i;u>0;)u<o?(o=u,u=0):u-=o,a=n.substring(u,u+o)+(u<i-o&&u>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return pe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=pe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return jt(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(jt(this.value,n,o))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=pe.validate(n),o=pe.validate(o),bn(n,o)}add(n){return new pe(bn(this.value,n.getValue()))}static subtract(n,o){return n=pe.validate(n),o=pe.validate(o),Dl(n,o)}subtract(n){return new pe(Dl(this.value,n.getValue()))}static multiply(n,o){return n=pe.validate(n),o=pe.validate(o),El(n,o)}multiply(n){return new pe(El(this.value,n.getValue()))}static divide(n,o,l){return n=pe.validate(n),o=pe.validate(o),$l(n,o,l)}divide(n,o){return new pe($l(this.value,n.getValue(),o))}static modulus(n,o){return n=pe.validate(n),o=pe.validate(o),Qa(n,o)}modulus(n){return new pe(Qa(this.value,n.getValue()))}static compareTo(n,o){return n=pe.validate(n),o=pe.validate(o),Za(n,o)}compareTo(n){return Za(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Il(n)}negate(){return new pe(Il(this.value))}};function Pr(e,n){return Jt.multiply(`${e}`,`${n}`)}function Gl(e,n,o=8){return Jt.divide(`${e}`,`${n}`,o)}var O2=Jt.RoundingModes;function ql(e,n){return e=`${e}`,n=`${n}`,Jt.compareTo(e,n)}function Mr(e){return Jt.negate(e)}function $n(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let u=i,s="",d=i.indexOf(".");d!=-1&&(u=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let c="",p=u.split("").reverse();for(let g=0;g<p.length;g++)c+=p[g]+((g+1)%l==0&&g+1!=p.length?r:"");s.length==0?h=`${a}${c.split("").reverse().join("")}`:h=`${a}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${a}${u}`:h=`${a}${u}.${s}`;return h}function zr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var et=typeof window<"u",He=Qe;function Ve(e){return e==null}var Dn=Array.isArray,cs=e=>In(e)==="[object Map]",ds=e=>In(e)==="[object Set]",je=e=>e instanceof Date,Sn=e=>typeof e=="function",Rr=e=>typeof e=="string",fs=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",yt=e=>xe(e)&&Sn(e.then)&&Sn(e.catch),Lr=Object.prototype.toString,In=e=>Lr.call(e),ms=e=>In(e)==="[object Object]",Fr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ps(e){return e.__esModule||Fr&&e[Symbol.toStringTag]==="Module"}var hs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function bt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let u=n[a],s=i[a];if(u!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[a]=bt(r,d,s)}else s!==void 0&&(n[a]=s)}}return n}var Sl=hs?Promise.resolve():null;function vs(e,...n){Sl!==null?n&&n.length>0?Sl.then(()=>{e(n)}):Sl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(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 St(e){let n=Object.prototype.toString.call(e);return e==null?String(e):gs[n]||"object"}function Pl(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Zl(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 Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Kr(e){let n=!!e&&"length"in e&&e.length,o=St(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ur(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function ys(e,n=[]){let o=n;return e!=null&&(Kr(Object(e))?Ur(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ee(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=St(e);if(o!==St(n))return!1;if(o==="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 a=l[i],u=e[a],s=n[a];if(!Ee(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Ee(r,i))return!1}return!0}return!1}function Ml(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function qn(e){return me(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(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 o=n.indexOf(".");return o==-1?n.length:o}function _r(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Ja(e,n,o){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(o,"")}function zl(e,n=!0,o=!0){n?e=Ja(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ja(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(o=>{if(Ee(e,o))return!0}):n.indexOf(e)}function Ss(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ee(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function tt(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}var ks=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);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 Rl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},_e=(e,n,o)=>Math.min(Math.max(e,n),o);function kn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ws(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Me=Symbol.for("BroadcastKey"),jr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.exposed=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);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,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:o};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 o=!1;return!n.name||n.name==="*"||n.name==="+"||Ml(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...o])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...o])),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(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const i=e.resolve,a=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(a),typeof i=="function"&&i(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Ml(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 a=Reflect.apply(i,null,[...o]);Ve(a)||r.push(a)}if(this.exposed&&typeof this.exposed[n]=="function"){const a=Reflect.apply(this.exposed[n],this.exposed,[...o]);Ve(a)||r.push(a)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...e},n,...o]);Array.isArray(a)&&a.length>0&&Reflect.apply([].push,r,[...a])}),r}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",a=(...u)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...u)};e.resolve=a}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function en(e,n,o,l){const r=new jr(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Lt(e){let n=e?.[Me];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Me,null)),n}var Cs=class{error(e,n){const o=Lt(n.exposed);o?o.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Lt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Lt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=Lt(o.exposed),r=n.find(a=>a.required===!0||a.type==="required"&&a.required!==!1),i=e.find(a=>a.required===!0||a.type==="required"&&a.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!1),this.reset(o))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Kt=new Cs;function Ns(e){Kt=e}function As(e){Kt?Object.assign(Kt,e):Kt=e}function Bs(e,n){rt.Schema.setValidator(e,n)}function Ts(e){rt.Schema.deleteValidator(e)}var Wr=["blur","clear"];function Vs(e){Wr=e}function Yr(){return Wr}var Xr=["focus","change","setValue"];function xs(e){Xr=e}function Qr(){return Xr}function Es(e){rt.Schema.messages(e)}function It(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function dn(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 Xe=Symbol("ValidateSchemaKey"),Gr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(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=dn(It(this.attrRules,this.rules)),n=[],o=this.descriptor.context?.attrs??{};for(let r in o){let i=o[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let a=this.getValidator(r);if(a!==null){let u={type:r,validator:a};n.push(u)}}this.attrRules=dn(n);const l=It(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 o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Kt;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,o=!1){o?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 o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=It(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=dn(e):this.rules=dn([e]);const o=It(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=It(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new rt.Schema(o),a=this.proxy??r;return i.validate(r,{context:a}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=a),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function Pn(e,n,o){o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string";const l={exposed:e,get $el(){return o.templateRefProxy?.$el},get props(){return o.props},get attrs(){return o.context?.attrs}};if(!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new Gr(n,o,l)}var wn=Symbol.for("EventEmitterKey"),Zr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.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 Ie(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Cn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function $s(e,n){const o=Ie((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){o(i,r)}}))}function Ds(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Jl(e,n,o,l=0,r=!0){let i=n,a=0;if(r){const s=e();if(a++,s||a>o)return}const u=()=>{const s=e();a++,!(s||a>o)&&(i+=l,setTimeout(u,i))};setTimeout(u,i)}var Ge=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Mn=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 o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=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 o=this._props[e];if(o!=null)return o}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 o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Is=new Mn;function ht(){return Is}function nt(){return(0,t.inject)(Ge,null)}var kl=Symbol("OriginalDateKey");function eo(e,n,o){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(Ge,null):null;i===null&&(i=ht());const a=n;let u=new Mn(a);u.parent=i;const s=b=>{u?.hasData(kl)||c(b),u?.set("modelValue",b)},d=()=>u?.getForSelf("modelValue")??null,h=()=>u?.getData(kl)??null,c=b=>{const f={};bt(!0,f,(0,t.toRaw)(b)),u.setData(kl,f)},p=e.props,g=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,b=>{u?.merge(b,g),b.modelValue&&c(b.modelValue)},{immediate:!0}):(u.merge(p,g),p.modelValue&&c(p.modelValue));const A=(b,f)=>{u?.set(b,f)},k=b=>u?.getForSelf(b)??null;if(u.componentPublicExposed[Ge]=u,(0,t.provide)(Ge,u),r!==null){const b=(0,t.inject)(Me,null),f=en(u.componentPublicExposed,b,a,o);u.broadcast=f,u.componentPublicExposed[Me]=f,(0,t.provide)(Me,f),u.componentPublicExposed.broadcast=(v,y,...V)=>{if(f)return Reflect.apply(f.emit,f,[v,y,...V])};const m=(0,t.inject)(Xe,null),S=Pn(u.componentPublicExposed,m,{componentName:"",context:e.context});u.validateSchema=S,u.componentPublicExposed[Xe]=S,(0,t.provide)(Xe,S),u.componentPublicExposed[Ft]=new Map,u.componentPublicExposed.validate=async(v=!0)=>{const y=[];let V=null;const T={};let N=!1;if(v===!0)V={name:"*"},N=!0;else if(Array.isArray(v)&&v.length>0){const C=v;V={name:P=>P?C.indexOf(P)!==-1:!1},N=!0}else if(v!=null&&typeof v=="object"){const C=v;if(C.deep!==!1){if(Object.assign(T,C),Array.isArray(C.include)&&C.include.length>0){const P=C.include;V={name:H=>H?P.indexOf(H)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const P=C.exclude;V={name:H=>H?P.indexOf(H)===-1:!1}}else V={name:"*"};N=!0}}if(N&&V){T.deep=!1;const C=f?.emitToChildren(V,"validate",T);C&&Reflect.apply([].push,y,C)}return y.length==1?y[0]:y.length>1?Promise.all(y).then(C=>{let P=[];return C.forEach(H=>{H.pass===!1&&Array.isArray(H.errors)&&(P=[...P,...H.errors])}),P.length>0?{pass:!1,errors:P}:{pass:!0}}):Promise.resolve({pass:!0})};const B=e.context;u.componentPublicExposed.setNameValidateRules=(v,y=!0,V=!1)=>{if(V===!0){Reflect.ownKeys(v).forEach(T=>{let N=String(T);const C={componentName:"",fieldName:N,pureDataValidate:!0,context:B};if(u){const P=ei(u,N,C,f,S);u.componentPublicExposed[Ft].set(N,P);const H=v[N];H&&P.validateSchema.setRule(H)}});return}if(y){const T=Reflect.ownKeys(v);f?.emitToChildren({name:N=>T.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",v,!1)}},u.componentPublicExposed.clearValidate=(v=!0)=>{let y=null;const V={};let T=!1;if(v===!0)y={name:"*"},T=!0;else if(Array.isArray(v)&&v.length>0){const N=v;y={name:C=>C?N.indexOf(C)!==-1:!1},T=!0}else if(v!=null&&typeof v=="object"){const N=v;if(N.deep!==!1){if(Array.isArray(N.include)&&N.include.length>0){const C=N.include;y={name:P=>P?C.indexOf(P)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;y={name:P=>P?C.indexOf(P)===-1:!1}}else y={name:"*"};Object.assign(V,N),T=!0}}T&&y&&(V.deep=!1,f?.emitToChildren(y,"clearValidate",V))},u.componentPublicExposed.resetFields=v=>{const y=d();if(!y)return;const V={};if(bt(!0,V,h()??{}),Array.isArray(v))v.forEach(T=>{y[T]=V[T]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(T=>{y[T]=V[T]});else if(v&&Array.isArray(v.exclude)){let T=v.exclude??[];Reflect.ownKeys(V).forEach(N=>{T.includes(N)||(y[N]=V[N])})}else Object.assign(y,V);u?.componentPublicExposed?.clearValidate(v)},u.componentPublicExposed.setModelValue=(v,y)=>{if(!y||y===a)s(v);else{const V={name:y,messagingPolicy:"Once"};f?.emitToChildren(V,"setModelValue",v)}},u.componentPublicExposed.getModelValue=()=>d(),u.componentPublicExposed.setDomainProperty=(v,y)=>{A(v,y)},u.componentPublicExposed.getDomainProperty=v=>k(v),setTimeout(function(){f?.pull()},0)}(0,t.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ft]&&u.componentPublicExposed[Ft].clear(),u?.destroy(),u=null});const w=e.context?.expose;return{domain:u,exposeApi:(b={})=>{Object.assign(u.componentPublicExposed,b),w?.(u.componentPublicExposed)}}}function Jr(e,n){let o=(0,t.inject)(Ge,null);o===null&&(o=ht());let l=new Mn(n);l.parent=o;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,u=>{l?.merge(u,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[Ge]=l,(0,t.provide)(Ge,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const a=e.context?.expose;return{domain:l,exposeApi:(u={})=>{Object.assign(l.componentPublicExposed,u),a?.(l.componentPublicExposed)}}}function Be(e,n,o){const l={},r=n??e.componentName??"";let i=en(l,(0,t.inject)(Me,null),r,o);l[Me]=i,(0,t.provide)(Me,i),l.broadcast=(c,p,...g)=>i?Reflect.apply(i.emit,i,[c,p,...g]):null;const a=(0,t.inject)(Xe,null);e.fieldName=e.fieldName??r;let u=Pn(l,a,e);l[Xe]=u,(0,t.provide)(Xe,u),l.validate=async(c=null)=>{if(!u)return Promise.resolve({pass:!0});const p=[];let g=null;const A={};let k=!1,w=!1;if(c===!0)g={name:"*"},w=!0,k=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const b=c;g={name:f=>f?b.indexOf(f)!==-1:!1},w=!0,k=!0}else if(c&&typeof c=="object"){const b=c,f=b.ignoreDisabled??!0,m=b.ignoreReadonly??!0,S=b.ignoreHidden??!0;f===!0&&e.disabled===!0||m===!0&&e.readonly===!0||S===!0&&Pl(e.templateRefProxy?.$el??e.templateRefProxy)?w=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),w=!0),Object.assign(A,b),k=b.deep??!1}if(w){const b=u?.validate();p.push(b)}if(k&&g){A.deep=!1;const b=i?.emitToChildren(g,"validate",A);b&&Reflect.apply([].push,p,b)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(b=>{let f=[];return b.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=c=>u?.setRule(c),l.setNameValidateRules=(c,p=!1)=>{const g=c[r];g&&u?.setRule(g),p&&i&&i.emitToChildren({name:A=>Reflect.ownKeys(c).includes(A)},"setNameValidateRules",c,!1)},l.clearValidate=(c=!0)=>{if(!u)return;let p=null;const g={};let A=!1,k=!1;if(c===!0)p={name:"*"},k=!0,A=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const w=c;p={name:b=>b?w.indexOf(b)!==-1:!1},k=!0,A=!0}else if(c&&typeof c=="object"){const w=c;(w.ignoreHidden??!0)===!0&&Pl(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(g,w),A=w.deep??!1}k&&u?.clear(),A&&p&&(g.deep=!1,i?.emitToChildren(p,"clearValidate",g))};let s=new Zr(e.context?.emit);l[wn]=s,l.triggerEvent=(c,...p)=>{s.emit(c,...p)};const d=Ie((c="validate")=>{u&&(c==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Yr()).forEach(c=>{s&&s.on(c,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Qr()).forEach(c=>{s&&s.on(c,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),l[Xe]=null,u=null,s?.destroy(),l[wn]=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:u,emitEvent:(c,...p)=>{s&&Reflect.apply(s.emit,s,[c,...p])},onEvent:(c,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(c,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(c={})=>{Object.assign(l,c),h?.(l)}}}function ei(e,n,o,l,r){const i={},a=n??"",u={getValue(){const c=e.getForSelf("modelValue");return c?c[a]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,a):!1}};o.fieldName=a,o.validateHandler={getValue(c){return u.getValue()}};let s=Pn({},r,o);i.validate=async(c=null)=>{if(!u.isExist())return console.warn(`validate error: field [${a}] not exist`),Promise.resolve({pass:!0});const p=[];let g=!1,A=!1;if(Array.isArray(c)&&c.indexOf(a)!==-1)A=!0,g=!0;else if(c&&typeof c=="object"){const k=c;Array.isArray(k.include)&&k.include.indexOf(a)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(a),A=!0,g=k.deep??!1}else typeof c=="boolean"&&(g=c),A=!0;if(A&&s){const k=s.validate();p.push(k)}if(g){let k=null;const w={};if(c===!0)k={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;k={name:f=>f?b.indexOf(f)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Object.assign(w,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;k={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;k={name:m=>m?f.indexOf(m)===-1:!1}}else k={name:"*"}}if(k&&d){w.deep=!1;const b=d.emitToChildren(k,"validate",w);Reflect.apply([].push,p,b)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let w=[];return k.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(w=[...w,...b.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=c=>s?.setRule(c),i.setNameValidateRules=c=>{const p=c[a];p&&s?.setRule(p)};let d=en(i,l,a);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=o.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(c={})=>{Object.assign(i,c),h?.(i)}}}function Oe(e,n){let o={};if(n){const i=(0,t.inject)(Me,null),a=en(o,i,n,{});o[Me]=a,(0,t.provide)(Me,a)}let l=new Zr(e.context?.emit);o[wn]=l,o.triggerEvent=(i,...a)=>{l.emit(i,...a)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(o,wn),o=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...a)=>{l&&Reflect.apply(l.emit,l,[i,...a])},onEvent:(i,a)=>{l&&Reflect.apply(l.on,l,[a])},offEvent:(i,a)=>{l&&Reflect.apply(l.off,l,[a])},componentPublicExposed:o,exposeApi:(i={})=>{Object.assign(o,i),r?.(o)}}}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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(et){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),u=a.indexOf("px");u>0&&(i=Number(a.substring(0,u)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*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 Ze="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 Ll(e,n,o={},l=!0,r=-1,i=-1,a=0,u=0){if(e.headerHeight=ue(o.headerHeight??n.headerHeight??-1),e.headerPadding=Le(o.headerPadding??n.headerPadding),e.footerHeight=ue(o.footerHeight??n.footerHeight??-1),e.footerPadding=Le(o.footerPadding??n.footerPadding),e.contentPadding=Le(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(a,i)-ue(u,i),e.width=ue(o.width??n.width??0,r)}}function ti(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},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;Ll(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const a=(0,t.reactive)(l),u=e.getForParent(Ze);u&&(l.height=Nn(e,u),l.width=An(e,u),(0,t.watch)([()=>Nn(e,u),()=>An(e,u)],([d,h])=>{a.height=d,a.width=h}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,c=-1,p=-1,g=0,A=0])=>{Ll(a,h,n,s,c,p,g,A)}),e.set(Ze,a),a}function zn(e){return e.get(Ze)}function Rn(e,n){if(n=n??e.get(Ze),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Ln(e,n){if(n=n??e.get(Ze),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Nn(e,n){if(n=n??e.get(Ze),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Rn(e,n),l=Ln(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-o-l-r-i}return 0}function An(e,n){if(n=n??e.get(Ze),n){const o=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Ms(e){return!!e.getForParent(Ze)}var to=Symbol.for("InnerPageScopeKey");function ni(e){(0,t.provide)(to,e)}function tn(e=!1){return(0,t.inject)(to,e)}var no=Symbol.for("AbstractPageScopeKey");function li(e){(0,t.provide)(no,e)}function nn(e=!1){return(0,t.inject)(no,e)}function oi(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function ai(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ri(e=!1){const n=nn(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 fn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const r=nt();return r==null?e:o===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let u=i.length-1;u>=0;u--){const s=i[u];if(fn(s,l))return s}const a=e.value;return fn(a,l)?a:null}):(0,t.computed)(()=>{const i=e.value;if(fn(i,l))return i;const a=r.getAll(n);for(let u=0;u<a.length;u++){const s=a[u];if(fn(s,l))return s}return null})}function ii(e){return Ae(e,"readonly",1)}function si(e){return Ae(e,"disabled",1)}function ui(e){return Ae(e,"browse",1)}function Te(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=si((0,t.computed)(()=>o.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:o,disabled:l,innerReadonly:r,readonly:ii((0,t.computed)(()=>r.value??e.readonly)),browse:ui((0,t.computed)(()=>e.browse))}}function qe(e,n="modelValue",o=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof o=="function"&&(i=o(r.value));const a=(0,t.ref)(i);return(0,t.watch)(r,u=>{if(typeof o=="function"){const s=o(u);s!==a.value&&(a.value=s,l&&l("setValue",s))}else u!==a.value&&(a.value=u,l&&l("setValue",u))}),a}var ci=new Map,Bn=new Map,lo=null;function zs(e){lo=e}function Rs(){return lo}function ct(){return lo?.()??null}function di(e,n,o){if(o){let l=Bn.get(o);l||(l=new Map,Bn.set(o,l)),l.set(e,n)}else ci.set(e,n)}function lt(e,n){let o=null;if(n){let l=Bn.get(n);l&&(o=l.get(e))}return o||(o=ci.get(e)),o}function Ls(e,n){for(let o in e){const l=e[o];di(o,l,n)}}function Fs(e){Bn.delete(e)}function Os(){return{top:0,left:0,bottom:0,right:0}}function Ks(){return et?{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 Us(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return kn(o)}var Hs=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=Us(l.name,n);e.component(r,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Ie(()=>{const i={...l};this.updateLayout(i,o)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,o)},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,o)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,r=bt({},Os(),e.safeAreaInset),i=Ks(),a=bt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",r),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",a),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){zs(e)}getScopeGetter(){return Rs()}setAPI(e,n,o){di(e,n,o)}getAPI(e,n){return lt(e,n)}batchSetAPI(e,n){Ls(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=kn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(r,i)=>{let a=l.name;i?.componentPrefix&&(a=`${i.componentPrefix}-${l.baseName}`,a=kn(a)),r.component(a,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var _s=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(Rr(l)?o=document.querySelector(l):o=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};Sn(n.wrapper)?i=n.wrapper(o,r):i=n.wrapper;const a=(0,t.createApp)(i,e),u=n.components;return u&&u.forEach(s=>{a.use(s)}),o.appendChild(r),{instance:a.mount(r),unmount:()=>{a.unmount(),o.removeChild(r)}}},fi=(e,n)=>e?(0,t.h)(e,n):"",ge={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}},be={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}},mi={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}},pi={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}},hi=[];for(const e in pi)hi.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:{...ge,...mi,...js},setup(o,l){const r=!!nn(!1),i=tn(!1),{domain:a,exposeApi:u}=eo({props:o,context:l},o.name);if(a){const c=ti(a,o);u({getPageContentHeight:()=>Nn(a,c),getPageContentWidth:()=>An(a,c),getPageHeaderHeight:()=>Rn(a,c),getPageFooterHeight:()=>Ln(a,c)}),c&&i&&(c.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(c,p=!1)=>{a.componentPublicExposed&&typeof a.componentPublicExposed.setNameValidateRules=="function"&&a.componentPublicExposed.setNameValidateRules(c,!0,p)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,p],[g,A])=>{if(c&&g){const k=(0,t.toRaw)(g),w=(0,t.toRaw)(c),b=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{b.includes(f)||(w[f]=[])}),h(w)}if(p&&A){const k=(0,t.toRaw)(A),w=(0,t.toRaw)(p),b=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{b.includes(f)||(w[f]=[])}),h(w,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&h((0,t.toRaw)(o.rules)),o.pureDataRules&&h((0,t.toRaw)(o.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}=J("page"),Gs=Xs(Ws(Ys,Qs)),oo=Gs;function ao(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),i=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-a}}var vi={headerbar:{},radio:{},checkbox:{}};function Zs(e){Object.assign(vi,e)}function On(){return vi}var Js=(e,n,o,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 a=oi(!1),u=tn(!1),s=a?null:nt(),d=s?zn(s):null,h=On(),c=e,p=(0,t.computed)(()=>{const x={[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed};return u||(x[`${c}--safe-area-inset-top`]=r.safeAreaInsetTop),x}),g=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),A=Ve(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return x;if(s&&d){const M=Le(r.padding??d.headerPadding);if(Object.assign(x,M),Ve(A)||(d.headerHeight=A),x.height=d.headerHeight,x.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,x.safeAreaTop>0){const q=ue(M.top??0);x.top=x.safeAreaTop+q,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Ve(A)||(x.height=A),r.padding){const M=Le(r.padding);Object.assign(x,M)}return x}),w=(0,t.ref)(null),b=()=>d&&w.value&&!Zl(w.value)?(l||(d.headerAllHeight=ao(w.value).height),d.headerMounted=!0,!0):!1,f=Ie(b,120);let m=null;(0,t.onMounted)(()=>{a||d&&(Jl(b,50,5,50,!0),window.ResizeObserver&&w.value&&(m=new window.ResizeObserver(f),m.observe(w.value)))}),(0,t.onUnmounted)(()=>{a||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const S=(0,t.computed)(()=>{const x={};return a||(k.value.height!==null&&k.value.height!==void 0&&(x.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(x.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(x.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(x.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(x.paddingBottom=`${k.value.bottom}px`)),x}),B=(0,t.computed)(()=>{const x=k.value?.height;return Ve(x)||x<0?!0:x>0});function v(){i.emit("back")}function y(){i.emit("click-title")}function V(){i.emit("click-right")}function T(){i.emit("click-right-text")}const N=()=>{if(!r.leftShow)return null;const x=[];if(i.slots.left)x.push(i.slots.left());else{if(i.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:v},[i.slots.leftIcon()]);x.push(M)}else{const M=r.leftIcon??h.headerbar.Left??o,q=(0,t.h)("view",{class:"left-icon",onClick:v},[(0,t.h)(M)]);x.push(q)}if(r.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:v},[r.leftText]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},C=()=>{if(!r.rightShow)return null;const x=[];if(i.slots.right)x.push(i.slots.right());else{if(r.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:T},[r.rightText]);x.push(M)}if(i.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[i.slots.rightIcon()]);x.push(M)}else if(r.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[(0,t.h)(r.rightIcon)]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},P=()=>{if(!r.titleShow)return null;const x=[],M=i.slots.default?i.slots.default():null;if(M)x.push(M);else{if(r.title){const q=(0,t.h)("view",{class:"title-text"},[r.title]);x.push(q)}if(i.slots.titleIcon){const q=(0,t.h)("view",{class:"title-icon",onClick:y},[i.slots.titleIcon()]);x.push(q)}else if(r.titleIcon){const q=(0,t.h)("view",{class:"title-icon",onClick:y},[(0,t.h)(r.titleIcon)]);x.push(q)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},H=()=>{const x=[],M=i.slots.bottom?i.slots.bottom():null;return M&&x.push(M),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(a||!B.value)return null;const x=[];if(i.slots.all)x.push(i.slots.all());else{const M=[],q=N();q&&M.push(q);const R=P();R&&M.push(R);const z=C();if(z&&M.push(z),M.length>0){const I=(0,t.h)("view",{class:g.value},M);x.push(I)}const W=H();W&&x.push(W)}return x.length===0?null:(0,t.h)("view",{class:p.value,style:S.value,ref:w},x)}}}),{componentName:eu,create:tu,scope:nu}=J("header-bar"),lu=tu(Js(eu,nu,ae.Left,!1)),ro=lu;function ou(e,n,o=!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=ai(!1),a=tn(!1),u=i?null:nt(),s=u?zn(u):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return a||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),c=Ve(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(u&&s){const S=Le(l.padding??s.footerPadding);if(Object.assign(m,S),Ve(c)||(s.footerHeight=c),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(Ve(c)||(m.height=c),l.padding){const S=Le(l.padding);Object.assign(m,S)}return m}),g=(0,t.computed)(()=>{const m=p.value?.height;return Ve(m)||m<0?!0:m>0}),A=(0,t.ref)(null),k=()=>s&&A.value&&!Zl(A.value)?(o||(s.footerAllHeight=ao(A.value).height),s.footerMounted=!0,!0):!1,w=Ie(k,120);let b=null;(0,t.onMounted)(()=>{i||s&&(Jl(k,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(w),b.observe(A.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,b&&(b.disconnect(),b=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||!g.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:au,create:ru,scope:iu}=J("footer-bar"),su=ru(ou(au,iu,!1)),io=su;function uu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:r}){const i=ri(!1),a=tn(!1),u=i?null:nt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?zn(u):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(u&&d){if(o.padding){const y=Le(o.padding);Object.assign(d.contentPadding,y)}const w=Rn(u,d),b=Ln(u,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:",b),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||b>0)&&(S=S<0?0:S,k.paddingBottom=`${b+S}px`);const B=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);B>=0&&(k.paddingLeft=`${B}px`);const v=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return v>=0&&(k.paddingRight=`${v}px`),k}if(o.padding){const w=Le(o.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}),c=(0,t.ref)(null),p=()=>{if(d&&c.value){const k=Fn(c.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},g=Ie(p,120);let A=null;return(0,t.onMounted)(()=>{a||i||(requestAnimationFrame(p),window.ResizeObserver&&c.value&&(A=new window.ResizeObserver(g),A.observe(c.value)))}),(0,t.onUnmounted)(()=>{a||i||A&&(A.disconnect(),A=null)}),()=>i?l.default?.():(0,t.h)(o.tag??"view",{...r,ref:c,class:s.value,style:h.value},l)}}}var{componentName:cu,create:du,scope:fu}=J("content"),mu=du(uu(cu,fu)),so=mu,kt="GroupStateKey",gi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(gi,!1)}function Un(e=!0){(0,t.provide)(gi,e)}function pu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ve(l)||(e[o]=l)})}function hu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};pu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(kt,l),l}function wl(e,n,o=-1,l=-1,r=!1,i,a,u){const s=e.get(kt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),a||(a=d.maxItemWidth??-1);const h=ue(i),c=ue(a);u||(u=d.type??"grid");const p=()=>{const g=n===""||n===-1,A=ue(n);let k=de(o);const w=ue(l);if(!g){let m=(A-(k-1)*w)/k;for(;c!==-1&&m>c;)k++,m=(A-(k-1)*w)/k;for(;h!==-1&&k>1&&m<h;)k--,m=(A-(k-1)*w)/k}let b=!1;const f=s.layout;f.value.width=n,f.value.column!==k&&(f.value.column=k,b=!0),f.value.gutter!==w&&(f.value.gutter=w,b=!0),f.value.type!==u&&(f.value.type=u,b=!0),b&&(0,t.triggerRef)(f)};if(r)p();else{const g=++s.passport;setTimeout(()=>{g===s.passport&&p()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(kt):o=e.get(kt),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(kt):o=e.get(kt),o.order}function er(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function jn(e,n,o=1,l=0,r){const i={};let a=0;r?a=ue(r):a=er(n.column,o),a>0&&(i.width=`${a}%`);const u=er(n.column,l);u>0&&(i["margin-left"]=`${u}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Wn(e,n,o=1,l=0){if(o==="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(o);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 a=(e.index+i)%n.column,u=a+r;return u>n.column?(a=0,u=a+r,e.index=e.index+(n.column-a)+r):e.index=e.index+i+r,i>0?{"grid-column":`${a+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var yi=Symbol("RollingStateKey");function vu(e){(0,t.provide)(yi,e)}function gu(){return(0,t.inject)(yi,null)}function Ol(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function yu(e){let n=Ol(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Ol(o),document.body.removeChild(o)}return n}function bu(e,n,o){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const a=(l-(r-1)*i)/r;return a>0?`${a}px`:"1fr"}function bi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...bi(o.children)):n.push(o)}),n}function Su(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yn(e){function n(){return bi(e?.()??[]).filter(Su)}return{getChildren:n}}var ku={...ge,...mi,...pi};function wu(e,n,o){return{props:ku,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:a}=eo({props:l,ignorePropKeys:hi,context:r},l.prop??l.name),u=hu(i,{type:l.type}),s=Kn();Un(!0);const d=l.rollingDisplay?gu():null,h=(0,t.ref)(null),c=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Hn(i,!0).value:null),g=(X,ne=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(X,!0,ne)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([X,ne],[K,_])=>{if(X&&K){const $=(0,t.toRaw)(K),E=(0,t.toRaw)(X),L=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{L.includes(Z)||(E[Z]=[])}),g(E)}if(ne&&_){const $=(0,t.toRaw)(_),E=(0,t.toRaw)(ne),L=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{L.includes(Z)||(E[Z]=[])}),g(E,!0)}},{deep:!0});const A=e,k=(0,t.computed)(()=>{const X={};if(X.height=M.value,l.width)l.width!=="auto"&&(X.width=he(l.width));else{const ne=s?_n(i,!0):null;if(p.value&&ne){if(p.value.type==="grid"){const K=Wn(ne,p.value,l.span,l.offset);Object.assign(X,K)}else if(p.value.type==="flow"){const K=jn(ne,p.value,l.span,l.offset,l.width);Object.assign(X,K)}}}return X}),w=(0,t.computed)(()=>{const X=u.layout.value.type;return X==="grid"||X==="flow"?{[`${A}--${X}`]:!0,[`${A}--${X}-justify-${l.justify}`]:!0,[`${A}--${X}-align-${l.align}`]:!0,[`${A}--gutter`]:!0}:{[`${A}--${X}`]:!0,[`${A}--gutter`]:!0}}),b=(0,t.computed)(()=>{if(u.layout.value.type==="grid"){let X="";if(l.columnWidth)X=`repeat(auto-fill, ${l.columnWidth})`;else{const ne=bu(V.value,u.layout.value.column,u.layout.value.gutter);X=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":X}}}),f=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),S=(0,t.computed)(()=>s||c.value?!0:Se(l.isWrap)),B=[],v=X=>{B.push(X)},y=()=>{let X=B.length;B.splice(0,X)},V=(0,t.ref)(-1),T=X=>{const ne=Fn(X).width;ne>0&&ne!==V.value&&(V.value=ne)};wl(i,V.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([V,m,f],([X,ne,K])=>{u.order.index=0,wl(i,X,ne,K,!1,l.minItemWidth,l.maxItemWidth,l.type)});const N=(0,t.computed)(()=>q.value?l.expandText??"":l.collapseText??""),C=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),P=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),H=(0,t.ref)(),x=(0,t.ref)(),M=(0,t.computed)(()=>R.value||he(l.height)||""),q=(0,t.ref)(!1),R=(0,t.ref)(""),z=(0,t.ref)(!1);let W=-1;const I=(X,ne=!0)=>{const K=H.value;if(K&&q.value!==X){if(W=W<=0?yu(K):W,z.value=!0,ne)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",X||(R.value="",z.value=!1)},X){let _=0;l.collapseHeight?_=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(_=x.value.offsetHeight),R.value=`${W}px`,(0,t.nextTick)(()=>{R.value=`${_}px`})}else R.value=`${W}px`;else if(X){let _=0;l.collapseHeight?_=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(_=x.value.offsetHeight),R.value=`${_}px`}else z.value=!1,R.value=`${W}px`;q.value=X,r.emit("update:collapse",X)}};(0,t.watch)(()=>l.collapse,X=>{I(X)});const Q=X=>{r.emit("header-click",X)},ee=()=>{oe()},oe=X=>{X=X??!q.value,I(X)};a({toggleCollapse:oe,doLayout:()=>{B[0]&&(T(B[0]),wl(i,V.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let G=null,F=!0;const te=X=>{if(l.rules&&g((0,t.toRaw)(l.rules)),l.pureDataRules&&g((0,t.toRaw)(l.pureDataRules),!0),!!et&&(X&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const ne=B[0];if(T(ne),window.ResizeObserver){const K=Ie(()=>T(ne),120);G=new window.ResizeObserver(K),G.observe(ne)}}},U=()=>{G?.disconnect(),G=null},D=!c.value||d?.acquire();D&&(h.value=c.value?!0:null),(0,t.onMounted)(()=>{if(D&&(te(F),F=!1),c.value&&d){let X=null,ne=d.initialHeight;d.observe(H.value,K=>{if(K!==h.value)if(K)h.value=!0,q.value||(R.value=""),X=setTimeout(()=>{X=null,h.value!==!1&&(te(F),F=!1)},100);else{if(X!==null&&clearTimeout(X),h.value=!1,!q.value)if(F)R.value=d.initialHeight;else{let _=Ol(H.value);_<=0?R.value=ne:(R.value=`${_}px`,ne=R.value)}F||U()}})}}),(0,t.onUnmounted)(()=>{G?.disconnect(),d&&d.unobserve(H.value)});const O=(X="right")=>{const ne=[];if(N.value){const $=(0,t.h)("span",{class:C.value},[N.value]);ne.push($)}const K={class:P.value},_=(0,t.h)(l.collapseIcon??o,K);return ne.push(_),ne.length>0?(0,t.h)("div",{class:{[`${A}__header-collapse`]:!0,[`is-${X}`]:!0},onClick:ee},ne):null},j=(X,ne,K,_)=>{const $={...w.value};if(ne===0&&($[`${A}__first`]=!0),K>=_-1&&($[`${A}__last`]=!0),S.value===!1){const E=r.attrs.class;E&&($[`${E}`]=!0)}return(0,t.h)("div",{ref:v,key:`${ne}`,class:$,style:b.value},X)};return()=>{const X=l.prop??l.name;if(c.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:H,prop:X,class:{[`${A}`]:!0,"is-collapse":z.value},style:k.value},[]);u.order.index=0;const ne=[];let K=0;if(r.slots.header){const L=(0,t.h)("div",{key:`${K++}`,ref:x,class:{[`${A}__header`]:!0,[`${A}__first`]:!0},onClick:Q},[r.slots.header()]);ne.push(L)}else{const L=[],Z=l.collapsePosition==="left";if(Z&&l.showCollapse){const le=O("left");le&&L.push(le)}if(l.title||r.slots.title){if(l.showMark){const le={class:{[`${A}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const ie=(0,t.h)("div",le);L.push(ie)}if(r.slots.title){const le=(0,t.h)("div",{class:{[`${A}__header-title`]:!0}},[r.slots.title()]);L.push(le)}else if(l.title){const le=(0,t.h)("div",{class:{[`${A}__header-title`]:!0}},[l.title]);L.push(le)}}if(r.slots.toolbar&&L.push(r.slots.toolbar()),!Z&&l.showCollapse){const le=O("right");le&&L.push(le)}if(L.length>0){const le=(0,t.h)("div",{key:`${K++}`,ref:x,class:{[`${A}__header`]:!0,[`${A}__first`]:!0},onClick:Q},L);ne.push(le)}}y();const{getChildren:_}=Yn(r.slots.default),$=_(),E=u.layout.value.type;if(E==="grid"){const L=j($,K++,0,$.length);ne.push(L)}else if(E==="flow"){const L=j($,K++,0,$.length);ne.push(L)}else for(let L=0;L<$.length;L++){const Z=$[L],le=j([Z],K++,L,$.length);ne.push(le)}return S.value?(0,t.h)(l.tag||"div",{ref:H,prop:X,class:{[`${A}`]:!0,"is-collapse":z.value},style:k.value},[ne]):ne}}}}var{componentName:Cu,create:Nu,scope:Au}=J("group"),Bu=Nu(wu(Cu,Au,ae.RectUp)),uo=Bu;function Tu(e){return e===window}var Vu=/matrix\((.+)\)/,co=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Tu(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,u=0,s=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const h=Vu.exec(d);if(h){let c=h[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}r=r.parentNode}return o-=i,l-=a,o+=u,l+=s,{x:o,y:l}},xu=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{}})}},Eu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new xu,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}},Ut=new Eu,Si={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:$u,create:Du}=J("price"),Iu=Du({props:{...Si},setup(e){const n=(0,t.computed)(()=>({[$u]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":$n(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,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)})}}}),re=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},qu=["innerHTML"],Pu=["innerHTML"];function Mu(e,n,o,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,qu)):(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,Pu)):(0,t.createCommentVNode)("",!0)],2)}var Xn=re(Iu,[["render",Mu]]),{componentName:Cl,create:zu}=J("hint-text"),Ru=zu({components:{Price:Xn},props:{...Si,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 o=(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),a=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(C,P,H,x,M,q)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,W=C.split("-");let I=[];W[0]==="top"?I=["top","bottom","right","left"]:W[0]==="bottom"?I=["bottom","top","right","left"]:W[0]==="left"?I=["left","top","bottom","right"]:W[0]==="right"&&(I=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},ee=[];for(let oe=0;oe<I.length;oe++){const Y=I[oe];if(ee[0]=Y,W[1]&&(ee[1]=W[1]),Y==="top"){const G=P.y-q-e.arrowSize-e.offset;if(G>=0){Q.top=G;let F=0;W[1]==="start"?F=P.x:W[1]==="end"?F=P.x+H-M:F=P.x+H/2-M/2;const te=R-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(Y==="bottom"){const G=P.y+x+e.arrowSize+e.offset;if(G+q<=z){Q.top=G;let F=0;W[1]==="start"?F=P.x:W[1]==="end"?F=P.x+H-M:F=P.x+H/2-M/2;const te=R-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(Y==="left"){const G=P.x-M-e.arrowSize-e.offset;if(G>=0){Q.left=G;let F=0;W[1]==="start"?F=P.y:W[1]==="end"?F=P.y+x-q:F=P.y+x/2-q/2,Q.top=F<0?0:F;break}}else if(Y==="right"){const G=P.x+H+e.arrowSize+e.offset;if(G+M<=R){Q.left=G;let F=0;W[1]==="start"?F=P.y:W[1]==="end"?F=P.y+x-q:F=P.y+x/2-q/2,Q.top=F<0?0:F;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:Q}},h=(C,P,H=10)=>{if(!et||P===!1||!C)return;l.value=co(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const x=s.value.offsetHeight,M=s.value.offsetWidth,{bestPlacement:q,bestInsetRect:R}=d(e.placement,l.value,r.value,i.value,M,x);a.value=q,o.value=R,u.value=!0},c=(0,t.ref)(0),p=Ie(()=>{h(e.message,e.visible)},10),g=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,C=>{g.value=C});const A=(0,t.computed)(()=>g.value&&k.value),k=(0,t.ref)(!0),w=Ie(C=>{const P=C[0];P&&(k.value=P.isIntersecting)},10),b=new IntersectionObserver(w);(0,t.watch)([()=>e.message,()=>e.visible],([C,P])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Ut.watch(e.reference,p),b.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ut.unwatch(e.reference,p),b.unobserve(e.reference),b.disconnect()});const f=(0,t.computed)(()=>{const C={[Cl]:!0};return a.value.startsWith("top")?C["is-top"]=!0:a.value.startsWith("right")?C["is-right"]=!0:a.value.startsWith("bottom")?C["is-bottom"]=!0:a.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 o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`),C["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.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=[`${Cl}__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}),v=(0,t.computed)(()=>({[`${Cl}__arrow`]:!0})),y=(0,t.computed)(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,a.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):a.value==="top-start"?(C.left=`${e.arrowOffset+c.value}px`,C.bottom=`-${e.arrowSize}px`):a.value==="top-end"?(C.right=`${e.arrowOffset-c.value}px`,C.bottom=`-${e.arrowSize}px`):a.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):a.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):a.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):a.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):a.value==="bottom-start"?(C.left=`${e.arrowOffset+c.value}px`,C.top=`-${e.arrowSize}px`):a.value==="bottom-end"?(C.right=`${e.arrowOffset-c.value}px`,C.top=`-${e.arrowSize}px`):a.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):a.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):a.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),V=(0,t.computed)(()=>A.value&&e.closeOnClick),T=(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:v,arrowStyles:y,overlayShow:V,overlayStyle:T,onClickOverlay:()=>{g.value=!1,n.emit("update:visible",!1)}}}}),Lu=["innerHTML"];function Fu(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},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)(a,{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,Lu))],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 ki=re(Ru,[["render",Fu]]),Qn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Kl={},Ou=new Qn,vt=new Map,Tn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Ku=e=>{e.unmount=Tn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);o?e={...Kl,...o,...e}:e={...Kl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(ki,e),n)}return e.id},Uu=e=>{e.unmount=Tn;let n=e.id??`hinttext_${Ou.get()}`;e={...Kl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(ki,e),o),document.body.appendChild(o),n},Hu=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Vt={show(e,n,o={},l=!0){if(!Hu(n))return;const r=o.id;return r&&vt.has(r)?Ku({...o,message:n,reference:e}):(l&&Tn(),Uu({...o,message:n,reference:e}))},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=Vt}};function _u(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...be},emits:["appear","disappear"],setup(r,i){const a=r.prop??i.attrs.name,u=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return u.value}},a),d=nt(),h=Kn();Un(!1);const c=(0,t.computed)(()=>h&&d?Hn(d,!1).value:null),p=e,g=(0,t.ref)(null),A=(0,t.computed)(()=>{const E={[p]:!0,[`${p}__gutter`]:c.value&&c.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:Se(r.hasBorder)};if(E[r.errorMarkClass]=!!z.value,E[r.warnMarkClass]=!!q.value,E[r.infoMarkClass]=!!x.value,typeof g.value=="function"){const L=g.value(a);E[L]=!0}else if(typeof g.value=="string"){const L=g.value;E[L]=!0}return E}),k=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(r.width)r.width!=="auto"&&(E.width=he(r.width));else{const L=h&&d?_n(d,!1):null;if(c.value&&L){if(c.value.type==="grid"){const Z=Wn(L,c.value,r.span,r.offset);Object.assign(E,Z)}else if(c.value.type==="flow"){const Z=jn(L,c.value,r.span,r.offset,r.width);Object.assign(E,Z)}}}if(typeof k.value=="function"){const L=k.value(a);L&&Object.assign(E,L)}else if(k.value&&typeof k.value=="object"){const L=k.value;Object.assign(E,L)}return E}),b=(0,t.ref)(null),f=(0,t.computed)({get:()=>b.value??Se(r.isRequired),set:E=>{b.value=E}}),m=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",S=Ae((0,t.toRef)(r,"labelPosition"),"labelPosition",Fl.Near),B=(0,t.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),v=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${B.value}`]:!0})),y=(0,t.computed)(()=>({label:!0,[`label--${B.value}`]:!0})),V=Ae((0,t.toRef)(r,"labelWidth"),"labelWidth",Fl.Near),T=(0,t.computed)(()=>V&&V.value?{width:he(V.value)}:{}),N=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),C=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),P=(0,t.computed)(()=>({...r.contentStyle})),H=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(E){f.value=E},setErrorTip(E){H.errorTip=E},setErrorIcon(E){H.errorIcon=E},setWarnTip(E){H.warnTip=E},setWarnIcon(E){H.warnIcon=E},setInfoTip(E){H.infoTip=E},setInfoIcon(E){H.infoIcon=E},setCustomClassName(E){g.value=E},setCustomStyle(E){k.value=E}});const x=(0,t.computed)(()=>r.infoTip||H.infoTip),M=(0,t.computed)(()=>r.infoIcon||H.infoIcon),q=(0,t.computed)(()=>r.warnTip||H.warnTip),R=(0,t.computed)(()=>r.warnIcon||H.warnIcon),z=(0,t.computed)(()=>r.errorTip||H.errorTip),W=(0,t.computed)(()=>r.errorIcon||H.errorIcon),I=(0,t.computed)(()=>z.value?"error":q.value?"warn":x.value?"info":""),Q=()=>I.value.length>0,ee=(0,t.computed)(()=>I.value==="error"?z.value:I.value==="warn"?q.value:I.value==="info"?x.value:""),oe=(0,t.computed)(()=>I.value==="error"?W.value:I.value==="warn"?R.value:I.value==="info"?M.value:null),Y=(0,t.computed)(()=>{const E={[`${p}__tip`]:!0,[`${p}__tip--${I.value}`]:!0,[`${p}--animate`]:!0};return I.value==="error"&&r.errorClass?E[`${r.errorClass}`]=!0:I.value==="warn"&&r.warnClass?E[`${r.warnClass}`]=!0:I.value==="info"&&r.infoClass&&(E[`${r.infoClass}`]=!0),E}),G=(0,t.computed)(()=>{const E={};return S&&S.value==="top"||!m()?E["padding-left"]="0px":V&&V.value&&(E["padding-left"]=he(V.value)),E}),F=(0,t.ref)();let te="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([E,L,Z,le])=>{F.value&&(E&&!me(L)?te?o.show(F.value,L,{...le,id:te,type:Z},!0):te=o.show(F.value,L,{...le,type:Z},!0):o.hide(te))});let U=null;const D=()=>{U||!F.value||(U=new IntersectionObserver(E=>{let L=!1;for(let Z of E)if(Z.intersectionRatio>0){L=!0,L&&i.emit("appear",Z);break}L||i.emit("disappear")}),U.observe(F.value))},O=()=>{!U||!F.value||(U.unobserve(F.value),U=null)};(0,t.watch)(()=>Se(r.appearListen),E=>{E?D():O()}),(0,t.onMounted)(()=>{Se(r.appearListen)&&D()}),(0,t.onUnmounted)(O);const j=()=>{if(!m())return null;const E=[],L=i.slots?.label?.()??r.label,Z=(0,t.h)("div",{class:N.value},[L]);if(E.push(Z),i.slots.fixedPreTip){const le=i.slots.fixedPreTip();E.push(le)}return(0,t.h)("div",{class:y.value,style:T.value},E)},X=()=>{const E=[];if(i.slots.prepend){const L=i.slots.prepend();E.push(L)}if(i.slots.default){const L=i.slots.default();E.push(L)}if(i.slots.append){const L=i.slots.append();E.push(L)}if(i.slots.fixedTip){const L=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);E.push(L)}return(0,t.h)("div",{ref:F,class:C.value,style:P.value},E)},ne=()=>{const E=oe.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[E()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(E)]):null},K=()=>{const E=ee.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[E()]):(0,t.h)("div",{class:"fox-item__tip--text"},[E]):null},_=()=>{if(!Q())return null;const E=[],L=ne();L&&E.push(L);const Z=K();return Z&&E.push(Z),(0,t.h)("div",{class:Y.value,style:G.value},E)},$=()=>i.slots?.hide?.()??null;return()=>{const E=[],L=[],Z=j();Z&&L.push(Z);const le=X();le&&L.push(le);const ie=(0,t.h)("div",{class:v.value},L);E.push(ie);const ce=_();ce&&E.push(ce);const fe=$();return fe&&E.push(fe),(0,t.h)("div",{class:A.value,style:w.value,prop:r.prop,ref:u},E)}}}}var{componentName:ju,create:Wu,scope:Yu}=J("item"),Xu=Wu(_u(ju,Yu,Vt,!1)),ln=Xu,wi={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 Qu(e,n){return{props:wi,setup(o,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=nt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=he(o.width));else if(u&&a){const h=Hn(a,!1),c=_n(a,!1);if(h.value&&c){if(h.value.type==="grid"){const p=Wn(c,h.value,o.span,o.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=jn(c,h.value,o.span,o.offset,o.width);Object.assign(d,p)}}}return o.gutter&&(d.gap=he(o.gutter)),o.wrap&&(d["flex-wrap"]=o.wrap),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(o.divide)for(let c=0;c<h.length;c++){if(c>0){const p=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(p)}d.push(h[c])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Gu,create:Zu,scope:Ju}=J("row-item"),ec=Zu(Qu(Gu,Ju)),Gn=ec,tc=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((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 nc(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var lc={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 oc(e,n,o,l=!1){return{props:{...lc},emits:["click"],setup(r,i){const a=(0,t.ref)(null),u=(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 v=r.highlightFilter;m.indexOf(v)!==-1&&(S.innerHTML=m.replace(new RegExp(v,"g"),`<span>${v}</span>`),S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}else if(typeof r.highlightFilter=="function"){const v=r.highlightFilter(m);v&&(S.innerHTML=v,S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}return B},h=m=>{i.emit("click",m)};let c="";const p=()=>{const m=a.value;if(!m)return;const S=m.clientWidth;nc(m,B=>{const v=m.innerHTML??"";me(v)||B<S||(c?o?.show(m,v,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(m,v,{type:"text",showArrow:r.showArrow},!0)??"")})},g=()=>{c&&o?.hide(c)};let A=null;const k=m=>{A||(A=setTimeout(()=>{p(),A=null},r.showAfter??0))},w=m=>{A&&(clearTimeout(A),A=null),setTimeout(()=>{g()},r.hideAfter??0)},b=()=>{const m=a.value;m&&(m.addEventListener("mouseover",k),m.addEventListener("mouseleave",w))},f=()=>{const m=a.value;m&&(m.removeEventListener("mouseover",k),m.removeEventListener("mouseleave",w))};return(0,t.onMounted)(()=>{!Se(r.showOverflowTooltip)||!o||b()}),(0,t.onBeforeUnmount)(()=>{!Se(r.showOverflowTooltip)||!o||f()}),()=>{const m={onClick:h,class:u.value,style:s.value,ref:a};let S=null;if(Se(r.numberFormat)&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const y=v[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const V=de(r.digits),T=de(r.decimalLength),N=Se(r.autoPadding);let C=`${v[0].children}`,P=C.split("").reverse().join("");P=$n(P,T,N,V,r.separator),C=P.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 v=i.slots.default();if(Array.isArray(v)&&v.length===1){const y=v[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const V=`${v[0].children}`;S=d(V,m),S||(m.innerHTML=V,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 v={[`${e}__mark-wrap`]:!0};r.type&&(v[`${e}__mark-wrap--${r.type}`]=!0);const y={},V=r.color;V&&(y.color=V);const T=(0,t.h)("view",{class:v,style:y},{default:i.slots.mark});B.push(T)}else{const v={[`${e}__mark`]:!0};r.type&&(v[`${e}__mark--${r.type??"default"}`]=!0);const y={},V=r.color;V&&(y["background-color"]=V);const T=(0,t.h)("view",{class:v,style:y});B.push(T)}if(r.divide){const v=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});B.push(v)}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:ac,create:rc,scope:ic}=J("text"),sc=rc(oc(ac,ic,Vt,!1)),wt=sc,uc={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 cc(e,n,o=!1){return{props:{...uc},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:a}){const u=(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),c=(0,t.ref)(0),p=(0,t.ref)(l.placement),g=(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,b=(I,Q,ee,oe,Y,G,F,te=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,D=document.documentElement.clientHeight||document.body.clientHeight,O=I.split("-");let j=[];te?O[0]==="top"?j=["top","bottom","right","left"]:O[0]==="bottom"?j=["bottom","top","right","left"]:O[0]==="left"?j=["left","top","bottom","right"]:O[0]==="right"&&(j=["right","top","bottom","left"]):j=[I[0]];const X={top:null,right:null,bottom:null,left:null},ne=[];for(let K=0;K<j.length;K++){const _=j[K];if(ne[0]=_,O[1]&&(ne[1]=O[1]),_==="top"){const $=ee-F-l.arrowSize/2-l.offset;if($>=0){X.top=$;let E=0;O[1]==="start"?E=Q:O[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const L=U-E-G;L<0?(E+=L,m.value=-L):m.value=0,X.left=E<0?0:E;break}}else if(_==="bottom"){const $=ee+Y+l.arrowSize/2+l.offset;if($+F<=D){X.top=$;let E=0;O[1]==="start"?E=Q:O[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const L=U-E-G;L<0?(E+=L,m.value=-L):m.value=0,X.left=E<0?0:E;break}}else if(_==="left"){const $=Q-G-l.arrowSize/2-l.offset;if($>=0){X.left=$;let E=0;O[1]==="start"?E=ee:O[1]==="end"?E=ee+Y-F:E=ee+Y/2-F/2,X.top=E<0?0:E;break}}else if(_==="right"){const $=Q+oe+l.arrowSize/2+l.offset;if($+G<=U){X.left=$;let E=0;O[1]==="start"?E=ee:O[1]==="end"?E=ee+Y-F:E=ee+Y/2-F/2,X.top=E<0?0:E;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:X}},f=()=>{const I=l.visible,Q=l.autoFit;if(!et||I===!1)return;if(l.reference){const F=w(),te=co(F);s.value=te.x,d.value=te.y,h.value=F.offsetWidth,c.value=F.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const ee=k.value.offsetWidth,oe=k.value.offsetHeight,{bestPlacement:Y,bestInsetRect:G}=b(l.placement,s.value,d.value,h.value,c.value,ee,oe,Q);p.value=Y,u.value=G},m=(0,t.ref)(0),S=Ie(()=>{f()},10),B=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{B.value=I,I?(g.value=I,setTimeout(()=>{f(),A.value=!0},0)):A.value=!1});const v=(0,t.computed)(()=>B.value&&y.value),y=(0,t.ref)(!0),V=Ie(I=>{const Q=I[0];Q&&(y.value=Q.isIntersecting)},10),T=new IntersectionObserver(V);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,Q],[ee,oe])=>{!I&&!Q||(setTimeout(()=>{f()},0),l.autoFit&&(ee&&(Ut.unwatch(ee,S),T.unobserve(ee)),I&&(Ut.watch(I,S),T.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ut.unwatch(l.reference,S),T.unobserve(l.reference),T.disconnect())});const N=(0,t.computed)(()=>{const I={[e]:!0};return p.value.startsWith("top")?I["is-top"]=!0:p.value.startsWith("right")?I["is-right"]=!0:p.value.startsWith("bottom")?I["is-bottom"]=!0:p.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!A.value&&v.value&&(I["is-opacity"]=!0),A.value&&v.value&&(I["is-show"]=!0),v.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),C=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),P=()=>{B.value=!1,r("update:visible",!1)},H=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:P}):null,x=()=>{let I=null;return i.title?I=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),q=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,p.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-start"?(I.left=`${l.arrowOffset+m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-end"?(I.right=`${l.arrowOffset-m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):p.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(I.left=`${l.arrowOffset+m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(I.right=`${l.arrowOffset-m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):p.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):p.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),R=()=>(0,t.h)("div",{class:M.value,style:q.value}),z=()=>{B.value===!1&&(g.value=!1)},W=I=>{if(!k.value||B.value===!1)return;const{relatedTarget:Q}=I;k.value.contains(Q)||(B.value=!1,r("update:visible",!1))};return a({doLayout:f}),()=>{if(!g.value)return null;const I=[],Q=H();Q&&I.push(Q);const ee=[],oe=x();if(oe&&ee.push(oe),i.default){const te=i.default();ee.push(te)}const Y=R();Y&&ee.push(Y);const G={ref:k,class:N.value,style:C.value,onAnimationend:z};l.leaveHide&&(G.onMouseleave=W);const F=(0,t.h)("div",G,{default:()=>ee});return I.push(F),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:dc,create:fc,scope:mc}=J("popover-dialog"),pc=fc(cc(dc,mc,!1)),Zn=pc,hc={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 vc(e,n,o){return{props:{...wi,...hc},emits:["click"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(B){return B.props||{}}function c(B){return!!h(B).disabled}function p(B){return B.children??[]}const g=(0,t.ref)(),A=(0,t.computed)(()=>g.value?.$el??null),k=(0,t.ref)(!1),w=B=>{k.value=B},b=()=>{k.value=!k.value};function f(B,v){return()=>{v||(k.value=!1,h(B)?.onClick?.())}}function m(B,v){const y=p(B),V=c(B),T=f(B,V),N=[`${s}__dropdown-item`];return V&&N.push("is-disabled"),(0,t.h)("span",{class:N,onClick:T},y)}const S=B=>{const v=l.maxDisplayCount??B.length;if(v>=B.length)return B;const y=[],V=v-1;for(let H=0;H<V;H++)y.push(B[H]);const T=(i.moreIcon&&i.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),N=(0,t.h)(wt,{ref:H=>g.value=H,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:b},{default:()=>u.moreText.value,mark:()=>T});y.push(N);const C=[];for(let H=V;H<B.length;H++){const x=m(B[H],H);C.push(x)}const P=(0,t.h)(Zn,{placement:l.dropdownPlacement,"onUpdate:visible":w,visible:k.value,reference:A.value,"custom-class":`${s}__popover`},{default:()=>C});return y.push(P),y};return()=>{const{getChildren:B}=Yn(i?.default),v=S(B());return(0,t.h)(Gn,{class:d.value},{default:()=>v})}}}}var{componentName:gc,create:yc,scope:bc}=J("buttons-item"),Sc=yc(vc(gc,bc,tc)),fo=Sc,kc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function wc(e,n){return{props:kc,setup(o,l){const r=nt(),i=Kn();Un(!1);const a=(0,t.computed)(()=>i&&r?Hn(r,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:a.value&&a.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(o.width)o.width!=="auto"&&(h.width=he(o.width));else{const c=i&&r?_n(r,!1):null;if(a.value&&c){if(a.value.type==="grid"){const p=Wn(c,a.value,o.span,o.offset);Object.assign(h,p)}else if(a.value.type==="flow"){const p=jn(c,a.value,o.span,o.offset,o.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:Cc,create:Nc,scope:Ac}=J("slot-item"),Bc=Nc(wc(Cc,Ac)),mo=Bc;function De(e,n={}){return(0,t.h)(ln,e,n)}function Tc(e,n,o,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const a=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o])}return a}if(Array.isArray(u))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const c=d.find(p=>p[l]===h);if(!c)break;a.push(c[o])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o]),s=c[r]}}return a}var Vc=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function xc(){return new Vc(ct())}var Ec={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 $c(e,n,o=!1){return{props:Ec,setup(l,{attrs:r,slots:i}){const a=xc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{u.value=await a.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return l.emptyText;let d=Tc(l.modelValue,u.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:Dc,create:Ic,scope:qc}=J("mapping"),Pc=Ic($c(Dc,qc,!1)),Jn=Pc;function Pe(e,n,o,l,r){const i="fox-browse-item";let a=null;o?a=(0,t.h)(Jn,{class:[`${i}__mapping`],source:o,modelValue:e,separator:l,emptyText:r},{default:s=>(0,t.h)(wt,{class:[`${i}__text`]},{default:()=>s.text})}):a=(0,t.h)(wt,{class:[`${i}__text`]},{default:()=>e});const u={label:n.default,default:()=>a};return(0,t.h)(ln,{class:[i]},u)}var Ci={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}},Mc={...ge,...be,...Ci};function zc(e,n,o,l,r){return{props:Mc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:A}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),{toLocaleRefs:k}=(0,ve.useFoxI18n)(n),w=k(i,["placeholder"]),b=(0,t.ref)(!1),f=qe(i,"modelValue",null,g),m=e,S=(0,t.computed)(()=>({[m]:!0,"is-disabled":d.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),v=(0,t.computed)(()=>{const Q={};return B.value&&(Q["text-align"]=B.value),Q}),y=Q=>{let ee=Q.target.value;i.type==="digit"&&(ee=zl(ee,!0)),i.type==="number"&&(ee=zl(ee,!1)),i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),f.value=ee,g("update:modelValue",ee,Q),g("change",ee,Q)};let V=qe(i,"hintText"),T=(0,t.ref)(!1);const N=Q=>{let ee=Q.target.value;b.value=!0,me(V.value)||(T.value=!0),g("focus",ee,Q)},C=Q=>{setTimeout(()=>{T.value&&(T.value=!1),b.value=!1},0);let ee=Q.target.value;i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),g("blur",ee,Q)},P=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),H=(0,t.computed)(()=>{const Q={};return a.slots.append&&!x.value&&!W.value&&(Q.display="none"),Q}),x=(0,t.computed)(()=>ke(i.unit)>0),M=(0,t.computed)(()=>!W.value),q=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!M.value})),R=Q=>{f.value="",g("update:modelValue","",Q),g("change","",Q),g("clear","")},z=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),W=(0,t.computed)(()=>{let Q=ke(f.value)>0;return Se(i.clearable)&&Q&&b.value}),I=(0,t.computed)(()=>({action:!0,hidden:!W.value}));return A({setDisabled:Q=>{s.value=Q},setReadonly:Q=>{h.value=Q}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(f.value,a.slots);const Q={class:S.value,style:v.value,type:i.type,maxlength:i.maxLength,placeholder:w.placeholder.value,disabled:d.value,readonly:c.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:y,onFocus:N,onBlur:C},ee=[],oe=(0,t.h)("input",Q);ee.push(oe);const Y=[];if(z.value){const U=(0,t.h)(r,{class:["action-icon"]}),D=(0,t.h)("view",{class:I.value,onClick:R},{default:()=>[U]});Y.push(D)}if(x.value){const U=(0,t.h)("view",{class:q.value},[i.unit]);Y.push(U)}const G=(0,t.h)("view",{class:P.value,style:H.value},{default:()=>Y});ee.push(G);const F={default:()=>ee};F.label=a.slots.default,F.prepend=a.slots.prepend,F.append=a.slots.append,F.fixedPreTip=a.slots.fixedPreTip,F.fixedTip=a.slots.fixedTip;const te={...tt(i,Ci),ref:u,hintText:V.value,hintVisible:T.value};return i.prop&&(te.prop=`${i.prop}_item`),o(te,F)}}}}var{componentName:Rc,create:Lc,scope:Fc}=J("input-item"),Oc=Lc(zc(Rc,Fc,De,Pe,ae.CircleClose)),po=Oc;function tr(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function nr(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?tr(Pr(`${e}`,`${n}`)):tr(Gl(`${e}`,Mr(`${n}`),20))}function Kc(e,n=-1,o=!1,l=3,r=","){return $n(e,de(n),o,l,r)}function lr(e,n,o,l,r=!0){if(e==="")return"";if(e=zr(e),n=de(n),n==1)return e;if(l)e=nr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(de(o)+2,"0"):e=Gl(e,1,de(o)));else{let i=-1*n;e=nr(e,i)}return e}function or(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),r=ql(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),r=ql(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}var Ni={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]}},Uc={...ge,...be,...Ni};function Hc(e,n,o,l,r){return{props:Uc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:A}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.ref)(!1),w=qe(i,"modelValue",null,g),b=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>i.rates,()=>i.precision],([F,te,U])=>{if(me(F)){b.value="";return}const D=lr(F,te,U,!1);b.value!==D&&(b.value=D)},{immediate:!0});const f=(0,t.computed)(()=>{let F="";return k.value&&(F=b.value),F}),{t:m}=(0,ve.useFoxI18n)(n),S=(0,t.computed)(()=>{let F=i.placeholder??"";return!k.value&&!me(b.value)?F=Kc(b.value,i.decimalLength,i.autoPadding,i.digits,i.separator):F=me(F)?m(["placeholder"]):F,F}),B=e,v=(0,t.computed)(()=>({[B]:!0,[`${B}__placeholder`]:b.value.length>0,"is-disabled":d.value,"is-readonly":c.value})),y=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),V=(0,t.computed)(()=>{const F={};return y.value&&(F["text-align"]=y.value),F}),T=(0,t.ref)(""),N=(0,t.computed)(()=>{let F=T.value;return me(F)&&(F=i.errorTip??""),F}),C=(0,t.ref)(""),P=(0,t.ref)(!1),H=F=>{let te=F.target.value;if(me(te)){b.value="",w.value="",g("update:modelValue","",F),g("change","",F),Se(i.showTip)&&P.value&&(P.value=!1);return}if(te.length>=2){let U=te;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(te!="-"){if(!qn(te)){(0,t.triggerRef)(b);return}if(i.integerLength!=-1&&Hr(te)>Number(i.integerLength)){(0,t.triggerRef)(b);return}if(i.decimalLength&&i.decimalLength!=-1&&_r(te)>Number(i.decimalLength)){(0,t.triggerRef)(b);return}let U=or(te,i);if(U.maxValid===!1){T.value=U.message,(0,t.triggerRef)(b);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(b);return}C.value=te,Se(i.showTip)&&(P.value=te.length>0),b.value=te,w.value=lr(te,i.rates,i.precision,!0),g("update:modelValue",w.value,F),g("change",w.value,F)},x=F=>{if(k.value=!0,Se(i.showTip)){let te=b.value;me(te)&&(te=i.hintText),me(te)||(C.value=te,P.value=!0)}T.value="",g("focus",w.value,F)},M=F=>{if(setTimeout(()=>{k.value=!1,Se(i.showTip)&&P.value===!0&&(P.value=!1)},0),!me(b.value)){let te=or(b.value,i);if(te.minValid===!1||te.maxValid===!1){T.value=te.message;return}}g("update:modelValue",w.value,F),g("blur",w.value,F)},q=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),R=(0,t.computed)(()=>{const F={};return a.slots.append&&!z.value&&!oe.value&&(F.display="none"),F}),z=(0,t.computed)(()=>ke(i.unit)>0),W=(0,t.computed)(()=>!oe.value),I=(0,t.computed)(()=>({[`${B}__unit`]:!0,hidden:!W.value})),Q=F=>{w.value="",g("update:modelValue","",F),g("change","",F),g("clear","")},ee=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),oe=(0,t.computed)(()=>{let F=ke(w.value)>0;return Se(i.clearable)&&F&&k.value}),Y=(0,t.computed)(()=>({action:!0,hidden:!oe.value}));A({setDisabled:F=>{s.value=F},setReadonly:F=>{h.value=F}});const G=()=>w.value?S.value:w.value;return()=>{if(p.value==="on"&&(c.value||d.value))return l(G(),a.slots);let F={class:v.value,style:V.value,type:"digit",maxlength:i.maxLength,placeholder:S.value,disabled:d.value,readonly:c.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:H,onFocus:x,onBlur:M},te=[],U=(0,t.h)("input",F);te.push(U);let D=[];if(ee.value){const ne=(0,t.h)(r,{class:["action-icon"]}),K=(0,t.h)("view",{class:Y.value,onClick:Q},{default:()=>[ne]});D.push(K)}if(z.value){const ne=(0,t.h)("view",{class:I.value},[i.unit]);D.push(ne)}const O=(0,t.h)("view",{class:q.value,style:R.value},{default:()=>D});te.push(O);const j={default:()=>te};j.label=a.slots.default,j.prepend=a.slots.prepend,j.append=a.slots.append,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const X={...tt(i,Ni),ref:u,errorTip:N.value,hintText:C.value,hintVisible:P.value,hintType:"number"};return i.prop&&(X.prop=`${i.prop}_item`),o(X,j)}}}}var{componentName:_c,create:jc,scope:Wc}=J("money-item"),Yc=jc(Hc(_c,Wc,De,Pe,ae.CircleClose)),ho=Yc,Ul={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:Xc,create:Qc,scope:Gc}=J("textarea"),Zc=Qc({props:{...Ul},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,ve.useFoxI18n)(Gc);const l=o(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Xc;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const a=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let p=r.value;p.style.height="auto";let g=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:A,minHeight:k}=e.autosize;A!==void 0&&(g=Math.min(g,A)),k!==void 0&&(g=Math.max(g,k))}g&&(console.info("----------- height",g),p.style.height=g+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});const s=(p,g)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,g),n("change",p,g)};return{...l,textareaRef:r,classes:i,styles:a,change:p=>{const g=p.target;s(g.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let g=p.target.value;s(g,p),n("blur",{value:g,event:p})}}}}),Jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],ed={key:0,class:"fox-textarea__limit"};function td(e,n,o,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]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Jc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",ed,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var el=re(Zc,[["render",td]]);function nd(e,n,o,l,r){return{props:{...ge,...be,...Ul},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),A=qe(i,"modelValue",null,g),k=S=>{A.value=S,g("update:modelValue",S,{}),g("change",S,{})};let w=qe(i,"hintText"),b=(0,t.ref)(!1);const f=S=>{me(w.value)||(b.value=!0),g("focus",A.value,S)},m=S=>{setTimeout(()=>{b.value&&(b.value=!1)},0),g("blur",A.value,S)};return()=>{if(p.value==="on"&&(c.value||d.value))return l(A.value,a.slots);const S={...ye(i,Ul),disabled:d.value,readonly:c.value,value:A.value,"onUpdate:modelValue":k,onFocus:f,onBlur:m},B=[],v=(0,t.h)(r,S);B.push(v);const y={default:()=>B};y.label=a.slots.default,y.prepend=a.slots.prepend,y.append=a.slots.append,y.fixedPreTip=a.slots.fixedPreTip,y.fixedTip=a.slots.fixedTip;const V={...ye(i,be,ge),ref:u};return i.prop&&(V.prop=`${i.prop}_item`),o(V,y)}}}}var{componentName:ld,create:od,scope:ad}=J("textarea-item"),rd=od(nd(ld,ad,De,Pe,el)),vo=rd;function id(e){return e===window}var $e=e=>{const n=(0,t.unref)(e);if(id(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ar=10;function Ai(e,n){return e>n&&e>ar?"horizontal":n>e&&n>ar?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){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",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(a=>{if(a.touches){const u=a.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=a;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ai(e.offsetX,e.offsetY))}),start:(a=>{if(l(),a.touches){const u=a.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=a;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function ot(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),c=()=>h.value==="vertical",p=()=>h.value==="horizontal",g=()=>{a.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:(w=>{if(w.touches){const b=w.touches[0];a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}else{const b=w;a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}s.value=Math.abs(a.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=Ai(s.value,d.value))}),start:(w=>{if(g(),w.touches){const b=w.touches[0];e.value=b.clientX,n.value=b.clientY}else{const b=w;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()}),reset:g,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:p}}var sd=2e3,rr=()=>sd++,Je={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:{}}},ud=(e,n)=>({components:n,props:{...Je},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(r.zIndex=rr());const i=(0,t.computed)(()=>{const k=e,w=[k,`${k}--${o.position}`];return o.round&&w.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&w.push(`${k}--${o.position}--safebottom`),typeof o.popClass=="string"?w.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(b=>{w.push(b)}),w}),a=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?r.zIndex=o.zIndex:r.zIndex=rr(),o.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},h=k=>{l("click-pop",k)},c=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),o.closeOnClickOverlay&&l("update:visible",!1)},g=k=>{l("opend",k)},A=k=>{l("closed",k)};return(0,t.watch)(()=>o.visible,k=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:a,transitionName:u,classes:i,onClick:h,onClickCloseIcon:c,onClickOverlay:p,onOpened:g,onClosed:A}}}),Bi={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}},go={...Je,...Bi,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}},Ti=36;function cd(){return Ti}function dd(e){Ti=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Hl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ir(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var md=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function pd(){return new md(ct())}function sr(e,n,o){return!(Re(e,n)!==Re(e,o)||st(e,n)!==st(e,o))}function hd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=n[a];let s=o[a].findIndex(d=>{if(i==="text")return Re(e,d)===u;if(i==="value"){let h=st(e,d);return h==null&&(h=Re(e,d)),h===u}else if(i==="item")return sr(e,d,u)});if(s==-1)break;r.push(s)}else{let a=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=a.findIndex(c=>{if(i==="text")return Re(e,c)===s;if(i==="value"){let p=st(e,c);return p==null&&(p=Re(e,c)),p===s}else if(i==="item")return sr(e,c,s)});if(d==-1)break;r.push(d);const h=Hl(e,a[d]);if(!Array.isArray(h))break;a=h}}return r}function ur(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=o[a];let s=n[a];s<0&&s>=u.length&&(s=0);const d=u[s],h=Re(e,d);if(r.texts.push(h),r.items.push(d),i==="text")r.values.push(h);else if(i==="value"){let c=st(e,d);c==null&&(c=h),r.values.push(c)}else r.values.push(d)}else{let a=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=a.length&&(s=0);const d=a[s],h=Object.assign({},d);h.children=null;const c=Re(e,d);if(r.texts.push(c),r.items.push(h),i==="text")r.values.push(c);else if(i==="value"){let p=st(e,d);p==null&&(p=c),r.values.push(p)}else r.values.push(h);if(!Array.isArray(d.children))break;a=d.children}}return r}function cr(e){return{text:e,value:e}}var vd=15,gd=300,yd=200,{create:bd}=J("picker-column");function Sd(e){e.stopPropagation()}function kd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Sd(e)}var wd={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},...Bi},Cd=bd({props:wd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(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)),a=y=>{const V=y+1;return V>=c.currIndex+8||V<=c.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${i.value}px`})),s=y=>{const V=y+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*V}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+i.value}px, 0)`})),h=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=y=>Re(e,y),g=y=>st(e,y),A=ot(),k=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},w=(y,V=!1,T=!1)=>{if(c.currIndex=y,V){const N=()=>{c.moving=!1,n("update:modelValue",y),n("change",y)};T?c.transitionEndTrigger=N:N()}},b=(y,V,T)=>{let N=y+c.startDistance;if(V==="end"){const C=-(e.source.length-1)*e.itemHeight;N<C&&(N=C),N>0&&(N=0);let P=Math.abs(Math.round(-N/e.itemHeight));const H=-P*e.itemHeight,x=`${(P+1)*c.rotation}deg`;w(P,!0,T?T>0:!1),f(H,V,T,x)}else{let C=(-N/e.itemHeight+1)*c.rotation;const P=(e.source.length+1)*c.rotation,H=0;if(C=Math.min(Math.max(C,H),P),e.threeDimensional&&(C<H||C>P))return;f(N,null,void 0,`${C}deg`)}},f=(y=0,V,T=yd,N)=>{V==="end"?c.scrollTime=T:c.scrollTime=0,c.deg=N,c.scrollDistance=y},m=(y,V)=>(y=Math.abs(y/V)/.003*(y<0?-1:1),y),S=y=>{e.readonly||(c.startDistance=c.scrollDistance,A.start(y),c.transitionEndTrigger=null)},B=y=>{e.readonly||(c.moving=!0,A.move(y),A.isVertical()&&(c.moving=!0,kd(y,!0)),b(A.deltaY.value,"",0))},v=()=>{if(e.readonly)return;const y=A.deltaY.value,V=A.duration.value;V<gd&&Math.abs(y)>vd?b(m(y,V),"end",de(e.swipeDuration)):b(y,"end",0)};return(0,t.watch)(()=>e.modelValue,y=>{const V=c.currIndex-y;V!==0&&(c.currIndex=y,c.startDistance=c.scrollDistance,b(V*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,y=>{if(c.currIndex>=y.length){const V=(y.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,b(V,"end",0)}}),(0,t.watch)(()=>e.visible,y=>{y===!1&&k()}),(0,t.onMounted)(()=>{b(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:r,itemText:p,itemValue:g,...(0,t.toRefs)(c),roller:h,getItemText:Re,onTouchStart:S,onTouchMove:B,onTouchEnd:v,isHidden:a,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:k}}}),Nd={key:1,class:"fox-picker__item-tile"};function Ad(e,n,o,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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(a)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Nd,(0,t.toDisplayString)(e.itemText(a)),1))],64))),128))],6)],38)}var Bd=re(Cd,[["render",Ad]]),qt=0,dr="fox-overflow-hidden",fr=()=>et?document.body:{classList:[]},Td=e=>[()=>{if(e())try{!qt&&fr().classList.add(dr),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&fr().classList.remove(dr)}catch{}}],Vd={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:xd,create:Ed}=J("overlay"),$d=Ed({props:{...Vd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Td(()=>e.lockScroll),r=(0,t.computed)(()=>({[xd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:r,style:i,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Dd(e,n,o,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)((...a)=>e.onClick&&e.onClick(...a),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ut=re($d,[["render",Dd]]),{componentName:Id,create:qd}=J("popup"),Pd=qd(ud(Id,{FoxOverLay:ut,Close:ae.Close}));function Md(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxOverLay"),u=(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)(a,(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)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var we=re(Pd,[["render",Md]]),zd=(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)(we,tt({...e},{poppable:!1}),n):n?.default?.()??null}}),Rd=zd,{create:Ld,componentName:mr,scope:Fd}=J("picker"),Od=Ld({components:{Column:Bd,Wrapper:Rd},props:go,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,ve.useFoxI18n)(Fd),r=o(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(cd());(0,t.watch)(()=>e.visible,q=>{q&&a.value<=0&&setTimeout(()=>{i.value&&(a.value=$e(i.value).height,dd(a.value))},50)});const u=(0,t.computed)(()=>({[mr]:!0})),s=(0,t.computed)(()=>{const q=[];return Array.isArray(e.popClass)?q.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&q.push(e.popClass),q.push(`${mr}__popup`),q.join(" ")}),d=pd(),h=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const q=[];for(let R=0;R<c.value.length;R++){const z=c.value[R];if(Array.isArray(z)){const W=z.filter(e.sourceFilter);q.push(W)}}return q}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([q,R])=>{if(q){let z=await d.load("picker",q,R);if(z.length>0){let W=z[0];if(Array.isArray(W)){if(typeof W[0]=="string"){let I=z,Q=[];I.forEach(ee=>{let oe=ee.map(Y=>cr(Y));Q.push(oe)}),c.value=Q}else c.value=z;h.value="multipleColumn"}else if(typeof W=="string"){let I=z,Q=[],ee=I.map(oe=>cr(oe));Q.push(ee),c.value=Q,h.value="singleColumn"}else{const I=Hl(e,W);Array.isArray(I)?(h.value="cascade",c.value=[z]):(h.value="singleColumn",c.value=[z])}}else c.value=[]}},{immediate:!0});const g=(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 b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([q,R])=>{let z=hd(e,q,R,h.value);if(!Ee(z,b.value)){b.value=z,w||(w=z?[...z]:[]);let W=ur(e,z,R,h.value);W&&(g.value=W.texts,Ee(A.value,W.values)||(A.value=W.values),Ee(k.value,W.items)||(k.value=W.items),n("update:text",g.value))}});let f="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,q=>{m.value=q,q&&(f="active",b.value.length>0&&(w=[...b.value]))});const S=q=>{let R=ir(e,q);return xe(R)?R.defaultIndex??0:0},B=q=>{if(e.readonly===!0)return!0;let R=ir(e,q);return xe(R)?R.readonly??!1:!1},v=(q,R)=>{let z=b.value;z[q]=R;for(let I=0;I<q;I++)z[I]==null&&(z[I]=S(I));if(h.value==="cascade")for(let I=q+1;I<V.value.length;I++){let Q=S(I);I<z.length?z[I]=Q:z.push(Q)}else for(let I=z.length;I<V.value.length;I++){let Q=S(I);z.push(Q)}b.value=z;let W=ur(e,z,p.value,h.value);W&&(g.value=W.texts,A.value=W.values,k.value=W.items)},y=q=>q<b.value.length?b.value[q]:S(q),V=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let q=[],R=0,z=p.value[0],W=0;for(;;){let I=z.map(oe=>{let Y=Object.assign({},oe);return fd(e,Y,null),Y});q.push(I),R>=b.value.length?W=0:W=b.value[R],(W<0||W>=z.length)&&(W=0);let Q=z[W];const ee=Hl(e,Q);if(!Array.isArray(ee))break;z=ee,R++}return q}),T=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*a.value),N=(q=!1)=>{if(e.readonly===!0){q&&n("update:visible",!1);return}let R=p.value.length-1;for(;R>=0&&!(b.value[R]===null||b.value[R]===void 0);R--);if(R>=0&&v(R,0),h.value==="singleColumn"){let z=A.value.length>0?A.value[0]:"",W=k.value.length>0?k.value[0]:null;n("update:modelValue",z),n("update:text",g.value),n("change",z,W),q&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",A.value),n("update:text",g.value),n("change",A.value,k.value),q&&(n("confirm",A.value),n("update:visible",!1))},C=(q,R)=>{f!=="close"&&(v(q,R),e.isAutoBackFill&&N(!m.value))},P=()=>{f==="active"&&(f="confirm",w=Array.isArray(b.value)?[...b.value]:[],N(!0))},H=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],w=null};return{...r,pickerLineRef:i,classes:u,popClasses:s,columns:V,dataType:h,show:m,itemHeight:a,top:T,isReadonly:B,getIndex:y,change:C,close:()=>{if(f==="active"){if(f="close",w===null||w.length===0)H();else{if(Array.isArray(w))for(let q=0;q<w.length;q++)v(q,w[q]);N(!1)}n("close"),n("update:visible",!1)}},confirm:P,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}H(),w=null,n("clear",""),n("update:visible",!1)}}}}}),Kd={key:0,class:"fox-picker__bar"},Ud={class:"fox-picker__title"},Hd={class:"fox-picker__bar__action"},_d={class:"fox-picker__column"};function jd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{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",Kd,[(0,t.createElementVNode)("view",Ud,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Hd,[(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",_d,[(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)(a,{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 on=re(Od,[["render",jd]]),Wd={...ge,...be,...go,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,o,l,r,i,a,u=!0){return{props:Wd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:A,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=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,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)([]),y=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":A.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const O={};return N.value&&(O["text-align"]=N.value),O}),P=(0,t.ref)(!1),H=()=>{P.value=!0},x=O=>{P.value=O},M=O=>{B.value=O,w("update:modelValue",O)},q=(O,j)=>{w("change",O,j)},R=O=>{let j=O.target.value;S.value=!0,w("focus",j,O)},z=O=>{setTimeout(()=>{S.value=!1},0);let j=O.target.value;s.maxLength&&j.length>Number(s.maxLength)&&(j=j.slice(0,Number(s.maxLength))),w("blur",j,O)},W=O=>{v.value=O,Array.isArray(O)&&O.length===0?w("update:text",O[0]):w("update:text",O)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),ee=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),Y=O=>{B.value="",w("update:modelValue","",O),w("change","",O),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),F=(0,t.computed)(()=>ke(B.value)>0&&S.value),te=O=>{F.value?Y(O):H()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0}));return b({setDisabled:O=>{c.value=O},setReadonly:O=>{g.value=O}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(y.value,d.slots);const O={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(O.disabled=!0);const j=[],X=(0,t.h)("input",O);j.push(X);const ne=[],K=(0,t.h)(U.value,{class:["action-icon"]}),_=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[K]});if(ne.push(_),Q.value){const ie=(0,t.h)("view",{class:oe.value},[s.unit]);ne.push(ie)}const $=(0,t.h)("view",{class:I.value},{default:()=>ne});j.push($);const E={default:()=>j};E.label=d.slots.default,E.prepend=d.slots.prepend,E.append=d.slots.append,E.fixedPreTip=d.slots.fixedPreTip,E.fixedTip=d.slots.fixedTip;const L=ye(s,go);L.disabled=!1,L.readonly=p.value||A.value,L.visible=P.value,L["onUpdate:visible"]=x,L.modelValue=B.value,L["onUpdate:modelValue"]=M,L.text=v.value,L["onUpdate:text"]=W,L.onChange=q;const Z=(0,t.h)(a,L);E.hide=()=>[Z];const le=ye(s,be,ge);return s.prop&&(le.prop=`${s.prop}_item`),le.ref=h,o(le,E)}}}}var{componentName:Xd,create:Qd,scope:Gd}=J("picker-item"),Zd=Qd(Yd(Xd,Gd,De,Pe,ae.CircleClose,ae.ArrowRight,on,!1)),yo=Zd,Jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(we,{...o},n):n?.default?.()??null}}),ef=Jd,hn=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:u,[i]:s,[a]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=hn(c.children,c,o)),c}),Vi=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Vi(l.children,n)},tf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},nf=(e,n)=>{const{topId:o,idKey:l,pidKey:r,sortKey:i}={...tf,...n||{}};let a=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:h}=s,c=u[h]=u[h]||[];!a.length&&h===o&&(a=c),c.push(s),s.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,h)=>d[i]-h[i])}),u=null,a},bo={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}},pr=(e,n)=>n[e.textKey],Pt=(e,n)=>n[e.valueKey],lf=(e,n)=>n[e.visibleKey],hr=(e,n)=>n[e.disabledKey],of=(e,n)=>{const o=n[e.doitKey];return Se(o)},af=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},vr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function rf(e,n,o,l,r,i=!1){return{props:bo,emits:["update:modelValue","change","click"],setup(a,u){const{emitEvent:s,exposeApi:d}=Oe({context:u},a.prop),{slots:h}=u,c=(0,t.computed)(()=>{const $={};return $[`${e}`]=!0,$}),p=(0,t.computed)(()=>{const $={};return $[`${e}__titles`]=!0,$[`${a.direction}`]=!0,a.align&&($[`${a.align}`]=!0),a.scroll===!0&&($.scrollable=!0),a.shape&&($[`${a.shape}`]=!0),a.showScrollArrow?(U.value===!0&&($["has-left-scroll-arrow "]=!0),D.value===!0&&($["has-right-scroll-arrow "]=!0)):a.showQuickNavigation&&($["has-navigation"]=!0),$}),g=(0,t.computed)(()=>({})),A=(0,t.computed)(()=>{if(!a.gutter)return 0;const $=ue(a.gutter);return $<=0?0:$}),k=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,$=>{k.value!==$&&(k.value=$,Q(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const $={};return m.value||($.display="none"),$}),f=(0,t.ref)(),m=(0,t.ref)(!1),S=()=>{B(!m.value)},B=$=>{const E=$;E?(m.value=E,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))},v=(0,t.ref)(),y=(0,t.ref)([]),V=($,E)=>{y.value[E]=$},T=$=>E=>{V(E,$)},N=($,E)=>{const L=v.value,Z=y.value;if(!L||!Z||!Z[$])return;const le=Z[$];let ie=0;a.direction==="vertical"?ie=le.offsetTop-(L.offsetHeight-le.offsetHeight)/2:ie=le.offsetLeft-(L.offsetWidth-le.offsetWidth)/2,C(L,ie,E?0:.3,a.direction)},C=($,E,L,Z)=>{let le=0;const ie=Z==="horizontal"?$.scrollLeft:$.scrollTop,ce=L===0?1:Math.round(L*1e3/16);function fe(){Z==="horizontal"?$.scrollLeft+=(E-ie)/ce:$.scrollTop+=(E-ie)/ce,++le<ce&&He(fe)}fe()},P=($,E)=>{const L=Pt(a,$),Z={};return Z[`${e}__titles-item`]=!0,Z.disabled=hr(a,$),Z.active=L===k.value,a.shape&&(Z[`${a.shape}`]=!0),a.ellipsis&&(Z.ellipsis=!0),E&&(E.class&&(Z[`${E.class}`]=!0),E.disabled===!0&&(Z.disabled=E.disabled)),Z},H=($,E)=>{const L={};if(A.value>0){const Z=Math.abs(A.value/2);a.direction==="vertical"?(L["margin-top"]=`${Z}px`,L["margin-bottom"]=`${Z}px`):(L["margin-left"]=`${Z}px`,L["margin-right"]=`${Z}px`)}return E&&E.style&&Object.assign(L,E.style),L},x=($,E)=>`${Pt(a,$)??E}`,M=($,E)=>{const L=Pt(a,$),Z={};Z[`${e}__popup-item`]=!0,Z.disabled=hr(a,$),Z.active=L===k.value,a.shape&&(Z[`${a.shape}`]=!0);const le=vr(a,$,E);return le&&le.disabled===!0&&(Z.disabled=le.disabled),Z},q=(0,t.computed)(()=>(a.data??[]).filter($=>lf(a,$)!==!1)),R=($,E)=>{const L=Pt(a,$);if(s("click",$,E),k.value==L)return;const Z=()=>{k.value=L,a.scroll&&N(E,!1),s("update:modelValue",L),s("change",$,E)};if(typeof a.beforeChange=="function"){const le=a.beforeChange($,E);yt(le)?le.then(ie=>{ie!==!1&&Z()}).catch(()=>{Z()}):le!==!1&&Z()}else Z()},z=($,E)=>function(){R($,E)},W=($,E)=>{R($,E),B(!1)},I=($,E)=>function(){W($,E)},Q=$=>{if(!Array.isArray(a.data)||!a.scroll)return;te()&&ne();const E=a.data.findIndex(L=>Pt(a,L)===k.value);E!==-1&&N(E,$)},ee=()=>{te()||K()};(0,t.watch)(()=>a.data,()=>{setTimeout(Q,0)}),(0,t.onMounted)(()=>{Q(!0)}),(0,t.onBeforeUnmount)(()=>{ee()}),d({});const oe=($,E)=>{if(h.item)return h.item({item:$,index:E});const L=vr(a,$,E),Z=[];if(h.text){const ie=h.text({item:$,index:E});Z.push(ie)}else{const ie=[];if(L?.doit===!0||of(a,$)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ie.push(Ue)}const ce=L?.num??af(a,$);if(ce){let Ue="";const ze=de(ce);ze>=100?Ue="99+":Ue=`${ze}`;const $t=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);ie.push($t)}const fe={class:`${e}__titles-item-text`};ie.push(pr(a,$));const Ke=(0,t.h)("view",fe,ie);Z.push(Ke)}const le=(0,t.h)("view",{class:`${e}__titles-item-line`});return Z.push(le),(0,t.h)("view",{ref:T(E),class:P($,L),style:H($,L),key:x($,E),onClick:z($,E)},Z)},Y=()=>{const $=h.default?h.default():[];if($.length===0)for(let E=0;E<q.value.length;E++){const L=q.value[E],Z=oe(L,E);$.push(Z)}return(0,t.h)("view",{ref:v,class:p.value,style:g.value},$)},G=()=>{let $=null;return h.navigation?$=h.navigation():$=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:S},[$])},F=()=>{const $=[];for(let E=0;E<q.value.length;E++){const L=q.value[E];let Z=null;h.popupItem?Z=h.popupItem({item:L,index:E}):Z=pr(a,L);const le=(0,t.h)("view",{class:M(L,E),key:x(L,E),onClick:I(L,E)},[Z]);$.push(le)}return(0,t.h)("view",{class:w.value,style:b.value},$)},te=()=>a.showScrollArrow&&a.direction=="horizontal",U=(0,t.ref)(!1),D=(0,t.ref)(!1),O=$=>{const E=v.value,L=y.value;if(!(!E||!L))if($==="left"){const Z=E.scrollLeft;let le=Z;for(let ie=0;ie<L.length;ie++){const ce=L[ie].offsetLeft;if(Z-ce<0)break;le=ce}C(E,le,.3,"horizontal")}else{const Z=E.scrollLeft;let le=Z,ie=E.offsetWidth;for(let ce=L.length-1;ce>=0;ce--){const fe=L[ce].offsetLeft+L[ce].offsetWidth;if(fe-Z<E.offsetWidth){le+=ie-fe;break}ie=fe}C(E,le,.3,"horizontal")}},j=Ie(()=>{const $=v.value;if(!$)return;let E=$.scrollLeft>0;E!==U.value&&(U.value=E);let L=$.scrollWidth-$.scrollLeft>$.offsetWidth;L!==D.value&&(D.value=L)},50),X=$=>{j()},ne=()=>{const $=v.value;$&&(j(),$.addEventListener("scroll",X))},K=()=>{const $=v.value;$&&$.removeEventListener("scroll",X)},_=$=>{if($==="left"&&U.value!==!0||$==="right"&&D.value!==!0)return null;let E=null;return $==="left"?h.leftArrow?E=h.leftArrow():E=(0,t.h)(l):h.rightArrow?E=h.rightArrow():E=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,$],onClick:()=>{O($)}},[E])};return()=>{const $=[],E=Y();if($.push(E),te()){const L=_("left");L&&$.push(L);const Z=_("right");Z&&$.push(Z)}else if(a.showQuickNavigation){const L=G();$.push(L);const Z=F();$.push(Z)}return(0,t.h)("view",{class:c.value},$)}}}}var{create:sf,componentName:uf,scope:cf}=J("tabs-bar"),df=sf(rf(uf,cf,ae.MoreH,ae.Left,ae.Right,!1)),an=df,xi=Symbol("TabsStatesKey"),So={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]}},ff=15,mf=300,pf=200;function hf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function gr(e,n=0,o,l,r=pf){o==="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 vf=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,o,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??tl()}open(e){this.el=e;const n=nl(),o=(l,r,i)=>{const a={delta:l,direction:r,type:i};this.onMove(a)};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}o(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<mf&&Math.abs(l)>ff?(l=hf(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(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,o,l=1,r){return new vf(e,n,o,l,r)}function yf(e,n,o=!1){return{props:So,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:a}=Oe({context:r},l.prop),{slots:u}=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:T=>{const N={name:T};d.current.value===T&&(N.loaded=!0),s.value.push(N),(0,t.triggerRef)(s)},remove:T=>{const N=s.value.findIndex(C=>C.name===T);N!==-1&&s.value.splice(N,1)},isLoaded:T=>{if(!l.lazy)return!0;const N=s.value.findIndex(C=>C.name===T);return N!==-1?d.current.value?s.value[N].loaded??!1:N===0:!1}};(0,t.provide)(xi,d);const h=T=>{const N=s.value.findIndex(C=>C.name===T);N!==-1&&(s.value[N].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([T,N])=>{d.current.value!==T&&(d.current.value=T??"",h(T??"")),d.direction.value!==N&&(d.direction.value=N)});const c=(0,t.ref)(null),p=(0,t.ref)(null),g=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),A=(0,t.computed)(()=>{const T={};if(l.width){const N=he(l.width);N&&(T.width=N)}if(l.height){const N=he(l.height);N&&(T.height=N)}return T});let k=!0;const w=(0,t.computed)(()=>{const T={};if(l.transition===!1)return T;const N=s.value.length;if(N<=0)return T;const C=s.value.findIndex(P=>P.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(T.height=`${N*d.tabHeight.value}px`,C!==-1&&(T.transform=`translate(0, -${C*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(T.width=`${N*d.tabWidth.value}px`,C!==-1&&(T.transform=`translate(-${C*d.tabWidth.value}px, 0)`)),k&&(k=!1,T.transition="transform 0s ease"),T}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=T=>{const N=s.value.length,C=s.value.findIndex(P=>P.name===d.current.value);b.moved=0,T.direction==="vertical"?(b.min=-1*(d.tabHeight.value*(N-1)+d.tabHeight.value/4),b.max=d.tabHeight.value/4,b.start=-C*d.tabHeight.value,b.itemDistance=d.tabHeight.value):(b.min=-1*(d.tabWidth.value*(N-1)+d.tabWidth.value/4),b.max=d.tabWidth.value/4,b.start=-C*d.tabWidth.value,b.itemDistance=d.tabWidth.value)},m=T=>{const N=p.value;if(!N)return;let C=b.start+T.delta;if(C>b.max?C=b.max:C<b.min&&(C=b.min),T.type==="move")gr(N,C,"move",T.direction,300);else if(T.type==="end"){let P=Math.floor(Math.abs(C)*1/b.itemDistance);const H=Math.abs(C)%b.itemDistance;b.start>C?H>=b.itemDistance*b.triggerAutoMoveRatio&&(P+=1):H>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(P+=1),C=-1*P*b.itemDistance,gr(N,C,"end",T.direction,300),b.moved=C;const x=s.value[P].name;d.current.value=x??"",h(x??""),i("update:modelValue",x)}},S=()=>{},B=()=>{if(!c.value)return;const T=Fn(c.value);d.tabWidth.value=T.width,d.tabHeight.value=T.height},v=Cn(B,250);let y=null,V=null;return(0,t.onMounted)(()=>{l.transition!==!1&&c.value&&(B(),window.ResizeObserver&&(V=new window.ResizeObserver(v),V.observe(c.value)),l.draggle&&(y=gf(f,m,S),y.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{V&&(V.disconnect(),V=null),y&&y.close()}),a({doLayout(){B()}}),()=>{const T=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[u?.default?.()]);return(0,t.h)("view",{class:g.value,style:A.value,ref:c},[T])}}}}var{create:bf,componentName:Sf,scope:kf}=J("tabs-container"),wf=bf(yf(Sf,kf,!1)),rn=wf,Cf={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 Nf(e,n,o){return{props:Cf,setup(l,{emit:r,slots:i}){const a=(0,t.inject)(xi);(0,t.onMounted)(()=>{a.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{a.remove(l.paneKey)});const u=(0,t.computed)(()=>{const h=[e];return a.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),a.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return a.transition===!1?(a.current.value!==l.paneKey&&(h.display="none"),h):(a.direction.value==="vertical"&&a.tabHeight.value>0?h.height=`${a.tabHeight.value}px`:a.tabWidth.value>0&&(h.width=`${a.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):a.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const c={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??o,c),g=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),A=(0,t.h)("view",{class:`${e}__empty`},[p,g]);h.push(A)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Af,componentName:Bf,scope:Tf}=J("tabs-pane"),Vf=Af(Nf(Bf,Tf,ae.Loading)),ll=Vf,yr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=hn(e,null,this.config)}updateChildren(e,n){n?n.children=hn(e,n,this.config):this.nodes=hn(e,null,this.config)}getNodeByValue(e){let n;return Vi(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,r=Array.isArray(l)&&!!l.length;return o||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:xf,scope:Ef}=J("cascader-pane"),$f=xf({components:{Loading:ae.Loading,Checklist:ae.Checklist,TabsBar:an,TabsContainer:rn,TabsPane:ll},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:o}=(0,ve.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)(),a=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new yr([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>a.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,S)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:S}))),p=new Map;let g;const A=async()=>{p.clear(),d.value=[],r.value=0,a.value=!1,g=null;let{options:m}=e;l.value.convertConfig&&(m=nf(m,l.value.convertConfig)),s.value=new yr(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=u.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 v=s.value.nodes.find(y=>y.value===S[0]);v&&(B=[v.value],a.value=!0,await w(await S.slice(1).reduce(async(y,V)=>{const T=await y;await w(T);const N=T&&T?.children?.find(C=>C.value===V);return N&&B.push(V),Promise.resolve(N)},Promise.resolve(v))),a.value=!1)}B.length&&S===e.modelValue&&s.value.getPathNodesByValue(B).map((v,y)=>{r.value=y,f.handleNode(v,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(y=>{l.value.lazyLoad?.(m,y)}),p.set(m,B));const v=await B;Array.isArray(v)&&v.length>0?s.value.updateChildren(v,S):m.leaf=!0,m.loading=!1,p.delete(m)},b=m=>{const S=m.map(B=>B.value);u.value=S,n("change",S,m),n("pathChange",m),n("update:modelValue",S)},f={async handleNode(m,S){const{disabled:B,loading:v}=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 y=d.value.map(V=>V.selectedNode);b(y),n("pathChange",y)}return}if(s.value.hasChildren(m,h.value)){const y=m.level+1;d.value[r.value].selectedNode=m,d.value=d.value.slice(0,y),d.value.push({nodes:m.children||[],selectedNode:null}),r.value=y,S||n("pathChange",d.value.map(V=>V.selectedNode));return}g=m,!v&&(await w(m),g===m&&(d.value[r.value].selectedNode=m,f.handleNode(m,S)))}},handleTabChange(m,S){g=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("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=>{Ee(m,u.value)||(u.value=m,k(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(u.value)&&u.value.length>0&&k(),m&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:a,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 Mf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TabsBar"),u=(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)(a,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),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]=c=>e.tabsCursor=c)},{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,(c,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)(c.nodes,g=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:g.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,g),disabled:g.disabled}]),"aria-checked":e.isSelected(c,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:A=>e.handleNode(g,!1)},[(0,t.createElementVNode)("view",Pf,(0,t.toDisplayString)(g.text),1),g.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{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 zf=re($f,[["render",Mf]]),{create:Rf}=J("cascader"),Lf=Rf({components:{CascaderPane:zf,Wrapper:ef},props:{...Je,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 o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,u)=>{o.value=a,l.value=!1,n("change",a,u),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return(0,t.watch)(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),Ff=["innerHTML"];function Of(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{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)(a,{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 ol=re(Lf,[["render",Of]]);function Ct(e,n){return n[e.textKey??"text"]??""}function Nt(e,n){return n[e.valueKey??"value"]}function Ei(e,n){return n[e.childrenKey??"children"]}function mn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=Ct(e,r),a=Nt(e,r);o.texts.push(i),o.values.push(a??"")}return o}function $i(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Ct(e,n[a])===i){const u=Nt(e,n[a])??"",s={[e.textKey]:i,[e.valueKey]:u};r.push(s);const d=Ei(e,n[a]);Array.isArray(d)&&$i(e,d,o,l+1,r);return}}function Di(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Nt(e,n[a])===i){const u=Ct(e,n[a])??"",s={[e.textKey]:u,[e.valueKey]:i};r.push(s);const d=Ei(e,n[a]);Array.isArray(d)&&Di(e,d,o,l+1,r);return}}function Nl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Ct(e,n[l])!==Ct(e,o[l])||Nt(e,n[l])!==Nt(e,o[l]))return!1;return!0}var Kf=class{scope;constructor(e){this.scope=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const r=lt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):(xe(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,o))}};function Uf(){return new Kf(ct())}var Ii={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]}},Hf={...ge,...be,...Ii};function _f(e,n,o,l,r,i,a,u=!1){return{props:Hf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:A,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=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,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=Uf(),v=(0,t.ref)([]),y=(0,t.ref)([]),V=(0,t.computed)(()=>{if(Array.isArray(y.value)){if(y.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const _=y.value.length-1;return y.value[_]}return y.value.join(s.separator)}else return y.value??s.emptyText}),T=(0,t.ref)([]),N=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>v.value],async([_,$])=>{if(w("setValue",_),s.lazy===!0){N.value.length==0&&(s.emptyText?y.value=[s.emptyText]:y.value=Array.isArray(_)?_:[],T.value=Array.isArray(_)?_:[]);return}if(s.valueType==="item"){let E=_;if(!Nl(s,E,N.value)){N.value=E;let L=mn(s,E);y.value=L.texts,T.value=L.values}}else if(s.valueType==="text"){let E=_,L=[];if($i(s,$,E,0,L),!Nl(s,L,N.value)){N.value=L;let Z=mn(s,L);y.value=Z.texts,T.value=Z.values}}else{let E=_,L=[];if(Di(s,$,E,0,L),!Nl(s,L,N.value)){N.value=L;let Z=mn(s,L);y.value=Z.texts,T.value=Z.values}}}),s.lazy===!0&&(T.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([_,$])=>{s.lazy||_&&(v.value=await B.load(_,$))},{immediate:!0});const C="fox-input-item",P=(0,t.computed)(()=>({[C]:!0,"is-disabled":p.value,"is-readonly":A.value})),H=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),x=(0,t.computed)(()=>{const _={};return H.value&&(_["text-align"]=H.value),_}),M=(0,t.ref)(!1),q=()=>{p.value===!0||A.value===!0||(M.value=!0)},R=_=>{M.value=_},z=(_,$)=>{let E=$.map(Z=>{if(Z==null)return Z;let le={...Z};return Reflect.deleteProperty(le,"text"),le[s.textKey]=Z.text??"",Reflect.deleteProperty(le,"value"),le[s.valueKey]=Z.value??"",le});N.value=E;let L=mn(s,E);y.value=L.texts,T.value=L.values,s.valueType==="text"?(w("change",y.value,E),w("update:modelValue",y.value)):s.valueType==="item"?(w("change",E,E),w("update:modelValue",E)):(w("change",T.value,E),w("update:modelValue",T.value)),w("update:pathNodes",E)},W=_=>{w("pathChange",_.map($=>{if($==null)return $;let E={...$};return Reflect.deleteProperty(E,"text"),E[s.textKey]=$.text??"",Reflect.deleteProperty(E,"value"),E[s.valueKey]=$.value??"",E}))},I=_=>{S.value=!0,w("focus",T.value,_)},Q=_=>{setTimeout(()=>{S.value=!1},0),w("blur",T.value,_)},ee=(0,t.computed)(()=>({[`${C}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),oe=(0,t.computed)(()=>ke(s.unit)>0),Y=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),G=(0,t.computed)(()=>({hidden:!Y.value})),F=_=>{N.value=[],y.value=[],T.value=[],w("update:modelValue",[]),w("change",[],_),w("clear",[]),w("update:pathNodes",[])},te=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),U=(0,t.computed)(()=>{let _=T.value&&T.value.length>0;return s.clearable&&_&&S.value}),D=_=>{U.value?F(_):q()},O=(0,t.computed)(()=>U.value&&te.value?r:i),j=(0,t.computed)(()=>({action:!0}));let X=null;const ne=()=>typeof X=="function"?X:typeof s.lazyLoad=="function"?s.lazyLoad:(X=async(_,$)=>{const E=[],L=[];let Z=0;if(!_.root){let le=_;for(;le;){const ie=Ct(s,le),ce=Nt(s,le);L.splice(0,0,ie),E.splice(0,0,ce),le=le._parent}Z=E.length}$(await B.load(s.source,{..._,level:Z,pathLabels:L,pathValues:E},!0))},X),K=(0,t.ref)();return b({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},setDisabled:_=>{c.value=_},setReadonly:_=>{g.value=_}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(V.value,d.slots,s.emptyText);const _={class:P.value,style:x.value,ref:K,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:V.value,onClick:q,onFocus:I,onBlur:Q};u&&(_.disabled=!0);const $=[],E=(0,t.h)("input",_);$.push(E);const L=[],Z=(0,t.h)(O.value,{class:["action-icon"]}),le=(0,t.h)("view",{class:j.value,onClick:D},{default:()=>[Z]});if(L.push(le),oe.value){const $t=(0,t.h)("view",{class:G.value},[s.unit]);L.push($t)}const ie=(0,t.h)("view",{class:ee.value},{default:()=>L});$.push(ie);const ce={default:()=>$};ce.label=d.slots.default,ce.prepend=d.slots.prepend,ce.append=d.slots.append,ce.fixedPreTip=d.slots.fixedPreTip,ce.fixedTip=d.slots.fixedTip;const fe={};fe.visible=M.value,fe["onUpdate:visible"]=R,fe.modelValue=T.value,fe.onChange=z,fe.onPathChange=W,fe.title=s.title,fe.valueKey=s.valueKey,fe.textKey=s.textKey,fe.childrenKey=s.childrenKey,fe.convertConfig=s.convertConfig,s.lazy?(fe.lazy=!0,fe.lazyLoad=ne()):fe.options=v.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(a,fe,Ke);ce.hide=()=>[Ue];const ze={...tt(s,Ii),ref:h};return s.prop&&(ze.prop=`${s.prop}_item`),o(ze,ce)}}}}var{componentName:jf,create:Wf,scope:Yf}=J("cascader-item"),Xf=Wf(_f(jf,Yf,De,Pe,ae.CircleClose,ae.ArrowRight,ol,!1)),ko=Xf,Qf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,r=36e5,i="millisecond",a="second",u="minute",s="hour",d="day",h="week",c="month",p="quarter",g="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+)?$/,b=/\[([^\]]+)]|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(x){var M=["th","st","nd","rd"],q=x%100;return"["+x+(M[(q-20)%10]||M[q]||M[0])+"]"}},m=function(x,M,q){var R=String(x);return!R||R.length>=M?x:""+Array(M+1-R.length).join(q)+x},S={s:m,z:function(x){var M=-x.utcOffset(),q=Math.abs(M),R=Math.floor(q/60),z=q%60;return(M<=0?"+":"-")+m(R,2,"0")+":"+m(z,2,"0")},m:function x(M,q){if(M.date()<q.date())return-x(q,M);var R=12*(q.year()-M.year())+(q.month()-M.month()),z=M.clone().add(R,c),W=q-z<0,I=M.clone().add(R+(W?-1:1),c);return+(-(R+(q-z)/(W?z-I:I-z))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y:g,w:h,d,D:A,h:s,m:u,s:a,ms:i,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},B="en",v={};v[B]=f;var y="$isDayjsObject",V=function(x){return x instanceof P||!(!x||!x[y])},T=function x(M,q,R){var z;if(!M)return B;if(typeof M=="string"){var W=M.toLowerCase();v[W]&&(z=W),q&&(v[W]=q,z=W);var I=M.split("-");if(!z&&I.length>1)return x(I[0])}else{var Q=M.name;v[Q]=M,z=Q}return!R&&z&&(B=z),z||!R&&B},N=function(x,M){if(V(x))return x.clone();var q=typeof M=="object"?M:{};return q.date=x,q.args=arguments,new P(q)},C=S;C.l=T,C.i=V,C.w=function(x,M){return N(x,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var P=(function(){function x(q){this.$L=T(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[y]=!0}var M=x.prototype;return M.parse=function(q){this.$d=(function(R){var z=R.date,W=R.utc;if(z===null)return new Date(NaN);if(C.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var I=z.match(w);if(I){var Q=I[2]-1||0,ee=(I[7]||"0").substring(0,3);return W?new Date(Date.UTC(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,ee)):new Date(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,ee)}}return new Date(z)})(q),this.init()},M.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},M.$utils=function(){return C},M.isValid=function(){return this.$d.toString()!==k},M.isSame=function(q,R){var z=N(q);return this.startOf(R)<=z&&z<=this.endOf(R)},M.isAfter=function(q,R){return N(q)<this.startOf(R)},M.isBefore=function(q,R){return this.endOf(R)<N(q)},M.$g=function(q,R,z){return C.u(q)?this[R]:this.set(z,q)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(q,R){var z=this,W=!!C.u(R)||R,I=C.p(q),Q=function(D,O){var j=C.w(z.$u?Date.UTC(z.$y,O,D):new Date(z.$y,O,D),z);return W?j:j.endOf(d)},ee=function(D,O){return C.w(z.toDate()[D].apply(z.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(O)),z)},oe=this.$W,Y=this.$M,G=this.$D,F="set"+(this.$u?"UTC":"");switch(I){case g:return W?Q(1,0):Q(31,11);case c:return W?Q(1,Y):Q(0,Y+1);case h:var te=this.$locale().weekStart||0,U=(oe<te?oe+7:oe)-te;return Q(W?G-U:G+(6-U),Y);case d:case A:return ee(F+"Hours",0);case s:return ee(F+"Minutes",1);case u:return ee(F+"Seconds",2);case a:return ee(F+"Milliseconds",3);default:return this.clone()}},M.endOf=function(q){return this.startOf(q,!1)},M.$set=function(q,R){var z,W=C.p(q),I="set"+(this.$u?"UTC":""),Q=(z={},z[d]=I+"Date",z[A]=I+"Date",z[c]=I+"Month",z[g]=I+"FullYear",z[s]=I+"Hours",z[u]=I+"Minutes",z[a]=I+"Seconds",z[i]=I+"Milliseconds",z)[W],ee=W===d?this.$D+(R-this.$W):R;if(W===c||W===g){var oe=this.clone().set(A,1);oe.$d[Q](ee),oe.init(),this.$d=oe.set(A,Math.min(this.$D,oe.daysInMonth())).$d}else Q&&this.$d[Q](ee);return this.init(),this},M.set=function(q,R){return this.clone().$set(q,R)},M.get=function(q){return this[C.p(q)]()},M.add=function(q,R){var z,W=this;q=Number(q);var I=C.p(R),Q=function(Y){var G=N(W);return C.w(G.date(G.date()+Math.round(Y*q)),W)};if(I===c)return this.set(c,this.$M+q);if(I===g)return this.set(g,this.$y+q);if(I===d)return Q(1);if(I===h)return Q(7);var ee=(z={},z[u]=l,z[s]=r,z[a]=o,z)[I]||1,oe=this.$d.getTime()+q*ee;return C.w(oe,this)},M.subtract=function(q,R){return this.add(-1*q,R)},M.format=function(q){var R=this,z=this.$locale();if(!this.isValid())return z.invalidDate||k;var W=q||"YYYY-MM-DDTHH:mm:ssZ",I=C.z(this),Q=this.$H,ee=this.$m,oe=this.$M,Y=z.weekdays,G=z.months,F=z.meridiem,te=function(O,j,X,ne){return O&&(O[j]||O(R,W))||X[j].slice(0,ne)},U=function(O){return C.s(Q%12||12,O,"0")},D=F||function(O,j,X){var ne=O<12?"AM":"PM";return X?ne.toLowerCase():ne};return W.replace(b,(function(O,j){return j||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return C.s(R.$y,4,"0");case"M":return oe+1;case"MM":return C.s(oe+1,2,"0");case"MMM":return te(z.monthsShort,oe,G,3);case"MMMM":return te(G,oe);case"D":return R.$D;case"DD":return C.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return te(z.weekdaysMin,R.$W,Y,2);case"ddd":return te(z.weekdaysShort,R.$W,Y,3);case"dddd":return Y[R.$W];case"H":return String(Q);case"HH":return C.s(Q,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return D(Q,ee,!0);case"A":return D(Q,ee,!1);case"m":return String(ee);case"mm":return C.s(ee,2,"0");case"s":return String(R.$s);case"ss":return C.s(R.$s,2,"0");case"SSS":return C.s(R.$ms,3,"0");case"Z":return I}return null})(O)||I.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(q,R,z){var W,I=this,Q=C.p(R),ee=N(q),oe=(ee.utcOffset()-this.utcOffset())*l,Y=this-ee,G=function(){return C.m(I,ee)};switch(Q){case g:W=G()/12;break;case c:W=G();break;case p:W=G()/3;break;case h:W=(Y-oe)/6048e5;break;case d:W=(Y-oe)/864e5;break;case s:W=Y/r;break;case u:W=Y/l;break;case a:W=Y/o;break;default:W=Y}return z?W:C.a(W)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return v[this.$L]},M.locale=function(q,R){if(!q)return this.$L;var z=this.clone(),W=T(q,R,!0);return W&&(z.$L=W),z},M.clone=function(){return C.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},x})(),H=P.prototype;return N.prototype=H,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",d],["$M",c],["$y",g],["$D",A]].forEach((function(x){H[x[1]]=function(M){return this.$g(M,x[0],x[1])}})),N.extend=function(x,M){return x.$i||(x(M,P,N),x.$i=!0),N},N.locale=T,N.isDayjs=V,N.unix=function(x){return N(1e3*x)},N.en=v[B],N.Ls=v,N.p={},N}))})),Gf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={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/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(w){return(w=+w)+(w>68?1900:2e3)},h=function(w){return function(b){this[w]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var f=b.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m})(w)}],p=function(w){var b=s[w];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(w,b){var f,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(w.indexOf(m(S,0,b))>-1){f=S>12;break}}else f=w===(b?"pm":"PM");return f},A={A:[u,function(w){this.afternoon=g(w,!1)}],a:[u,function(w){this.afternoon=g(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:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[i,h("day")],Do:[u,function(w){var b=s.ordinal,f=w.match(/\d+/);if(this.day=f[0],b)for(var m=1;m<=31;m+=1)b(m).replace(/\[|\]/g,"")===w&&(this.day=m)}],w:[a,h("week")],ww:[i,h("week")],M:[a,h("month")],MM:[i,h("month")],MMM:[u,function(w){var b=p("months"),f=(p("monthsShort")||b.map((function(m){return m.slice(0,3)}))).indexOf(w)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[u,function(w){var b=p("months").indexOf(w)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(w){this.year=d(w)}],YYYY:[/\d{4}/,h("year")],Z:c,ZZ:c};function k(w){for(var b=w,f=s&&s.formats,m=(w=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(N,C,P){var H=P&&P.toUpperCase();return C||f[P]||o[P]||f[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,M,q){return M||q.slice(1)}))}))).match(l),S=m.length,B=0;B<S;B+=1){var v=m[B],y=A[v],V=y&&y[0],T=y&&y[1];m[B]=T?{regex:V,parser:T}:v.replace(/^\[|\]$/g,"")}return function(N){for(var C={},P=0,H=0;P<S;P+=1){var x=m[P];if(typeof x=="string")H+=x.length;else{var M=x.regex,q=x.parser,R=N.slice(H),z=M.exec(R)[0];q.call(C,z),N=N.replace(z,"")}}return(function(W){var I=W.afternoon;if(I!==void 0){var Q=W.hours;I?Q<12&&(W.hours+=12):Q===12&&(W.hours=0),delete W.afternoon}})(C),C}}return function(w,b,f){f.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(d=w.parseTwoDigitYear);var m=b.prototype,S=m.parse;m.parse=function(B){var v=B.date,y=B.utc,V=B.args;this.$u=y;var T=V[1];if(typeof T=="string"){var N=V[2]===!0,C=V[3]===!0,P=N||C,H=V[2];C&&(H=V[2]),s=this.$locale(),!N&&H&&(s=f.Ls[H]),this.$d=(function(R,z,W,I){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*R);var Q=k(z)(R),ee=Q.year,oe=Q.month,Y=Q.day,G=Q.hours,F=Q.minutes,te=Q.seconds,U=Q.milliseconds,D=Q.zone,O=Q.week,j=new Date,X=Y||(ee||oe?1:j.getDate()),ne=ee||j.getFullYear(),K=0;ee&&!oe||(K=oe>0?oe-1:j.getMonth());var _,$=G||0,E=F||0,L=te||0,Z=U||0;return D?new Date(Date.UTC(ne,K,X,$,E,L,Z+60*D.offset*1e3)):W?new Date(Date.UTC(ne,K,X,$,E,L,Z)):(_=new Date(ne,K,X,$,E,L,Z),O&&(_=I(_).week(O).toDate()),_)}catch{return new Date("")}})(v,T,y,f),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),P&&v!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var x=T.length,M=1;M<=x;M+=1){V[1]=T[M-1];var q=f.apply(this,V);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}M===x&&(this.$d=new Date(""))}else S.call(this,B)}}}))})),Zf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var r=l.prototype,i=r.format;r.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),h=(a||"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(c){switch(c){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return c}}));return i.bind(this)(h)}}}))})),Jf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,r){var i=l.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,p,g,A,k){var w=c.name?c:c.$locale(),b=a(w[p]),f=a(w[g]),m=b||f.map((function(B){return B.slice(0,A)}));if(!k)return m;var S=w.weekStart;return m.map((function(B,v){return m[(v+(S||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(c,p){return c.formats[p]||(function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,k,w){return k||w.slice(1)}))})(c.formats[p.toUpperCase()])},h=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):u(c,"months")},monthsShort:function(p){return p?p.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},r.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.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(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(c){return u(s(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),em=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(r,i,a){var u=i.prototype;u.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=a(this).startOf(l).add(1,l).date(d),c=a(this).endOf(o);if(h.isBefore(c))return 1}var p=a(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),g=this.diff(p,o,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),tm=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}}))})),nm=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})),lm=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),om=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Fe=Ye(Qf(),1),am=Ye(Gf(),1),rm=Ye(Zf(),1),im=Ye(Jf(),1),sm=Ye(em(),1),um=Ye(tm(),1),cm=Ye(nm(),1),dm=Ye(lm(),1),fm=Ye(om(),1);Fe.default.extend(im.default);Fe.default.extend(rm.default);Fe.default.extend(am.default);Fe.default.extend(sm.default);Fe.default.extend(um.default);Fe.default.extend(cm.default);Fe.default.extend(dm.default);Fe.default.extend(fm.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Fe.default)(e).format(n)},parser(e,n){return(0,Fe.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).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,o){const l=typeof e=="string"?this.parser(e,o):e,r=typeof n=="string"?this.parser(n,o):n,i=l.getTime(),a=r.getTime();return i==a?0:i>a?1:-1},between(e,n,o,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+o)):r=new Date(new Date(n).setDate(n.getDate()+o));const i=e.getTime(),a=r.getTime(),u=n.getTime();return a>u?i>=u&&i<=a:i>=a&&i<=u},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},br=new Date().getFullYear(),wo={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Vn=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):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)},_l=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},Co={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(br-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(br+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:mm,scope:pm}=J("date-picker"),hm=mm({components:{Picker:on},props:{...Co},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(pm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("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 a=(m,S)=>{const B=e[`${m}Date`],v=B.getFullYear();let y=1,V=1,T=0,N=0;m==="max"&&(y=12,V=i(S.getFullYear(),S.getMonth()+1),T=23,N=59);const C=N;return S.getFullYear()===v&&(y=B.getMonth()+1,S.getMonth()+1===y&&(V=B.getDate(),S.getDate()===V&&(T=B.getHours(),S.getHours()===T&&(N=B.getMinutes())))),{[`${m}Year`]:v,[`${m}Month`]:y,[`${m}Date`]:V,[`${m}Hour`]:T,[`${m}Minute`]:N,[`${m}Seconds`]:C}},u=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:m,maxDate:S,maxMonth:B,maxHour:v,maxMinute:y,maxSeconds:V}=a("max",p.value),{minYear:T,minDate:N,minMonth:C,minHour:P,minMinute:H,minSeconds:x}=a("min",p.value);let M=[{type:"year",range:[T,m]},{type:"month",range:[C,B]},{type:"day",range:[N,S]},{type:"hour",range:[P,v]},{type:"minute",range:[H,y]},{type:"seconds",range:[x,V]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(m,S,B,v,y)=>{const V=[];for(;m<=S;){let T=!0;if(typeof e.itemFilter=="function"){const N={text:`${m}`,value:m,type:B,currentYearMonth:v};T=e.itemFilter(N)}if(T)if(typeof e.itemFormatter=="function"){const N={text:`${m}`,value:m,type:B,currentYearMonth:v};e.itemFormatter(N),V.push({text:N.text,value:N.value})}else if(e.isShowChinese){let N=`${m}${l[B]}`;if(B==="day"){if(v[0]===y[0]&&v[1]===y[1]&&m===y[2])N=l.today;else{const C=new Date(v[0],v[1],m).getDay();N=`${N} ${l.fullWeekdays[C]}`}V.push({text:N,value:m})}else V.push({text:m+l[B],value:m})}else V.push({text:`${m}`,value:m});B==="minute"?m+=e.minuteStep:m++}return V},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 v=[];return u.value.forEach(y=>{let V=s(y.range[0],y.range[1],y.type,B,S);V&&v.push(V)}),v}),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,c=(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=Vn(e,e.modelValue,e.valueFormat):S=Vn(e,m,wo[e.type]):je(m)?S=m:S=new Date,!!S&&(!p.value||S.getTime()!==p.value.getTime())){p.value=S;let B=[];u.value.forEach(v=>{let y=h(v.type,S);B.push(y)}),c.value=B}},{immediate:!0});const g=m=>{if(!m||m.length===0){p.value=new Date;let S=[];u.value.forEach(B=>{let v=h(B.type,p.value);S.push(v)}),c.value=S;return}if(e.type==="date"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1));v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v)}else if(e.type==="datetime"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1)),y=m[3],V=m[4];v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v,y,V)}else if(e.type==="time"){const S=m[0],B=m[1],v=m[2],y=p.value??new Date;p.value=new Date(y.getFullYear(),y.getMonth(),y.getDate(),S,B,v)}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,v=Math.min(m[1],i(S,B+1));v!==m[1]&&(m[1]=v),p.value=new Date(S,B,v)}else if(e.type==="datehour"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1)),y=m[3];v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v,y)}else if(e.type==="hour-minute"){const S=m[0],B=m[1],v=p.value??new Date;p.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),S,B)}c.value=m};return{columns:d,dateIndexs:c,show:r,onChange:m=>{g(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{g(m);const S=p.value??new Date;e.valueFormat?n("update:modelValue",_l(e,S,e.valueFormat)):n("update:modelValue",S),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{r.value=m,n("update:visible",m)}}}});function vm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(a,{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 al=re(hm,[["render",vm]]),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=wo[e.type??"date"]),n}var bm={...ge,...be,...Co,...gm};function Sm(e,n,o,l,r,i,a,u=!1){return{props:bm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:A,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=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,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),v=qe(s,"modelValue",D=>D==null?null:typeof D=="string"?D.length==0?null:s.valueFormat?Vn(s,D,s.valueFormat)??D:Vn(s,D,wo[s.type])??D:je(D)?D:null,w),y=(0,t.computed)(()=>{if(!v.value)return"";const D=ym(s);return _l(s,v.value,D)}),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":A.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const D={};return N.value&&(D["text-align"]=N.value),D}),P=(0,t.ref)(!1),H=()=>{P.value=!0},x=()=>{P.value=!1};d.expose({showPicker:H,hidePicker:x});const M=D=>{P.value=D},q=D=>{if(v.value=D,s.valueFormat){let O=_l(s,D,s.valueFormat);w("update:modelValue",O,{}),w("change",O,{})}else w("update:modelValue",D,{}),w("change",D,{})},R=D=>{let O=D.target.value;S.value=!0,w("focus",O,D)},z=D=>{setTimeout(()=>{S.value=!1},0);let O=D.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),w("blur",O,D)},W=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),ee=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{v.value="",w("update:modelValue","",D),w("change","",D),w("clear",""),x()},Y=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),G=(0,t.computed)(()=>{let D=ke(v.value)>0;return s.clearable&&D&&S.value}),F=D=>{G.value?oe(D):H()},te=(0,t.computed)(()=>G.value&&Y.value?r:i),U=(0,t.computed)(()=>({action:!0}));return b({setDisabled:D=>{c.value=D},setReadonly:D=>{g.value=D}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(y.value,d.slots);const D={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(D.disabled=!0);const O=[],j=(0,t.h)("input",D);O.push(j);const X=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(X.push(K),I.value){const ie=(0,t.h)("view",{class:ee.value},[s.unit]);X.push(ie)}const _=(0,t.h)("view",{class:W.value},{default:()=>X});O.push(_);const $={default:()=>O};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,Co);E.valueFormat=null,E.disabled=!1,E.readonly=p.value||A.value,E.visible=P.value,E["onUpdate:visible"]=M,E.modelValue=v.value,E["onUpdate:modelValue"]=q,E.onClear=oe;const L={};if(d.slots.top){const ie=d.slots.top();L.top=()=>ie}if(d.slots.bottom){const ie=d.slots.bottom();L.default=()=>ie}const Z=(0,t.h)(a,E,L);$.hide=()=>[Z];const le={...ye(s,be,ge),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),o(le,$)}}}}var{create:km,componentName:wm,scope:Cm}=J("date-item"),Nm=km(Sm(wm,Cm,De,Pe,ae.CircleClose,ae.Date,al,!1)),No=Nm,se={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),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,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let i=r.getDay();const a=r.getDate();let u=6-i;return l!==0&&(i=i==0?7:i,u=7-i),Math.ceil((a+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=new Date(Number(e),0,1),a=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((a+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=r.getTime();let a=r.getDay();if(l===0){const s=i-a*864e5,d=i+(6-a)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{a=a==0?7:a;const u=1440*60*1e3,s=i-(a-1)*u,d=i+(7-a)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=se.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=se.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Am,scope:Bm}=J("calendar-pane"),Tm=Am({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:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o,expose:l}){const{toLocaleRefs:r,t:i}=(0,ve.useFoxI18n)(Bm),a=r(e,["title","confirmText","startText","endText","today"]),u=JSON.parse(i("weekdays")),s=(0,t.ref)([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),c=(0,t.ref)(null),p=(0,t.ref)(null),g=(0,t.ref)(0),A=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=(0,t.computed)(()=>o.btn),w=(0,t.computed)(()=>o["top-info"]),b=(0,t.computed)(()=>o["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=U=>U.split("-"),S=U=>se.isEqual(f.currDate[0],U),B=U=>se.isEqual(f.currDate[1],U),v=U=>f.currDate?.length>0?f.currDate?.some(D=>se.isEqual(D,U)):!1,y=(U,D)=>D.curData[0]+"-"+D.curData[1]+"-"+se.getNumTwoBit(+U.day),V=(U,D)=>{const O=y(U,D),{type:j}=e;return U.type=="curr"?se.isEqual(f.currDate,O)||(j=="range"||j=="week")&&(S(O)||B(O))||j=="multiple"&&v(O)?`${f.dayPrefix}--active`:f.propStartDate&&se.compareDate(O,f.propStartDate)||f.propEndDate&&se.compareDate(f.propEndDate,O)?`${f.dayPrefix}--disabled`:(j=="range"||j=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&se.compareDate(f.currDate[0],O)&&se.compareDate(O,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:U}=e;if(U=="range"&&f.chooseData.length==2||U!="range"){let D=f.chooseData.slice(0);U=="week"&&(D={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("choose",D),e.poppable&&n("update")}},N=(U,D,O=!1)=>{if(V(U,D)!=`${f.dayPrefix}--disabled`){const{type:j}=e;let[X,ne]=D.curData,K=[...D.curData];if(K[2]=se.getNumTwoBit(Number(U.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=se.getWhatDay(+K[0],+K[1],+K[2]),j=="multiple")if(f.currDate?.length>0){let _;f.currDate?.forEach(($,E)=>{$==K[3]&&(_=E)}),O?f.chooseData.push([...K]):_!==void 0?(f.currDate.splice(_,1),f.chooseData.splice(_,1)):(f.currDate.push(K[3]),f.chooseData.push([...K]))}else f.currDate=[K[3]],f.chooseData=[[...K]];else if(j=="range"){let _=Object.values(f.currDate).length;_==2||_==0?f.currDate=[K[3]]:se.compareDate(f.currDate[0],K[3])?Array.isArray(f.currDate)&&f.currDate.push(K[3]):Array.isArray(f.currDate)&&f.currDate.unshift(K[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...K]]:se.compareDate(f.chooseData[0][3],K[3])?f.chooseData=[...f.chooseData,[...K]]:f.chooseData=[[...K],...f.chooseData]}else if(j=="week"){let _=se.getWeekDate(X,ne,U.day,e.firstDayOfWeek);f.propStartDate&&se.compareDate(_[0],f.propStartDate)&&_.splice(0,1,f.propStartDate),f.propEndDate&&se.compareDate(f.propEndDate,_[1])&&_.splice(1,1,f.propEndDate),f.currDate=_,f.chooseData=[se.formatResultDate(_[0]),se.formatResultDate(_[1])]}else f.currDate=K[3],f.chooseData=[...K];if(!O){let _=f.chooseData;j=="week"&&(_={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&T()}}},C=U=>{let[D,O,j]=U;return{date:U,monthWeekNum:se.getMonthWeek(D,O,j,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(D,O,j,e.firstDayOfWeek)}},P=U=>{const D=U=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let O=parseInt(D.curData[0]),j=parseInt(D.curData[1].toString().replace(/^0/,""));switch(U){case"prev":j==1&&(O-=1),j=j==1?12:--j;break;case"next":j==12&&(O+=1),j=j==12?1:++j;break}return[O+"",se.getNumTwoBit(j),se.getMonthDays(String(O),String(j))+""]},H=(U,D,O)=>{let{year:j,month:X}=O;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(U),(ne,K)=>({day:String(K+1),type:D,year:j,month:X}))},x=(U,D,O,j)=>{U=U-e.firstDayOfWeek;let{year:X,month:ne}=O;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(j),(K,_)=>({day:String(_+1),type:D,year:X,month:ne})).slice(j-U)},M=(U,D)=>{const O=se.getMonthPreDay(+U[0],+U[1]);let j=Number(U[1])-1,X=Number(U[0]);j<=0&&(j=12,X+=1);const ne=se.getMonthDays(String(U[0]),String(U[1])),K=se.getMonthDays(X+"",j+""),_={year:U[0],month:U[1]},$={curData:U,title:i("monthTitle",{year:_.year,month:_.month}),monthData:[...x(O,"prev",{month:String(j),year:String(X)},K),...H(ne,"curr",_)],cssHeight:0,cssScrollHeight:0};$.cssHeight=39+64*($.monthData.length>35?6:5);let E=0;f.monthsData.length>0&&(E=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),$.cssScrollHeight=E,D=="next"?(!f.endData||!se.compareDate(`${f.endData[0]}-${f.endData[1]}-${se.getMonthDays(f.endData[0],f.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&f.monthsData.push($):!f.startData||!se.compareDate(`${U[0]}-${U[1]}-${U[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift($):f.unLoadPrev=!0},q=()=>{let U=e.startDate?e.startDate:se.getDay(0),D=e.endDate?e.endDate:se.getDay(365);f.propStartDate=U,f.propEndDate=D,f.startData=m(U),f.endData=m(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const O={year:Number(f.startData[0]),month:Number(f.startData[1])},j={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=j.month-O.month;j.year-O.year>0&&(X=X+12*(j.year-O.year)),X<=0&&(X=1),M(f.startData,"next");let ne=1;do M(P("next"),"next");while(ne++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(U&&se.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),D&&se.compareDate(D,f.currDate[1])&&f.currDate.splice(1,1,D),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 K=[],_={};f.currDate.forEach($=>{U&&!se.compareDate($,U)&&D&&!se.compareDate(D,$)&&(Object.hasOwnProperty.call(_,$)||(K.push($),_[$]=$))}),f.currDate=[...K],f.defaultData=[...m(K[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[K,_,$]=m(f.currDate[0]);f.currDate=se.getWeekDate(K,_,$,e.firstDayOfWeek),U&&se.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),D&&se.compareDate(D,f.currDate[1])&&f.currDate.splice(1,1,D),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(U&&se.compareDate(f.currDate,U)?f.currDate=U:D&&!se.compareDate(f.currDate,D)&&(f.currDate=D),f.defaultData=[...m(f.currDate)])};l({scrollToDate:U=>{se.compareDate(U,f.propStartDate)?U=f.propStartDate:se.compareDate(U,f.propEndDate)||(U=f.propEndDate);let D=m(U);f.monthsData.forEach((O,j)=>{if(O.title==i("monthTitle",{year:D[0],month:D[1]})&&d.value){let X=f.monthsData[j].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let ne=0,K=setInterval(()=>{if(ne++,d.value){let _=X/10;d.value.scrollTop=d.value.scrollTop+_}ne>=10&&(clearInterval(K),d.value&&(d.value.scrollTop=f.monthsData[j].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[j].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,D=0;f.defaultData.length>0&&f.monthsData.forEach((X,ne)=>{X.title==i("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(U=ne),(e.type=="range"||e.type=="week")&&X.title==i("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(D=ne)}),I(f.monthsNum,U),f.currentIndex=U,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[D],!0)):e.type=="week"?N({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let ne=m(X),K=f.currentIndex;f.monthsData.forEach((_,$)=>{_.title==i("monthTitle",{year:ne[0],month:ne[1]})&&(K=$)}),N({day:ne[2],type:"curr"},f.monthsData[K],!0)}):N({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let O=f.monthsData[f.monthsData.length-1],j=O.cssHeight+O.cssScrollHeight;Qe(()=>{d?.value&&h?.value&&p?.value&&(g.value=d.value.clientHeight,h.value.style.height=`${j}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(j/(f.monthsNum+1))}});const I=(U,D)=>{U>=3?D>0&&D<U?f.defaultRange=[D-1,D+3]:D==0?f.defaultRange=[D,D+4]:D==U&&(f.defaultRange=[D-2,D+2]):f.defaultRange=[0,U+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},Q=(U,D)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&V(U,D)=="fox-calendar__day--active",ee=(U,D)=>Q(U,D)&&S(y(U,D)),oe=(U,D)=>f.currDate.length>=2&&B(y(U,D))?Q(U,D):!1,Y=()=>{if(f.currDate.length>=2)return se.isEqual(f.currDate[0],f.currDate[1])},G=U=>{const D=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return se.isEqual(D,se.date2Str(new Date))},F=U=>{if(f.monthsData.length<=1)return;const D=U.target.scrollTop;let O=Math.floor(D/f.avgHeight);if(O==0)D>=f.monthsData[O+1].cssScrollHeight&&(O+=1);else if(O>0&&O<f.monthsNum-1)D>=f.monthsData[O+1].cssScrollHeight&&(O+=1),D<f.monthsData[O].cssScrollHeight&&(O-=1);else{const j=Math.round(D+g.value);j<f.monthsData[O].cssScrollHeight+f.monthsData[O].cssHeight&&D>f.monthsData[O-1].cssScrollHeight&&(O-=1),O+1<=f.monthsNum&&j>=f.monthsData[O+1].cssScrollHeight+f.monthsData[O+1].cssHeight&&(O+=1),O>=1&&D<f.monthsData[O-1].cssScrollHeight&&(O-=1)}f.currentIndex!==O&&(f.currentIndex=O,I(f.monthsNum,O)),f.yearMonthTitle=f.monthsData[O].title},te=()=>{f.chooseData.splice(0),f.monthsData.splice(0),q()};return q(),(0,t.watch)(()=>e.defaultValue,U=>{U&&e.poppable&&te()}),{weeks:s,compConthsData:A,showTopBtn:k,topInfo:w,bottomInfo:b,rangeTip:Y,mothsViewScroll:F,getClass:V,isStartTip:ee,isEndTip:oe,chooseDay:N,isCurrDay:G,confirm:T,months:d,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...a,monthsPanel:h,weeksPanel:c,viewArea:p}}}),Vm={class:"fox-calendar__header"},xm={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"},Mm=["onClick"],zm={class:"fox-calendar__day-value"},Rm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Lm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Fm={key:2,class:"fox-calendar__day-tips--curr"},Om={key:4,class:"fox-calendar__day-tip"},Km={key:0,class:"fox-calendar__footer"};function Um(e,n,o,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",Vm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",xm,(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(a),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",qm,(0,t.toDisplayString)(a.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)(a.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,a)]),onClick:h=>e.chooseDay(s,a)},[(0,t.createElementVNode)("view",zm,[(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",Rm,[(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",Lm,[(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,a)?((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,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Mm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Km,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Hm=re(Tm,[["render",Um]]),_m=(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)(we,tt({...e},{poppable:!1}),n):n?.default?.()??null}}),jm=_m,Wm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),xn={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}=J("calendar"),Xm=Ym({components:{Wrapper:jm,CalendarPane:Hm},props:{...xn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.computed)(()=>o.btn),i=(0,t.computed)(()=>o["top-info"]),a=(0,t.computed)(()=>o.day),u=(0,t.computed)(()=>o["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 c=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:c,close:p,select:w=>{n("select",w)},choose:w=>{p(),n("choose",w)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:a,bottomInfo:u}}});function Qm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(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)(a,{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 rl=re(Xm,[["render",Qm]]),qi={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]}},Al=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&ke(e)>0?o=se.parser(e,n):o=new Date,o},dt=(e,n,o)=>(je(n)||(n=new Date),se.format(n,o)),ft=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,se.date2Str(e),se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Gm={...ge,...be,...xn,...qi};function Zm(e,n,o,l,r,{CloseIcon:i,MarkIcon:a},u=!1){return{props:Gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:c,readonly:p,browse:g}=Te(s),{emitEvent:A,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return c.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),b=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=[])},v=(D,O="one",j="YYYY-MM-DD")=>{if(Wm(D)){B();return}if(m.value&&Array.isArray(D)&&D.length==2){let X,ne;typeof D[0]=="string"?(X=Al(D[0],j),ne=Al(D[1],j)):(X=D[0],ne=D[1]);let K=ft(X),_=ft(ne);(S.startDate===null||S.startDate.getTime()!==X.getTime()||S.endDate?.getTime()!==ne.getTime())&&(S.startDate=X,S.startArray=K,S.endDate=ne,S.endArray=_)}else{let X;typeof D=="string"?X=Al(D,j):X=D;let ne=ft(X);(S.startDate===null||S.startDate.getTime()!==X.getTime())&&(S.startDate=X,S.startArray=ne)}};v(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,D=>{v(D,s.type,s.valueFormat),A("setValue",D)});const y=(0,t.computed)(()=>{if(S.startDate===null)return"";if(m.value){let D=dt(s,S.startDate,s.format),O=dt(s,S.endDate,s.format);return`${D} ${s.rangeSeparator} ${O}`}else{let D=dt(s,S.startDate,s.format);return s.showWeek&&(D=`${D} ${S.startArray[4]}`),D}}),V=(0,t.computed)(()=>S.startDate===null?null:m.value?[se.date2Str(S.startDate),se.date2Str(S.endDate??new Date)]:se.date2Str(S.startDate)),T="fox-input-item",N=(0,t.computed)(()=>({[T]:!0,"is-disabled":c.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),P=(0,t.computed)(()=>{const D={};return C.value&&(D["text-align"]=C.value),D}),H=(0,t.ref)(!1),x=()=>{p.value||c.value||(H.value=!0)},M=D=>{H.value=D},q=D=>{if(D){if(m.value&&Array.isArray(D)){let O=D[0],j=de(O[0]),X=de(O[1]),ne=de(O[2]),K=new Date(j,X-1,ne),_=D[1];j=de(_[0]),X=de(_[1]),ne=de(_[2]);let $=new Date(j,X-1,ne);S.startDate=K,S.startArray=ft(K),S.endDate=$,S.endArray=ft($),s.valueFormat?A("update:modelValue",[dt(s,K,s.valueFormat),dt(s,$,s.valueFormat)],{}):A("update:modelValue",[K,$],{})}else{let O=D,j=de(O[0]),X=de(O[1]),ne=de(O[2]),K=new Date(j,X-1,ne);S.startDate=K,S.startArray=ft(K),s.valueFormat?A("update:modelValue",dt(s,K,s.valueFormat),{}):A("update:modelValue",K,{})}A("change",D,{})}},R=D=>{let O=D.target.value;f.value=!0,A("focus",O,D)},z=D=>{setTimeout(()=>{f.value=!1},0);let O=D.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),A("blur",O,D)},W=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":c.value,"is-readonly":p.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!f.value),ee=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{B(),A("update:modelValue",null,D),A("change","",D),A("clear","")},Y=(0,t.computed)(()=>s.clearable&&!c.value&&!p.value),G=(0,t.computed)(()=>{let D=ke(y.value)>0;return s.clearable&&D&&f.value}),F=D=>{G.value?oe(D):x()},te=(0,t.computed)(()=>G.value&&Y.value?i:a),U=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(g.value==="on"&&(p.value||c.value))return r(y.value,d.slots);const D={class:N.value,style:P.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:x,onFocus:R,onBlur:z};u&&(D.disabled=!0);const O=[],j=(0,t.h)("input",D);O.push(j);const X=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(X.push(K),I.value){const ie=(0,t.h)("view",{class:ee.value},[s.unit]);X.push(ie)}const _=(0,t.h)("view",{class:W.value},{default:()=>X});O.push(_);const $={default:()=>O};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,xn);E.visible=H.value,E["onUpdate:visible"]=M,E["default-value"]=V.value,E.onChoose=q;const L={};if(d.slots.btn){const ie=d.slots.btn();L.btn=()=>ie}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 Z=(0,t.h)(o,E,L);$.hide=()=>[Z];const le={...tt(s,xn,qi),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),l(le,$)}}}}var{componentName:Jm,create:e0,scope:t0}=J("calendar-item"),n0=e0(Zm(Jm,t0,rl,De,Pe,{CloseIcon:ae.CircleClose,MarkIcon:ae.Date},!1)),Ao=n0,l0={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 o0(e,{CheckNormal:n,Checked:o}){return{props:{...l0},setup(l,{emit:r,slots:i}){const a=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>a.label.value===l.label),d=(0,t.computed)(()=>a.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const w=ue(l.iconSize),b=l.checkedIcon??u.radio.Checked??o;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(b,{width:w,height:w,class:k})}}else{if(i.icon)return i.icon();{const w=ue(l.iconSize),b=l.icon??u.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)(b,{width:w,height:w,class:k})}}},c=()=>{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?.())},g=()=>{s.value||l.disabled||l.readonly||a.updateValue(l.label)},A=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${A?`${e}--reverse`:""}`,onClick:g},[l.shape=="button"?p():A?[c(),h()]:[h(),c()]])}}}var{componentName:a0,create:r0}=J("radio"),i0=r0(o0(a0,{CheckNormal:ae.CheckNormal,Checked:ae.CheckChecked})),il=i0,{componentName:Sr,create:s0}=J("radio-group"),u0=s0({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:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),l(),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Sr} ${Sr}--${e.direction}`,style:a},r.default?.())}}}),sl=u0;function kr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(vn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Ot(e,i)===o)return r}return-1}function vn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function c0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function d0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var f0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function m0(){return new f0(ct())}function p0(e){return{text:e,value:e}}var Pi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},h0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},v0={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={...ge,...be,...Pi,...h0,...v0};function y0(e,n,o,l,r,i){return{props:g0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:g}=Te(a),{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 a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),b=m0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(a.sourceFilter):f.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,T])=>{if(V){const N=await b.load("radio",V,T);N.length>0?typeof N[0]=="string"?f.value=N.map(C=>p0(C)):f.value=N:f.value=[]}},{immediate:!0});let S=(0,t.ref)(-1);(0,t.watch)([()=>a.modelValue,()=>m.value],async([V,T])=>{S.value=kr(a,T,V,a.valueType),A("setValue",V)},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;if(S.value===-1)return null;const V=m.value[S.value];return Ot(a,V)}),v=V=>{let T=null,N=null;if(m.value.length>0){let C=kr(a,m.value,V,"value");S.value=C,C>=0&&(N=m.value[C],a.valueType==="text"?T=vn(a,N):a.valueType==="item"?T=N:T=Ot(a,N))}else T=V;A("update:modelValue",T),A("change",T,N)},y=()=>{let V=null,T=null;if(m.value.length>0&&S.value!==-1){let N=m.value[S.value];a.valueType==="text"?V=vn(a,N):a.valueType==="item"?V=N:V=Ot(a,N)}A("update:modelValue",V),A("change",V,T)};if(k({clear(){S.value!==-1&&(S.value=-1,y())},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const T=[],N=ye(a,Pi);return m.value.forEach((C,P)=>{const H=Ot(a,C),x=c0(a,C);let M={...N,label:H,disabled:x};const q=d0(a,C,P);M={...M,...q},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const R={};if(u.slots.icon&&(R.icon=u.slots.icon),u.slots.checkedIcon&&(R.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const W=u.slots.text(C);R.default=()=>[W]}else{const W=vn(a,C);R.default=()=>W}let z=(0,t.h)(i,M,R);T.push(z)}),T};return()=>{if(g.value==="on"&&(p.value||h.value))return l(B.value,u.slots,m.value);const T=V(),N=(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>T}),C={default:()=>N};C.label=u.slots.default,C.prepend=u.slots.prepend,C.append=u.slots.append,C.fixedPreTip=u.slots.fixedPreTip,C.fixedTip=u.slots.fixedTip;const P={...ye(a,be,ge),ref:s};return a.prop&&(P.prop=`${a.prop}_item`),o(P,C)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B,"update:modelValue":v},{default:()=>V})}}}}var{componentName:b0,create:S0,scope:k0}=J("radio-item"),w0=S0(y0(b0,k0,De,Pe,sl,il)),Bo=w0,C0={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"}},N0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:C0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=On(),{slots:d}=i,h=(0,t.inject)("parent",null),c=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,B=>{c.partialSelect=B});const p=(0,t.computed)(()=>!!h),g=(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,v)=>{k="click",a("update:modelValue",B),a("change",B,v)};(0,t.watch)(()=>r.modelValue,B=>{k=="click"?k="":a("change",B)});const b=()=>{const B=[];if(c.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const v=ue(r.iconSize),y=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)(y,{width:v,height:v,class:B})}}else if(g.value){if(d.checkedIcon)return d.checkedIcon();{const v=ue(r.iconSize),y=r.checkedIcon??s.checkbox.Checked??o;return B.push("fox-checkbox__icon"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}else{if(d.icon)return d.icon();{const v=ue(r.iconSize),y=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)(y,{width:v,height:v,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 g.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(g.value&&c.partialSelect){c.partialSelect=!1,w(g.value,d.default?.()[0].children);return}if(w(!g.value,d.default?.()[0].children),p.value){const v=h.value.value,y=h.max.value,{label:V}=r,T=v.indexOf(V);T>-1?v.splice(T,1):T<=-1&&(v.length<y||!y)&&v.push(V),h.updateValue(v)}}};return(0,t.onMounted)(()=>{p.value&&h.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(r)}),u(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${A.value==="left"?`${e}--reverse`:""}`,onClick:S},[r.shape=="button"?m():[b(),f()]])}}),{componentName:A0,create:B0}=J("checkbox"),T0=B0(N0(A0,{CheckNormal:ae.CheckNormal,Checked:ae.Checked,Indeterminate:ae.CheckDisabled})),ul=T0,{create:V0,componentName:wr}=J("checkbox-group"),x0={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=V0({props:x0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),a=c=>{i.children.push(c)},u=c=>{const p=i.children.findIndex(g=>g===c);p!==-1&&i.children.splice(p,1)},s=c=>{o("update:modelValue",c),o("change",c)},d=c=>{const p=[];c&&i.children.forEach(g=>{g?.disabled||p.push(g?.label)}),o("update:modelValue",p)},h=()=>{o("update:modelValue",i.children.filter(c=>c?.disabled?!1:!e.modelValue.includes(c.label)).map(c=>c.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:a,unlink:u}),(0,t.watch)(()=>e.modelValue,c=>{o("change",c)}),l({toggleAll:d,toggleReverse:h}),()=>{const c={};return e.textAlign&&(c["text-align"]=e.textAlign),(0,t.h)("view",{class:`${wr} ${wr}--${e.direction}`,style:c},r.default?.())}}}),cl=E0;function Cr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(jl(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(gn(e,i)===o)return r}return-1}function jl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gn(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,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var I0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function q0(){return new I0(ct())}function P0(e){return{text:e,value:e}}var M0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Mi={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},z0={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:", "}},R0={...ge,...be,...M0,...Mi,...z0};function L0(e,n,o,l,r,i){return{props:R0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:g}=Te(a),A=Ae((0,t.computed)(()=>a.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 a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),b=q0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(a.sourceFilter):f.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,T])=>{if(V){const N=await b.load("checkbox",V,T);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)([()=>a.modelValue,()=>m.value],async([V,T])=>{const N=[];Array.isArray(V)&&V.forEach(C=>{let P=Cr(a,T,C,a.valueType);P!==-1&&N.push(P)}),!Ee(N,S.value)&&(S.value=N,k("setValue",N))},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;let V=[];return S.value.forEach(T=>{let N=m.value[T];V.push(gn(a,N))}),V}),v=V=>{let T=[],N=[];if(m.value.length>0){const C=[];Array.isArray(V)&&V.forEach(P=>{let H=Cr(a,m.value,P,"value");H!==-1&&C.push(H);const x=m.value[H];N.push(x),a.valueType==="text"?T.push(jl(a,x)):a.valueType==="item"?T.push(x):T.push(gn(a,x))}),S.value=C}else T=V;k("update:modelValue",T),k("change",T,N)},y=(0,t.ref)();if(w({toggleAll:V=>{y.value.toggleAll(V)},toggleReverse:()=>{y.value.toggleReverse()},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const T=[],N=ye(a,Mi);return m.value.forEach((C,P)=>{const H=gn(a,C),x=$0(a,C);let M={...N,label:H,disabled:x};const q=D0(a,C,P);M={...M,...q},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const R={};if(u.slots.icon&&(R.icon=u.slots.icon),u.slots.checkedIcon&&(R.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(R.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const W=u.slots.text(C);R.default=()=>[W]}else{const W=jl(a,C);R.default=()=>W}let z=(0,t.h)(i,M,R);T.push(z)}),T};return()=>{if(g.value==="on"&&(p.value||h.value))return l(B.value,u.slots,m.value,a.separator);const T=V(),N=(0,t.h)(r,{class:`${e}`,ref:y,direction:a.direction,max:a.max,textPosition:a.textPosition,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>T}),C={default:()=>N};C.label=u.slots.default,C.prepend=u.slots.prepend,C.append=u.slots.append,C.fixedPreTip=u.slots.fixedPreTip,C.fixedTip=u.slots.fixedTip;const P={...ye(a,be,ge),ref:s};return a.prop&&(P.prop=`${a.prop}_item`),o(P,C)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:y,direction:a.direction,max:a.max,textPosition:a.textPosition,textAlign:A.value,modelValue:B,"onUpdate:modelValue":v},{default:()=>V})}}}}var{componentName:F0,create:O0,scope:K0}=J("checkbox-item"),U0=O0(L0(F0,K0,De,Pe,cl,ul)),To=U0,Vo={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:H0,create:_0}=J("switch"),j0=_0({components:{Loading1:ae.Loading1},props:{...Vo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=H0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=u=>{if(e.disabled||e.loading)return;i="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{i=="click"?i="":n("change",u)}),{classes:l,style:r,isActive:o,onClick:a}}}),W0={class:"fox-switch-button"};function Y0(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",W0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(a,{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 dl=re(j0,[["render",Y0]]),X0={...ge,...be,...Vo};function Q0(e,n,o,l,r){return{props:X0,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:A}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,g),b=f=>{w.value=f,g("update:modelValue",f,{}),g("change",f,{})};return A({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const f={...ye(i,Vo),disabled:d.value||c.value,value:w.value,"onUpdate:modelValue":b},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};B.label=a.slots.default,B.fixedPreTip=a.slots.fixedPreTip,B.fixedTip=a.slots.fixedTip;const v={...ye(i,be,ge),ref:u};return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,o(v,B)}}}}var{componentName:G0,create:Z0,scope:J0}=J("switch-item"),ep=Z0(Q0(G0,J0,De,Pe,dl)),xo=ep,tp={...ge,...be,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 np(e,n,o,l){return{props:tp,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:a,disabled:u,readonly:s}=Te(r),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value},get props(){return r},context:i,get templateRefProxy(){return a.value}},r.prop??i.attrs.name),{toLocaleRefs:c}=(0,ve.useFoxI18n)(n),p=c(r,["placeholder"]),g=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,x=>{g.value=x,d("change",x)});const A=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&me(g.value),"is-disabled":u.value,"is-readonly":s.value})),w=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),b=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),f=(0,t.computed)(()=>!me(r.modelValue)||i.slots.main?!0:!!me(r.desc)),m=(0,t.computed)(()=>me(g.value)?p.placeholder.value:g.value),S=(0,t.computed)(()=>!me(r.desc)||i.slots.sub),B=(0,t.computed)(()=>({[`${e}__sub`]:!0})),v=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),y=()=>{d("focus",g.value)},V=()=>{d("blur",g.value)},T=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":s.value})),N=(0,t.computed)(()=>ke(r.unit)>0),C=x=>{u.value==!0||s.value==!0||d("click")},P=(0,t.computed)(()=>r.icon??o),H=(0,t.computed)(()=>({action:!0}));return h(),()=>{const x=[];if(typeof i.slots.content=="function"){const ee=i.slots.content();x.push(ee)}else{const ee=[];if(f.value){const Y={tabIndex:0,class:k.value,style:b.value,onFocus:y,onBlur:V};let G=null;i.slots.main?G=(0,t.h)("view",Y,[i.slots.main(m.value)]):G=(0,t.h)("view",Y,[m.value]),ee.push(G)}if(S.value){const Y={tabIndex:0,class:B.value,style:v.value,onFocus:y,onBlur:V};let G=null;i.slots.sub?G=(0,t.h)("view",Y,[i.slots.sub(r.desc)]):G=(0,t.h)("view",Y,[r.desc]),ee.push(G)}const oe=(0,t.h)("view",{class:A.value,onClick:C},ee);x.push(oe)}const M=[],q=ue(r.iconSize);let R=i.slots.icon;if(!R){const ee={width:q,height:q,class:["action-icon"]};R=(0,t.h)(P.value,ee)}const z=(0,t.h)("view",{class:H.value,onClick:C},{default:()=>[R]});if(M.push(z),N.value){const ee=(0,t.h)("view",{},[r.unit]);M.push(ee)}const W=(0,t.h)("view",{class:T.value},{default:()=>M});x.push(W);const I={default:()=>x};I.label=i.slots.default,I.prepend=i.slots.prepend,I.append=i.slots.append,I.fixedPreTip=i.slots.fixedPreTip,I.fixedTip=i.slots.fixedTip;const Q={...ye(r,be,ge),ref:a};return r.prop&&(Q.prop=`${r.prop}_item`),l(Q,I)}}}}var{componentName:lp,create:op,scope:ap}=J("link-item"),rp=op(np(lp,ap,ae.ArrowRight,De)),Eo=rp,$o={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:ip,componentName:sp}=J("rate"),up=ip({props:{...$o},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[sp]:!0})),i=g=>{n("update:modelValue",g),n("change",g)},a=(g,A)=>{if(e.disabled||e.readonly)return;let k=0;A===1&&e.modelValue===A||(k=A,e.allowHalf&&g==2&&(k-=.5)),i(k)},u=(g,A,k)=>{let w=0;for(let b=A.value.length-1;b>=0;b--){const f=A.value[b];if(g>f.offsetLeft){k?w=b+(g>f.offsetLeft+f.clientWidth/2?1:.5):w=b+1;break}}return w},s=ot(),d={onTouchStart(g){!e.touchable||e.readonly||s.start(g)},onTouchMove(g){e.touchable&&(s.move(g),s.isHorizontal()&&l.value&&(g.preventDefault(),i(u(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??ae.StarFillN);return{classes:r,...d,onClick:a,toPxString:he,renderIcon:(g,A)=>(0,t.h)(g,A),rateRefs:l,refRandomId:h,slots:o,customIcon:c}}}),cp=["id"],dp={class:"fox-rate-item__icon--full"},fp={key:0,class:"fox-rate-item__icon--half"},mp={key:1,class:"fox-rate-item__icon--half"};function pp(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:a,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+a,style:(0,t.normalizeStyle)(a<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("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:a<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||a>e.modelValue}]),onClick:u=>e.onClick(1,a)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>a?((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:a<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<a?((0,t.openBlock)(),(0,t.createElementBlock)("view",mp,[((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:u=>e.onClick(2,a)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,cp))),128))],34)}var fl=re(up,[["render",pp]]),hp={...ge,...be,...$o};function vp(e,n,o,l,r){return{props:hp,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:A}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,g),b=f=>{w.value=f,g("update:modelValue",f,{}),g("change",f,{})};return A({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const f={...ye(i,$o),disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":b},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};if(a.slots.default){const y=a.slots.default();B.label=()=>y}const v=ye(i,be,ge);return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,v.ref=u,o(v,B)}}}}var{componentName:gp,create:yp,scope:bp}=J("rate-item"),Sp=yp(vp(gp,bp,De,Pe,fl)),Do=Sp,kp=/scroll|auto|overlay/i,zi=window;function wp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Wl(e,n=zi){let o=e;for(;o&&o!==n&&wp(o);){const{overflowY:l}=window.getComputedStyle(o);if(kp.test(l))return o;o=o.parentNode}return n}function Ri(e,n=zi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=Wl(e.value,n))}),o}var Li=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Cp={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 Np(e,n,o){return{props:Cp,emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["pullText","loadText","noMoreText"]),d=(0,t.ref)(),h=Ri(d),c=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),p=(0,t.computed)(()=>({[a]:!0})),g=(0,t.computed)(()=>{const S=[`${a}__container`];return l.containerClass&&S.push(l.containerClass),S}),A=S=>S?S.offsetTop+A(S.offsetParent):0,k=()=>{let S=0,B=0,v="down";if(h.value==window){const y=Li();d.value&&(S=A(d.value)+d.value.offsetHeight-y-window.innerHeight),B=y}else{const{scrollHeight:y,clientHeight:V,scrollTop:T}=h.value;S=y-V-T,B=T}return c.beforeScrollTop>B?v="up":v="down",c.beforeScrollTop=B,r("scroll-change",B),S<=l.threshold&&v=="down"},w=()=>{Qe(()=>{if(!k()||!l.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},b=()=>{h.value&&h.value.addEventListener("scroll",w,l.useCapture)},f=()=>{h.value&&h.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{b(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{f()});const m=(0,t.ref)(!1);return(0,t.onActivated)(()=>{m.value&&(m.value=!1,b())}),(0,t.onDeactivated)(()=>{m.value=!0,f()}),(0,t.watch)(()=>l.modelValue,S=>{S||(c.isInfiniting=!1)}),()=>{const S=(0,t.h)("view",{class:g.value},[i?.default?.()]),B=[];if(c.isInfiniting){let y=i?.loading?.()??null;if(!y){let T=i?.loadingIcon?.()??null;T||(T=(0,t.h)(o,{class:[`${a}__bottom-box__img`]}));const N=(0,t.h)("view",{class:`${a}__bottom-box__text`},[s.loadText.value]);y=[T,N]}const V=(0,t.h)("view",{class:`${a}__bottom-box`},y);B.push(V)}else if(!l.hasMore){let y=i?.finished?.()??null;y||(y=(0,t.h)("view",{class:`${a}__bottom-tips`},[s.noMoreText.value]),B.push(y))}const v=(0,t.h)("view",{class:`${a}__bottom`},B);return(0,t.h)("view",{class:p.value,ref:d},[S,v])}}}}var{componentName:Ap,create:Bp,scope:Tp}=J("infinite-loading"),Vp=Bp(Np(Ap,Tp,ae.Loading)),ml=Vp,{componentName:xp,create:Ep}=J("button"),$p=Ep({components:{Loading:ae.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:o}){const{type:l,size:r,shape:i,disabled:a,loading:u,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!u.value&&!a.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=xp;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`]:a.value,[`${p}--loading`]:u.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,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Dp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{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 xt=re($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,o)=>({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}=Oe({context:r},l.prop),{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),c=(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)},g=(0,t.ref)({}),A=N=>{let C=N.target.value;d.active=!0,g.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))),g.value={},i("blur",C,N)},w=N=>{i("update:modelValue","",N),i("change","",N),i("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const N={};return b.value||(N.display="none"),N}),m=N=>{l.autoblur&&V.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)},v=N=>{i("click-left-icon",l.modelValue,N)},y=(0,t.computed)(()=>({textAlign:l.inputAlign})),V=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&V.value.focus()});const T=()=>{const N=[];if(s.leftin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:v},[s.leftin()]);N.push(x)}const C=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:V,style:y.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:p,onFocus:A,onBlur:k,onkeyup:S}),P=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:m},[C]);N.push(P);const H=[];if(l.clearable){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:w},[(0,t.h)(s?.clear?.()??l.clearIcon??o)]);H.push(x)}if(s.rightin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);H.push(x)}if(H.length>0){const x=(0,t.h)("view",{class:`${e}__input-inner-right`},H);N.push(x)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...c.value,...g.value}},N)};return()=>{const N=[];if(l.label){const P=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);N.push(P)}if(s.leftout){const P=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);N.push(P)}const C=T();if(N.push(C),s.rightout){const P=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);N.push(P)}return(0,t.h)("view",{class:`${e}`,style:h.value},N)}}}),{componentName:Mp,create:zp,scope:Rp}=J("searchbar"),Lp=zp(Pp(Mp,Rp,ae.CircleClose)),pl=Lp,En={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,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(yn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Fi(e,i)===o)return r}return-1}function yn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Nr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Fi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Op(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Kp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Up=class{scope;constructor(e){this.scope=e}async load(e,n,o,l,r,i,a){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof a=="function"&&(s=s.filter(a));let d=(o-1)*l,h=d+l;h>s.length&&(h=s.length);const c=s.slice(d,h);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,r,i]);const u=lt(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(xe(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[n,o,l,r]))}};function Hp(){return new Up(ct())}function _p(e,n,o,l,r,i,a,u,s,d,h){return{props:En,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,p){const{emitEvent:g,exposeApi:A}=Oe({context:p},c.prop),{slots:k}=p,{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),b=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),f=Hp(),m=(0,t.ref)([]),S=(0,t.ref)(0),B=(0,t.ref)(""),v=(0,t.shallowRef)(null),y=(0,t.computed)(()=>{const K={};return c.params&&Object.assign(K,c.params),me(B.value)||(K[`${c.searchKey}`]=B.value),v.value&&Object.assign(K,v.value),K});let V=!0;const T=async(K,_,$)=>{try{if(C.value===!1)return;let E=null;me(B.value)||(E=Z=>{const le=yn(c,Z);if(typeof le=="string"&&le.includes(B.value))return!0;const ie=Nr(c,Z);return!!(typeof ie=="string"&&ie.includes(B.value))});const L=await f.load("actionsheet",K,_,$,y.value,V,E??void 0);V=!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/c.pageSize),(L.totalSize&&m.value.length>=L.totalSize||$<L.page.length)&&(C.value=!1)),N.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),C.value=!0,S.value=0,m.value=[]}setTimeout(()=>{g("loaded-data")},250)},N=(0,t.ref)(!1),C=(0,t.ref)(!0),P=async()=>{if(!c.source){N.value=!1;return}await T(c.source,S.value+1,c.pageSize)};let H=null;(0,t.watch)(B,(K,_)=>{H&&(clearTimeout(H),H=null),me(K)&&!me(_)&&(H=setTimeout(()=>{M()},c.searchDelayTriggerClear))});const x=()=>{C.value=!0,S.value=0,m.value=[],c.source&&P()},M=()=>{x()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([K,_,$])=>{c.source&&x()},{immediate:!0});const q=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),R=(0,t.ref)([]);let z=null;const W=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,K=>{W.value!==K&&(W.value=K),K?z=[...R.value]:z=null});const I=(K,_)=>{const $=[];return Array.isArray(K)||(K=[K]),K.forEach(E=>{let L=Fp(c,_,E,c.valueType);L!==-1&&$.push(L)}),Ee($,R.value)?!1:(R.value=$,!0)};(0,t.watch)([()=>c.modelValue,()=>m.value],([K,_],[$,E])=>{I(K,_)&&ee(Q())},{deep:!0});const Q=()=>{const K=[],_=[],$=[];for(let le of R.value){const ie=m.value[le];_.push(ie);const ce=yn(c,ie);if($.push(ce),c.valueType==="item")K.push(ie);else if(c.valueType==="text")K.push(ce);else{const fe=Fi(c,ie);K.push(fe)}}let E=null,L=null,Z=null;return c.multiple?(E=K,L=$,Z=_):(E=K[0]??null,L=$[0]??null,Z=_[0]??null),{value:E,text:L,item:Z}},ee=K=>{g("update:modelValue",K.value),g("update:text",K.text),g("change",K.value,K.item,K.text)},oe=()=>{z&&(R.value=z)},Y=K=>{const _=R.value.indexOf(K);c.multiple?_===-1?R.value.push(K):R.value.splice(_,1):_===-1?R.value=[K]:R.value=[],(q.value||!c.poppable&&!c.showFooter)&&te()},G=K=>{W.value=K,g("update:visible",K)},F=()=>{const K=()=>{oe(),G(!1)},_=c.beforeMethod??c.beforeClose;if(typeof _=="function"){const $=_("close");yt($)?$.then(E=>{E!==!1&&K()}).catch(()=>{K()}):$!==!1&&K()}else K()},te=()=>{const K=Q(),_=()=>{ee(K),G(!1)},$=c.beforeMethod??c.beforeClose;if(typeof $=="function"){const E=$("confirm",K.value,K.item,K.text);yt(E)?E.then(L=>{L!==!1&&_()}).catch(()=>{_()}):E!==!1&&_()}else _()},U=()=>{let K=b.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:F})])},D=()=>{let K=null;return k.search?K=k.search():K=(0,t.h)(i,{onSearch:x,placeholder:b.seachPlaceholder.value,disabled:c.disabled,modelValue:B.value,"onUpdate:modelValue":_=>{B.value=_}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[K])},O=(K,_,$,E,L)=>{if(k.optionLabel)return k.optionLabel({text:K,checked:_,disabled:$,subText:E,item:L});const Z=[],le=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[K]);if(Z.push(le),E){const ie=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Z.push(ie)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Z)},j=(K,_,$,E)=>k.optionIcon?k.optionIcon({checked:K,disabled:_,iconSize:$,item:E}):K?k.checkedIcon?k.checkedIcon({disabled:_,item:E}):(0,t.h)(c.checkedIcon??u,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:_,item:E}):(0,t.h)(c.icon??a,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}),X=()=>{const K=[];for(let _=0;_<m.value.length;_++){const $=m.value[_],E=yn(c,$),L=Nr(c,$),Z=["fox-actionsheet__list-item"],le={};let ie=Op(c,$),ce=c.iconSize?ue(c.iconSize):null;const fe=Kp(c,$,_);fe&&(ie=ie||fe.disabled,fe.class&&Z.push(fe.class),fe.style&&Object.assign(le,fe.style)),ie=!!(c.disabled||ie);const Ke=R.value.includes(_);ie&&Z.push("is-disabled"),Ke&&Z.push("is-checked");const Ue={class:Z,style:le,key:`${_}`,onClick:()=>{ie||Y(_)}};let ze=[];if(k.option)ze.push(k.option({item:$,checked:Ke,disabled:ie}));else{const Ji=O(E,Ke,ie,L,$);ze.push(Ji);const es=j(Ke,ie,ce,$);ze.push(es),c.textPosition==="right"&&ze.reverse()}const $t=(0,t.h)("view",Ue,ze);K.push($t)}return K},ne=()=>{let K=[];if(k.buttons)K=k.buttons();else{const _=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:te,disabled:c.disabled},{default:()=>b.confirmText.value});K.push(_)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[K])};return A({search:async(K=null,_=!0)=>{v.value=K&&(0,t.toRaw)(K),(0,t.triggerRef)(v),_&&(C.value=!0,S.value=0,m.value=[]),(0,t.nextTick)(()=>{P()})},clear:()=>{C.value=!0,S.value=0,m.value=[]},confirm:()=>{te()},cancel:()=>{F()}}),()=>{const K=[];if(c.showHeader){const ie=U();K.push(ie)}if(c.showSearchbar){const ie=D();K.push(ie)}let _=null;if(k.content)_=k.content();else{const ie=X();_=(0,t.h)(l,{hasMore:C.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":ce=>{N.value=ce},onLoadMore:P},{default:()=>ie})}const $={};c.optionsHeight&&($.height=c.optionsHeight);const E={"fox-actionsheet__list":!0};c.poppable||(E["fox-actionsheet__list--inner"]=!0);const L=(0,t.h)("view",{class:E,style:$},[_]);if(K.push(L),c.showFooter&&!q.value){const ie=ne();K.push(ie)}const Z=(0,t.h)("view",{class:"fox-actionsheet"},K);if(!c.poppable)return Z;const le=["fox-actionsheet__popup"];return c.popClass&&le.push(c.popClass),(0,t.h)(o,{popClass:le.join(" "),visible:W.value,closeable:!1,"onUpdate:visible":G,position:c.position,round:"round",onClickOverlay:F,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>Z})}}}}var{componentName:jp,create:Wp,scope:Yp}=J("actionsheet-pane"),Xp=Wp(_p(jp,Yp,we,ml,xt,pl,ae.CheckNormal,ae.Checked,ae.Close,ae.Search2,!1)),hl=Xp,Oi={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={...ge,...be,...Oi,...En};function Gp(e,n,o,l,r,i,a,u){return{props:Qp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:A,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=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,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)(""),y=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":A.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const j={};return N.value&&(j["text-align"]=N.value),j}),P=(0,t.ref)(!1),H=()=>{P.value=!0},x=j=>{P.value=j},M=j=>{B.value=j,w("update:modelValue",j)},q=(j,X)=>{w("change",j,X)},R=j=>{let X=j.target.value;S.value=!0,w("focus",X,j)},z=j=>{setTimeout(()=>{S.value=!1},0);let X=j.target.value;s.maxLength&&X.length>Number(s.maxLength)&&(X=X.slice(0,Number(s.maxLength))),w("blur",X,j)},W=j=>{v.value=j,w("update:text",j)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":A.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),ee=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),Y=j=>{B.value="",w("update:modelValue","",j),w("change","",j),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!A.value),F=(0,t.computed)(()=>ke(B.value)>0&&S.value),te=j=>{F.value?Y(j):H()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0})),O=(0,t.ref)(null);return b({search:j=>{O.value&&O.value.search(j)},clear:()=>{O.value&&O.value.clear},confirm:j=>{O.value&&O.value.confirm()},cancel:()=>{O.value&&O.value.cancel()},setDisabled:j=>{c.value=j},setReadonly:j=>{g.value=j}}),()=>{if(k.value==="on"&&(A.value||p.value))return l(y.value,d.slots);const j={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(j.disabled=!0);const X=[],ne=(0,t.h)("input",j);X.push(ne);const K=[],_=(0,t.h)(U.value,{class:["action-icon"]}),$=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[_]});if(K.push($),Q.value){const ce=(0,t.h)("view",{class:oe.value},[s.unit]);K.push(ce)}const E=(0,t.h)("view",{class:I.value},{default:()=>K});X.push(E);const L={default:()=>X};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 Z=ye(s,En);Z.ref=O,Z.class=s.actionSheetClass,Z.disabled=p.value||A.value,Z.visible=P.value,Z["onUpdate:visible"]=x,Z.modelValue=B.value,Z["onUpdate:modelValue"]=M,Z.text=v.value,Z["onUpdate:text"]=W,Z.onChange=q,Z.poppable=!0,Z["text-position"]=s.textPosition;const le=(0,t.h)(a,Z,{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=()=>[le];const ie={...tt(s,Oi,En),ref:h};return s.prop&&(ie.prop=`${s.prop}_item`),o(ie,L)}}}}var{componentName:Zp,create:Jp,scope:eh}=J("actionsheet-item"),th=Jp(Gp(Zp,eh,De,Pe,ae.CircleClose,ae.ArrowRight,hl)),Io=th,qo={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:nh,create:lh}=J("input-number"),oh=lh({components:{Minus:ae.Minus,Plus:ae.Plus},props:{...qo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const g=nh;return{[g]:!0,[`${g}--disabled`]:e.disabled}}),l=g=>Number(g).toFixed(Number(e.decimalPlaces)),r=g=>{const A=g.target;n("update:modelValue",A.valueAsNumber,g)},i=(g,A)=>{let k=l(g);n("update:modelValue",k,A),n("change",k,A)},a=(g=Number(e.modelValue))=>g<Number(e.max)&&!e.disabled,u=(g=Number(e.modelValue))=>g>Number(e.min)&&!e.disabled,s=g=>{n("reduce",g),u()?i(Number(e.modelValue)-Number(e.step),g):n("overlimit",g,"reduce")},d=g=>{n("add",g),a()?i(Number(e.modelValue)+Number(e.step),g):n("overlimit",g,"add")},h=g=>{e.disabled||e.readonly||n("focus",g)},c=g=>{if(e.disabled||e.readonly)return;let A=g.target.valueAsNumber;A<Number(e.min)?A=Number(e.min):A>Number(e.max)&&(A=Number(e.max)),i(A,g),n("blur",g)},p=g=>{let A=Number(g);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 g=p(e.modelValue);g!==Number(e.modelValue)&&i(g,{})}),{classes:o,change:r,blur:c,focus:h,add:d,addAllow:a,reduce:s,reduceAllow:u,toPxString:he}}}),ah=["min","max","disabled","readonly","value"];function rh(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Minus"),u=(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)(a,{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)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var vl=re(oh,[["render",rh]]),ih={...ge,...be,...qo};function sh(e,n,o,l,r){return{props:ih,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:A}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!c.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.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=qe(i,"modelValue",null,g),b=S=>{w.value=S,g("update:modelValue",S,{}),g("change",S,{})},f=S=>{g("add",S)},m=S=>{g("reduce",S)};return A({setDisabled:S=>{s.value=S},setReadonly:S=>{h.value=S}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const S={"left-icon":a.slots["left-icon"],"right-icon":a.slots["right-icon"]},B=ye(i,qo),v=(0,t.h)(r,{...a.attrs,...B,disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":b,onAdd:f,onReduce:m},S),y=[];y.push(v);const V={default:()=>y};V.label=a.slots.default,V.fixedPreTip=a.slots.fixedPreTip,V.fixedTip=a.slots.fixedTip;const T={...ye(i,be,ge),ref:u};return i.prop&&(T.prop=`${i.prop}_item`),T["content-class"]=k.value,o(T,V)}}}}var{componentName:uh,create:ch,scope:dh}=J("input-number-item"),fh=ch(sh(uh,dh,De,Pe,vl)),Po=fh,mh={...bo,...So,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ph(e,n,o,l){return{props:mh,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),{slots:s}=i,d=e,h=(0,t.computed)(()=>{const b=[`${d}`];return r.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),c=(0,t.computed)(()=>{const b={};if(r.width){const f=he(r.width);f&&(b.width=f)}if(r.height){const f=he(r.height);f&&(b.height=f)}return b}),p=(0,t.computed)(()=>[`${d}__bar`]),g=(0,t.computed)(()=>[`${d}__container`]),A=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,b=>{A.value!==b&&(A.value=b)});const k=b=>{a("change",b)},w=b=>{A.value!==b&&(A.value=b,a("update:modelValue",b))};return u({}),()=>{const{getChildren:b}=Yn(s.default),f=b(),m=[];if(Array.isArray(r.data))m.push(...r.data);else for(let N=0;N<f.length;N++){const C=f[N].props??{},P={text:C.label??"",value:C["pane-key"]??C.paneKey??""};m.push(P)}const S={};for(let N in s)N!=="default"&&(S[N]=s[N]);const B=ye(r,bo);Object.assign(B,{prop:null,data:m,class:p.value,modelValue:A.value,direction:r.direction,onChange:k,"onUpdate:modelValue":w});const v=(0,t.h)(o,B,S),y={default:()=>f},V=ye(r,So);Object.assign(V,{prop:null,class:g.value,modelValue:A.value,onChange:k,"onUpdate:modelValue":w});const T=(0,t.h)(l,V,y);return(0,t.h)("view",{class:h.value,style:c.value},[v,T])}}}}var{create:hh,componentName:vh,scope:gh}=J("tabs-frame"),yh=hh(ph(vh,gh,an,rn)),Mo=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 Sh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ar(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Br(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function kh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Tr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Vr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Tl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var wh=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function Ch(){return new wh(ct())}function Nh(e,n,o,l){return{props:bh,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=e,d=Ch(),h=(0,t.ref)([]),c=(0,t.computed)(()=>h.value.filter(Y=>kh(r,Y)!==!1)),p=(0,t.ref)(-1),g=()=>{const Y=r.modelValue,G=c.value.findIndex(F=>Ar(r,F)===Y);p.value!==G&&(p.value=G,r.scroll&&ee(G,!1))};(0,t.watch)([()=>r.modelValue,c],()=>{g()});const A=Y=>p.value===Y,k=Y=>{if(Y<0&&Y>=c.value.length)return!1;const G=c.value[Y],F=(Tl(r,G,Y)??{}).status??Bl(r,G);return A(Y)||F},w=(0,t.computed)(()=>{const Y={[s]:!0};return r.mode?Y[`is-${r.mode}`]=!0:r.direction&&(Y[`is-${r.direction}`]=!0),r.scroll&&(Y["is-scroll"]=!0),Y}),b=(0,t.computed)(()=>({})),f=(Y,G,F,te,U)=>{const D={[`${s}__step`]:!0};return U&&(D[`${U}`]=!0),D[`${m.value}`]=!0,te&&(D["is-doit"]=!0),Y===p.value?D["is-active"]=!0:G==="done"?D["is-done"]=!0:G==="error"?D["is-error"]=!0:G==="half"?D["is-half"]=!0:F?D["is-disabled"]=!0:D["is-normal"]=!0,D},m=(0,t.computed)(()=>{let Y=r.align;if(!Y){if(r.mode==="simple")return"start";r.direction==="vertical"?Y="start":Y="center"}return Y}),S=(Y,G={})=>{const F={...G};if(m.value==="start"&&Y===c.value.length-1)F.flex="0 0 auto";else if(r.step){const te=typeof r.step=="number"||qn(r.step)?he(r.step):r.step;r.direction==="vertical"?F.height=te:F.width=te}else F.flex="1 1 100%";return F},B=(Y,G)=>{let F={};if(G<c.value.length-1){const te=G+1;k(G)&&k(te)?r.direction==="vertical"?F.height="100%":F.width="100%":F.opacity="0"}return F},v=Y=>c.value.length-1===Y,y=(Y,G)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&G>p.value||p.value===G)return;const F=p.value,te=G;p.value=G,r.scroll&&ee(G,!1);const U=Ar(r,Y);a("update:modelValue",U),a("change",U,{fromIndex:F,currentIndex:te,item:Y,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy})},V=(0,t.ref)(!0),T=async(Y,G)=>{try{const F=await d.load("stesbar",Y,G);Array.isArray(F)&&(h.value=F),V.value=!1}catch(F){console.error("[FoxUI] Load StepsBar Data Fail",F),h.value=[]}setTimeout(()=>{a("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([Y,G])=>{Y&&T(Y,G)},{immediate:!0}),u({});const N=(Y,G,F,te,U,D)=>{const O=[];let j=null;if(!D)if(i.slots.icon)j=i.slots.icon({item:Y,index:G,status:te});else if(te==="done"){const X={};r.iconSize&&(X.width=r.iconSize,X.height=r.iconSize),j=(0,t.h)(r.icon??o,X)}else j=(0,t.h)("span",{},[F??`${G+1}`]);return j&&O.push(j),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{a("click",{item:Y,index:G}),!U&&y(Y,G)}},O)},C=(Y,G,F)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:B(Y,G)})]),P=()=>{let Y=null;if(i.slots.markIcon)Y=i.slots.markIcon();else{const G={};r.iconSize&&(G.width=r.markIconSize,G.height=r.markIconSize),Y=(0,t.h)(r.markIcon??l,G)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[Y])},H=(Y,G,F,te,U,D)=>{const O=[];if(!v(G)){const X=C(Y,G,te);O.push(X)}const j=N(Y,G,F,te,U,D);return O.push(j),(0,t.h)("view",{class:"fox-steps-bar__head"},O)},x=(Y,G,F,te)=>{let U=null;return i.slots.main?U=i.slots.main({item:Y,index:G,status:F}):U=Sh(r,Y),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{a("click",{item:Y,index:G}),!te&&y(Y,G)}},[U])},M=(Y,G,F)=>{let te=null;return i.slots.sub?(te=i.slots.sub({item:Y,index:G,status:F}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[te])):null},q=(Y,G)=>{const F=Tl(r,Y,G)??{},te=F.status??Bl(r,Y);let U=Br(r,Y);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Tr(r,Y);F.doit===!0&&(D=!0);const O=F.label??Vr(r,Y),j=[],X=N(Y,G,O,te,U,D);X&&j.push(X);const ne=x(Y,G,te,U);if(ne&&j.push(ne),!v(G)){const Z=C(Y,G,te);Z&&j.push(Z)}const K=[],_=(0,t.h)("view",{class:"fox-steps-bar__head"},j);K.push(_);const $=M(Y,G,te);$&&K.push($);const E=F.class,L=F.style??{};return(0,t.h)("view",{ref:Q(G),class:f(G,te,U,D,E),style:S(G,L)},K)},R=(Y,G)=>{const F=Tl(r,Y,G)??{},te=F.status??Bl(r,Y);let U=Br(r,Y);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Tr(r,Y);F.doit===!0&&(D=!0);const O=F.label??Vr(r,Y),j=[],X=r.layout;for(let _ of X)if(_==="head"){const $=H(Y,G,O,te,U,D);j.push($)}else if(_==="main"){const $=x(Y,G,te,U);j.push($)}else if(_==="sub"){const $=M(Y,G,te);j.push($)}else if(_==="mark"){const $=P();j.push($)}const ne=F.class,K=F.style??{};return(0,t.h)("view",{ref:Q(G),class:f(G,te,U,D,ne),style:S(G,K)},j)},z=(0,t.ref)(),W=(0,t.ref)([]),I=(Y,G)=>{W.value[G]=Y},Q=Y=>G=>{I(G,Y)},ee=(Y,G)=>{const F=z.value,te=W.value;if(!F||!te||!te[Y])return;const U=te[Y];let D=0;r.direction==="vertical"?D=U.offsetTop-(F.offsetHeight-U.offsetHeight)/2:D=U.offsetLeft-(F.offsetWidth-U.offsetWidth)/2,oe(F,D,G?0:.3,r.direction)},oe=(Y,G,F,te)=>{let U=0;const D=te==="horizontal"?Y.scrollLeft:Y.scrollTop,O=F===0?1:Math.round(F*1e3/16);function j(){te==="horizontal"?Y.scrollLeft+=(G-D)/O:Y.scrollTop+=(G-D)/O,++U<O&&He(j)}j()};return()=>{let Y=[];if(r.mode==="simple")for(let F=0;F<c.value.length;F++){const te=c.value[F],U=q(te,F);Y.push(U)}else for(let F=0;F<c.value.length;F++){const te=c.value[F],U=R(te,F);Y.push(U)}const G={ref:z,class:w.value,style:b.value};return Y.length===0&&typeof i.slots.default=="function"&&(Y=i.slots.default()),(0,t.h)("view",G,Y)}}}}var{componentName:Ah,create:Bh,scope:Th}=J("steps-bar"),Vh=Bh(Nh(Ah,Th,ae.Checklist,ae.ArrowRight)),zo=Vh;function xh(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=tl()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=nl(),o=(l,r,i,a)=>{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),xh(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(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,o,l=!1)=>({props:{...Dh},emits:["click"],setup(r,{slots:i,emit:a}){let u=-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}),c=B=>typeof B=="string"&&!qn(B)?B:`${B}px`,p=(0,t.computed)(()=>{const B={};return me(d.top)||(B.top=c(d.top)),me(d.right)||(B.right=c(d.right)),me(d.bottom)||(B.bottom=c(d.bottom)),me(d.left)||(B.left=c(d.left)),me(r.width)||(B.width=c(r.width)),me(r.height)||(B.height=c(r.height)),me(r.color)||(B.color=r.color),me(r.background)||(B.background=r.background),me(r.borderRadius)||(B["border-radius"]=r.borderRadius),me(r.zIndex)||(B["z-index"]=r.zIndex),B}),g=(0,t.computed)(()=>({[`${e}__icon`]:!0})),A=()=>{a("click")},k=(0,t.ref)(null),w=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},b={x:0,y:0},S=$h(B=>{if(!k.value)return;const v=k.value;w(),d.left=v.offsetLeft,d.top=v.offsetTop,v.style.left=`${d.left}px`,v.style.top=`${d.top}px`,v.style.right=null,v.style.bottom=null,b.x=d.left,b.y=d.top,d.width=v.offsetWidth,d.height=v.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!k.value)return;const v=k.value;w();let y=b.x+B.x;y<0&&(y=0),y>u-d.width&&(y=u-d.width);let V=b.y+B.y;V<0&&(V=0),V>s-d.height&&(V=s-d.height),d.left=y,d.top=V,v.style.left=`${y}px`,v.style.top=`${V}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 v=typeof i.default=="function"?i.default():[];if(v&&v.length>0)B=v;else{const y=(0,t.h)(o,{class:g.value});B.push(y)}return(0,t.h)("view",{ref:y=>{k.value=y},class:h.value,style:p.value,onClick:A},B)}}}),{componentName:qh,create:Ph,scope:Mh}=J("floating-button"),zh=Ph(Ih(qh,Mh,ae.Uploader,!1)),Ro=zh,Rh={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 Lh(e,n,o){return{props:{...Rh},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(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=qe(l,"modelValue"),h=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),g=()=>{r("update:modelValue",!d.value)};return()=>{const A=[];if(h.value){const b=(0,t.h)("span",{class:c.value},[h.value]);A.push(b)}const k={class:p.value},w=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(w){const b=(0,t.h)("view",k,[w]);A.push(b)}return l.textPosition==="right"&&A.reverse(),(0,t.h)("view",{class:s.value,onClick:g},A)}}}}var{componentName:Fh,create:Oh,scope:Kh}=J("more-button"),Uh=Oh(Lh(Fh,Kh,ae.RectUp)),Lo=Uh,Hh={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}},_h=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function jh(e,n,o){return{props:{...Hh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:a}){const{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),c=B=>{h.value=B,a("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(v){console.error(v)}if(typeof l.callback=="function")try{l.callback(B)}catch(v){console.error(v)}},g=()=>{p("confirm")},A=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},w=(B,v)=>_h(B)?(v.src=B,(0,t.h)("img",v)):typeof B=="string"?(Array.isArray(v.class)?v.class.push(B):v.class&&typeof v.class=="object"?v[`${B}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${B}`:v.class=B,(0,t.h)(l.tag,v)):(0,t.h)(B,v),b=()=>{const B=[];if(l.icon){const v={class:[`${d}__header-icon`]},y=w(l.icon,v);B.push(y)}if(l.title){const v=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);B.push(v)}if(l.showClose&&l.closeIcon){const v={class:[`${d}__header-close-icon`],onClick:k},y=w(l.closeIcon,v);B.push(y)}return(0,t.h)("view",{class:[`${d}__header`]},B)},f=(B,v)=>{const y=[];if(v){const V=(0,t.h)("view",{class:`${d}__group-title`},[v]);y.push(V)}if(B){const V=[];Array.isArray(B)||(B=[B]);for(let T of B){const N=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:T});V.push(N)}if(V.length>0){const T=(0,t.h)("view",{class:`${d}__group-rows`},V);y.push(T)}}return y.length===0?null:(0,t.h)("view",{class:`${d}__group`},y)},m=()=>{const B=[];if(typeof l.message=="string")B.push(l.message);else if(Array.isArray(l.message))for(let v of l.message)if(typeof v=="string"){const y=f(v);B.push(y)}else{const y=f(v.content,v.title);B.push(y)}else if(typeof l.message=="function"){const v=l.message();B.push(v)}else{const v=l.message;B.push(v)}return(0,t.h)("view",{class:`${d}__body`},B)},S=()=>{const B=[];if(l.showCancelButton){const v={class:[`${d}__footer-button`],style:{},onClick:A};l.cancelButtonClass&&v.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(v.style,l.cancleButtonStyle);const y=(0,t.h)("button",v,[l.cancelButtonText??s.cancelText.value]);B.push(y)}if(l.showConfirmButton){const v={class:[`${d}__footer-button`],style:{},onClick:g};l.confirmButtonClass&&v.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(v.style,l.confirmButtonStyle);const y=(0,t.h)("button",v,[l.confirmButtonText??s.confirmText.value]);B.push(y)}return B.length===0?null:(0,t.h)("view",{class:`${d}__footer`},B)};return()=>{const B=[],v=b();v&&B.push(v);const y=m();y&&B.push(y);const V=S();V&&B.push(V);const T=(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)(o,{popClass:N.join(" "),style:C,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:Wh,create:Yh,scope:Xh}=J("messagebox"),Qh=Yh(jh(Wh,Xh,we)),Gh=Qh,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%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",Jh="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",ev="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",tv="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",nv=new Qn,lv={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},ov=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${nv.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const a=document.querySelector(`#${r}`);a&&a.parentNode?.removeChild(a)};const i=(0,t.createVNode)(Gh,e);n.appendChild(l),(0,t.render)(i,l)},it={show:(e,n,o,l)=>{const r={...lv};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),o&&typeof o=="object"?Object.assign(r,o):(typeof o=="string"&&(r.title=o),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=ev:i==="warning"?r.icon=tv:i==="error"?r.icon=Zh:r.icon=Jh),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=ae.Close),new Promise((a,u)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}a({action:d})},ov(r)})},alert:(e,n,o)=>it.show("alert",e,n,o),confirm:(e,n,o)=>it.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},av=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let a in n)a==="bubbles"?r=!!n[a]:a==="cancelable"?i=!!n[a]:l[a]=n[a];l.initEvent(e,r,i),(o??document).dispatchEvent(l)},rv=new Qn,iv=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),sv=e=>`${e}-${rv.get()}`,uv=Symbol.for("InnerPageScopeKey"),cv=Symbol.for("PageWrapperKey"),dv="FoxLeave",fv="FoxLeaveEnd",mv={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 pv(e,n,o,l){return{props:{...Je,...mv},emits:["update:visible"],setup(r,{attrs:i,slots:a,emit:u}){(0,t.provide)(uv,!0);const s={};(0,t.provide)(cv,s);const d=v=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},c=e,p=v=>{g.value=v,u("update:visible",v)},g=(0,t.ref)(!1),A=(v,y)=>iv(v)?(y.src=v,(0,t.h)("img",y)):typeof v=="string"?(Array.isArray(y.class)?y.class.push(v):y.class&&typeof y.class=="object"?y[`${v}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${v}`:y.class=v,(0,t.h)(r.tag,y)):(0,t.h)(v,y),k=()=>{if(!r.showHeader)return null;const v=[];if(a.header){const y=a.header();v.push(y)}else if(r.title){const y=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);v.push(y)}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},w=()=>{if(!r.showClose)return null;const v={class:[`${c}__close-icon`],onClick:h};return A(r.closeIcon??l,v)};let b=null;const f=v=>{av(fv,{},b)},m=sv(e),S=()=>{p(!0)},B=()=>{if(!b)return;const v=b.querySelector(".fox-overlay");v&&(v.classList.add("overlay-fade-leave-active"),v.classList.add("overlay-fade-leave-to"));const y=b.querySelector(".fox-popup");y&&(y.classList.add(`fox-popup-slide-${r.position}-leave-active`),y.classList.add(`fox-popup-slide-${r.position}-leave-to`),y.addEventListener("animationend",f,{once:!0}),y.addEventListener("transitionend",f,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{b=document.querySelector(`.${m}`),b?.addEventListener(dv,B,{once:!0}),S()}),()=>{const v=[],y=k();y&&v.push(y);const V=w();V&&v.push(V);const T=a.default?a.default():[];Reflect.apply([].push,v,T);const N={[`${c}`]:!0};r.mode&&(N[`${c}--${r.mode}`]=!0);const C=(0,t.h)("view",{class:N},v),P=[`${c}__popup`,m];r.popClass&&P.push(r.popClass),r.position&&P.push(`${c}__popup--${r.position}`);const H={};r.width&&(H.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(H.height=typeof r.height=="number"?`${r.height}px`:r.height);const x=(0,t.h)(o,{...ye(r,Je),popClass:P.join(" "),style:H,visible:g.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":p},{default:()=>C});return(0,t.h)("div",{class:[`${c}__root`,m]},[x])}}}}var{componentName:hv,create:vv,scope:gv}=J("popup-wrapper"),yv=vv(pv(hv,gv,we,ae.Close)),Fo=yv,bv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Sv(e,n,o,l){return{props:{...bv},emits:["update:visible"],setup(r,{emit:i,slots:a}){const u=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(o,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":u},a);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:kv,create:wv,scope:Cv}=J("dropdown"),Nv=wv(Sv(kv,Cv,we,!1)),Oo=Nv,Av={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Bv(e,n){return{inheritAttrs:!1,props:Av,setup(o,l){const{exposeApi:r}=Jr({context:l,props:()=>o.config},o.name);return Ve(o.innerPageScope)||ni(o.innerPageScope),Ve(o.abstractPageScope)||li(o.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Tv,create:Vv,scope:xv}=J("domain-provider"),Ev=Vv(Bv(Tv,xv)),Ko=Ev,$v={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 Dv(e,n){return{inheritAttrs:!1,props:$v,emits:["change"],setup(o,{slots:l,emit:r}){if(et&&window.IntersectionObserver){const i=new WeakMap;let a=new Map;const u=(p,g)=>{if(h===null){a.set(p,{visible:null,callback:g});return}i.has(p)&&h.unobserve(p),i.set(p,{visible:null,callback:g}),h.observe(p)},s=p=>{if(h===null){a.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=o.initialVisibleObserverSize;vu({acquire:()=>{if(o.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let h=null;const c=(p,g,A)=>{h=new IntersectionObserver(k=>{if(r("change",k),o.loadPolicy!=="always")for(let w of k){let b=!1;w.intersectionRatio>0&&(b=!0);const f=i.get(w.target);if(f)try{if(o.loadPolicy==="lazy"&&!b&&f.visible!==null)return;f.visible=b,f.callback(b)}catch(m){console.error(m)}}},{root:p,rootMargin:g,threshold:A}),a.forEach((k,w)=>{i.set(w,k),h?.observe(w)}),a.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([p,g])=>{if(g||!p||h)return;let A=null;typeof p=="string"?A=document.querySelector(p):A=p,A&&c(A,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Iv,create:qv,scope:Pv}=J("rolling-provider"),Mv=qv(Dv(Iv,Pv)),Uo=Mv,{componentName:zv,create:Rv}=J("cell"),Lv=Rv({components:{Right:ae.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 o=(0,t.computed)(()=>{const i=zv;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:o,baseStyle:l}}}),Fv={key:0,class:"fox-cell__icon"},Ov={key:1,class:"fox-cell__title"},Kv={class:"title"},Uv={class:"fox-cell__title-desc"};function Hv(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fv,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ov,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Kv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Uv,(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)(a,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ho=re(Lv,[["render",Hv]]),_v={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function jv(e,n){return{props:{..._v},setup(o,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const a={};return o.color&&(a.color=o.color),o.size&&(a.fontSize=he(o.size)),a});return()=>{const a={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",a,r)}}}}var{componentName:Wv,create:Yv,scope:Xv}=J("icon"),Qv=Yv(jv(Wv,Xv)),_o=Qv,{componentName:Gv,create:Zv}=J("cell-group"),Jv=Zv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Gv]:!0}))}}}),eg={key:1,class:"fox-cell-group__title"},tg={key:3,class:"fox-cell-group__desc"},ng={class:"fox-cell-group__wrap"};function lg(e,n,o,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",eg,(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",tg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ng,[(0,t.renderSlot)(e.$slots,"default")])],2)}var jo=re(Jv,[["render",lg]]),{componentName:og,create:ag}=J("image"),rg=ag({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:ae.Image,ImageError:ae.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const g=og;return{[g]:!0,[`${g}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(null),u=()=>{r.value=new IntersectionObserver(g=>{g.forEach(A=>{A.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),a.value&&r.value.observe(a.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let g={};return e.width&&(g.width=he(e.width)),e.height&&(g.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(g.overflow="hidden",g.borderRadius=he(e.radius)),g}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,g=>{o.isError=!1,o.loading=!0});const h=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},p=g=>{n("click",g)};return{...(0,t.toRefs)(o),imageClick:p,classes:l,styles:d,stylebox:s,error:c,load:h,show:i,imgRef:a}}}),ig=["src","date-src","alt"],sg={key:0,class:"fox-img-loading"},ug={key:1,class:"fox-img-error"};function cg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Image"),u=(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,ig),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",sg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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",ug,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Wo=re(rg,[["render",cg]]),{create:dg}=J("layout"),fg=dg({}),Yo=fg,{componentName:mg,create:pg}=J("col"),hg=pg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=mg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function vg(e,n,o,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 Xo=re(hg,[["render",vg]]),{componentName:gg,create:yg}=J("row"),bg=yg({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=gg;(0,t.provide)("gutter",e.gutter);const o=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var cs=Object.create,zr=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyNames,ms=Object.getPrototypeOf,ps=Object.prototype.hasOwnProperty,Ye=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),vs=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=fs(n),i=0,a=r.length,u;i<a;i++)u=r[i],!ps.call(e,u)&&u!==o&&zr(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=ds(n,u))||l.enumerable});return e},Xe=(e,n,o)=>(o=e!=null?cs(ms(e)):{},vs(n||!e||!e.__esModule?zr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),it=require("@fox-js/validator"),re=require("@fox-js/icons-vue"),he=require("@fox-js/i18n");var pn=window,hs=typeof window<"u";function gs(){return typeof pn<"u"?pn.requestAnimationFrame||pn.webkitRequestAnimationFrame||function(e){pn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Lr(e){hs?cancelAnimationFrame(e):clearTimeout(e)}var Je=gs();function Cn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Be(e),n=Be(n),[e,n]=Gl(Be(e),Be(n)),o==1&&(l==1?e=Sl(e):n=Sl(n));let r=Fr(e,n);return o?o==2?"-"+Be(r):e.length<r.length?Be(r.substring(1)):"-"+Be(Sl(r)):Be(r)}function Sl(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Fr(n,i)}function Be(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Gl(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[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"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Fr(e,n){[e,n]=Gl(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}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 Qt(e,n=0,o=Ne.HALF_EVEN){if(o===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],a=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)+a,s=Qt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Ga(r[1],i,l,o)?(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");a=r[1].substring(0,n);let u=r[1].substring(n);return u&&Ga(u,a,l,o)&&(a=kl(a),a.length>n)?(l?"-":"")+kl(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function Ga(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!o&&l===Ne.FLOOR||o&&l===Ne.CEILING)return!1;if(l===Ne.UP||o&&l===Ne.FLOOR||!o&&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 o=e.length-1,l="";for(let r=o;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 Dl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Pt(e),n=Pt(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=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let a=n.length,u=0,s=[],d=a-1,v="";for(let c=0;c<a;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){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+=u,u=Math.floor(p/10),v=p%10+v,d--}return v=Pt(ys(v,i)),o==1&&(v="-"+v),v}function ys(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 Pt(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 Il(e,n,o=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=Be(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Be(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Be(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let v=e.length-d+r;e=Be(e.substring(0,v)+"."+e.substring(v))}else r==d&&(e=Be(e.replace(".","")))}let i=0,a=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),a>s.length&&(d+=a-s.length,s=s+new Array(a-s.length+1).join("0")),i=d,u="0."+new Array(d).join("0")}for(o=o+2;i<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=Cn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,s=s+"0")}return(l==1?"-":"")+Be(Qt(u,o-2))}function ql(e,n){return e=e.toString(),n=n.toString(),n=Pl(n),Cn(e,n)}function Pl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Za(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ja(e),Ja(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=ql(e,Dl(n,Qt(Il(e,n),0,Ne.FLOOR)));return o+l}function Ja(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(e,n){let o=!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),o=!0),[e,n]=Gl(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]?o?-1:1:o?1:-1;return 0}var nn=class ve{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[o,l]=n.split(/[eE]/);o=Be(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Be(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=ve.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ve.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var a="",u=i;u>0;)u<o?(o=u,u=0):u-=o,a=n.substring(u,u+o)+(u<i-o&&u>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return ve.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ne.HALF_EVEN){if(n=ve.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Qt(n,o,l)}round(n=0,o=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ve(Qt(this.value,n,o))}static floor(n){return n=ve.validate(n),n.indexOf(".")===-1?n:ve.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ve(this.value):new ve(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=ve.validate(n),n.indexOf(".")===-1?n:ve.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ve(this.value):new ve(this.value).round(0,Ne.CEILING)}static add(n,o){return n=ve.validate(n),o=ve.validate(o),Cn(n,o)}add(n){return new ve(Cn(this.value,n.getValue()))}static subtract(n,o){return n=ve.validate(n),o=ve.validate(o),ql(n,o)}subtract(n){return new ve(ql(this.value,n.getValue()))}static multiply(n,o){return n=ve.validate(n),o=ve.validate(o),Dl(n,o)}multiply(n){return new ve(Dl(this.value,n.getValue()))}static divide(n,o,l){return n=ve.validate(n),o=ve.validate(o),Il(n,o,l)}divide(n,o){return new ve(Il(this.value,n.getValue(),o))}static modulus(n,o){return n=ve.validate(n),o=ve.validate(o),Za(n,o)}modulus(n){return new ve(Za(this.value,n.getValue()))}static compareTo(n,o){return n=ve.validate(n),o=ve.validate(o),er(n,o)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=ve.validate(n),Pl(n)}negate(){return new ve(Pl(this.value))}};function Or(e,n){return nn.multiply(`${e}`,`${n}`)}function Zl(e,n,o=8){return nn.divide(`${e}`,`${n}`,o)}var M2=nn.RoundingModes;function Ml(e,n){return e=`${e}`,n=`${n}`,nn.compareTo(e,n)}function Kr(e){return nn.negate(e)}function Pn(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let u=i,s="",d=i.indexOf(".");d!=-1&&(u=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let v;if(l>0){let c="",p=u.split("").reverse();for(let y=0;y<p.length;y++)c+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");s.length==0?v=`${a}${c.split("").reverse().join("")}`:v=`${a}${c.split("").reverse().join("")}.${s}`}else s.length==0?v=`${a}${u}`:v=`${a}${u}.${s}`;return v}function Ur(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var lt=typeof window<"u",Ge=Je;function Te(e){return e==null}var Mn=Array.isArray,bs=e=>Rn(e)==="[object Map]",Ss=e=>Rn(e)==="[object Set]",We=e=>e instanceof Date,Nn=e=>typeof e=="function",_r=e=>typeof e=="string",ks=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Ct=e=>De(e)&&Nn(e.then)&&Nn(e.catch),Hr=Object.prototype.toString,Rn=e=>Hr.call(e),ws=e=>Rn(e)==="[object Object]",jr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Cs(e){return e.__esModule||jr&&e[Symbol.toStringTag]==="Module"}var Ns=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Nt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let u=n[a],s=i[a];if(u!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[a]=Nt(r,d,s)}else s!==void 0&&(n[a]=s)}}return n}var wl=Ns?Promise.resolve():null;function As(e,...n){wl!==null?n&&n.length>0?wl.then(()=>{e(n)}):wl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}var Bs={"[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 An(e){let n=Object.prototype.toString.call(e);return e==null?String(e):Bs[n]||"object"}function Rl(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Jl(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 Wr(e){return e&&typeof e=="object"&&"setInterval"in e}function Yr(e){let n=!!e&&"length"in e&&e.length,o=An(e);return o==="function"||Wr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Xr(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function Ts(e,n=[]){let o=n;return e!=null&&(Yr(Object(e))?Xr(o,typeof e=="string"?[e]:e):o.push(e)),o}function xe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=An(e);if(o!==An(n))return!1;if(o==="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 a=l[i],u=e[a],s=n[a];if(!xe(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!xe(r,i))return!1}return!0}return!1}function zl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function eo(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 Qr(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 o=n.indexOf(".");return o==-1?n.length:o}function Gr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function tr(e,n,o){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(o,"")}function Ll(e,n=!0,o=!0){n?e=tr(e,".",/\./g):e=e.replace(/\./g,""),o?e=tr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Vs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(xe(e,o))return!0}):n.indexOf(e)}function xs(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(xe(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Qe(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}var $s=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);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 Fl(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()},je=(e,n,o)=>Math.min(Math.max(e,n),o);function Bn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function Es(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Oe=Symbol.for("BroadcastKey"),Zr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.exposed=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);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,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:o};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 o=!1;return!n.name||n.name==="*"||n.name==="+"||zl(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...o])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...o])),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(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const i=e.resolve,a=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(a),typeof i=="function"&&i(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):zl(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 a=Reflect.apply(i,null,[...o]);Te(a)||r.push(a)}if(this.exposed&&typeof this.exposed[n]=="function"){const a=Reflect.apply(this.exposed[n],this.exposed,[...o]);Te(a)||r.push(a)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...e},n,...o]);Array.isArray(a)&&a.length>0&&Reflect.apply([].push,r,[...a])}),r}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",a=(...u)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...u)};e.resolve=a}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function ln(e,n,o,l){const r=new Zr(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Kt(e){let n=e?.[Oe];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Oe,null)),n}var Ds=class{error(e,n){const o=Kt(n.exposed);o?o.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Kt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Kt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=Kt(o.exposed),r=n.find(a=>a.required===!0||a.type==="required"&&a.required!==!1),i=e.find(a=>a.required===!0||a.type==="required"&&a.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!1),this.reset(o))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Ht=new Ds;function Is(e){Ht=e}function qs(e){Ht?Object.assign(Ht,e):Ht=e}function Ps(e,n){it.Schema.setValidator(e,n)}function Ms(e){it.Schema.deleteValidator(e)}var Jr=["blur","clear"];function Rs(e){Jr=e}function ei(){return Jr}var ti=["focus","change","setValue"];function zs(e){ti=e}function ni(){return ti}function Ls(e){it.Schema.messages(e)}function Mt(...e){const n=[];return e.forEach(o=>{o.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 Ze=Symbol("ValidateSchemaKey"),li=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(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(Mt(this.attrRules,this.rules)),n=[],o=this.descriptor.context?.attrs??{};for(let r in o){let i=o[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let a=this.getValidator(r);if(a!==null){let u={type:r,validator:a};n.push(u)}}this.attrRules=vn(n);const l=Mt(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 o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Ht;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,o=!1){o?it.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?it.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return it.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Mt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=vn(e):this.rules=vn([e]);const o=Mt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Mt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new it.Schema(o),a=this.proxy??r;return i.validate(r,{context:a}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=a),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function zn(e,n,o){o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string";const l={exposed:e,get $el(){return o.templateRefProxy?.$el},get props(){return o.props},get attrs(){return o.context?.attrs}};if(!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new li(n,o,l)}var Tn=Symbol.for("EventEmitterKey"),oi=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.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 Me(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Vn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function Fs(e,n){const o=Me((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){o(i,r)}}))}function Os(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function to(e,n,o,l=0,r=!0){let i=n,a=0;if(r){const s=e();if(a++,s||a>o)return}const u=()=>{const s=e();a++,!(s||a>o)&&(i+=l,setTimeout(u,i))};setTimeout(u,i)}var et=Symbol("DomainKey"),Ut=Symbol("DataItemsKey"),Ln=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 o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=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 o=this._props[e];if(o!=null)return o}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 o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ks=new Ln;function kt(){return Ks}function ot(){return(0,t.inject)(et,null)}var Cl=Symbol("OriginalDateKey");function no(e,n,o){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(et,null):null;i===null&&(i=kt());const a=n;let u=new Ln(a);u.parent=i;const s=b=>{u?.hasData(Cl)||c(b),u?.set("modelValue",b)},d=()=>u?.getForSelf("modelValue")??null,v=()=>u?.getData(Cl)??null,c=b=>{const m={};Nt(!0,m,(0,t.toRaw)(b)),u.setData(Cl,m)},p=e.props,y=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,b=>{u?.merge(b,y),b.modelValue&&c(b.modelValue)},{immediate:!0}):(u.merge(p,y),p.modelValue&&c(p.modelValue));const N=(b,m)=>{u?.set(b,m)},S=b=>u?.getForSelf(b)??null;if(u.componentPublicExposed[et]=u,(0,t.provide)(et,u),r!==null){const b=(0,t.inject)(Oe,null),m=ln(u.componentPublicExposed,b,a,o);u.broadcast=m,u.componentPublicExposed[Oe]=m,(0,t.provide)(Oe,m),u.componentPublicExposed.broadcast=(h,g,...x)=>{if(m)return Reflect.apply(m.emit,m,[h,g,...x])};const f=(0,t.inject)(Ze,null),k=zn(u.componentPublicExposed,f,{componentName:"",context:e.context});u.validateSchema=k,u.componentPublicExposed[Ze]=k,(0,t.provide)(Ze,k),u.componentPublicExposed[Ut]=new Map,u.componentPublicExposed.validate=async(h=!0)=>{const g=[];let x=null;const B={};let T=!1;if(h===!0)x={name:"*"},T=!0;else if(Array.isArray(h)&&h.length>0){const w=h;x={name:I=>I?w.indexOf(I)!==-1:!1},T=!0}else if(h!=null&&typeof h=="object"){const w=h;if(w.deep!==!1){if(Object.assign(B,w),Array.isArray(w.include)&&w.include.length>0){const I=w.include;x={name:L=>L?I.indexOf(L)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const I=w.exclude;x={name:L=>L?I.indexOf(L)===-1:!1}}else x={name:"*"};T=!0}}if(T&&x){B.deep=!1;const w=m?.emitToChildren(x,"validate",B);w&&Reflect.apply([].push,g,w)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(w=>{let I=[];return w.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(I=[...I,...L.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})};const A=e.context;u.componentPublicExposed.setNameValidateRules=(h,g=!0,x=!1)=>{if(x===!0){Reflect.ownKeys(h).forEach(B=>{let T=String(B);const w={componentName:"",fieldName:T,pureDataValidate:!0,context:A};if(u){const I=ri(u,T,w,m,k);u.componentPublicExposed[Ut].set(T,I);const L=h[T];L&&I.validateSchema.setRule(L)}});return}if(g){const B=Reflect.ownKeys(h);m?.emitToChildren({name:T=>B.includes(T),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",h,!1)}},u.componentPublicExposed.clearValidate=(h=!0)=>{let g=null;const x={};let B=!1;if(h===!0)g={name:"*"},B=!0;else if(Array.isArray(h)&&h.length>0){const T=h;g={name:w=>w?T.indexOf(w)!==-1:!1},B=!0}else if(h!=null&&typeof h=="object"){const T=h;if(T.deep!==!1){if(Array.isArray(T.include)&&T.include.length>0){const w=T.include;g={name:I=>I?w.indexOf(I)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const w=T.exclude;g={name:I=>I?w.indexOf(I)===-1:!1}}else g={name:"*"};Object.assign(x,T),B=!0}}B&&g&&(x.deep=!1,m?.emitToChildren(g,"clearValidate",x))},u.componentPublicExposed.resetFields=h=>{const g=d();if(!g)return;const x={};if(Nt(!0,x,v()??{}),Array.isArray(h))h.forEach(B=>{g[B]=x[B]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(B=>{g[B]=x[B]});else if(h&&Array.isArray(h.exclude)){let B=h.exclude??[];Reflect.ownKeys(x).forEach(T=>{B.includes(T)||(g[T]=x[T])})}else Object.assign(g,x);u?.componentPublicExposed?.clearValidate(h)},u.componentPublicExposed.setModelValue=(h,g)=>{if(!g||g===a)s(h);else{const x={name:g,messagingPolicy:"Once"};m?.emitToChildren(x,"setModelValue",h)}},u.componentPublicExposed.getModelValue=()=>d(),u.componentPublicExposed.setDomainProperty=(h,g)=>{N(h,g)},u.componentPublicExposed.getDomainProperty=h=>S(h),setTimeout(function(){m?.pull()},0)}(0,t.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ut]&&u.componentPublicExposed[Ut].clear(),u?.destroy(),u=null});const C=e.context?.expose;return{domain:u,exposeApi:(b={})=>{Object.assign(u.componentPublicExposed,b),C?.(u.componentPublicExposed)}}}function ai(e,n){let o=(0,t.inject)(et,null);o===null&&(o=kt());let l=new Ln(n);l.parent=o;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,u=>{l?.merge(u,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[et]=l,(0,t.provide)(et,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const a=e.context?.expose;return{domain:l,exposeApi:(u={})=>{Object.assign(l.componentPublicExposed,u),a?.(l.componentPublicExposed)}}}function Ve(e,n,o){const l={},r=n??e.componentName??"";let i=ln(l,(0,t.inject)(Oe,null),r,o);l[Oe]=i,(0,t.provide)(Oe,i),l.broadcast=(c,p,...y)=>i?Reflect.apply(i.emit,i,[c,p,...y]):null;const a=(0,t.inject)(Ze,null);e.fieldName=e.fieldName??r;let u=zn(l,a,e);l[Ze]=u,(0,t.provide)(Ze,u),l.validate=async(c=null)=>{if(!u)return Promise.resolve({pass:!0});const p=[];let y=null;const N={};let S=!1,C=!1;if(c===!0)y={name:"*"},C=!0,S=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const b=c;y={name:m=>m?b.indexOf(m)!==-1:!1},C=!0,S=!0}else if(c&&typeof c=="object"){const b=c,m=b.ignoreDisabled??!0,f=b.ignoreReadonly??!0,k=b.ignoreHidden??!0;m===!0&&e.disabled===!0||f===!0&&e.readonly===!0||k===!0&&Rl(e.templateRefProxy?.$el??e.templateRefProxy)?C=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),C=!0),Object.assign(N,b),S=b.deep??!1}if(C){const b=u?.validate();p.push(b)}if(S&&y){N.deep=!1;const b=i?.emitToChildren(y,"validate",N);b&&Reflect.apply([].push,p,b)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(b=>{let m=[];return b.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=c=>u?.setRule(c),l.setNameValidateRules=(c,p=!1)=>{const y=c[r];y&&u?.setRule(y),p&&i&&i.emitToChildren({name:N=>Reflect.ownKeys(c).includes(N)},"setNameValidateRules",c,!1)},l.clearValidate=(c=!0)=>{if(!u)return;let p=null;const y={};let N=!1,S=!1;if(c===!0)p={name:"*"},S=!0,N=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const C=c;p={name:b=>b?C.indexOf(b)!==-1:!1},S=!0,N=!0}else if(c&&typeof c=="object"){const C=c;(C.ignoreHidden??!0)===!0&&Rl(e.templateRefProxy?.$el??e.templateRefProxy)?S=!1:(Array.isArray(C.include)&&C.include.indexOf(r)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(r),S=!0),Object.assign(y,C),N=C.deep??!1}S&&u?.clear(),N&&p&&(y.deep=!1,i?.emitToChildren(p,"clearValidate",y))};let s=new oi(e.context?.emit);l[Tn]=s,l.triggerEvent=(c,...p)=>{s.emit(c,...p)};const d=Me((c="validate")=>{u&&(c==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ei()).forEach(c=>{s&&s.on(c,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ni()).forEach(c=>{s&&s.on(c,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),l[Ze]=null,u=null,s?.destroy(),l[Tn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const v=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(c,...p)=>{s&&Reflect.apply(s.emit,s,[c,...p])},onEvent:(c,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(c,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(c={})=>{Object.assign(l,c),v?.(l)}}}function ri(e,n,o,l,r){const i={},a=n??"",u={getValue(){const c=e.getForSelf("modelValue");return c?c[a]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,a):!1}};o.fieldName=a,o.validateHandler={getValue(c){return u.getValue()}};let s=zn({},r,o);i.validate=async(c=null)=>{if(!u.isExist())return console.warn(`validate error: field [${a}] not exist`),Promise.resolve({pass:!0});const p=[];let y=!1,N=!1;if(Array.isArray(c)&&c.indexOf(a)!==-1)N=!0,y=!0;else if(c&&typeof c=="object"){const S=c;Array.isArray(S.include)&&S.include.indexOf(a)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(a),N=!0,y=S.deep??!1}else typeof c=="boolean"&&(y=c),N=!0;if(N&&s){const S=s.validate();p.push(S)}if(y){let S=null;const C={};if(c===!0)S={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;S={name:m=>m?b.indexOf(m)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Object.assign(C,b),Array.isArray(b.include)&&b.include.length>0){const m=b.include;S={name:f=>f?m.indexOf(f)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const m=b.exclude;S={name:f=>f?m.indexOf(f)===-1:!1}}else S={name:"*"}}if(S&&d){C.deep=!1;const b=d.emitToChildren(S,"validate",C);Reflect.apply([].push,p,b)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(S=>{let C=[];return S.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(C=[...C,...b.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=c=>s?.setRule(c),i.setNameValidateRules=c=>{const p=c[a];p&&s?.setRule(p)};let d=ln(i,l,a);(0,t.onScopeDispose)(()=>{s=null,d=null});const v=o.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(c={})=>{Object.assign(i,c),v?.(i)}}}function He(e,n){let o={};if(n){const i=(0,t.inject)(Oe,null),a=ln(o,i,n,{});o[Oe]=a,(0,t.provide)(Oe,a)}let l=new oi(e.context?.emit);o[Tn]=l,o.triggerEvent=(i,...a)=>{l.emit(i,...a)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(o,Tn),o=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...a)=>{l&&Reflect.apply(l.emit,l,[i,...a])},onEvent:(i,a)=>{l&&Reflect.apply(l.on,l,[a])},offEvent:(i,a)=>{l&&Reflect.apply(l.off,l,[a])},componentPublicExposed:o,exposeApi:(i={})=>{Object.assign(o,i),r?.(o)}}}var ue=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("px"))?e:`${ce(e,n)}px`:"",Us=ue;function ce(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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(lt){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),u=a.indexOf("px");u>0&&(i=Number(a.substring(0,u)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function _s(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var tt="PageStateKey";function Ue(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function Ol(e,n,o={},l=!0,r=-1,i=-1,a=0,u=0){if(e.headerHeight=ce(o.headerHeight??n.headerHeight??-1),e.headerPadding=Ue(o.headerPadding??n.headerPadding),e.footerHeight=ce(o.footerHeight??n.footerHeight??-1),e.footerPadding=Ue(o.footerPadding??n.footerPadding),e.contentPadding=Ue(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ce(s,i):e.height=ce(i)-ce(a,i)-ce(u,i),e.width=ce(o.width??n.width??0,r)}}function ii(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},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=ce(r.top),l.safeAreaBottom=ce(r.bottom),l.safeAreaLeft=ce(r.left),l.safeAreaRight=ce(r.right));const i=e.get("pageLayout");if(!i)return null;Ol(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const a=(0,t.reactive)(l),u=e.getForParent(tt);u&&(l.height=xn(e,u),l.width=$n(e,u),(0,t.watch)([()=>xn(e,u),()=>$n(e,u)],([d,v])=>{a.height=d,a.width=v}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,v,c=-1,p=-1,y=0,N=0])=>{Ol(a,v,n,s,c,p,y,N)}),e.set(tt,a),a}function Fn(e){return e.get(tt)}function On(e,n){if(n=n??e.get(tt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Kn(e,n){if(n=n??e.get(tt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function xn(e,n){if(n=n??e.get(tt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=On(e,n),l=Kn(e,n),r=ce(n.contentPadding.top??0),i=ce(n.contentPadding.bottom??0);return n.height-o-l-r-i}return 0}function $n(e,n){if(n=n??e.get(tt),n){const o=ce(n.contentPadding.left??0),l=ce(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Hs(e){return!!e.getForParent(tt)}var lo=Symbol.for("InnerPageScopeKey");function si(e){(0,t.provide)(lo,e)}function on(e=!1){return(0,t.inject)(lo,e)}var oo=Symbol.for("AbstractPageScopeKey");function ui(e){(0,t.provide)(oo,e)}function an(e=!1){return(0,t.inject)(oo,e)}function ci(e=!1){const n=an(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function di(e=!1){const n=an(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function fi(e=!1){const n=an(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var wt=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function hn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const r=ot();return r==null?e:o===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let u=i.length-1;u>=0;u--){const s=i[u];if(hn(s,l))return s}const a=e.value;return hn(a,l)?a:null}):(0,t.computed)(()=>{const i=e.value;if(hn(i,l))return i;const a=r.getAll(n);for(let u=0;u<a.length;u++){const s=a[u];if(hn(s,l))return s}return null})}function mi(e){return Ae(e,"readonly",1)}function pi(e){return Ae(e,"disabled",1)}function vi(e){return Ae(e,"browse",1)}function $e(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=pi((0,t.computed)(()=>o.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:o,disabled:l,innerReadonly:r,readonly:mi((0,t.computed)(()=>r.value??e.readonly)),browse:vi((0,t.computed)(()=>e.browse))}}function Re(e,n="modelValue",o=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof o=="function"&&(i=o(r.value));const a=(0,t.ref)(i);return(0,t.watch)(r,u=>{if(typeof o=="function"){const s=o(u);s!==a.value&&(a.value=s,l&&l("setValue",s))}else u!==a.value&&(a.value=u,l&&l("setValue",u))}),a}var hi=new Map,En=new Map,ao=null;function js(e){ao=e}function Ws(){return ao}function mt(){return ao?.()??null}function gi(e,n,o){if(o){let l=En.get(o);l||(l=new Map,En.set(o,l)),l.set(e,n)}else hi.set(e,n)}function at(e,n){let o=null;if(n){let l=En.get(n);l&&(o=l.get(e))}return o||(o=hi.get(e)),o}function Ys(e,n){for(let o in e){const l=e[o];gi(o,l,n)}}function Xs(e){En.delete(e)}function Qs(){return{top:0,left:0,bottom:0,right:0}}function Gs(){return lt?{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 Zs(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return Bn(o)}var Js=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=Zs(l.name,n);e.component(r,l)}});const o=kt();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Me(()=>{const i={...l};this.updateLayout(i,o)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,o)},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,o)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,r=Nt({},Qs(),e.safeAreaInset),i=Gs(),a=Nt({},i.pageLayout,e.pageLayout);n=n??kt(),n.set("safeAreaInset",r),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",a),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){js(e)}getScopeGetter(){return Ws()}setAPI(e,n,o){gi(e,n,o)}getAPI(e,n){return at(e,n)}batchSetAPI(e,n){Ys(e,n)}clearScopeAPI(e){Xs(e)}getRootDomain(){return kt()}};function le(e){const n=`fox-${e}`,o=Bn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(r,i)=>{let a=l.name;i?.componentPrefix&&(a=`${i.componentPrefix}-${l.baseName}`,a=Bn(a)),r.component(a,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var eu=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(_r(l)?o=document.querySelector(l):o=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};Nn(n.wrapper)?i=n.wrapper(o,r):i=n.wrapper;const a=(0,t.createApp)(i,e),u=n.components;return u&&u.forEach(s=>{a.use(s)}),o.appendChild(r),{instance:a.mount(r),unmount:()=>{a.unmount(),o.removeChild(r)}}},yi=(e,n)=>e?(0,t.h)(e,n):"",ge={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}},bi={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}},Si={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},collapseOnClickHeader:{type:[Boolean],requried:!1,default:()=>!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}},ki=[];for(const e in Si)ki.push(e);var tu={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}},nu=(e,n)=>({inheritAttrs:!0,props:{...ge,...bi,...tu},setup(o,l){const r=!!an(!1),i=on(!1),{domain:a,exposeApi:u}=no({props:o,context:l},o.name);if(a){const c=ii(a,o);u({getPageContentHeight:()=>xn(a,c),getPageContentWidth:()=>$n(a,c),getPageHeaderHeight:()=>On(a,c),getPageFooterHeight:()=>Kn(a,c)}),c&&i&&(c.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),v=(c,p=!1)=>{a.componentPublicExposed&&typeof a.componentPublicExposed.setNameValidateRules=="function"&&a.componentPublicExposed.setNameValidateRules(c,!0,p)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,p],[y,N])=>{if(c&&y){const S=(0,t.toRaw)(y),C=(0,t.toRaw)(c),b=C?Reflect.ownKeys(C):[];(S?Reflect.ownKeys(S):[]).forEach(m=>{b.includes(m)||(C[m]=[])}),v(C)}if(p&&N){const S=(0,t.toRaw)(N),C=(0,t.toRaw)(p),b=C?Reflect.ownKeys(C):[];(S?Reflect.ownKeys(S):[]).forEach(m=>{b.includes(m)||(C[m]=[])}),v(C,!0)}},{deep:!0}),(0,t.onMounted)(()=>{if(o.rules){const c=(0,t.toRaw)(o.rules);v(c)}if(o.pureDataRules){const c=(0,t.toRaw)(o.pureDataRules);v(c,!0)}}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:lu,create:ou,scope:au}=le("page"),ru=ou(nu(lu,au)),ro=ru;function io(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Un(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),i=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-a}}var wi={headerbar:{},radio:{},checkbox:{}};function iu(e){Object.assign(wi,e)}function _n(){return wi}var su=(e,n,o,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 a=ci(!1),u=on(!1),s=a?null:ot(),d=s?Fn(s):null,v=_n(),c=e,p=(0,t.computed)(()=>{const V={[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed};return u||(V[`${c}--safe-area-inset-top`]=r.safeAreaInsetTop),V}),y=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),N=Te(r.height)?null:ce(r.height),S=(0,t.computed)(()=>{const V={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return V;if(s&&d){const M=Ue(r.padding??d.headerPadding);if(Object.assign(V,M),Te(N)||(d.headerHeight=N),V.height=d.headerHeight,V.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,V.safeAreaTop>0){const q=ce(M.top??0);V.top=V.safeAreaTop+q,V.height&&V.height>0&&(V.height=V.height+V.safeAreaTop)}return V}if(Te(N)||(V.height=N),r.padding){const M=Ue(r.padding);Object.assign(V,M)}return V}),C=(0,t.ref)(null),b=()=>{if(d&&C.value&&!Jl(C.value)){if(!l){const V=io(C.value);d.headerAllHeight=V.height}return d.headerMounted=!0,!0}return!1},m=Me(b,120);let f=null;(0,t.onMounted)(()=>{a||d&&(to(b,50,5,50,!0),window.ResizeObserver&&C.value&&(f=new window.ResizeObserver(m),f.observe(C.value)))}),(0,t.onUnmounted)(()=>{a||d&&(d.headerMounted=!1,f&&(f.disconnect(),f=null))});const k=(0,t.computed)(()=>{const V={};return a||(S.value.height!==null&&S.value.height!==void 0&&(V.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(V.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(V.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(V.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(V.paddingBottom=`${S.value.bottom}px`)),V}),A=(0,t.computed)(()=>{const V=S.value?.height;return Te(V)||V<0?!0:V>0});function h(){i.emit("back")}function g(){i.emit("click-title")}function x(){i.emit("click-right")}function B(){i.emit("click-right-text")}const T=()=>{if(!r.leftShow)return null;const V=[];if(i.slots.left)V.push(i.slots.left());else{if(i.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:h},[i.slots.leftIcon()]);V.push(M)}else{const M=r.leftIcon??v.headerbar.Left??o,q=(0,t.h)("view",{class:"left-icon",onClick:h},[(0,t.h)(M)]);V.push(q)}if(r.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:h},[r.leftText]);V.push(M)}}return V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},V)},w=()=>{if(!r.rightShow)return null;const V=[];if(i.slots.right)V.push(i.slots.right());else{if(r.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:B},[r.rightText]);V.push(M)}if(i.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:x},[i.slots.rightIcon()]);V.push(M)}else if(r.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:x},[(0,t.h)(r.rightIcon)]);V.push(M)}}return V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},V)},I=()=>{if(!r.titleShow)return null;const V=[],M=i.slots.default?i.slots.default():null;if(M)V.push(M);else{if(r.title){const q=(0,t.h)("view",{class:"title-text"},[r.title]);V.push(q)}if(i.slots.titleIcon){const q=(0,t.h)("view",{class:"title-icon",onClick:g},[i.slots.titleIcon()]);V.push(q)}else if(r.titleIcon){const q=(0,t.h)("view",{class:"title-icon",onClick:g},[(0,t.h)(r.titleIcon)]);V.push(q)}}return V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},V)},L=()=>{const V=[],M=i.slots.bottom?i.slots.bottom():null;return M&&V.push(M),V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},V)};return()=>{if(a||!A.value)return null;const V=[];if(i.slots.all)V.push(i.slots.all());else{const M=[],q=T();q&&M.push(q);const O=I();O&&M.push(O);const P=w();if(P&&M.push(P),M.length>0){const D=(0,t.h)("view",{class:y.value},M);V.push(D)}const j=L();j&&V.push(j)}return V.length===0?null:(0,t.h)("view",{class:p.value,style:k.value,ref:C},V)}}}),{componentName:uu,create:cu,scope:du}=le("header-bar"),fu=cu(su(uu,du,re.Left,!1)),so=fu;function mu(e,n,o=!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=di(!1),a=on(!1),u=i?null:ot(),s=u?Fn(u):null,d=e,v=(0,t.computed)(()=>{const f={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return a||(f[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),f}),c=Te(l.height)?null:ce(l.height),p=(0,t.computed)(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return f;if(u&&s){const k=Ue(l.padding??s.footerPadding);if(Object.assign(f,k),Te(c)||(s.footerHeight=c),f.height=s.footerHeight,f.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,f.safeAreaBottom>0){const A=ce(k.bottom??0);f.bottom=f.safeAreaBottom+A,f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)}return f}if(Te(c)||(f.height=c),l.padding){const k=Ue(l.padding);Object.assign(f,k)}return f}),y=(0,t.computed)(()=>{const f=p.value?.height;return Te(f)||f<0?!0:f>0}),N=(0,t.ref)(null),S=()=>{if(s&&N.value&&!Jl(N.value)){if(!o){const f=io(N.value);s.footerAllHeight=f.height}return s.footerMounted=!0,!0}return!1},C=Me(S,120);let b=null;(0,t.onMounted)(()=>{i||s&&(to(S,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(C),b.observe(N.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,b&&(b.disconnect(),b=null))});const m=(0,t.computed)(()=>{const f={};return i||(p.value.height!==null&&p.value.height!==void 0&&(f.height=ue(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(f.paddingTop=ue(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(f.paddingLeft=ue(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(f.paddingRight=ue(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(f.paddingBottom=ue(p.value.bottom))),f});return()=>{if(i||!y.value)return null;const f=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:N,class:v.value,style:m.value},f)}}}}var{componentName:pu,create:vu,scope:hu}=le("footer-bar"),gu=vu(mu(pu,hu,!1)),uo=gu;function yu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:r}){const i=fi(!1),a=on(!1),u=i?null:ot(),s=(0,t.computed)(()=>({[e]:!0})),d=u?Fn(u):null,v=(0,t.computed)(()=>{const S={};if(i)return S;if(u&&d){if(o.padding){const g=Ue(o.padding);Object.assign(d.contentPadding,g)}const C=On(u,d),b=Kn(u,d);let m="";d.contentHeight?m=`${d.contentHeight}`:m=`${d.height}px`,console.debug("[content]page height:",m),console.debug("[content]header height:",C),console.debug("[content]footer height:",b),console.debug("[content]padding:",d.contentPadding),S.height=m;let f=ce((d&&d.contentPadding&&d.contentPadding.top)??-1);(f>=0||C>0)&&(f=f<0?0:f,S.paddingTop=`${C+f}px`);let k=ce((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(k>=0||b>0)&&(k=k<0?0:k,S.paddingBottom=`${b+k}px`);const A=ce((d&&d.contentPadding&&d.contentPadding.left)??-1);A>=0&&(S.paddingLeft=`${A}px`);const h=ce((d&&d.contentPadding&&d.contentPadding.right)??-1);return h>=0&&(S.paddingRight=`${h}px`),S}if(o.padding){const C=Ue(o.padding);C.left&&(S.paddingLeft=`${C.left}px`),C.top&&(S.paddingTop=`${C.top}px`),C.right&&(S.paddingRight=`${C.right}px`),C.bottom&&(S.paddingBottom=`${C.bottom}px`)}return S}),c=(0,t.ref)(null),p=()=>{if(d&&c.value){const S=Un(c.value);d.contentInnerHeight=S.height,d.contentInnerWidth=S.width}},y=Me(p,120);let N=null;return(0,t.onMounted)(()=>{a||i||(requestAnimationFrame(p),window.ResizeObserver&&c.value&&(N=new window.ResizeObserver(y),N.observe(c.value)))}),(0,t.onUnmounted)(()=>{a||i||N&&(N.disconnect(),N=null)}),()=>i?l.default?.():(0,t.h)(o.tag??"view",{...r,ref:c,class:s.value,style:v.value},l)}}}var{componentName:bu,create:Su,scope:ku}=le("content"),wu=Su(yu(bu,ku)),co=wu,At="GroupStateKey",Ci=Symbol.for("GroupScopeKey");function Hn(){return(0,t.inject)(Ci,!1)}function jn(e=!0){(0,t.provide)(Ci,e)}function Cu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Te(l)||(e[o]=l)})}function Nu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Cu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(At,l),l}function Nl(e,n,o=-1,l=-1,r=!1,i,a,u){const s=e.get(At);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),a||(a=d.maxItemWidth??-1);const v=ce(i),c=ce(a);u||(u=d.type??"grid");const p=()=>{const y=n===""||n===-1,N=ce(n);let S=me(o);const C=ce(l);if(!y){let f=(N-(S-1)*C)/S;for(;c!==-1&&f>c;)S++,f=(N-(S-1)*C)/S;for(;v!==-1&&S>1&&f<v;)S--,f=(N-(S-1)*C)/S}let b=!1;const m=s.layout;m.value.width=n,m.value.column!==S&&(m.value.column=S,b=!0),m.value.gutter!==C&&(m.value.gutter=C,b=!0),m.value.type!==u&&(m.value.type=u,b=!0),b&&(0,t.triggerRef)(m)};if(r)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function Wn(e,n=!1){let o;return n?o=e.getForParent(At):o=e.get(At),o.layout}function Yn(e,n=!1){let o;return n?o=e.getForParent(At):o=e.get(At),o.order}function nr(e,n=1){if(n==="stretch")return-1;const o=me(n);return o===-1?100:100*o/e}function Xn(e,n,o=1,l=0,r){const i={};let a=0;r?a=ce(r):a=nr(n.column,o),a>0&&(i.width=`${a}%`);const u=nr(n.column,l);u>0&&(i["margin-left"]=`${u}%`);const s=ce(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Qn(e,n,o=1,l=0){if(o==="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=me(o);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=me(l)%n.column;let a=(e.index+i)%n.column,u=a+r;return u>n.column?(a=0,u=a+r,e.index=e.index+(n.column-a)+r):e.index=e.index+i+r,i>0?{"grid-column":`${a+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var Ni=Symbol("RollingStateKey");function Au(e){(0,t.provide)(Ni,e)}function Bu(){return(0,t.inject)(Ni,null)}function Kl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Tu(e){let n=Kl(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Kl(o),document.body.removeChild(o)}return n}function Vu(e,n,o){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const a=(l-(r-1)*i)/r;return a>0?`${a}px`:"1fr"}function Ai(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...Ai(o.children)):n.push(o)}),n}function xu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function rn(e){function n(){return Ai(e?.()??[]).filter(xu)}return{getChildren:n}}var $u={...ge,...bi,...Si};function Eu(e,n,o){return{props:$u,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:a}=no({props:l,ignorePropKeys:ki,context:r},l.prop??l.name),u=Nu(i,{type:l.type}),s=Hn();jn(!0);const d=l.rollingDisplay?Bu():null,v=(0,t.ref)(null),c=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Wn(i,!0).value:null),y=(K,ne=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(K,!0,ne)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([K,ne],[F,G])=>{if(K&&F){const E=(0,t.toRaw)(F),$=(0,t.toRaw)(K),z=$?Reflect.ownKeys($):[];(E?Reflect.ownKeys(E):[]).forEach(W=>{z.includes(W)||($[W]=[])}),y($)}if(ne&&G){const E=(0,t.toRaw)(G),$=(0,t.toRaw)(ne),z=$?Reflect.ownKeys($):[];(E?Reflect.ownKeys(E):[]).forEach(W=>{z.includes(W)||($[W]=[])}),y($,!0)}},{deep:!0});const N=e,S=(0,t.computed)(()=>{const K={};if(K.height=M.value,l.width)l.width!=="auto"&&(K.width=ue(l.width));else{const ne=s?Yn(i,!0):null;if(p.value&&ne){if(p.value.type==="grid"){const F=Qn(ne,p.value,l.span,l.offset);Object.assign(K,F)}else if(p.value.type==="flow"){const F=Xn(ne,p.value,l.span,l.offset,l.width);Object.assign(K,F)}}}return K}),C=(0,t.computed)(()=>{const K=u.layout.value.type;return K==="grid"||K==="flow"?{[`${N}--${K}`]:!0,[`${N}--${K}-justify-${l.justify}`]:!0,[`${N}--${K}-align-${l.align}`]:!0,[`${N}--gutter`]:!0}:{[`${N}--${K}`]:!0,[`${N}--gutter`]:!0}}),b=(0,t.computed)(()=>{if(u.layout.value.type==="grid"){let K="";if(l.columnWidth)K=`repeat(auto-fill, ${l.columnWidth})`;else{const ne=Vu(x.value,u.layout.value.column,u.layout.value.gutter);K=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":K}}}),m=(0,t.toRef)(l,"gutter"),f=(0,t.toRef)(l,"column"),k=(0,t.computed)(()=>s||c.value?!0:ye(l.isWrap)),A=[],h=K=>{A.push(K)},g=()=>{let K=A.length;A.splice(0,K)},x=(0,t.ref)(-1),B=K=>{const ne=Un(K).width;ne>0&&ne!==x.value&&(x.value=ne)};Nl(i,x.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([x,f,m],([K,ne,F])=>{u.order.index=0,Nl(i,K,ne,F,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=(0,t.computed)(()=>q.value?l.expandText??"":l.collapseText??""),w=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),I=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),L=(0,t.ref)(),V=(0,t.ref)(),M=(0,t.computed)(()=>O.value||ue(l.height)||""),q=(0,t.ref)(!1),O=(0,t.ref)(""),P=(0,t.ref)(!1);let j=-1;const D=(K,ne=!0)=>{if(Te(K))return;const F=L.value;if(F&&q.value!==K){if(j=j<=0?Tu(F):j,P.value=!0,ne)if(F.style["will-change"]="height",F.ontransitionend=function(){F.ontransitionend=null,this.style["will-change"]="auto",K||(O.value="",P.value=!1)},K){let G=0;l.collapseHeight?G=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(G=V.value.offsetHeight),O.value=`${j}px`,(0,t.nextTick)(()=>{O.value=`${G}px`})}else O.value=`${j}px`;else if(K){let G=0;l.collapseHeight?G=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(G=V.value.offsetHeight),O.value=`${G}px`}else P.value=!1,O.value=`${j}px`;q.value=K,r.emit("update:collapse",K)}};(0,t.watch)(()=>l.collapse,K=>{D(K)});const ee=K=>{r.emit("header-click",K),l.collapseOnClickHeader===!0&&oe()},te=()=>{l.collapseOnClickHeader!==!0&&oe()},oe=K=>{K=K??!q.value,D(K)};a({toggleCollapse:oe,doLayout:()=>{A[0]&&(B(A[0]),Nl(i,x.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Z=null,X=!0;const Q=K=>{if(l.rules){const ne=(0,t.toRaw)(l.rules);y(ne)}if(l.pureDataRules){const ne=(0,t.toRaw)(l.pureDataRules);y(ne,!0)}if(lt&&(K&&!Te(l.collapse)&&D(ye(l.collapse),!1),l.autoLayout&&Array.isArray(A)&&A.length>0)){const ne=A[0];if(B(ne),window.ResizeObserver){const F=Me(()=>B(ne),120);Z=new window.ResizeObserver(F),Z.observe(ne)}}},R=()=>{Z?.disconnect(),Z=null},Y=!c.value||d?.acquire();Y&&(v.value=c.value?!0:null),(0,t.onMounted)(()=>{if(Y&&(Q(X),X=!1),c.value&&d){let K=null,ne=d.initialHeight;d.observe(L.value,F=>{if(F!==v.value)if(F)v.value=!0,q.value||(O.value=""),K=setTimeout(()=>{K=null,v.value!==!1&&(Q(X),X=!1)},100);else{if(K!==null&&clearTimeout(K),v.value=!1,!q.value)if(X)O.value=d.initialHeight;else{let G=Kl(L.value);G<=0?O.value=ne:(O.value=`${G}px`,ne=O.value)}X||R()}})}}),(0,t.onUnmounted)(()=>{Z?.disconnect(),d&&d.unobserve(L.value)});const U=(K="right")=>{const ne=[];if(T.value){const E=(0,t.h)("span",{class:w.value},[T.value]);ne.push(E)}const F={class:I.value},G=(0,t.h)(l.collapseIcon??o,F);return ne.push(G),ne.length>0?(0,t.h)("div",{class:{[`${N}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:te},ne):null},_=(K,ne,F,G)=>{const E={...C.value};if(ne===0&&(E[`${N}__first`]=!0),F>=G-1&&(E[`${N}__last`]=!0),k.value===!1){const $=r.attrs.class;$&&(E[`${$}`]=!0)}return(0,t.h)("div",{ref:h,key:`${ne}`,class:E,style:b.value},K)};return()=>{const K=l.prop??l.name;if(c.value&&v.value!==!0)return(0,t.h)(l.tag||"div",{ref:L,prop:K,class:{[`${N}`]:!0,"is-collapse":P.value},style:S.value},[]);u.order.index=0;const ne=[];let F=0;if(r.slots.header){const z=(0,t.h)("div",{key:`${F++}`,ref:V,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:ee},[r.slots.header()]);ne.push(z)}else{const z=[],W=l.collapsePosition==="left";if(W&&l.showCollapse){const J=U("left");J&&z.push(J)}if(l.title||r.slots.title){if(l.showMark){const J={class:{[`${N}__header-mark`]:!0}};l.markColor&&(J.style={background:l.markColor});const ae=(0,t.h)("div",J);z.push(ae)}if(r.slots.title){const J=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[r.slots.title()]);z.push(J)}else if(l.title){const J=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[l.title]);z.push(J)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!W&&l.showCollapse){const J=U("right");J&&z.push(J)}if(z.length>0){const J=(0,t.h)("div",{key:`${F++}`,ref:V,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:ee},z);ne.push(J)}}g();const{getChildren:G}=rn(r.slots.default),E=G(),$=u.layout.value.type;if($==="grid"){const z=_(E,F++,0,E.length);ne.push(z)}else if($==="flow"){const z=_(E,F++,0,E.length);ne.push(z)}else for(let z=0;z<E.length;z++){const W=E[z],J=_([W],F++,z,E.length);ne.push(J)}return k.value?(0,t.h)(l.tag||"div",{ref:L,prop:K,class:{[`${N}`]:!0,"is-collapse":P.value},style:S.value},[ne]):ne}}}}var{componentName:Du,create:Iu,scope:qu}=le("group"),Pu=Iu(Eu(Du,qu,re.RectUp)),fo=Pu;function Mu(e){return e===window}var Ru=/matrix\((.+)\)/,mo=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Mu(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,u=0,s=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const v=Ru.exec(d);if(v){let c=v[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}r=r.parentNode}return o-=i,l-=a,o+=u,l+=s,{x:o,y:l}},zu=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{}})}},Lu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new zu,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}},jt=new Lu,Bi={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:Fu,create:Ou}=le("price"),Ku=Ou({props:{...Bi},setup(e){const n=(0,t.computed)(()=>({[Fu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>we(e.price)==0?"":Pn(e.price,e.decimalLength,!0,me(e.digits),e.separator));return{classes:n,showSymbol:o,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 o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Uu=["innerHTML"],_u=["innerHTML"];function Hu(e,n,o,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,Uu)):(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,_u)):(0,t.createCommentVNode)("",!0)],2)}var Gn=ie(Ku,[["render",Hu]]),ju={...Bi,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},referenceRect:{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]}},{componentName:Al,create:Wu}=le("hint-text"),Yu=Wu({components:{Price:Gn},props:ju,emits:["update:visible"],setup(e,n){const o=(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),a=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(w,I,L,V,M,q)=>{const O=document.documentElement.clientWidth||document.body.clientWidth,P=document.documentElement.clientHeight||document.body.clientHeight,j=w.split("-");let D=[];j[0]==="top"?D=["top","bottom","right","left"]:j[0]==="bottom"?D=["bottom","top","right","left"]:j[0]==="left"?D=["left","top","bottom","right"]:j[0]==="right"&&(D=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},te=[];for(let oe=0;oe<D.length;oe++){const H=D[oe];if(te[0]=H,j[1]&&(te[1]=j[1]),H==="top"){const Z=I.y-q-e.arrowSize-e.offset;if(Z>=0){ee.top=Z;let X=0;j[1]==="start"?X=I.x:j[1]==="end"?X=I.x+L-M:X=I.x+L/2-M/2;const Q=O-X-M;Q<0?(X+=Q,c.value=-Q):c.value=0,ee.left=X<0?0:X;break}}else if(H==="bottom"){const Z=I.y+V+e.arrowSize+e.offset;if(Z+q<=P){ee.top=Z;let X=0;j[1]==="start"?X=I.x:j[1]==="end"?X=I.x+L-M:X=I.x+L/2-M/2;const Q=O-X-M;Q<0?(X+=Q,c.value=-Q):c.value=0,ee.left=X<0?0:X;break}}else if(H==="left"){const Z=I.x-M-e.arrowSize-e.offset;if(Z>=0){ee.left=Z;let X=0;j[1]==="start"?X=I.y:j[1]==="end"?X=I.y+V-q:X=I.y+V/2-q/2,ee.top=X<0?0:X;break}}else if(H==="right"){const Z=I.x+L+e.arrowSize+e.offset;if(Z+M<=O){ee.left=Z;let X=0;j[1]==="start"?X=I.y:j[1]==="end"?X=I.y+V-q:X=I.y+V/2-q/2,ee.top=X<0?0:X;break}}}return{bestPlacement:te.join("-"),bestInsetRect:ee}},v=(w,I,L=10)=>{if(!lt||I===!1||!w)return;if(e.reference)l.value=mo(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;else if(e.referenceRect){const P=e.referenceRect.left??0,j=e.referenceRect.right??0,D=e.referenceRect.top??0,ee=e.referenceRect.bottom??0;l.value={x:P,y:D},r.value=j-P,i.value=ee-D}const V=s.value?.offsetHeight??0,M=s.value?.offsetWidth??0,{bestPlacement:q,bestInsetRect:O}=d(e.placement,l.value,r.value,i.value,M,V);a.value=q,o.value=O,u.value=!0},c=(0,t.ref)(0),p=Me(()=>{v(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,w=>{y.value=w});const N=(0,t.computed)(()=>y.value&&S.value),S=(0,t.ref)(!0),C=Me(w=>{const I=w[0];I&&(S.value=I.isIntersecting)},10),b=new IntersectionObserver(C);(0,t.watch)([()=>e.message,()=>e.visible],([w,I])=>{setTimeout(()=>{v(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{v(e.message,e.visible)},0),e.reference&&(jt.watch(e.reference,p),b.observe(e.reference))}),(0,t.onBeforeUnmount)(()=>{e.reference&&(jt.unwatch(e.reference,p),b.unobserve(e.reference),b.disconnect())}),e.referenceRect&&(0,t.watch)(()=>e.referenceRect,()=>{v(e.message,e.visible)});const m=(0,t.computed)(()=>{const w={[Al]:!0};return a.value.startsWith("top")?w["is-top"]=!0:a.value.startsWith("right")?w["is-right"]=!0:a.value.startsWith("bottom")?w["is-bottom"]=!0:a.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),f=(0,t.computed)(()=>{const w={};return o.value.top!==null&&(w.top=`${o.value.top}px`),o.value.right!==null&&(w.right=`${o.value.right}px`),o.value.bottom!==null&&(w.bottom=`${o.value.bottom}px`),o.value.left!==null&&(w.left=`${o.value.left}px`),e.autoFit&&(w["min-width"]=`${r.value}px`),w["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),k=(0,t.computed)(()=>{const w=[`${Al}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),A=(0,t.computed)(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),h=(0,t.computed)(()=>({[`${Al}__arrow`]:!0})),g=(0,t.computed)(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,a.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):a.value==="top-start"?(w.left=`${e.arrowOffset+c.value}px`,w.bottom=`-${e.arrowSize}px`):a.value==="top-end"?(w.right=`${e.arrowOffset-c.value}px`,w.bottom=`-${e.arrowSize}px`):a.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):a.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):a.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):a.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):a.value==="bottom-start"?(w.left=`${e.arrowOffset+c.value}px`,w.top=`-${e.arrowSize}px`):a.value==="bottom-end"?(w.right=`${e.arrowOffset-c.value}px`,w.top=`-${e.arrowSize}px`):a.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):a.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):a.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),x=(0,t.computed)(()=>N.value&&e.closeOnClick),B=(0,t.computed)(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:N,tipRef:s,classes:m,styles:f,textClasses:k,textStyles:A,arrowClasses:h,arrowStyles:g,overlayShow:x,overlayStyle:B,onClickOverlay:w=>{w.target===w.currentTarget&&(y.value=!1,n.emit("update:visible",!1))}}}}),Xu=["innerHTML"];function Qu(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},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)(a,{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,Xu))],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 Ti=ie(Yu,[["render",Qu]]),Zn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Ul={},Gu=new Zn,ut=new Map,Wt=e=>{if(e){const n=document.getElementById(e);ut.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of ut.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}ut.clear()}},lr=e=>{e.unmount=Wt;const n=document.getElementById(e.id);if(n){(0,t.render)(null,n);const o=ut.get(e.id);o?e={...Ul,...o,...e}:e={...Ul,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Ti,e),n)}return e.id},or=e=>{e.unmount=Wt;let n=e.id??`hinttext_${Gu.get()}`;e={...Ul,...e},e.id=n,ut.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Ti,e),o),document.body.appendChild(o),n},ar=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Dt={show(e,n,o={},l=!0){if(!ar(n))return;const r=o.id;return r&&ut.has(r)?lr({...o,message:n,reference:e}):(l&&Wt(),or({...o,message:n,reference:e}))},showInRect(e,n,o,l){if(!ar(n))return;const r=o.id;return r&&ut.has(r)?lr({...o,message:n,referenceRect:e}):(l&&Wt(),or({...o,message:n,referenceRect:e}))},hide(e){Wt(e)},install(e){e.config.globalProperties.$hintText=Dt}};function Zu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...Se},emits:["appear","disappear"],setup(r,i){const a=r.prop??i.attrs.name,u=(0,t.ref)(),{exposeApi:s}=Ve({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return u.value}},a),d=ot(),v=Hn();jn(!1);const c=(0,t.computed)(()=>v&&d?Wn(d,!1).value:null),p=e,y=(0,t.ref)(null),N=(0,t.computed)(()=>{const $={[p]:!0,[`${p}__gutter`]:c.value&&c.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:ye(r.hasBorder)};if($[r.errorMarkClass]=!!P.value,$[r.warnMarkClass]=!!q.value,$[r.infoMarkClass]=!!V.value,typeof y.value=="function"){const z=y.value(a);$[z]=!0}else if(typeof y.value=="string"){const z=y.value;$[z]=!0}return $}),S=(0,t.ref)(null),C=(0,t.computed)(()=>{const $={};if(r.width)r.width!=="auto"&&($.width=ue(r.width));else{const z=v&&d?Yn(d,!1):null;if(c.value&&z){if(c.value.type==="grid"){const W=Qn(z,c.value,r.span,r.offset);Object.assign($,W)}else if(c.value.type==="flow"){const W=Xn(z,c.value,r.span,r.offset,r.width);Object.assign($,W)}}}if(typeof S.value=="function"){const z=S.value(a);z&&Object.assign($,z)}else if(S.value&&typeof S.value=="object"){const z=S.value;Object.assign($,z)}return $}),b=(0,t.ref)(null),m=(0,t.computed)({get:()=>b.value??ye(r.isRequired),set:$=>{b.value=$}}),f=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",k=Ae((0,t.toRef)(r,"labelPosition"),"labelPosition",wt.Near),A=(0,t.computed)(()=>k&&k.value==="top"?"top":k&&k.value==="right"?"right":"left"),h=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${A.value}`]:!0})),g=(0,t.computed)(()=>({label:!0,[`label--${A.value}`]:!0})),x=Ae((0,t.toRef)(r,"labelWidth"),"labelWidth",wt.Near),B=(0,t.computed)(()=>x&&x.value?{width:ue(x.value)}:{}),T=(0,t.computed)(()=>({"label--string":!0,"label--required":m.value})),w=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),I=(0,t.computed)(()=>({...r.contentStyle})),L=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired($){m.value=$},setErrorTip($){L.errorTip=$},setErrorIcon($){L.errorIcon=$},setWarnTip($){L.warnTip=$},setWarnIcon($){L.warnIcon=$},setInfoTip($){L.infoTip=$},setInfoIcon($){L.infoIcon=$},setCustomClassName($){y.value=$},setCustomStyle($){S.value=$}});const V=(0,t.computed)(()=>r.infoTip||L.infoTip),M=(0,t.computed)(()=>r.infoIcon||L.infoIcon),q=(0,t.computed)(()=>r.warnTip||L.warnTip),O=(0,t.computed)(()=>r.warnIcon||L.warnIcon),P=(0,t.computed)(()=>r.errorTip||L.errorTip),j=(0,t.computed)(()=>r.errorIcon||L.errorIcon),D=(0,t.computed)(()=>P.value?"error":q.value?"warn":V.value?"info":""),ee=()=>D.value.length>0,te=(0,t.computed)(()=>D.value==="error"?P.value:D.value==="warn"?q.value:D.value==="info"?V.value:""),oe=(0,t.computed)(()=>D.value==="error"?j.value:D.value==="warn"?O.value:D.value==="info"?M.value:null),H=(0,t.computed)(()=>{const $={[`${p}__tip`]:!0,[`${p}__tip--${D.value}`]:!0,[`${p}--animate`]:!0};return D.value==="error"&&r.errorClass?$[`${r.errorClass}`]=!0:D.value==="warn"&&r.warnClass?$[`${r.warnClass}`]=!0:D.value==="info"&&r.infoClass&&($[`${r.infoClass}`]=!0),$}),Z=(0,t.computed)(()=>{const $={};return k&&k.value==="top"||!f()?$["padding-left"]="0px":x&&x.value&&($["padding-left"]=ue(x.value)),$}),X=(0,t.ref)();let Q=null;(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([$,z,W,J])=>{X.value&&($&&!pe(z)?Q?o.show(X.value,z,{...J,id:Q,type:W},!0):Q=o.show(X.value,z,{...J,type:W},!0):Q&&o.hide(Q))});let R=null;const Y=()=>{R||!X.value||(R=new IntersectionObserver($=>{let z=!1;for(let W of $)if(W.intersectionRatio>0){z=!0,z&&i.emit("appear",W);break}z||i.emit("disappear")}),R.observe(X.value))},U=()=>{!R||!X.value||(R.unobserve(X.value),R=null)};(0,t.watch)(()=>ye(r.appearListen),$=>{$?Y():U()}),(0,t.onMounted)(()=>{ye(r.appearListen)&&Y()}),(0,t.onUnmounted)(()=>{U(),Q&&o.hide(Q)});const _=()=>{if(!f())return null;const $=[],z=i.slots?.label?.()??r.label,W=(0,t.h)("div",{class:T.value},[z]);if($.push(W),i.slots.fixedPreTip){const J=i.slots.fixedPreTip();$.push(J)}return(0,t.h)("div",{class:g.value,style:B.value},$)},K=()=>{const $=[];if(i.slots.prepend){const z=i.slots.prepend();$.push(z)}if(i.slots.default){const z=i.slots.default();$.push(z)}if(i.slots.append){const z=i.slots.append();$.push(z)}if(i.slots.fixedTip){const z=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);$.push(z)}return(0,t.h)("div",{ref:X,class:w.value,style:I.value},$)},ne=()=>{const $=oe.value;return $?typeof $=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[$()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)($)]):null},F=()=>{const $=te.value;return $?typeof $=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[$()]):(0,t.h)("div",{class:"fox-item__tip--text"},[$]):null},G=()=>{if(!ee())return null;const $=[],z=ne();z&&$.push(z);const W=F();return W&&$.push(W),(0,t.h)("div",{class:H.value,style:Z.value},$)},E=()=>i.slots?.hide?.()??null;return()=>{const $=[],z=[],W=_();W&&z.push(W);const J=K();J&&z.push(J);const ae=(0,t.h)("div",{class:h.value},z);$.push(ae);const de=G();de&&$.push(de);const fe=E();return fe&&$.push(fe),(0,t.h)("div",{class:N.value,style:C.value,prop:r.prop,ref:u},$)}}}}var{componentName:Ju,create:ec,scope:tc}=le("item"),nc=ec(Zu(Ju,tc,Dt,!1)),sn=nc,Vi={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 lc(e,n){return{props:Vi,setup(o,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=ot(),u=Hn();jn(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=ue(o.width));else if(u&&a){const v=Wn(a,!1),c=Yn(a,!1);if(v.value&&c){if(v.value.type==="grid"){const p=Qn(c,v.value,o.span,o.offset);Object.assign(d,p)}else if(v.value.type==="flow"){const p=Xn(c,v.value,o.span,o.offset,o.width);Object.assign(d,p)}}}return o.gutter&&(d["column-gap"]=ue(o.gutter)),o.wrap&&(d["flex-wrap"]=o.wrap),d});return()=>{const d=[];if(l.slots.default){const{getChildren:v}=rn(l.slots.default),c=v();if(o.divide)for(let p=0;p<c.length;p++){if(p>0){const y=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(y)}d.push(c[p])}else Reflect.apply([].push,d,c)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:oc,create:ac,scope:rc}=le("row-item"),ic=ac(lc(oc,rc)),Jn=ic;function sc(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var uc={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 cc(e,n,o,l=!1){return{props:uc,emits:["click"],setup(r,i){const a=(0,t.ref)(null),u=(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={},k=r.textColor??r.color;return k&&(f.color=k),f}),d=(f,k)=>{let A=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const h=r.highlightFilter;f.indexOf(h)!==-1&&(k.innerHTML=f.replace(new RegExp(h,"g"),`<span>${h}</span>`),k.class["is-highlight"]=!0,A=(0,t.h)(r.tag,k))}else if(typeof r.highlightFilter=="function"){const h=r.highlightFilter(f);h&&(k.innerHTML=h,k.class["is-highlight"]=!0,A=(0,t.h)(r.tag,k))}return A},v=f=>{i.emit("click",f)};let c="";const p=()=>{const f=a.value;if(!f)return;const k=f.clientWidth;sc(f,A=>{const h=f.innerHTML??"";pe(h)||A<k||(c?o?.show(f,h,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(f,h,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{c&&o?.hide(c)};let N=null;const S=f=>{N||(N=setTimeout(()=>{p(),N=null},r.showAfter??0))},C=f=>{N&&(clearTimeout(N),N=null),setTimeout(()=>{y()},r.hideAfter??0)},b=()=>{const f=a.value;f&&(f.addEventListener("mouseover",S),f.addEventListener("mouseleave",C))},m=()=>{const f=a.value;f&&(f.removeEventListener("mouseover",S),f.removeEventListener("mouseleave",C))};return(0,t.onMounted)(()=>{!ye(r.showOverflowTooltip)||!o||b()}),(0,t.onBeforeUnmount)(()=>{!ye(r.showOverflowTooltip)||!o||m()}),()=>{const f={class:u.value,style:s.value,ref:a,onClick:v};let k=null;if(ye(r.numberFormat)&&typeof i.slots.default=="function"){const h=i.slots.default();if(Array.isArray(h)&&h.length===1){const g=h[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const x=me(r.digits),B=me(r.decimalLength),T=ye(r.autoPadding);let w=`${h[0].children}`,I=w.split("").reverse().join("");I=Pn(I,B,T,x,r.separator),w=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(k=d(w,f)),k||(f.innerHTML=w,k=(0,t.h)(r.tag,f))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const h=i.slots.default();if(Array.isArray(h)&&h.length===1){const g=h[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const x=`${h[0].children}`;k=d(x,f),k||(f.innerHTML=x,k=(0,t.h)(r.tag,f))}}}k||(k=(0,t.h)(r.tag,f,{default:i.slots.default}))}if(!r.mark&&!i.slots.mark)return k;const A=[];if(i.slots.mark){const h={[`${e}__mark-wrap`]:!0};r.type&&(h[`${e}__mark-wrap--${r.type}`]=!0);const g={},x=r.color;x&&(g.color=x);const B=(0,t.h)("view",{class:h,style:g,onClick:v},{default:i.slots.mark});A.push(B)}else{const h={[`${e}__mark`]:!0};r.type&&(h[`${e}__mark--${r.type??"default"}`]=!0);const g={},x=r.color;x&&(g["background-color"]=x);const B=(0,t.h)("view",{class:h,style:g,onClick:v});A.push(B)}if(r.divide){const h=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});A.push(h)}return A.push(k),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},A)}}}}var{componentName:dc,create:fc,scope:mc}=le("text"),pc=fc(cc(dc,mc,Dt,!1)),Bt=pc,vc={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 hc(e,n,o=!1){return{props:{...vc},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:a}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),v=(0,t.ref)(0),c=(0,t.ref)(0),p=(0,t.ref)(l.placement),y=(0,t.ref)(!1),N=(0,t.ref)(!1),S=(0,t.ref)(null),C=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,b=(D,ee,te,oe,H,Z,X,Q=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,U=D.split("-");let _=[];Q?U[0]==="top"?_=["top","bottom","right","left"]:U[0]==="bottom"?_=["bottom","top","right","left"]:U[0]==="left"?_=["left","top","bottom","right"]:U[0]==="right"&&(_=["right","top","bottom","left"]):_=[D[0]];const K={top:null,right:null,bottom:null,left:null},ne=[];for(let F=0;F<_.length;F++){const G=_[F];if(ne[0]=G,U[1]&&(ne[1]=U[1]),G==="top"){const E=te-X-l.arrowSize/2-l.offset;if(E>=0){K.top=E;let $=0;U[1]==="start"?$=ee:U[1]==="end"?$=ee+oe-Z:$=ee+oe/2-Z/2;const z=R-$-Z;z<0?($+=z,f.value=-z):f.value=0,K.left=$<0?0:$;break}}else if(G==="bottom"){const E=te+H+l.arrowSize/2+l.offset;if(E+X<=Y){K.top=E;let $=0;U[1]==="start"?$=ee:U[1]==="end"?$=ee+oe-Z:$=ee+oe/2-Z/2;const z=R-$-Z;z<0?($+=z,f.value=-z):f.value=0,K.left=$<0?0:$;break}}else if(G==="left"){const E=ee-Z-l.arrowSize/2-l.offset;if(E>=0){K.left=E;let $=0;U[1]==="start"?$=te:U[1]==="end"?$=te+H-X:$=te+H/2-X/2,K.top=$<0?0:$;break}}else if(G==="right"){const E=ee+oe+l.arrowSize/2+l.offset;if(E+Z<=R){K.left=E;let $=0;U[1]==="start"?$=te:U[1]==="end"?$=te+H-X:$=te+H/2-X/2,K.top=$<0?0:$;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:K}},m=()=>{const D=l.visible,ee=l.autoFit;if(!lt||D===!1)return;if(l.reference){const X=C(),Q=mo(X);s.value=Q.x,d.value=Q.y,v.value=X.offsetWidth,c.value=X.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,v.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=S.value.offsetWidth,oe=S.value.offsetHeight,{bestPlacement:H,bestInsetRect:Z}=b(l.placement,s.value,d.value,v.value,c.value,te,oe,ee);p.value=H,u.value=Z},f=(0,t.ref)(0),k=Me(()=>{m()},10),A=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([D])=>{A.value=D,D?(y.value=D,setTimeout(()=>{m(),N.value=!0},0)):N.value=!1});const h=(0,t.computed)(()=>A.value&&g.value),g=(0,t.ref)(!0),x=Me(D=>{const ee=D[0];ee&&(g.value=ee.isIntersecting)},10),B=new IntersectionObserver(x);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([D,ee],[te,oe])=>{!D&&!ee||(setTimeout(()=>{m()},0),l.autoFit&&(te&&(jt.unwatch(te,k),B.unobserve(te)),D&&(jt.watch(D,k),B.observe(D))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(jt.unwatch(l.reference,k),B.unobserve(l.reference),B.disconnect())});const T=(0,t.computed)(()=>{const D={[e]:!0};return p.value.startsWith("top")?D["is-top"]=!0:p.value.startsWith("right")?D["is-right"]=!0:p.value.startsWith("bottom")?D["is-bottom"]=!0:p.value.startsWith("left")&&(D["is-left"]=!0),D[`is-${l.effect}`]=!0,!N.value&&h.value&&(D["is-opacity"]=!0),N.value&&h.value&&(D["is-show"]=!0),h.value||(D["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(D[`${l.customClass}`]=!0),D}),w=(0,t.computed)(()=>{const D={};return u.value.top!==null&&(D.top=`${u.value.top}px`),u.value.right!==null&&(D.right=`${u.value.right}px`),u.value.bottom!==null&&(D.bottom=`${u.value.bottom}px`),u.value.left!==null&&(D.left=`${u.value.left}px`),l.width&&(D.width=l.width),l.zIndex&&(D["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(D,l.customStyle),D}),I=()=>{A.value=!1,r("update:visible",!1)},L=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:I}):null,V=()=>{let D=null;return i.title?D=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(D=(0,t.h)("div",{class:`${e}__title`},[l.title])),D},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),q=(0,t.computed)(()=>{const D={};return l.showArrow?(D.width=`${l.arrowSize}px`,D.height=`${l.arrowSize}px`,p.value==="top"?(D.left="50%",D.bottom="0",D.transform="translate(-50%, 50%)"):p.value==="top-start"?(D.left=`${l.arrowOffset+f.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):p.value==="top-end"?(D.right=`${l.arrowOffset-f.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):p.value==="right"?(D.left="0",D.top="50%",D.transform="translate(-50%, -50%)"):p.value==="right-start"?(D.left="0",D.top=`${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):p.value==="right-end"?(D.left="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):p.value==="bottom"?(D.left="50%",D.top="0",D.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(D.left=`${l.arrowOffset+f.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(D.right=`${l.arrowOffset-f.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):p.value==="left"?(D.right="0",D.top="50%",D.transform="translate(50%, -50%)"):p.value==="left-start"?(D.right="0",D.top=`${l.arrowOffset}px`,D.transform="translate(50%, -50%)"):p.value==="left-end"&&(D.right="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(50%, -50%)"),D):{display:"none"}}),O=()=>(0,t.h)("div",{class:M.value,style:q.value}),P=()=>{A.value===!1&&(y.value=!1)},j=D=>{if(!S.value||A.value===!1)return;const{relatedTarget:ee}=D;S.value.contains(ee)||(A.value=!1,r("update:visible",!1))};return a({doLayout:m}),()=>{if(!y.value)return null;const D=[],ee=L();ee&&D.push(ee);const te=[],oe=V();if(oe&&te.push(oe),i.default){const Q=i.default();te.push(Q)}const H=O();H&&te.push(H);const Z={ref:S,class:T.value,style:w.value,onAnimationend:P};l.leaveHide&&(Z.onMouseleave=j);const X=(0,t.h)("div",Z,{default:()=>te});return D.push(X),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>D})}}}}var{componentName:gc,create:yc,scope:bc}=le("popover-dialog"),Sc=yc(hc(gc,bc,!1)),el=Sc,rr={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 kc(e,n,o){return{props:{...Vi,...rr},emits:["click"],setup(l,{slots:r}){const{toLocaleRefs:i}=(0,he.useFoxI18n)(n),a=i(l,["moreText"]),u=e,s=(0,t.computed)(()=>({[u]:!0}));function d(k){return k.props||{}}function v(k){return!!d(k).disabled}function c(k){return k.children??[]}const p=(0,t.ref)(),y=(0,t.computed)(()=>p.value?.$el??null),N=(0,t.ref)(!1),S=k=>{N.value=k},C=()=>{N.value=!N.value};function b(k,A){return()=>{A||(N.value=!1,d(k)?.onClick?.())}}function m(k,A){const h=c(k),g=v(k),x=b(k,g),B=[`${u}__dropdown-item`];return g&&B.push("is-disabled"),(0,t.h)("span",{class:B,onClick:x},h)}const f=k=>{const A=l.maxDisplayCount??k.length;if(A>=k.length)return k;const h=[],g=A;for(let I=0;I<g;I++)h.push(k[I]);const x=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),B=(0,t.h)(Bt,{ref:I=>p.value=I,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:C},{default:()=>a.moreText.value,mark:()=>x});l.morePosition==="left"?h.splice(0,0,B):h.push(B);const T=[];for(let I=g;I<k.length;I++){const L=m(k[I],I);T.push(L)}const w=(0,t.h)(el,{placement:l.dropdownPlacement,"onUpdate:visible":S,visible:N.value,reference:y.value,"custom-class":`${u}__popover`},{default:()=>T});return h.push(w),h};return()=>{const{getChildren:k}=rn(r?.default),A=k(),h=f(A);return(0,t.h)(Jn,{...Qe(l,rr),class:s.value},{default:()=>h})}}}}var{componentName:wc,create:Cc,scope:Nc}=le("buttons-item"),Ac=Cc(kc(wc,Nc,re.MoreFilled)),po=Ac,Bc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Tc(e,n){return{props:Bc,setup(o,l){const r=ot(),i=Hn();jn(!1);const a=(0,t.computed)(()=>i&&r?Wn(r,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:a.value&&a.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const v={};if(o.width)o.width!=="auto"&&(v.width=ue(o.width));else{const c=i&&r?Yn(r,!1):null;if(a.value&&c){if(a.value.type==="grid"){const p=Qn(c,a.value,o.span,o.offset);Object.assign(v,p)}else if(a.value.type==="flow"){const p=Xn(c,a.value,o.span,o.offset,o.width);Object.assign(v,p)}}}return v});return()=>{const v={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",v,l.slots.default()):(0,t.h)("div",v)}}}}var{componentName:Vc,create:xc,scope:$c}=le("slot-item"),Ec=xc(Tc(Vc,$c)),vo=Ec;function Ie(e,n={}){return(0,t.h)(sn,e,n)}function Dc(e,n,o,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const a=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let d=0;s&&d<i.length;d++){let v=i[d],c=s.find(p=>p[l]===v);if(!c)break;a.push(c[o])}return a}if(Array.isArray(u))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],v=i[s];const c=d.find(p=>p[l]===v);if(!c)break;a.push(c[o])}else{let s=n;for(let d=0;s&&d<i.length;d++){let v=i[d],c=s.find(p=>p[l]===v);if(!c)break;a.push(c[o]),s=c[r]}}return a}var Ic=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=at(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function qc(){const e=mt();return new Ic(e)}function Pc(e){return e&&e.startsWith("fox-")}var Mc={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 Rc(e,n,o=!1){return{props:Mc,setup(l,{attrs:r,slots:i}){const a=qc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,v])=>{u.value=await a.load(l.sourceType,d,v)},{immediate:!0});const s=(0,t.computed)(()=>{let d="";if(!Array.isArray(u.value)||u.value.length===0)d=l.emptyText;else{let v=Dc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);v.length==0?d=l.emptyText??"":v.length===1?l.optionType=="item"?d=`${l.modelValue}${l.separator}${v[0]}`:d=v[0]:d=v.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 v=l.tag??"span";return typeof v=="object"?(0,t.h)(v,d,{default:()=>s.value}):Pc(v)?(0,t.h)((0,t.resolveComponent)(v),d,[s.value]):(0,t.h)(v,d,[s.value])}}}}var{componentName:zc,create:Lc,scope:Fc}=le("mapping"),Oc=Lc(Rc(zc,Fc,!1)),tl=Oc;function ze(e,n){const o="fox-browse-item";let l=null;if(e.source)l=(0,t.h)(tl,{class:[`${o}__mapping`],source:e.source,modelValue:e.modelValue,separator:e.separator,emptyText:e.emptyText,unit:e.unit},{default:i=>(0,t.h)(Bt,{class:[`${o}__text`]},{default:()=>i.text})});else{const i=e.unit?`${e.modelValue??""}${e.unit}`:`${e.modelValue??""}`;l=(0,t.h)(Bt,{class:[`${o}__text`]},{default:()=>i})}const r={label:n.default,default:()=>l};return(0,t.h)(sn,{class:[o]},r)}var xi={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}},Kc={...ge,...Se,...xi};function Uc(e,n,o,l,r){return{props:Kc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),{toLocaleRefs:S}=(0,he.useFoxI18n)(n),C=S(i,["placeholder"]),b=(0,t.ref)(!1),m=Re(i,"modelValue",null,y),f=e,k=(0,t.computed)(()=>({[f]:!0,disabled:d.value,readonly:c.value})),A=(0,t.computed)(()=>({[`${f}__content`]:!0})),h=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),g=(0,t.computed)(()=>{const te={};return h.value&&(te["text-align"]=h.value),te}),x=te=>{let oe=te.target.value;i.type==="digit"&&(oe=Ll(oe,!0)),i.type==="number"&&(oe=Ll(oe,!1)),i.maxLength&&oe.length>Number(i.maxLength)&&(oe=oe.slice(0,Number(i.maxLength))),m.value=oe,y("update:modelValue",oe,te),y("change",oe,te)};let B=Re(i,"hintText"),T=(0,t.ref)(!1);const w=te=>{let oe=te.target.value;b.value=!0,pe(B.value)||(T.value=!0),y("focus",oe,te)},I=te=>{setTimeout(()=>{T.value&&(T.value=!1),b.value=!1},0);let oe=te.target.value;i.maxLength&&oe.length>Number(i.maxLength)&&(oe=oe.slice(0,Number(i.maxLength))),y("blur",oe,te)},L=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),V=(0,t.computed)(()=>{const te={};return a.slots.append&&!M.value&&!D.value&&(te.display="none"),te}),M=(0,t.computed)(()=>we(i.unit)>0),q=(0,t.computed)(()=>!D.value),O=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!q.value})),P=te=>{m.value="",y("update:modelValue","",te),y("change","",te),y("clear","")},j=(0,t.computed)(()=>ye(i.clearable)&&!d.value&&!c.value),D=(0,t.computed)(()=>{let te=we(m.value)>0;return ye(i.clearable)&&te&&b.value}),ee=(0,t.computed)(()=>({action:!0,hidden:!D.value}));return N({setDisabled:te=>{s.value=te},setReadonly:te=>{v.value=te}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:m.value,unit:i.unit},a.slots);const te={class:A.value,style:g.value,type:i.type,maxlength:i.maxLength,placeholder:C.placeholder.value,disabled:d.value,readonly:c.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:x,onFocus:w,onBlur:I},oe=[],H=(0,t.h)("input",te);oe.push(H);const Z=[];if(j.value){const Y=(0,t.h)(r,{class:["action-icon"]}),U=(0,t.h)("view",{class:ee.value,onClick:P},{default:()=>[Y]});Z.push(U)}if(M.value){const Y=(0,t.h)("view",{class:O.value},[i.unit]);Z.push(Y)}const X=(0,t.h)("view",{class:L.value,style:V.value},{default:()=>Z});oe.push(X);const Q={default:()=>oe};Q.label=a.slots.default,Q.prepend=a.slots.prepend,Q.append=a.slots.append,Q.fixedPreTip=a.slots.fixedPreTip,Q.fixedTip=a.slots.fixedTip;const R={...Qe(i,xi),ref:u,class:k.value,hintText:B.value,hintVisible:T.value};return i.prop&&(R.prop=`${i.prop}_item`),o(R,Q)}}}}var{componentName:_c,create:Hc,scope:jc}=le("input-item"),Wc=Hc(Uc(_c,jc,Ie,ze,re.CircleClose)),ho=Wc;function ir(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function sr(e,n,o=20){return typeof n=="string"&&(n=me(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?ir(Or(`${e}`,`${n}`)):ir(Zl(`${e}`,Kr(`${n}`),20))}function Yc(e,n=-1,o=!1,l=3,r=","){return Pn(e,me(n),o,l,r)}function ur(e,n,o,l,r=!0){if(e==="")return"";if(e=Ur(e),n=me(n),n==1)return e;if(l)e=sr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(me(o)+2,"0"):e=Zl(e,1,me(o)));else{let i=-1*n;e=sr(e,i)}return e}function cr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ye(n.minInclude),r=Ml(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=ye(n.maxInclude),r=Ml(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}var $i={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]}},Xc={...ge,...Se,...$i};function Qc(e,n,o,l,r){return{props:Xc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=(0,t.ref)(!1),C=Re(i,"modelValue",null,y),b=(0,t.ref)("");(0,t.watch)([()=>C.value,()=>i.rates,()=>i.precision],([Q,R,Y])=>{if(pe(Q)){b.value="";return}const U=ur(Q,R,Y,!1);b.value!==U&&(b.value=U)},{immediate:!0});const m=(0,t.computed)(()=>{let Q="";return S.value&&(Q=b.value),Q}),{t:f}=(0,he.useFoxI18n)(n),k=(0,t.computed)(()=>{let Q=i.placeholder??"";return!S.value&&!pe(b.value)?Q=Yc(b.value,i.decimalLength,i.autoPadding,i.digits,i.separator):Q=pe(Q)?f(["placeholder"]):Q,Q}),A=e,h=(0,t.computed)(()=>({[A]:!0,disabled:d.value,readonly:c.value})),g=(0,t.computed)(()=>({[`${A}__content`]:!0,[`${A}__placeholder`]:b.value.length>0})),x=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),B=(0,t.computed)(()=>{const Q={};return x.value&&(Q["text-align"]=x.value),Q}),T=(0,t.ref)(""),w=(0,t.computed)(()=>{let Q=T.value;return pe(Q)&&(Q=i.errorTip??""),Q}),I=(0,t.ref)(""),L=(0,t.ref)(!1),V=Q=>{let R=Q.target.value;if(pe(R)){b.value="",C.value="",y("update:modelValue","",Q),y("change","",Q),ye(i.showTip)&&L.value&&(L.value=!1);return}if(R.length>=2){let Y=R;if(Y.charAt(0)=="-"&&(Y=Y.substring(1)),Y.length>=2&&Y.charAt(0)=="0"&&Y.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(R!="-"){if(!eo(R)){(0,t.triggerRef)(b);return}if(i.integerLength!=-1&&Qr(R)>Number(i.integerLength)){(0,t.triggerRef)(b);return}if(i.decimalLength&&i.decimalLength!=-1&&Gr(R)>Number(i.decimalLength)){(0,t.triggerRef)(b);return}let Y=cr(R,i);if(Y.maxValid===!1){T.value=Y.message,(0,t.triggerRef)(b);return}}else if(i.min!=null&&me(i.min)>=0){(0,t.triggerRef)(b);return}I.value=R,ye(i.showTip)&&(L.value=R.length>0),b.value=R,C.value=ur(R,i.rates,i.precision,!0),y("update:modelValue",C.value,Q),y("change",C.value,Q)},M=Q=>{if(S.value=!0,ye(i.showTip)){let R=b.value;pe(R)&&(R=i.hintText),pe(R)||(I.value=R,L.value=!0)}T.value="",y("focus",C.value,Q)},q=Q=>{if(setTimeout(()=>{S.value=!1,ye(i.showTip)&&L.value===!0&&(L.value=!1)},0),!pe(b.value)){let R=cr(b.value,i);if(R.minValid===!1||R.maxValid===!1){T.value=R.message;return}}y("update:modelValue",C.value,Q),y("blur",C.value,Q)},O=(0,t.computed)(()=>({[`${A}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),P=(0,t.computed)(()=>{const Q={};return a.slots.append&&!j.value&&!H.value&&(Q.display="none"),Q}),j=(0,t.computed)(()=>we(i.unit)>0),D=(0,t.computed)(()=>!H.value),ee=(0,t.computed)(()=>({[`${A}__unit`]:!0,hidden:!D.value})),te=Q=>{C.value="",y("update:modelValue","",Q),y("change","",Q),y("clear","")},oe=(0,t.computed)(()=>ye(i.clearable)&&!d.value&&!c.value),H=(0,t.computed)(()=>{let Q=we(C.value)>0;return ye(i.clearable)&&Q&&S.value}),Z=(0,t.computed)(()=>({action:!0,hidden:!H.value}));N({setDisabled:Q=>{s.value=Q},setReadonly:Q=>{v.value=Q}});const X=()=>C.value?k.value:C.value;return()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:X(),unit:i.unit},a.slots);let Q={class:g.value,style:B.value,type:"digit",maxlength:i.maxLength,placeholder:k.value,disabled:d.value,readonly:c.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:V,onFocus:M,onBlur:q},R=[],Y=(0,t.h)("input",Q);R.push(Y);let U=[];if(oe.value){const F=(0,t.h)(r,{class:["action-icon"]}),G=(0,t.h)("view",{class:Z.value,onClick:te},{default:()=>[F]});U.push(G)}if(j.value){const F=(0,t.h)("view",{class:ee.value},[i.unit]);U.push(F)}const _=(0,t.h)("view",{class:O.value,style:P.value},{default:()=>U});R.push(_);const K={default:()=>R};K.label=a.slots.default,K.prepend=a.slots.prepend,K.append=a.slots.append,K.fixedPreTip=a.slots.fixedPreTip,K.fixedTip=a.slots.fixedTip;const ne={...Qe(i,$i),ref:u,class:h.value,errorTip:w.value,hintText:I.value,hintVisible:L.value,hintType:"number"};return i.prop&&(ne.prop=`${i.prop}_item`),o(ne,K)}}}}var{componentName:Gc,create:Zc,scope:Jc}=le("money-item"),ed=Zc(Qc(Gc,Jc,Ie,ze,re.CircleClose)),go=ed,_l={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:td,create:nd,scope:ld}=le("textarea"),od=nd({props:{..._l},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,he.useFoxI18n)(ld);const l=o(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=td;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const a=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let p=r.value;p.style.height="auto";let y=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:N,minHeight:S}=e.autosize;N!==void 0&&(y=Math.min(y,N)),S!==void 0&&(y=Math.max(y,S))}y&&(console.info("----------- height",y),p.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});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:a,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})}}}}),ad=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],rd={key:0,class:"fox-textarea__limit"};function id(e,n,o,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]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,ad),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",rd,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var nl=ie(od,[["render",id]]);function sd(e,n,o,l,r){return{props:{...ge,...Se,..._l},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y}=Ve({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),N=Re(i,"modelValue",null,y),S=g=>{N.value=g,y("update:modelValue",g,{}),y("change",g,{})},C=e,b=(0,t.computed)(()=>({[C]:!0,disabled:d.value,readonly:c.value})),m=(0,t.computed)(()=>({[`${C}__content`]:!0}));let f=Re(i,"hintText"),k=(0,t.ref)(!1);const A=g=>{pe(f.value)||(k.value=!0),y("focus",N.value,g)},h=g=>{setTimeout(()=>{k.value&&(k.value=!1)},0),y("blur",N.value,g)};return()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:N.value},a.slots);const g={...be(i,_l),class:m.value,disabled:d.value,readonly:c.value,value:N.value,"onUpdate:modelValue":S,onFocus:A,onBlur:h},x=[],B=(0,t.h)(r,g);x.push(B);const T={default:()=>x};T.label=a.slots.default,T.prepend=a.slots.prepend,T.append=a.slots.append,T.fixedPreTip=a.slots.fixedPreTip,T.fixedTip=a.slots.fixedTip;const w={...be(i,Se,ge),ref:u,class:b.value};return i.prop&&(w.prop=`${i.prop}_item`),o(w,T)}}}}var{componentName:ud,create:cd,scope:dd}=le("textarea-item"),fd=cd(sd(ud,dd,Ie,ze,nl)),yo=fd;function md(e){return e===window}var Pe=e=>{const n=(0,t.unref)(e);if(md(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},dr=10;function Ei(e,n){return e>n&&e>dr?"horizontal":n>e&&n>dr?"vertical":""}function ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function ol(){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",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(a=>{if(a.touches){const u=a.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=a;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.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:(a=>{if(l(),a.touches){const u=a.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=a;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function pt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),v=(0,t.ref)(""),c=()=>v.value==="vertical",p=()=>v.value==="horizontal",y=()=>{a.value=0,u.value=0,s.value=0,d.value=0,v.value="",o.value=0};return{move:(C=>{if(C.touches){const b=C.touches[0];a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}else{const b=C;a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}s.value=Math.abs(a.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,v.value||(v.value=Ei(s.value,d.value))}),start:(C=>{if(y(),C.touches){const b=C.touches[0];e.value=b.clientX,n.value=b.clientY}else{const b=C;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:u,offsetX:s,offsetY:d,direction:v,isVertical:c,isHorizontal:p}}var pd=2e3,fr=()=>pd++,nt={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"},teleportDisable:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},vd=(e,n)=>({components:n,props:nt,emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(r.zIndex=fr());const i=(0,t.computed)(()=>{const S=e,C=[S,`${S}--${o.position}`];return o.round&&C.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&C.push(`${S}--${o.position}--safebottom`),typeof o.popClass=="string"?C.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(b=>{C.push(b)}),C}),a=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?r.zIndex=o.zIndex:r.zIndex=fr(),o.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},v=S=>{l("click-pop",S)},c=S=>{S.stopPropagation(),l("click-close-icon",S),l("update:visible",!1)},p=S=>{l("click-overlay",S),o.closeOnClickOverlay&&l("update:visible",!1)},y=S=>{l("opend",S)},N=S=>{l("closed",S)};return(0,t.watch)(()=>o.visible,S=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,S=>{r.closed=S}),{...(0,t.toRefs)(r),popStyle:a,transitionName:u,classes:i,onClick:v,onClickCloseIcon:c,onClickOverlay:p,onOpened:y,onClosed:N}}}),Di={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}},bo={...nt,...Di,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}},Ii=36;function hd(){return Ii}function gd(e){Ii=e}function Ke(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Hl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function yd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function mr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var bd=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Sd(){const e=mt();return new bd(e)}function pr(e,n,o){return!(Ke(e,n)!==Ke(e,o)||dt(e,n)!==dt(e,o))}function kd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=n[a];let s=o[a].findIndex(d=>{if(i==="text")return Ke(e,d)===u;if(i==="value"){let v=dt(e,d);return v==null&&(v=Ke(e,d)),v===u}else if(i==="item")return pr(e,d,u)});if(s==-1)break;r.push(s)}else{let a=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=a.findIndex(c=>{if(i==="text")return Ke(e,c)===s;if(i==="value"){let p=dt(e,c);return p==null&&(p=Ke(e,c)),p===s}else if(i==="item")return pr(e,c,s)});if(d==-1)break;r.push(d);const v=Hl(e,a[d]);if(!Array.isArray(v))break;a=v}}return r}function vr(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=o[a];let s=n[a];s<0&&s>=u.length&&(s=0);const d=u[s],v=Ke(e,d);if(r.texts.push(v),r.items.push(d),i==="text")r.values.push(v);else if(i==="value"){let c=dt(e,d);c==null&&(c=v),r.values.push(c)}else r.values.push(d)}else{let a=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=a.length&&(s=0);const d=a[s],v=Object.assign({},d);v.children=null;const c=Ke(e,d);if(r.texts.push(c),r.items.push(v),i==="text")r.values.push(c);else if(i==="value"){let p=dt(e,d);p==null&&(p=c),r.values.push(p)}else r.values.push(v);if(!Array.isArray(d.children))break;a=d.children}}return r}function hr(e){return{text:e,value:e}}var wd=15,Cd=300,Nd=200,{create:Ad}=le("picker-column");function Bd(e){e.stopPropagation()}function Td(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Bd(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},...Di},xd=Ad({props:Vd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${me(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)),a=g=>{const x=g+1;return x>=c.currIndex+8||x<=c.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${i.value}px`})),s=g=>{const x=g+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*x}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+i.value}px, 0)`})),v=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=g=>Ke(e,g),y=g=>dt(e,g),N=pt(),S=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},C=(g,x=!1,B=!1)=>{if(c.currIndex=g,x){const T=()=>{c.moving=!1,n("update:modelValue",g),n("change",g)};B?c.transitionEndTrigger=T:T()}},b=(g,x,B)=>{let T=g+c.startDistance;if(x==="end"){const w=-(e.source.length-1)*e.itemHeight;T<w&&(T=w),T>0&&(T=0);let I=Math.abs(Math.round(-T/e.itemHeight));const L=-I*e.itemHeight,V=`${(I+1)*c.rotation}deg`;C(I,!0,B?B>0:!1),m(L,x,B,V)}else{let w=(-T/e.itemHeight+1)*c.rotation;const I=(e.source.length+1)*c.rotation,L=0;if(w=Math.min(Math.max(w,L),I),e.threeDimensional&&(w<L||w>I))return;m(T,null,void 0,`${w}deg`)}},m=(g=0,x,B=Nd,T)=>{x==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=T,c.scrollDistance=g},f=(g,x)=>(g=Math.abs(g/x)/.003*(g<0?-1:1),g),k=g=>{e.readonly||(c.startDistance=c.scrollDistance,N.start(g),c.transitionEndTrigger=null)},A=g=>{e.readonly||(c.moving=!0,N.move(g),N.isVertical()&&(c.moving=!0,Td(g,!0)),b(N.deltaY.value,"",0))},h=()=>{if(e.readonly)return;const g=N.deltaY.value,x=N.duration.value;if(x<Cd&&Math.abs(g)>wd){const B=f(g,x);b(B,"end",me(e.swipeDuration))}else b(g,"end",0)};return(0,t.watch)(()=>e.modelValue,g=>{const x=c.currIndex-g;if(x!==0){c.currIndex=g,c.startDistance=c.scrollDistance;const B=x*e.itemHeight;b(B,"",0)}}),(0,t.watch)(()=>e.source,g=>{if(c.currIndex>=g.length){const x=(g.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,b(x,"end",0)}}),(0,t.watch)(()=>e.visible,g=>{g===!1&&S()}),(0,t.onMounted)(()=>{const g=-e.modelValue*e.itemHeight;b(g)}),{classes:o,styles:l,contentClasses:r,itemText:p,itemValue:y,...(0,t.toRefs)(c),roller:v,getItemText:Ke,onTouchStart:k,onTouchMove:A,onTouchEnd:h,isHidden:a,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:S}}}),$d={key:1,class:"fox-picker__item-tile"};function Ed(e,n,o,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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(a)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",$d,(0,t.toDisplayString)(e.itemText(a)),1))],64))),128))],6)],38)}var Dd=ie(xd,[["render",Ed]]),Rt=0,gr="fox-overflow-hidden",yr=()=>lt?document.body:{classList:[]},Id=e=>[()=>{if(e())try{!Rt&&yr().classList.add(gr),Rt++}catch{}},()=>{if(e()&&Rt)try{Rt--,!Rt&&yr().classList.remove(gr)}catch{}}],qd={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:Pd,create:Md}=le("overlay"),Rd=Md({props:{...qd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Id(()=>e.lockScroll),r=(0,t.computed)(()=>({[Pd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:r,style:i,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function zd(e,n,o,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)((...a)=>e.onClick&&e.onClick(...a),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ft=ie(Rd,[["render",zd]]),{componentName:Ld,create:Fd}=le("popup"),Od=Fd(vd(Ld,{FoxOverLay:ft,Close:re.Close}));function Kd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxOverLay"),u=(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)(a,(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)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Ce=ie(Od,[["render",Kd]]),Ud=(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,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),_d=Ud,{create:Hd,componentName:br,scope:jd}=le("picker"),Wd=Hd({components:{Column:Dd,Wrapper:_d},props:bo,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,he.useFoxI18n)(jd),r=o(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(hd());(0,t.watch)(()=>e.visible,q=>{q&&a.value<=0&&setTimeout(()=>{if(i.value){const O=Pe(i.value);a.value=O.height,gd(a.value)}},50)});const u=(0,t.computed)(()=>({[br]:!0})),s=(0,t.computed)(()=>{const q=[];return Array.isArray(e.popClass)?q.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&q.push(e.popClass),q.push(`${br}__popup`),q.join(" ")}),d=Sd(),v=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const q=[];for(let O=0;O<c.value.length;O++){const P=c.value[O];if(Array.isArray(P)){const j=P.filter(e.sourceFilter);q.push(j)}}return q}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([q,O])=>{if(q){let P=await d.load("picker",q,O);if(P.length>0){let j=P[0];if(Array.isArray(j)){if(typeof j[0]=="string"){let D=P,ee=[];D.forEach(te=>{let oe=te.map(H=>hr(H));ee.push(oe)}),c.value=ee}else c.value=P;v.value="multipleColumn"}else if(typeof j=="string"){let D=P,ee=[],te=D.map(oe=>hr(oe));ee.push(te),c.value=ee,v.value="singleColumn"}else{const D=Hl(e,j);Array.isArray(D)?(v.value="cascade",c.value=[P]):(v.value="singleColumn",c.value=[P])}}else c.value=[]}},{immediate:!0});const y=(0,t.ref)([]),N=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),S=(0,t.ref)([]);let C=null;const b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([q,O])=>{let P=kd(e,q,O,v.value);if(!xe(P,b.value)){b.value=P,C||(C=P?[...P]:[]);let j=vr(e,P,O,v.value);j&&(y.value=j.texts,xe(N.value,j.values)||(N.value=j.values),xe(S.value,j.items)||(S.value=j.items),n("update:text",y.value))}});let m="";const f=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,q=>{f.value=q,q&&(m="active",b.value.length>0&&(C=[...b.value]))});const k=q=>{let O=mr(e,q);return De(O)?O.defaultIndex??0:0},A=q=>{if(e.readonly===!0)return!0;let O=mr(e,q);return De(O)?O.readonly??!1:!1},h=(q,O)=>{let P=b.value;P[q]=O;for(let D=0;D<q;D++)P[D]==null&&(P[D]=k(D));if(v.value==="cascade")for(let D=q+1;D<x.value.length;D++){let ee=k(D);D<P.length?P[D]=ee:P.push(ee)}else for(let D=P.length;D<x.value.length;D++){let ee=k(D);P.push(ee)}b.value=P;let j=vr(e,P,p.value,v.value);j&&(y.value=j.texts,N.value=j.values,S.value=j.items)},g=q=>q<b.value.length?b.value[q]:k(q),x=(0,t.computed)(()=>{if(p.value.length==0)return[];if(v.value=="singleColumn"||v.value=="multipleColumn")return p.value;let q=[],O=0,P=p.value[0],j=0;for(;;){let D=P.map(oe=>{let H=Object.assign({},oe);return yd(e,H,null),H});q.push(D),O>=b.value.length?j=0:j=b.value[O],(j<0||j>=P.length)&&(j=0);let ee=P[j];const te=Hl(e,ee);if(!Array.isArray(te))break;P=te,O++}return q}),B=(0,t.computed)(()=>me(+e.visibleItemCount-1)/2*a.value),T=(q=!1)=>{if(e.readonly===!0){q&&n("update:visible",!1);return}let O=p.value.length-1;for(;O>=0&&!(b.value[O]===null||b.value[O]===void 0);O--);if(O>=0&&h(O,0),v.value==="singleColumn"){let P=N.value.length>0?N.value[0]:"",j=S.value.length>0?S.value[0]:null;n("update:modelValue",P),n("update:text",y.value),n("change",P,j),q&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",N.value),n("update:text",y.value),n("change",N.value,S.value),q&&(n("confirm",N.value),n("update:visible",!1))},w=(q,O)=>{if(m!=="close"&&(h(q,O),e.isAutoBackFill)){const P=!f.value;T(P)}},I=()=>{m==="active"&&(m="confirm",C=Array.isArray(b.value)?[...b.value]:[],T(!0))},L=()=>{v.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],C=null};return{...r,pickerLineRef:i,classes:u,popClasses:s,columns:x,dataType:v,show:f,itemHeight:a,top:B,isReadonly:A,getIndex:g,change:w,close:()=>{if(m==="active"){if(m="close",C===null||C.length===0)L();else{if(Array.isArray(C))for(let q=0;q<C.length;q++)h(q,C[q]);T(!1)}n("close"),n("update:visible",!1)}},confirm:I,clear:()=>{if(m==="active"){if(m="clear",e.readonly===!0){n("update:visible",!1);return}L(),C=null,n("clear",""),n("update:visible",!1)}}}}}),Yd={key:0,class:"fox-picker__bar"},Xd={class:"fox-picker__title"},Qd={class:"fox-picker__bar__action"},Gd={class:"fox-picker__column"};function Zd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{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",Yd,[(0,t.createElementVNode)("view",Xd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Qd,[(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",Gd,[(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)(a,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":v=>e.change(d,v),"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 un=ie(Wd,[["render",Zd]]),Jd={...ge,...Se,...bo,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 ef(e,n,o,l,r,i,a,u=!0){return{props:Jd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:v,innerDisabled:c,disabled:p,innerReadonly:y,readonly:N,browse:S}=$e(s),{emitEvent:C,exposeApi:b}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,he.useFoxI18n)(n),f=m(s,["placeholder"]),k=(0,t.ref)(!1),A=Re(s,"modelValue",null,C),h=(0,t.ref)([]),g=(0,t.computed)(()=>Array.isArray(h.value)?h.value.join(s.separator):h.value),x=e,B=(0,t.computed)(()=>({[x]:!0,disabled:p.value,readonly:N.value})),T=(0,t.computed)(()=>({[`${x}__content`]:!0})),w=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),I=(0,t.computed)(()=>{const _={};return w.value&&(_["text-align"]=w.value),_}),L=(0,t.ref)(!1),V=()=>{L.value=!0},M=_=>{L.value=_},q=_=>{A.value=_,C("update:modelValue",_)},O=(_,K)=>{C("change",_,K)},P=_=>{let K=_.target.value;k.value=!0,C("focus",K,_)},j=_=>{setTimeout(()=>{k.value=!1},0);let K=_.target.value;s.maxLength&&K.length>Number(s.maxLength)&&(K=K.slice(0,Number(s.maxLength))),C("blur",K,_)},D=_=>{h.value=_,Array.isArray(_)&&_.length===0?C("update:text",_[0]):C("update:text",_)},ee=(0,t.computed)(()=>({[`${x}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),te=(0,t.computed)(()=>we(s.unit)>0),oe=(0,t.computed)(()=>we(s.unit)>0&&!k.value),H=(0,t.computed)(()=>({hidden:!oe.value})),Z=_=>{A.value="",C("update:modelValue","",_),C("change","",_),C("clear","")},X=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),Q=(0,t.computed)(()=>we(A.value)>0&&k.value),R=_=>{Q.value?Z(_):V()},Y=(0,t.computed)(()=>Q.value&&X.value?r:i),U=(0,t.computed)(()=>({action:!0}));return b({setDisabled:_=>{c.value=_},setReadonly:_=>{y.value=_}}),()=>{if(S.value==="on"&&(N.value||p.value))return l({modelValue:A.value,source:s.source,unit:s.unit},d.slots);const _={class:T.value,style:I.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:V,onFocus:P,onBlur:j};u&&(_.disabled=!0);const K=[],ne=(0,t.h)("input",_);K.push(ne);const F=[],G=(0,t.h)(Y.value,{class:["action-icon"]}),E=(0,t.h)("view",{class:U.value,onClick:R},{default:()=>[G]});if(F.push(E),te.value){const de=(0,t.h)("view",{class:H.value},[s.unit]);F.push(de)}const $=(0,t.h)("view",{class:ee.value},{default:()=>F});K.push($);const z={default:()=>K};z.label=d.slots.default,z.prepend=d.slots.prepend,z.append=d.slots.append,z.fixedPreTip=d.slots.fixedPreTip,z.fixedTip=d.slots.fixedTip;const W=be(s,bo);W.disabled=!1,W.readonly=p.value||N.value,W.visible=L.value,W["onUpdate:visible"]=M,W.modelValue=A.value,W["onUpdate:modelValue"]=q,W.text=h.value,W["onUpdate:text"]=D,W.onChange=O;const J=(0,t.h)(a,W);z.hide=()=>[J];const ae=be(s,Se,ge);return s.prop&&(ae.prop=`${s.prop}_item`),ae.ref=v,ae.class=B.value,o(ae,z)}}}}var{componentName:tf,create:nf,scope:lf}=le("picker-item"),of=nf(ef(tf,lf,Ie,ze,re.CircleClose,re.ArrowRight,un,!1)),So=of,af=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(Ce,{...o},n):n?.default?.()??null}}),rf=af,bn=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:u,[i]:s,[a]:d,...v}=l,c={loading:!1,...v,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=bn(c.children,c,o)),c}),qi=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&qi(l.children,n)},sf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},uf=(e,n)=>{const{topId:o,idKey:l,pidKey:r,sortKey:i}={...sf,...n||{}};let a=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:v}=s,c=u[v]=u[v]||[];!a.length&&v===o&&(a=c),c.push(s),s.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,v)=>d[i]-v[i])}),u=null,a},ko={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}},Sr=(e,n)=>n[e.textKey],zt=(e,n)=>n[e.valueKey],cf=(e,n)=>n[e.visibleKey],kr=(e,n)=>n[e.disabledKey],df=(e,n)=>{const o=n[e.doitKey];return ye(o)},ff=(e,n)=>{const o=n[e.numKey];return o==null?null:me(n[o])},wr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function mf(e,n,o,l,r,i=!1){return{props:ko,emits:["update:modelValue","change","click"],setup(a,u){const{emitEvent:s,exposeApi:d}=He({context:u},a.prop),{slots:v}=u,c=(0,t.computed)(()=>{const E={};return E[`${e}`]=!0,E}),p=(0,t.computed)(()=>{const E={};return E[`${e}__titles`]=!0,E[`${a.direction}`]=!0,a.align&&(E[`${a.align}`]=!0),a.scroll===!0&&(E.scrollable=!0),a.shape&&(E[`${a.shape}`]=!0),a.showScrollArrow?(R.value===!0&&(E["has-left-scroll-arrow "]=!0),Y.value===!0&&(E["has-right-scroll-arrow "]=!0)):a.showQuickNavigation&&(E["has-navigation"]=!0),E}),y=(0,t.computed)(()=>({})),N=(0,t.computed)(()=>{if(!a.gutter)return 0;const E=ce(a.gutter);return E<=0?0:E}),S=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,E=>{S.value!==E&&(S.value=E,ee(!1))});const C=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const E={};return f.value||(E.display="none"),E}),m=(0,t.ref)(),f=(0,t.ref)(!1),k=()=>{const E=!f.value;A(E)},A=E=>{const $=E;$?(f.value=$,setTimeout(()=>{C.value["fox-tabs-bar__popup--show"]=!0,C.value["fox-tabs-bar__popup--hide"]=!1},0)):(C.value["fox-tabs-bar__popup--show"]=!1,C.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},h=(0,t.ref)(),g=(0,t.ref)([]),x=(E,$)=>{g.value[$]=E},B=E=>$=>{x($,E)},T=(E,$)=>{const z=h.value,W=g.value;if(!z||!W||!W[E])return;const J=W[E];let ae=0;a.direction==="vertical"?ae=J.offsetTop-(z.offsetHeight-J.offsetHeight)/2:ae=J.offsetLeft-(z.offsetWidth-J.offsetWidth)/2,w(z,ae,$?0:.3,a.direction)},w=(E,$,z,W)=>{let J=0;const ae=W==="horizontal"?E.scrollLeft:E.scrollTop,de=z===0?1:Math.round(z*1e3/16);function fe(){W==="horizontal"?E.scrollLeft+=($-ae)/de:E.scrollTop+=($-ae)/de,++J<de&&Ge(fe)}fe()},I=(E,$)=>{const z=zt(a,E),W={};return W[`${e}__titles-item`]=!0,W.disabled=kr(a,E),W.active=z===S.value,a.shape&&(W[`${a.shape}`]=!0),a.ellipsis&&(W.ellipsis=!0),$&&($.class&&(W[`${$.class}`]=!0),$.disabled===!0&&(W.disabled=$.disabled)),W},L=(E,$)=>{const z={};if(N.value>0){const W=Math.abs(N.value/2);a.direction==="vertical"?(z["margin-top"]=`${W}px`,z["margin-bottom"]=`${W}px`):(z["margin-left"]=`${W}px`,z["margin-right"]=`${W}px`)}return $&&$.style&&Object.assign(z,$.style),z},V=(E,$)=>`${zt(a,E)??$}`,M=(E,$)=>{const z=zt(a,E),W={};W[`${e}__popup-item`]=!0,W.disabled=kr(a,E),W.active=z===S.value,a.shape&&(W[`${a.shape}`]=!0);const J=wr(a,E,$);return J&&J.disabled===!0&&(W.disabled=J.disabled),W},q=(0,t.computed)(()=>(a.data??[]).filter(E=>cf(a,E)!==!1)),O=(E,$)=>{const z=zt(a,E);if(s("click",E,$),S.value==z)return;const W=()=>{S.value=z,a.scroll&&T($,!1),s("update:modelValue",z),s("change",E,$)};if(typeof a.beforeChange=="function"){const J=a.beforeChange(E,$);Ct(J)?J.then(ae=>{ae!==!1&&W()}).catch(()=>{W()}):J!==!1&&W()}else W()},P=(E,$)=>function(){O(E,$)},j=(E,$)=>{O(E,$),A(!1)},D=(E,$)=>function(){j(E,$)},ee=E=>{if(!Array.isArray(a.data)||!a.scroll)return;Q()&&ne();const $=a.data.findIndex(z=>zt(a,z)===S.value);$!==-1&&T($,E)},te=()=>{Q()||F()};(0,t.watch)(()=>a.data,()=>{setTimeout(ee,0)}),(0,t.onMounted)(()=>{ee(!0)}),(0,t.onBeforeUnmount)(()=>{te()}),d({});const oe=(E,$)=>{if(v.item)return v.item({item:E,index:$});const z=wr(a,E,$),W=[];if(v.text){const ae=v.text({item:E,index:$});W.push(ae)}else{const ae=[];if(z?.doit===!0||df(a,E)){const Le=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(Le)}const de=z?.num??ff(a,E);if(de){let Le="";const Fe=me(de);Fe>=100?Le="99+":Le=`${Fe}`;const Ee=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Le]);ae.push(Ee)}const fe={class:`${e}__titles-item-text`};ae.push(Sr(a,E));const ke=(0,t.h)("view",fe,ae);W.push(ke)}const J=(0,t.h)("view",{class:`${e}__titles-item-line`});return W.push(J),(0,t.h)("view",{ref:B($),class:I(E,z),style:L(E,z),key:V(E,$),onClick:P(E,$)},W)},H=()=>{const E=v.default?v.default():[];if(E.length===0)for(let $=0;$<q.value.length;$++){const z=q.value[$],W=oe(z,$);E.push(W)}return(0,t.h)("view",{ref:h,class:p.value,style:y.value},E)},Z=()=>{let E=null;return v.navigation?E=v.navigation():E=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:k},[E])},X=()=>{const E=[];for(let $=0;$<q.value.length;$++){const z=q.value[$];let W=null;v.popupItem?W=v.popupItem({item:z,index:$}):W=Sr(a,z);const J=(0,t.h)("view",{class:M(z,$),key:V(z,$),onClick:D(z,$)},[W]);E.push(J)}return(0,t.h)("view",{class:C.value,style:b.value},E)},Q=()=>a.showScrollArrow&&a.direction=="horizontal",R=(0,t.ref)(!1),Y=(0,t.ref)(!1),U=E=>{const $=h.value,z=g.value;if(!(!$||!z))if(E==="left"){const W=$.scrollLeft;let J=W;for(let ae=0;ae<z.length;ae++){const de=z[ae].offsetLeft;if(W-de<0)break;J=de}w($,J,.3,"horizontal")}else{const W=$.scrollLeft;let J=W,ae=$.offsetWidth;for(let de=z.length-1;de>=0;de--){const fe=z[de].offsetLeft+z[de].offsetWidth;if(fe-W<$.offsetWidth){J+=ae-fe;break}ae=fe}w($,J,.3,"horizontal")}},_=Me(()=>{const E=h.value;if(!E)return;let $=E.scrollLeft>0;$!==R.value&&(R.value=$);let z=E.scrollWidth-E.scrollLeft>E.offsetWidth;z!==Y.value&&(Y.value=z)},50),K=E=>{_()},ne=()=>{const E=h.value;E&&(_(),E.addEventListener("scroll",K))},F=()=>{const E=h.value;E&&E.removeEventListener("scroll",K)},G=E=>{if(E==="left"&&R.value!==!0||E==="right"&&Y.value!==!0)return null;let $=null;return E==="left"?v.leftArrow?$=v.leftArrow():$=(0,t.h)(l):v.rightArrow?$=v.rightArrow():$=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,E],onClick:()=>{U(E)}},[$])};return()=>{const E=[],$=H();if(E.push($),Q()){const z=G("left");z&&E.push(z);const W=G("right");W&&E.push(W)}else if(a.showQuickNavigation){const z=Z();E.push(z);const W=X();E.push(W)}return(0,t.h)("view",{class:c.value},E)}}}}var{create:pf,componentName:vf,scope:hf}=le("tabs-bar"),gf=pf(mf(vf,hf,re.MoreH,re.Left,re.Right,!1)),cn=gf,Pi=Symbol("TabsStatesKey"),wo={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]}},yf=15,bf=300,Sf=200;function kf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function Cr(e,n=0,o,l,r=Sf){o==="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 wf=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,o,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??ll()}open(e){this.el=e;const n=ol(),o=(l,r,i)=>{const a={delta:l,direction:r,type:i};this.onMove(a)};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}o(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<bf&&Math.abs(l)>yf?(l=kf(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(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 Cf(e,n,o,l=1,r){return new wf(e,n,o,l,r)}function Nf(e,n,o=!1){return{props:wo,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:a}=He({context:r},l.prop),{slots:u}=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:B=>{const T={name:B};d.current.value===B&&(T.loaded=!0),s.value.push(T),(0,t.triggerRef)(s)},remove:B=>{const T=s.value.findIndex(w=>w.name===B);T!==-1&&s.value.splice(T,1)},isLoaded:B=>{if(!l.lazy)return!0;const T=s.value.findIndex(w=>w.name===B);return T!==-1?d.current.value?s.value[T].loaded??!1:T===0:!1}};(0,t.provide)(Pi,d);const v=B=>{const T=s.value.findIndex(w=>w.name===B);T!==-1&&(s.value[T].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([B,T])=>{d.current.value!==B&&(d.current.value=B??"",v(B??"")),d.direction.value!==T&&(d.direction.value=T)});const c=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),N=(0,t.computed)(()=>{const B={};if(l.width){const T=ue(l.width);T&&(B.width=T)}if(l.height){const T=ue(l.height);T&&(B.height=T)}return B});let S=!0;const C=(0,t.computed)(()=>{const B={};if(l.transition===!1)return B;const T=s.value.length;if(T<=0)return B;const w=s.value.findIndex(I=>I.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(B.height=`${T*d.tabHeight.value}px`,w!==-1&&(B.transform=`translate(0, -${w*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(B.width=`${T*d.tabWidth.value}px`,w!==-1&&(B.transform=`translate(-${w*d.tabWidth.value}px, 0)`)),S&&(S=!1,B.transition="transform 0s ease"),B}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},m=B=>{const T=s.value.length,w=s.value.findIndex(I=>I.name===d.current.value);b.moved=0,B.direction==="vertical"?(b.min=-1*(d.tabHeight.value*(T-1)+d.tabHeight.value/4),b.max=d.tabHeight.value/4,b.start=-w*d.tabHeight.value,b.itemDistance=d.tabHeight.value):(b.min=-1*(d.tabWidth.value*(T-1)+d.tabWidth.value/4),b.max=d.tabWidth.value/4,b.start=-w*d.tabWidth.value,b.itemDistance=d.tabWidth.value)},f=B=>{const T=p.value;if(!T)return;let w=b.start+B.delta;if(w>b.max?w=b.max:w<b.min&&(w=b.min),B.type==="move")Cr(T,w,"move",B.direction,300);else if(B.type==="end"){let I=Math.floor(Math.abs(w)*1/b.itemDistance);const L=Math.abs(w)%b.itemDistance;b.start>w?L>=b.itemDistance*b.triggerAutoMoveRatio&&(I+=1):L>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(I+=1),w=-1*I*b.itemDistance,Cr(T,w,"end",B.direction,300),b.moved=w;const V=s.value[I].name;d.current.value=V??"",v(V??""),i("update:modelValue",V)}},k=()=>{},A=()=>{if(!c.value)return;const B=Un(c.value);d.tabWidth.value=B.width,d.tabHeight.value=B.height},h=Vn(A,250);let g=null,x=null;return(0,t.onMounted)(()=>{l.transition!==!1&&c.value&&(A(),window.ResizeObserver&&(x=new window.ResizeObserver(h),x.observe(c.value)),l.draggle&&(g=Cf(m,f,k),g.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{x&&(x.disconnect(),x=null),g&&g.close()}),a({doLayout(){A()}}),()=>{const B=(0,t.h)("view",{class:`${e}__panes`,style:C.value,ref:p},[u?.default?.()]);return(0,t.h)("view",{class:y.value,style:N.value,ref:c},[B])}}}}var{create:Af,componentName:Bf,scope:Tf}=le("tabs-container"),Vf=Af(Nf(Bf,Tf,!1)),dn=Vf,xf={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 $f(e,n,o){return{props:xf,setup(l,{emit:r,slots:i}){const a=(0,t.inject)(Pi);(0,t.onMounted)(()=>{a.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{a.remove(l.paneKey)});const u=(0,t.computed)(()=>{const v=[e];return a.direction.value==="vertical"?v.push("is-vertical"):v.push("is-horizontal"),a.transition===!1?v.push("is-no-transition"):v.push("is-transition"),v}),s=(0,t.computed)(()=>{const v={};return a.transition===!1?(a.current.value!==l.paneKey&&(v.display="none"),v):(a.direction.value==="vertical"&&a.tabHeight.value>0?v.height=`${a.tabHeight.value}px`:a.tabWidth.value>0&&(v.width=`${a.tabWidth.value}px`),v)}),d=(0,t.computed)(()=>l.loaded!=null?ye(l.loaded):a.isLoaded(l.paneKey));return()=>{let v=[];if(d.value)v=i?.default?.()??[];else if(i.empty)v=i.empty();else{const c={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??o,c),y=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),N=(0,t.h)("view",{class:`${e}__empty`},[p,y]);v.push(N)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},v)}}}}var{create:Ef,componentName:Df,scope:If}=le("tabs-pane"),qf=Ef($f(Df,If,re.Loading)),al=qf,Nr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=bn(e,null,this.config)}updateChildren(e,n){n?n.children=bn(e,n,this.config):this.nodes=bn(e,null,this.config)}getNodeByValue(e){let n;return qi(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,r=Array.isArray(l)&&!!l.length;return o||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:Pf,scope:Mf}=le("cascader-pane"),Rf=Pf({components:{Loading:re.Loading,Checklist:re.Checklist,TabsBar:cn,TabsContainer:dn,TabsPane:al},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:o}=(0,he.useFoxI18n)(Mf),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)(),a=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new Nr([],{})),d=(0,t.ref)([]),v=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>a.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((f,k)=>({text:f.selectedNode?f.selectedNode.text:o("select"),value:k}))),p=new Map;let y;const N=async()=>{p.clear(),d.value=[],r.value=0,a.value=!1,y=null;let{options:f}=e;l.value.convertConfig&&(f=uf(f,l.value.convertConfig)),s.value=new Nr(f,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),v.value&&!s.value.nodes.length&&await C({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],S(!v.value)},S=async(f=!0)=>{const k=u.value;if(k===void 0||!s.value.nodes.length)return;if(k.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let A=k;if(v.value&&Array.isArray(k)&&k.length){A=[];let h=s.value.nodes.find(g=>g.value===k[0]);if(h){A=[h.value],a.value=!0;const g=await k.slice(1).reduce(async(x,B)=>{const T=await x;await C(T);const w=T&&T?.children?.find(I=>I.value===B);return w&&A.push(B),Promise.resolve(w)},Promise.resolve(h));await C(g),a.value=!1}}A.length&&k===e.modelValue&&s.value.getPathNodesByValue(A).map((h,g)=>{r.value=g,m.handleNode(h,f)})},C=async f=>{if(!f)return;if(!l.value.lazyLoad){f.leaf=!0;return}if(s.value.isLeaf(f,v.value)||s.value.hasChildren(f,v.value))return;f.loading=!0;const k=f.root?null:f;let A=p.get(f);A||(A=new Promise(g=>{l.value.lazyLoad?.(f,g)}),p.set(f,A));const h=await A;Array.isArray(h)&&h.length>0?s.value.updateChildren(h,k):f.leaf=!0,f.loading=!1,p.delete(f)},b=f=>{const k=f.map(A=>A.value);u.value=k,n("change",k,f),n("pathChange",f),n("update:modelValue",k)},m={async handleNode(f,k){const{disabled:A,loading:h}=f;if(!(!k&&A||!d.value[r.value])){if(s.value.isLeaf(f,v.value)){if(f.leaf=!0,d.value[r.value].selectedNode=f,d.value=d.value.slice(0,f.level+1),!k){const g=d.value.map(x=>x.selectedNode);b(g),n("pathChange",g)}return}if(s.value.hasChildren(f,v.value)){const g=f.level+1;d.value[r.value].selectedNode=f,d.value=d.value.slice(0,g),d.value.push({nodes:f.children||[],selectedNode:null}),r.value=g,k||n("pathChange",d.value.map(x=>x.selectedNode));return}y=f,!h&&(await C(f),y===f&&(d.value[r.value].selectedNode=f,m.handleNode(f,k)))}},handleTabChange(f,k){y=null},formatTabTitle(f){return f.selectedNode?f.selectedNode.text:o("select")},isSelected(f,k){return f.selectedNode&&f.selectedNode.value===k.value}};return(0,t.watch)([l,()=>e.options],()=>{N()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,f=>{xe(f,u.value)||(u.value=f,S(!v.value))}),(0,t.watch)(()=>e.visible,f=>{f&&Array.isArray(u.value)&&u.value.length>0&&S(),f&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:a,tabsCursor:r,tabsContainerRef:i,...m}}}),zf={class:"fox-cascader"},Lf={role:"menu",class:"fox-cascader__pane"},Ff=["aria-checked","aria-disabled","onClick"],Of={class:"fox-cascader__item__title"};function Kf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),v=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",zf,[(0,t.createVNode)(a,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(v,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{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,(c,p)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":p,key:p},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Lf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,y),disabled:y.disabled}]),"aria-checked":e.isSelected(c,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:N=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",Of,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{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,Ff))),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 Uf=ie(Rf,[["render",Kf]]),{create:_f}=le("cascader"),Hf=_f({components:{CascaderPane:Uf,Wrapper:rf},props:{...nt,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 o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,u)=>{o.value=a,l.value=!1,n("change",a,u),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return(0,t.watch)(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),jf=["innerHTML"];function Wf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{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,jf)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(a,{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 rl=ie(Hf,[["render",Wf]]);function Tt(e,n){return n[e.textKey??"text"]??""}function Vt(e,n){return n[e.valueKey??"value"]}function Mi(e,n){return n[e.childrenKey??"children"]}function gn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=Tt(e,r),a=Vt(e,r);o.texts.push(i),o.values.push(a??"")}return o}function Ri(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Tt(e,n[a])===i){const u=Vt(e,n[a])??"",s={[e.textKey]:i,[e.valueKey]:u};r.push(s);const d=Mi(e,n[a]);Array.isArray(d)&&Ri(e,d,o,l+1,r);return}}function zi(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Vt(e,n[a])===i){const u=Tt(e,n[a])??"",s={[e.textKey]:u,[e.valueKey]:i};r.push(s);const d=Mi(e,n[a]);Array.isArray(d)&&zi(e,d,o,l+1,r);return}}function Bl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Tt(e,n[l])!==Tt(e,o[l])||Vt(e,n[l])!==Vt(e,o[l]))return!1;return!0}var Yf=class{scope;constructor(e){this.scope=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const r=at(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):(De(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,o))}};function Xf(){const e=mt();return new Yf(e)}var Li={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]}},Qf={...ge,...Se,...Li};function Gf(e,n,o,l,r,i,a,u=!1){return{props:Qf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:v,innerDisabled:c,disabled:p,innerReadonly:y,readonly:N,browse:S}=$e(s),{emitEvent:C,exposeApi:b}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,he.useFoxI18n)(n),f=m(s,["placeholder"]),k=(0,t.ref)(!1),A=Xf(),h=(0,t.ref)([]),g=(0,t.ref)([]),x=(0,t.computed)(()=>{if(Array.isArray(g.value)){if(g.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const E=g.value.length-1;return g.value[E]}return g.value.join(s.separator)}else return g.value??s.emptyText}),B=(0,t.ref)([]),T=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>h.value],async([E,$])=>{if(C("setValue",E),s.lazy===!0){T.value.length==0&&(s.emptyText?g.value=[s.emptyText]:g.value=Array.isArray(E)?E:[],B.value=Array.isArray(E)?E:[]);return}if(s.valueType==="item"){let z=E;if(!Bl(s,z,T.value)){T.value=z;let W=gn(s,z);g.value=W.texts,B.value=W.values}}else if(s.valueType==="text"){let z=E,W=[];if(Ri(s,$,z,0,W),!Bl(s,W,T.value)){T.value=W;let J=gn(s,W);g.value=J.texts,B.value=J.values}}else{let z=E,W=[];if(zi(s,$,z,0,W),!Bl(s,W,T.value)){T.value=W;let J=gn(s,W);g.value=J.texts,B.value=J.values}}}),s.lazy===!0&&(B.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([E,$])=>{s.lazy||E&&(h.value=await A.load(E,$))},{immediate:!0});const w=e,I=(0,t.computed)(()=>({[w]:!0,disabled:p.value,readonly:N.value})),L=(0,t.computed)(()=>({[`${w}__content`]:!0})),V=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),M=(0,t.computed)(()=>{const E={};return V.value&&(E["text-align"]=V.value),E}),q=(0,t.ref)(!1),O=()=>{p.value===!0||N.value===!0||(q.value=!0)},P=E=>{q.value=E},j=(E,$)=>{let z=$.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});T.value=z;let W=gn(s,z);g.value=W.texts,B.value=W.values,s.valueType==="text"?(C("change",g.value,z),C("update:modelValue",g.value)):s.valueType==="item"?(C("change",z,z),C("update:modelValue",z)):(C("change",B.value,z),C("update:modelValue",B.value)),C("update:pathNodes",z)},D=E=>{let $=E.map(z=>{if(z==null)return z;let W={...z};return Reflect.deleteProperty(W,"text"),W[s.textKey]=z.text??"",Reflect.deleteProperty(W,"value"),W[s.valueKey]=z.value??"",W});C("pathChange",$)},ee=E=>{k.value=!0,C("focus",B.value,E)},te=E=>{setTimeout(()=>{k.value=!1},0),C("blur",B.value,E)},oe=(0,t.computed)(()=>({[`${w}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),H=(0,t.computed)(()=>we(s.unit)>0),Z=(0,t.computed)(()=>we(s.unit)>0&&!k.value),X=(0,t.computed)(()=>({hidden:!Z.value})),Q=E=>{T.value=[],g.value=[],B.value=[],C("update:modelValue",[]),C("change",[],E),C("clear",[]),C("update:pathNodes",[])},R=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),Y=(0,t.computed)(()=>{let E=B.value&&B.value.length>0;return s.clearable&&E&&k.value}),U=E=>{Y.value?Q(E):O()},_=(0,t.computed)(()=>Y.value&&R.value?r:i),K=(0,t.computed)(()=>({action:!0}));let ne=null;const F=()=>typeof ne=="function"?ne:typeof s.lazyLoad=="function"?s.lazyLoad:(ne=async(E,$)=>{const z=[],W=[];let J=0;if(!E.root){let ae=E;for(;ae;){const de=Tt(s,ae),fe=Vt(s,ae);W.splice(0,0,de),z.splice(0,0,fe),ae=ae._parent}J=z.length}$(await A.load(s.source,{...E,level:J,pathLabels:W,pathValues:z},!0))},ne),G=(0,t.ref)();return b({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},select:()=>{G?.value.select()},setDisabled:E=>{c.value=E},setReadonly:E=>{y.value=E}}),()=>{if(S.value==="on"&&(N.value||p.value))return l({modelValue:x.value},d.slots);const E={class:L.value,style:M.value,ref:G,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:x.value,onClick:O,onFocus:ee,onBlur:te};u&&(E.disabled=!0);const $=[],z=(0,t.h)("input",E);$.push(z);const W=[],J=(0,t.h)(_.value,{class:["action-icon"]}),ae=(0,t.h)("view",{class:K.value,onClick:U},{default:()=>[J]});if(W.push(ae),H.value){const qe=(0,t.h)("view",{class:X.value},[s.unit]);W.push(qe)}const de=(0,t.h)("view",{class:oe.value},{default:()=>W});$.push(de);const fe={default:()=>$};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 ke={};ke.visible=q.value,ke["onUpdate:visible"]=P,ke.modelValue=B.value,ke.onChange=j,ke.onPathChange=D,ke.title=s.title,ke.valueKey=s.valueKey,ke.textKey=s.textKey,ke.childrenKey=s.childrenKey,ke.convertConfig=s.convertConfig,s.lazy?(ke.lazy=!0,ke.lazyLoad=F()):ke.options=h.value;const Le={};Le.header=d.slots.header;const Fe=(0,t.h)(a,ke,Le);fe.hide=()=>[Fe];const Ee={...Qe(s,Li),ref:v,class:I.value};return s.prop&&(Ee.prop=`${s.prop}_item`),o(Ee,fe)}}}}var{componentName:Zf,create:Jf,scope:em}=le("cascader-item"),tm=Jf(Gf(Zf,em,Ie,ze,re.CircleClose,re.ArrowRight,rl,!1)),Co=tm,nm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,r=36e5,i="millisecond",a="second",u="minute",s="hour",d="day",v="week",c="month",p="quarter",y="year",N="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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(V){var M=["th","st","nd","rd"],q=V%100;return"["+V+(M[(q-20)%10]||M[q]||M[0])+"]"}},f=function(V,M,q){var O=String(V);return!O||O.length>=M?V:""+Array(M+1-O.length).join(q)+V},k={s:f,z:function(V){var M=-V.utcOffset(),q=Math.abs(M),O=Math.floor(q/60),P=q%60;return(M<=0?"+":"-")+f(O,2,"0")+":"+f(P,2,"0")},m:function V(M,q){if(M.date()<q.date())return-V(q,M);var O=12*(q.year()-M.year())+(q.month()-M.month()),P=M.clone().add(O,c),j=q-P<0,D=M.clone().add(O+(j?-1:1),c);return+(-(O+(q-P)/(j?P-D:D-P))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:c,y,w:v,d,D:N,h:s,m:u,s:a,ms:i,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},A="en",h={};h[A]=m;var g="$isDayjsObject",x=function(V){return V instanceof I||!(!V||!V[g])},B=function V(M,q,O){var P;if(!M)return A;if(typeof M=="string"){var j=M.toLowerCase();h[j]&&(P=j),q&&(h[j]=q,P=j);var D=M.split("-");if(!P&&D.length>1)return V(D[0])}else{var ee=M.name;h[ee]=M,P=ee}return!O&&P&&(A=P),P||!O&&A},T=function(V,M){if(x(V))return V.clone();var q=typeof M=="object"?M:{};return q.date=V,q.args=arguments,new I(q)},w=k;w.l=B,w.i=x,w.w=function(V,M){return T(V,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var I=(function(){function V(q){this.$L=B(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[g]=!0}var M=V.prototype;return M.parse=function(q){this.$d=(function(O){var P=O.date,j=O.utc;if(P===null)return new Date(NaN);if(w.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var D=P.match(C);if(D){var ee=D[2]-1||0,te=(D[7]||"0").substring(0,3);return j?new Date(Date.UTC(D[1],ee,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)):new Date(D[1],ee,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)}}return new Date(P)})(q),this.init()},M.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},M.$utils=function(){return w},M.isValid=function(){return this.$d.toString()!==S},M.isSame=function(q,O){var P=T(q);return this.startOf(O)<=P&&P<=this.endOf(O)},M.isAfter=function(q,O){return T(q)<this.startOf(O)},M.isBefore=function(q,O){return this.endOf(O)<T(q)},M.$g=function(q,O,P){return w.u(q)?this[O]:this.set(P,q)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(q,O){var P=this,j=!!w.u(O)||O,D=w.p(q),ee=function(Y,U){var _=w.w(P.$u?Date.UTC(P.$y,U,Y):new Date(P.$y,U,Y),P);return j?_:_.endOf(d)},te=function(Y,U){return w.w(P.toDate()[Y].apply(P.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(U)),P)},oe=this.$W,H=this.$M,Z=this.$D,X="set"+(this.$u?"UTC":"");switch(D){case y:return j?ee(1,0):ee(31,11);case c:return j?ee(1,H):ee(0,H+1);case v:var Q=this.$locale().weekStart||0,R=(oe<Q?oe+7:oe)-Q;return ee(j?Z-R:Z+(6-R),H);case d:case N:return te(X+"Hours",0);case s:return te(X+"Minutes",1);case u:return te(X+"Seconds",2);case a:return te(X+"Milliseconds",3);default:return this.clone()}},M.endOf=function(q){return this.startOf(q,!1)},M.$set=function(q,O){var P,j=w.p(q),D="set"+(this.$u?"UTC":""),ee=(P={},P[d]=D+"Date",P[N]=D+"Date",P[c]=D+"Month",P[y]=D+"FullYear",P[s]=D+"Hours",P[u]=D+"Minutes",P[a]=D+"Seconds",P[i]=D+"Milliseconds",P)[j],te=j===d?this.$D+(O-this.$W):O;if(j===c||j===y){var oe=this.clone().set(N,1);oe.$d[ee](te),oe.init(),this.$d=oe.set(N,Math.min(this.$D,oe.daysInMonth())).$d}else ee&&this.$d[ee](te);return this.init(),this},M.set=function(q,O){return this.clone().$set(q,O)},M.get=function(q){return this[w.p(q)]()},M.add=function(q,O){var P,j=this;q=Number(q);var D=w.p(O),ee=function(H){var Z=T(j);return w.w(Z.date(Z.date()+Math.round(H*q)),j)};if(D===c)return this.set(c,this.$M+q);if(D===y)return this.set(y,this.$y+q);if(D===d)return ee(1);if(D===v)return ee(7);var te=(P={},P[u]=l,P[s]=r,P[a]=o,P)[D]||1,oe=this.$d.getTime()+q*te;return w.w(oe,this)},M.subtract=function(q,O){return this.add(-1*q,O)},M.format=function(q){var O=this,P=this.$locale();if(!this.isValid())return P.invalidDate||S;var j=q||"YYYY-MM-DDTHH:mm:ssZ",D=w.z(this),ee=this.$H,te=this.$m,oe=this.$M,H=P.weekdays,Z=P.months,X=P.meridiem,Q=function(U,_,K,ne){return U&&(U[_]||U(O,j))||K[_].slice(0,ne)},R=function(U){return w.s(ee%12||12,U,"0")},Y=X||function(U,_,K){var ne=U<12?"AM":"PM";return K?ne.toLowerCase():ne};return j.replace(b,(function(U,_){return _||(function(K){switch(K){case"YY":return String(O.$y).slice(-2);case"YYYY":return w.s(O.$y,4,"0");case"M":return oe+1;case"MM":return w.s(oe+1,2,"0");case"MMM":return Q(P.monthsShort,oe,Z,3);case"MMMM":return Q(Z,oe);case"D":return O.$D;case"DD":return w.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Q(P.weekdaysMin,O.$W,H,2);case"ddd":return Q(P.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(ee);case"HH":return w.s(ee,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return Y(ee,te,!0);case"A":return Y(ee,te,!1);case"m":return String(te);case"mm":return w.s(te,2,"0");case"s":return String(O.$s);case"ss":return w.s(O.$s,2,"0");case"SSS":return w.s(O.$ms,3,"0");case"Z":return D}return null})(U)||D.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(q,O,P){var j,D=this,ee=w.p(O),te=T(q),oe=(te.utcOffset()-this.utcOffset())*l,H=this-te,Z=function(){return w.m(D,te)};switch(ee){case y:j=Z()/12;break;case c:j=Z();break;case p:j=Z()/3;break;case v:j=(H-oe)/6048e5;break;case d:j=(H-oe)/864e5;break;case s:j=H/r;break;case u:j=H/l;break;case a:j=H/o;break;default:j=H}return P?j:w.a(j)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return h[this.$L]},M.locale=function(q,O){if(!q)return this.$L;var P=this.clone(),j=B(q,O,!0);return j&&(P.$L=j),P},M.clone=function(){return w.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},V})(),L=I.prototype;return T.prototype=L,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",d],["$M",c],["$y",y],["$D",N]].forEach((function(V){L[V[1]]=function(M){return this.$g(M,V[0],V[1])}})),T.extend=function(V,M){return V.$i||(V(M,I,T),V.$i=!0),T},T.locale=B,T.isDayjs=x,T.unix=function(V){return T(1e3*V)},T.en=h[A],T.Ls=h,T.p={},T}))})),lm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={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/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(C){return(C=+C)+(C>68?1900:2e3)},v=function(C){return function(b){this[C]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var m=b.match(/([+-]|\d\d)/g),f=60*m[1]+(+m[2]||0);return f===0?0:m[0]==="+"?-f:f})(C)}],p=function(C){var b=s[C];return b&&(b.indexOf?b:b.s.concat(b.f))},y=function(C,b){var m,f=s.meridiem;if(f){for(var k=1;k<=24;k+=1)if(C.indexOf(f(k,0,b))>-1){m=k>12;break}}else m=C===(b?"pm":"PM");return m},N={A:[u,function(C){this.afternoon=y(C,!1)}],a:[u,function(C){this.afternoon=y(C,!0)}],Q:[r,function(C){this.month=3*(C-1)+1}],S:[r,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[a,v("seconds")],ss:[a,v("seconds")],m:[a,v("minutes")],mm:[a,v("minutes")],H:[a,v("hours")],h:[a,v("hours")],HH:[a,v("hours")],hh:[a,v("hours")],D:[a,v("day")],DD:[i,v("day")],Do:[u,function(C){var b=s.ordinal,m=C.match(/\d+/);if(this.day=m[0],b)for(var f=1;f<=31;f+=1)b(f).replace(/\[|\]/g,"")===C&&(this.day=f)}],w:[a,v("week")],ww:[i,v("week")],M:[a,v("month")],MM:[i,v("month")],MMM:[u,function(C){var b=p("months"),m=(p("monthsShort")||b.map((function(f){return f.slice(0,3)}))).indexOf(C)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[u,function(C){var b=p("months").indexOf(C)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,v("year")],YY:[i,function(C){this.year=d(C)}],YYYY:[/\d{4}/,v("year")],Z:c,ZZ:c};function S(C){for(var b=C,m=s&&s.formats,f=(C=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,w,I){var L=I&&I.toUpperCase();return w||m[I]||o[I]||m[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(V,M,q){return M||q.slice(1)}))}))).match(l),k=f.length,A=0;A<k;A+=1){var h=f[A],g=N[h],x=g&&g[0],B=g&&g[1];f[A]=B?{regex:x,parser:B}:h.replace(/^\[|\]$/g,"")}return function(T){for(var w={},I=0,L=0;I<k;I+=1){var V=f[I];if(typeof V=="string")L+=V.length;else{var M=V.regex,q=V.parser,O=T.slice(L),P=M.exec(O)[0];q.call(w,P),T=T.replace(P,"")}}return(function(j){var D=j.afternoon;if(D!==void 0){var ee=j.hours;D?ee<12&&(j.hours+=12):ee===12&&(j.hours=0),delete j.afternoon}})(w),w}}return function(C,b,m){m.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(d=C.parseTwoDigitYear);var f=b.prototype,k=f.parse;f.parse=function(A){var h=A.date,g=A.utc,x=A.args;this.$u=g;var B=x[1];if(typeof B=="string"){var T=x[2]===!0,w=x[3]===!0,I=T||w,L=x[2];w&&(L=x[2]),s=this.$locale(),!T&&L&&(s=m.Ls[L]),this.$d=(function(O,P,j,D){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*O);var ee=S(P)(O),te=ee.year,oe=ee.month,H=ee.day,Z=ee.hours,X=ee.minutes,Q=ee.seconds,R=ee.milliseconds,Y=ee.zone,U=ee.week,_=new Date,K=H||(te||oe?1:_.getDate()),ne=te||_.getFullYear(),F=0;te&&!oe||(F=oe>0?oe-1:_.getMonth());var G,E=Z||0,$=X||0,z=Q||0,W=R||0;return Y?new Date(Date.UTC(ne,F,K,E,$,z,W+60*Y.offset*1e3)):j?new Date(Date.UTC(ne,F,K,E,$,z,W)):(G=new Date(ne,F,K,E,$,z,W),U&&(G=D(G).week(U).toDate()),G)}catch{return new Date("")}})(h,B,g,m),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),I&&h!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var V=B.length,M=1;M<=V;M+=1){x[1]=B[M-1];var q=m.apply(this,x);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}M===V&&(this.$d=new Date(""))}else k.call(this,A)}}}))})),om=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var r=l.prototype,i=r.format;r.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),v=(a||"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(c){switch(c){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return c}}));return i.bind(this)(v)}}}))})),am=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,r){var i=l.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,p,y,N,S){var C=c.name?c:c.$locale(),b=a(C[p]),m=a(C[y]),f=b||m.map((function(A){return A.slice(0,N)}));if(!S)return f;var k=C.weekStart;return f.map((function(A,h){return f[(h+(k||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(c,p){return c.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,S,C){return S||C.slice(1)}))})(c.formats[p.toUpperCase()])},v=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):u(c,"months")},monthsShort:function(p){return p?p.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return v.bind(this)()},r.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.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(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(c){return u(s(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),rm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(r,i,a){var u=i.prototype;u.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 v=a(this).startOf(l).add(1,l).date(d),c=a(this).endOf(o);if(v.isBefore(c))return 1}var p=a(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),y=this.diff(p,o,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),im=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}}))})),sm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})),um=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),cm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),_e=Xe(nm(),1),dm=Xe(lm(),1),fm=Xe(om(),1),mm=Xe(am(),1),pm=Xe(rm(),1),vm=Xe(im(),1),hm=Xe(sm(),1),gm=Xe(um(),1),ym=Xe(cm(),1);_e.default.extend(mm.default);_e.default.extend(fm.default);_e.default.extend(dm.default);_e.default.extend(pm.default);_e.default.extend(vm.default);_e.default.extend(hm.default);_e.default.extend(gm.default);_e.default.extend(ym.default);var ct={format(e,n="YYYY-MM-DD"){return(0,_e.default)(e).format(n)},parser(e,n){return(0,_e.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).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,o){const l=typeof e=="string"?this.parser(e,o):e,r=typeof n=="string"?this.parser(n,o):n,i=l.getTime(),a=r.getTime();return i==a?0:i>a?1:-1},between(e,n,o,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+o)):r=new Date(new Date(n).setDate(n.getDate()+o));const i=e.getTime(),a=r.getTime(),u=n.getTime();return a>u?i>=u&&i<=a:i>=a&&i<=u},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},Ar=new Date().getFullYear(),No={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Dn=(e,n,o)=>{let l;if(We(n)?l=n:typeof n=="string"&&we(n)>0?l=ct.parser(n,o):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)},jl=(e,n,o)=>{We(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ct.format(new Date(l),o)},Ao={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(Ar-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(Ar+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:bm,scope:Sm}=le("date-picker"),km=bm({components:{Picker:un},props:{...Ao},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(Sm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,f=>{r.value=f});function i(f,k){return new Date(f,k,0).getDate()}const a=(f,k)=>{const A=e[`${f}Date`],h=A.getFullYear();let g=1,x=1,B=0,T=0;f==="max"&&(g=12,x=i(k.getFullYear(),k.getMonth()+1),B=23,T=59);const w=T;return k.getFullYear()===h&&(g=A.getMonth()+1,k.getMonth()+1===g&&(x=A.getDate(),k.getDate()===x&&(B=A.getHours(),k.getHours()===B&&(T=A.getMinutes())))),{[`${f}Year`]:h,[`${f}Month`]:g,[`${f}Date`]:x,[`${f}Hour`]:B,[`${f}Minute`]:T,[`${f}Seconds`]:w}},u=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:f,maxDate:k,maxMonth:A,maxHour:h,maxMinute:g,maxSeconds:x}=a("max",p.value),{minYear:B,minDate:T,minMonth:w,minHour:I,minMinute:L,minSeconds:V}=a("min",p.value);let M=[{type:"year",range:[B,f]},{type:"month",range:[w,A]},{type:"day",range:[T,k]},{type:"hour",range:[I,h]},{type:"minute",range:[L,g]},{type:"seconds",range:[V,x]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(f,k,A,h,g)=>{const x=[];for(;f<=k;){let B=!0;if(typeof e.itemFilter=="function"){const T={text:`${f}`,value:f,type:A,currentYearMonth:h};B=e.itemFilter(T)}if(B)if(typeof e.itemFormatter=="function"){const T={text:`${f}`,value:f,type:A,currentYearMonth:h};e.itemFormatter(T),x.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${f}${l[A]}`;if(A==="day"){if(h[0]===g[0]&&h[1]===g[1]&&f===g[2])T=l.today;else{const w=new Date(h[0],h[1],f).getDay();T=`${T} ${l.fullWeekdays[w]}`}x.push({text:T,value:f})}else x.push({text:f+l[A],value:f})}else x.push({text:`${f}`,value:f});A==="minute"?f+=e.minuteStep:f++}return x},d=(0,t.computed)(()=>{const f=new Date,k=[f.getFullYear(),f.getMonth(),f.getDate()],A=[];p.value&&(A[0]=p.value.getFullYear(),A[1]=p.value.getMonth());let h=[];return u.value.forEach(g=>{let x=s(g.range[0],g.range[1],g.type,A,k);x&&h.push(x)}),h}),v=(f,k)=>f==="year"?k.getFullYear():f==="month"?k.getMonth()+1:f==="day"?k.getDate():f==="hour"?k.getHours():f==="minute"?k.getMinutes():f==="seconds"?k.getSeconds():0,c=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,f=>{let k;if(typeof f=="string"?f.length==0||f==="Invalid Date"?k=new Date:e.valueFormat?k=Dn(e,e.modelValue,e.valueFormat):k=Dn(e,f,No[e.type]):We(f)?k=f:k=new Date,!!k&&(!p.value||k.getTime()!==p.value.getTime())){p.value=k;let A=[];u.value.forEach(h=>{let g=v(h.type,k);A.push(g)}),c.value=A}},{immediate:!0});const y=f=>{if(!f||f.length===0){p.value=new Date;let k=[];u.value.forEach(A=>{let h=v(A.type,p.value);k.push(h)}),c.value=k;return}if(e.type==="date"){const k=f[0],A=f[1]-1,h=Math.min(f[2],i(k,A+1));h!==f[2]&&(f[2]=h),p.value=new Date(k,A,h)}else if(e.type==="datetime"){const k=f[0],A=f[1]-1,h=Math.min(f[2],i(k,A+1)),g=f[3],x=f[4];h!==f[2]&&(f[2]=h),p.value=new Date(k,A,h,g,x)}else if(e.type==="time"){const k=f[0],A=f[1],h=f[2],g=p.value??new Date,x=new Date(g.getFullYear(),g.getMonth(),g.getDate(),k,A,h);p.value=x}else if(e.type==="year-month"){const k=f[0],A=f[1]-1;p.value=new Date(k,A)}else if(e.type==="month-day"){const k=(p.value??new Date).getFullYear(),A=f[0]-1,h=Math.min(f[1],i(k,A+1));h!==f[1]&&(f[1]=h);const g=new Date(k,A,h);p.value=g}else if(e.type==="datehour"){const k=f[0],A=f[1]-1,h=Math.min(f[2],i(k,A+1)),g=f[3];h!==f[2]&&(f[2]=h),p.value=new Date(k,A,h,g)}else if(e.type==="hour-minute"){const k=f[0],A=f[1],h=p.value??new Date,g=new Date(h.getFullYear(),h.getMonth(),h.getDate(),k,A);p.value=g}c.value=f};return{columns:d,dateIndexs:c,show:r,onChange:f=>{y(f)},onClose:()=>{n("update:close",!1)},onConfirm:f=>{y(f);const k=p.value??new Date;e.valueFormat?n("update:modelValue",jl(e,k,e.valueFormat)):n("update:modelValue",k),n("confirm",f)},onClear:()=>{n("clear")},onUpdateVisible:f=>{r.value=f,n("update:visible",f)}}}});function wm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(a,{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 il=ie(km,[["render",wm]]),{componentName:Cm,create:Nm}=le("button"),Am=Nm({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:o}){const{type:l,size:r,shape:i,disabled:a,loading:u,color:s,plain:d,block:v}=(0,t.toRefs)(e);return{handleClick:p=>{!u.value&&!a.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=Cm;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${r.value}`]:r.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:v.value,[`${p}--disabled`]:a.value,[`${p}--loading`]:u.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})}}}),Bm={class:"fox-button__wrap"};function Tm(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Bm,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{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 vt=ie(Am,[["render",Tm]]),Vm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},xm={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function $m(e){let n=e.format;return n||(n=No[e.type??"date"]),n}var Em={...ge,...Se,...Ao,...Vm,...xm};function Dm(e,n,o,l,r,i,a,u,s,d,v=!1){return{props:Em,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","setValue"],setup(c,p){const{itemTemplateRef:y,innerDisabled:N,disabled:S,innerReadonly:C,readonly:b,browse:m}=$e(c),{emitEvent:f,exposeApi:k}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return b.value},get disabled(){return S.value},get props(){return c},context:p,get templateRefProxy(){return y.value}},c.prop??p.attrs.name),{toLocaleRefs:A}=(0,he.useFoxI18n)(n),h=A(c,["placeholder"]),g=(0,t.ref)(!1),B=Re(c,"modelValue",J=>J==null?null:typeof J=="string"?J.length==0?null:c.valueFormat?Dn(c,J,c.valueFormat)??J:Dn(c,J,No[c.type])??J:We(J)?J:null,f),T=(0,t.computed)(()=>{if($.value&&ne.value)return ne.value;if(!B.value)return"";const J=$m(c);return jl(c,B.value,J)}),w=e,I=(0,t.computed)(()=>({[w]:!0,disabled:S.value,readonly:b.value,"is-long-term":$.value})),L=(0,t.computed)(()=>({[`${w}__content`]:!0})),V=Ae((0,t.computed)(()=>c.textAlign),"textAlign"),M=(0,t.computed)(()=>{const J={};return V.value&&(J["text-align"]=V.value),J}),q=(0,t.ref)(!1),O=()=>{q.value=!0},P=()=>{q.value=!1},j=J=>{q.value=J},D=J=>{if(c.isLongTerm&&$.value===!0&&($.value=!1,f("update:longTerm",$.value)),B.value=J,c.valueFormat){let ae=jl(c,J,c.valueFormat);f("update:modelValue",ae),f("change",ae,{})}else f("update:modelValue",J),f("change",J,{})},ee=J=>{let ae=J.target.value;g.value=!0,f("focus",ae,J)},te=J=>{setTimeout(()=>{g.value=!1},0);let ae=J.target.value;c.maxLength&&ae.length>Number(c.maxLength)&&(ae=ae.slice(0,Number(c.maxLength))),f("blur",ae,J)},oe=(0,t.computed)(()=>({[`${e}__append`]:!0})),H=(0,t.computed)(()=>we(c.unit)>0),Z=(0,t.computed)(()=>we(c.unit)>0&&!g.value),X=(0,t.computed)(()=>({hidden:!Z.value})),Q=J=>{B.value="",f("update:modelValue",B.value),f("change","",J),c.isLongTerm&&($.value=!1,f("update:longTerm",$.value)),f("clear"),P()},R=(0,t.computed)(()=>c.clearable&&!S.value&&!b.value),Y=(0,t.computed)(()=>{let J=we(B.value)>0;return c.clearable&&J&&g.value}),U=J=>{Y.value?Q(J):O()},_=(0,t.computed)(()=>Y.value&&R.value?r:i),K=(0,t.computed)(()=>({action:!0})),ne=Ae((0,t.computed)(()=>c.longTermText),"longTermText",wt.Near),F=Ae((0,t.computed)(()=>c.longTermActionLabel),"longTermActionLabel",wt.Near),G=Ae((0,t.computed)(()=>c.longTermValue),"longTermValue",wt.Near);let E=null;const $=(0,t.ref)(ye(c.longTerm)),z=J=>{let ae=Array.isArray(J)?J[0]:J;return Array.isArray(G.value)?ae=G.value[1]??G.value[0]:ae=$.value,ae||(ae=c.valueFormat?ct.format(new Date,c.valueFormat):new Date),ae},W=()=>{$.value=!$.value,f("update:longTerm",$.value),$.value?(E=B.value,B.value=G.value||B.value,f("update:modelValue",B.value)):(B.value=E,f("update:modelValue",B.value)),P()};if(ye(c.isLongTerm)){const J=()=>{$.value===!0?(E=B.value,B.value=z(B.value),f("update:modelValue",B.value)):G.value&&xe(G.value,B.value)&&($.value=!0)};J(),(0,t.watch)([()=>c.longTerm],([ae])=>{$.value!==ae&&J()})}return k({setDisabled:J=>{N.value=J},setReadonly:J=>{C.value=J},showPicker:O,hidePicker:P}),()=>{if(m.value==="on"&&(b.value||S.value))return l({modelValue:T.value},p.slots);const J={class:L.value,style:M.value,type:"text",maxlength:c.maxLength,placeholder:h.placeholder.value,readonly:!0,unselectable:"on",value:T.value,onClick:O,onFocus:ee,onBlur:te};v&&(J.disabled=!0);const ae=[],de=(0,t.h)("input",J);ae.push(de);const fe=[],ke=(0,t.h)(_.value,{class:["action-icon"]}),Le=(0,t.h)("view",{class:K.value,onClick:U},{default:()=>[ke]});if(fe.push(Le),H.value){const qt=(0,t.h)("view",{class:X.value},[c.unit]);fe.push(qt)}const Fe=(0,t.h)("view",{class:oe.value},{default:()=>fe});ae.push(Fe);const Ee={default:()=>ae};Ee.label=p.slots.default,Ee.prepend=p.slots.prepend,Ee.append=p.slots.append,Ee.fixedPreTip=p.slots.fixedPreTip,Ee.fixedTip=p.slots.fixedTip;const qe=be(c,Ao);qe.valueFormat=null,qe.disabled=!1,qe.readonly=S.value||b.value,qe.visible=q.value,qe["onUpdate:visible"]=j,qe.modelValue=B.value,qe["onUpdate:modelValue"]=D,qe.onClear=Q;const ht={};if(p.slots.top&&(ht.top=p.slots.top),c.isLongTerm&&!b.value&&!S.value){const qt={default:()=>F.value};if($.value){const us={class:["long-term-icon","is-active"]};qt.icon=()=>(0,t.h)(d,us)}else qt.icon=()=>(0,t.h)(s);const rs={plain:!0,type:"primary",class:"long-term-button",onClick:W};$.value;const is=(0,t.h)(u,rs,qt),ss=(0,t.h)("view",{class:`${w}__long-term-bar`},[is]);ht.default=()=>ss}else p.slots.bottom&&(ht.default=p.slots.bottom);const as=(0,t.h)(a,qe,ht);Ee.hide=()=>[as];const Qa={...be(c,Se,ge),class:I.value,ref:y};return c.prop&&(Qa.prop=`${c.prop}_item`),o(Qa,Ee)}}}}var{create:Im,componentName:qm,scope:Pm}=le("date-item"),Mm=Im(Dm(qm,Pm,Ie,ze,re.CircleClose,re.Date,il,vt,re.CheckNormal,re.Checked,!1)),Bo=Mm,se={format(e,n="YYYY-MM-DD"){return ct.format(e,n)},parser(e,n){return ct.parser(e,n)},isLeapYear:function(e){return ct.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),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,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let i=r.getDay();const a=r.getDate();let u=6-i;return l!==0&&(i=i==0?7:i,u=7-i),Math.ceil((a+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=new Date(Number(e),0,1),a=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((a+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=r.getTime();let a=r.getDay();if(l===0){const s=i-a*864e5,d=i+(6-a)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{a=a==0?7:a;const u=1440*60*1e3,s=i-(a-1)*u,d=i+(7-a)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=se.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=se.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Rm,scope:zm}=le("calendar-pane"),Lm=Rm({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:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o,expose:l}){const{toLocaleRefs:r,t:i}=(0,he.useFoxI18n)(zm),a=r(e,["title","confirmText","startText","endText","today"]),u=JSON.parse(i("weekdays")),s=(0,t.ref)([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),v=(0,t.ref)(null),c=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.ref)(0),N=(0,t.computed)(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),S=(0,t.computed)(()=>o.btn),C=(0,t.computed)(()=>o["top-info"]),b=(0,t.computed)(()=>o["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=R=>R.split("-"),k=R=>se.isEqual(m.currDate[0],R),A=R=>se.isEqual(m.currDate[1],R),h=R=>m.currDate?.length>0?m.currDate?.some(Y=>se.isEqual(Y,R)):!1,g=(R,Y)=>Y.curData[0]+"-"+Y.curData[1]+"-"+se.getNumTwoBit(+R.day),x=(R,Y)=>{const U=g(R,Y),{type:_}=e;return R.type=="curr"?se.isEqual(m.currDate,U)||(_=="range"||_=="week")&&(k(U)||A(U))||_=="multiple"&&h(U)?`${m.dayPrefix}--active`:m.propStartDate&&se.compareDate(U,m.propStartDate)||m.propEndDate&&se.compareDate(m.propEndDate,U)?`${m.dayPrefix}--disabled`:(_=="range"||_=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&se.compareDate(m.currDate[0],U)&&se.compareDate(U,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},B=()=>{const{type:R}=e;if(R=="range"&&m.chooseData.length==2||R!="range"){let Y=m.chooseData.slice(0);R=="week"&&(Y={weekDate:[w(m.chooseData[0]),w(m.chooseData[1])]}),n("choose",Y),e.poppable&&n("update")}},T=(R,Y,U=!1)=>{if(x(R,Y)!=`${m.dayPrefix}--disabled`){const{type:_}=e;let[K,ne]=Y.curData,F=[...Y.curData];if(F[2]=se.getNumTwoBit(Number(R.day)),F[3]=`${F[0]}-${F[1]}-${F[2]}`,F[4]=se.getWhatDay(+F[0],+F[1],+F[2]),_=="multiple")if(m.currDate?.length>0){let G;m.currDate?.forEach((E,$)=>{E==F[3]&&(G=$)}),U?m.chooseData.push([...F]):G!==void 0?(m.currDate.splice(G,1),m.chooseData.splice(G,1)):(m.currDate.push(F[3]),m.chooseData.push([...F]))}else m.currDate=[F[3]],m.chooseData=[[...F]];else if(_=="range"){let G=Object.values(m.currDate).length;G==2||G==0?m.currDate=[F[3]]:se.compareDate(m.currDate[0],F[3])?Array.isArray(m.currDate)&&m.currDate.push(F[3]):Array.isArray(m.currDate)&&m.currDate.unshift(F[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...F]]:se.compareDate(m.chooseData[0][3],F[3])?m.chooseData=[...m.chooseData,[...F]]:m.chooseData=[[...F],...m.chooseData]}else if(_=="week"){let G=se.getWeekDate(K,ne,R.day,e.firstDayOfWeek);m.propStartDate&&se.compareDate(G[0],m.propStartDate)&&G.splice(0,1,m.propStartDate),m.propEndDate&&se.compareDate(m.propEndDate,G[1])&&G.splice(1,1,m.propEndDate),m.currDate=G,m.chooseData=[se.formatResultDate(G[0]),se.formatResultDate(G[1])]}else m.currDate=F[3],m.chooseData=[...F];if(!U){let G=m.chooseData;_=="week"&&(G={weekDate:[w(m.chooseData[0]),w(m.chooseData[1])]}),n("select",G),(e.isAutoBackFill||!e.poppable)&&B()}}},w=R=>{let[Y,U,_]=R;return{date:R,monthWeekNum:se.getMonthWeek(Y,U,_,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(Y,U,_,e.firstDayOfWeek)}},I=R=>{const Y=R=="prev"?m.monthsData[0]:m.monthsData[m.monthsData.length-1];let U=parseInt(Y.curData[0]),_=parseInt(Y.curData[1].toString().replace(/^0/,""));switch(R){case"prev":_==1&&(U-=1),_=_==1?12:--_;break;case"next":_==12&&(U+=1),_=_==12?1:++_;break}return[U+"",se.getNumTwoBit(_),se.getMonthDays(String(U),String(_))+""]},L=(R,Y,U)=>{let{year:_,month:K}=U;return Y=="prev"&&R>=7&&(R-=7),Array.from(Array(R),(ne,F)=>({day:String(F+1),type:Y,year:_,month:K}))},V=(R,Y,U,_)=>{R=R-e.firstDayOfWeek;let{year:K,month:ne}=U;return Y=="prev"&&R>=7&&(R-=7),Array.from(Array(_),(F,G)=>({day:String(G+1),type:Y,year:K,month:ne})).slice(_-R)},M=(R,Y)=>{const U=se.getMonthPreDay(+R[0],+R[1]);let _=Number(R[1])-1,K=Number(R[0]);_<=0&&(_=12,K+=1);const ne=se.getMonthDays(String(R[0]),String(R[1])),F=se.getMonthDays(K+"",_+""),G={year:R[0],month:R[1]},E={curData:R,title:i("monthTitle",{year:G.year,month:G.month}),monthData:[...V(U,"prev",{month:String(_),year:String(K)},F),...L(ne,"curr",G)],cssHeight:0,cssScrollHeight:0};E.cssHeight=39+64*(E.monthData.length>35?6:5);let $=0;m.monthsData.length>0&&($=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),E.cssScrollHeight=$,Y=="next"?(!m.endData||!se.compareDate(`${m.endData[0]}-${m.endData[1]}-${se.getMonthDays(m.endData[0],m.endData[1])}`,`${R[0]}-${R[1]}-${R[2]}`))&&m.monthsData.push(E):!m.startData||!se.compareDate(`${R[0]}-${R[1]}-${R[2]}`,`${m.startData[0]}-${m.startData[1]}-01`)?m.monthsData.unshift(E):m.unLoadPrev=!0},q=()=>{let R=e.startDate?e.startDate:se.getDay(0),Y=e.endDate?e.endDate:se.getDay(365);m.propStartDate=R,m.propEndDate=Y,m.startData=f(R),m.endData=f(Y),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const U={year:Number(m.startData[0]),month:Number(m.startData[1])},_={year:Number(m.endData[0]),month:Number(m.endData[1])};let K=_.month-U.month;_.year-U.year>0&&(K=K+12*(_.year-U.year)),K<=0&&(K=1),M(m.startData,"next");let ne=1;do M(I("next"),"next");while(ne++<K);if(m.monthsNum=K,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(R&&se.compareDate(m.currDate[0],R)&&m.currDate.splice(0,1,R),Y&&se.compareDate(Y,m.currDate[1])&&m.currDate.splice(1,1,Y),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 F=[],G={};m.currDate.forEach(E=>{R&&!se.compareDate(E,R)&&Y&&!se.compareDate(Y,E)&&(Object.hasOwnProperty.call(G,E)||(F.push(E),G[E]=E))}),m.currDate=[...F],m.defaultData=[...f(F[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[F,G,E]=f(m.currDate[0]),$=se.getWeekDate(F,G,E,e.firstDayOfWeek);m.currDate=$,R&&se.compareDate(m.currDate[0],R)&&m.currDate.splice(0,1,R),Y&&se.compareDate(Y,m.currDate[1])&&m.currDate.splice(1,1,Y),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]}}else m.currDate&&(R&&se.compareDate(m.currDate,R)?m.currDate=R:Y&&!se.compareDate(m.currDate,Y)&&(m.currDate=Y),m.defaultData=[...f(m.currDate)])};l({scrollToDate:R=>{se.compareDate(R,m.propStartDate)?R=m.propStartDate:se.compareDate(R,m.propEndDate)||(R=m.propEndDate);let Y=f(R);m.monthsData.forEach((U,_)=>{if(U.title==i("monthTitle",{year:Y[0],month:Y[1]})&&d.value){let K=m.monthsData[_].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let ne=0,F=setInterval(()=>{if(ne++,d.value){let G=K/10;d.value.scrollTop=d.value.scrollTop+G}ne>=10&&(clearInterval(F),d.value&&(d.value.scrollTop=m.monthsData[_].cssScrollHeight))},40)}else d.value.scrollTop=m.monthsData[_].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)},doLayout:()=>{let R=0,Y=0;m.defaultData.length>0&&m.monthsData.forEach((K,ne)=>{K.title==i("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(R=ne),(e.type=="range"||e.type=="week")&&K.title==i("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(Y=ne)}),D(m.monthsNum,R),m.currentIndex=R,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?(T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),T({day:m.defaultData[5],type:"curr"},m.monthsData[Y],!0)):e.type=="week"?T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(K=>{let ne=f(K),F=m.currentIndex;m.monthsData.forEach((G,E)=>{G.title==i("monthTitle",{year:ne[0],month:ne[1]})&&(F=E)}),T({day:ne[2],type:"curr"},m.monthsData[F],!0)}):T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let U=m.monthsData[m.monthsData.length-1],_=U.cssHeight+U.cssScrollHeight;Je(()=>{d?.value&&v?.value&&p?.value&&(y.value=d.value.clientHeight,v.value.style.height=`${_}px`,d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(_/(m.monthsNum+1))}});const D=(R,Y)=>{R>=3?Y>0&&Y<R?m.defaultRange=[Y-1,Y+3]:Y==0?m.defaultRange=[Y,Y+4]:Y==R&&(m.defaultRange=[Y-2,Y+2]):m.defaultRange=[0,R+2];let U=m.monthsData[m.defaultRange[0]].cssScrollHeight;m.translateY=U},ee=(R,Y)=>(e.type=="range"||e.type=="week")&&R.type=="curr"&&x(R,Y)=="fox-calendar__day--active",te=(R,Y)=>ee(R,Y)&&k(g(R,Y)),oe=(R,Y)=>m.currDate.length>=2&&A(g(R,Y))?ee(R,Y):!1,H=()=>{if(m.currDate.length>=2)return se.isEqual(m.currDate[0],m.currDate[1])},Z=R=>{const Y=`${R.year}-${R.month}-${Number(R.day)<10?"0"+R.day:R.day}`;return se.isEqual(Y,se.date2Str(new Date))},X=R=>{if(m.monthsData.length<=1)return;const Y=R.target.scrollTop;let U=Math.floor(Y/m.avgHeight);if(U==0)Y>=m.monthsData[U+1].cssScrollHeight&&(U+=1);else if(U>0&&U<m.monthsNum-1)Y>=m.monthsData[U+1].cssScrollHeight&&(U+=1),Y<m.monthsData[U].cssScrollHeight&&(U-=1);else{const _=Math.round(Y+y.value);_<m.monthsData[U].cssScrollHeight+m.monthsData[U].cssHeight&&Y>m.monthsData[U-1].cssScrollHeight&&(U-=1),U+1<=m.monthsNum&&_>=m.monthsData[U+1].cssScrollHeight+m.monthsData[U+1].cssHeight&&(U+=1),U>=1&&Y<m.monthsData[U-1].cssScrollHeight&&(U-=1)}m.currentIndex!==U&&(m.currentIndex=U,D(m.monthsNum,U)),m.yearMonthTitle=m.monthsData[U].title},Q=()=>{m.chooseData.splice(0),m.monthsData.splice(0),q()};return q(),(0,t.watch)(()=>e.defaultValue,R=>{R&&e.poppable&&Q()}),{weeks:s,compConthsData:N,showTopBtn:S,topInfo:C,bottomInfo:b,rangeTip:H,mothsViewScroll:X,getClass:x,isStartTip:te,isEndTip:oe,chooseDay:T,isCurrDay:Z,confirm:B,months:d,...(0,t.toRefs)(m),...(0,t.toRefs)(e),...a,monthsPanel:v,weeksPanel:c,viewArea:p}}}),Fm={class:"fox-calendar__header"},Om={key:0,class:"fox-calendar__header-title"},Km={key:1,class:"fox-calendar__header-slot"},Um={key:2,class:"fox-calendar__header-subtitle"},_m={class:"fox-calendar__weekdays",ref:"weeksPanel"},Hm={class:"fox-calendar__panel",ref:"monthsPanel"},jm={class:"fox-calendar__month-title"},Wm={class:"fox-calendar__days"},Ym=["onClick"],Xm={class:"fox-calendar__day-value"},Qm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Gm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Zm={key:2,class:"fox-calendar__day-tips--curr"},Jm={key:4,class:"fox-calendar__day-tip"},e0={key:0,class:"fox-calendar__footer"};function t0(e,n,o,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",Fm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Km,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Um,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",_m,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(a),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[(0,t.createElementVNode)("view",Hm,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",jm,(0,t.toDisplayString)(a.title),1),(0,t.createElementVNode)("view",Wm,[(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)(a.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,a)]),onClick:v=>e.chooseDay(s,a)},[(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",Qm,[(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",Gm,[(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",Zm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,a)?((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,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Ym))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",e0,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var n0=ie(Lm,[["render",t0]]),l0=(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,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),o0=l0,a0=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),In={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:r0}=le("calendar"),i0=r0({components:{Wrapper:o0,CalendarPane:n0},props:{...In},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.computed)(()=>o.btn),i=(0,t.computed)(()=>o["top-info"]),a=(0,t.computed)(()=>o.day),u=(0,t.computed)(()=>o["bottom-info"]),s=(0,t.ref)(null),d=C=>{s.value?.scrollToDate(C)},v=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,C=>{C&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:v});const c=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:c,close:p,select:C=>{n("select",C)},choose:C=>{p(),n("choose",C)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:a,bottomInfo:u}}});function s0(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(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)(a,{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 sl=ie(i0,[["render",s0]]),Fi={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]}},Tl=(e,n)=>{let o;return We(e)?o=e:typeof e=="string"&&we(e)>0?o=se.parser(e,n):o=new Date,o},gt=(e,n,o)=>(We(n)||(n=new Date),se.format(n,o)),yt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,se.date2Str(e),se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],u0={...ge,...Se,...In,...Fi};function c0(e,n,o,l,r,{CloseIcon:i,MarkIcon:a},u=!1){return{props:u0,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:v,disabled:c,readonly:p,browse:y}=$e(s),{emitEvent:N,exposeApi:S}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return c.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:C}=(0,he.useFoxI18n)(n),b=C(s,["placeholder"]),m=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),k=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),A=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},h=(U,_="one",K="YYYY-MM-DD")=>{if(a0(U)){A();return}if(f.value&&Array.isArray(U)&&U.length==2){let ne,F;typeof U[0]=="string"?(ne=Tl(U[0],K),F=Tl(U[1],K)):(ne=U[0],F=U[1]);let G=yt(ne),E=yt(F);(k.startDate===null||k.startDate.getTime()!==ne.getTime()||k.endDate?.getTime()!==F.getTime())&&(k.startDate=ne,k.startArray=G,k.endDate=F,k.endArray=E)}else{let ne;typeof U=="string"?ne=Tl(U,K):ne=U;let F=yt(ne);(k.startDate===null||k.startDate.getTime()!==ne.getTime())&&(k.startDate=ne,k.startArray=F)}};h(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,U=>{h(U,s.type,s.valueFormat),N("setValue",U)});const g=(0,t.computed)(()=>{if(k.startDate===null)return"";if(f.value){let U=gt(s,k.startDate,s.format),_=gt(s,k.endDate,s.format);return`${U} ${s.rangeSeparator} ${_}`}else{let U=gt(s,k.startDate,s.format);return s.showWeek&&(U=`${U} ${k.startArray[4]}`),U}}),x=(0,t.computed)(()=>k.startDate===null?null:f.value?[se.date2Str(k.startDate),se.date2Str(k.endDate??new Date)]:se.date2Str(k.startDate)),B=e,T=(0,t.computed)(()=>({[B]:!0,disabled:c.value,readonly:p.value})),w=(0,t.computed)(()=>({[`${B}__content`]:!0})),I=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),L=(0,t.computed)(()=>{const U={};return I.value&&(U["text-align"]=I.value),U}),V=(0,t.ref)(!1),M=()=>{p.value||c.value||(V.value=!0)},q=U=>{V.value=U},O=U=>{if(U){if(f.value&&Array.isArray(U)){let _=U[0],K=me(_[0]),ne=me(_[1]),F=me(_[2]),G=new Date(K,ne-1,F),E=U[1];K=me(E[0]),ne=me(E[1]),F=me(E[2]);let $=new Date(K,ne-1,F);if(k.startDate=G,k.startArray=yt(G),k.endDate=$,k.endArray=yt($),s.valueFormat){let z=gt(s,G,s.valueFormat),W=gt(s,$,s.valueFormat);N("update:modelValue",[z,W],{})}else N("update:modelValue",[G,$],{})}else{let _=U,K=me(_[0]),ne=me(_[1]),F=me(_[2]),G=new Date(K,ne-1,F);if(k.startDate=G,k.startArray=yt(G),s.valueFormat){let E=gt(s,G,s.valueFormat);N("update:modelValue",E,{})}else N("update:modelValue",G,{})}N("change",U,{})}},P=U=>{let _=U.target.value;m.value=!0,N("focus",_,U)},j=U=>{setTimeout(()=>{m.value=!1},0);let _=U.target.value;s.maxLength&&_.length>Number(s.maxLength)&&(_=_.slice(0,Number(s.maxLength))),N("blur",_,U)},D=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":c.value,"is-readonly":p.value})),ee=(0,t.computed)(()=>we(s.unit)>0),te=(0,t.computed)(()=>we(s.unit)>0&&!m.value),oe=(0,t.computed)(()=>({hidden:!te.value})),H=U=>{A(),N("update:modelValue",null,U),N("change","",U),N("clear","")},Z=(0,t.computed)(()=>s.clearable&&!c.value&&!p.value),X=(0,t.computed)(()=>{let U=we(g.value)>0;return s.clearable&&U&&m.value}),Q=U=>{X.value?H(U):M()},R=(0,t.computed)(()=>X.value&&Z.value?i:a),Y=(0,t.computed)(()=>({action:!0}));return S(),()=>{if(y.value==="on"&&(p.value||c.value))return r({modelValue:g.value},d.slots);const U={class:w.value,style:L.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:M,onFocus:P,onBlur:j};u&&(U.disabled=!0);const _=[],K=(0,t.h)("input",U);_.push(K);const ne=[],F=(0,t.h)(R.value,{class:["action-icon"]}),G=(0,t.h)("view",{class:Y.value,onClick:Q},{default:()=>[F]});if(ne.push(G),ee.value){const de=(0,t.h)("view",{class:oe.value},[s.unit]);ne.push(de)}const E=(0,t.h)("view",{class:D.value},{default:()=>ne});_.push(E);const $={default:()=>_};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const z=be(s,In);z.visible=V.value,z["onUpdate:visible"]=q,z["default-value"]=x.value,z.onChoose=O;const W={};if(d.slots.btn){const de=d.slots.btn();W.btn=()=>de}d.slots.day&&(W.day=d.slots.day),d.slots.topInfo&&(W.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(W.bottomInfo=d.slots.bottomInfo);const J=(0,t.h)(o,z,W);$.hide=()=>[J];const ae={...Qe(s,In,Fi),ref:v,class:T.value};return s.prop&&(ae.prop=`${s.prop}_item`),l(ae,$)}}}}var{componentName:d0,create:f0,scope:m0}=le("calendar-item"),p0=f0(c0(d0,m0,sl,Ie,ze,{CloseIcon:re.CircleClose,MarkIcon:re.Date},!1)),To=p0,v0={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 h0(e,{CheckNormal:n,Checked:o}){return{props:{...v0},setup(l,{emit:r,slots:i}){const a=(0,t.inject)("parent",null),u=_n(),s=(0,t.computed)(()=>a.label.value===l.label),d=(0,t.computed)(()=>a.position),v=()=>{const S=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const C=ce(l.iconSize),b=l.checkedIcon??u.radio.Checked??o;return S.push("fox-radio__icon"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(b,{width:C,height:C,class:S})}}else{if(i.icon)return i.icon();{const C=ce(l.iconSize),b=l.icon??u.radio.CheckNormal??n;return S.push("fox-radio__icon--unchecked"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(b,{width:C,height:C,class:S})}}},c=()=>{const S=[`${e}__label`];return l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},i.default?.())},p=()=>{const S=[`${e}__button`];return s.value&&S.push(`${e}__button--active`),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},i.default?.())},y=()=>{s.value||l.disabled||l.readonly||a.updateValue(l.label)},N=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${N?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?p():N?[c(),v()]:[v(),c()]])}}}var{componentName:g0,create:y0}=le("radio"),b0=y0(h0(g0,{CheckNormal:re.CheckNormal,Checked:re.CheckChecked})),ul=b0,{componentName:Br,create:S0}=le("radio-group"),k0=S0({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:o,exposeApi:l}=He({context:n},e.prop),{slots:r}=n,i=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),l(),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Br} ${Br}--${e.direction}`,style:a},r.default?.())}}}),cl=k0;function Tr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(Sn(e,i)===o)return r}else if(l==="item"){if(xe(o,i))return r}else if(_t(e,i)===o)return r}return-1}function Sn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function _t(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function w0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function C0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var N0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function A0(){const e=mt();return new N0(e)}function B0(e){return{text:e,value:e}}var Oi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},T0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},V0={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:""}},x0={...ge,...Se,...Oi,...T0,...V0};function $0(e,n,o,l,r,i){return{props:x0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:v,innerReadonly:c,readonly:p,browse:y}=$e(a),{emitEvent:N,exposeApi:S}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return v.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),C=e,b=(0,t.computed)(()=>({[C]:!0,disabled:v.value,readonly:p.value})),m=(0,t.computed)(()=>({[`${C}__content`]:!0})),f=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),k=A0(),A=(0,t.ref)([]),h=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(A.value)?A.value.filter(a.sourceFilter):A.value);(0,t.watch)([()=>a.source,()=>a.params],async([w,I])=>{if(w){const L=await k.load("radio",w,I);if(L.length>0)if(typeof L[0]=="string"){const V=L.map(M=>B0(M));A.value=V}else A.value=L;else A.value=[]}},{immediate:!0});let g=(0,t.ref)(-1);(0,t.watch)([()=>a.modelValue,()=>h.value],async([w,I])=>{g.value=Tr(a,I,w,a.valueType),N("setValue",w)},{deep:!0});const x=(0,t.computed)(()=>{if(!a.source)return a.modelValue;if(g.value===-1)return null;const w=h.value[g.value];return _t(a,w)}),B=w=>{let I=null,L=null;if(h.value.length>0){let V=Tr(a,h.value,w,"value");g.value=V,V>=0&&(L=h.value[V],a.valueType==="text"?I=Sn(a,L):a.valueType==="item"?I=L:I=_t(a,L))}else I=w;N("update:modelValue",I),N("change",I,L)},T=()=>{let w=null,I=null;if(h.value.length>0&&g.value!==-1){let L=h.value[g.value];a.valueType==="text"?w=Sn(a,L):a.valueType==="item"?w=L:w=_t(a,L)}N("update:modelValue",w),N("change",w,I)};if(S({clear(){g.value!==-1&&(g.value=-1,T())},setDisabled:w=>{d.value=w},setReadonly:w=>{c.value=w}}),a.source){const w=()=>{const I=[],L=be(a,Oi);return h.value.forEach((V,M)=>{const q=_t(a,V),O=w0(a,V);let P={...L,label:q,disabled:O};const j=C0(a,V,M);P={...P,...j},v.value&&(P.disabled=!0),p.value&&(P.readonly=!0);const D={};if(u.slots.icon&&(D.icon=u.slots.icon),u.slots.checkedIcon&&(D.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const te=u.slots.text(V);D.default=()=>[te]}else{const te=Sn(a,V);D.default=()=>te}let ee=(0,t.h)(i,P,D);I.push(ee)}),I};return()=>{if(y.value==="on"&&(p.value||v.value))return l({modelValue:x.value,source:h.value},u.slots);const I=w(),L=(0,t.h)(r,{class:m.value,direction:a.direction,textPosition:a.textPosition,textAlign:f.value,modelValue:x.value,"onUpdate:modelValue":B},{default:()=>I}),V={default:()=>L};V.label=u.slots.default,V.prepend=u.slots.prepend,V.append=u.slots.append,V.fixedPreTip=u.slots.fixedPreTip,V.fixedTip=u.slots.fixedTip;const M={...be(a,Se,ge),ref:s,class:b.value};return a.prop&&(M.prop=`${a.prop}_item`),o(M,V)}}else return()=>{const w=u.slots.options?.()??[];return(0,t.h)(r,{class:m.value,direction:a.direction,textPosition:a.textPosition,textAlign:f.value,modelValue:x,"update:modelValue":B},{default:()=>w})}}}}var{componentName:E0,create:D0,scope:I0}=le("radio-item"),q0=D0($0(E0,I0,Ie,ze,cl,ul)),Vo=q0,P0={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"}},M0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:P0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:a,exposeApi:u}=He({context:i},r.prop),s=_n(),{slots:d}=i,v=(0,t.inject)("parent",null),c=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,A=>{c.partialSelect=A});const p=(0,t.computed)(()=>!!v),y=(0,t.computed)(()=>p.value?v.value.value.includes(r.label):!!r.modelValue),N=(0,t.computed)(()=>p.value?v.position:r.textPosition);let S="";const C=(A,h)=>{S="click",a("update:modelValue",A),a("change",A,h)};(0,t.watch)(()=>r.modelValue,A=>{S=="click"?S="":a("change",A)});const b=()=>{const A=[];if(c.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const h=ce(r.iconSize),g=r.indeterminateIcon??s.checkbox.Indeterminate??l;return A.push("fox-checkbox__icon--indeterminate"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(g,{width:h,height:h,class:A})}}else if(y.value){if(d.checkedIcon)return d.checkedIcon();{const h=ce(r.iconSize),g=r.checkedIcon??s.checkbox.Checked??o;return A.push("fox-checkbox__icon"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(g,{width:h,height:h,class:A})}}else{if(d.icon)return d.icon();{const h=ce(r.iconSize),g=r.icon??s.checkbox.CheckNormal??n;return A.push("fox-checkbox__icon--unchecked"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(g,{width:h,height:h,class:A})}}},m=()=>{const A=[`${e}__label`];return r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)("view",{class:A},d.default?.())},f=()=>{const A=[`${e}__button`];return y.value&&A.push(`${e}__button--active`),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)("view",{class:A},d.default?.())},k=A=>{if(!(r.disabled||r.readonly)){if(y.value&&c.partialSelect){c.partialSelect=!1,C(y.value,d.default?.()[0].children);return}if(C(!y.value,d.default?.()[0].children),p.value){const h=v.value.value,g=v.max.value,{label:x}=r,B=h.indexOf(x);B>-1?h.splice(B,1):B<=-1&&(h.length<g||!g)&&h.push(x),v.updateValue(h)}}};return(0,t.onMounted)(()=>{p.value&&v.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&v.unlink(r)}),u(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${N.value==="left"?`${e}--reverse`:""}`,onClick:k},[r.shape=="button"?f():[b(),m()]])}}),{componentName:R0,create:z0}=le("checkbox"),L0=z0(M0(R0,{CheckNormal:re.CheckNormal,Checked:re.Checked,Indeterminate:re.CheckDisabled})),dl=L0,{create:F0,componentName:Vr}=le("checkbox-group"),O0={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}},K0=F0({props:O0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=He({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),a=c=>{i.children.push(c)},u=c=>{const p=i.children.findIndex(y=>y===c);p!==-1&&i.children.splice(p,1)},s=c=>{o("update:modelValue",c),o("change",c)},d=c=>{const p=[];c&&i.children.forEach(y=>{y?.disabled||p.push(y?.label)}),o("update:modelValue",p)},v=()=>{const c=i.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);o("update:modelValue",c)};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:a,unlink:u}),(0,t.watch)(()=>e.modelValue,c=>{o("change",c)}),l({toggleAll:d,toggleReverse:v}),()=>{const c={};return e.textAlign&&(c["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Vr} ${Vr}--${e.direction}`,style:c},r.default?.())}}}),fl=K0;function xr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(Wl(e,i)===o)return r}else if(l==="item"){if(xe(o,i))return r}else if(kn(e,i)===o)return r}return-1}function Wl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function U0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function _0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var H0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function j0(){const e=mt();return new H0(e)}function W0(e){return{text:e,value:e}}var Y0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ki={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:", "}},Q0={...ge,...Se,...Y0,...Ki,...X0};function G0(e,n,o,l,r,i){return{props:Q0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:v,innerReadonly:c,readonly:p,browse:y}=$e(a),N=e,S=(0,t.computed)(()=>({[N]:!0,disabled:v.value,readonly:p.value})),C=(0,t.computed)(()=>({[`${N}__content`]:!0})),b=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),{emitEvent:m,exposeApi:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return v.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),k=j0(),A=(0,t.ref)([]),h=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(A.value)?A.value.filter(a.sourceFilter):A.value);(0,t.watch)([()=>a.source,()=>a.params],async([w,I])=>{if(w){const L=await k.load("checkbox",w,I);if(L.length>0)if(typeof L[0]=="string"){const V=L.map(M=>W0(M));A.value=V}else A.value=L;else A.value=[]}},{immediate:!0});const g=(0,t.ref)([]);(0,t.watch)([()=>a.modelValue,()=>h.value],async([w,I])=>{const L=[];Array.isArray(w)&&w.forEach(V=>{let M=xr(a,I,V,a.valueType);M!==-1&&L.push(M)}),!xe(L,g.value)&&(g.value=L,m("setValue",L))},{deep:!0});const x=(0,t.computed)(()=>{if(!a.source)return a.modelValue;let w=[];return g.value.forEach(I=>{let L=h.value[I];w.push(kn(a,L))}),w}),B=w=>{let I=[],L=[];if(h.value.length>0){const V=[];Array.isArray(w)&&w.forEach(M=>{let q=xr(a,h.value,M,"value");q!==-1&&V.push(q);const O=h.value[q];L.push(O),a.valueType==="text"?I.push(Wl(a,O)):a.valueType==="item"?I.push(O):I.push(kn(a,O))}),g.value=V}else I=w;m("update:modelValue",I),m("change",I,L)},T=(0,t.ref)();if(f({toggleAll:w=>{T.value.toggleAll(w)},toggleReverse:()=>{T.value.toggleReverse()},setDisabled:w=>{d.value=w},setReadonly:w=>{c.value=w}}),a.source){const w=()=>{const I=[],L=be(a,Ki);return h.value.forEach((V,M)=>{const q=kn(a,V),O=U0(a,V);let P={...L,label:q,disabled:O};const j=_0(a,V,M);P={...P,...j},v.value&&(P.disabled=!0),p.value&&(P.readonly=!0);const D={};if(u.slots.icon&&(D.icon=u.slots.icon),u.slots.checkedIcon&&(D.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(D.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const te=u.slots.text(V);D.default=()=>[te]}else{const te=Wl(a,V);D.default=()=>te}let ee=(0,t.h)(i,P,D);I.push(ee)}),I};return()=>{if(y.value==="on"&&(p.value||v.value))return l({modelValue:x.value,source:h.value,separator:a.separator},u.slots);const I=w(),L=(0,t.h)(r,{class:C.value,ref:T,direction:a.direction,max:a.max,textPosition:a.textPosition,modelValue:x.value,"onUpdate:modelValue":B},{default:()=>I}),V={default:()=>L};V.label=u.slots.default,V.prepend=u.slots.prepend,V.append=u.slots.append,V.fixedPreTip=u.slots.fixedPreTip,V.fixedTip=u.slots.fixedTip;const M={...be(a,Se,ge),ref:s,class:S.value};return a.prop&&(M.prop=`${a.prop}_item`),o(M,V)}}else return()=>{const w=u.slots.options?.()??[];return(0,t.h)("view",{class:C.value,ref:T,direction:a.direction,max:a.max,textPosition:a.textPosition,textAlign:b.value,modelValue:x,"onUpdate:modelValue":B},{default:()=>w})}}}}var{componentName:Z0,create:J0,scope:ep}=le("checkbox-item"),tp=J0(G0(Z0,ep,Ie,ze,fl,dl)),xo=tp,$o={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:np,create:lp}=le("switch"),op=lp({components:{Loading2:re.Loading2},props:{...$o},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=np;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=u=>{if(e.disabled||e.loading)return;i="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{i=="click"?i="":n("change",u)}),{classes:l,style:r,isActive:o,onClick:a}}}),ap={class:"fox-switch-button"};function rp(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",ap,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(a,{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 ml=ie(op,[["render",rp]]),ip={...ge,...Se,...$o};function sp(e,n,o,l,r){return{props:ip,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=e,C=(0,t.computed)(()=>({[S]:!0,disabled:d.value,readonly:c.value})),b=(0,t.computed)(()=>({[`${S}__content`]:!0})),m=(0,t.computed)(()=>[`${S}__wrap`]),f=Re(i,"modelValue",null,y),k=A=>{f.value=A,y("update:modelValue",A,{}),y("change",A,{})};return N({setDisabled:A=>{s.value=A},setReadonly:A=>{v.value=A}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:f.value},a.slots);let A=be(i,$o);const h={class:b.value,...A,disabled:d.value||c.value,value:f.value,"onUpdate:modelValue":k},g=[],x=(0,t.h)(r,h);g.push(x);const B={default:()=>g};B.label=a.slots.default,B.fixedPreTip=a.slots.fixedPreTip,B.fixedTip=a.slots.fixedTip;const T={...be(i,Se,ge),ref:u};return i.prop&&(T.prop=`${i.prop}_item`),T.class=C.value,T["content-class"]=m.value,o(T,B)}}}}var{componentName:up,create:cp,scope:dp}=le("switch-item"),fp=cp(sp(up,dp,Ie,ze,ml)),Eo=fp,mp={...ge,...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 pp(e,n,o,l){return{props:mp,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:a,disabled:u,readonly:s}=$e(r),{emitEvent:d,exposeApi:v}=Ve({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value},get props(){return r},context:i,get templateRefProxy(){return a.value}},r.prop??i.attrs.name),{toLocaleRefs:c}=(0,he.useFoxI18n)(n),p=c(r,["placeholder"]),y=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,q=>{y.value=q,d("change",q)});const N=e,S=(0,t.computed)(()=>({[`${N}`]:!0,disabled:u.value,readonly:s.value})),C=(0,t.computed)(()=>({[`${N}__content`]:!0})),b=(0,t.computed)(()=>({[`${N}__main`]:!0,[`${N}__placeholder`]:!u.value&&pe(y.value)})),m=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),f=(0,t.computed)(()=>{const q={};return m.value&&(q["text-align"]=m.value),q}),k=(0,t.computed)(()=>!pe(r.modelValue)||i.slots.main?!0:!!pe(r.desc)),A=(0,t.computed)(()=>pe(y.value)?p.placeholder.value:y.value),h=(0,t.computed)(()=>!pe(r.desc)||i.slots.sub),g=(0,t.computed)(()=>({[`${N}__sub`]:!0})),x=(0,t.computed)(()=>{const q={};return m.value&&(q["text-align"]=m.value),q}),B=()=>{d("focus",y.value)},T=()=>{d("blur",y.value)},w=(0,t.computed)(()=>({[`${N}__append`]:!0})),I=(0,t.computed)(()=>we(r.unit)>0),L=q=>{u.value==!0||s.value==!0||d("click")},V=(0,t.computed)(()=>r.icon??o),M=(0,t.computed)(()=>({action:!0}));return v(),()=>{const q=[];if(typeof i.slots.content=="function"){const H=i.slots.content();q.push(H)}else{const H=[];if(k.value){const X={tabIndex:0,class:b.value,style:f.value,onFocus:B,onBlur:T};let Q=null;i.slots.main?Q=(0,t.h)("view",X,[i.slots.main(A.value)]):Q=(0,t.h)("view",X,[A.value]),H.push(Q)}if(h.value){const X={tabIndex:0,class:g.value,style:x.value,onFocus:B,onBlur:T};let Q=null;i.slots.sub?Q=(0,t.h)("view",X,[i.slots.sub(r.desc)]):Q=(0,t.h)("view",X,[r.desc]),H.push(Q)}const Z=(0,t.h)("view",{class:C.value,onClick:L},H);q.push(Z)}const O=[],P=ce(r.iconSize);let j=i.slots.icon;if(!j){const H={width:P,height:P,class:["action-icon"]};j=(0,t.h)(V.value,H)}const D=(0,t.h)("view",{class:M.value,onClick:L},{default:()=>[j]});if(O.push(D),I.value){const H=(0,t.h)("view",{},[r.unit]);O.push(H)}const ee=(0,t.h)("view",{class:w.value},{default:()=>O});q.push(ee);const te={default:()=>q};te.label=i.slots.default,te.prepend=i.slots.prepend,te.append=i.slots.append,te.fixedPreTip=i.slots.fixedPreTip,te.fixedTip=i.slots.fixedTip;const oe={...be(r,Se,ge),ref:a,class:S.value};return r.prop&&(oe.prop=`${r.prop}_item`),l(oe,te)}}}}var{componentName:vp,create:hp,scope:gp}=le("link-item"),yp=hp(pp(vp,gp,re.ArrowRight,Ie)),Do=yp,Io={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:bp,componentName:Sp}=le("rate"),kp=bp({props:{...Io},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[Sp]:!0})),i=y=>{n("update:modelValue",y),n("change",y)},a=(y,N)=>{if(e.disabled||e.readonly)return;let S=0;N===1&&e.modelValue===N||(S=N,e.allowHalf&&y==2&&(S-=.5)),i(S)},u=(y,N,S)=>{let C=0;for(let b=N.value.length-1;b>=0;b--){const m=N.value[b];if(y>m.offsetLeft){S?C=b+(y>m.offsetLeft+m.clientWidth/2?1:.5):C=b+1;break}}return C},s=pt(),d={onTouchStart(y){!e.touchable||e.readonly||s.start(y)},onTouchMove(y){e.touchable&&(s.move(y),s.isHorizontal()&&l.value&&(y.preventDefault(),i(u(s.moveX.value,l,e.allowHalf))))}},v=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??re.StarFillN);return{classes:r,...d,onClick:a,toPxString:ue,renderIcon:(y,N)=>(0,t.h)(y,N),rateRefs:l,refRandomId:v,slots:o,customIcon:c}}}),wp=["id"],Cp={class:"fox-rate-item__icon--full"},Np={key:0,class:"fox-rate-item__icon--half"},Ap={key:1,class:"fox-rate-item__icon--half"};function Bp(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:a,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+a,style:(0,t.normalizeStyle)(a<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",Cp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||a>e.modelValue}]),onClick:u=>e.onClick(1,a)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>a?((0,t.openBlock)(),(0,t.createElementBlock)("view",Np,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<a?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ap,[((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:u=>e.onClick(2,a)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,wp))),128))],34)}var pl=ie(kp,[["render",Bp]]),Tp={...ge,...Se,...Io};function Vp(e,n,o,l,r){return{props:Tp,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=e,C=(0,t.computed)(()=>({[`${S}`]:!0,disabled:d.value,readonly:c.value})),b=(0,t.computed)(()=>({[`${S}__content`]:!0})),m=(0,t.computed)(()=>[`${S}__wrap`]),f=Re(i,"modelValue",null,y),k=A=>{f.value=A,y("update:modelValue",A,{}),y("change",A,{})};return N({setDisabled:A=>{s.value=A},setReadonly:A=>{v.value=A}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:f.value},a.slots);const A={...be(i,Io),class:b.value,disabled:d.value,readonly:c.value,value:f.value,"onUpdate:modelValue":k},h=[],g=(0,t.h)(r,A);h.push(g);const x={default:()=>h};if(a.slots.default){const T=a.slots.default();x.label=()=>T}const B=be(i,Se,ge);return i.prop&&(B.prop=`${i.prop}_item`),B.class=C.value,B["content-class"]=m.value,B.ref=u,o(B,x)}}}}var{componentName:xp,create:$p,scope:Ep}=le("rate-item"),Dp=$p(Vp(xp,Ep,Ie,ze,pl)),qo=Dp,Ip=/scroll|auto|overlay/i,Ui=window;function qp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Yl(e,n=Ui){let o=e;for(;o&&o!==n&&qp(o);){const{overflowY:l}=window.getComputedStyle(o);if(Ip.test(l))return o;o=o.parentNode}return n}function _i(e,n=Ui){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=Yl(e.value,n))}),o}var Hi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Pp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},showFinished:{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 Mp(e,n,o){return{props:Pp,emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,he.useFoxI18n)(n),s=u(l,["pullText","loadText","noMoreText"]),d=(0,t.ref)(),v=_i(d),c=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),p=(0,t.computed)(()=>({[a]:!0})),y=(0,t.computed)(()=>{const k=[`${a}__container`];return l.containerClass&&k.push(l.containerClass),k}),N=k=>k?k.offsetTop+N(k.offsetParent):0,S=()=>{let k=0,A=0,h="down";if(v.value==window){const g=Hi();d.value&&(k=N(d.value)+d.value.offsetHeight-g-window.innerHeight),A=g}else{const{scrollHeight:g,clientHeight:x,scrollTop:B}=v.value;k=g-x-B,A=B}return c.beforeScrollTop>A?h="up":h="down",c.beforeScrollTop=A,r("scroll-change",A),k<=l.threshold&&h=="down"},C=()=>{Je(()=>{if(!S()||!l.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},b=()=>{v.value&&v.value.addEventListener("scroll",C,l.useCapture)},m=()=>{v.value&&v.value.removeEventListener("scroll",C,l.useCapture)};(0,t.onMounted)(()=>{b(),l.immediate&&C()}),(0,t.onUnmounted)(()=>{m()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,b())}),(0,t.onDeactivated)(()=>{f.value=!0,m()}),(0,t.watch)(()=>l.modelValue,k=>{k||(c.isInfiniting=!1)}),()=>{const k=(0,t.h)("view",{class:y.value},[i?.default?.()]),A=[];if(c.isInfiniting){let g=i?.loading?.()??null;if(!g){let B=i?.loadingIcon?.()??null;B||(B=(0,t.h)(o,{class:[`${a}__bottom-box__img`]}));const T=(0,t.h)("view",{class:`${a}__bottom-box__text`},[s.loadText.value]);g=[B,T]}const x=(0,t.h)("view",{class:`${a}__bottom-box`},g);A.push(x)}else if(!l.hasMore&&l.showFinished){let g=i?.finished?.()??null;g||(g=(0,t.h)("view",{class:`${a}__bottom-tips`},[s.noMoreText.value]),A.push(g))}const h=[k];if(A.length>0){const g=(0,t.h)("view",{class:`${a}__bottom`},A);h.push(g)}return(0,t.h)("view",{class:p.value,ref:d},h)}}}}var{componentName:Rp,create:zp,scope:Lp}=le("infinite-loading"),Fp=zp(Mp(Rp,Lp,re.Loading)),vl=Fp,Op={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"}},Kp=(e,n,o)=>({props:Op,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=He({context:r},l.prop),{toLocaleRefs:a}=(0,he.useFoxI18n)(n),u=a(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),v=(0,t.computed)(()=>({background:l.background})),c=(0,t.computed)(()=>({background:l.inputBackground})),p=T=>{let w=T.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),i("update:modelValue",w,T),i("change",w,T)},y=(0,t.ref)({}),N=T=>{let w=T.target.value;d.active=!0,y.value=l.focusStyle,i("focus",w,T)},S=T=>{setTimeout(()=>{d.active=!1},0);let w=T.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),y.value={},i("blur",w,T)},C=T=>{i("update:modelValue","",T),i("change","",T),i("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),m=(0,t.computed)(()=>{const T={};return b.value||(T.display="none"),T}),f=T=>{l.autoblur&&x.value?.blur(),(typeof T.cancelable!="boolean"||T.cancelable)&&T.preventDefault(),i("search",l.modelValue)},k=T=>{i("keyup-input",T)},A=T=>{i("click-input",T)},h=T=>{i("click-left-icon",l.modelValue,T)},g=(0,t.computed)(()=>({textAlign:l.inputAlign})),x=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&x.value.focus()});const B=()=>{const T=[];if(s.leftin){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:h},[s.leftin()]);T.push(V)}const w=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:x,style:g.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:p,onFocus:N,onBlur:S,onkeyup:k}),I=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:f},[w]);T.push(I);const L=[];if(l.clearable){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:C},[(0,t.h)(s?.clear?.()??l.clearIcon??o)]);L.push(V)}if(s.rightin){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);L.push(V)}if(L.length>0){const V=(0,t.h)("view",{class:`${e}__input-inner-right`},L);T.push(V)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...c.value,...y.value}},T)};return()=>{const T=[];if(l.label){const I=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);T.push(I)}if(s.leftout){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);T.push(I)}const w=B();if(T.push(w),s.rightout){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);T.push(I)}return(0,t.h)("view",{class:`${e}`,style:v.value},T)}}}),{componentName:Up,create:_p,scope:Hp}=le("searchbar"),jp=_p(Kp(Up,Hp,re.CircleClose)),hl=jp,qn={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 Wp(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(wn(e,i)===o)return r}else if(l==="item"){if(xe(o,i))return r}else if(ji(e,i)===o)return r}return-1}function wn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $r(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function ji(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Xp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Qp=class{scope;constructor(e){this.scope=e}async load(e,n,o,l,r,i,a){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof a=="function"&&(s=s.filter(a));let d=(o-1)*l,v=d+l;v>s.length&&(v=s.length);const c=s.slice(d,v);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,r,i]);const u=at(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(De(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[n,o,l,r]))}};function Gp(){const e=mt();return new Qp(e)}function Zp(e,n,o,l,r,i,a,u,s,d,v){return{props:qn,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,p){const{emitEvent:y,exposeApi:N}=He({context:p},c.prop),{slots:S}=p,{toLocaleRefs:C}=(0,he.useFoxI18n)(n),b=C(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),m=Gp(),f=(0,t.ref)([]),k=(0,t.ref)(0),A=(0,t.ref)(""),h=(0,t.shallowRef)(null),g=(0,t.computed)(()=>{const F={};return c.params&&Object.assign(F,c.params),pe(A.value)||(F[`${c.searchKey}`]=A.value),h.value&&Object.assign(F,h.value),F});let x=!0;const B=async(F,G,E)=>{try{if(w.value===!1)return;let $=null;pe(A.value)||($=W=>{const J=wn(c,W);if(typeof J=="string"&&J.includes(A.value))return!0;const ae=$r(c,W);return!!(typeof ae=="string"&&ae.includes(A.value))});const z=await m.load("actionsheet",F,G,E,g.value,x,$??void 0);x=!1,Array.isArray(z)?(f.value=z,k.value=1,w.value=!1):!Array.isArray(z.page)||z.page.length===0?(console.warn("[FoxUI] can not load more data"),w.value=!1):(Reflect.apply([].push,f.value,z.page),k.value=Math.ceil(f.value.length/c.pageSize),(z.totalSize&&f.value.length>=z.totalSize||E<z.page.length)&&(w.value=!1)),T.value=!1}catch($){console.error("[FoxUI] ActionSheet load more data fail",$),w.value=!0,k.value=0,f.value=[]}setTimeout(()=>{y("loaded-data")},250)},T=(0,t.ref)(!1),w=(0,t.ref)(!0),I=async()=>{if(!c.source){T.value=!1;return}await B(c.source,k.value+1,c.pageSize)};let L=null;(0,t.watch)(A,(F,G)=>{L&&(clearTimeout(L),L=null),pe(F)&&!pe(G)&&(L=setTimeout(()=>{M()},c.searchDelayTriggerClear))});const V=()=>{w.value=!0,k.value=0,f.value=[],c.source&&I()},M=()=>{V()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([F,G,E])=>{c.source&&V()},{immediate:!0});const q=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),O=(0,t.ref)([]);let P=null;const j=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,F=>{j.value!==F&&(j.value=F),F?P=[...O.value]:P=null});const D=(F,G)=>{const E=[];return Array.isArray(F)||(F=[F]),F.forEach($=>{let z=Wp(c,G,$,c.valueType);z!==-1&&E.push(z)}),xe(E,O.value)?!1:(O.value=E,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([F,G],[E,$])=>{if(D(F,G)){const z=ee();te(z)}},{deep:!0});const ee=()=>{const F=[],G=[],E=[];for(let J of O.value){const ae=f.value[J];G.push(ae);const de=wn(c,ae);if(E.push(de),c.valueType==="item")F.push(ae);else if(c.valueType==="text")F.push(de);else{const fe=ji(c,ae);F.push(fe)}}let $=null,z=null,W=null;return c.multiple?($=F,z=E,W=G):($=F[0]??null,z=E[0]??null,W=G[0]??null),{value:$,text:z,item:W}},te=F=>{y("update:modelValue",F.value),y("update:text",F.text),y("change",F.value,F.item,F.text)},oe=()=>{P&&(O.value=P)},H=F=>{const G=O.value.indexOf(F);c.multiple?G===-1?O.value.push(F):O.value.splice(G,1):G===-1?O.value=[F]:O.value=[],(q.value||!c.poppable&&!c.showFooter)&&Q()},Z=F=>{j.value=F,y("update:visible",F)},X=()=>{const F=()=>{oe(),Z(!1)},G=c.beforeMethod??c.beforeClose;if(typeof G=="function"){const E=G("close");Ct(E)?E.then($=>{$!==!1&&F()}).catch(()=>{F()}):E!==!1&&F()}else F()},Q=()=>{const F=ee(),G=()=>{te(F),Z(!1)},E=c.beforeMethod??c.beforeClose;if(typeof E=="function"){const $=E("confirm",F.value,F.item,F.text);Ct($)?$.then(z=>{z!==!1&&G()}).catch(()=>{G()}):$!==!1&&G()}else G()},R=()=>{let F=b.title.value??"";return S.title&&(F=S.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[F]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:X})])},Y=()=>{let F=null;return S.search?F=S.search():F=(0,t.h)(i,{onSearch:V,placeholder:b.seachPlaceholder.value,disabled:c.disabled,modelValue:A.value,"onUpdate:modelValue":G=>{A.value=G}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[F])},U=(F,G,E,$,z)=>{if(S.optionLabel)return S.optionLabel({text:F,checked:G,disabled:E,subText:$,item:z});const W=[],J=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[F]);if(W.push(J),$){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[$]);W.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},W)},_=(F,G,E,$)=>S.optionIcon?S.optionIcon({checked:F,disabled:G,iconSize:E,item:$}):F?S.checkedIcon?S.checkedIcon({disabled:G,item:$}):(0,t.h)(c.checkedIcon??u,{width:E,height:E,class:["fox-actionsheet__list-item-icon"]}):S.icon?S.icon({disabled:G,item:$}):(0,t.h)(c.icon??a,{width:E,height:E,class:["fox-actionsheet__list-item-icon"]}),K=()=>{const F=[];for(let G=0;G<f.value.length;G++){const E=f.value[G],$=wn(c,E),z=$r(c,E),W=["fox-actionsheet__list-item"],J={};let ae=Yp(c,E),de=c.iconSize?ce(c.iconSize):null;const fe=Xp(c,E,G);fe&&(ae=ae||fe.disabled,fe.class&&W.push(fe.class),fe.style&&Object.assign(J,fe.style)),ae=!!(c.disabled||ae);const ke=O.value.includes(G);ae&&W.push("is-disabled"),ke&&W.push("is-checked");const Le={class:W,style:J,key:`${G}`,onClick:()=>{ae||H(G)}};let Fe=[];if(S.option)Fe.push(S.option({item:E,checked:ke,disabled:ae}));else{const qe=U($,ke,ae,z,E);Fe.push(qe);const ht=_(ke,ae,de,E);Fe.push(ht),c.textPosition==="right"&&Fe.reverse()}const Ee=(0,t.h)("view",Le,Fe);F.push(Ee)}return F},ne=()=>{let F=[];if(S.buttons)F=S.buttons();else{const G=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Q,disabled:c.disabled},{default:()=>b.confirmText.value});F.push(G)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[F])};return N({search:async(F=null,G=!0)=>{h.value=F&&(0,t.toRaw)(F),(0,t.triggerRef)(h),G&&(w.value=!0,k.value=0,f.value=[]),(0,t.nextTick)(()=>{I()})},clear:()=>{w.value=!0,k.value=0,f.value=[]},confirm:()=>{Q()},cancel:()=>{X()}}),()=>{const F=[];if(c.showHeader){const ae=R();F.push(ae)}if(c.showSearchbar){const ae=Y();F.push(ae)}let G=null;if(S.content)G=S.content();else{const ae=K();G=(0,t.h)(l,{hasMore:w.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:T.value,"onUpdate:modelValue":de=>{T.value=de},onLoadMore:I},{default:()=>ae})}const E={};c.optionsHeight&&(E.height=c.optionsHeight);const $={"fox-actionsheet__list":!0};c.poppable||($["fox-actionsheet__list--inner"]=!0);const z=(0,t.h)("view",{class:$,style:E},[G]);if(F.push(z),c.showFooter&&!q.value){const ae=ne();F.push(ae)}const W=(0,t.h)("view",{class:"fox-actionsheet"},F);if(!c.poppable)return W;const J=["fox-actionsheet__popup"];return c.popClass&&J.push(c.popClass),(0,t.h)(o,{popClass:J.join(" "),visible:j.value,closeable:!1,"onUpdate:visible":Z,position:c.position,round:"round",onClickOverlay:X,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>W})}}}}var{componentName:Jp,create:ev,scope:tv}=le("actionsheet-pane"),nv=ev(Zp(Jp,tv,Ce,vl,vt,hl,re.CheckNormal,re.Checked,re.Close,re.Search2,!1)),gl=nv,Wi={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:" "},emptyText:{type:String}},lv={...ge,...Se,...Wi,...qn};function ov(e,n,o,l,r,i,a,u){return{props:lv,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:v,innerDisabled:c,disabled:p,innerReadonly:y,readonly:N,browse:S}=$e(s),{emitEvent:C,exposeApi:b}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,he.useFoxI18n)(n),f=m(s,["placeholder"]),k=(0,t.ref)(!1),A=Re(s,"modelValue",null,C),h=(0,t.ref)(),g=(0,t.computed)(()=>Array.isArray(h.value)&&h.value.length>0?h.value.join(s.separator):h.value?h.value:s.emptyText??""),x=e,B=(0,t.computed)(()=>({[x]:!0,disabled:p.value,readonly:N.value})),T=(0,t.computed)(()=>({[`${x}__content`]:!0})),w=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),I=(0,t.computed)(()=>{const K={};return w.value&&(K["text-align"]=w.value),K}),L=(0,t.ref)(!1),V=()=>{L.value=!0},M=K=>{L.value=K},q=K=>{A.value=K,C("update:modelValue",K)},O=(K,ne)=>{C("change",K,ne)},P=K=>{let ne=K.target.value;k.value=!0,C("focus",ne,K)},j=K=>{setTimeout(()=>{k.value=!1},0);let ne=K.target.value;s.maxLength&&ne.length>Number(s.maxLength)&&(ne=ne.slice(0,Number(s.maxLength))),C("blur",ne,K)},D=K=>{h.value=K,C("update:text",K)},ee=(0,t.computed)(()=>({[`${x}__append`]:!0})),te=(0,t.computed)(()=>we(s.unit)>0),oe=(0,t.computed)(()=>we(s.unit)>0&&!k.value),H=(0,t.computed)(()=>({hidden:!oe.value})),Z=K=>{A.value="",C("update:modelValue","",K),C("change","",K),C("clear","")},X=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),Q=(0,t.computed)(()=>we(A.value)>0&&k.value),R=K=>{Q.value?Z(K):V()},Y=(0,t.computed)(()=>Q.value&&X.value?r:i),U=(0,t.computed)(()=>({action:!0})),_=(0,t.ref)(null);return b({search:K=>{_.value&&_.value.search(K)},clear:()=>{_.value&&_.value.clear},confirm:K=>{_.value&&_.value.confirm()},cancel:()=>{_.value&&_.value.cancel()},setDisabled:K=>{c.value=K},setReadonly:K=>{y.value=K}}),()=>{if(S.value==="on"&&(N.value||p.value))return l({modelValue:g.value,unit:s.unit},d.slots);const K={class:T.value,style:I.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:V,onFocus:P,onBlur:j};u&&(K.disabled=!0);const ne=[],F=(0,t.h)("input",K);ne.push(F);const G=[],E=(0,t.h)(Y.value,{class:["action-icon"]}),$=(0,t.h)("view",{class:U.value,onClick:R},{default:()=>[E]});if(G.push($),te.value){const fe=(0,t.h)("view",{class:H.value},[s.unit]);G.push(fe)}const z=(0,t.h)("view",{class:ee.value},{default:()=>G});ne.push(z);const W={default:()=>ne};W.label=d.slots.default,W.prepend=d.slots.prepend,W.append=d.slots.append,W.fixedPreTip=d.slots.fixedPreTip,W.fixedTip=d.slots.fixedTip;const J=be(s,qn);J.ref=_,J.class=s.actionSheetClass,J.disabled=p.value||N.value,J.visible=L.value,J["onUpdate:visible"]=M,J.modelValue=A.value,J["onUpdate:modelValue"]=q,J.text=h.value,J["onUpdate:text"]=D,J.onChange=O,J.poppable=!0,J["text-position"]=s.textPosition;const ae=(0,t.h)(a,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});W.hide=()=>[ae];const de={...Qe(s,Wi,qn),ref:v,class:B.value};return s.prop&&(de.prop=`${s.prop}_item`),o(de,W)}}}}var{componentName:av,create:rv,scope:iv}=le("actionsheet-item"),sv=rv(ov(av,iv,Ie,ze,re.CircleClose,re.ArrowRight,gl)),Po=sv,Mo={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:uv,create:cv}=le("input-number"),dv=cv({components:{Minus:re.Minus,Plus:re.Plus},props:Mo,emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const y=uv;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),r=y=>{const N=y.target;n("update:modelValue",N.valueAsNumber,y)},i=(y,N)=>{let S=l(y);n("update:modelValue",S,N),n("change",S,N)},a=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,u=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,s=y=>{if(n("reduce",y),u()){let N=Number(e.modelValue)-Number(e.step);i(N,y)}else n("overlimit",y,"reduce")},d=y=>{if(n("add",y),a()){let N=Number(e.modelValue)+Number(e.step);i(N,y)}else n("overlimit",y,"add")},v=y=>{e.disabled||e.readonly||n("focus",y)},c=y=>{if(e.disabled||e.readonly)return;let N=y.target.valueAsNumber;N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),i(N,y),n("blur",y)},p=y=>{let N=Number(y);return N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),N};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:o,change:r,blur:c,focus:v,add:d,addAllow:a,reduce:s,reduceAllow:u,toPxString:ue}}}),fv=["min","max","disabled","readonly","value"];function mv(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Minus"),u=(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)(a,{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,fv),(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)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var yl=ie(dv,[["render",mv]]),pv={...ge,...Se,...Mo};function vv(e,n,o,l,r){return{props:pv,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!c.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=e,C=(0,t.computed)(()=>({[S]:!0,disabled:d.value,readonly:c.value})),b=(0,t.computed)(()=>({[`${S}__content`]:!0})),m=(0,t.computed)(()=>{const g=[`${S}__wrap`];return i.textAlign==="left"?g.push("is-left"):i.textAlign==="center"?g.push("is-center"):i.textAlign==="right"&&g.push("is-right"),g.join(" ")}),f=Re(i,"modelValue",null,y),k=g=>{f.value=g,y("update:modelValue",g,{}),y("change",g,{})},A=g=>{y("add",g)},h=g=>{y("reduce",g)};return N({setDisabled:g=>{s.value=g},setReadonly:g=>{v.value=g}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:f.value},a.slots);const g={"left-icon":a.slots["left-icon"],"right-icon":a.slots["right-icon"]},x=be(i,Mo),B=(0,t.h)(r,{...a.attrs,...x,class:b.value,disabled:d.value,readonly:c.value,value:f.value,"onUpdate:modelValue":k,onAdd:A,onReduce:h},g),T=[];T.push(B);const w={default:()=>T};w.label=a.slots.default,w.fixedPreTip=a.slots.fixedPreTip,w.fixedTip=a.slots.fixedTip;const I={...be(i,Se,ge),ref:u};return i.prop&&(I.prop=`${i.prop}_item`),I.class=C.value,I["content-class"]=m.value,o(I,w)}}}}var{componentName:hv,create:gv,scope:yv}=le("input-number-item"),bv=gv(vv(hv,yv,Ie,ze,yl)),Ro=bv,Sv={...ko,...wo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function kv(e,n,o,l){return{props:Sv,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:a,exposeApi:u}=He({context:i},r.prop),{slots:s}=i,d=e,v=(0,t.computed)(()=>{const b=[`${d}`];return r.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),c=(0,t.computed)(()=>{const b={};if(r.width){const m=ue(r.width);m&&(b.width=m)}if(r.height){const m=ue(r.height);m&&(b.height=m)}return b}),p=(0,t.computed)(()=>[`${d}__bar`]),y=(0,t.computed)(()=>[`${d}__container`]),N=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,b=>{N.value!==b&&(N.value=b)});const S=b=>{a("change",b)},C=b=>{N.value!==b&&(N.value=b,a("update:modelValue",b))};return u({}),()=>{const{getChildren:b}=rn(s.default),m=b(),f=[];if(Array.isArray(r.data))f.push(...r.data);else for(let T=0;T<m.length;T++){const w=m[T].props??{},I={text:w.label??"",value:w["pane-key"]??w.paneKey??""};f.push(I)}const k={};for(let T in s)T!=="default"&&(k[T]=s[T]);const A=be(r,ko);Object.assign(A,{prop:null,data:f,class:p.value,modelValue:N.value,direction:r.direction,onChange:S,"onUpdate:modelValue":C});const h=(0,t.h)(o,A,k),g={default:()=>m},x=be(r,wo);Object.assign(x,{prop:null,class:y.value,modelValue:N.value,onChange:S,"onUpdate:modelValue":C});const B=(0,t.h)(l,x,g);return(0,t.h)("view",{class:v.value,style:c.value},[h,B])}}}}var{create:wv,componentName:Cv,scope:Nv}=le("tabs-frame"),Av=wv(kv(Cv,Nv,cn,dn)),zo=Av,Bv={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 Tv(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Er(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Vv(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Vl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ir(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function qr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function xl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var xv=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function $v(){const e=mt();return new xv(e)}function Ev(e,n,o,l){return{props:Bv,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:a,exposeApi:u}=He({context:i},r.prop),s=e,d=$v(),v=(0,t.ref)([]),c=(0,t.computed)(()=>v.value.filter(H=>Vv(r,H)!==!1)),p=(0,t.ref)(-1),y=()=>{const H=r.modelValue,Z=c.value.findIndex(X=>Er(r,X)===H);p.value!==Z&&(p.value=Z,r.scroll&&te(Z,!1))};(0,t.watch)([()=>r.modelValue,c],()=>{y()});const N=H=>p.value===H,S=H=>{if(H<0&&H>=c.value.length)return!1;const Z=c.value[H],X=(xl(r,Z,H)??{}).status??Vl(r,Z);return N(H)||X},C=(0,t.computed)(()=>{const H={[s]:!0};return r.mode?H[`is-${r.mode}`]=!0:r.direction&&(H[`is-${r.direction}`]=!0),r.scroll&&(H["is-scroll"]=!0),H}),b=(0,t.computed)(()=>({})),m=(H,Z,X,Q,R)=>{const Y={[`${s}__step`]:!0};return R&&(Y[`${R}`]=!0),Y[`${f.value}`]=!0,Q&&(Y["is-doit"]=!0),H===p.value?Y["is-active"]=!0:Z==="done"?Y["is-done"]=!0:Z==="error"?Y["is-error"]=!0:Z==="half"?Y["is-half"]=!0:X?Y["is-disabled"]=!0:Y["is-normal"]=!0,Y},f=(0,t.computed)(()=>{let H=r.align;if(!H){if(r.mode==="simple")return"start";r.direction==="vertical"?H="start":H="center"}return H}),k=(H,Z={})=>{const X={...Z};if(f.value==="start"&&H===c.value.length-1)X.flex="0 0 auto";else if(r.step){const Q=typeof r.step=="number"||eo(r.step)?ue(r.step):r.step;r.direction==="vertical"?X.height=Q:X.width=Q}else X.flex="1 1 100%";return X},A=(H,Z)=>{let X={};if(Z<c.value.length-1){const Q=Z+1;S(Z)&&S(Q)?r.direction==="vertical"?X.height="100%":X.width="100%":X.opacity="0"}return X},h=H=>c.value.length-1===H,g=(H,Z)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&Z>p.value||p.value===Z)return;const X=p.value,Q=Z;p.value=Z,r.scroll&&te(Z,!1);const R=Er(r,H);a("update:modelValue",R);const Y={fromIndex:X,currentIndex:Q,item:H,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};a("change",R,Y)},x=(0,t.ref)(!0),B=async(H,Z)=>{try{const X=await d.load("stesbar",H,Z);Array.isArray(X)&&(v.value=X),x.value=!1}catch(X){console.error("[FoxUI] Load StepsBar Data Fail",X),v.value=[]}setTimeout(()=>{a("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([H,Z])=>{H&&B(H,Z)},{immediate:!0}),u({});const T=(H,Z,X,Q,R,Y)=>{const U=[];let _=null;if(!Y)if(i.slots.icon)_=i.slots.icon({item:H,index:Z,status:Q});else if(Q==="done"){const K={};r.iconSize&&(K.width=r.iconSize,K.height=r.iconSize),_=(0,t.h)(r.icon??o,K)}else _=(0,t.h)("span",{},[X??`${Z+1}`]);return _&&U.push(_),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{a("click",{item:H,index:Z}),!R&&g(H,Z)}},U)},w=(H,Z,X)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:A(H,Z)})]),I=()=>{let H=null;if(i.slots.markIcon)H=i.slots.markIcon();else{const Z={};r.iconSize&&(Z.width=r.markIconSize,Z.height=r.markIconSize),H=(0,t.h)(r.markIcon??l,Z)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[H])},L=(H,Z,X,Q,R,Y)=>{const U=[];if(!h(Z)){const K=w(H,Z,Q);U.push(K)}const _=T(H,Z,X,Q,R,Y);return U.push(_),(0,t.h)("view",{class:"fox-steps-bar__head"},U)},V=(H,Z,X,Q)=>{let R=null;return i.slots.main?R=i.slots.main({item:H,index:Z,status:X}):R=Tv(r,H),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{a("click",{item:H,index:Z}),!Q&&g(H,Z)}},[R])},M=(H,Z,X)=>{let Q=null;return i.slots.sub?(Q=i.slots.sub({item:H,index:Z,status:X}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Q])):null},q=(H,Z)=>{const X=xl(r,H,Z)??{},Q=X.status??Vl(r,H);let R=Dr(r,H);X.disabled===!0&&(R=!0),r.disabled===!0&&(R=!0);let Y=Ir(r,H);X.doit===!0&&(Y=!0);const U=X.label??qr(r,H),_=[],K=T(H,Z,U,Q,R,Y);K&&_.push(K);const ne=V(H,Z,Q,R);if(ne&&_.push(ne),!h(Z)){const W=w(H,Z,Q);W&&_.push(W)}const F=[],G=(0,t.h)("view",{class:"fox-steps-bar__head"},_);F.push(G);const E=M(H,Z,Q);E&&F.push(E);const $=X.class,z=X.style??{};return(0,t.h)("view",{ref:ee(Z),class:m(Z,Q,R,Y,$),style:k(Z,z)},F)},O=(H,Z)=>{const X=xl(r,H,Z)??{},Q=X.status??Vl(r,H);let R=Dr(r,H);X.disabled===!0&&(R=!0),r.disabled===!0&&(R=!0);let Y=Ir(r,H);X.doit===!0&&(Y=!0);const U=X.label??qr(r,H),_=[],K=r.layout;for(let G of K)if(G==="head"){const E=L(H,Z,U,Q,R,Y);_.push(E)}else if(G==="main"){const E=V(H,Z,Q,R);_.push(E)}else if(G==="sub"){const E=M(H,Z,Q);_.push(E)}else if(G==="mark"){const E=I();_.push(E)}const ne=X.class,F=X.style??{};return(0,t.h)("view",{ref:ee(Z),class:m(Z,Q,R,Y,ne),style:k(Z,F)},_)},P=(0,t.ref)(),j=(0,t.ref)([]),D=(H,Z)=>{j.value[Z]=H},ee=H=>Z=>{D(Z,H)},te=(H,Z)=>{const X=P.value,Q=j.value;if(!X||!Q||!Q[H])return;const R=Q[H];let Y=0;r.direction==="vertical"?Y=R.offsetTop-(X.offsetHeight-R.offsetHeight)/2:Y=R.offsetLeft-(X.offsetWidth-R.offsetWidth)/2,oe(X,Y,Z?0:.3,r.direction)},oe=(H,Z,X,Q)=>{let R=0;const Y=Q==="horizontal"?H.scrollLeft:H.scrollTop,U=X===0?1:Math.round(X*1e3/16);function _(){Q==="horizontal"?H.scrollLeft+=(Z-Y)/U:H.scrollTop+=(Z-Y)/U,++R<U&&Ge(_)}_()};return()=>{let H=[];if(r.mode==="simple")for(let X=0;X<c.value.length;X++){const Q=c.value[X],R=q(Q,X);H.push(R)}else for(let X=0;X<c.value.length;X++){const Q=c.value[X],R=O(Q,X);H.push(R)}const Z={ref:P,class:C.value,style:b.value};return H.length===0&&typeof i.slots.default=="function"&&(H=i.slots.default()),(0,t.h)("view",Z,H)}}}}var{componentName:Dv,create:Iv,scope:qv}=le("steps-bar"),Pv=Iv(Ev(Dv,qv,re.Checklist,re.ArrowRight)),Lo=Pv;function Mv(e){e.stopPropagation()}var Rv=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=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=ol(),o=(l,r,i,a)=>{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),Mv(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(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 zv(e,n){return new Rv(e,n)}var Lv={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]},teleport:{type:[String,Element],default:"body"},teleportDisable:{type:Boolean,default:!0}},Fv=(e,n,o,l=!1)=>({props:Lv,emits:["click"],setup(r,{slots:i,emit:a,attrs:u}){let s=-1,d=-1;const v=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),c=(0,t.computed)(()=>{const A=[`${e}`];return r.customClass&&A.push(r.customClass),A}),p=(0,t.computed)(()=>{const A={};return pe(v.top)||(A.top=ue(v.top)),pe(v.right)||(A.right=ue(v.right)),pe(v.bottom)||(A.bottom=ue(v.bottom)),pe(v.left)||(A.left=ue(v.left)),pe(r.width)||(A.width=ue(r.width)),pe(r.height)||(A.height=ue(r.height)),pe(r.color)||(A.color=r.color),pe(r.background)||(A.background=r.background),pe(r.borderRadius)||(A["border-radius"]=r.borderRadius),pe(r.zIndex)||(A["z-index"]=r.zIndex),A}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),N=()=>{a("click")},S=(0,t.ref)(null),C=()=>{v.top=null,v.right=null,v.bottom=null,v.left=null},b={x:0,y:0},k=zv(A=>{if(!S.value)return;const h=S.value;C(),v.left=h.offsetLeft,v.top=h.offsetTop,h.style.left=ue(v.left),h.style.top=ue(v.top),h.style.right=null,h.style.bottom=null,b.x=h.offsetLeft,b.y=h.offsetTop,v.width=h.offsetWidth,v.height=h.offsetHeight,s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight},A=>{if(!S.value)return;const h=S.value;C();let g=b.x+A.x;g<0&&(g=0),g>s-v.width&&(g=s-v.width);let x=b.y+A.y;x<0&&(x=0),x>d-v.height&&(x=d-v.height),v.left=ue(g),v.top=ue(x),h.style.left=ue(g),h.style.top=ue(x)});return(0,t.onMounted)(()=>{if(r.draggable&&S.value){const A=[S.value];k.open(A)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&S.value&&k.close()}),()=>{let A=[];const h=typeof i.default=="function"?i.default():[];if(h&&h.length>0)A=h;else{const x=(0,t.h)(o,{class:y.value});A.push(x)}const g=(0,t.h)("view",{...u,ref:x=>{S.value=x},class:c.value,style:p.value,onClick:N},A);return r.teleportDisable===!1?(0,t.h)(t.Teleport,{to:r.teleport},[g]):g}}}),{componentName:Ov,create:Kv,scope:Uv}=le("floating-button"),_v=Kv(Fv(Ov,Uv,re.Uploader,!1)),Fo=_v,Hv={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 jv(e,n,o){return{props:{...Hv},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,he.useFoxI18n)(n),u=a(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const N={[`${e}`]:!0};return l.disabled?N[`${e}--disabled`]=!0:N[`${e}--${l.type}`]=!0,N}),d=Re(l,"modelValue"),v=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(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 N=[];if(v.value){const b=(0,t.h)("span",{class:c.value},[v.value]);N.push(b)}const S={class:p.value},C=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(C){const b=(0,t.h)("view",S,[C]);N.push(b)}return l.textPosition==="right"&&N.reverse(),(0,t.h)("view",{class:s.value,onClick:y},N)}}}}var{componentName:Wv,create:Yv,scope:Xv}=le("more-button"),Qv=Yv(jv(Wv,Xv,re.RectUp)),Oo=Qv,Gv={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}},Zv=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Jv(e,n,o){return{props:{...Gv},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:a}){const{toLocaleRefs:u}=(0,he.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,v=(0,t.ref)(l.visible),c=A=>{v.value=A,a("update:visible",A)};(0,t.watch)(()=>l.visible,A=>{v.value!==A&&(v.value=A)});const p=A=>{if(typeof l.unmount=="function")try{l.unmount()}catch(h){console.error(h)}if(typeof l.callback=="function")try{l.callback(A)}catch(h){console.error(h)}},y=()=>{p("confirm")},N=()=>{p("cancel")},S=()=>{l.closeOnClickOverlay!==!1&&p("close")},C=(A,h)=>Zv(A)?(h.src=A,(0,t.h)("img",h)):typeof A=="string"?(Array.isArray(h.class)?h.class.push(A):h.class&&typeof h.class=="object"?h[`${A}`]=!0:typeof h.class=="string"?h.class=`${h.class}, ${A}`:h.class=A,(0,t.h)(l.tag,h)):(0,t.h)(A,h),b=()=>{const A=[];if(l.icon){const h={class:[`${d}__header-icon`]},g=C(l.icon,h);A.push(g)}if(l.title){const h=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);A.push(h)}if(l.showClose&&l.closeIcon){const h={class:[`${d}__header-close-icon`],onClick:S},g=C(l.closeIcon,h);A.push(g)}return(0,t.h)("view",{class:[`${d}__header`]},A)},m=(A,h)=>{const g=[];if(h){const x=(0,t.h)("view",{class:`${d}__group-title`},[h]);g.push(x)}if(A){const x=[];Array.isArray(A)||(A=[A]);for(let B of A){const T=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:B});x.push(T)}if(x.length>0){const B=(0,t.h)("view",{class:`${d}__group-rows`},x);g.push(B)}}return g.length===0?null:(0,t.h)("view",{class:`${d}__group`},g)},f=()=>{const A=[];if(typeof l.message=="string")A.push(l.message);else if(Array.isArray(l.message))for(let h of l.message)if(typeof h=="string"){const g=m(h);A.push(g)}else{const g=m(h.content,h.title);A.push(g)}else if(typeof l.message=="function"){const h=l.message();A.push(h)}else{const h=l.message;A.push(h)}return(0,t.h)("view",{class:`${d}__body`},A)},k=()=>{const A=[];if(l.showCancelButton){const h={class:[`${d}__footer-button`],style:{},onClick:N};l.cancelButtonClass&&h.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(h.style,l.cancleButtonStyle);const g=(0,t.h)("button",h,[l.cancelButtonText??s.cancelText.value]);A.push(g)}if(l.showConfirmButton){const h={class:[`${d}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&h.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(h.style,l.confirmButtonStyle);const g=(0,t.h)("button",h,[l.confirmButtonText??s.confirmText.value]);A.push(g)}return A.length===0?null:(0,t.h)("view",{class:`${d}__footer`},A)};return()=>{const A=[],h=b();h&&A.push(h);const g=f();g&&A.push(g);const x=k();x&&A.push(x);const B=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},A),T=[`${d}__popup`];l.popClass&&T.push(l.popClass);const w={};return l.width&&(w.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(w.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:T.join(" "),style:w,visible:v.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:S,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:eh,create:th,scope:nh}=le("messagebox"),lh=th(Jv(eh,nh,Ce)),oh=lh,ah="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",rh="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",ih="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",sh="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",uh=new Zn,ch={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},dh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${uh.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const a=document.querySelector(`#${r}`);a&&a.parentNode?.removeChild(a)};const i=(0,t.createVNode)(oh,e);n.appendChild(l),(0,t.render)(i,l)},st={show:(e,n,o,l)=>{const r={...ch};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),o&&typeof o=="object"?Object.assign(r,o):(typeof o=="string"&&(r.title=o),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=ih:i==="warning"?r.icon=sh:i==="error"?r.icon=ah:r.icon=rh),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((a,u)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(v){console.error(v)}a({action:d})},dh(r)})},alert:(e,n,o)=>st.show("alert",e,n,o),confirm:(e,n,o)=>st.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=st.alert,e.config.globalProperties.$confirm=st.confirm}},fh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let a in n)a==="bubbles"?r=!!n[a]:a==="cancelable"?i=!!n[a]:l[a]=n[a];l.initEvent(e,r,i),(o??document).dispatchEvent(l)},mh=new Zn,ph=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),vh=e=>`${e}-${mh.get()}`,hh=Symbol.for("InnerPageScopeKey"),gh=Symbol.for("PageWrapperKey"),yh="FoxLeave",bh="FoxLeaveEnd",Sh={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function kh(e,n,o,l){return{props:{...nt,...Sh},emits:["update:visible"],setup(r,{attrs:i,slots:a,emit:u}){(0,t.provide)(hh,!0);const s={};(0,t.provide)(gh,s);const d=h=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),v=()=>{d("close")},c=e,p=h=>{y.value=h,u("update:visible",h)},y=(0,t.ref)(!1),N=(h,g)=>ph(h)?(g.src=h,(0,t.h)("img",g)):typeof h=="string"?(Array.isArray(g.class)?g.class.push(h):g.class&&typeof g.class=="object"?g[`${h}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${h}`:g.class=h,(0,t.h)(r.tag,g)):(0,t.h)(h,g),S=()=>{if(!r.showHeader)return null;const h=[];if(a.header){const g=a.header();h.push(g)}else if(r.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);h.push(g)}return h.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},h)},C=()=>{if(!r.showClose)return null;const h={class:[`${c}__close-icon`],onClick:v},g=r.closeIcon??l;return N(g,h)};let b=null;const m=h=>{fh(bh,{},b)},f=vh(e),k=()=>{p(!0)},A=()=>{if(!b)return;const h=b.querySelector(".fox-overlay");h&&(h.classList.add("overlay-fade-leave-active"),h.classList.add("overlay-fade-leave-to"));const g=b.querySelector(".fox-popup");g&&(g.classList.add(`fox-popup-slide-${r.position}-leave-active`),g.classList.add(`fox-popup-slide-${r.position}-leave-to`),g.addEventListener("animationend",m,{once:!0}),g.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{b=document.querySelector(`.${f}`),b?.addEventListener(yh,A,{once:!0}),k()}),()=>{const h=[],g=S();g&&h.push(g);const x=C();x&&h.push(x);const B=a.default?a.default():[];Reflect.apply([].push,h,B);const T={[`${c}`]:!0};r.mode&&(T[`${c}--${r.mode}`]=!0);const w=(0,t.h)("view",{class:T},h),I=[`${c}__popup`,f];r.popClass&&I.push(r.popClass),r.position&&I.push(`${c}__popup--${r.position}`);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const V=(0,t.h)(o,{...be(r,nt),popClass:I.join(" "),style:L,visible:y.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:v,"onUpdate:visible":p},{default:()=>w});return(0,t.h)("div",{class:[`${c}__root`,f]},[V])}}}}var{componentName:wh,create:Ch,scope:Nh}=le("popup-wrapper"),Ah=Ch(kh(wh,Nh,Ce,re.Close)),Ko=Ah,Bh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Th(e,n,o,l){return{props:{...Bh},emits:["update:visible"],setup(r,{emit:i,slots:a}){const u=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(o,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":u},a);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:Vh,create:xh,scope:$h}=le("dropdown"),Eh=xh(Th(Vh,$h,Ce,!1)),Uo=Eh,Dh={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Ih(e,n){return{inheritAttrs:!1,props:Dh,setup(o,l){const{exposeApi:r}=ai({context:l,props:()=>o.config},o.name);return Te(o.innerPageScope)||si(o.innerPageScope),Te(o.abstractPageScope)||ui(o.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:qh,create:Ph,scope:Mh}=le("domain-provider"),Rh=Ph(Ih(qh,Mh)),_o=Rh,zh={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 Lh(e,n){return{inheritAttrs:!1,props:zh,emits:["change"],setup(o,{slots:l,emit:r}){if(lt&&window.IntersectionObserver){const i=new WeakMap;let a=new Map;const u=(p,y)=>{if(v===null){a.set(p,{visible:null,callback:y});return}i.has(p)&&v.unobserve(p),i.set(p,{visible:null,callback:y}),v.observe(p)},s=p=>{if(v===null){a.delete(p);return}i.has(p)&&(i.delete(p),v.unobserve(p))};let d=o.initialVisibleObserverSize;Au({acquire:()=>{if(o.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let v=null;const c=(p,y,N)=>{v=new IntersectionObserver(S=>{if(r("change",S),o.loadPolicy!=="always")for(let C of S){let b=!1;C.intersectionRatio>0&&(b=!0);const m=i.get(C.target);if(m)try{if(o.loadPolicy==="lazy"&&!b&&m.visible!==null)return;m.visible=b,m.callback(b)}catch(f){console.error(f)}}},{root:p,rootMargin:y,threshold:N}),a.forEach((S,C)=>{i.set(C,S),v?.observe(C)}),a.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([p,y])=>{if(y||!p||v)return;let N=null;typeof p=="string"?N=document.querySelector(p):N=p,N&&c(N,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{v&&(v.disconnect(),v=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Fh,create:Oh,scope:Kh}=le("rolling-provider"),Uh=Oh(Lh(Fh,Kh)),Ho=Uh,{componentName:_h,create:Hh}=le("cell"),jh=Hh({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 o=(0,t.computed)(()=>{const i=_h;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:ue(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),Wh={key:0,class:"fox-cell__icon"},Yh={key:1,class:"fox-cell__title"},Xh={class:"title"},Qh={class:"fox-cell__title-desc"};function Gh(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wh,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yh,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Xh,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Qh,(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)(a,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var jo=ie(jh,[["render",Gh]]),Zh={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Jh(e,n){return{props:{...Zh},setup(o,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const a={};return o.color&&(a.color=o.color),o.size&&(a.fontSize=ue(o.size)),a});return()=>{const a={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",a,r)}}}}var{componentName:eg,create:tg,scope:ng}=le("icon"),lg=tg(Jh(eg,ng)),Wo=lg,{componentName:og,create:ag}=le("cell-group"),rg=ag({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[og]:!0}))}}}),ig={key:1,class:"fox-cell-group__title"},sg={key:3,class:"fox-cell-group__desc"},ug={class:"fox-cell-group__wrap"};function cg(e,n,o,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",ig,(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",sg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ug,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Yo=ie(rg,[["render",cg]]),{componentName:dg,create:fg}=le("image"),mg=fg({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 o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=dg;return{[y]:!0,[`${y}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(null),u=()=>{r.value=new IntersectionObserver(y=>{y.forEach(N=>{N.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),a.value&&r.value.observe(a.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let y={};return e.width&&(y.width=ue(e.width)),e.height&&(y.height=ue(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=ue(e.radius)),y}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{o.isError=!1,o.loading=!0});const v=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},p=y=>{n("click",y)};return{...(0,t.toRefs)(o),imageClick:p,classes:l,styles:d,stylebox:s,error:c,load:v,show:i,imgRef:a}}}),pg=["src","date-src","alt"],vg={key:0,class:"fox-img-loading"},hg={key:1,class:"fox-img-error"};function gg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Image"),u=(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,pg),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",vg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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",hg,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Xo=ie(mg,[["render",gg]]),{create:yg}=le("layout"),bg=yg({}),Qo=bg,{componentName:Sg,create:kg}=le("col"),wg=kg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Sg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function Cg(e,n,o,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 Go=ie(wg,[["render",Cg]]),{componentName:Ng,create:Ag}=le("row"),Bg=Ag({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=Ng;(0,t.provide)("gutter",e.gutter);const o=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
2
  ${o("",e.type)}
3
3
  ${o("justify",e.justify)}
4
4
  ${o("align",e.align)}
@@ -6,4 +6,4 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
6
6
  ${n}
7
7
  `:`
8
8
  ${n}
9
- `)}}});function Sg(e,n,o,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 Qo=re(bg,[["render",Sg]]),{create:kg}=J("sticky"),wg=kg({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 o=(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)),a=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),u=(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(!o.value&&!d)return;const h=$e(o),c=l.value,p=$e(c),g=$e(d);r.height=h.height;const A=()=>{let w=!1;if(e.position==="top")w=d?i.value>h.top&&g.bottom>0:i.value>h.top;else{const b=document.documentElement.clientHeight;w=d?g.bottom>0&&b-i.value-p.height>g.top:b-i.value<h.bottom}return w},k=()=>{if(d)if(e.position==="top"){const w=g.bottom-i.value-p.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,b=g.bottom-(w-i.value);return b<0?b:0}return 0};r.transform=k(),r.fixed=A()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Wl(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Wl(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:a,stickyRef:l,stickyStyle:u}}});function Cg(e,n,o,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 Wt=re(wg,[["render",Cg]]),{componentName:Ng,create:Ag}=J("divider"),Bg=Ag({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 o=Ng;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function Tg(e,n,o,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 Go=re(Bg,[["render",Tg]]),sn=(e,n={})=>{const o=(0,t.shallowRef)([]),l=i=>{o.value.push(i),(0,t.triggerRef)(o)},r=i=>{const a=o.value.findIndex(u=>u===i);a!=-1&&(o.value.splice(a,1),(0,t.triggerRef)(o))};return(0,t.onUnmounted)(()=>{const i=o.value.length;o.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:o,...n}),{children:o}};function un(e,n){const o=(0,t.inject)(e,null);if(o){const{link:l,unlink:r,children:i}=o;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:o,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:o,index:(0,t.computed)(()=>-1)}}var{componentName:Vg}=J("grid"),Ki=Symbol("grid"),xg={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}},Eg={props:xg,setup(e,{slots:n}){sn(Ki,{props:e});const o=(0,t.computed)(()=>{const r=Vg;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:o.value,style:l.value},n.default?.())}},{create:$g}=J("grid"),Dg=$g(Eg),Zo=Dg,{create:Ig,componentName:xr}=J("grid-item"),qg=Ig({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:o,index:l}=un(Ki,{props:e}),r=(0,t.computed)(()=>({[xr]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+o.props.columnNum}%`};return o.props.square?s.paddingTop=`${100/+o.props.columnNum}%`:o.props.gutter&&(s.paddingRight=he(o.props.gutter),l.value>=o.props.columnNum&&(s.marginTop=he(o.props.gutter))),s}),a=(0,t.computed)(()=>{const s=`${xr}__content`;return{[`${s}`]:!0,[`${s}--border`]:o.props.border,[`${s}--surround`]:o.props.border&&o.props.gutter,[`${s}--center`]:o.props.center,[`${s}--square`]:o.props.square,[`${s}--reverse`]:o.props.reverse,[`${s}--${o.props.direction}`]:!!o.props.direction,[`${s}--clickable`]:o.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:a,handleClick:s=>{n("click",s)}}}}),Pg={class:"fox-grid-item__text"};function Mg(e,n,o,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]=(...a)=>e.handleClick&&e.handleClick(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Pg,[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 Jo=re(qg,[["render",Mg]]),{componentName:zg,create:Rg}=J("navbar"),Lg=Rg({components:{Left:ae.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:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const w=zg;return{[w]:!0,[`${w}--border`]:o.value,[`${w}--fixed`]:l.value,[`${w}--safe-area-inset-top`]:r.value}}),c=(0,t.computed)(()=>({zIndex:a.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function g(){n("on-click-title")}function A(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:h,styles:c,handleLeft:p,handleCenter:g,handleCenterIcon:A,handleRight:k}}}),Fg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Og={key:1,class:"fox-navbar__text"},Kg={class:"fox-navbar__title"},Ug={key:0,class:"fox-navbar__text"},Hg={key:1,class:"fox-navbar__text"},_g={class:"fox-navbar__title"},jg={key:0,class:"fox-navbar__text"};function Wg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fg,[(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Og,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Kg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ug,(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",_g,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",jg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var ea=re(Lg,[["render",Wg]]),Yg=(e,n,o)=>({components:o,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,ve.useFoxI18n)(n),a=i(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...a,classes:u,updateValue:(c=!l.visible)=>{r("update:visible",c)},selected:(c,p)=>{r("selected",{item:c,event:p}),s.value=c.id},current:s}}}),{componentName:Xg,create:Qg,scope:Gg}=J("fixednav"),Zg=Qg(Yg(Xg,Gg,{[ut.name]:ut,Left:ae.Left})),Jg={class:"fox-fixednav__list"},ey=["onClick"],ty=["src"],ny={class:"span"},ly={key:0,class:"b"},oy={class:"text"};function ay(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-overlay"),u=(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)(a,{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",Jg,[((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,ty),(0,t.createElementVNode)("view",ny,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",ly,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,ey))),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)(u,{color:"#fff"}),(0,t.createElementVNode)("view",oy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var ta=re(Zg,[["render",ay]]),Ui=Symbol("fox-menu"),{componentName:ry,create:iy}=J("menu"),sy=iy({components:{RectUp:ae.RectUp,RectDown:ae.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)(),o=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=sn(Ui,{props:e,offset:o}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),a=(0,t.computed)(()=>({[ry]:!0,"scroll-fixed":l.value})),u=()=>{if(n.value){const p=$e(n);e.direction==="down"?o.value=p.bottom:o.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((g,A)=>{A===p?(u(),g.toggle()):g.state.showPopup&&g.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))},c=p=>{let g="";const{titleClass:A}=e;return p&&(g+="active"),A&&(g+=` ${A}`),g};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:a,barRef:n,getClasses:c}}}),uy=["onClick"],cy={class:"fox-menu__title-text"},dy={class:"fox-menu__title-icon"};function fy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("RectUp"),u=(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",cy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",dy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,uy))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var na=re(sy,[["render",fy]]),{create:my}=J("menu-item"),py=my({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:we,Check:ae.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const o=(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 c={height:h.offset.value+"px"};return h.props.direction==="down"?{...c,top:"0px"}:{...c,bottom:"0px"}}),i=(c=!o.showPopup)=>{c!==o.showPopup&&(o.showPopup=c,c&&(o.showWrapper=!0,n("open")))},a=()=>{if(e.title)return e.title;const c=e.options?.find(p=>p.value===e.modelValue);return c?c.text:""},u=c=>{o.showPopup=!1,c.value!==e.modelValue&&(n("update:modelValue",c.value),n("change",c.value))},s=()=>{n("close"),o.showWrapper=!1},d=()=>{o.showPopup=!1,n("close")},{parent:h}=un(Ui,{props:e,state:o,toggle:i,renderTitle:a});return{style:l,placeholderElementStyle:r,renderTitle:a,state:o,parent:h,toggle:i,onClick:u,handleClose:s,handleClickOutside:d}}}),hy={class:"fox-menu-item"},vy={class:"fox-menu-item__content fox-menu-item__overflow"},gy=["onClick"];function yy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",hy,[(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)(u,(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",vy,[((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)(a,(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,gy))),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 la=re(py,[["render",yy]]),Hi=Symbol("fox-tabbar"),{create:by}=J("tabbar"),Sy=by({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 o(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:o}),{children:r}=sn(Hi,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:o}}});function ky(e,n,o,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 oa=re(Sy,[["render",ky]]),{create:wy}=J("tabbar-item"),Cy=wy({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:o,index:l}=un(Hi,{props:e}),r=(0,t.computed)(()=>l.value===o.state.value);function i(u){o&&typeof o.state.changeIndex=="function"&&o.state.changeIndex(u)}const a=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:o.state,index:l,active:r,change:i,currentIcon:a}}}),Ny={class:"fox-tabbar-item_icon-box"},Ay={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},By={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Ty={key:1,class:"fox-tabbar-item_icon-box_dot"},Vy={key:2},xy={key:0};function Ey(e,n,o,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]=a=>e.change(e.index))},[(0,t.createElementVNode)("view",Ny,[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",Ay,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",By,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Ty)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vy,[((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",xy,(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 aa=re(Cy,[["render",Ey]]),{componentName:$y,create:Dy}=J("elevator"),Iy=Dy({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 o=(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)(()=>({[$y]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=(0,t.computed)(()=>o.value.clientHeight),u=(b,f)=>b.getAttribute("data-"+f),s=b=>{(0,t.nextTick)(()=>{!l.listGroup.includes(b)&&b!=null&&l.listGroup.push(b)})},d=()=>{let b=0;l.listHeight.push(b);for(let f=0;f<l.listGroup.length;f++){let m=l.listGroup[f];b+=Math.floor(m.clientHeight),l.listHeight.push(b)}},h=b=>{!b&&b!==0||(b<0&&(b=0),b>l.listHeight.length-2&&(b=l.listHeight.length-2),l.codeIndex=b,o.value.scrollTo(0,l.listHeight[b]))},c=b=>{l.scrollStart=!0;let f=u(b.target,"index"),m=b.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+f,l.codeIndex=+f,h(+f)},p=b=>{let f=b.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)},g=()=>{l.scrollStart=!1},A=(b,f)=>{n.emit("click-item",b,f),l.currentData=f,l.currentKey=b},k=b=>{n.emit("click-index",b)},w=b=>{let f=b.target.scrollTop;const m=l.listHeight;l.scrollY=f;for(let S=0;S<m.length-1;S++){let B=m[S],v=m[S+1];if(l.scrollY>=B&&l.scrollY<v){l.currentIndex=S,l.diff=v-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{o.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,b=>{const f=l.listHeight;let m=b>0&&b<e.titleHeight?b-e.titleHeight:0;l.scrollY+a.value===f[f.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,b=>{n.emit("change",b)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:a,setListGroup:s,listview:o,touchStart:c,touchMove:p,touchEnd:g,handleClickItem:A,handleClickIndex:k}}}),qy={class:"fox-elevator__list__item__code"},Py=["onClick"],My=["innerHTML"],zy={class:"fox-elevator__fixed-title"},Ry={class:"fox-elevator__bars__inner"},Ly=["data-index","onClick"];function Fy(e,n,o,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,a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",qy,(0,t.toDisplayString)(a[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.list,u=>((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===u.id&&e.currentKey===a[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(a[e.acceptKey],u)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:u}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:u.name},null,8,My))],10,Py))),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",zy,(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]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[(0,t.createElementVNode)("view",Ry,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:a[e.acceptKey],onClick:s=>e.handleClickIndex(a[e.acceptKey])},(0,t.toDisplayString)(a[e.acceptKey]),11,Ly))),128))])],32)],2)}var ra=re(Iy,[["render",Fy]]),{componentName:K2,create:Oy,scope:Ky}=J("pagination"),Uy=Oy({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:o}=(0,ve.useFoxI18n)(Ky),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:g,itemsPerPage:A}=(0,t.toRefs)(e),k=+p.value||Math.ceil(+g.value/+A.value);return Math.max(1,k)}),d=(p,g)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),g&&n("change",p))},h=(p,g,A=!1)=>({number:p,text:g,active:A}),c=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const g=s.value,A=+a.value;let k=1,w=g;const b=g>A;b&&(k=Math.max(r.value-Math.floor(A/2),1),w=k+A-1,w>g&&(w=g,k=w-A+1));for(var f=k;f<=w;f++){const m=h(f,f,r.value==f);p.push(m)}if(b&&A>0&&u.value){if(k>1){const m=h(k-1,"...");p.unshift(m)}if(w<g){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:c,forceEllipses:u}}}),Hy={class:"fox-pagination"},_y={key:0,class:"fox-pagination-contain"},jy=["onClick"],Wy={key:1,class:"fox-pagination-contain"},Yy={class:"fox-pagination-simple"};function Xy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Hy,[(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]=a=>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",_y,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",a.active?"active":""]),onClick:s=>e.select(a.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:a},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.text),1)])],10,jy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wy,[(0,t.createElementVNode)("view",Yy,(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]=a=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var ia=re(Uy,[["render",Xy]]),Qy=(e,n,o,l)=>{const r=(0,t.ref)(),i=(0,t.ref)({width:0,height:0}),a=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let c=await l(r,o);i.value.width=c.width||0,i.value.height=c.height||0}else i.value.width=r.value?.clientWidth||0,i.value.height=r.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{a()},100)});const u=(0,t.reactive)({offset:0,moving:!1}),s=ot();let d="";const h=(c,p)=>{let g=c;switch(e.direction=="horizontal"?(d=c>0?"right":"left",g=Math.abs(g)/i.value.width*100):(d=p>0?"bottom":"top",g=p,g=Math.abs(g)/i.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,u.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,u.moving=!1);break}u.offset=g};return{touchMethods:{onTouchStart(c){e.swipeable&&s.start(c)},onTouchMove(c){e.swipeable&&(s.move(c),u.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(c.preventDefault(),c.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(c.preventDefault(),c.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,d){case"left":case"top":u.offset>35&&n.next();break;case"right":case"bottom":u.offset<-35&&n.prev();break}}},touchState:u,tabsContentRef:r}},Gy=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Zy}=J("tabs"),Jy=Zy({components:{[Wt.name]:Wt,JoySmile:ae.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:o}){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)([]),a=N=>{N.forEach((C,P)=>{let H=C.type;if(H=H.name||H,H=="fox-tab-pane"){let x=new Gy;if(C.props?.title||C.props?.["pane-key"]||C.props?.paneKey){let M=St(C.props?.["pane-key"]),q=M=="number"||M=="string"?String(C.props?.["pane-key"]):null,R=St(C.props?.paneKey),z=R=="number"||R=="string"?String(C.props?.paneKey):null;x.title=C.props?.title,x.paneKey=q||z||String(P),x.disabled=C.props?.disabled}i.value.push(x)}else{if(C.children==" ")return;Array.isArray(C.children)&&a(C.children)}})},u=(0,t.ref)(e.modelValue||0),s=N=>{let C=i.value.findIndex(P=>P.paneKey==N);i.value.length==0||C==-1||(u.value=C)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),c=(0,t.ref)([]),p=N=>{const C=h.value,P=c.value;if(!C||!P||!P[u.value])return;const H=P[u.value];let x=0;e.direction==="vertical"?x=H.offsetTop-C.offsetTop+10-(C.offsetHeight-H.offsetHeight)/2:x=H.offsetLeft-(C.offsetWidth-H.offsetWidth)/2,g(C,x,N?0:.3,e.direction)},g=(N,C,P,H)=>{let x=0;const M=H==="horizontal"?N.scrollLeft:N.scrollTop,q=P===0?1:Math.round(P*1e3/16);function R(){H==="horizontal"?N.scrollLeft+=(C-M)/q:N.scrollTop+=(C-M)/q,++x<q&&He(R)}R()},A=(N=o.default?.())=>{i.value=[],N=N?.filter(C=>typeof C.children!="string"),N&&N.length&&a(N),s(e.modelValue),(0,t.nextTick)(()=>{p()})},k=N=>{r=N.fixed};(0,t.watch)(()=>o.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=$e(l.value).top+w(),P=Math.ceil(C-e.top);window.scrollTo({top:P,behavior:"smooth"})}}),(0,t.onMounted)(A),(0,t.onActivated)(A);const b={isBegin:()=>u.value==0,isEnd:()=>u.value==i.value.length-1,next:()=>{u.value+=1,b.updateValue(i.value[u.value])},prev:()=>{u.value-=1,b.updateValue(i.value[u.value])},updateValue:N=>{n("update:modelValue",N.paneKey),n("change",N)},tabChange:(N,C)=>{n("click",N),!(N.disabled||u.value==C)&&(u.value=C,b.updateValue(N))},setTabItemRef:(N,C)=>{c.value[C]=N}},{tabsContentRef:f,touchState:m,touchMethods:S}=Qy(e,b),B=(0,t.computed)(()=>{let N=u.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}),v=(0,t.computed)(()=>({background:e.background})),y=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=(0,t.computed)(()=>{if(!e.titleGutter)return{};const N=he(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}}),T=(0,t.computed)(()=>o.fixedTitle);return{navRef:h,tabsContentRef:f,titles:i,contentStyle:B,tabsNavStyle:v,titleStyle:V,tabsActiveStyle:y,container:l,getScrollY:d,onStickyScroll:k,...b,...S,hasFixedTitle:T}}}),eb=["onClick"],tb={key:0,class:"fox-tabs__titles-fixed-item"},nb=["onClick"],lb={key:0,class:"fox-tabs__titles-fixed-item"};function ob(e,n,o,l,r,i){const a=(0,t.resolveComponent)("JoySmile"),u=(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)(u,{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)(a,{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,eb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",tb,[(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)(a,{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,nb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",lb,[(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 sa=re(Jy,[["render",ob]]),{create:ab}=J("tab-pane"),rb=ab({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const o=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:o.animatedTime.value==0&&e.paneKey!=o.activeKey.value?"none":void 0}));return{...o,paneStyle:l}}});function ib(e,n,o,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 ua=re(rb,[["render",ib]]),{componentName:Er,create:sb}=J("indicator"),ub=sb({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:o}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Er;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Er,padZero:at}}});function cb(e,n,o,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,a=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:a},[a===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(a)||a),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ca=re(ub,[["render",cb]]),{componentName:db,create:fb}=J("side-navbar"),mb=fb({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),o=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[db]:!0})),r=(a,u=1)=>{for(let s=0;s<a.length;s++){let d=a[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++o.count))}o.count--},i=()=>{let a=n.value.childNodes;a.length&&(a=Array.from(a).filter(u=>u.nodeType!==3).map(u=>u),r(a))};return(0,t.onMounted)(()=>{i(),o.observer=new MutationObserver(function(){o.count=1,i()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),pb={class:"fox-side-navbar__content"},hb={class:"fox-side-navbar__content__list",ref:"list"};function vb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",pb,[(0,t.createElementVNode)("view",hb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var da=re(mb,[["render",vb]]),{componentName:gb,create:yb}=J("side-navbar-item"),bb=yb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[gb]:!0})),handleClick:()=>{n.emit("click")}})}),Sb=["ikey"],kb={class:"fox-side-navbar-item__title"};function wb(e,n,o,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)((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",kb,(0,t.toDisplayString)(e.title),1)],10,Sb)}var fa=re(bb,[["render",wb]]),{componentName:Cb,create:Nb}=J("sub-side-navbar"),Ab=Nb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ae.ArrowDown2,ArrowUp2:ae.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[Cb]:!0})),r=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:r,handleClick:i}}}),Bb=["ikey"],Tb={class:"fox-sub-side-navbar__title__text"},Vb={class:"fox-sub-side-navbar__title__icon"};function xb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("ArrowDown2"),u=(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",Tb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Vb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(a,{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,Bb)}var ma=re(Ab,[["render",xb]]),{componentName:Eb,create:$b}=J("range"),Db=$b({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 o=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),a=(0,t.ref)(),u=ot(),s=(0,t.computed)(()=>{const{marks:x,max:M,min:q}=e;return Object.keys(x).map(parseFloat).sort((R,z)=>R-z).filter(R=>{const z=de(R);return z>=de(q)&&z<=de(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const x=Eb;return{[x]:!0,[`${x}-disabled`]:e.disabled,[`${x}-vertical`]:e.vertical,[`${x}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const x="fox-range-container";return{[x]:!0,[`${x}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),g=(0,t.computed)(()=>({borderColor:e.buttonColor})),A=x=>!!e.range&&Array.isArray(x),k=()=>{const{modelValue:x,min:M}=e;return A(x)?`${(x[1]-x[0])*100/d.value}%`:`${(x-Number(M))*100/d.value}%`},w=()=>{const{modelValue:x,min:M}=e;return A(x)?`${(x[0]-Number(M))*100/d.value}%`:"0%"},b=(0,t.computed)(()=>e.vertical?{height:k(),top:w(),background:e.activeColor,transition:a.value?"none":void 0}:{width:k(),left:w(),background:e.activeColor,transition:a.value?"none":void 0}),f=x=>{const M="fox-range-mark",{modelValue:q,max:R,min:z}=e;let W=Number(z),I=Number(R);if(e.range){const[ee,oe]=q;W=ee,I=oe}else I=q;let Q=x<=I&&x>=W;return{[`${M}-text`]:!0,[`${M}-text-active`]:Q}},m=x=>{const{min:M,vertical:q}=e;let R={left:`${(x-Number(M))/d.value*100}%`};return q&&(R={top:`${(x-Number(M))/d.value*100}%`}),R},S=x=>{const{modelValue:M,max:q,min:R}=e;let z=Number(R),W=Number(q);if(e.range){const[I,Q]=M;z=I,W=Q}return{background:x<=W&&x>=z?e.activeColor:e.inactiveColor}},B=x=>{const{min:M,max:q,step:R}=e;return x=Math.max(+M,Math.min(x,+q)),Math.round(x/+R)*+R},v=(x,M)=>JSON.stringify(x)===JSON.stringify(M),y=x=>x[0]>x[1]?x.slice(0).reverse():x,V=(x,M)=>{A(x)?x=y(x).map(B):x=B(x),v(x,e.modelValue)||n("update:modelValue",x),M&&!v(x,l)&&n("change",x)},T=x=>{if(e.disabled)return;const{min:M,modelValue:q}=e,R=$e(i);let z=x.clientX-R.left,W=R.width;e.vertical&&(z=x.clientY-R.top,W=R.height);const I=Number(M)+z/W*d.value;if(A(q)){const[Q,ee]=q;I<=(Q+ee)/2?V([I,ee],!0):V([Q,I],!0)}else V(I,!0)},N=x=>{e.disabled||(u.start(x),r=e.modelValue,A(r)?l=r.map(B):l=B(r),a.value="start")},C=x=>{if(e.disabled)return;a.value==="start"&&n("drag-start"),u.move(x),a.value="draging";const M=$e(i);let q=u.deltaX.value,R=M.width,z=q/R*d.value;e.vertical&&(q=u.deltaY.value,R=M.height,z=q/R*d.value),A(l)?r[o.value]=l[o.value]+z:r=l+z,V(r),x.stopPropagation(),x.preventDefault()},P=()=>{e.disabled||(a.value==="draging"&&(V(r,!0),n("drag-end")),a.value="")},H=x=>Dn(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:g,onClick:T,onTouchStart:N,onTouchMove:C,onTouchEnd:P,...(0,t.toRefs)(e),barStyle:b,curValue:H,buttonIndex:o,containerClasses:c,markClassName:f,marksStyle:m,marksList:s,tickStyle:S}}}),Ib={key:0,class:"fox-range-min"},qb={key:0,class:"fox-range-mark"},Pb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Mb={key:0,class:"number"},zb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Rb={key:0,class:"number"},Lb={key:1,class:"fox-range-max"};function Fb(e,n,o,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",Ib,(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)((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:a,class:(0,t.normalizeClass)(e.markClassName(a)),style:(0,t.normalizeStyle)(e.marksStyle(a))},[(0,t.createTextVNode)((0,t.toDisplayString)(a)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(a))},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],a=>(0,t.createElementVNode)("view",{key:a,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(u)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.onTouchMove&&e.onTouchMove(...u),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onClick:n[3]||(n[3]=u=>u.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",Mb,(0,t.toDisplayString)(e.curValue(a)),1))],4))],42,Pb)),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)(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.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",Rb,(0,t.toDisplayString)(e.curValue()),1))],4))],40,zb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Lb,(0,t.toDisplayString)(+e.max),1))],2)}var Yt=re(Db,[["render",Fb]]),{create:Ob,scope:Kb}=J("short-password"),Ub=Ob({components:{FoxPopup:we,Tips:ae.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:o}=(0,ve.useFoxI18n)(Kb),l=o(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),a=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{a.value=c}),(0,t.watch)(()=>e.modelValue,c=>{r.value=c,String(c).length===i.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:i,realInput:r,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:a,...l}}}),Hb={class:"fox-short-password-title"},_b={class:"fox-short-password-subtitle"},jb={class:"fox-short-password-wrapper"},Wb={key:0,class:"fox-short-password__item-icon"},Yb={class:"fox-short-password__message"},Xb={class:"fox-short-password--error"},Qb={key:0,class:"fox-short-password--forget"};function Gb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(u,{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",Hb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",_b,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",jb,[(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",Wb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Yb,[(0,t.createElementVNode)("view",Xb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qb,[(0,t.createVNode)(a,{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 pa=re(Ub,[["render",Gb]]),Zb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Jb=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",o=>{e.onProgress?.(o,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[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},eS=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},_i=(e,{args:n=[],done:o,canceled:l})=>{if(e){const r=e.apply(null,n);yt(r)?r.then(i=>{i?o(i):l&&l()}).catch(()=>{}):r?o():l&&l()}else o()},{create:tS}=J("progress"),nS=tS({components:{Checked:ae.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,o=(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}),a=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:i,bgStyle:a,textStyle:u,progressOuter:l,insideText:r,slotDefault:n}}}),lS={class:"fox-progress"},oS={key:0,class:"fox-progress-text"};function aS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",lS,[(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",oS,[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)(a,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Xt=re(nS,[["render",aS]]),{componentName:rS,create:iS,scope:sS}=J("uploader"),uS=iS({components:{[Xt.name]:Xt,Photograph:ae.Photograph,Failure:ae.Failure,Loading:ae.Loading,Del:ae.Del,Link:ae.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:o}=(0,ve.useFoxI18n)(sS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[rS]:!0})),a=()=>{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)},u=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},d=(f,m)=>{const S=new Zb;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=v=>{f.status="ready",f.message=o("readyUpload"),h(m),n("start",v)},S.onProgress=(v,y)=>{f.status="uploading",f.message=o("uploading"),f.percentage=(v.loaded/v.total*100).toFixed(0),n("progress",{event:v,option:y,percentage:f.percentage})},S.onSuccess=(v,y)=>{f.status="success",f.message=o("success"),n("success",{responseText:v,option:y,fileItem:f}),n("update:fileList",l)},S.onFailure=(v,y)=>{f.status="error",f.message=o("error"),n("failure",{responseText:v,option:y,fileItem:f})};let B=new Jb(S);e.autoUpload?B.upload():r.push(new Promise((v,y)=>{v(B)}))},h=(f=-1)=>{f>-1?r.splice(f,1):(r=[],l.splice(0,l.length))},c=()=>{Promise.all(r).then(f=>{f.forEach(m=>m.upload())})},p=f=>{f.forEach((m,S)=>{const B=new FormData;for(const[y,V]of Object.entries(e.data))B.append(y,V);B.append(e.name,m);const v=(0,t.reactive)(new eS);if(v.name=m.name,v.status="ready",v.type=m.type,v.formData=B,v.message=o("waitingUpload"),d(v,S),e.isPreview&&m.type.includes("image")){const y=new FileReader;y.onload=V=>{v.url=V.target.result,l.push(v)},y.readAsDataURL(m)}else l.push(v)})},g=f=>{const m=e.maximum*1,S=e.maximize*1,B=new Array;f=f.filter(y=>y.size>S?(B.push(y),!1):!0),B.length&&n("oversize",B);let v=f.length+l.length;return v>m&&f.splice(f.length-(v-m)),f},A=(f,m)=>{l.splice(m,1),n("delete",{file:f,fileList:l,index:m})},k=(f,m)=>{h(m),_i(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=>b(B)):b(S),n("change",{fileList:l,event:f}),e.clearInput&&u(m)},b=f=>{p(g(new Array().slice.call(f)))};return{onChange:w,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:c,renderInput:a}}}),cS={key:0,class:"fox-uploader__slot"},dS={key:0,class:"fox-uploader__preview-img"},fS={key:0,class:"fox-uploader__preview__progress"},mS={class:"fox-uploader__preview__progress__msg"},pS=["onClick"],hS=["onClick","src"],vS={key:3,class:"fox-uploader__preview-img__file"},gS=["onClick"],yS={class:"file__name_tips"},bS={class:"tips"},SS={key:1,class:"fox-uploader__preview-list"},kS=["onClick"],wS={class:"file__name_tips"};function CS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),c=(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,g)=>((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",dS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",fS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",mS,(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,g)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(a)])],8,pS)):(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,hS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",vS,[(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",SS,[(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",wS,(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,g)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,kS),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)(c,{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 ha=re(uS,[["render",CS]]),NS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAA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nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:BS,scope:TS}=J("number-keyboard"),VS=BS({components:{FoxPopup:we},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:o}=(0,ve.useFoxI18n)(TS),l=o(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),a=(0,t.ref)(e.visible),u=(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 c=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?h():s()),p=()=>{e.visible&&n("blur")},g=f=>{const m=u.value;m&&!m.contains(f.target)&&p()};(0,t.watch)(()=>e.visible,f=>{a.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!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"&&b(),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 b(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:NS,lockImg:AS,clickKeyIndex:i,defaultKey:s,closeBoard:b,onTouchEnd:w,onTouchMove:k,onTouchstart:A,keysList:c,genCustomKeys:h,getBasicKeys:d,root:u,show:a}}}),xS={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"],MS=["src"],zS=["src"],RS={key:0,class:"fox-number-keyboard__sidebar"},LS={class:"fox-key__wrapper"},FS=["src"];function OS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",xS,[(0,t.createVNode)(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),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]=u=>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,u=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+u.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":u.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":u.id==e.clickKeyIndex},{"fox-key--lock":u.type=="lock"},{"fox-key--delete":u.type=="delete"}]),onTouchstart:s=>e.onTouchstart(u,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[u.type=="number"||u.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(u.id),1)],64)):(0,t.createCommentVNode)("",!0),u.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,MS)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,zS)):(0,t.createCommentVNode)("",!0)],42,PS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",RS,[(0,t.createElementVNode)("div",LS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=u=>e.onTouchstart({id:"delete",type:"delete"},u)),onTouchmove:n[4]||(n[4]=u=>e.onTouchMove(u)),onTouchend:n[5]||(n[5]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(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]=u=>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 va=re(VS,[["render",OS]]),{componentName:KS,create:US}=J("swipe"),HS=US({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:o}){const l=(0,t.computed)(()=>({[KS]:!0})),r=m=>m.value?.clientWidth||0,i=(0,t.ref)(),a=(0,t.computed)(()=>r(i)),u=(0,t.ref)(),s=(0,t.computed)(()=>r(u));let d=!1,h="",c="";const p=(0,t.reactive)({offset:0,moving:!1}),g=(m="")=>{d=!0,m&&(p.offset=m==="left"?-s.value:a.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&&c===h?S=-s.value:S=Math.abs(m)>s.value?-s.value:m;break;case"right":d&&c===h?S=a.value:S=Math.abs(m)>a.value?a.value:m;break}p.offset=S},b=ot(),f={onTouchStart(m){e.disabled||b.start(m)},onTouchMove(m){e.disabled||(b.move(m),b.isHorizontal()&&(p.moving=!0,w(b.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,c=h,h){case"left":Math.abs(p.offset)<=s.value/2?A():(p.offset=-s.value,g());break;case"right":Math.abs(p.offset)<=a.value/2?A():(p.offset=a.value,g());break}}};return o({open:g,close:A}),{classes:l,touchStyle:k,...f,leftRef:i,rightRef:u,open:g,close:A}}}),_S={class:"fox-swipe__left",ref:"leftRef"},jS={class:"fox-swipe__content"},WS={class:"fox-swipe__right",ref:"rightRef"};function YS(e,n,o,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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",_S,[(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 ga=re(HS,[["render",YS]]),{componentName:XS,create:QS}=J("action-sheet"),GS=QS({components:{Popup:we,Loading:ae.Loading},props:{...Je,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 o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[XS]:!0}));return{slotDefault:o,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}}}),ZS={key:0,class:"fox-action-sheet__title"},JS={key:1},e1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},t1={key:1,class:"fox-action-sheet__menu"},n1=["onClick"],l1={key:1},o1={class:"fox-action-sheet__subdesc"};function a1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{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",ZS,(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",JS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",e1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",t1,[((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)(a,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",l1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",o1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,n1))),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 ya=re(GS,[["render",a1]]),{componentName:r1,create:i1}=J("backtop"),s1=i1({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:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[r1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function a(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(A=0){l.scrollEl instanceof Window?window.scrollTo(0,A):l.scrollEl.scrollTop=A}function s(){let A=Qe(function k(){var w=e.duration-Math.max(0,l.startTime-+new Date+e.duration),b=w*-l.scrollTop/e.duration+l.scrollTop;u(b),A=Qe(k),(w==e.duration||b==0)&&Ir(A)})}function d(){l.scrollEl.addEventListener("scroll",a,!1),l.scrollEl.addEventListener("resize",a,!1)}function h(){l.scrollEl.removeEventListener("scroll",a,!1),l.scrollEl.removeEventListener("resize",a,!1)}function c(A){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),n("click",A)}function p(){g.value?l.scrollEl=g.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 g=(0,t.computed)(()=>{if(typeof o.content=="function"){const A=o.content();return Array.isArray(A)?A[0]:A}return null});return()=>{const A=[];g.value&&A.push(g.value);const k=[];if(typeof o.default=="function")k.push(o.default());else{const b=(0,t.h)(ae.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(b)}const w=(0,t.h)("div",{class:r.value,style:i.value,onClick:c},k);return A.push(w),A}}}),ba=s1,{componentName:u1,create:c1}=J("drag"),d1=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 o=(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)(()=>({[u1]:!0}));function i(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function a(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",He(()=>{a(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",He(()=>{a(c)})):c.style.left="0px"}function u(c,p){p-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",He(()=>{u(c,p)})):c.style.left=p+"px"}function s(c){c.preventDefault();const p=c.currentTarget;if(c.targetTouches.length===1){const g=c.targetTouches[0];l.nx=g.clientX-l.position.x,l.ny=g.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(c){const p=c.currentTarget;let g=c.changedTouches[0].clientX;const A=l.screenWidth-l.elWidth-l.boundary.right;g>A?g=A:g<l.boundary.left?g=l.boundary.left:g=g<l.screenWidth/2?l.boundary.left:A,e.direction!="y"&&e.attract&&(g<l.screenWidth/2?He(()=>{a(p)}):He(()=>{u(p,A)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(c){const p=c.currentTarget,g=c.touches[0],A=c.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=g.clientX,l.position.y=g.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 c=o;c.value.removeEventListener("touchstart",h),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:r,myDrag:o,touchStart:h,touchMove:s,touchEnd:d}}});function f1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[(0,t.renderSlot)(e.$slots,"default")],34)}var Sa=re(d1,[["render",f1]]),m1={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}},p1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function h1(e,n,o,l,r){return{props:{...Je,...m1},setup(i,{attrs:a,slots:u,emit:s}){const{toLocaleRefs:d}=(0,ve.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),c=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,v=>{p.value!==v&&(p.value=v,v&&s("opened"))});const g=v=>{p.value=v,s("update:visible",v),s("update",v)},A=v=>{if(s(v),!(v==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const y=i.beforeClose(v);yt(y)?y.then(V=>{V&&(g(!1),s("closed",v))}):y===!0&&(g(!1),s("closed",v))}else g(!1),s("closed",v)},k=()=>{A("confirm")},w=()=>{A("cancel")},b=()=>{A("close")},f=(v,y)=>p1(v)?(y.src=v,(0,t.h)("img",y)):typeof v=="string"?(Array.isArray(y.class)?y.class.push(v):y.class&&typeof y.class=="object"?y[`${v}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${v}`:y.class=v,(0,t.h)(i.tag,y)):(0,t.h)(v,y),m=()=>{const v=[];if(u.header){const y=u.header();v.push(y)}else{if(i.title){const y=(0,t.h)("view",{class:`${c}__header-title`},[i.title]);v.push(y)}if(i.showClose){const y={class:[`${c}__header-close-icon`],onClick:b},V=f(i.closeIcon??r,y);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},S=()=>{const v=[];if(u.default)v.push(u.default());else{const y={class:[`${c}__content`]};if(i.textAlign&&y.class.push(i.textAlign),typeof i.content=="string"){y.innerHTML=i.content;const V=(0,t.h)("view",y);v.push(V)}else if(typeof i.content=="function"){const V=(0,t.h)("view",y,[i.content()]);v.push(V)}else{const V=(0,t.h)("view",y,[i.content]);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},v)},B=()=>{if(!i.showFooter)return null;const v=[];if(u.footer)v.push(u.footer());else if(i.plain){if(i.showCancelButton){const y={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:w};i.cancelButtonClass&&y.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(y.style,i.cancleButtonStyle);const V=(0,t.h)("view",y,[i.cancelButtonText??h.cancelText.value]);v.push(V)}if(i.showConfirmButton){const y={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&y.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(y.style,i.confirmButtonStyle);const V=(0,t.h)("view",y,[i.confirmButtonText??h.confirmText.value]);v.push(V)}}else{if(i.showCancelButton){const y={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:w};i.cancelButtonClass&&y.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(y.style,i.cancleButtonStyle);const V=(0,t.h)(l,y,{default:()=>[i.cancelButtonText??h.cancelText.value]});v.push(V)}if(i.showConfirmButton){const y={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&y.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(y.style,i.confirmButtonStyle);const V=(0,t.h)(l,y,{default:()=>[i.confirmButtonText??h.confirmText.value]});v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${i.footerDirection}`]},v)};return()=>{const v=[],y=m();y&&v.push(y);const V=S();V&&v.push(V);const T=B();T&&v.push(T);const N=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:i.plain}},v),C=[`${c}__popup`];i.popClass&&C.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)(o,{...ye(i,Je),popClass:C.join(" "),style:P,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":g,position:i.position,onClickOverlay:b,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>N})}}}}var{componentName:v1,create:g1,scope:y1}=J("dialog"),b1=g1(h1(v1,y1,we,xt,ae.Close)),ji=b1,S1=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},k1=class{options=new S1;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const a=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(ji,n)}});o.appendChild(r),(0,t.render)(a,r)}},Qt=function(e){return new k1(e)};Qt.install=e=>{e.use(ji),e.config.globalProperties.$dialog=Qt};var w1={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]}},C1=(e,n,o)=>({props:w1,emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["pullingText","loosingText","loadingText"]),d=nl(),h=(0,t.ref)(),c=Ri(h),p=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=(0,t.computed)(()=>({[a]:!0})),A=(0,t.computed)(()=>{const T=[`${a}__container`];return l.containerClass&&T.push(l.containerClass),T}),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)`:""})),b=(0,t.computed)(()=>{const T={};return l.headHeight!=50&&(T.height=he(l.headHeight)),T}),f=T=>{const N=+(l.pullDistance||l.headHeight);let C=T;return T>N&&(T<N*2?C=(T+N)/2:C=N+T/4),Math.round(C)},m=(T,N)=>{const C=+(l.pullDistance||l.headHeight);p.distance=T,N?p.status="loading":T===0?p.status="normal":T<C?p.status="pulling":p.status="loosing",r("change",{status:p.status,distance:T})},S=()=>p.status!=="loading"&&p.status!=="complete",B=()=>c.value==window?Li()==0:c.value&&c.value.scrollTop==0,v=T=>{S()&&(B()?(d.start(T),p.isPullRefresh=!0,p.moving=!0):(p.distance=0,p.isPullRefresh=!1))},y=T=>{S()&&p.moving&&(d.move(T),d.isVertical()&&d.state.deltaY>0&&p.isPullRefresh&&(T.cancelable&&T.preventDefault(),m(f(d.state.deltaY))))},V=()=>{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,T=>{T?m(+l.headHeight,!0):m(0)}),()=>{const T=[];let N=null;p.status==="loading"?(N=i?.loading?.()??null,N||(N=(0,t.h)(o,{class:[`${a}__container-topbox-icon`]}))):p.status==="pulling"?N=i?.pulling?.()??null:p.status==="loosing"&&(N=i?.loosing?.()??null),N&&T.push(N);const C=(0,t.h)("dive",{class:[`${a}__container-topbox-text`]},[k.value]);T.push(C);const P=(0,t.h)("div",{class:[`${a}__container-topbox`],style:b.value},T),H=(0,t.h)("div",{class:A.value,style:w.value},[P,i?.default?.()]),x={ref:h,class:g.value};return tl()?Object.assign(x,{onTouchstart:v,onTouchmove:y,onTouchend:V}):Object.assign(x,{onMousedown:v,onMousemove:y,onMouseup:V}),(0,t.h)("div",x,[H])}}}),{componentName:N1,create:A1,scope:B1}=J("pull-refresh"),T1=A1(C1(N1,B1,ae.Loading)),ka=T1,{create:V1}=J("notify"),x1=V1({components:{[we.name]:we},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 o=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},a=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{a.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{r(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:a}}});function E1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),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]=(...u)=>e.clickCover&&e.clickCover(...u))},[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 wa=re(x1,[["render",E1]]),Yl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},mt=[],Ht=[],Wi=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(o=>o.id!==e),mt=mt.filter(o=>o!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Ht=[],mt=[]},$1=e=>{const n=document.getElementById(e.id);if(n){const o=Ht.find(r=>r.id===e.id);o?e={...Yl,...o,...e}:e={...Yl,...e};const l=(0,t.createVNode)(wa,e);return(0,t.render)(l,n),l.component.data}},Mt=e=>{e.unmount=Wi;let n;if(e.id){if(n=e.id,mt.find(r=>r===e.id))return $1(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,mt.push(e.id),Ht.push(e);const o=document.createElement("view");o.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(o)},e.duration)}),()=>(0,t.h)(wa,e)}});document.body.appendChild(o),(0,t.render)(l,o)},zt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Ca={text(e,n={}){return zt(e),Mt({...n,msg:e})},primary(e,n={}){return zt(e),Mt({...n,msg:e,type:"primary"})},success(e,n={}){return zt(e),Mt({...n,msg:e,type:"success"})},danger(e,n={}){return zt(e),Mt({...n,msg:e,type:"danger"})},warn(e,n={}){return zt(e),Mt({...n,msg:e,type:"warning"})},hide(){Wi()},install(e){e.use(wa)}},{create:D1}=J("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 o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),(0,t.watch)(()=>e.duration,g=>{g&&a()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const g=ue(e.iconSize);return(0,t.h)(e.icon,{width:g,height:g,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]),c=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),q1={key:1,class:"fox-toast-title"},P1=["innerHTML"];function M1(e,n,o,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]=(...a)=>e.clickCover&&e.clickCover(...a))},[(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 Na=re(I1,[["render",M1]]),Xl={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},pt=[],_t=[],Yi=e=>{if(e){const n=document.getElementById(e);_t=_t.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else pt.forEach(n=>{const o=document.getElementById(n);o&&((0,t.render)(null,o),document.body.removeChild(o))}),_t=[],pt=[]},z1=e=>{const n=document.getElementById(e.id);if(n){const o=_t.find(r=>r.id===e.id);o?e={...Xl,...o,...e}:e={...Xl,...e};const l=(0,t.createVNode)(Na,e);return(0,t.render)(null,n),(0,t.render)(l,n),Et}},Rt=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return z1(e)}else n=new Date().getTime()+"";e={...Xl,...e},e.id=n,pt.push(e.id),_t.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Na,e),o),document.body.appendChild(o),Et},pn=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Et={text(e,n={}){if(pn(e))return Rt({...n,type:"text",msg:e})},success(e,n={}){if(pn(e))return Rt({icon:ae.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(pn(e))return Rt({icon:ae.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(pn(e))return Rt({icon:ae.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Rt({icon:ae.Loading,...n,msg:e,type:"loading"})},hide(e){Yi(e)},install(e){e.use(Na),e.config.globalProperties.$toast=Et}},{componentName:U2,create:R1}=J("audio"),L1=R1({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:ae.Service,[Yt.name]:Yt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){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)},a=k=>{r.currentTime=parseInt(k.target.currentTime)},u=()=>{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},c=()=>{r.playing=!1,n("ended")},p=k=>{const w=l.value;w.currentTime=r.second*k/100,n("changeProgress",w.currentTime)},g=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},A=k=>{if(!k)return"00:00:00";let w=parseInt(k),b=Math.floor(w/3600),f=Math.floor((w-b*3600)/60),m=w-b*3600-f*60,S="";return S+=("0"+b.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:g,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:p,audioEnd:c,onTimeupdate:a,handleMute:g,onCanplay:i,slots:o}}}),F1={class:"fox-audio"},O1={key:0,class:"fox-audio__progress"},K1={class:"fox-audio__time"},U1={class:"fox-audio__bar"},H1={class:"fox-audio__time"},_1={key:1,class:"fox-audio__icon"},j1=["controls","src","preload","autoplay","loop","muted"];function W1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",F1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",O1,[(0,t.createElementVNode)("div",K1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",U1,[(0,t.createVNode)(a,{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",H1,(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)(u,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(u,{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 Aa=re(L1,[["render",W1]]),{componentName:H2,create:Y1,scope:X1}=J("audio-operate"),Q1=Y1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,ve.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:o}}}),G1={class:"fox-audio-operate"};function Z1(e,n,o,l,r,i){const a=(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]=(...u)=>e.fastBack&&e.fastBack(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.forward&&e.forward(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.handleMute&&e.handleMute(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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 Ba=re(Q1,[["render",Z1]]),{componentName:J1,create:ek}=J("avatar"),tk=ek({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:o,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],a=(0,t.inject)("avatarGroup",null),u=(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=a?.avatarGroupRef?.value?.children;A&&g(A)});const h=(0,t.computed)(()=>({[J1]:!0,[`fox-avatar-${n.value||a?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||a?.props?.shape||"normal"}`]:!0})),c=(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&&(a?.props?.span?`${a?.props?.span}px`:""),zIndex:a?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${a?.props?.maxBgColor}`,color:`${a?.props?.maxColor}`})),g=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=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=a?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:c,maxStyles:p,avatarGroup:a,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function nk(e,n,o,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 Gt=re(tk,[["render",nk]]),{componentName:lk,create:ok}=J("avatar-group"),ak=ok({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.computed)(()=>({[lk]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:a,avatarGroupRef:r}}});function rk(e,n,o,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 Ta=re(ak,[["render",rk]]),Vl=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function ik(e,n,o){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const a=e[i],u=o(a,n);if(u===1)return i;u===2?l=i+1:u===3&&(r=i-1)}return i}var{componentName:sk,create:uk}=J("list"),$r=document.documentElement.clientHeight||document.body.clientHeight||667,ck=uk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:$r},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(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}),a=(0,t.computed)(()=>Math.min(e.containerHeight,$r)),u=(0,t.computed)(()=>Math.ceil(a.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+u.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[sk]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),c=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let b=0;b<i.list.length;++b)i.cachePositions[b]={index:b,height:e.height,top:b*e.height,bottom:(b+1)*(e.height+e.margin),dValue:0}},g=()=>{let b=r.value.childNodes;b=Array.from(b).filter(v=>v.nodeType===1);const f=b[0];b.forEach((v,y)=>{if(!v)return;const{height:V}=$e(v),T=i.cachePositions[y+i.start].height-V;T&&(i.cachePositions[y+i.start].bottom-=T,i.cachePositions[y+i.start].height=V,i.cachePositions[y+i.start].dValue=T)});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 v=m+1;v<S;++v){const y=i.cachePositions[v];i.cachePositions[v].top=i.cachePositions[v-1].bottom,i.cachePositions[v].bottom=i.cachePositions[v].bottom-B,y.dValue!==0&&(B+=y.dValue,y.dValue=0)}i.phantomHeight=i.cachePositions[S-1].bottom},A=(b=0)=>{let f=ik(i.cachePositions,b,(m,S)=>{const B=m.bottom;return B===S?Vl.eq:B<S?Vl.lt:Vl.gt});return i.cachePositions[f].bottom<b&&(f+=1),f},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,o.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},w=()=>{const b=o.value?.scrollTop,{originStartIndex:f}=i,m=A(b);m!==f&&(i.originStartIndex=m,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(b>i.scrollTop?"scroll-up":"scroll-down",b),i.scrollTop=b};return(0,t.watch)(()=>e.listData,b=>{if(i.list=b.slice(),i.list.length===b.length)p(),g();else{k();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&g()}),{...(0,t.toRefs)(i),list:o,phantom:l,actualContent:r,getTransform:c,visibleData:h,classes:d,getContainerHeight:a,handleScrollEvent:w}}});function dk(e,n,o,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]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:a},[(0,t.renderSlot)(e.$slots,"default",{item:a,index:u+e.start})]))),128))],4)],38)}var Va=re(ck,[["render",dk]]),{componentName:fk,create:mk}=J("circleprogress"),pk=mk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[fk]:!0})),i=(0,t.computed)(()=>{const u=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${u} 0 90 a 45 45 0 1, ${u} 0 -90`}),a=(0,t.computed)(()=>xe(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:a,stop:(0,t.computed)(()=>{if(!xe(e.color))return;let u=e.color;const s=Object.keys(u).sort((h,c)=>parseFloat(h)-parseFloat(c));let d=[];return s.map((h,c)=>{let p={key:"",value:""};p.key=h,p.value=u[h],d.push(p)}),d}),slotDefault:o,refRandomId:l}}}),hk={viewBox:"0 0 100 100"},vk=["id"],gk=["offset","stop-color"],yk=["d","stroke-width"],bk=["d","stroke","stroke-linecap","stroke-width"],Sk={class:"fox-circleprogress-text"},kk={key:0};function wk(e,n,o,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",hk,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:a.key,"stop-color":a.value},null,8,gk))),128))],8,vk)]),(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",Sk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",kk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var xa=re(pk,[["render",wk]]),{componentName:Ck,create:Nk}=J("noticebar"),Ak=Nk({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:ae.Notice,CircleClose:ae.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){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}),a=(0,t.computed)(()=>({[Ck]:!0})),u=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let y={};return e.color&&(y.color=e.color),e.background&&(y.background=e.background),e.direction=="vertical"&&(y.height=`${e.height}px`),y}),h=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let y={};if(e.complexAm)y={transform:`translateY(${i.distance}px)`};else if(i.animate){let V=~~(e.height/e.speed/4);y={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return y});(0,t.watch)(()=>e.text,y=>{p(y)}),(0,t.watch)(()=>e.list,y=>{i.scrollList=[...y]});const p=y=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const V=l.value.getBoundingClientRect().width,T=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?T>V:e.scrollable,i.isCanScroll?(i.wrapWidth=V,i.offsetWidth=T,i.duration=T/e.speed,i.animationClass="play"):i.animationClass=""},0)},g=y=>{n("click",y)},A=y=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",y)},k=y=>{i.firstRound=!1,n("across-end",y),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},w=()=>{b(),i.timer=setInterval(b,~~(e.height/e.speed/4*1e3)+e.standTime)},b=()=>{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 y=100;for(let V=0;V<y;V++)m(V,!(V<y-1))},e.standTime+100*e.speed)},m=(y,V)=>{setTimeout(()=>{i.distance-=e.height/100,V&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},y*e.speed)},S=y=>{n("click",y)},B=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?v(o.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():w()},e.standTime)):p(e.text)}),(0,t.watch)(()=>o.default?o.default():[],y=>{e.direction==="vertical"&&o.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),v(y))});const v=y=>{y&&y.length>0&&(i.scrollList=y[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:u,classes:a,barStyle:d,contentStyle:h,horseLampStyle:c,wrap:l,content:r,handleClick:g,onClickIcon:A,onAnimationEnd:k,go:S,handleClickIcon:B,slots:o,toPxString:he,wrapContentClass:s}}}),Bk={key:0,class:"fox-noticebar__page-lefticon"},Tk={ref:"wrap",class:"fox-noticebar__page-wrap"},Vk={class:"showNotica"},xk=["onClick"];function Ek(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Notice"),u=(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",Bk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Tk,[(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)(u,{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",Vk,[((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:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:h},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,xk))),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)(u,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Ea=re(Ak,[["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/y9UkJSWAgYHj5O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U5ErkJggg==",{componentName:_2,create:qk,scope:Pk}=J("empty"),Mk={empty:$k,error:Dk,network:Ik},zk=qk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ve.useFoxI18n)(Pk),o=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}`:""),a=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Mk[l.value];return{...o,imageUrl:a,imgStyle:i}}}),Rk={class:"fox-empty"},Lk=["src"],Fk={key:1,class:"fox-empty-description"};function Ok(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rk,[(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,Lk)):(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 $a=re(zk,[["render",Ok]]),{create:Kk,scope:Uk}=J("video"),Hk=Kk({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:o}=(0,ve.useFoxI18n)(Uk),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,v=>{v.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,v=>{l.state.isMuted=v?v.muted:!1},{immediate:!0});const a=()=>{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?u():(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",Cn(c,1e3)))},u=()=>{const v=r.value,y=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=v,l.progressBar.progressElm=y,l.progressBar.pos=y.getBoundingClientRect(),l.videoSet.progress.width=Math.round(y.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",Cn(c,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{g()}else l.videoElm.pause(),n("pause",l.videoElm)},d=v=>{let y=[];const V=Math.floor(v/3600);V>0&&(V<10?y.push(`0${V}`):y.push(`${V}`));const T=Math.floor(v%3600/60);T<10?y.push(`0${T}`):y.push(`${T}`);const N=Math.round(v%3600%60);return N<10?y.push(`0${N}`):y.push(`${N}`),y.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const v=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*v),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)},g=()=>{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=()=>{},b=v=>{let y=v.targetTouches[0].pageX-l.progressBar.pos.left;y<=0&&(y=0),y>=l.videoSet.progress.width&&(y=l.videoSet.progress.width),l.videoSet.progress.current=y;let V=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(V,l.videoElm.duration)},f=v=>{let y=v.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=y;let V=y/l.videoSet.progress.width;l.videoElm.duration&&m(V,l.videoElm.duration)},m=(v,y)=>{l.videoElm.currentTime=Math.floor(v*y)},S=()=>{l.state.isError=!1,a()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{a()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:g,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:w,touchSlidMove:b,touchSlidEnd:f,retry:S,fullScreen:B,t:o}}}),_k={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"},Zk={class:"fox-video-controller__total"},Jk={class:"fox-video-error"},ew={class:"fox-video-error-tip"};function tw(e,n,o,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]=(...a)=>e.handleError&&e.handleError(...a))},[(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]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))}),(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)(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(a=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(a=>e.touchSlidEnd(a),["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",Zk,(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]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Jk,[(0,t.createElementVNode)("p",ew,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var At=re(Hk,[["render",tw]]),Xi=Symbol("fox-steps"),{create:nw,componentName:lw}=J("steps"),ow=nw({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:o}){const l=(0,t.computed)(()=>{const i=lw;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return sn(Xi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},o.default?.())}}),Da=ow,{create:aw,componentName:rw}=J("step"),iw=aw({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:o}=un(Xi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=o.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),a=(0,t.computed)(()=>{const s=rw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),u=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:a,handleClickStep:u}}}),sw={class:"fox-step-head"},uw={class:"fox-step-icon-inner"},cw={key:1,class:"fox-step-inner"},dw={class:"fox-step-main"},fw={class:"fox-step-title"},mw={key:0},pw={key:0,class:"fox-step-content"},hw=["innerHTML"];function vw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClickStep&&e.handleClickStep(...a))},[(0,t.createElementVNode)("view",sw,[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",uw,[(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",dw,[(0,t.createElementVNode)("view",fw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",mw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",pw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,hw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Ia=re(iw,[["render",vw]]),Qi=Symbol("fox-swiper"),{create:gw,componentName:xl}=J("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:o,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:{}}),a=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:u}=sn(Qi,{props:e,size:a}),s=ot(),d=(0,t.computed)(()=>({[xl]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const z=xl;return{[`${z}-inner`]:!0,[`${z}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const z=xl;return{[`${z}-pagination`]:!0,[`${z}-pagination-vertical`]:h.value}}),g=(0,t.computed)(()=>h.value?s.deltaY.value:s.deltaX.value),A=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>u.value.length),w=(0,t.computed)(()=>k.value*a.value),b=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-a.value*k.value:0),f=(0,t.computed)(()=>(i.active+k.value)%k.value),m=()=>{let z=0;z=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${h.value?"Y":"X"}(${z}px)`,[h.value?"height":"width"]:`${a.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},S=(z,W=0)=>{let I=z*a.value;e.loop||(I=Math.min(I,-b.value));let Q=W-I;return e.loop||(Q=_e(Q,b.value,0)),Q},B=z=>{const{active:W}=i;return z?e.loop?_e(W+z,-1,k.value):_e(W+z,0,k.value-1):W},v=({pace:z=0,offset:W=0,isEmit:I=!1})=>{if(k.value<=1)return;const{active:Q}=i,ee=B(z),oe=S(ee,W);if(e.loop){if(u.value[0]&&oe!==b.value){const Y=oe<b.value;u.value[0].setOffset(Y?w.value:0)}if(u.value[k.value-1]&&oe!==0){const Y=oe>0;u.value[k.value-1].setOffset(Y?-w.value:0)}}i.active=ee,i.offset=oe,I&&Q!==i.active&&n("change",f.value),m()},y=()=>{i.moving=!0,i.active<=-1&&v({pace:k.value}),i.active>=k.value&&v({pace:-k.value})},V=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},T=z=>{y(),s.reset(),Qe(()=>{Qe(()=>{i.moving=!1,v({pace:z,isEmit:!0})})})},N=()=>{T(-1)},C=()=>{T(1)},P=z=>{y(),s.reset(),Qe(()=>{i.moving=!1;let W=0;e.loop&&k.value===z?W=i.active===0?0:z:W=z%k.value,v({pace:W-i.active,isEmit:!0})})},H=()=>{const z=de(e.autoPlay);z<=0||k.value<=1||(V(),i.autoplayTimer=setTimeout(()=>{C(),H()},z))},x=(z=+e.initPage)=>{V(),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=S(i.active),i.moving=!0,m(),H()},M=z=>{e.isPreventDefault&&z.preventDefault(),e.isStopPropagation&&z.stopPropagation(),e.touchable&&(s.start(z),i.touchTime=Date.now(),V(),y())},q=z=>{e.touchable&&i.moving&&(s.move(z),A.value&&v({offset:g.value}))},R=z=>{if(!e.touchable||!i.moving)return;const W=g.value/(Date.now()-i.touchTime);if((Math.abs(W)>.3||Math.abs(g.value)>+(a.value/2).toFixed(2))&&A.value){let I=0;const Q=h.value?s.offsetY.value:s.offsetX.value;e.loop?I=Q>0?g.value>0?-1:1:0:I=-Math[g.value>0?"ceil":"floor"](g.value/a.value),v({pace:I,isEmit:!0})}else g.value&&v({pace:0});i.moving=!1,m(),H()};return l({prev:N,next:C,to:P}),(0,t.onDeactivated)(()=>{V()}),(0,t.onBeforeUnmount)(()=>{V()}),(0,t.watch)(()=>e.initPage,z=>{(0,t.nextTick)(()=>{x(Number(z))})}),(0,t.watch)(()=>u.value.length,()=>{(0,t.nextTick)(()=>{x()})}),(0,t.watch)(()=>e.autoPlay,z=>{de(z)>0?H():V()}),{state:i,children:u,classes:d,classesInner:c,classesPagination:p,container:r,activePagination:f,onTouchStart:M,onTouchMove:q,onTouchEnd:R}}});function bw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===u?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===u}),key:u},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Bt=re(yw,[["render",bw]]),{create:Sw,componentName:kw}=J("swiper-item"),ww=Sw({setup(e,{slots:n,expose:o}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[kw]:!0})),i=s=>{l.offset=s},{parent:a}=un(Qi,{setOffset:i}),u=(0,t.computed)(()=>{const s={},d=a?.props.direction;return a?.size.value&&(s[d==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return o({setOffset:i}),{style:u,classes:r}}});function Cw(e,n,o,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 Tt=re(ww,[["render",Cw]]),Gi={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:Nw}=J("image-preview-item"),Aw=Nw({props:{...Gi,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[At.name]:At,[Tt.name]:Tt},setup(e,{emit:n}){const o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=ot(),r=(0,t.computed)(()=>{const{rootWidth:T,rootHeight:N}=e,C=N/T;return o.imageRatio>C}),i=(0,t.computed)(()=>{const T=e.image;if(T&&T.src){const{scale:N,moveX:C,moveY:P,moving:H,zooming:x}=o,M={transitionDuration:x||H?"0s":".3s"};return N!==1&&(M.transform=`scale(${N}, ${N}) translate(${C/N}px, ${P/N}px)`),M}return{}}),a=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:T,rootHeight:N}=e,C=r.value?N/o.imageRatio:T;return Math.max(0,(o.scale*C-T)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:T,rootHeight:N}=e,C=r.value?N:T*o.imageRatio;return Math.max(0,(o.scale*C-N)/2)}return 0}),s=T=>{const{naturalWidth:N,naturalHeight:C}=T.target;o.imageRatio=C/N},d=()=>{h(1),o.moveX=0,o.moveY=0},h=T=>{T=_e(T,+e.minZoom,+e.maxZoom+1),T!==o.scale&&(o.scale=T,n("scale",{scale:T,index:e.initNo}))},c=()=>{h(o.scale>1?1:2),o.moveX=0,o.moveY=0},p=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let g,A,k,w,b,f,m;const S=T=>{const{touches:N}=T,{offsetX:C}=l;l.start(T),m=N.length,g=o.moveX,A=o.moveY,f=Date.now(),o.moving=m===1&&o.scale!==1,o.zooming=m===2&&!C.value,o.zooming&&(k=o.scale,w=p(T.touches))},B=T=>{const{touches:N}=T;if(l.move(T),(o.moving||o.zooming)&&Rl(T,!0),o.moving){const{deltaX:C,deltaY:P}=l,H=C.value+g,x=P.value+A;o.moveX=_e(H,-a.value,a.value),o.moveY=_e(x,-u.value,u.value)}if(o.zooming&&N.length===2){const C=p(N);h(k*C/w)}},v=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:T,offsetY:N}=l,C=Date.now()-f,P=250,H=5;T.value<H&&N.value<H&&C<P&&(b?(clearTimeout(b),b=null,c()):b=setTimeout(()=>{e.contentClose&&n("close"),b=null},P))},y=T=>{let N=!1;(o.moving||o.zooming)&&(N=!0,o.moving&&g===o.moveX&&A===o.moveY&&(N=!1),T.touches.length||(o.zooming&&(o.moveX=_e(o.moveX,-a.value,a.value),o.moveY=_e(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,g=0,A=0,k=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Rl(T,N),v(),l.reset()},V=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,T=>{T||d()}),{...(0,t.toRefs)(o),onTouchStart:S,onTouchMove:B,onTouchEnd:y,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:V}}}),Bw=["src"];function Tw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{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,Bw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Vw=re(Aw,[["render",Tw]]),{create:xw}=J("image-preview"),Ew=xw({props:{...Gi,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:Vw,CircleClose:ae.CircleClose,[we.name]:we,[Bt.name]:Bt},setup(e,{emit:n}){const o=(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)(()=>Dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),a=h=>{h!==l.active&&(l.active=h,n("change",l.active))},u=()=>{_i(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const h=$e(o.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(a(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&a(h)}),(0,t.onMounted)(()=>{a(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:i,setActive:a,iconClasses:r}}}),$w={class:"fox-image-preview",ref:"swipeRef"},Dw={key:0,class:"fox-image-preview-index"};function Iw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("image-preview-item"),u=(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)(u,{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,c)=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:c,video:c<e.videos.length?h:{},image:c>=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 Zi=re(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:o}=_s(n,{name:"image-preview",components:[we,At,Bt,Tt,ut],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(Zi,n))}})})}},gl=e=>new Pw(e);gl.install=e=>{e.use(Zi)};var{create:Mw}=J("countup"),zw=Mw({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:o}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=T=>{T&&r.value.push(T)},a=(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:u,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,T=>{a.prizeLevelTrun=T}),(0,t.watch)(()=>e.initNum,T=>{a.current=T,a.valFlag=!1,c()}),(0,t.watch)(()=>e.endNum,()=>{a.current=e.initNum,a.valFlag=!1,c()});const c=()=>{if(a.valFlag)return!1;u&&(s||d?h!="machine"&&b():(w(),setTimeout(()=>{a.valFlag=!0},300)))},p=()=>{clearInterval(Number(a.timer)),a.timer=null},g=(T,N,C)=>{const P=(T.toString().split(".")[1]||"").length,H=(N.toString().split(".")[1]||"").length,x=Math.pow(10,Math.max(P,H));return C=="-"?Number((T*x-N*x).toFixed(0))/x:Number((T*x+N*x).toFixed(0))/x},A=T=>{let{num_total_len:N,pointNum:C,initDigit1:P,initDigit2:H,sortFlag:x}=a,M=x=="add"||x=="equal"?String(H)[T-(N-C)]:10-Number(String(H)[T-(N-C)]),q=x=="add"||x=="equal"?String(P)[T]:10-Number(String(P)[T]),R=T>N-C-1?-M*100+"%":T<=String(P).length-1?-q*100+"%":0;return R=="-1000%"&&(R=0),R},k=T=>{let{num_total_len:N,pointNum:C,initDigit1:P,initDigit2:H}=a,x=String(H)[T-(N-C)];return T>N-C-1?x||0:T<=String(P).length-1?String(P)[T]:0},w=()=>{let{endNum:T,initNum:N,speed:C,toFixed:P}=e,H=setInterval(()=>{N>T?Number(a.current)<=T||Number(a.current)<=C?(a.current=T.toFixed(P),clearInterval(H),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))-parseFloat(String(C))).toFixed(P):Number(a.current)>=T?(a.current=T.toFixed(P),clearInterval(H),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))+parseFloat(String(C))).toFixed(P)},e.during)},b=T=>{let{initNum:N,endNum:C,toFixed:P,customBgImg:H}=e;H&&(N=e.customChangeNum);let x,M,q,R;N!=0?(P!=0&&(N=Number(N.toFixed(P))),String(N).indexOf(".")>-1?(x=String(N).split(".")[0].length,M=String(N).split(".")[1].length):(x=String(N).length,M=0)):(x=1,M=0),C!=0?(P!=0&&(C=Number(C.toFixed(P))),String(C).indexOf(".")>-1?(q=String(C).split(".")[0].length,R=String(C).split(".")[1].length):(q=String(C).length,R=0)):(q=1,R=0);let z=x>=q?x:q,W=M>=R?M:R;a.num_total_len=z+W,a.pointNum=W,N>C?(a.sortFlag="reduce",a.to0_10=[0,9,8,7,6,5,4,3,2,1,0],a.totalCount=g(N,C,"-"),a.numberVal=Number(String(N))):N<C?(a.sortFlag="add",a.to0_10=[0,1,2,3,4,5,6,7,8,9,0],a.totalCount=g(C,N,"-"),a.numberVal=Number(String(C))):a.sortFlag="equal";var I=1;for(let ee=0;ee<a.pointNum;ee++)I*=10;var Q=a.numberVal*I;if(a.relNum=Q,P!=0&&(a.pointNum=String(a.numberVal).split(".")[1]?String(a.numberVal).split(".")[1].length:0,a.num_total_len=String(Q).length),String(N).indexOf(".")>-1){let ee=String(N).split(".");a.initDigit1=Number(ee[0]),a.initDigit2=Number(ee[1])}else a.initDigit1=N,a.initDigit2=0;s&&!H?(0,t.nextTick)(()=>{if(a.sortFlag=="equal")return!1;let ee=r.value[a.num_total_len-1];f(ee)}):T!==0&&B()},f=T=>{p();var N=1;a.pointNum!=0&&(N=1/Math.pow(10,a.pointNum)),a.timer=setInterval(()=>{m(T),a.totalCount=g(a.totalCount,N,"-"),a.totalCount<=0&&(p(),n("scrollEnd"),a.valFlag=!1)},e.during)},m=T=>{let N=T.getAttribute("turn-number"),C;if(a.sortFlag=="add"?C=parseInt(String(N))+1:C=parseInt(String(N))-1>=0?parseInt(String(N))-1:9,T.setAttribute("turn-number",String(C)),(T.style.transition=="none 0s ease 0s"||C==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),C==10||a.sortFlag=="reduce"&&C==0){var P=null;T.style.top=`-${a.sortFlag=="add"?C*100:(10-C)*100}%`,T.setAttribute("turn-number","0"),P=setTimeout(()=>{P&&clearTimeout(P),T.style.transition="none",T.style.top="0",S(T,C)},.975*e.during)}else T.style.top=`-${a.sortFlag=="add"?C*100:(10-C)*100}%`;T.style.top=="-100%"&&a.sortFlag=="reduce"&&m(T.previousSibling)},S=(T,N)=>{setTimeout(()=>{N==10&&T.previousSibling&&m(T.previousSibling)},200)},B=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),a.valFlag=!1})})},v=()=>{for(a.notPrize=[];a.notPrize.length<3;){var T=Math.floor(Math.random()*e.machinePrizeNum+1);a.notPrize.indexOf(T)==-1&&a.notPrize.push(T)}};o({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let N=e.numHeight*e.machinePrizeNum;a.prizeLevelTrun<0&&v();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let P=N*(C+1+parseFloat(String(T)));a.prizeYPrev.length!=0&&(a.prizeY[C]=a.prizeYPrev[C]);let H=a.prizeYPrev[C]?a.prizeYPrev[C]:0,x=P+H+(e.machinePrizeNum-a.prizeLevelTrun+1)*e.numHeight+(N-H);a.prizeLevelTrun<0&&(x+=e.numHeight*a.notPrize[C]),V(C,x,H)},500*C)}});const V=(T,N,C)=>{let P=setInterval(()=>{if(C<=N)C+=10,a.prizeY[T]=parseFloat(String(C));else if(clearInterval(P),P=null,a.finshMachine+=1,a.prizeY[T]=N,a.finshMachine==e.machineNum){let H=e.numHeight*e.machinePrizeNum;a.prizeYPrev=[],JSON.parse(JSON.stringify(a.prizeY)).forEach(x=>{let M=x;for(;M>H;)M-=H;a.prizeYPrev.push(M)}),setTimeout(()=>{a.finshMachine=0,a.prizeLevelTrun<0?(n("scrollEnd",!1),a.valFlag=!1):(n("scrollEnd",!0),a.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{a.current=e.initNum,(0,t.nextTick)(()=>{c()})}),(0,t.onUnmounted)(()=>{p(),a.timer=null}),{...(0,t.toRefs)(a),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:A,turnNumber:k}}}),Rw={class:"fox-countup"},Lw=["turn-number"];function Fw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rw,[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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+u,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[u]+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+u,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)==e.num_total_len-e.pointNum?Number(u)*1.5:Number(u)*1.3:Number(u))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[u]*e.numHeight+e.customSpacNum*+String(e.relNum)[u])+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:a,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(u),left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)*1.1:Number(u))+"px"}),"turn-number":e.turnNumber(u)},[((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,Lw))),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 qa=re(zw,[["render",Fw]]),Ow=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Kw,create:Uw}=J("countdown"),Hw=Uw({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:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Kw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Ow(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const g=Date.now()-l.diffTime,A=Math.max(l.handleEndTime-g,0);l.restTime=A,A||(l.counting=!1,c(),n("on-end")),A>0&&u()}}))},s=(g,A)=>{const k=g;let w={d:0,h:0,m:0,s:0,ms:0};const b=1e3,f=60*b,m=60*f,S=24*m;return k>0&&(w.d=k>=b?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/b),w.ms=Math.floor(k%b)),A=="custom"?w:d({...w})},d=g=>{let{d:A,h:k,m:w,s:b,ms:f}=g,m=e.format;if(m.includes("DD")?m=m.replace("DD",at(A)):k+=Number(A)*24,m.includes("HH")?m=m.replace("HH",at(k)):w+=Number(k)*60,m.includes("mm")?m=m.replace("mm",at(w)):b+=Number(w)*60,m.includes("ss")?m=m.replace("ss",at(b)):f+=Number(b)*1e3,m.includes("S")){const S=at(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),u(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?a():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,g=>{let A=s(g,"custom");n("update:modelValue",A),n("input",A)}),(0,t.watch)(()=>e.paused,(g,A)=>{A?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,g=>{a()}),(0,t.watch)(()=>e.startTime,g=>{a()}),{...(0,t.toRefs)(e),slots:o,classes:r,start:h,pause:c,renderTime:i,reset:p}}}),_w=["innerHTML"];function jw(e,n,o,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 Pa=re(Hw,[["render",jw]]),{create:Ww}=J("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,o=e.max;return typeof n=="number"&&typeof o=="number"&&o<n?`${o}+`:n})}}}),Xw={class:"fox-badge"},Qw=["textContent"];function Gw(e,n,o,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 Ma=re(Yw,[["render",Gw]]),{componentName:Zw,create:Jw}=J("tag"),eC=Jw({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:ae.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const a=Zw;return{[a]:!0,[`${a}--${e.type}`]:!0,[`${a}--plain`]:e.plain,[`${a}--round`]:e.round,[`${a}--mark`]:e.mark,[`${a}--symbol`]:e.symbol,[`${a}--text`]:e.text,[`${a}--light`]:e.light}}),getStyle:()=>{const a={};return e.textColor?a.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(a.color=e.color),e.plain?(a.background="#fff",a["border-color"]=e.color):!e.text&&e.color&&(a.background=e.color),a},onClose:a=>{a.stopPropagation(),n("close",a)},onClick:a=>{n("click",a)}}}});function tC(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClick&&e.onClick(...u))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var za=re(eC,[["render",tC]]),{create:nC}=J("popover"),lC=nC({components:{FoxPopup:we},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 o=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),a=(0,t.ref)();const u=(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,v=B.split("-")[0],y=B.split("-")[1],V=16;return m&&(f[`border${d(v)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(v)&&(y||(f.left=`calc(50% + ${S}px)`),y=="start"&&(f.left=`${V+S}px`),y=="end"&&(f.right=`${V-S}px`)),["left","right"].includes(v)&&(y||(f.top=`calc(50% - ${S}px)`),y=="start"&&(f.top=`${V-S}px`),y=="end"&&(f.bottom=`${V+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||!a.value)return{};const m=a.value.width,S=a.value.height,{width:B,height:v,left:y,top:V}=i.value,{location:T,offset:N}=e,C=T.split("-")[0],P=T.split("-")[1];let H=0,x=0;return Dn(N)&&N.length==2&&(H+=Number(N[1]),x+=Number(N[0])),B&&(["bottom","top"].includes(C)&&(f.top=`${V+(C=="bottom"?v+H:-(S+H))}px`,P||(f.left=`${-(m-B)/2+y+x}px`),P=="start"&&(f.left=`${y+x}px`),P=="end"&&(f.left=`${i.value.right+x}px`)),["left","right"].includes(C)&&(f.left=`${y+(C=="left"?-(m+H):B+H)}px`,P||(f.top=`${V-S/2+v/2-4+x}px`),P=="start"&&(f.top=`${V+x}px`),P=="end"&&(f.top=`${V+v+x}px`))),f}),c=(0,t.computed)(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=$e(o.value);e.targetId&&(f=$e(document.querySelector(`#${e.targetId}`))),i.value=f,setTimeout(()=>{a.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",b,!0),p()):window.removeEventListener("touchstart",b,!0)});const g=f=>{n("update",f),n("update:visible",f)},A=()=>{g(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},w=(f,m)=>{!f.disabled&&n("choose",f,m),e.closeOnClickAction&&k()},b=f=>{const m=o.value,S=l.value;let B=m&&!m.contains(f.target);if(e.targetId){const v=document.querySelector(`#${e.targetId}`);B=v&&!v.contains(f.target)}B&&S&&!S.contains(f.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:A,popoverArrow:u,closePopover:k,chooseItem:w,popoverRef:o,popoverContentRef:l,getRootPosition:h,customStyle:c,popoverArrowStyle:s,renderIcon:fi}}}),oC={ref:"popoverContentRef",class:"fox-popover-content-group"},aC=["onClick"],rC={class:"fox-popover-menu-item-name"};function iC(e,n,o,l,r,i){const a=(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]=(...u)=>e.openPopover&&e.openPopover(...u))},[(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)(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.showPopup=u),"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",oC,[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,(u,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([u.className,u.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(u,s),["stop"])},[u.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(u.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",rC,(0,t.toDisplayString)(u.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 Zt=re(lC,[["render",iC]]),sC=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:o,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:uC}=J("skeleton"),cC=uC(sC({[Gt.name]:Gt})),dC={key:0},fC={key:1,class:"fox-skeleton"},mC={key:0,class:"fox-skeleton-animation"},pC={class:"fox-skeleton-content"};function hC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",fC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",mC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",pC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(a,{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),u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,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",dC,[(0,t.renderSlot)(e.$slots,"default")]))}var Ra=re(cC,[["render",hC]]),{create:vC,componentName:gC}=J("collapse"),yC=vC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(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)},a=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 应为数组")},u=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:a,isExpanded:u}),{collapseDom:o,classes:r}}});function bC(e,n,o,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 La=re(yC,[["render",bC]]),{create:SC,componentName:kC}=J("collapse-item"),wC=SC({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:ae.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const c=kC;return{[c]:!0,[c+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),a=(0,t.ref)(i.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{i.value&&(a.value="auto")},d=()=>{a.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto"})})},h=()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value="0px"})})};return(0,t.watch)(i,c=>{c?d():h()}),{classes:r,renderIcon:fi,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:a,expanded:i,onTransitionEnd:s}}}),CC={class:"fox-collapse-item__title-main"},NC={class:"fox-collapse-item__title-main-value"},AC=["innerHTML"],BC={key:2,class:"fox-collapse-item__title-label"},TC={key:0,class:"fox-collapse-item__title-sub"},VC=["innerHTML"],xC={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,o,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]=(...a)=>e.toggle&&e.toggle(...a))},[(0,t.createElementVNode)("view",CC,[(0,t.createElementVNode)("view",NC,[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,AC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",BC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",TC,[(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,VC)),(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",xC,[(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]=(...a)=>e.onTransitionEnd&&e.onTransitionEnd(...a))},[(0,t.createElementVNode)("view",$C,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Fa=re(wC,[["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:MC}=J("table"),zC=PC({components:{RenderColumn:IC,DownArrow:ae.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:o}){const{t:l}=(0,ve.useFoxI18n)(MC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[qC]:!0})),a=g=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${g.align?g.align:""}`]:!0}),u=g=>g.stylehead?g.stylehead:"",s=g=>g.stylecolumn?g.stylecolumn:"",d=g=>e.columns.filter(A=>A.key===g)[0],h=g=>{const A=e.columns.filter(k=>k.key===g);return A[0].stylecolumn?A[0].stylecolumn:""},c=g=>{g.sorter&&(n("sorter",g),r.curData=typeof g.sorter=="function"?r.curData.sort(g.sorter):g.sorter==="default"?r.curData.sort():r.curData)},p=()=>e.columns.map(g=>[g.key,g.render]);return(0,t.watch)(()=>e.data,g=>{r.curData=g.slice()}),{...(0,t.toRefs)(r),classes:i,cellClasses:a,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:c,sortDataItem:p,t:l,stylehead:u,stylecolumn:s}}}),RC={class:"fox-table__main__head"},LC={class:"fox-table__main__head__tr"},FC=["onClick"],OC={class:"fox-table__main__body"},KC={key:1},UC={key:0,class:"fox-table__nodata"},HC={key:0,class:"fox-table__nodata__text"},_C={key:1,class:"fox-table__summary"},jC=["innerHTML"];function WC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("DownArrow"),u=(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",RC,[(0,t.createElementVNode)("view",LC,[((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)(a,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,FC))),128))])]),(0,t.createElementVNode)("view",OC,[((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)(u,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",UC,[(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",HC,(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,jC)])):(0,t.createCommentVNode)("",!0)],2)}var Oa=re(zC,[["render",WC]]),{componentName:YC,create:XC}=J("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 o=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),a=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[YC]:!0}));(0,t.watch)(()=>e.content,(k,w)=>{k!=w&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const k=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(b=>{l.style.setProperty(b,k.getPropertyValue(b))}),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)a.exceeded=!1,document.body.removeChild(l);else{a.exceeded=!0;const k=e.content.length,w=Math.floor((0+k)/2);i.value=e.direction==="middle"?c([0,w],[w,k]):h(0,k),document.body.removeChild(l)}},h=(k,w)=>{const b=a.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+b:l.innerText=b+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)},c=(k,w)=>{const b=a.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+b+e.symbol+e.content.slice(S,f),l.offsetHeight<=r?c([m,k[1]],[w[0],S]):c([k[0],m],[S,w[1]])},p=k=>{if(!k)return 0;const w=k.match(/^\d*(\.\d*)?/);return w?Number(w[0]):0},g=k=>{k==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},A=()=>{n("click")};return{...(0,t.toRefs)(a),root:o,ellipsis:i,classes:u,clickHandle:g,handleClick:A}}}),GC={key:0},ZC={key:1},JC={key:2};function e2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),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",ZC,[(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)(a=>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",JC,[(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)(a=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ka=re(QC,[["render",e2]]),{componentName:t2,create:n2}=J("animate"),l2=n2({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:o,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let a=(0,t.computed)(()=>({"fox-animate__container":!0,[`${t2}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const u=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:a,handleClick:u}}}),o2={class:"fox-animate"};function a2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",o2,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ua=re(l2,[["render",a2]]),{componentName:r2,create:i2}=J("watermark"),s2=i2({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 o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:a,height:u,rotate:s,image:d,imageWidth:h,imageHeight:c,content:p,fontStyle:g,fontWeight:A,fontColor:k,fontSize:w,fontFamily:b}=e,f=()=>{const S=document.createElement("canvas"),B=window.devicePixelRatio,v=S.getContext("2d"),y=`${(r+a)*B}px`,V=`${(i+u)*B}px`,T=a*B,N=u*B;if(S.setAttribute("width",y),S.setAttribute("height",V),v)if(d){v.translate(T/2,N/2),v.rotate(Math.PI/180*Number(s));const C=new Image;C.crossOrigin="anonymous",C.referrerPolicy="no-referrer",C.src=d,C.onload=()=>{v.drawImage(C,-h*B/2,-c*B/2,h*B,c*B),v.restore(),o.base64Url=S.toDataURL()}}else p&&(v.textBaseline="middle",v.textAlign="center",v.translate(T/2,N/2),v.rotate(Math.PI/180*Number(s)),v.font=`${g} normal ${A} ${Number(w)*B}px/${N}px ${b}`,v.fillStyle=k,v.fillText(p,0,0),v.restore(),o.base64Url=S.toDataURL());else throw new Error("当前环境不支持Canvas")};f(),(0,t.watch)(()=>[l,r,i,a,u,s,d,h,c,p,g,A,k,w,b],()=>{f()});const m=(0,t.computed)(()=>{const S=r2;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:m}}});function u2(e,n,o,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 Ha=re(s2,[["render",u2]]);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:d2,create:f2}=J("trend-arrow"),m2=f2({components:{TriangleUp:ae.TriangleUp,TriangleDown:ae.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}),o=(0,t.computed)(()=>({[d2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:a,showSign:u,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${u&&i!==0?n.rateTrend?"+":"-":""}${c2(Number(d),a)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:a,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?a:i:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:r}}});function p2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TriangleUp"),u=(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)(a,{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)(u,{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 _a=re(m2,[["render",p2]]),{create:h2}=J("tour"),v2=h2({components:{[Zt.name]:Zt,Close:ae.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 o=(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:c,maskHeight:p}=e,{width:g,height:A,left:k,top:w}=l.value,b=[k+g/2,w+A/2],f=Number(c||g),m=Number(p||A);return{width:`${f+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${b[1]-m/2-+h[0]}px`,left:`${b[0]-f/2-+h[1]}px`}}),a=h=>{h=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{l.value=$e(document.querySelector(`#${e.steps[o.active].target}`))},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,h=>{h&&u(),o.active=0,o.showTour=h,o.showPopup=h}),{...(0,t.toRefs)(o),classes:r,maskStyle:i,changeStep:a,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"},S2={class:"fox-tour-content-bottom"},k2={class:"fox-tour-content-bottom-init"},w2={class:"fox-tour-content-bottom-operate"},C2={key:1,class:"fox-tour-content fox-tour-content-tile"},N2={class:"fox-tour-content-inner"};function A2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close"),u=(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)(u,{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)(a,{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",S2,[(0,t.createElementVNode)("div",k2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",w2,[(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",C2,[(0,t.createElementVNode)("div",N2,(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 ja=re(v2,[["render",A2]]),{componentName:B2,create:T2}=J("barrage"),V2=T2({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(),o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[B2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),a=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),c=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{g(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,A("hidden")):document.visibilityState==="visible"&&g()})}),(0,t.onUnmounted)(()=>{u.value=[],k()});const g=()=>{p.value=r.value.offsetWidth,o&&A("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),b()},300)},A=m=>{let S=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const B=[];S&&Array.from(S).forEach(v=>{m=="init"?(v.style.opacity="0",B.push(v)):(v.classList="",v.style={})}),m=="init"&&(u.value=B)},k=()=>{a&&(clearTimeout(a),a=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(u.value=[...m])});const w=m=>{const S=h.value%u.value.length;!e.loop&&h.value===u.value.length?u.value.splice(u.value.length,0,m):u.value.splice(S,0,m)},b=()=>{k(),a=setTimeout(()=>{f()},e.frequency)},f=()=>{const m=e.loop?h.value%u.value.length:h.value;let S=document.createElement("view");o&&typeof u.value[m]=="object"?(S=u.value[m],S?.classList?.add("fox-barrage__item")):(S.innerHTML=u.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=`${c}ms`,S.style.top=m%s.value*(B+d.value)+20+"px",S.style.opacity="1",!o){const v=S.offsetWidth;S.style.width=v+20+"px"}S.addEventListener("animationend",()=>{o?S.classList.remove("move"):i.value.removeChild(S)}),!(!e.loop&&h.value>=u.value.length-1)&&(h.value++,h.value>=u.value.length&&(h.value=0),S.removeEventListener("animationend",()=>{}),b())})};return{classTime:n,classes:l,danmuList:u,dmBody:r,dmContainer:i,add:w}}});function x2(e,n,o,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 Wa=re(V2,[["render",x2]]),{componentName:E2,create:$2,scope:D2}=J("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:xt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:o}){const{toLocaleRefs:l}=(0,ve.useFoxI18n)(D2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(null),u=(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],c,!1)},c=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],g,!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(),v=S.clientX-B.left,y=S.clientY-B.top;s.ctx.lineTo(v,y),s.ctx.stroke()},g=m=>{m.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],g,!1)},A=m=>{m.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],g,!1)},k=()=>{i.value.addEventListener(s.events[2],g,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},w=()=>{f(i.value)},b=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",b(m)?"请绘制签名":m,b(m)?"":S)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=a.value.offsetWidth,s.canvasHeight=a.value.offsetHeight,h())}),o({confirm:w,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:a,isCanvasSupported:d,confirm:w,clear:k,classes:u}}}),q2={class:"fox-signature__inner",ref:"wrap"},P2=["height","width"],M2={key:0,class:"fox-signature-unsopport"},z2={class:"fox-signature__toolbar"};function R2(e,n,o,l,r,i){const a=(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",M2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",z2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=u=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=u=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Ya=re(I2,[["render",R2]]),L2=[oo,ro,io,so,uo,ln,Gn,fo,mo,po,ho,vo,el,yo,ko,No,Ao,il,sl,Bo,ul,cl,To,xo,Vt,Eo,Do,hl,Io,Po,an,rn,ll,Mo,zo,Ro,Lo,it,Fo,Oo,Zn,wt,Jn,Ko,Uo,xt,Ho,_o,jo,ut,we,Wo,Yo,Xo,Qo,Wt,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,fa,ma,Yt,pl,ol,rl,al,vl,fl,on,pa,ha,va,ga,ya,ba,Sa,Qt,ml,ka,Ca,dl,Et,Aa,Ba,Gt,Ta,Va,Xt,xa,Ea,$a,At,Da,Ia,Bt,Tt,Xn,gl,qa,Pa,Ma,za,Zt,Ra,La,Fa,Oa,Ka,Ua,Ha,_a,ja,Wa,Ya],F2=new Hs(L2,"4.0.0");exports.AbstractPageScopeKey=no;exports.ActionSheet=ya;exports.FoxActionSheet=ya;exports.ActionsheetItem=Io;exports.FoxActionsheetItem=Io;exports.ActionsheetPane=hl;exports.FoxActionsheetPane=hl;exports.Animate=Ua;exports.FoxAnimate=Ua;exports.Audio=Aa;exports.FoxAudio=Aa;exports.AudioOperate=Ba;exports.FoxAudioOperate=Ba;exports.Avatar=Gt;exports.FoxAvatar=Gt;exports.AvatarGroup=Ta;exports.FoxAvatarGroup=Ta;exports.BackTop=ba;exports.FoxBackTop=ba;exports.Badge=Ma;exports.FoxBadge=Ma;exports.Barrage=Wa;exports.FoxBarrage=Wa;exports.Broadcast=jr;exports.BroadcastKey=Me;exports.Button=xt;exports.FoxButton=xt;exports.ButtonsItem=fo;exports.FoxButtonsItem=fo;exports.Calendar=rl;exports.FoxCalendar=rl;exports.CalendarItem=Ao;exports.FoxCalendarItem=Ao;exports.Cascader=ol;exports.FoxCascader=ol;exports.CascaderItem=ko;exports.FoxCascaderItem=ko;exports.Cell=Ho;exports.FoxCell=Ho;exports.CellGroup=jo;exports.FoxCellGroup=jo;exports.Checkbox=ul;exports.FoxCheckbox=ul;exports.CheckboxGroup=cl;exports.FoxCheckboxGroup=cl;exports.CheckboxItem=To;exports.FoxCheckboxItem=To;exports.CircleProgress=xa;exports.FoxCircleProgress=xa;exports.Col=Xo;exports.FoxCol=Xo;exports.Collapse=La;exports.FoxCollapse=La;exports.CollapseItem=Fa;exports.FoxCollapseItem=Fa;exports.Content=so;exports.FoxContent=so;exports.CountDown=Pa;exports.FoxCountDown=Pa;exports.CountUp=qa;exports.FoxCountUp=qa;exports.DataItemsKey=Ft;exports.DateItem=No;exports.FoxDateItem=No;exports.DatePicker=al;exports.FoxDatePicker=al;exports.DateUtils=gt;exports.Dialog=Qt;exports.FoxDialog=Qt;exports.Divider=Go;exports.FoxDivider=Go;exports.Domain=Mn;exports.DomainKey=Ge;exports.DomainProvider=Ko;exports.FoxDomainProvider=Ko;exports.Drag=Sa;exports.FoxDrag=Sa;exports.Dropdown=Oo;exports.FoxDropdown=Oo;exports.Elevator=ra;exports.FoxElevator=ra;exports.Ellipsis=Ka;exports.FoxEllipsis=Ka;exports.Empty=$a;exports.FoxEmpty=$a;exports.FixedNav=ta;exports.FoxFixedNav=ta;exports.FloatingButton=Ro;exports.FoxFloatingButton=Ro;exports.FooterBar=io;exports.FoxFooterBar=io;exports.FoxGrid=Zo;exports.Grid=Zo;exports.FoxGridItem=Jo;exports.GridItem=Jo;exports.FoxGroup=uo;exports.Group=uo;exports.FoxHeaderBar=ro;exports.HeaderBar=ro;exports.FoxHintText=Vt;exports.HintText=Vt;exports.FoxIcon=_o;exports.Icon=_o;exports.FoxImage=Wo;exports.Image=Wo;exports.FoxImagePreview=gl;exports.ImagePreview=gl;exports.FoxIndicator=ca;exports.Indicator=ca;exports.FoxInfiniteLoading=ml;exports.InfiniteLoading=ml;exports.FoxInputItem=po;exports.InputItem=po;exports.FoxInputNumber=vl;exports.InputNumber=vl;exports.FoxInputNumberItem=Po;exports.InputNumberItem=Po;exports.FoxItem=ln;exports.Item=ln;exports.FoxLayout=Yo;exports.Layout=Yo;exports.FoxLinkItem=Eo;exports.LinkItem=Eo;exports.FoxList=Va;exports.List=Va;exports.FoxMapping=Jn;exports.Mapping=Jn;exports.FoxMenu=na;exports.Menu=na;exports.FoxMenuItem=la;exports.MenuItem=la;exports.FoxMessageBox=it;exports.MessageBox=it;exports.FoxMoneyItem=ho;exports.MoneyItem=ho;exports.FoxMoreButton=Lo;exports.MoreButton=Lo;exports.FoxNavbar=ea;exports.Navbar=ea;exports.FoxNoticeBar=Ea;exports.NoticeBar=Ea;exports.FoxNotify=Ca;exports.Notify=Ca;exports.FoxNumberKeyboard=va;exports.NumberKeyboard=va;exports.FoxOverLay=ut;exports.OverLay=ut;exports.FoxPage=oo;exports.Page=oo;exports.FoxPagination=ia;exports.Pagination=ia;exports.FoxPicker=on;exports.Picker=on;exports.FoxPickerItem=yo;exports.PickerItem=yo;exports.FoxPopover=Zt;exports.Popover=Zt;exports.FoxPopoverDialog=Zn;exports.PopoverDialog=Zn;exports.FoxPopup=we;exports.Popup=we;exports.FoxPopupWrapper=Fo;exports.PopupWrapper=Fo;exports.FoxPrice=Xn;exports.Price=Xn;exports.FoxProgress=Xt;exports.Progress=Xt;exports.FoxPullRefresh=ka;exports.PullRefresh=ka;exports.FoxRadio=il;exports.Radio=il;exports.FoxRadioGroup=sl;exports.RadioGroup=sl;exports.FoxRadioItem=Bo;exports.RadioItem=Bo;exports.FoxRange=Yt;exports.Range=Yt;exports.FoxRate=fl;exports.Rate=fl;exports.FoxRateItem=Do;exports.RateItem=Do;exports.FoxRollingProvider=Uo;exports.RollingProvider=Uo;exports.FoxRow=Qo;exports.Row=Qo;exports.FoxRowItem=Gn;exports.RowItem=Gn;exports.FoxSearchBar=pl;exports.SearchBar=pl;exports.FoxShortPassword=pa;exports.ShortPassword=pa;exports.FoxSideNavBar=da;exports.SideNavBar=da;exports.FoxSideNavBarItem=fa;exports.SideNavBarItem=fa;exports.FoxSignature=Ya;exports.Signature=Ya;exports.FoxSkeleton=Ra;exports.Skeleton=Ra;exports.FoxSlotItem=mo;exports.SlotItem=mo;exports.FoxStep=Ia;exports.Step=Ia;exports.FoxSteps=Da;exports.Steps=Da;exports.FoxStepsBar=zo;exports.StepsBar=zo;exports.FoxSticky=Wt;exports.Sticky=Wt;exports.FoxSubSideNavBar=ma;exports.SubSideNavBar=ma;exports.FoxSwipe=ga;exports.Swipe=ga;exports.FoxSwiper=Bt;exports.Swiper=Bt;exports.FoxSwiperItem=Tt;exports.SwiperItem=Tt;exports.FoxSwitch=dl;exports.Switch=dl;exports.FoxSwitchItem=xo;exports.SwitchItem=xo;exports.FoxTabPane=ua;exports.TabPane=ua;exports.FoxTabbar=oa;exports.Tabbar=oa;exports.FoxTabbarItem=aa;exports.TabbarItem=aa;exports.FoxTable=Oa;exports.Table=Oa;exports.FoxTabs=sa;exports.Tabs=sa;exports.FoxTabsBar=an;exports.TabsBar=an;exports.FoxTabsContainer=rn;exports.TabsContainer=rn;exports.FoxTabsFrame=Mo;exports.TabsFrame=Mo;exports.FoxTabsPane=ll;exports.TabsPane=ll;exports.FoxTag=za;exports.Tag=za;exports.FoxText=wt;exports.Text=wt;exports.FoxTextarea=el;exports.Textarea=el;exports.FoxTextareaItem=vo;exports.TextareaItem=vo;exports.FoxToast=Et;exports.Toast=Et;exports.FoxTour=ja;exports.Tour=ja;exports.FoxTrendArrow=_a;exports.TrendArrow=_a;exports.FoxUploader=ha;exports.Uploader=ha;exports.FoxVideo=At;exports.Video=At;exports.FoxWaterMark=Ha;exports.WaterMark=Ha;exports.InnerPageScopeKey=to;exports.PriorityPolicy=Fl;exports.UniqueID=Qn;exports.ValidateSchema=Gr;exports.ValidateSchemaKey=Xe;exports.browseProperty=ui;exports.cancelRaf=Ir;exports.clamp=_e;exports.clearNonNumber=zl;exports.compareTo=ql;exports.createBroadcast=en;exports.createValidateSchema=Pn;exports.debounce=Ie;exports.debounceRef=$s;exports.decimalLength=_r;exports.default=F2;exports.defineConfigDomain=Jr;exports.defineDataItem=ei;exports.defineDomain=eo;exports.defineDomainItemProperty=Te;exports.defineItem=Be;exports.definePageState=ti;exports.defineSimpleItem=Oe;exports.deleteGlobalValidator=Ts;exports.disabledProperty=si;exports.divide=Gl;exports.excludeProps=tt;exports.extend=bt;exports.floatData=ks;exports.getGlobalIcons=On;exports.getGlobalValidateCheckEvents=Yr;exports.getGlobalValidateResetEvents=Qr;exports.getPageContentAreaHeight=Nn;exports.getPageContentAreaWidth=An;exports.getPageFooterAreaHeight=Ln;exports.getPageHeaderAreaHeight=Rn;exports.getRootDomain=ht;exports.hasSymbol=Fr;exports.includeProps=ye;exports.indexOf=bs;exports.injectAbstractPageScope=nn;exports.injectAbstractPageScopeForContent=ri;exports.injectAbstractPageScopeForFooterBar=ai;exports.injectAbstractPageScopeForHeaderBar=oi;exports.injectInnerPageScope=tn;exports.integerLength=Hr;exports.isArray=Dn;exports.isArrayLike=Kr;exports.isBrowser=et;exports.isDate=je;exports.isDisplayNone=Zl;exports.isESModule=ps;exports.isEmptyString=me;exports.isEqual=Ee;exports.isFunction=Sn;exports.isHidden=Pl;exports.isMap=cs;exports.isNil=Ve;exports.isNumberString=qn;exports.isObject=xe;exports.isPlainObject=ms;exports.isPromise=yt;exports.isRegExp=Ml;exports.isSet=ds;exports.isString=Rr;exports.isSubPage=Ms;exports.isSymbol=fs;exports.isTouch=tl;exports.isWindow=Or;exports.kebabToPascal=kn;exports.lastIndexOf=Ss;exports.makeArray=ys;exports.merge=Ur;exports.multiply=Pr;exports.negate=Mr;exports.nextTick=vs;exports.numberFormat=$n;exports.objectToString=Lr;exports.once=Ds;exports.overrideGlobalIcons=Zs;exports.overrideGlobalValidateHandler=As;exports.padZero=at;exports.pascalToKebab=ws;exports.preventDefault=Rl;exports.property=Ae;exports.provideAbstractPageScope=li;exports.provideInnerPageScope=ni;exports.px2Number=Ps;exports.raf=He;exports.readonlyProperty=ii;exports.setGlobalValidateCheckEvents=Vs;exports.setGlobalValidateHandler=Ns;exports.setGlobalValidateMessages=Es;exports.setGlobalValidateResetEvents=xs;exports.setGlobalValidator=Bs;exports.throttle=Cn;exports.toBoolean=Se;exports.toNumber=de;exports.toPadding=Le;exports.toPx=ue;exports.toPxDesc=qs;exports.toPxString=he;exports.toTypeString=In;exports.toValue=qe;exports.tryTimes=Jl;exports.typeOf=St;exports.unNumberFormat=zr;exports.updatePageState=Ll;exports.useBroadcast=Lt;exports.useDomain=nt;exports.useInnerSize=Fn;exports.usePageState=zn;exports.usePosition=co;exports.useRawTouch=nl;exports.useRect=$e;exports.useSize=ao;exports.useSlotChildren=Yn;exports.useTouch=ot;exports.valueLength=ke;
9
+ `)}}});function Tg(e,n,o,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 Zo=ie(Bg,[["render",Tg]]),{create:Vg}=le("sticky"),xg=Vg({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 o=(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)),a=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),u=(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(!o.value&&!d)return;const v=Pe(o),c=l.value,p=Pe(c),y=Pe(d);r.height=v.height;const N=()=>{let C=!1;if(e.position==="top")C=d?i.value>v.top&&y.bottom>0:i.value>v.top;else{const b=document.documentElement.clientHeight;C=d?y.bottom>0&&b-i.value-p.height>y.top:b-i.value<v.bottom}return C},S=()=>{if(d)if(e.position==="top"){const C=y.bottom-i.value-p.height;return C<0?C:0}else{const C=document.documentElement.clientHeight,b=y.bottom-(C-i.value);return b<0?b:0}return 0};r.transform=S(),r.fixed=N()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Yl(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Yl(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:a,stickyRef:l,stickyStyle:u}}});function $g(e,n,o,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 Jo=ie(xg,[["render",$g]]),{componentName:Eg,create:Dg}=le("divider"),Ig=Dg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const o=Eg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function qg(e,n,o,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 ea=ie(Ig,[["render",qg]]),fn=(e,n={})=>{const o=(0,t.shallowRef)([]),l=i=>{o.value.push(i),(0,t.triggerRef)(o)},r=i=>{const a=o.value.findIndex(u=>u===i);a!=-1&&(o.value.splice(a,1),(0,t.triggerRef)(o))};return(0,t.onUnmounted)(()=>{const i=o.value.length;o.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:o,...n}),{children:o}};function mn(e,n){const o=(0,t.inject)(e,null);if(o){const{link:l,unlink:r,children:i}=o;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:o,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:o,index:(0,t.computed)(()=>-1)}}var{componentName:Pg}=le("grid"),Yi=Symbol("grid"),Mg={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}},Rg={props:Mg,setup(e,{slots:n}){fn(Yi,{props:e});const o=(0,t.computed)(()=>{const r=Pg;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=ue(e.gutter)),r});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:zg}=le("grid"),Lg=zg(Rg),ta=Lg,{create:Fg,componentName:Pr}=le("grid-item"),Og=Fg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:o,index:l}=mn(Yi,{props:e}),r=(0,t.computed)(()=>({[Pr]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+o.props.columnNum}%`};return o.props.square?s.paddingTop=`${100/+o.props.columnNum}%`:o.props.gutter&&(s.paddingRight=ue(o.props.gutter),l.value>=o.props.columnNum&&(s.marginTop=ue(o.props.gutter))),s}),a=(0,t.computed)(()=>{const s=`${Pr}__content`;return{[`${s}`]:!0,[`${s}--border`]:o.props.border,[`${s}--surround`]:o.props.border&&o.props.gutter,[`${s}--center`]:o.props.center,[`${s}--square`]:o.props.square,[`${s}--reverse`]:o.props.reverse,[`${s}--${o.props.direction}`]:!!o.props.direction,[`${s}--clickable`]:o.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:a,handleClick:s=>{n("click",s)}}}}),Kg={class:"fox-grid-item__text"};function Ug(e,n,o,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]=(...a)=>e.handleClick&&e.handleClick(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Kg,[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 na=ie(Og,[["render",Ug]]),{componentName:_g,create:Hg}=le("navbar"),jg=Hg({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:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const v=(0,t.computed)(()=>{const C=_g;return{[C]:!0,[`${C}--border`]:o.value,[`${C}--fixed`]:l.value,[`${C}--safe-area-inset-top`]:r.value}}),c=(0,t.computed)(()=>({zIndex:a.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function N(){n("on-click-icon")}function S(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:v,styles:c,handleLeft:p,handleCenter:y,handleCenterIcon:N,handleRight:S}}}),Wg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Yg={key:1,class:"fox-navbar__text"},Xg={class:"fox-navbar__title"},Qg={key:0,class:"fox-navbar__text"},Gg={key:1,class:"fox-navbar__text"},Zg={class:"fox-navbar__title"},Jg={key:0,class:"fox-navbar__text"};function ey(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wg,[(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Xg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qg,(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Gg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Zg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var la=ie(jg,[["render",ey]]),ty=(e,n,o)=>({components:o,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,he.useFoxI18n)(n),a=i(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...a,classes:u,updateValue:(c=!l.visible)=>{r("update:visible",c)},selected:(c,p)=>{r("selected",{item:c,event:p}),s.value=c.id},current:s}}}),{componentName:ny,create:ly,scope:oy}=le("fixednav"),ay=ly(ty(ny,oy,{[ft.name]:ft,Left:re.Left})),ry={class:"fox-fixednav__list"},iy=["onClick"],sy=["src"],uy={class:"span"},cy={key:0,class:"b"},dy={class:"text"};function fy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-overlay"),u=(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)(a,{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",ry,[((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:v=>e.selected(s,v),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,sy),(0,t.createElementVNode)("view",uy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",cy,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,iy))),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)(u,{color:"#fff"}),(0,t.createElementVNode)("view",dy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var oa=ie(ay,[["render",fy]]),Xi=Symbol("fox-menu"),{componentName:my,create:py}=le("menu"),vy=py({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)(),o=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=fn(Xi,{props:e,offset:o}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),a=(0,t.computed)(()=>({[my]:!0,"scroll-fixed":l.value})),u=()=>{if(n.value){const p=Pe(n);e.direction==="down"?o.value=p.bottom:o.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((y,N)=>{N===p?(u(),y.toggle()):y.state.showPopup&&y.toggle(!1,{immediate:!0})})},d=p=>Math.max(0,"scrollTop"in p?p.scrollTop:p.pageYOffset),v=()=>{const{scrollFixed:p}=e,y=d(window);l.value=y>(typeof p=="boolean"?30:Number(p))},c=p=>{let y="";const{titleClass:N}=e;return p&&(y+="active"),N&&(y+=` ${N}`),y};return(0,t.onMounted)(()=>{const{scrollFixed:p}=e;p&&window.addEventListener("scroll",v)}),(0,t.onUnmounted)(()=>{const{scrollFixed:p}=e;p&&window.removeEventListener("scroll",v)}),{toggleItem:s,children:r,opened:i,classes:a,barRef:n,getClasses:c}}}),hy=["onClick"],gy={class:"fox-menu__title-text"},yy={class:"fox-menu__title-icon"};function by(e,n,o,l,r,i){const a=(0,t.resolveComponent)("RectUp"),u=(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:v=>!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",gy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",yy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,hy))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var aa=ie(vy,[["render",by]]),{create:Sy}=le("menu-item"),ky=Sy({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 o=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>v.props.direction==="down"?{top:v.offset.value+"px"}:{bottom:v.offset.value+"px"}),r=(0,t.computed)(()=>{const c={height:v.offset.value+"px"};return v.props.direction==="down"?{...c,top:"0px"}:{...c,bottom:"0px"}}),i=(c=!o.showPopup)=>{c!==o.showPopup&&(o.showPopup=c,c&&(o.showWrapper=!0,n("open")))},a=()=>{if(e.title)return e.title;const c=e.options?.find(p=>p.value===e.modelValue);return c?c.text:""},u=c=>{o.showPopup=!1,c.value!==e.modelValue&&(n("update:modelValue",c.value),n("change",c.value))},s=()=>{n("close"),o.showWrapper=!1},d=()=>{o.showPopup=!1,n("close")},{parent:v}=mn(Xi,{props:e,state:o,toggle:i,renderTitle:a});return{style:l,placeholderElementStyle:r,renderTitle:a,state:o,parent:v,toggle:i,onClick:u,handleClose:s,handleClickOutside:d}}}),wy={class:"fox-menu-item"},Cy={class:"fox-menu-item__content fox-menu-item__overflow"},Ny=["onClick"];function Ay(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",wy,[(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)(u,(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",Cy,[((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:v=>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)(a,(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,Ny))),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 ra=ie(ky,[["render",Ay]]),Qi=Symbol("fox-tabbar"),{create:By}=le("tabbar"),Ty=By({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 o(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:me(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o}),{children:r}=fn(Qi,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=me(i)}),{changeIndex:o}}});function Vy(e,n,o,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 ia=ie(Ty,[["render",Vy]]),{create:xy}=le("tabbar-item"),$y=xy({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:o,index:l}=mn(Qi,{props:e}),r=(0,t.computed)(()=>l.value===o.state.value);function i(u){o&&typeof o.state.changeIndex=="function"&&o.state.changeIndex(u)}const a=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:o.state,index:l,active:r,change:i,currentIcon:a}}}),Ey={class:"fox-tabbar-item_icon-box"},Dy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Iy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},qy={key:1,class:"fox-tabbar-item_icon-box_dot"},Py={key:2},My={key:0};function Ry(e,n,o,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]=a=>e.change(e.index))},[(0,t.createElementVNode)("view",Ey,[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",Dy,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Iy,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",qy)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Py,[((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",My,(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 sa=ie($y,[["render",Ry]]),{componentName:zy,create:Ly}=le("elevator"),Fy=Ly({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 o=(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)(()=>({[zy]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=(0,t.computed)(()=>o.value.clientHeight),u=(b,m)=>b.getAttribute("data-"+m),s=b=>{(0,t.nextTick)(()=>{!l.listGroup.includes(b)&&b!=null&&l.listGroup.push(b)})},d=()=>{let b=0;l.listHeight.push(b);for(let m=0;m<l.listGroup.length;m++){let f=l.listGroup[m];b+=Math.floor(f.clientHeight),l.listHeight.push(b)}},v=b=>{!b&&b!==0||(b<0&&(b=0),b>l.listHeight.length-2&&(b=l.listHeight.length-2),l.codeIndex=b,o.value.scrollTo(0,l.listHeight[b]))},c=b=>{l.scrollStart=!0;let m=u(b.target,"index"),f=b.touches[0];l.touchState.y1=f.pageY,l.anchorIndex=+m,l.codeIndex=+m,v(+m)},p=b=>{let m=b.touches[0];l.touchState.y2=m.pageY;let f=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+f,v(l.codeIndex)},y=()=>{l.scrollStart=!1},N=(b,m)=>{n.emit("click-item",b,m),l.currentData=m,l.currentKey=b},S=b=>{n.emit("click-index",b)},C=b=>{let m=b.target.scrollTop;const f=l.listHeight;l.scrollY=m;for(let k=0;k<f.length-1;k++){let A=f[k],h=f[k+1];if(l.scrollY>=A&&l.scrollY<h){l.currentIndex=k,l.diff=h-l.scrollY;return}}l.currentIndex=f.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",C)}),n.expose({scrollTo:v}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,b=>{const m=l.listHeight;let f=b>0&&b<e.titleHeight?b-e.titleHeight:0;l.scrollY+a.value===m[m.length-1]&&f!==0&&(f=0),l.fixedTop!==f&&(l.fixedTop=f)}),(0,t.watch)(()=>l.currentIndex,b=>{n.emit("change",b)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:a,setListGroup:s,listview:o,touchStart:c,touchMove:p,touchEnd:y,handleClickItem:N,handleClickIndex:S}}}),Oy={class:"fox-elevator__list__item__code"},Ky=["onClick"],Uy=["innerHTML"],_y={class:"fox-elevator__fixed-title"},Hy={class:"fox-elevator__bars__inner"},jy=["data-index","onClick"];function Wy(e,n,o,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,a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Oy,(0,t.toDisplayString)(a[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.list,u=>((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===u.id&&e.currentKey===a[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(a[e.acceptKey],u)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:u}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:u.name},null,8,Uy))],10,Ky))),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",_y,(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]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[(0,t.createElementVNode)("view",Hy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:a[e.acceptKey],onClick:s=>e.handleClickIndex(a[e.acceptKey])},(0,t.toDisplayString)(a[e.acceptKey]),11,jy))),128))])],32)],2)}var ua=ie(Fy,[["render",Wy]]),{componentName:R2,create:Yy,scope:Xy}=le("pagination"),Qy=Yy({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:o}=(0,he.useFoxI18n)(Xy),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:y,itemsPerPage:N}=(0,t.toRefs)(e),S=+p.value||Math.ceil(+y.value/+N.value);return Math.max(1,S)}),d=(p,y)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),y&&n("change",p))},v=(p,y,N=!1)=>({number:p,text:y,active:N}),c=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const y=s.value,N=+a.value;let S=1,C=y;const b=y>N;b&&(S=Math.max(r.value-Math.floor(N/2),1),C=S+N-1,C>y&&(C=y,S=C-N+1));for(var m=S;m<=C;m++){const f=v(m,m,r.value==m);p.push(f)}if(b&&N>0&&u.value){if(S>1){const f=v(S-1,"...");p.unshift(f)}if(C<y){const f=v(C+1,"...");p.push(f)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:c,forceEllipses:u}}}),Gy={class:"fox-pagination"},Zy={key:0,class:"fox-pagination-contain"},Jy=["onClick"],eb={key:1,class:"fox-pagination-contain"},tb={class:"fox-pagination-simple"};function nb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Gy,[(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]=a=>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",Zy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",a.active?"active":""]),onClick:s=>e.select(a.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:a},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.text),1)])],10,Jy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",eb,[(0,t.createElementVNode)("view",tb,(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]=a=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var ca=ie(Qy,[["render",nb]]),{componentName:Mr,create:lb}=le("indicator"),ob=lb({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:o}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Mr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Mr,padZero:rt}}});function ab(e,n,o,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,a=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:a},[a===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(a)||a),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var da=ie(ob,[["render",ab]]),{componentName:rb,create:ib}=le("side-navbar"),sb=ib({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),o=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[rb]:!0})),r=(a,u=1)=>{for(let s=0;s<a.length;s++){let d=a[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++o.count))}o.count--},i=()=>{let a=n.value.childNodes;a.length&&(a=Array.from(a).filter(u=>u.nodeType!==3).map(u=>u),r(a))};return(0,t.onMounted)(()=>{i(),o.observer=new MutationObserver(function(){o.count=1,i()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),ub={class:"fox-side-navbar__content"},cb={class:"fox-side-navbar__content__list",ref:"list"};function db(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",ub,[(0,t.createElementVNode)("view",cb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var fa=ie(sb,[["render",db]]),{componentName:fb,create:mb}=le("side-navbar-item"),pb=mb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[fb]:!0})),handleClick:()=>{n.emit("click")}})}),vb=["ikey"],hb={class:"fox-side-navbar-item__title"};function gb(e,n,o,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)((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",hb,(0,t.toDisplayString)(e.title),1)],10,vb)}var ma=ie(pb,[["render",gb]]),{componentName:yb,create:bb}=le("sub-side-navbar"),Sb=bb({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 o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[yb]:!0})),r=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:r,handleClick:i}}}),kb=["ikey"],wb={class:"fox-sub-side-navbar__title__text"},Cb={class:"fox-sub-side-navbar__title__icon"};function Nb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("ArrowDown2"),u=(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",wb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Cb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(a,{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,kb)}var pa=ie(Sb,[["render",Nb]]),{componentName:Ab,create:Bb}=le("range"),Tb=Bb({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 o=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),a=(0,t.ref)(),u=pt(),s=(0,t.computed)(()=>{const{marks:V,max:M,min:q}=e;return Object.keys(V).map(parseFloat).sort((O,P)=>O-P).filter(O=>{const P=me(O);return P>=me(q)&&P<=me(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),v=(0,t.computed)(()=>{const V=Ab;return{[V]:!0,[`${V}-disabled`]:e.disabled,[`${V}-vertical`]:e.vertical,[`${V}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const V="fox-range-container";return{[V]:!0,[`${V}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),N=V=>!!e.range&&Array.isArray(V),S=()=>{const{modelValue:V,min:M}=e;return N(V)?`${(V[1]-V[0])*100/d.value}%`:`${(V-Number(M))*100/d.value}%`},C=()=>{const{modelValue:V,min:M}=e;return N(V)?`${(V[0]-Number(M))*100/d.value}%`:"0%"},b=(0,t.computed)(()=>e.vertical?{height:S(),top:C(),background:e.activeColor,transition:a.value?"none":void 0}:{width:S(),left:C(),background:e.activeColor,transition:a.value?"none":void 0}),m=V=>{const M="fox-range-mark",{modelValue:q,max:O,min:P}=e;let j=Number(P),D=Number(O);if(e.range){const[te,oe]=q;j=te,D=oe}else D=q;let ee=V<=D&&V>=j;return{[`${M}-text`]:!0,[`${M}-text-active`]:ee}},f=V=>{const{min:M,vertical:q}=e;let O={left:`${(V-Number(M))/d.value*100}%`};return q&&(O={top:`${(V-Number(M))/d.value*100}%`}),O},k=V=>{const{modelValue:M,max:q,min:O}=e;let P=Number(O),j=Number(q);if(e.range){const[D,ee]=M;P=D,j=ee}return{background:V<=j&&V>=P?e.activeColor:e.inactiveColor}},A=V=>{const{min:M,max:q,step:O}=e;return V=Math.max(+M,Math.min(V,+q)),Math.round(V/+O)*+O},h=(V,M)=>JSON.stringify(V)===JSON.stringify(M),g=V=>V[0]>V[1]?V.slice(0).reverse():V,x=(V,M)=>{N(V)?V=g(V).map(A):V=A(V),h(V,e.modelValue)||n("update:modelValue",V),M&&!h(V,l)&&n("change",V)},B=V=>{if(e.disabled)return;const{min:M,modelValue:q}=e,O=Pe(i);let P=V.clientX-O.left,j=O.width;e.vertical&&(P=V.clientY-O.top,j=O.height);const D=Number(M)+P/j*d.value;if(N(q)){const[ee,te]=q;D<=(ee+te)/2?x([D,te],!0):x([ee,D],!0)}else x(D,!0)},T=V=>{e.disabled||(u.start(V),r=e.modelValue,N(r)?l=r.map(A):l=A(r),a.value="start")},w=V=>{if(e.disabled)return;a.value==="start"&&n("drag-start"),u.move(V),a.value="draging";const M=Pe(i);let q=u.deltaX.value,O=M.width,P=q/O*d.value;e.vertical&&(q=u.deltaY.value,O=M.height,P=q/O*d.value),N(l)?r[o.value]=l[o.value]+P:r=l+P,x(r),V.stopPropagation(),V.preventDefault()},I=()=>{e.disabled||(a.value==="draging"&&(x(r,!0),n("drag-end")),a.value="")},L=V=>Mn(e.modelValue)&&typeof V=="number"?e.modelValue[V]:Number(e.modelValue);return{root:i,classes:v,wrapperStyle:p,buttonStyle:y,onClick:B,onTouchStart:T,onTouchMove:w,onTouchEnd:I,...(0,t.toRefs)(e),barStyle:b,curValue:L,buttonIndex:o,containerClasses:c,markClassName:m,marksStyle:f,marksList:s,tickStyle:k}}}),Vb={key:0,class:"fox-range-min"},xb={key:0,class:"fox-range-mark"},$b=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Eb={key:0,class:"number"},Db=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Ib={key:0,class:"number"},qb={key:1,class:"fox-range-max"};function Pb(e,n,o,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",Vb,(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)((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",xb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:a,class:(0,t.normalizeClass)(e.markClassName(a)),style:(0,t.normalizeStyle)(e.marksStyle(a))},[(0,t.createTextVNode)((0,t.toDisplayString)(a)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(a))},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],a=>(0,t.createElementVNode)("view",{key:a,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(u)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.onTouchMove&&e.onTouchMove(...u),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onClick:n[3]||(n[3]=u=>u.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",Eb,(0,t.toDisplayString)(e.curValue(a)),1))],4))],42,$b)),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)(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.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",Ib,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Db))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,(0,t.toDisplayString)(+e.max),1))],2)}var Gt=ie(Tb,[["render",Pb]]),{create:Mb,scope:Rb}=le("short-password"),zb=Mb({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:o}=(0,he.useFoxI18n)(Rb),l=o(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),a=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{a.value=c}),(0,t.watch)(()=>e.modelValue,c=>{r.value=c,String(c).length===i.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:i,realInput:r,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:a,...l}}}),Lb={class:"fox-short-password-title"},Fb={class:"fox-short-password-subtitle"},Ob={class:"fox-short-password-wrapper"},Kb={key:0,class:"fox-short-password__item-icon"},Ub={class:"fox-short-password__message"},_b={class:"fox-short-password--error"},Hb={key:0,class:"fox-short-password--forget"};function jb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(u,{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",Lb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Fb,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Ob,[(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",Kb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Ub,[(0,t.createElementVNode)("view",_b,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[(0,t.createVNode)(a,{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 va=ie(zb,[["render",jb]]),Wb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Yb=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",o=>{e.onProgress?.(o,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[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Xb=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Gi=(e,{args:n=[],done:o,canceled:l})=>{if(e){const r=e.apply(null,n);Ct(r)?r.then(i=>{i?o(i):l&&l()}).catch(()=>{}):r?o():l&&l()}else o()},{create:Qb}=le("progress"),Gb=Qb({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,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=me(e.percentage);return s>=100?100:s}),a=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:i,bgStyle:a,textStyle:u,progressOuter:l,insideText:r,slotDefault:n}}}),Zb={class:"fox-progress"},Jb={key:0,class:"fox-progress-text"};function eS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Zb,[(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",Jb,[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)(a,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Zt=ie(Gb,[["render",eS]]),{componentName:tS,create:nS,scope:lS}=le("uploader"),oS=nS({components:{[Zt.name]:Zt,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:o}=(0,he.useFoxI18n)(lS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[tS]:!0})),a=()=>{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)},u=m=>{m.value=""},s=m=>{n("file-item-click",{fileItem:m})},d=(m,f)=>{const k=new Wb;k.url=e.url,k.formData=m.formData,k.timeout=e.timeout*1,k.method=e.method,k.xhrState=e.xhrState,k.headers=e.headers,k.withCredentials=e.withCredentials,k.beforeXhrUpload=e.beforeXhrUpload;try{k.sourceFile=m.formData.get(e.name)}catch{}k.onStart=h=>{m.status="ready",m.message=o("readyUpload"),v(f),n("start",h)},k.onProgress=(h,g)=>{m.status="uploading",m.message=o("uploading"),m.percentage=(h.loaded/h.total*100).toFixed(0),n("progress",{event:h,option:g,percentage:m.percentage})},k.onSuccess=(h,g)=>{m.status="success",m.message=o("success"),n("success",{responseText:h,option:g,fileItem:m}),n("update:fileList",l)},k.onFailure=(h,g)=>{m.status="error",m.message=o("error"),n("failure",{responseText:h,option:g,fileItem:m})};let A=new Yb(k);e.autoUpload?A.upload():r.push(new Promise((h,g)=>{h(A)}))},v=(m=-1)=>{m>-1?r.splice(m,1):(r=[],l.splice(0,l.length))},c=()=>{Promise.all(r).then(m=>{m.forEach(f=>f.upload())})},p=m=>{m.forEach((f,k)=>{const A=new FormData;for(const[g,x]of Object.entries(e.data))A.append(g,x);A.append(e.name,f);const h=(0,t.reactive)(new Xb);if(h.name=f.name,h.status="ready",h.type=f.type,h.formData=A,h.message=o("waitingUpload"),d(h,k),e.isPreview&&f.type.includes("image")){const g=new FileReader;g.onload=x=>{h.url=x.target.result,l.push(h)},g.readAsDataURL(f)}else l.push(h)})},y=m=>{const f=e.maximum*1,k=e.maximize*1,A=new Array;m=m.filter(g=>g.size>k?(A.push(g),!1):!0),A.length&&n("oversize",A);let h=m.length+l.length;return h>f&&m.splice(m.length-(h-f)),m},N=(m,f)=>{l.splice(f,1),n("delete",{file:m,fileList:l,index:f})},S=(m,f)=>{v(f),Gi(e.beforeDelete,{args:[m,l],done:()=>N(m,f)})},C=m=>{if(e.disabled)return;const f=m.target;let{files:k}=f;e.beforeUpload?e.beforeUpload(k).then(A=>b(A)):b(k),n("change",{fileList:l,event:m}),e.clearInput&&u(f)},b=m=>{const f=y(new Array().slice.call(m));p(f)};return{onChange:C,onDelete:S,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:v,submit:c,renderInput:a}}}),aS={key:0,class:"fox-uploader__slot"},rS={key:0,class:"fox-uploader__preview-img"},iS={key:0,class:"fox-uploader__preview__progress"},sS={class:"fox-uploader__preview__progress__msg"},uS=["onClick"],cS=["onClick","src"],dS={key:3,class:"fox-uploader__preview-img__file"},fS=["onClick"],mS={class:"file__name_tips"},pS={class:"tips"},vS={key:1,class:"fox-uploader__preview-list"},hS=["onClick"],gS={class:"file__name_tips"};function yS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),v=(0,t.resolveComponent)("fox-progress"),c=(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",aS,[(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",rS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",iS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",sS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:N=>e.onDelete(p,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(a)])],8,uS)):(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:N=>e.fileItemClick(p),src:p.url},null,8,cS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",dS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",mS,(0,t.toDisplayString)(p.name),1)],8,fS)])),(0,t.createElementVNode)("view",pS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",vS,[(0,t.createElementVNode)("view",{onClick:N=>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",gS,(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:N=>e.onDelete(p,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,hS),p.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(v,{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)(c,{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 ha=ie(oS,[["render",yS]]),bS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIF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u7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:kS,scope:wS}=le("number-keyboard"),CS=kS({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:o}=(0,he.useFoxI18n)(wS),l=o(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),a=(0,t.ref)(e.visible),u=(0,t.ref)();function s(){const{customKey:m}=e;let f={id:"lock",type:"lock"},k=Array.isArray(m)?m:[m];return k.length===1&&(f={id:k[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 v(){const m=d(),{customKey:f}=e;let k=Array.isArray(f)?f:[f];return k.length>2&&(k=[k[0],k[1]]),k.length==2&&e.title&&e.type!="rightColumn"&&(k=[k[0]]),k.length===1?e.title&&e.type!="rightColumn"?m.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):m.push({id:0,type:"number"},{id:k[0],type:"custom"}):k.length===2&&m.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:k[1],type:"custom"}),m}const c=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?v():s()),p=()=>{e.visible&&n("blur")},y=m=>{const f=u.value;f&&!f.contains(m.target)&&p()};(0,t.watch)(()=>e.visible,m=>{a.value=m,m?window.addEventListener("touchstart",y,!1):window.removeEventListener("touchstart",y,!1)});function N(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"&&b(),m.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function S(m){m.stopPropagation()}function C(m){m.preventDefault(),i.value=void 0}function b(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:bS,lockImg:SS,clickKeyIndex:i,defaultKey:s,closeBoard:b,onTouchEnd:C,onTouchMove:S,onTouchstart:N,keysList:c,genCustomKeys:v,getBasicKeys:d,root:u,show:a}}}),NS={ref:"root"},AS={class:"fox-number-keyboard"},BS={key:0,class:"fox-number-keyboard__header"},TS={class:"fox-number-keyboard__title"},VS={class:"fox-number-keyboard__body"},xS={class:"fox-number-keyboard__keys"},$S=["onTouchstart"],ES=["src"],DS=["src"],IS={key:0,class:"fox-number-keyboard__sidebar"},qS={class:"fox-key__wrapper"},PS=["src"];function MS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",NS,[(0,t.createVNode)(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",AS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",BS,[(0,t.createElementVNode)("h3",TS,(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]=u=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",VS,[(0,t.createElementVNode)("div",xS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,u=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+u.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":u.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":u.id==e.clickKeyIndex},{"fox-key--lock":u.type=="lock"},{"fox-key--delete":u.type=="delete"}]),onTouchstart:s=>e.onTouchstart(u,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[u.type=="number"||u.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(u.id),1)],64)):(0,t.createCommentVNode)("",!0),u.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,ES)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,DS)):(0,t.createCommentVNode)("",!0)],42,$S)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",IS,[(0,t.createElementVNode)("div",qS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=u=>e.onTouchstart({id:"delete",type:"delete"},u)),onTouchmove:n[4]||(n[4]=u=>e.onTouchMove(u)),onTouchend:n[5]||(n[5]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,PS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=u=>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 ga=ie(CS,[["render",MS]]),{componentName:RS,create:zS}=le("swipe"),LS=zS({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:o}){const l=(0,t.computed)(()=>({[RS]:!0})),r=f=>f.value?.clientWidth||0,i=(0,t.ref)(),a=(0,t.computed)(()=>r(i)),u=(0,t.ref)(),s=(0,t.computed)(()=>r(u));let d=!1,v="",c="";const p=(0,t.reactive)({offset:0,moving:!1}),y=(f="")=>{d=!0,f&&(p.offset=f==="left"?-s.value:a.value),n("open",{name:e.name,position:v||f})},N=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:v})},S=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),C=f=>{v=f>0?"right":"left";let k=f;switch(v){case"left":d&&c===v?k=-s.value:k=Math.abs(f)>s.value?-s.value:f;break;case"right":d&&c===v?k=a.value:k=Math.abs(f)>a.value?a.value:f;break}p.offset=k},b=pt(),m={onTouchStart(f){e.disabled||b.start(f)},onTouchMove(f){e.disabled||(b.move(f),b.isHorizontal()&&(p.moving=!0,C(b.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,c=v,v){case"left":Math.abs(p.offset)<=s.value/2?N():(p.offset=-s.value,y());break;case"right":Math.abs(p.offset)<=a.value/2?N():(p.offset=a.value,y());break}}};return o({open:y,close:N}),{classes:l,touchStyle:S,...m,leftRef:i,rightRef:u,open:y,close:N}}}),FS={class:"fox-swipe__left",ref:"leftRef"},OS={class:"fox-swipe__content"},KS={class:"fox-swipe__right",ref:"rightRef"};function US(e,n,o,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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",FS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",OS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",KS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var ya=ie(LS,[["render",US]]),{componentName:_S,create:HS}=le("action-sheet"),jS=HS({components:{Popup:Ce,Loading:re.Loading},props:{...nt,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 o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[_S]:!0}));return{slotDefault:o,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}}}),WS={key:0,class:"fox-action-sheet__title"},YS={key:1},XS={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},QS={key:1,class:"fox-action-sheet__menu"},GS=["onClick"],ZS={key:1},JS={class:"fox-action-sheet__subdesc"};function e1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{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",WS,(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",YS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",XS,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",QS,[((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:v=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",ZS,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",JS,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,GS))),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 ba=ie(jS,[["render",e1]]),{componentName:t1,create:n1}=le("backtop"),l1=n1({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:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[t1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function a(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(N=0){l.scrollEl instanceof Window?window.scrollTo(0,N):l.scrollEl.scrollTop=N}function s(){let N=Je(function S(){var C=e.duration-Math.max(0,l.startTime-+new Date+e.duration),b=C*-l.scrollTop/e.duration+l.scrollTop;u(b),N=Je(S),(C==e.duration||b==0)&&Lr(N)})}function d(){l.scrollEl.addEventListener("scroll",a,!1),l.scrollEl.addEventListener("resize",a,!1)}function v(){l.scrollEl.removeEventListener("scroll",a,!1),l.scrollEl.removeEventListener("resize",a,!1)}function c(N){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),n("click",N)}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)(()=>{v()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,p())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,v()});const y=(0,t.computed)(()=>{if(typeof o.content=="function"){const N=o.content();return Array.isArray(N)?N[0]:N}return null});return()=>{const N=[];y.value&&N.push(y.value);const S=[];if(typeof o.default=="function")S.push(o.default());else{const b=(0,t.h)(re.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});S.push(b)}const C=(0,t.h)("div",{class:r.value,style:i.value,onClick:c},S);return N.push(C),N}}}),Sa=l1,{componentName:o1,create:a1}=le("drag"),r1=a1({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 o=(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)(()=>({[o1]:!0}));function i(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function a(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",Ge(()=>{a(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",Ge(()=>{a(c)})):c.style.left="0px"}function u(c,p){p-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",Ge(()=>{u(c,p)})):c.style.left=p+"px"}function s(c){c.preventDefault();const p=c.currentTarget;if(c.targetTouches.length===1){const y=c.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 N=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>N?l.xPum=N: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(c){const p=c.currentTarget;let y=c.changedTouches[0].clientX;const N=l.screenWidth-l.elWidth-l.boundary.right;y>N?y=N:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:N,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?Ge(()=>{a(p)}):Ge(()=>{u(p,N)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function v(c){const p=c.currentTarget,y=c.touches[0],N=c.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=N.clientX-l.position.x,l.ny=N.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 c=o;c.value.removeEventListener("touchstart",v),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:r,myDrag:o,touchStart:v,touchMove:s,touchEnd:d}}});function i1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[(0,t.renderSlot)(e.$slots,"default")],34)}var ka=ie(r1,[["render",i1]]),s1={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}},u1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function c1(e,n,o,l,r){return{props:{...nt,...s1},setup(i,{attrs:a,slots:u,emit:s}){const{toLocaleRefs:d}=(0,he.useFoxI18n)(n),v=d(i,["confirmText","cancelText"]),c=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,h=>{p.value!==h&&(p.value=h,h&&s("opened"))});const y=h=>{p.value=h,s("update:visible",h),s("update",h)},N=h=>{if(s(h),!(h==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const g=i.beforeClose(h);Ct(g)?g.then(x=>{x&&(y(!1),s("closed",h))}):g===!0&&(y(!1),s("closed",h))}else y(!1),s("closed",h)},S=()=>{N("confirm")},C=()=>{N("cancel")},b=()=>{N("close")},m=(h,g)=>u1(h)?(g.src=h,(0,t.h)("img",g)):typeof h=="string"?(Array.isArray(g.class)?g.class.push(h):g.class&&typeof g.class=="object"?g[`${h}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${h}`:g.class=h,(0,t.h)(i.tag,g)):(0,t.h)(h,g),f=()=>{const h=[];if(u.header){const g=u.header();h.push(g)}else{if(i.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[i.title]);h.push(g)}if(i.showClose){const g={class:[`${c}__header-close-icon`],onClick:b},x=i.closeIcon??r,B=m(x,g);h.push(B)}}return h.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},h)},k=()=>{const h=[];if(u.default)h.push(u.default());else{const g={class:[`${c}__content`]};if(i.textAlign&&g.class.push(i.textAlign),typeof i.content=="string"){g.innerHTML=i.content;const x=(0,t.h)("view",g);h.push(x)}else if(typeof i.content=="function"){const x=(0,t.h)("view",g,[i.content()]);h.push(x)}else{const x=(0,t.h)("view",g,[i.content]);h.push(x)}}return h.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},h)},A=()=>{if(!i.showFooter)return null;const h=[];if(u.footer)h.push(u.footer());else if(i.plain){if(i.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:C};i.cancelButtonClass&&g.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(g.style,i.cancleButtonStyle);const x=(0,t.h)("view",g,[i.cancelButtonText??v.cancelText.value]);h.push(x)}if(i.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:S};i.confirmButtonClass&&g.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(g.style,i.confirmButtonStyle);const x=(0,t.h)("view",g,[i.confirmButtonText??v.confirmText.value]);h.push(x)}}else{if(i.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:C};i.cancelButtonClass&&g.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(g.style,i.cancleButtonStyle);const x=(0,t.h)(l,g,{default:()=>[i.cancelButtonText??v.cancelText.value]});h.push(x)}if(i.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:S};i.confirmButtonClass&&g.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(g.style,i.confirmButtonStyle);const x=(0,t.h)(l,g,{default:()=>[i.confirmButtonText??v.confirmText.value]});h.push(x)}}return h.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${i.footerDirection}`]},h)};return()=>{const h=[],g=f();g&&h.push(g);const x=k();x&&h.push(x);const B=A();B&&h.push(B);const T=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:i.plain}},h),w=[`${c}__popup`];i.popClass&&w.push(i.popClass);const I={};return i.width&&(I.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(I.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(o,{...be(i,nt),popClass:w.join(" "),style:I,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:i.position,onClickOverlay:b,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:d1,create:f1,scope:m1}=le("dialog"),p1=f1(c1(d1,m1,Ce,vt,re.Close)),Zi=p1,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},h1=class{options=new v1;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const a=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Zi,n)}});o.appendChild(r),(0,t.render)(a,r)}},Jt=function(e){return new h1(e)};Jt.install=e=>{e.use(Zi),e.config.globalProperties.$dialog=Jt};var g1={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]}},y1=(e,n,o)=>({props:g1,emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,he.useFoxI18n)(n),s=u(l,["pullingText","loosingText","loadingText"]),d=ol(),v=(0,t.ref)(),c=_i(v),p=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=(0,t.computed)(()=>({[a]:!0})),N=(0,t.computed)(()=>{const B=[`${a}__container`];return l.containerClass&&B.push(l.containerClass),B}),S=(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""}}),C=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:p.distance?`translate3d(0,${p.distance}px, 0)`:""})),b=(0,t.computed)(()=>{const B={};return l.headHeight!=50&&(B.height=ue(l.headHeight)),B}),m=B=>{const T=+(l.pullDistance||l.headHeight);let w=B;return B>T&&(B<T*2?w=(B+T)/2:w=T+B/4),Math.round(w)},f=(B,T)=>{const w=+(l.pullDistance||l.headHeight);p.distance=B,T?p.status="loading":B===0?p.status="normal":B<w?p.status="pulling":p.status="loosing",r("change",{status:p.status,distance:B})},k=()=>p.status!=="loading"&&p.status!=="complete",A=()=>c.value==window?Hi()==0:c.value&&c.value.scrollTop==0,h=B=>{k()&&(A()?(d.start(B),p.isPullRefresh=!0,p.moving=!0):(p.distance=0,p.isPullRefresh=!1))},g=B=>{k()&&p.moving&&(d.move(B),d.isVertical()&&d.state.deltaY>0&&p.isPullRefresh&&(B.cancelable&&B.preventDefault(),f(m(d.state.deltaY))))},x=()=>{p.moving=!1,p.isPullRefresh&&k()&&d.state.deltaY&&(p.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,B=>{B?f(+l.headHeight,!0):f(0)}),()=>{const B=[];let T=null;p.status==="loading"?(T=i?.loading?.()??null,T||(T=(0,t.h)(o,{class:[`${a}__container-topbox-icon`]}))):p.status==="pulling"?T=i?.pulling?.()??null:p.status==="loosing"&&(T=i?.loosing?.()??null),T&&B.push(T);const w=(0,t.h)("dive",{class:[`${a}__container-topbox-text`]},[S.value]);B.push(w);const I=(0,t.h)("div",{class:[`${a}__container-topbox`],style:b.value},B),L=(0,t.h)("div",{class:N.value,style:C.value},[I,i?.default?.()]),V={ref:v,class:y.value};return ll()?Object.assign(V,{onTouchstart:h,onTouchmove:g,onTouchend:x}):Object.assign(V,{onMousedown:h,onMousemove:g,onMouseup:x}),(0,t.h)("div",V,[L])}}}),{componentName:b1,create:S1,scope:k1}=le("pull-refresh"),w1=S1(y1(b1,k1,re.Loading)),wa=w1,{create:C1}=le("notify"),N1=C1({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 o=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},a=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{a.value=e.visible;const v=e.duration;d&&v&&(l=setTimeout(()=>{i()},v))},{immediate:!0});return{onAfterLeave:()=>{r(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:a}}});function A1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),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]=(...u)=>e.clickCover&&e.clickCover(...u))},[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 Ca=ie(N1,[["render",A1]]),Xl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,customClass:"",onClose:Function,teleport:"",unmount:new Function},bt=[],Yt=[],Ji=e=>{if(e){const n=document.getElementById(e);Yt=Yt.filter(o=>o.id!==e),bt=bt.filter(o=>o!==e),n&&document.body.removeChild(n)}else bt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Yt=[],bt=[]},B1=e=>{const n=document.getElementById(e.id);if(n){const o=Yt.find(r=>r.id===e.id);o?e={...Xl,...o,...e}:e={...Xl,...e};const l=(0,t.createVNode)(Ca,e);return(0,t.render)(l,n),l.component.data}},Lt=e=>{e.unmount=Ji;let n;if(e.id){if(n=e.id,bt.find(r=>r===e.id))return B1(e)}else n=new Date().getTime()+"";e={...Xl,...e},e.id=n,bt.push(e.id),Yt.push(e);const o=document.createElement("view");o.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(o)},e.duration)}),()=>(0,t.h)(Ca,e)}});document.body.appendChild(o),(0,t.render)(l,o)},Ft=e=>{if(!e){console.warn("[FoxUI Notify]: msg不能为空");return}},Na={text(e,n={}){return Ft(e),Lt({...n,msg:e})},primary(e,n={}){return Ft(e),Lt({...n,msg:e,type:"primary"})},success(e,n={}){return Ft(e),Lt({...n,msg:e,type:"success"})},danger(e,n={}){return Ft(e),Lt({...n,msg:e,type:"danger"})},warn(e,n={}){return Ft(e),Lt({...n,msg:e,type:"warning"})},hide(){Ji()},install(e){e.use(Ca)}},{create:T1}=le("toast"),V1=T1({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 o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),(0,t.watch)(()=>e.duration,y=>{y&&a()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=ce(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,color:e.iconColor})},v=(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]),c=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:v,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),x1={key:1,class:"fox-toast-title"},$1=["innerHTML"];function E1(e,n,o,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]=(...a)=>e.clickCover&&e.clickCover(...a))},[(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",x1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,$1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Aa=ie(V1,[["render",E1]]),Ql={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},St=[],Xt=[],es=e=>{if(e){const n=document.getElementById(e);Xt=Xt.filter(o=>o.id!==e),St=St.filter(o=>o!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else St.forEach(n=>{const o=document.getElementById(n);o&&((0,t.render)(null,o),document.body.removeChild(o))}),Xt=[],St=[]},D1=e=>{const n=document.getElementById(e.id);if(n){const o=Xt.find(r=>r.id===e.id);o?e={...Ql,...o,...e}:e={...Ql,...e};const l=(0,t.createVNode)(Aa,e);return(0,t.render)(null,n),(0,t.render)(l,n),It}},Ot=e=>{e.unmount=es;let n;if(e.id){if(n=e.id,St.find(l=>l===e.id))return D1(e)}else n=new Date().getTime()+"";e={...Ql,...e},e.id=n,St.push(e.id),Xt.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Aa,e),o),document.body.appendChild(o),It},yn=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),It={text(e,n={}){if(yn(e))return Ot({...n,type:"text",msg:e})},success(e,n={}){if(yn(e))return Ot({icon:re.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(yn(e))return Ot({icon:re.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(yn(e))return Ot({icon:re.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Ot({icon:re.Loading,...n,msg:e,type:"loading"})},hide(e){es(e)},install(e){e.use(Aa),e.config.globalProperties.$toast=It}},{componentName:z2,create:I1}=le("audio"),q1=I1({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,[Gt.name]:Gt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){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 S=["webkitVisibilityState","visibilitychange"];try{for(let C=0;C<S.length;C++)document.addEventListener(S[C],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(C){C.message}});const i=S=>{const C=l.value;e.autoplay&&C&&C.paused&&C.play(),r.second=C.duration,r.duration=N(C.duration),n("can-play",S)},a=S=>{r.currentTime=parseInt(S.target.currentTime)},u=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const S=l.value;r.playing?(S.pause(),r.handPlaying=!1):(S.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},v=S=>{r.currentDuration=N(S),r.percent=S/r.second*100},c=()=>{r.playing=!1,n("ended")},p=S=>{const C=l.value;C.currentTime=r.second*S/100,n("changeProgress",C.currentTime)},y=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},N=S=>{if(!S)return"00:00:00";let C=parseInt(S),b=Math.floor(C/3600),m=Math.floor((C-b*3600)/60),f=C-b*3600-m*60,k="";return k+=("0"+b.toString()).slice(-2)+":",k+=("0"+m.toString()).slice(-2)+":",k+=("0"+f.toString()).slice(-2),k};return(0,t.watch)(()=>r.currentTime,S=>{v(S)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:y,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:p,audioEnd:c,onTimeupdate:a,handleMute:y,onCanplay:i,slots:o}}}),P1={class:"fox-audio"},M1={key:0,class:"fox-audio__progress"},R1={class:"fox-audio__time"},z1={class:"fox-audio__bar"},L1={class:"fox-audio__time"},F1={key:1,class:"fox-audio__icon"},O1=["controls","src","preload","autoplay","loop","muted"];function K1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",P1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",M1,[(0,t.createElementVNode)("div",R1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",z1,[(0,t.createVNode)(a,{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",L1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",F1,[(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)(u,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(u,{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,O1)])}var Ba=ie(q1,[["render",K1]]),{componentName:L2,create:U1,scope:_1}=le("audio-operate"),H1=U1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(_1),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:o}}}),j1={class:"fox-audio-operate"};function W1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",j1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...u)=>e.fastBack&&e.fastBack(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.forward&&e.forward(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.handleMute&&e.handleMute(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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 Ta=ie(H1,[["render",W1]]),{componentName:Y1,create:X1}=le("avatar"),Q1=X1({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:o,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],a=(0,t.inject)("avatarGroup",null),u=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const N=a?.avatarGroupRef?.value?.children;N&&y(N)});const v=(0,t.computed)(()=>({[Y1]:!0,[`fox-avatar-${n.value||a?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||a?.props?.shape||"normal"}`]:!0})),c=(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&&(a?.props?.span?`${a?.props?.span}px`:""),zIndex:a?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${a?.props?.maxBgColor}`,color:`${a?.props?.maxColor}`})),y=N=>{d.maxIndex=N.length;for(let S=0;S<N.length;S++)N[S]&&N[S].classList&&N[S].classList[0]=="fox-avatar"&&N[S].setAttribute("data-index",S+1);d.index=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=a?.props?.maxCount&&(d.showMax=!0)};return{classes:v,styles:c,maxStyles:p,avatarGroup:a,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function G1(e,n,o,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 en=ie(Q1,[["render",G1]]),{componentName:Z1,create:J1}=le("avatar-group"),ek=J1({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:o}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.computed)(()=>({[Z1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:a,avatarGroupRef:r}}});function tk(e,n,o,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 Va=ie(ek,[["render",tk]]),$l=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function nk(e,n,o){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const a=e[i],u=o(a,n);if(u===1)return i;u===2?l=i+1:u===3&&(r=i-1)}return i}var{componentName:lk,create:ok}=le("list"),Rr=document.documentElement.clientHeight||document.body.clientHeight||667,ak=ok({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Rr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(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}),a=(0,t.computed)(()=>Math.min(e.containerHeight,Rr)),u=(0,t.computed)(()=>Math.ceil(a.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+u.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[lk]:!0})),v=(0,t.computed)(()=>i.list.slice(i.start,s.value)),c=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let b=0;b<i.list.length;++b)i.cachePositions[b]={index:b,height:e.height,top:b*e.height,bottom:(b+1)*(e.height+e.margin),dValue:0}},y=()=>{let b=r.value.childNodes;b=Array.from(b).filter(g=>g.nodeType===1);const m=b[0];b.forEach((g,x)=>{if(!g)return;const{height:B}=Pe(g),T=i.cachePositions[x+i.start].height-B;T&&(i.cachePositions[x+i.start].bottom-=T,i.cachePositions[x+i.start].height=B,i.cachePositions[x+i.start].dValue=T)});let f=0;m&&(f=i.start);const k=i.cachePositions.length;let A=i.cachePositions[f].dValue;i.cachePositions[f].dValue=0;for(let g=f+1;g<k;++g){const x=i.cachePositions[g];i.cachePositions[g].top=i.cachePositions[g-1].bottom,i.cachePositions[g].bottom=i.cachePositions[g].bottom-A,x.dValue!==0&&(A+=x.dValue,x.dValue=0)}const h=i.cachePositions[k-1].bottom;i.phantomHeight=h},N=(b=0)=>{let m=nk(i.cachePositions,b,(f,k)=>{const A=f.bottom;return A===k?$l.eq:A<k?$l.lt:$l.gt});return i.cachePositions[m].bottom<b&&(m+=1),m},S=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,o.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},C=()=>{const b=o.value?.scrollTop,{originStartIndex:m}=i,f=N(b);f!==m&&(i.originStartIndex=f,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(b>i.scrollTop?"scroll-up":"scroll-down",b),i.scrollTop=b};return(0,t.watch)(()=>e.listData,b=>{if(i.list=b.slice(),i.list.length===b.length)p(),y();else{S();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&y()}),{...(0,t.toRefs)(i),list:o,phantom:l,actualContent:r,getTransform:c,visibleData:v,classes:d,getContainerHeight:a,handleScrollEvent:C}}});function rk(e,n,o,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]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:a},[(0,t.renderSlot)(e.$slots,"default",{item:a,index:u+e.start})]))),128))],4)],38)}var xa=ie(ak,[["render",rk]]),{componentName:ik,create:sk}=le("circleprogress"),uk=sk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[ik]:!0})),i=(0,t.computed)(()=>{const u=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${u} 0 90 a 45 45 0 1, ${u} 0 -90`}),a=(0,t.computed)(()=>De(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:a,stop:(0,t.computed)(()=>{if(!De(e.color))return;let u=e.color;const s=Object.keys(u).sort((v,c)=>parseFloat(v)-parseFloat(c));let d=[];return s.map((v,c)=>{let p={key:"",value:""};p.key=v,p.value=u[v],d.push(p)}),d}),slotDefault:o,refRandomId:l}}}),ck={viewBox:"0 0 100 100"},dk=["id"],fk=["offset","stop-color"],mk=["d","stroke-width"],pk=["d","stroke","stroke-linecap","stroke-width"],vk={class:"fox-circleprogress-text"},hk={key:0};function gk(e,n,o,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",ck,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:a.key,"stop-color":a.value},null,8,fk))),128))],8,dk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,mk),(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,pk)])),(0,t.createElementVNode)("div",vk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",hk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var $a=ie(uk,[["render",gk]]),{componentName:yk,create:bk}=le("noticebar"),Sk=bk({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:o}){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}),a=(0,t.computed)(()=>({[yk]:!0})),u=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let g={};return e.color&&(g.color=e.color),e.background&&(g.background=e.background),e.direction=="vertical"&&(g.height=`${e.height}px`),g}),v=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let g={};if(e.complexAm)g={transform:`translateY(${i.distance}px)`};else if(i.animate){let x=~~(e.height/e.speed/4);g={transition:`all ${x==0?~~(e.height/e.speed):x}s`,"margin-top":`-${e.height}px`}}return g});(0,t.watch)(()=>e.text,g=>{p(g)}),(0,t.watch)(()=>e.list,g=>{i.scrollList=[...g]});const p=g=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const x=l.value.getBoundingClientRect().width,B=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?B>x:e.scrollable,i.isCanScroll?(i.wrapWidth=x,i.offsetWidth=B,i.duration=B/e.speed,i.animationClass="play"):i.animationClass=""},0)},y=g=>{n("click",g)},N=g=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",g)},S=g=>{i.firstRound=!1,n("across-end",g),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},C=()=>{b(),i.timer=setInterval(b,~~(e.height/e.speed/4*1e3)+e.standTime)},b=()=>{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 g=100;for(let x=0;x<g;x++)f(x,!(x<g-1))},e.standTime+100*e.speed)},f=(g,x)=>{setTimeout(()=>{i.distance-=e.height/100,x&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},g*e.speed)},k=g=>{n("click",g)},A=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?h(o.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():C()},e.standTime)):p(e.text)}),(0,t.watch)(()=>o.default?o.default():[],g=>{e.direction==="vertical"&&o.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),h(g))});const h=g=>{g&&g.length>0&&(i.scrollList=g[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:u,classes:a,barStyle:d,contentStyle:v,horseLampStyle:c,wrap:l,content:r,handleClick:y,onClickIcon:N,onAnimationEnd:S,go:k,handleClickIcon:A,slots:o,toPxString:ue,wrapContentClass:s}}}),kk={key:0,class:"fox-noticebar__page-lefticon"},wk={ref:"wrap",class:"fox-noticebar__page-wrap"},Ck={class:"showNotica"},Nk=["onClick"];function Ak(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Notice"),u=(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",kk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",wk,[(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)(u,{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",Ck,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,v)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:v,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,v)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:v,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:v},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,Nk))),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)(u,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Ea=ie(Sk,[["render",Ak]]),Bk="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/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K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WrGzwl2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:F2,create:xk,scope:$k}=le("empty"),Ek={empty:Bk,error:Tk,network:Vk},Dk=xk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,he.useFoxI18n)($k),o=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}`:""),a=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Ek[l.value];return{...o,imageUrl:a,imgStyle:i}}}),Ik={class:"fox-empty"},qk=["src"],Pk={key:1,class:"fox-empty-description"};function Mk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ik,[(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,qk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Pk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Da=ie(Dk,[["render",Mk]]),{create:Rk,scope:zk}=le("video"),Lk=Rk({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:o}=(0,he.useFoxI18n)(zk),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,h=>{h.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,h=>{l.state.isMuted=h?h.muted:!1},{immediate:!0});const a=()=>{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)),N(),l.showToolbox?u():(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",Vn(c,1e3)))},u=()=>{const h=r.value,g=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=h,l.progressBar.progressElm=g,l.progressBar.pos=g.getBoundingClientRect(),l.videoSet.progress.width=Math.round(g.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",()=>{v()}),l.videoElm.addEventListener("timeupdate",Vn(c,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},d=h=>{let g=[];const x=Math.floor(h/3600);x>0&&(x<10?g.push(`0${x}`):g.push(`${x}`));const B=Math.floor(h%3600/60);B<10?g.push(`0${B}`):g.push(`${B}`);const T=Math.round(h%3600%60);return T<10?g.push(`0${T}`):g.push(`${T}`),g.join(":")},v=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const h=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*h),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},N=()=>{l.state.vol=e.options.volume},S=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},C=()=>{},b=h=>{let g=h.targetTouches[0].pageX-l.progressBar.pos.left;g<=0&&(g=0),g>=l.videoSet.progress.width&&(g=l.videoSet.progress.width),l.videoSet.progress.current=g;let x=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&f(x,l.videoElm.duration)},m=h=>{let g=h.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=g;let x=g/l.videoSet.progress.width;l.videoElm.duration&&f(x,l.videoElm.duration)},f=(h,g)=>{l.videoElm.currentTime=Math.floor(h*g)},k=()=>{l.state.isError=!1,a()},A=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{a()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:i,play:s,handleMuted:S,touchSlidSrart:C,touchSlidMove:b,touchSlidEnd:m,retry:k,fullScreen:A,t:o}}}),Fk={class:"fox-video",ref:"videocon"},Ok=["muted","autoplay","loop","poster","controls","preload"],Kk=["src","type"],Uk={class:"fox-video-controller__now"},_k={class:"fox-video-controller__progress"},Hk={class:"fox-video-controller__progress-value",ref:"progressBar"},jk={class:"fox-video-controller__played",ref:"playedBar"},Wk={class:"fox-video-controller__total"},Yk={class:"fox-video-error"},Xk={class:"fox-video-error-tip"};function Qk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Fk,[(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]=(...a)=>e.handleError&&e.handleError(...a))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Kk)],40,Ok),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))}),(0,t.createElementVNode)("div",Uk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",_k,[(0,t.createElementVNode)("div",Hk,[(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)(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(a=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(a=>e.touchSlidEnd(a),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",jk,null,512)],512)]),(0,t.createElementVNode)("div",Wk,(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]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Yk,[(0,t.createElementVNode)("p",Xk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var xt=ie(Lk,[["render",Qk]]),ts=Symbol("fox-steps"),{create:Gk,componentName:Zk}=le("steps"),Jk=Gk({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:o}){const l=(0,t.computed)(()=>{const i=Zk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return fn(ts,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},o.default?.())}}),Ia=Jk,{create:ew,componentName:tw}=le("step"),nw=ew({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:o}=mn(ts,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=o.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),a=(0,t.computed)(()=>{const s=tw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),u=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:a,handleClickStep:u}}}),lw={class:"fox-step-head"},ow={class:"fox-step-icon-inner"},aw={key:1,class:"fox-step-inner"},rw={class:"fox-step-main"},iw={class:"fox-step-title"},sw={key:0},uw={key:0,class:"fox-step-content"},cw=["innerHTML"];function dw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClickStep&&e.handleClickStep(...a))},[(0,t.createElementVNode)("view",lw,[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",ow,[(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",aw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",rw,[(0,t.createElementVNode)("view",iw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",sw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",uw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,cw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var qa=ie(nw,[["render",dw]]),ns=Symbol("fox-swiper"),{create:fw,componentName:El}=le("swiper"),mw=fw({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:o,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:{}}),a=(0,t.computed)(()=>i[v.value?"height":"width"]),{children:u}=fn(ns,{props:e,size:a}),s=pt(),d=(0,t.computed)(()=>({[El]:!0})),v=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const P=El;return{[`${P}-inner`]:!0,[`${P}-vertical`]:v.value}}),p=(0,t.computed)(()=>{const P=El;return{[`${P}-pagination`]:!0,[`${P}-pagination-vertical`]:v.value}}),y=(0,t.computed)(()=>v.value?s.deltaY.value:s.deltaX.value),N=(0,t.computed)(()=>s.direction.value===e.direction),S=(0,t.computed)(()=>u.value.length),C=(0,t.computed)(()=>S.value*a.value),b=(0,t.computed)(()=>i.rect?(v.value?i.rect.height:i.rect.width)-a.value*S.value:0),m=(0,t.computed)(()=>(i.active+S.value)%S.value),f=()=>{let P=0;P=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${v.value?"Y":"X"}(${P}px)`,[v.value?"height":"width"]:`${a.value*S.value}px`,[v.value?"width":"height"]:`${v.value?i.width:i.height}px`}},k=(P,j=0)=>{let D=P*a.value;e.loop||(D=Math.min(D,-b.value));let ee=j-D;return e.loop||(ee=je(ee,b.value,0)),ee},A=P=>{const{active:j}=i;return P?e.loop?je(j+P,-1,S.value):je(j+P,0,S.value-1):j},h=({pace:P=0,offset:j=0,isEmit:D=!1})=>{if(S.value<=1)return;const{active:ee}=i,te=A(P),oe=k(te,j);if(e.loop){if(u.value[0]&&oe!==b.value){const H=oe<b.value;u.value[0].setOffset(H?C.value:0)}if(u.value[S.value-1]&&oe!==0){const H=oe>0;u.value[S.value-1].setOffset(H?-C.value:0)}}i.active=te,i.offset=oe,D&&ee!==i.active&&n("change",m.value),f()},g=()=>{i.moving=!0,i.active<=-1&&h({pace:S.value}),i.active>=S.value&&h({pace:-S.value})},x=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},B=P=>{g(),s.reset(),Je(()=>{Je(()=>{i.moving=!1,h({pace:P,isEmit:!0})})})},T=()=>{B(-1)},w=()=>{B(1)},I=P=>{g(),s.reset(),Je(()=>{i.moving=!1;let j=0;e.loop&&S.value===P?j=i.active===0?0:P:j=P%S.value,h({pace:j-i.active,isEmit:!0})})},L=()=>{const P=me(e.autoPlay);P<=0||S.value<=1||(x(),i.autoplayTimer=setTimeout(()=>{w(),L()},P))},V=(P=+e.initPage)=>{x(),i.rect=r.value.getBoundingClientRect(),P=Math.min(S.value-1,P),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=P,i.offset=k(i.active),i.moving=!0,f(),L()},M=P=>{e.isPreventDefault&&P.preventDefault(),e.isStopPropagation&&P.stopPropagation(),e.touchable&&(s.start(P),i.touchTime=Date.now(),x(),g())},q=P=>{e.touchable&&i.moving&&(s.move(P),N.value&&h({offset:y.value}))},O=P=>{if(!e.touchable||!i.moving)return;const j=y.value/(Date.now()-i.touchTime);if((Math.abs(j)>.3||Math.abs(y.value)>+(a.value/2).toFixed(2))&&N.value){let D=0;const ee=v.value?s.offsetY.value:s.offsetX.value;e.loop?D=ee>0?y.value>0?-1:1:0:D=-Math[y.value>0?"ceil":"floor"](y.value/a.value),h({pace:D,isEmit:!0})}else y.value&&h({pace:0});i.moving=!1,f(),L()};return l({prev:T,next:w,to:I}),(0,t.onDeactivated)(()=>{x()}),(0,t.onBeforeUnmount)(()=>{x()}),(0,t.watch)(()=>e.initPage,P=>{(0,t.nextTick)(()=>{V(Number(P))})}),(0,t.watch)(()=>u.value.length,()=>{(0,t.nextTick)(()=>{V()})}),(0,t.watch)(()=>e.autoPlay,P=>{me(P)>0?L():x()}),{state:i,children:u,classes:d,classesInner:c,classesPagination:p,container:r,activePagination:m,onTouchStart:M,onTouchMove:q,onTouchEnd:O}}});function pw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===u?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===u}),key:u},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var $t=ie(mw,[["render",pw]]),{create:vw,componentName:hw}=le("swiper-item"),gw=vw({setup(e,{slots:n,expose:o}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[hw]:!0})),i=s=>{l.offset=s},{parent:a}=mn(ns,{setOffset:i}),u=(0,t.computed)(()=>{const s={},d=a?.props.direction;return a?.size.value&&(s[d==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return o({setOffset:i}),{style:u,classes:r}}});function yw(e,n,o,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 Et=ie(gw,[["render",yw]]),ls={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:bw}=le("image-preview-item"),Sw=bw({props:{...ls,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:{[xt.name]:xt,[Et.name]:Et},setup(e,{emit:n}){const o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=pt(),r=(0,t.computed)(()=>{const{rootWidth:B,rootHeight:T}=e,w=T/B;return o.imageRatio>w}),i=(0,t.computed)(()=>{const B=e.image;if(B&&B.src){const{scale:T,moveX:w,moveY:I,moving:L,zooming:V}=o,M={transitionDuration:V||L?"0s":".3s"};return T!==1&&(M.transform=`scale(${T}, ${T}) translate(${w/T}px, ${I/T}px)`),M}return{}}),a=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:T}=e,w=r.value?T/o.imageRatio:B;return Math.max(0,(o.scale*w-B)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:T}=e,w=r.value?T:B*o.imageRatio;return Math.max(0,(o.scale*w-T)/2)}return 0}),s=B=>{const{naturalWidth:T,naturalHeight:w}=B.target;o.imageRatio=w/T},d=()=>{v(1),o.moveX=0,o.moveY=0},v=B=>{B=je(B,+e.minZoom,+e.maxZoom+1),B!==o.scale&&(o.scale=B,n("scale",{scale:B,index:e.initNo}))},c=()=>{const B=o.scale>1?1:2;v(B),o.moveX=0,o.moveY=0},p=B=>Math.sqrt((B[0].clientX-B[1].clientX)**2+(B[0].clientY-B[1].clientY)**2);let y,N,S,C,b,m,f;const k=B=>{const{touches:T}=B,{offsetX:w}=l;l.start(B),f=T.length,y=o.moveX,N=o.moveY,m=Date.now(),o.moving=f===1&&o.scale!==1,o.zooming=f===2&&!w.value,o.zooming&&(S=o.scale,C=p(B.touches))},A=B=>{const{touches:T}=B;if(l.move(B),(o.moving||o.zooming)&&Fl(B,!0),o.moving){const{deltaX:w,deltaY:I}=l,L=w.value+y,V=I.value+N;o.moveX=je(L,-a.value,a.value),o.moveY=je(V,-u.value,u.value)}if(o.zooming&&T.length===2){const w=p(T),I=S*w/C;v(I)}},h=()=>{if(f==1&&e.video&&e.video.source||f>1)return;const{offsetX:B,offsetY:T}=l,w=Date.now()-m,I=250,L=5;B.value<L&&T.value<L&&w<I&&(b?(clearTimeout(b),b=null,c()):b=setTimeout(()=>{e.contentClose&&n("close"),b=null},I))},g=B=>{let T=!1;(o.moving||o.zooming)&&(T=!0,o.moving&&y===o.moveX&&N===o.moveY&&(T=!1),B.touches.length||(o.zooming&&(o.moveX=je(o.moveX,-a.value,a.value),o.moveY=je(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,y=0,N=0,S=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Fl(B,T),h(),l.reset()},x=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,B=>{B||d()}),{...(0,t.toRefs)(o),onTouchStart:k,onTouchMove:A,onTouchEnd:g,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:x}}}),kw=["src"];function ww(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{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,kw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Cw=ie(Sw,[["render",ww]]),{create:Nw}=le("image-preview"),Aw=Nw({props:{...ls,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:Cw,CircleClose:re.CircleClose,[Ce.name]:Ce,[$t.name]:$t},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),r=(0,t.computed)(()=>{const v="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${v}-right`:`${v}-left`}`}),i=(0,t.computed)(()=>Mn(e.videos)?[].concat(e.videos).concat(e.images):e.images),a=v=>{v!==l.active&&(l.active=v,n("change",l.active))},u=()=>{Gi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const v=Pe(o.value);l.rootHeight=v.height,l.rootWidth=v.width}};return(0,t.watch)(()=>e.show,v=>{l.showPop=v,v&&(a(e.initNo),d())}),(0,t.watch)(()=>e.initNo,v=>{v!=l.active&&a(v)}),(0,t.onMounted)(()=>{a(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:i,setActive:a,iconClasses:r}}}),Bw={class:"fox-image-preview",ref:"swipeRef"},Tw={key:0,class:"fox-image-preview-index"};function Vw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("image-preview-item"),u=(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]=v=>e.showPop=v),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Bw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(u,{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,(v,c)=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:c,video:c<e.videos.length?v:{},image:c>=e.videos.length?v:{},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",Tw,(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]=(...v)=>e.onClose&&e.onClose(...v))},[(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 os=ie(Aw,[["render",Vw]]),xw=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"},$w=class{options=new xw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=eu(n,{name:"image-preview",components:[Ce,xt,$t,Et,ft],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(os,n))}})})}},bl=e=>new $w(e);bl.install=e=>{e.use(os)};var{create:Ew}=le("countup"),Dw=Ew({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:o}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=B=>{B&&r.value.push(B)},a=(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:u,scrolling:s,customBgImg:d,type:v}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,B=>{a.prizeLevelTrun=B}),(0,t.watch)(()=>e.initNum,B=>{a.current=B,a.valFlag=!1,c()}),(0,t.watch)(()=>e.endNum,()=>{a.current=e.initNum,a.valFlag=!1,c()});const c=()=>{if(a.valFlag)return!1;u&&(s||d?v!="machine"&&b():(C(),setTimeout(()=>{a.valFlag=!0},300)))},p=()=>{clearInterval(Number(a.timer)),a.timer=null},y=(B,T,w)=>{const I=(B.toString().split(".")[1]||"").length,L=(T.toString().split(".")[1]||"").length,V=Math.pow(10,Math.max(I,L));return w=="-"?Number((B*V-T*V).toFixed(0))/V:Number((B*V+T*V).toFixed(0))/V},N=B=>{let{num_total_len:T,pointNum:w,initDigit1:I,initDigit2:L,sortFlag:V}=a,M=V=="add"||V=="equal"?String(L)[B-(T-w)]:10-Number(String(L)[B-(T-w)]),q=V=="add"||V=="equal"?String(I)[B]:10-Number(String(I)[B]),O=B>T-w-1?-M*100+"%":B<=String(I).length-1?-q*100+"%":0;return O=="-1000%"&&(O=0),O},S=B=>{let{num_total_len:T,pointNum:w,initDigit1:I,initDigit2:L}=a,V=String(L)[B-(T-w)];return B>T-w-1?V||0:B<=String(I).length-1?String(I)[B]:0},C=()=>{let{endNum:B,initNum:T,speed:w,toFixed:I}=e,L=setInterval(()=>{if(T>B)if(Number(a.current)<=B||Number(a.current)<=w)a.current=B.toFixed(I),clearInterval(L),n("scrollEnd"),a.valFlag=!1;else{let V=parseFloat(String(a.current))-parseFloat(String(w));a.current=V.toFixed(I)}else if(Number(a.current)>=B)a.current=B.toFixed(I),clearInterval(L),n("scrollEnd"),a.valFlag=!1;else{let V=parseFloat(String(a.current))+parseFloat(String(w));a.current=V.toFixed(I)}},e.during)},b=B=>{let{initNum:T,endNum:w,toFixed:I,customBgImg:L}=e;L&&(T=e.customChangeNum);let V,M,q,O;T!=0?(I!=0&&(T=Number(T.toFixed(I))),String(T).indexOf(".")>-1?(V=String(T).split(".")[0].length,M=String(T).split(".")[1].length):(V=String(T).length,M=0)):(V=1,M=0),w!=0?(I!=0&&(w=Number(w.toFixed(I))),String(w).indexOf(".")>-1?(q=String(w).split(".")[0].length,O=String(w).split(".")[1].length):(q=String(w).length,O=0)):(q=1,O=0);let P=V>=q?V:q,j=M>=O?M:O;a.num_total_len=P+j,a.pointNum=j,T>w?(a.sortFlag="reduce",a.to0_10=[0,9,8,7,6,5,4,3,2,1,0],a.totalCount=y(T,w,"-"),a.numberVal=Number(String(T))):T<w?(a.sortFlag="add",a.to0_10=[0,1,2,3,4,5,6,7,8,9,0],a.totalCount=y(w,T,"-"),a.numberVal=Number(String(w))):a.sortFlag="equal";var D=1;for(let te=0;te<a.pointNum;te++)D*=10;var ee=a.numberVal*D;if(a.relNum=ee,I!=0&&(a.pointNum=String(a.numberVal).split(".")[1]?String(a.numberVal).split(".")[1].length:0,a.num_total_len=String(ee).length),String(T).indexOf(".")>-1){let te=String(T).split(".");a.initDigit1=Number(te[0]),a.initDigit2=Number(te[1])}else a.initDigit1=T,a.initDigit2=0;s&&!L?(0,t.nextTick)(()=>{if(a.sortFlag=="equal")return!1;let te=r.value[a.num_total_len-1];m(te)}):B!==0&&A()},m=B=>{p();var T=1;a.pointNum!=0&&(T=1/Math.pow(10,a.pointNum)),a.timer=setInterval(()=>{f(B),a.totalCount=y(a.totalCount,T,"-"),a.totalCount<=0&&(p(),n("scrollEnd"),a.valFlag=!1)},e.during)},f=B=>{let T=B.getAttribute("turn-number"),w;if(a.sortFlag=="add"?w=parseInt(String(T))+1:w=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,B.setAttribute("turn-number",String(w)),(B.style.transition=="none 0s ease 0s"||w==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),w==10||a.sortFlag=="reduce"&&w==0){var I=null;B.style.top=`-${a.sortFlag=="add"?w*100:(10-w)*100}%`,B.setAttribute("turn-number","0"),I=setTimeout(()=>{I&&clearTimeout(I),B.style.transition="none",B.style.top="0",k(B,w)},.975*e.during)}else B.style.top=`-${a.sortFlag=="add"?w*100:(10-w)*100}%`;B.style.top=="-100%"&&a.sortFlag=="reduce"&&f(B.previousSibling)},k=(B,T)=>{setTimeout(()=>{T==10&&B.previousSibling&&f(B.previousSibling)},200)},A=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),a.valFlag=!1})})},h=()=>{for(a.notPrize=[];a.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);a.notPrize.indexOf(B)==-1&&a.notPrize.push(B)}};o({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;a.prizeLevelTrun<0&&h();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let I=T*(w+1+parseFloat(String(B)));a.prizeYPrev.length!=0&&(a.prizeY[w]=a.prizeYPrev[w]);let L=a.prizeYPrev[w]?a.prizeYPrev[w]:0,V=I+L+(e.machinePrizeNum-a.prizeLevelTrun+1)*e.numHeight+(T-L);a.prizeLevelTrun<0&&(V+=e.numHeight*a.notPrize[w]),x(w,V,L)},500*w)}});const x=(B,T,w)=>{let I=setInterval(()=>{if(w<=T)w+=10,a.prizeY[B]=parseFloat(String(w));else if(clearInterval(I),I=null,a.finshMachine+=1,a.prizeY[B]=T,a.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;a.prizeYPrev=[],JSON.parse(JSON.stringify(a.prizeY)).forEach(V=>{let M=V;for(;M>L;)M-=L;a.prizeYPrev.push(M)}),setTimeout(()=>{a.finshMachine=0,a.prizeLevelTrun<0?(n("scrollEnd",!1),a.valFlag=!1):(n("scrollEnd",!0),a.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{a.current=e.initNum,(0,t.nextTick)(()=>{c()})}),(0,t.onUnmounted)(()=>{p(),a.timer=null}),{...(0,t.toRefs)(a),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:N,turnNumber:S}}}),Iw={class:"fox-countup"},qw=["turn-number"];function Pw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Iw,[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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+u,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[u]+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+u,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)==e.num_total_len-e.pointNum?Number(u)*1.5:Number(u)*1.3:Number(u))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[u]*e.numHeight+e.customSpacNum*+String(e.relNum)[u])+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:a,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(u),left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)*1.1:Number(u))+"px"}),"turn-number":e.turnNumber(u)},[((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,qw))),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 Pa=ie(Dw,[["render",Pw]]),Mw=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Rw,create:zw}=le("countdown"),Lw=zw({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:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Rw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Mw(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,N=Math.max(l.handleEndTime-y,0);l.restTime=N,N||(l.counting=!1,c(),n("on-end")),N>0&&u()}}))},s=(y,N)=>{const S=y;let C={d:0,h:0,m:0,s:0,ms:0};const b=1e3,m=60*b,f=60*m,k=24*f;return S>0&&(C.d=S>=b?Math.floor(S/k):0,C.h=Math.floor(S%k/f),C.m=Math.floor(S%f/m),C.s=Math.floor(S%m/b),C.ms=Math.floor(S%b)),N=="custom"?C:d({...C})},d=y=>{let{d:N,h:S,m:C,s:b,ms:m}=y,f=e.format;if(f.includes("DD")?f=f.replace("DD",rt(N)):S+=Number(N)*24,f.includes("HH")?f=f.replace("HH",rt(S)):C+=Number(S)*60,f.includes("mm")?f=f.replace("mm",rt(C)):b+=Number(C)*60,f.includes("ss")?f=f.replace("ss",rt(b)):m+=Number(b)*1e3,f.includes("S")){const k=rt(m,3).toString();f.includes("SSS")?f=f.replace("SSS",k):f.includes("SS")?f=f.replace("SS",k.slice(0,2)):f.includes("S")&&(f=f.replace("SS",k.slice(0,1)))}return f},v=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?a():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let N=s(y,"custom");n("update:modelValue",N),n("input",N)}),(0,t.watch)(()=>e.paused,(y,N)=>{N?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,y=>{a()}),(0,t.watch)(()=>e.startTime,y=>{a()}),{...(0,t.toRefs)(e),slots:o,classes:r,start:v,pause:c,renderTime:i,reset:p}}}),Fw=["innerHTML"];function Ow(e,n,o,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,Fw))],2)}var Ma=ie(Lw,[["render",Ow]]),{create:Kw}=le("badge"),Uw=Kw({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,o=e.max;return typeof n=="number"&&typeof o=="number"&&o<n?`${o}+`:n})}}}),_w={class:"fox-badge"},Hw=["textContent"];function jw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",_w,[(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,Hw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ra=ie(Uw,[["render",jw]]),{componentName:Ww,create:Yw}=le("tag"),Xw=Yw({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 a=Ww;return{[a]:!0,[`${a}--${e.type}`]:!0,[`${a}--plain`]:e.plain,[`${a}--round`]:e.round,[`${a}--mark`]:e.mark,[`${a}--symbol`]:e.symbol,[`${a}--text`]:e.text,[`${a}--light`]:e.light}}),getStyle:()=>{const a={};return e.textColor?a.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(a.color=e.color),e.plain?(a.background="#fff",a["border-color"]=e.color):!e.text&&e.color&&(a.background=e.color),a},onClose:a=>{a.stopPropagation(),n("close",a)},onClick:a=>{n("click",a)}}}});function Qw(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClick&&e.onClick(...u))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var za=ie(Xw,[["render",Qw]]),{create:Gw}=le("popover"),Zw=Gw({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 o=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),a=(0,t.ref)();const u=(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:k,location:A}=e,h=A.split("-")[0],g=A.split("-")[1],x=16;return f&&(m[`border${d(h)}Color`]=f),e.arrowOffset!=0&&(["bottom","top"].includes(h)&&(g||(m.left=`calc(50% + ${k}px)`),g=="start"&&(m.left=`${x+k}px`),g=="end"&&(m.right=`${x-k}px`)),["left","right"].includes(h)&&(g||(m.top=`calc(50% - ${k}px)`),g=="start"&&(m.top=`${x-k}px`),g=="end"&&(m.bottom=`${x+k}px`))),m}),d=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,f=>f.substring(0,1).toUpperCase()+f.substring(1)),m),v=(0,t.computed)(()=>{let m={};if(!i.value||!a.value)return{};const f=a.value.width,k=a.value.height,{width:A,height:h,left:g,top:x}=i.value,{location:B,offset:T}=e,w=B.split("-")[0],I=B.split("-")[1];let L=0,V=0;return Mn(T)&&T.length==2&&(L+=Number(T[1]),V+=Number(T[0])),A&&(["bottom","top"].includes(w)&&(m.top=`${x+(w=="bottom"?h+L:-(k+L))}px`,I||(m.left=`${-(f-A)/2+g+V}px`),I=="start"&&(m.left=`${g+V}px`),I=="end"&&(m.left=`${i.value.right+V}px`)),["left","right"].includes(w)&&(m.left=`${g+(w=="left"?-(f+L):A+L)}px`,I||(m.top=`${x-k/2+h/2-4+V}px`),I=="start"&&(m.top=`${x+V}px`),I=="end"&&(m.top=`${x+h+V}px`))),m}),c=(0,t.computed)(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),p=()=>{let m=Pe(o.value);e.targetId&&(m=Pe(document.querySelector(`#${e.targetId}`))),i.value=m,setTimeout(()=>{a.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,m=>{r.value=m,m?(window.addEventListener("touchstart",b,!0),p()):window.removeEventListener("touchstart",b,!0)});const y=m=>{n("update",m),n("update:visible",m)},N=()=>{y(!e.visible),n("open")},S=()=>{n("update:visible",!1),n("close")},C=(m,f)=>{!m.disabled&&n("choose",m,f),e.closeOnClickAction&&S()},b=m=>{const f=o.value,k=l.value;let A=f&&!f.contains(m.target);if(e.targetId){const h=document.querySelector(`#${e.targetId}`);A=h&&!h.contains(m.target)}A&&k&&!k.contains(m.target)&&e.closeOnClickOutside&&S()};return{showPopup:r,openPopover:N,popoverArrow:u,closePopover:S,chooseItem:C,popoverRef:o,popoverContentRef:l,getRootPosition:v,customStyle:c,popoverArrowStyle:s,renderIcon:yi}}}),Jw={ref:"popoverContentRef",class:"fox-popover-content-group"},eC=["onClick"],tC={class:"fox-popover-menu-item-name"};function nC(e,n,o,l,r,i){const a=(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]=(...u)=>e.openPopover&&e.openPopover(...u))},[(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)(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.showPopup=u),"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",Jw,[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,(u,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([u.className,u.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(u,s),["stop"])},[u.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(u.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",tC,(0,t.toDisplayString)(u.name),1)],10,eC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var tn=ie(Zw,[["render",nC]]),lC=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:o,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:oC}=le("skeleton"),aC=oC(lC({[en.name]:en})),rC={key:0},iC={key:1,class:"fox-skeleton"},sC={key:0,class:"fox-skeleton-animation"},uC={class:"fox-skeleton-content"};function cC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",iC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",sC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",uC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(a,{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),u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,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",rC,[(0,t.renderSlot)(e.$slots,"default")]))}var La=ie(aC,[["render",cC]]),{create:dC,componentName:fC}=le("collapse"),mC=dC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),r=(0,t.computed)(()=>({[fC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,v=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,v)},a=s=>{if(e.accordion)l.value===s?i("",s,!1):i(s,s,!0);else if(Array.isArray(l.value))if(l.value.includes(s)){const d=l.value.filter(v=>v!==s);i(d,s,!1)}else{const d=l.value.concat([s]);i(d,s,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},u=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:a,isExpanded:u}),{collapseDom:o,classes:r}}});function pC(e,n,o,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 Fa=ie(mC,[["render",pC]]),{create:vC,componentName:hC}=le("collapse-item"),gC=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),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const c=hC;return{[c]:!0,[c+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),a=(0,t.ref)(i.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{i.value&&(a.value="auto")},d=()=>{a.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto"})})},v=()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value="0px"})})};return(0,t.watch)(i,c=>{c?d():v()}),{classes:r,renderIcon:yi,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:a,expanded:i,onTransitionEnd:s}}}),yC={class:"fox-collapse-item__title-main"},bC={class:"fox-collapse-item__title-main-value"},SC=["innerHTML"],kC={key:2,class:"fox-collapse-item__title-label"},wC={key:0,class:"fox-collapse-item__title-sub"},CC=["innerHTML"],NC={key:0,class:"fox-collapse__item-extraWrapper"},AC={class:"fox-collapse__item-extraWrapper__extraRender"},BC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function TC(e,n,o,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]=(...a)=>e.toggle&&e.toggle(...a))},[(0,t.createElementVNode)("view",yC,[(0,t.createElementVNode)("view",bC,[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,SC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",kC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",wC,[(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,CC)),(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",NC,[(0,t.createElementVNode)("div",AC,[(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]=(...a)=>e.onTransitionEnd&&e.onTransitionEnd(...a))},[(0,t.createElementVNode)("view",BC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Oa=ie(gC,[["render",TC]]),VC=(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:xC,create:$C,scope:EC}=le("table"),DC=$C({components:{RenderColumn:VC,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:o}){const{t:l}=(0,he.useFoxI18n)(EC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[xC]:!0})),a=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),u=y=>y.stylehead?y.stylehead:"",s=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(N=>N.key===y)[0],v=y=>{const N=e.columns.filter(S=>S.key===y);return N[0].stylecolumn?N[0].stylecolumn:""},c=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:a,getColumnItem:d,getColumnItemStyle:v,handleSorterClick:c,sortDataItem:p,t:l,stylehead:u,stylecolumn:s}}}),IC={class:"fox-table__main__head"},qC={class:"fox-table__main__head__tr"},PC=["onClick"],MC={class:"fox-table__main__body"},RC={key:1},zC={key:0,class:"fox-table__nodata"},LC={key:0,class:"fox-table__nodata__text"},FC={key:1,class:"fox-table__summary"},OC=["innerHTML"];function KC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("DownArrow"),u=(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",IC,[(0,t.createElementVNode)("view",qC,[((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)(a,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,PC))),128))])]),(0,t.createElementVNode)("view",MC,[((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,v])=>((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 v=="function"?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,slots:[v,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",RC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",zC,[(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",LC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",FC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,OC)])):(0,t.createCommentVNode)("",!0)],2)}var Ka=ie(DC,[["render",KC]]),{componentName:UC,create:_C}=le("ellipsis"),HC=_C({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 o=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),a=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[UC]:!0}));(0,t.watch)(()=>e.content,(S,C)=>{S!=C&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const S=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(S).forEach(b=>{l.style.setProperty(b,S.getPropertyValue(b))}),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 C=p(S.lineHeight==="normal"?e.lineHeight:S.lineHeight);r=Math.floor(C*(Number(e.rows)+.5)+p(S.paddingTop)+p(S.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)a.exceeded=!1,document.body.removeChild(l);else{a.exceeded=!0;const S=e.content.length,C=Math.floor((0+S)/2),b=e.direction==="middle"?c([0,C],[C,S]):v(0,S);i.value=b,document.body.removeChild(l)}},v=(S,C)=>{const b=a.expanded?e.collapseText:e.expandText,m=e.content.length;if(C-S<=1)return e.direction==="end"?{leading:e.content.slice(0,S)+e.symbol}:{tailing:e.symbol+e.content.slice(C,m)};const f=Math.round((S+C)/2);return e.direction==="end"?l.innerText=e.content.slice(0,f)+e.symbol+b:l.innerText=b+e.symbol+e.content.slice(f,m),l.offsetHeight<=r?e.direction==="end"?v(f,C):v(S,f):e.direction==="end"?v(S,f):v(f,C)},c=(S,C)=>{const b=a.expanded?e.collapseText:e.expandText,m=e.content.length;if(S[1]-S[0]<=1&&C[1]-C[0]<=1)return{leading:e.content.slice(0,S[0])+e.symbol,tailing:e.symbol+e.content.slice(C[1],m)};const f=Math.floor((S[0]+S[1])/2),k=Math.ceil((C[0]+C[1])/2);return l.innerText=e.content.slice(0,f)+e.symbol+b+e.symbol+e.content.slice(k,m),l.offsetHeight<=r?c([f,S[1]],[C[0],k]):c([S[0],f],[k,C[1]])},p=S=>{if(!S)return 0;const C=S.match(/^\d*(\.\d*)?/);return C?Number(C[0]):0},y=S=>{S==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},N=()=>{n("click")};return{...(0,t.toRefs)(a),root:o,ellipsis:i,classes:u,clickHandle:y,handleClick:N}}}),jC={key:0},WC={key:1},YC={key:2};function XC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",jC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",WC,[(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)(a=>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",YC,[(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)(a=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ua=ie(HC,[["render",XC]]),{componentName:QC,create:GC}=le("animate"),ZC=GC({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:o,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let a=(0,t.computed)(()=>({"fox-animate__container":!0,[`${QC}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const u=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:a,handleClick:u}}}),JC={class:"fox-animate"};function e2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",JC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var _a=ie(ZC,[["render",e2]]),{componentName:t2,create:n2}=le("watermark"),l2=n2({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 o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:a,height:u,rotate:s,image:d,imageWidth:v,imageHeight:c,content:p,fontStyle:y,fontWeight:N,fontColor:S,fontSize:C,fontFamily:b}=e,m=()=>{const k=document.createElement("canvas"),A=window.devicePixelRatio,h=k.getContext("2d"),g=`${(r+a)*A}px`,x=`${(i+u)*A}px`,B=a*A,T=u*A;if(k.setAttribute("width",g),k.setAttribute("height",x),h){if(d){h.translate(B/2,T/2),h.rotate(Math.PI/180*Number(s));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=d,w.onload=()=>{h.drawImage(w,-v*A/2,-c*A/2,v*A,c*A),h.restore(),o.base64Url=k.toDataURL()}}else if(p){h.textBaseline="middle",h.textAlign="center",h.translate(B/2,T/2),h.rotate(Math.PI/180*Number(s));const w=Number(C)*A;h.font=`${y} normal ${N} ${w}px/${T}px ${b}`,h.fillStyle=S,h.fillText(p,0,0),h.restore(),o.base64Url=k.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),(0,t.watch)(()=>[l,r,i,a,u,s,d,v,c,p,y,N,S,C,b],()=>{m()});const f=(0,t.computed)(()=>{const k=t2;return{[k]:!0,[`${k}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:f}}});function o2(e,n,o,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 Ha=ie(l2,[["render",o2]]);function a2(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:r2,create:i2}=le("trend-arrow"),s2=i2({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}),o=(0,t.computed)(()=>({[r2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:a,showSign:u,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${u&&i!==0?n.rateTrend?"+":"-":""}${a2(Number(d),a)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:a,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?a:i:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:r}}});function u2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TriangleUp"),u=(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)(a,{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)(u,{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 ja=ie(s2,[["render",u2]]),{create:c2}=le("tour"),d2=c2({components:{[tn.name]:tn,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 o=(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:v,maskWidth:c,maskHeight:p}=e,{width:y,height:N,left:S,top:C}=l.value,b=[S+y/2,C+N/2],m=Number(c||y),f=Number(p||N);return{width:`${m+ +v[1]*2}px`,height:`${f+ +v[0]*2}px`,top:`${b[1]-f/2-+v[0]}px`,left:`${b[0]-m/2-+v[1]}px`}}),a=v=>{v=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{const v=Pe(document.querySelector(`#${e.steps[o.active].target}`));l.value=v},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,v=>{v&&u(),o.active=0,o.showTour=v,o.showPopup=v}),{...(0,t.toRefs)(o),classes:r,maskStyle:i,changeStep:a,close:s,handleClickMask:d}}}),f2={key:0,class:"fox-tour-content"},m2={key:0,class:"fox-tour-content-top"},p2={class:"fox-tour-content-inner"},v2={class:"fox-tour-content-bottom"},h2={class:"fox-tour-content-bottom-init"},g2={class:"fox-tour-content-bottom-operate"},y2={key:1,class:"fox-tour-content fox-tour-content-tile"},b2={class:"fox-tour-content-inner"};function S2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close"),u=(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)(u,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=v=>e.showPopup=v),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",f2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",m2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...v)=>e.close&&e.close(...v))},[(0,t.createVNode)(a,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",p2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",v2,[(0,t.createElementVNode)("div",h2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",g2,[(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]=v=>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]=(...v)=>e.close&&e.close(...v))},(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]=v=>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",y2,[(0,t.createElementVNode)("div",b2,(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 Wa=ie(d2,[["render",S2]]),{componentName:k2,create:w2}=le("barrage"),C2=w2({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(),o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[k2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),a=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),v=(0,t.ref)(0),c=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(S(),v.value=0,N("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{u.value=[],S()});const y=()=>{p.value=r.value.offsetWidth,o&&N("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),b()},300)},N=f=>{let k=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const A=[];k&&Array.from(k).forEach(h=>{f=="init"?(h.style.opacity="0",A.push(h)):(h.classList="",h.style={})}),f=="init"&&(u.value=A)},S=()=>{a&&(clearTimeout(a),a=null)};(0,t.watch)(()=>e.danmu,f=>{e.danmu.length>0&&(u.value=[...f])});const C=f=>{const k=v.value%u.value.length;!e.loop&&v.value===u.value.length?u.value.splice(u.value.length,0,f):u.value.splice(k,0,f)},b=()=>{S(),a=setTimeout(()=>{m()},e.frequency)},m=()=>{const f=e.loop?v.value%u.value.length:v.value;let k=document.createElement("view");o&&typeof u.value[f]=="object"?(k=u.value[f],k?.classList?.add("fox-barrage__item")):(k.innerHTML=u.value[f],k.classList.add("fox-barrage__item"),i.value.appendChild(k)),(0,t.nextTick)(()=>{const A=k.offsetHeight;if(k?.classList?.add("move"),k.style.animationDuration=`${c}ms`,k.style.top=f%s.value*(A+d.value)+20+"px",k.style.opacity="1",!o){const h=k.offsetWidth;k.style.width=h+20+"px"}k.addEventListener("animationend",()=>{o?k.classList.remove("move"):i.value.removeChild(k)}),!(!e.loop&&v.value>=u.value.length-1)&&(v.value++,v.value>=u.value.length&&(v.value=0),k.removeEventListener("animationend",()=>{}),b())})};return{classTime:n,classes:l,danmuList:u,dmBody:r,dmContainer:i,add:C}}});function N2(e,n,o,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 Ya=ie(C2,[["render",N2]]),{componentName:A2,create:B2,scope:T2}=le("signature"),V2=B2({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:vt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:o}){const{toLocaleRefs:l}=(0,he.useFoxI18n)(T2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(null),u=(0,t.computed)(()=>({[A2]:!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"))},v=()=>{i.value.addEventListener(s.events[0],c,!1)},c=f=>{f.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],N,!1)},p=f=>{f.preventDefault();let k=s.isSupportTouch?f.touches[0]:f;n("signing",k);let A=i.value.getBoundingClientRect(),h=k.clientX-A.left,g=k.clientY-A.top;s.ctx.lineTo(h,g),s.ctx.stroke()},y=f=>{f.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},N=f=>{f.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},S=()=>{i.value.addEventListener(s.events[2],y,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},C=()=>{m(i.value)},b=f=>{if(!f)return!0;var k=document.createElement("canvas");return k.width=f.width,k.height=f.height,f?.toDataURL()==k.toDataURL()},m=f=>{let k;switch(e.type){case"png":k=f.toDataURL("image/png");break;case"jpg":k=f.toDataURL("image/jpeg",.8);break}n("confirm",b(f)?"请绘制签名":f,b(f)?"":k)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=a.value.offsetWidth,s.canvasHeight=a.value.offsetHeight,v())}),o({confirm:C,clear:S}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:a,isCanvasSupported:d,confirm:C,clear:S,classes:u}}}),x2={class:"fox-signature__inner",ref:"wrap"},$2=["height","width"],E2={key:0,class:"fox-signature-unsopport"},D2={class:"fox-signature__toolbar"};function I2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",x2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,$2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",E2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",D2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=u=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=u=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Xa=ie(V2,[["render",I2]]),q2=[ro,so,uo,co,fo,sn,Jn,po,vo,ho,go,yo,nl,So,Co,Bo,To,ul,cl,Vo,dl,fl,xo,Eo,Dt,Do,qo,gl,Po,Ro,cn,dn,al,zo,Lo,Fo,Oo,st,Ko,Uo,el,Bt,tl,_o,Ho,vt,jo,Wo,Yo,ft,Ce,Xo,Qo,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,fa,ma,pa,Gt,hl,rl,sl,il,yl,pl,un,va,ha,ga,ya,ba,Sa,ka,Jt,vl,wa,Na,ml,It,Ba,Ta,en,Va,xa,Zt,$a,Ea,Da,xt,Ia,qa,$t,Et,Gn,bl,Pa,Ma,Ra,za,tn,La,Fa,Oa,Ka,Ua,_a,Ha,ja,Wa,Ya,Xa],P2=new Js(q2,"4.0.0");exports.AbstractPageScopeKey=oo;exports.ActionSheet=ba;exports.FoxActionSheet=ba;exports.ActionsheetItem=Po;exports.FoxActionsheetItem=Po;exports.ActionsheetPane=gl;exports.FoxActionsheetPane=gl;exports.Animate=_a;exports.FoxAnimate=_a;exports.Audio=Ba;exports.FoxAudio=Ba;exports.AudioOperate=Ta;exports.FoxAudioOperate=Ta;exports.Avatar=en;exports.FoxAvatar=en;exports.AvatarGroup=Va;exports.FoxAvatarGroup=Va;exports.BackTop=Sa;exports.FoxBackTop=Sa;exports.Badge=Ra;exports.FoxBadge=Ra;exports.Barrage=Ya;exports.FoxBarrage=Ya;exports.Broadcast=Zr;exports.BroadcastKey=Oe;exports.Button=vt;exports.FoxButton=vt;exports.ButtonsItem=po;exports.FoxButtonsItem=po;exports.Calendar=sl;exports.FoxCalendar=sl;exports.CalendarItem=To;exports.FoxCalendarItem=To;exports.Cascader=rl;exports.FoxCascader=rl;exports.CascaderItem=Co;exports.FoxCascaderItem=Co;exports.Cell=jo;exports.FoxCell=jo;exports.CellGroup=Yo;exports.FoxCellGroup=Yo;exports.Checkbox=dl;exports.FoxCheckbox=dl;exports.CheckboxGroup=fl;exports.FoxCheckboxGroup=fl;exports.CheckboxItem=xo;exports.FoxCheckboxItem=xo;exports.CircleProgress=$a;exports.FoxCircleProgress=$a;exports.Col=Go;exports.FoxCol=Go;exports.Collapse=Fa;exports.FoxCollapse=Fa;exports.CollapseItem=Oa;exports.FoxCollapseItem=Oa;exports.Content=co;exports.FoxContent=co;exports.CountDown=Ma;exports.FoxCountDown=Ma;exports.CountUp=Pa;exports.FoxCountUp=Pa;exports.DataItemsKey=Ut;exports.DateItem=Bo;exports.FoxDateItem=Bo;exports.DatePicker=il;exports.FoxDatePicker=il;exports.DateUtils=ct;exports.Dialog=Jt;exports.FoxDialog=Jt;exports.Divider=ea;exports.FoxDivider=ea;exports.Domain=Ln;exports.DomainKey=et;exports.DomainProvider=_o;exports.FoxDomainProvider=_o;exports.Drag=ka;exports.FoxDrag=ka;exports.Dropdown=Uo;exports.FoxDropdown=Uo;exports.Elevator=ua;exports.FoxElevator=ua;exports.Ellipsis=Ua;exports.FoxEllipsis=Ua;exports.Empty=Da;exports.FoxEmpty=Da;exports.FixedNav=oa;exports.FoxFixedNav=oa;exports.FloatingButton=Fo;exports.FoxFloatingButton=Fo;exports.FooterBar=uo;exports.FoxFooterBar=uo;exports.FoxGrid=ta;exports.Grid=ta;exports.FoxGridItem=na;exports.GridItem=na;exports.FoxGroup=fo;exports.Group=fo;exports.FoxHeaderBar=so;exports.HeaderBar=so;exports.FoxHintText=Dt;exports.HintText=Dt;exports.FoxIcon=Wo;exports.Icon=Wo;exports.FoxImage=Xo;exports.Image=Xo;exports.FoxImagePreview=bl;exports.ImagePreview=bl;exports.FoxIndicator=da;exports.Indicator=da;exports.FoxInfiniteLoading=vl;exports.InfiniteLoading=vl;exports.FoxInputItem=ho;exports.InputItem=ho;exports.FoxInputNumber=yl;exports.InputNumber=yl;exports.FoxInputNumberItem=Ro;exports.InputNumberItem=Ro;exports.FoxItem=sn;exports.Item=sn;exports.FoxLayout=Qo;exports.Layout=Qo;exports.FoxLinkItem=Do;exports.LinkItem=Do;exports.FoxList=xa;exports.List=xa;exports.FoxMapping=tl;exports.Mapping=tl;exports.FoxMenu=aa;exports.Menu=aa;exports.FoxMenuItem=ra;exports.MenuItem=ra;exports.FoxMessageBox=st;exports.MessageBox=st;exports.FoxMoneyItem=go;exports.MoneyItem=go;exports.FoxMoreButton=Oo;exports.MoreButton=Oo;exports.FoxNavbar=la;exports.Navbar=la;exports.FoxNoticeBar=Ea;exports.NoticeBar=Ea;exports.FoxNotify=Na;exports.Notify=Na;exports.FoxNumberKeyboard=ga;exports.NumberKeyboard=ga;exports.FoxOverLay=ft;exports.OverLay=ft;exports.FoxPage=ro;exports.Page=ro;exports.FoxPagination=ca;exports.Pagination=ca;exports.FoxPicker=un;exports.Picker=un;exports.FoxPickerItem=So;exports.PickerItem=So;exports.FoxPopover=tn;exports.Popover=tn;exports.FoxPopoverDialog=el;exports.PopoverDialog=el;exports.FoxPopup=Ce;exports.Popup=Ce;exports.FoxPopupWrapper=Ko;exports.PopupWrapper=Ko;exports.FoxPrice=Gn;exports.Price=Gn;exports.FoxProgress=Zt;exports.Progress=Zt;exports.FoxPullRefresh=wa;exports.PullRefresh=wa;exports.FoxRadio=ul;exports.Radio=ul;exports.FoxRadioGroup=cl;exports.RadioGroup=cl;exports.FoxRadioItem=Vo;exports.RadioItem=Vo;exports.FoxRange=Gt;exports.Range=Gt;exports.FoxRate=pl;exports.Rate=pl;exports.FoxRateItem=qo;exports.RateItem=qo;exports.FoxRollingProvider=Ho;exports.RollingProvider=Ho;exports.FoxRow=Zo;exports.Row=Zo;exports.FoxRowItem=Jn;exports.RowItem=Jn;exports.FoxSearchBar=hl;exports.SearchBar=hl;exports.FoxShortPassword=va;exports.ShortPassword=va;exports.FoxSideNavBar=fa;exports.SideNavBar=fa;exports.FoxSideNavBarItem=ma;exports.SideNavBarItem=ma;exports.FoxSignature=Xa;exports.Signature=Xa;exports.FoxSkeleton=La;exports.Skeleton=La;exports.FoxSlotItem=vo;exports.SlotItem=vo;exports.FoxStep=qa;exports.Step=qa;exports.FoxSteps=Ia;exports.Steps=Ia;exports.FoxStepsBar=Lo;exports.StepsBar=Lo;exports.FoxSticky=Jo;exports.Sticky=Jo;exports.FoxSubSideNavBar=pa;exports.SubSideNavBar=pa;exports.FoxSwipe=ya;exports.Swipe=ya;exports.FoxSwiper=$t;exports.Swiper=$t;exports.FoxSwiperItem=Et;exports.SwiperItem=Et;exports.FoxSwitch=ml;exports.Switch=ml;exports.FoxSwitchItem=Eo;exports.SwitchItem=Eo;exports.FoxTabbar=ia;exports.Tabbar=ia;exports.FoxTabbarItem=sa;exports.TabbarItem=sa;exports.FoxTable=Ka;exports.Table=Ka;exports.FoxTabsBar=cn;exports.TabsBar=cn;exports.FoxTabsContainer=dn;exports.TabsContainer=dn;exports.FoxTabsFrame=zo;exports.TabsFrame=zo;exports.FoxTabsPane=al;exports.TabsPane=al;exports.FoxTag=za;exports.Tag=za;exports.FoxText=Bt;exports.Text=Bt;exports.FoxTextarea=nl;exports.Textarea=nl;exports.FoxTextareaItem=yo;exports.TextareaItem=yo;exports.FoxToast=It;exports.Toast=It;exports.FoxTour=Wa;exports.Tour=Wa;exports.FoxTrendArrow=ja;exports.TrendArrow=ja;exports.FoxUploader=ha;exports.Uploader=ha;exports.FoxVideo=xt;exports.Video=xt;exports.FoxWaterMark=Ha;exports.WaterMark=Ha;exports.InnerPageScopeKey=lo;exports.PriorityPolicy=wt;exports.UniqueID=Zn;exports.ValidateSchema=li;exports.ValidateSchemaKey=Ze;exports.browseProperty=vi;exports.cancelRaf=Lr;exports.clamp=je;exports.clearNonNumber=Ll;exports.compareTo=Ml;exports.createBroadcast=ln;exports.createValidateSchema=zn;exports.debounce=Me;exports.debounceRef=Fs;exports.decimalLength=Gr;exports.default=P2;exports.defineConfigDomain=ai;exports.defineDataItem=ri;exports.defineDomain=no;exports.defineDomainItemProperty=$e;exports.defineItem=Ve;exports.definePageState=ii;exports.defineSimpleItem=He;exports.deleteGlobalValidator=Ms;exports.disabledProperty=pi;exports.divide=Zl;exports.excludeProps=Qe;exports.extend=Nt;exports.floatData=$s;exports.getGlobalIcons=_n;exports.getGlobalValidateCheckEvents=ei;exports.getGlobalValidateResetEvents=ni;exports.getPageContentAreaHeight=xn;exports.getPageContentAreaWidth=$n;exports.getPageFooterAreaHeight=Kn;exports.getPageHeaderAreaHeight=On;exports.getRootDomain=kt;exports.hasSymbol=jr;exports.includeProps=be;exports.indexOf=Vs;exports.injectAbstractPageScope=an;exports.injectAbstractPageScopeForContent=fi;exports.injectAbstractPageScopeForFooterBar=di;exports.injectAbstractPageScopeForHeaderBar=ci;exports.injectInnerPageScope=on;exports.integerLength=Qr;exports.isArray=Mn;exports.isArrayLike=Yr;exports.isBrowser=lt;exports.isDate=We;exports.isDisplayNone=Jl;exports.isESModule=Cs;exports.isEmptyString=pe;exports.isEqual=xe;exports.isFunction=Nn;exports.isHidden=Rl;exports.isMap=bs;exports.isNil=Te;exports.isNumberString=eo;exports.isObject=De;exports.isPlainObject=ws;exports.isPromise=Ct;exports.isRegExp=zl;exports.isSet=Ss;exports.isString=_r;exports.isSubPage=Hs;exports.isSymbol=ks;exports.isTouch=ll;exports.isWindow=Wr;exports.kebabToPascal=Bn;exports.lastIndexOf=xs;exports.makeArray=Ts;exports.merge=Xr;exports.multiply=Or;exports.negate=Kr;exports.nextTick=As;exports.numberFormat=Pn;exports.objectToString=Hr;exports.once=Os;exports.overrideGlobalIcons=iu;exports.overrideGlobalValidateHandler=qs;exports.padZero=rt;exports.pascalToKebab=Es;exports.preventDefault=Fl;exports.property=Ae;exports.provideAbstractPageScope=ui;exports.provideInnerPageScope=si;exports.px2Number=_s;exports.raf=Ge;exports.readonlyProperty=mi;exports.setGlobalValidateCheckEvents=Rs;exports.setGlobalValidateHandler=Is;exports.setGlobalValidateMessages=Ls;exports.setGlobalValidateResetEvents=zs;exports.setGlobalValidator=Ps;exports.throttle=Vn;exports.toBoolean=ye;exports.toNumber=me;exports.toPadding=Ue;exports.toPx=ce;exports.toPxDesc=Us;exports.toPxString=ue;exports.toTypeString=Rn;exports.toValue=Re;exports.tryTimes=to;exports.typeOf=An;exports.unNumberFormat=Ur;exports.updatePageState=Ol;exports.useBroadcast=Kt;exports.useDomain=ot;exports.useInnerSize=Un;exports.usePageState=Fn;exports.usePosition=mo;exports.useRawTouch=ol;exports.useRect=Pe;exports.useSize=io;exports.useSlotChildren=rn;exports.useTouch=pt;exports.valueLength=we;