@fox-js/foxui 4.0.1-4 → 4.0.1-6

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 (223) hide show
  1. package/dist/index.cjs.js +23 -0
  2. package/dist/index.esm.js +19681 -0
  3. package/dist/index.umd.js +23 -0
  4. package/dist/locale/index.cjs.js +3 -1
  5. package/dist/locale/index.d.ts +398 -396
  6. package/dist/locale/{index.js → index.esm.js} +23 -21
  7. package/dist/style.css +1 -1
  8. package/dist/style.esm.js +7 -0
  9. package/dist/types/index.d.ts +641 -119
  10. package/package.json +7 -7
  11. package/dist/foxui.es.js +0 -25264
  12. package/dist/foxui.umd.js +0 -21
  13. package/dist/style.es.js +0 -2
  14. package/dist/types/api/index.d.ts +0 -9
  15. package/dist/types/components/actionsheet/index.vue.d.ts +0 -13
  16. package/dist/types/components/address/index.vue.d.ts +0 -13
  17. package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +0 -13
  18. package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +0 -13
  19. package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +0 -13
  20. package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +0 -13
  21. package/dist/types/components/addresslist/index.vue.d.ts +0 -13
  22. package/dist/types/components/animate/index.vue.d.ts +0 -13
  23. package/dist/types/components/animate/type.d.ts +0 -2
  24. package/dist/types/components/audio/index.vue.d.ts +0 -13
  25. package/dist/types/components/audiooperate/index.vue.d.ts +0 -13
  26. package/dist/types/components/avatar/index.vue.d.ts +0 -13
  27. package/dist/types/components/avatargroup/index.vue.d.ts +0 -13
  28. package/dist/types/components/backtop/index.vue.d.ts +0 -13
  29. package/dist/types/components/badge/index.vue.d.ts +0 -13
  30. package/dist/types/components/barrage/index.vue.d.ts +0 -13
  31. package/dist/types/components/button/index.vue.d.ts +0 -13
  32. package/dist/types/components/button/type.d.ts +0 -3
  33. package/dist/types/components/calendar/common.d.ts +0 -61
  34. package/dist/types/components/calendar/index.vue.d.ts +0 -13
  35. package/dist/types/components/calendar/pane.vue.d.ts +0 -13
  36. package/dist/types/components/calendar/types.d.ts +0 -13
  37. package/dist/types/components/calendaritem/common.d.ts +0 -201
  38. package/dist/types/components/calendaritem/index.vue.d.ts +0 -13
  39. package/dist/types/components/card/index.vue.d.ts +0 -13
  40. package/dist/types/components/cascader/cascader-pane.vue.d.ts +0 -13
  41. package/dist/types/components/cascader/common.d.ts +0 -98
  42. package/dist/types/components/cascader/helper.d.ts +0 -4
  43. package/dist/types/components/cascader/index.vue.d.ts +0 -13
  44. package/dist/types/components/cascader/tree.d.ts +0 -12
  45. package/dist/types/components/cascader/types.d.ts +0 -26
  46. package/dist/types/components/cascaderitem/index.vue.d.ts +0 -13
  47. package/dist/types/components/cascaderitem/model.d.ts +0 -34
  48. package/dist/types/components/category/index.vue.d.ts +0 -13
  49. package/dist/types/components/categorypane/index.vue.d.ts +0 -13
  50. package/dist/types/components/cell/index.vue.d.ts +0 -13
  51. package/dist/types/components/cellgroup/index.vue.d.ts +0 -13
  52. package/dist/types/components/checkbox/common.d.ts +0 -64
  53. package/dist/types/components/checkbox/index.vue.d.ts +0 -13
  54. package/dist/types/components/checkboxitem/common.d.ts +0 -107
  55. package/dist/types/components/checkboxitem/index.vue.d.ts +0 -13
  56. package/dist/types/components/checkboxitem/model.d.ts +0 -33
  57. package/dist/types/components/circleprogress/index.vue.d.ts +0 -13
  58. package/dist/types/components/col/index.vue.d.ts +0 -13
  59. package/dist/types/components/collapse/index.vue.d.ts +0 -13
  60. package/dist/types/components/collapseitem/index.vue.d.ts +0 -13
  61. package/dist/types/components/comment/components/CmtBottom.vue.d.ts +0 -13
  62. package/dist/types/components/comment/components/CmtHeader.vue.d.ts +0 -13
  63. package/dist/types/components/comment/components/CmtImages.vue.d.ts +0 -13
  64. package/dist/types/components/comment/index.vue.d.ts +0 -13
  65. package/dist/types/components/content/common.d.ts +0 -16
  66. package/dist/types/components/content/index.vue.d.ts +0 -13
  67. package/dist/types/components/countdown/index.vue.d.ts +0 -13
  68. package/dist/types/components/countdown/util.d.ts +0 -2
  69. package/dist/types/components/countup/index.vue.d.ts +0 -13
  70. package/dist/types/components/dateitem/index.vue.d.ts +0 -13
  71. package/dist/types/components/datepicker/common.d.ts +0 -55
  72. package/dist/types/components/datepicker/index.vue.d.ts +0 -13
  73. package/dist/types/components/dialog/index.d.ts +0 -44
  74. package/dist/types/components/dialog/index.vue.d.ts +0 -13
  75. package/dist/types/components/divider/index.vue.d.ts +0 -13
  76. package/dist/types/components/drag/index.vue.d.ts +0 -13
  77. package/dist/types/components/ecard/index.vue.d.ts +0 -13
  78. package/dist/types/components/elevator/index.vue.d.ts +0 -13
  79. package/dist/types/components/ellipsis/index.vue.d.ts +0 -13
  80. package/dist/types/components/ellipsis/type.d.ts +0 -1
  81. package/dist/types/components/empty/index.vue.d.ts +0 -13
  82. package/dist/types/components/fixednav/common.d.ts +0 -51
  83. package/dist/types/components/fixednav/index.vue.d.ts +0 -13
  84. package/dist/types/components/footer/common.d.ts +0 -22
  85. package/dist/types/components/footer/index.vue.d.ts +0 -13
  86. package/dist/types/components/footer/type.d.ts +0 -1
  87. package/dist/types/components/grid/common.d.ts +0 -87
  88. package/dist/types/components/grid/index.vue.d.ts +0 -13
  89. package/dist/types/components/griditem/index.vue.d.ts +0 -13
  90. package/dist/types/components/group/group-props.d.ts +0 -34
  91. package/dist/types/components/group/index.vue.d.ts +0 -13
  92. package/dist/types/components/header/common.d.ts +0 -87
  93. package/dist/types/components/header/index.vue.d.ts +0 -13
  94. package/dist/types/components/header/types.d.ts +0 -9
  95. package/dist/types/components/hinttext/index.d.ts +0 -8
  96. package/dist/types/components/hinttext/index.vue.d.ts +0 -13
  97. package/dist/types/components/icon/index.vue.d.ts +0 -13
  98. package/dist/types/components/image/index.vue.d.ts +0 -13
  99. package/dist/types/components/image/type.d.ts +0 -2
  100. package/dist/types/components/imagepreview/imagePreviewItem.vue.d.ts +0 -13
  101. package/dist/types/components/imagepreview/index.d.ts +0 -20
  102. package/dist/types/components/imagepreview/index.vue.d.ts +0 -13
  103. package/dist/types/components/indicator/index.vue.d.ts +0 -13
  104. package/dist/types/components/infiniteloading/index.vue.d.ts +0 -13
  105. package/dist/types/components/inputitem/index.vue.d.ts +0 -13
  106. package/dist/types/components/inputnumber/index.vue.d.ts +0 -13
  107. package/dist/types/components/item/common.d.ts +0 -121
  108. package/dist/types/components/item/index.vue.d.ts +0 -13
  109. package/dist/types/components/layout/index.vue.d.ts +0 -13
  110. package/dist/types/components/linkitem/common.d.ts +0 -132
  111. package/dist/types/components/linkitem/index.vue.d.ts +0 -13
  112. package/dist/types/components/list/index.vue.d.ts +0 -13
  113. package/dist/types/components/menu/index.vue.d.ts +0 -13
  114. package/dist/types/components/menuitem/index.vue.d.ts +0 -13
  115. package/dist/types/components/menuitem/type.d.ts +0 -4
  116. package/dist/types/components/moneyitem/index.vue.d.ts +0 -13
  117. package/dist/types/components/moneyitem/util.d.ts +0 -15
  118. package/dist/types/components/navbar/index.vue.d.ts +0 -13
  119. package/dist/types/components/noticebar/index.vue.d.ts +0 -13
  120. package/dist/types/components/notify/index.d.ts +0 -12
  121. package/dist/types/components/notify/index.vue.d.ts +0 -13
  122. package/dist/types/components/numberkeyboard/index.vue.d.ts +0 -13
  123. package/dist/types/components/overlay/common.d.ts +0 -30
  124. package/dist/types/components/overlay/index.vue.d.ts +0 -13
  125. package/dist/types/components/page/common.d.ts +0 -78
  126. package/dist/types/components/page/index.vue.d.ts +0 -13
  127. package/dist/types/components/pagination/index.vue.d.ts +0 -13
  128. package/dist/types/components/picker/column.vue.d.ts +0 -13
  129. package/dist/types/components/picker/common-column.d.ts +0 -26
  130. package/dist/types/components/picker/common.d.ts +0 -143
  131. package/dist/types/components/picker/index.vue.d.ts +0 -13
  132. package/dist/types/components/picker/model.d.ts +0 -55
  133. package/dist/types/components/pickeritem/index.vue.d.ts +0 -13
  134. package/dist/types/components/placeholder/index.vue.d.ts +0 -13
  135. package/dist/types/components/popover/index.vue.d.ts +0 -13
  136. package/dist/types/components/popover/type.d.ts +0 -2
  137. package/dist/types/components/popup/common.d.ts +0 -81
  138. package/dist/types/components/popup/index.vue.d.ts +0 -13
  139. package/dist/types/components/popup/use-lock-scroll.d.ts +0 -1
  140. package/dist/types/components/price/index.vue.d.ts +0 -13
  141. package/dist/types/components/price/price-props.d.ts +0 -37
  142. package/dist/types/components/progress/index.vue.d.ts +0 -13
  143. package/dist/types/components/radio/common.d.ts +0 -125
  144. package/dist/types/components/radio/index.vue.d.ts +0 -13
  145. package/dist/types/components/radioitem/common.d.ts +0 -99
  146. package/dist/types/components/radioitem/index.vue.d.ts +0 -13
  147. package/dist/types/components/radioitem/model.d.ts +0 -33
  148. package/dist/types/components/range/index.vue.d.ts +0 -13
  149. package/dist/types/components/rate/index.vue.d.ts +0 -13
  150. package/dist/types/components/row/index.vue.d.ts +0 -13
  151. package/dist/types/components/searchbar/index.vue.d.ts +0 -13
  152. package/dist/types/components/searchbar/type.d.ts +0 -5
  153. package/dist/types/components/shortpassword/index.vue.d.ts +0 -13
  154. package/dist/types/components/sidenavbar/index.vue.d.ts +0 -13
  155. package/dist/types/components/sidenavbaritem/index.vue.d.ts +0 -13
  156. package/dist/types/components/signature/index.vue.d.ts +0 -13
  157. package/dist/types/components/skeleton/common.d.ts +0 -57
  158. package/dist/types/components/skeleton/index.vue.d.ts +0 -13
  159. package/dist/types/components/sku/components/SkuHeader.vue.d.ts +0 -13
  160. package/dist/types/components/sku/components/SkuOperate.vue.d.ts +0 -13
  161. package/dist/types/components/sku/components/SkuSelect.vue.d.ts +0 -13
  162. package/dist/types/components/sku/components/SkuStepper.vue.d.ts +0 -13
  163. package/dist/types/components/sku/index.vue.d.ts +0 -13
  164. package/dist/types/components/step/index.vue.d.ts +0 -13
  165. package/dist/types/components/steps/index.vue.d.ts +0 -13
  166. package/dist/types/components/sticky/index.vue.d.ts +0 -13
  167. package/dist/types/components/subsidenavbar/index.vue.d.ts +0 -13
  168. package/dist/types/components/swipe/index.vue.d.ts +0 -13
  169. package/dist/types/components/swipe/type.d.ts +0 -1
  170. package/dist/types/components/swiper/index.vue.d.ts +0 -13
  171. package/dist/types/components/swiper/use-touch.d.ts +0 -16
  172. package/dist/types/components/swiperitem/index.vue.d.ts +0 -13
  173. package/dist/types/components/switch/common.d.ts +0 -50
  174. package/dist/types/components/switch/index.vue.d.ts +0 -13
  175. package/dist/types/components/switchitem/index.vue.d.ts +0 -13
  176. package/dist/types/components/tabbar/index.vue.d.ts +0 -13
  177. package/dist/types/components/tabbaritem/index.vue.d.ts +0 -13
  178. package/dist/types/components/table/common.d.ts +0 -55
  179. package/dist/types/components/table/index.vue.d.ts +0 -13
  180. package/dist/types/components/table/renderColumn.d.ts +0 -11
  181. package/dist/types/components/table/types.d.ts +0 -17
  182. package/dist/types/components/tabpane/index.vue.d.ts +0 -13
  183. package/dist/types/components/tabs/index.vue.d.ts +0 -13
  184. package/dist/types/components/tabs/type.d.ts +0 -1
  185. package/dist/types/components/tag/index.vue.d.ts +0 -13
  186. package/dist/types/components/tag/type.d.ts +0 -1
  187. package/dist/types/components/textarea/index.vue.d.ts +0 -13
  188. package/dist/types/components/textareaitem/index.vue.d.ts +0 -13
  189. package/dist/types/components/timedetail/index.vue.d.ts +0 -13
  190. package/dist/types/components/timepannel/index.vue.d.ts +0 -13
  191. package/dist/types/components/timeselect/index.vue.d.ts +0 -13
  192. package/dist/types/components/toast/index.d.ts +0 -12
  193. package/dist/types/components/toast/index.vue.d.ts +0 -13
  194. package/dist/types/components/uploader/index.vue.d.ts +0 -13
  195. package/dist/types/components/uploader/type.d.ts +0 -14
  196. package/dist/types/components/uploader/uploader.d.ts +0 -24
  197. package/dist/types/components/video/index.vue.d.ts +0 -13
  198. package/dist/types/components/watermark/index.vue.d.ts +0 -13
  199. package/dist/types/interface.d.ts +0 -27
  200. package/dist/types/main.d.ts +0 -18
  201. package/dist/types/utils/commons.d.ts +0 -16
  202. package/dist/types/utils/create/component.d.ts +0 -18
  203. package/dist/types/utils/create/index.d.ts +0 -1
  204. package/dist/types/utils/date.d.ts +0 -16
  205. package/dist/types/utils/domain/broadcast.d.ts +0 -28
  206. package/dist/types/utils/domain/domain.d.ts +0 -46
  207. package/dist/types/utils/domain/events.d.ts +0 -14
  208. package/dist/types/utils/domain/group.d.ts +0 -17
  209. package/dist/types/utils/domain/index.d.ts +0 -5
  210. package/dist/types/utils/domain/item.d.ts +0 -15
  211. package/dist/types/utils/domain/page.d.ts +0 -49
  212. package/dist/types/utils/domain/validator.d.ts +0 -56
  213. package/dist/types/utils/functions.d.ts +0 -3
  214. package/dist/types/utils/px.d.ts +0 -2
  215. package/dist/types/utils/types.d.ts +0 -9
  216. package/dist/types/utils/unique-id.d.ts +0 -5
  217. package/dist/types/utils/use-expose/index.d.ts +0 -2
  218. package/dist/types/utils/use-rect/index.d.ts +0 -11
  219. package/dist/types/utils/use-relation/index.d.ts +0 -3
  220. package/dist/types/utils/use-relation/useInject.d.ts +0 -14
  221. package/dist/types/utils/use-relation/useProvide.d.ts +0 -8
  222. package/dist/types/utils/use-relation/useRelation.d.ts +0 -1
  223. package/dist/types/utils/use-touch/index.d.ts +0 -18
package/dist/foxui.umd.js DELETED
@@ -1,21 +0,0 @@
1
- /*!
2
- * @fox-js/foxui v4.0.0 Thu Sep 08 2022 20:09:31 GMT+0800 (中国标准时间)
3
- (function(M,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/fox"),require("@fox-js/validator"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/fox","@fox-js/validator","@fox-js/i18n"],t):(M=typeof globalThis<"u"?globalThis:M||self,t(M.foxui={},M.Vue,M.fox,M.Schema,M.i18n))})(this,function(M,t,X,Wa,ee){"use strict"; */function Ya(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var mt=Ya(Wa);function pt(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,(e=e.substring(1)).length),n[0]=="-"&&(o++,l=2,(n=n.substring(1)).length),e=ue(e),n=ue(n),[e,n]=Pt(ue(e),ue(n)),o==1&&(l==1?e=Mt(e):n=Mt(n));let r=$n(e,n);return o?o==2?"-"+ue(r):e.length<r.length?ue(r.substring(1)):"-"+ue(Mt(r)):ue(r)}function Mt(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];return $n(n,r>0?"0."+new Array(r).join("0")+"1":"1")}function ue(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 Pt(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,s=l[0].length;return r>s?l[0]=new Array(Math.abs(r-s)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-s)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,s=l[1]?l[1].length:0,(r||s)&&(r>s?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-s)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-s)+1).join("0")),[e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:"")]}function $n(e,n){[e,n]=Pt(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let s=parseInt(e[r])+parseInt(n[r])+l;o=s%10+o,l=Math.floor(s/10)}return l?l.toString()+o:o}var ce,re=((ce=re||{})[ce.CEILING=0]="CEILING",ce[ce.DOWN=1]="DOWN",ce[ce.FLOOR=2]="FLOOR",ce[ce.HALF_DOWN=3]="HALF_DOWN",ce[ce.HALF_EVEN=4]="HALF_EVEN",ce[ce.HALF_UP=5]="HALF_UP",ce[ce.UNNECESSARY=6]="UNNECESSARY",ce[ce.UP=7]="UP",ce);function ve(e,n=0,o=re.HALF_EVEN){if(o===re.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("."),s=r[0],a=r[1];if(n<0){if(n=-n,s.length<=n)return"0";{let c=s.substr(0,s.length-n);return c=ve(e=c+"."+s.substr(s.length-n)+a,0,o),(l?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return s.length,Dn(r[1],s,l,o)?(l?"-":"")+Lt(s):(l?"-":"")+s;if(!r[1])return(l?"-":"")+s+"."+new Array(n+1).join("0");if(r[1].length<n)return(l?"-":"")+s+"."+r[1]+new Array(n-r[1].length+1).join("0");a=r[1].substring(0,n);let i=r[1].substring(n);return i&&Dn(i,a,l,o)&&(a=Lt(a),a.length>n)?(l?"-":"")+Lt(s,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+s+"."+a}function Dn(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===re.DOWN||!o&&l===re.FLOOR||o&&l===re.CEILING)return!1;if(l===re.UP||o&&l===re.FLOOR||!o&&l===re.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 re.HALF_DOWN:return!1;case re.HALF_UP:return!0;case re.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Lt(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o="";for(let l=e.length-1;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function Ot(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=Qe(e),n=Qe(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 s=l+r;if(e=Qe(e.replace(".","")),n=Qe(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let a=n.length,i=0,c=[],u=a-1,f="";for(let m=0;m<a;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let p=0;for(let y=n.length-1;y>=u&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(p+=parseInt(e[c[y]--])*parseInt(n[y]));p+=i,i=Math.floor(p/10),f=p%10+f,u--}return f=Qe(function(p,y){return y==0?p:(p=y>=p.length?new Array(y-p.length+1).join("0")+p:p).substr(0,p.length-y)+"."+p.substr(p.length-y,y)}(f,s)),o==1&&(f="-"+f),f}function Qe(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 Rt(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=ue(n.replace(".","")),r>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=ue(e+new Array(r+1).join("0"));else if(r>u)e=ue((e=e.replace(".",""))+new Array(r-u+1).join("0"));else if(r<u){let f=(e=e.replace(".","")).length-u+r;e=ue(e.substring(0,f)+"."+e.substring(f))}else r==u&&(e=ue(e.replace(".","")))}let s=0,a=n.length,i="",c=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),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),a>c.length&&(u+=a-c.length,c+=new Array(a-c.length+1).join("0")),s=u,i="0."+new Array(u).join("0")}for(o+=2;s<=o;){let u=0;for(;parseInt(c)>=parseInt(n);)c=pt(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",s++,e=e.substring(1)),c+=e.substring(0,1),e=e.substring(1)):(s||(i+="."),s++,c+="0")}return(l==1?"-":"")+ue(ve(i,o-2))}function Ft(e,n){return pt(e=e.toString(),n=Ut(n=n.toString()))}function Ut(e){return e=e[0]=="-"?e.substr(1):"-"+e}function In(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),zn(e),zn(n);let o="";return e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1)),o+Ft(e,Ot(n,ve(Rt(e,n),0,re.FLOOR)))}function zn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function qn(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]=Pt(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}class _{value;static RoundingModes=re;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=ue(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,n=o.length<l?r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?r+ue(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):r+"0."+new Array(1-l).join("0")+o}return n}constructor(n="0"){this.value=_.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(o||l){if(!o||!l)throw Error("Illegal Arguments. Should pass both digits and separator or pass none")}else o=3,l=",";let r=(n=_.validate(n)).charAt(0)=="-";r&&(n=n.substring(1));for(var s=n.indexOf("."),a="",i=s=s>0?s:n.length;i>0;)i<o?(o=i,i=0):i-=o,a=n.substring(i,i+o)+(i<s-o&&i>=0?l:"")+a;return(r?"-":"")+a+n.substring(s)}getPrettyValue(n,o){return _.getPrettyValue(this.value,n,o)}static round(n,o=0,l=re.HALF_EVEN){if(n=_.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return ve(n,o,l)}round(n=0,o=re.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new _(ve(this.value,n,o))}static floor(n){return(n=_.validate(n)).indexOf(".")===-1?n:_.round(n,0,re.FLOOR)}floor(){return this.value.indexOf(".")===-1?new _(this.value):new _(this.value).round(0,re.FLOOR)}static ceil(n){return(n=_.validate(n)).indexOf(".")===-1?n:_.round(n,0,re.CEILING)}ceil(){return this.value.indexOf(".")===-1?new _(this.value):new _(this.value).round(0,re.CEILING)}static add(n,o){return pt(n=_.validate(n),o=_.validate(o))}add(n){return new _(pt(this.value,n.getValue()))}static subtract(n,o){return Ft(n=_.validate(n),o=_.validate(o))}subtract(n){return new _(Ft(this.value,n.getValue()))}static multiply(n,o){return Ot(n=_.validate(n),o=_.validate(o))}multiply(n){return new _(Ot(this.value,n.getValue()))}static divide(n,o,l){return Rt(n=_.validate(n),o=_.validate(o),l)}divide(n,o){return new _(Rt(this.value,n.getValue(),o))}static modulus(n,o){return In(n=_.validate(n),o=_.validate(o))}modulus(n){return new _(In(this.value,n.getValue()))}static compareTo(n,o){return qn(n=_.validate(n),o=_.validate(o))}compareTo(n){return qn(this.value,n.getValue())}static negate(n){return Ut(n=_.validate(n))}negate(){return new _(Ut(this.value))}}function Mn(e,n){return _.multiply(`${e}`,`${n}`)}function Ht(e,n,o=8){return _.divide(`${e}`,`${n}`,o)}function Kt(e,n){return e=`${e}`,n=`${n}`,_.compareTo(e,n)}function Pn(e){return _.negate(e)}function xt(e,n=-1,o=!1,l=3,r=","){let s=`${e}`;if(s.length==0||s==="-")return"";let a=s.charAt(0);a=="-"?s=s.substring(1):a="";let i,c=s,u="",f=s.indexOf(".");if(f!=-1&&(c=s.substring(0,f),u=s.substring(f+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0"))),l>0){let m="",p=c.split("").reverse();for(let y=0;y<p.length;y++)m+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");i=u.length==0?`${a}${m.split("").reverse().join("")}`:`${a}${m.split("").reverse().join("")}.${u}`}else i=u.length==0?`${a}${c}`:`${a}${c}.${u}`;return i}function Ln(e){let n=`${e}`,o=n.charAt(0);return o=="-"?n=n.substring(1):o="",`${o}${n.replace(/[^\d\.-]/g,"")}`}const Re=typeof window<"u",qe=Re&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function On(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Rn(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Fn(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 Un(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 Hn(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 jt(e,n=!0,o=!0){n?e=Hn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Hn(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Kn(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(X.isEqual(e,o))return!0}):n.indexOf(e)}function Xa(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(X.isEqual(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function se(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pe(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function xn(e,...n){const o=[];n.forEach(r=>{for(const s in r)o.push(s)});const l={};for(const r in e)!o.includes(r)||(l[r]=e[r]);return l}const jn=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(s=>{r.hasOwnProperty(s)?(typeof r[s]=="function"&&(l[s]=r[s](n)),typeof r[s]=="string"&&(l[s]=n[r[s]])):n[s]&&(l[s]=n[s])}),l):e},Se=Symbol("BroadcastKey");class va{constructor(n,o,l){this.children=[],this.callbacks=new Map,this.instance=null,this.parent=n,this.instance=o,this.name=l,this.name||(this.name=`${this.instance.props?.name??this.instance.attrs?.name??""}`),n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.instance=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n>n.maxLevel)return[];n.level++}let r=!1;(!n.name||n.name==="*"||On(n.name)&&this.name&&n.name.test(this.name)||n.name===this.name)&&(r=!0);const s=[];if(r){const a=this.callbacks.get(o);if(typeof a=="function"){const c=Reflect.apply(a,this.instance?.proxy,[...l]);c!=null&&s.push(c)}const i=this.instance?.exposed??{};if(typeof i[o]=="function"){const c=Reflect.apply(i[o],this.instance?.proxy,[...l]);c!=null&&s.push(c)}}return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,s,[...i])}),s}on(n,o){this.callbacks.set(n,o)}}function Wn(e,n,o,l){const r=new va(n,e,o);if(l&&typeof l=="object")for(const s in l)r.on(s,l[s]);return r}function ht(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}class Qa{error(n,o,l){const r=o,s=ht(o);s?s.emit({name:"*"},"setErrorTip",n):typeof r.setErrorTip=="function"&&r.setErrorTip(n)}reset(n,o){const l=n,r=ht(n);r?r.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n,o){const l=n,r=ht(n);r?r.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,o,l,r){Array.isArray(n)||(n=[n]);const s=l,a=ht(l),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),c=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&c?a?a.emit({name:"*"},"setRequired",!0):typeof s.setRequired=="function"&&s.setRequired(!0):i&&!c&&(a?a.emit({name:"*"},"setRequired",!1):typeof s.setRequired=="function"&&s.setRequired(!1),this.reset(l,r))}getValue(n,o){return n.modelValue}}let Ga=new Qa,Za=["blur","clear"];function Ja(){return Za}let _a=["focus","change"];function er(){return _a}function Ge(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(s=>s.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function gt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const De=Symbol("ValidateSchemaKey");class tr{constructor(n,o,l){this.parent=null,this.children=[],this.validators={},this.attrRules=[],this.rules=[],this.scope=null,this.parent=n,this.descriptor=o,this.instance=l,n?.addChild(this),(this.descriptor.validate??!0)&&this.init()}init(){if(!this.descriptor.valueName)return;let n=this.instance.proxy;if(!n)return;let o=n.$attrs;!o||(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=gt(Ge(this.attrRules,this.rules)),r=[];for(let a in o){let i=o[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),r.push(u);continue}let c=this.getValidator(a);if(c!==null){let u={type:a,validator:c};r.push(u)}}this.attrRules=gt(r);const s=Ge(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(s,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent!==null&&this.parent.removeChild(this),this.parent=null}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=Ga;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){let l=this.instance.proxy;l!==null&&this.execHandler("decorate",n,o,l,this.instance)}success(){let n=this.instance.proxy;n!==null&&this.execHandler("success",n,this.instance)}error(n){let o=this.instance.proxy;o!==null&&this.execHandler("error",n,o,this.instance)}getValue(){let n=this.instance.proxy;return n===null?null:this.execHandler("getValue",n,this.instance)}setValidator(n,o,l=!1){l?mt.default.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?mt.default.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return mt.default.hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}clear(n=!0){let o=this.instance.proxy;o!==null&&(this.execHandler("reset",o,this.instance),n&&this.children.length>0&&this.children.forEach(l=>{l.clear(n)}))}setRule(n){const o=Ge(this.attrRules,this.rules);Array.isArray(n)?this.rules=gt(n):this.rules=gt([n]);const l=Ge(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}validate(n=!0){let o=[];if(this.descriptor.validate??!0){let r=Ge(this.attrRules,this.rules);if(r.length>0){const s={value:r};if(!this.instance.proxy)return Promise.resolve({pass:!0});const c={value:this.getValue()},u=new mt.default(s),f=this.instance?.proxy??c;let m=u.validate(c,{context:f}).then(p=>{if(p.pass)this.success();else{let y="error";Array.isArray(p.errors)&&p.errors.length>0&&(y=p.errors[0].message??y,p.errors=[p.errors[0]],p.errors[0].ref=f),this.error(y)}return p}).catch(p=>{const y=p.message??`${p}`;return this.error(y),p});o.push(m)}}return n&&this.children.length>0&&this.children.forEach(r=>{const s=r.validate(n);o.push(s)}),o.length==1?o[0]:Promise.all(o).then(r=>{let s=[];return r.forEach(a=>{a.pass===!1&&Array.isArray(a.errors)&&(s=[...s,...a.errors])}),s.length>0?{pass:!1,errors:s}:{pass:!0}})}}function Yn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(s,a){return s[r]}}}return new tr(n,o,e)}const Xn=Symbol("EventEmitterKey");class nr{constructor(n){this.register=new Map,this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(s=>s===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(s){console.error(s.message,s)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function or(e,n){let o=0;return function(...l){const r=Date.now();r-o>n&&(Reflect.apply(e,{},[...l]),o=r)}}function vn(e,n){let o,l=null;return function(...r){l=r,o||(o=setTimeout(()=>{o=null,Reflect.apply(e,{},[...l??[]])},n))}}const Me=Symbol("DomainKey");class Qn{constructor(n=null){this._parent=null,this._name=null,this._broadcast=null,this._validateSchema=null,this._props=t.reactive({}),this._name=n}get parent(){return this._parent}set parent(n){this._parent=n}get name(){return this._name}get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const lr=new Qn;function yt(){return lr}function Ie(e=null){e||(e=t.getCurrentInstance());const n=e?.proxy;return n?n[Me]??t.inject(Me,null):t.inject(Me,null)}function Gn(e,n,o=[],l){const r=t.getCurrentInstance();let s=t.inject(Me,null);s===null&&(s=yt());const a=e||n.name,i=new Qn(a);i.parent=s,t.isReactive(n)?t.watchEffect(()=>{i.merge(n,o)}):i.merge(n,o);const c=r?.proxy;c[Me]=i,t.provide(Me,i);let u=null,f=null;if(r!==null){const m=t.inject(Se,null);u=Wn(r,m,a,l),i.broadcast=u,c[Se]=u,t.provide(Se,u);const p=t.inject(De,null);f=Yn(r,p,{componentName:""}),i.validateSchema=f,c[De]=f,t.provide(De,f),c.fox_validate=(y=!0)=>f?.validate(y),c.fox_setValidateRule=y=>f?.setRule(y),c.fox_clearValidate=(y=!0)=>f?.clear(y)}return t.onUnmounted(()=>{i.destroy(),c[Me]=void 0,u!==null&&(u.destroy(),c[Se]=void 0),f!==null&&(f.destroy(),c[De]=void 0)}),i}function ke(e,n,o){const l=t.getCurrentInstance(),r=t.inject(Se,null),s=Wn(l,r,n,o),a=l?.proxy;a[Se]=s,t.provide(Se,s);const i=t.inject(De,null),c=Yn(l,i,e);a[De]=c,t.provide(De,c),a.fox_validate=(y=!0)=>c?.validate(y),a.fox_setValidateRule=y=>c?.setRule(y),a.fox_clearValidate=(y=!0)=>c?.clear(y);const u=new nr(a);a[Xn]=u;const f=vn((y="validate")=>{y==="reset"?c.clear(!1):c.validate(!1)},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ja()).forEach(y=>{u.on(y,k=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:er()).forEach(y=>{u.on(y,k=>{f("reset")})}),t.onUnmounted(()=>{s.destroy(),a[Se]=void 0,c.destroy(),a[De]=void 0,u.destroy(),a[Xn]=void 0}),{broadcast:s,validateSchema:c,emitEvent:(y,...k)=>{Reflect.apply(u.emit,u,[y,...k])},onEvent:(y,k)=>{Reflect.apply(u.on,u,[k])},offEvent:(y,k)=>{Reflect.apply(u.off,u,[k])}}}const ne=e=>e?`${fe(e)}px`:"";function fe(e,n=-1){if(typeof e=="number")return e<1?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)),s=1;if(Re){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),i=a.indexOf("px");i>0&&(s=Number(a.substring(0,i)))}return r*=s,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}const Pe="PageStateKey";function Ae(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Zn(e,n,o={},l=!0,r=-1,s=-1){e.headerHeight=fe(o.headerHeight??n.headerHeight),e.headerPadding=Ae(o.headerPadding??n.headerPadding),e.footerHeight=fe(o.footerHeight??n.footerHeight),e.footerPadding=Ae(o.footerPadding??n.footerPadding),e.contentPadding=Ae(o.contentPadding??n.contentPadding),l&&(e.height=fe(o.height??n.height,s),e.width=fe(o.width??n.width,r))}function ar(e,n={}){const o={top:null,left:null,bottom:null,right: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=fe(r.top),l.safeAreaBottom=fe(r.bottom),l.safeAreaLeft=fe(r.left),l.safeAreaRight=fe(r.right));const s=e.get("pageLayout");if(!s)return null;const a=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1;Zn(l,s,n,!0,a,i);const c=e.getForParent(Pe);c&&(l.height=vt(e,c),l.width=Qt(e,c),t.watch([()=>c.height,()=>c.width,()=>c.contentPadding,()=>c.headerMounted,()=>c.footerMounted],()=>{l.height=vt(e,c),l.width=Qt(e,c)})),t.watch(()=>e.get("pageLayout"),f=>{Zn(l,f,n,!!c)});const u=t.reactive(l);return e.set(Pe,u),u}function Wt(e){return e.get(Pe)}function Yt(e,n){return n=n??e.get(Pe),n&&n.headerMounted?n.headerHeight+n.safeAreaTop:0}function Xt(e,n){return n=n??e.get(Pe),n&&n.footerMounted?n.footerHeight+n.safeAreaBottom:0}function vt(e,n){if(n=n??e.get(Pe),n){const o=Yt(e,n),l=Xt(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Qt(e,n){return n=n??e.get(Pe),n?n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function rr(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Gt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function he(e,n,o=1,l){const r=Ie();return r==null?e:o===0?t.computed(()=>{const s=r.getAll(n);for(let i=s.length-1;i>=0;i--){const c=s[i];if(Gt(c,l))return c}const a=e.value;return Gt(a,l)?a:null}):t.computed(()=>{const s=e.value;return Gt(s,l)?s:r?.get(n)})}function Ee(e){return he(e,"readonly",0,function(o){return X.toBoolean(o)})}function be(e){return he(e,"disabled",0,function(o){return X.toBoolean(o)})}function Ne(e,n="modelValue",o){const l=t.toRef(e,n);let r=l.value;typeof o=="function"&&(r=o(l.value));const s=t.ref(r);return t.watch(l,a=>{if(typeof o=="function"){const i=o(a);i!==s.value&&(s.value=i)}else a!==s.value&&(s.value=a)}),s}const Jn=new Map,kt=new Map;let Zt=null;function sr(e){Zt=e}function _n(e,n,o){if(o){let l=kt.get(o);l||(l=new Map,kt.set(o,l)),l.set(e,n)}else Jn.set(e,n)}function Ze(e,n,o){!o&&Zt&&(o=Zt(e)??void 0);let l=null;if(o){let r=kt.get(o);r&&(l=r.get(n))}return l||(l=Jn.get(n)),l}function ir(e,n){for(let o in e){const l=e[o];_n(o,l,n)}}function cr(e){kt.delete(e)}function dr(e){return e===window}const Ce=e=>{const n=t.unref(e);if(dr(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}};function ur(){return{top:0,left:0,bottom:0,right:0}}function fr(){if(Re){const e=Ce(window);return{width:e.width,height:e.height,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class mr{get version(){return this._version}constructor(n,o){this.packages=n,this._version=o}install(n,o){this.packages.forEach(s=>{s.install?n.use(s):s.name&&n.component(s.name,s)});const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=yt();this.initPageLayout(o,r);for(const s in o)l.indexOf(s)===-1&&r.set(s,o[s])}initPageLayout(n,o){const l=X.extend({},ur(),n.safeAreaInset),r=X.extend({},fr(),n.pageLayout);o=o??yt(),o.set("safeAreaInset",l),o.set("headerBarHeight",n.headerBarHeight??0),o.set("footerBarHeight",n.footerBarHeight??0),o.set("pageLayout",r),o.set("rootWidth",r.width),o.set("rootHeight",r.height)}setScopeGetter(n){sr(n)}setAPI(n,o,l){_n(n,o,l)}getAPI(n,o,l){return Ze(n,o,l)}batchSetAPI(n,o){ir(n,o)}clearScopeAPI(n){cr(n)}getRootDomain(){return yt()}}function R(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}const ie={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,default:!0}},de={label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1,default:"failure"},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"issue"},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"issue"},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},conentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!1},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},eo={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1}},to={name:{type:String,required:!1},title:{type:String,default:""},layoutMode:{type:[String],required:!1,default:"grid"},span:{type:[Number,String],required:!1,default:1}},no=[];for(const e in to)no.push(e);function St(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const pr=(e,n)=>({props:{...ie,...eo,name:{type:String,required:!1,default:""},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}},setup(o,l){let r=Gn(o.name,o);if(r){const i=ar(r,o);St({getPageContentHeight:()=>vt(r,i),getPageContentWidth:()=>Qt(r,i),getPageHeaderHeight:()=>Yt(r,i),getPageFooterHeight:()=>Xt(r,i)});const c=t.getCurrentInstance();t.onMounted(()=>{i&&rr(r,c.proxy)&&(i.contentHeight="100%")})}const s=t.computed(()=>({[e]:!0})),a=t.computed(()=>({}));return{classes:s,styles:a}}});function hr(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var x=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o};const{componentName:gr,create:yr,scope:x0}=R("page"),kr=yr(pr(gr));var oo=x(kr,[["render",hr]]);const Sr=(e,n)=>({props:{padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},defaultIndex:{type:[Number,String],default:0},tabs:{type:Array,default:()=>[]},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text","change"],setup(o,l){const r=Ie(),s=r?Wt(r):null;s&&(s.headerMounted=!0);const a=t.computed(()=>({[e]:!0})),i=t.computed(()=>{const D={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const $=Ae(o.padding??s.footerPadding);return Object.assign(D,$),D.height=s.headerHeight,D.safeAreaTop=s.safeAreaTop,D.safeAreaTop&&(D.top=D.safeAreaTop+($.top??0),D.height=D.height+s.safeAreaTop),console.debug("[header] height",D.height),console.debug("[header] safeBottom",D.safeAreaTop),D}if(o.padding){const $=Ae(o.padding);Object.assign(D,$)}return D});t.onUnmounted(()=>{s&&(s.headerMounted=!1)});const c=t.computed(()=>{const D={};return i.value.height&&(D.height=`${i.value.height}px`),i.value.top&&(D.paddingTop=`${i.value.top}px`),i.value.left&&(D.paddingLeft=`${i.value.left}px`),i.value.right&&(D.paddingRight=`${i.value.right}px`),i.value.bottom&&(D.paddingBottom=`${i.value.bottom}px`),D}),u=t.computed(()=>{const D={};return i.value.safeAreaTop&&(D.top=`${i.value.safeAreaTop}px`),D}),f=t.computed(()=>{const D={};return i.value.safeAreaTop&&(D.top=`${i.value.safeAreaTop}px`),D}),m=t.computed(()=>{const D={};return i.value.height&&(D.height=`${i.value.height-(i.value.safeAreaTop??0)}px`),D});let p=t.computed(()=>o.leftShow?o.leftIcon||o.leftText||l.slots.left:!1),y=t.computed(()=>o.tabs&&o.tabs.length>0),k=t.computed(()=>o.titleShow?y.value||o.title||o.titleIcon||l.slots.default:!1),h=t.computed(()=>o.rightShow?o.rightIcon||o.rightText||l.slots.right:!1),g=t.computed(()=>{let D={};return typeof o.leftIcon=="object"?Object.assign(D,o.leftIcon):D.name=o.leftIcon,D}),d=t.computed(()=>{let D={};return typeof o.titleIcon=="object"?Object.assign(D,o.titleIcon):D.name=o.titleIcon,D}),S=t.computed(()=>{let D={};return typeof o.rightIcon=="object"?Object.assign(D,o.rightIcon):D.name=o.rightIcon,D});function w(){l.emit("back")}function N(){l.emit("click-title")}function b(){l.emit("click-right")}function C(){l.emit("click-right-text")}const E=t.ref(o.defaultIndex);function F(D,$){E.value=D,l.emit("change",E.value,$)}return{classes:a,styles:c,activeIndex:E,leftStyles:u,rightStyles:f,tabStyles:m,mLeftShow:p,mTitleShow:k,mTabsShow:y,mRightShow:h,mLeftIcon:g,mTitleIcon:d,mRightIcon:S,handleLeft:w,handleCenter:N,handleRight:b,handleRightText:C,handleTabChange:F}}}),br={key:1,class:"fox-header__title"},Cr={key:0,class:"tab-title"},wr=["onClick"],Nr={key:0,class:"fox-tab-active__line"};function Br(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(a,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",br,[t.renderSlot(e.$slots,"default",{},()=>[e.mTabsShow?(t.openBlock(),t.createElementBlock("view",Cr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tabs,i=>(t.openBlock(),t.createElementBlock("view",{key:i.id,style:t.normalizeStyle(e.tabStyles),class:t.normalizeClass(["tab-title-box",{"fox-tab-active":e.activeIndex===i.id}]),onClick:c=>e.handleTabChange(i.id,i.name)},[t.createTextVNode(t.toDisplayString(i.name)+" ",1),e.activeIndex===i.id?(t.openBlock(),t.createElementBlock("view",Nr,[t.createVNode(a,{name:"joy-smile"})])):t.createCommentVNode("",!0)],14,wr))),128))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"text-title",onClick:n[1]||(n[1]=(...i)=>e.handleTitle&&e.handleTitle(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)],64))])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[2]||(n[2]=(...i)=>e.handleRightText&&e.handleRightText(...i))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.rightIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],6)}const{componentName:Vr,create:Ar,scope:j0}=R("header"),Er=Ar(Sr(Vr));var lo=x(Er,[["render",Br]]);function Tr(e,n){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=Ie(),s=r?Wt(r):null;s&&(s.footerMounted=!0);const a=t.computed(()=>{const u=e;let f=e;return o.align==="left"?f=`${f}__left`:o.align==="right"?f=`${f}__right`:f=`${f}__center`,{[u]:!0,[f]:!0}}),i=t.computed(()=>{const u={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const f=Ae(o.padding??s.footerPadding);return Object.assign(u,f),u.safeAreaBottom=s.safeAreaBottom,u.safeAreaBottom&&(u.height=s.footerHeight+s.safeAreaBottom,u.bottom=u.safeAreaBottom+(f.bottom??0)),console.debug("[footer] height",u.height),console.debug("[footer] safeAreaBottom",u.safeAreaBottom),u}if(o.padding){const f=Ae(o.padding);Object.assign(u,f)}return u});t.onUnmounted(()=>{s&&(s.footerMounted=!1)});const c=t.computed(()=>{const u={};return i.value&&(u.height=`${i.value.height}px`),i.value&&(u.paddingTop=`${i.value.top}px`),i.value&&(u.paddingLeft=`${i.value.left}px`),i.value&&(u.paddingRight=`${i.value.right}px`),i.value&&(u.paddingBottom=`${i.value.bottom}px`),u});return{classes:a,styles:c}}}}function $r(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const{componentName:Dr,create:Ir,scope:W0}=R("footer"),zr=Ir(Tr(Dr));var ao=x(zr,[["render",$r]]);function qr(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ie(),r=t.computed(()=>({[e]:!0})),s=t.computed(()=>{const a={};if(l){const i=Wt(l);if(i){if(o.padding){const m=Ae(o.padding);Object.assign(i.contentPadding,m)}const c=Yt(l,i),u=Xt(l,i);let f="";if(i.contentHeight?f=`${i.contentHeight}`:f=`${i.height}px`,console.debug("[content]page height:",f),console.debug("[content]header height:",c),console.debug("[content]footer height:",u),console.debug("[content]padding:",i.contentPadding),a.height=f,i.contentPadding.top||c>0){const m=(i&&i.contentPadding&&i.contentPadding.top)??0;a.paddingTop=`${c+m}px`}if(i.contentPadding.bottom||u>0){const m=(i&&i.contentPadding&&i.contentPadding.bottom)??0;a.paddingBottom=`${u+m}px`}return i.contentPadding.left&&(a.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right&&(a.paddingRight=`${i.contentPadding.right}px`),a}}if(o.padding){const i=Ae(o.padding);i.left&&(a.paddingLeft=`${i.left}px`),i.top&&(a.paddingTop=`${i.top}px`),i.right&&(a.paddingRight=`${i.right}px`),i.bottom&&(a.paddingBottom=`${i.bottom}px`)}return a});return{classes:r,styles:s}}}}function Mr(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const{componentName:Pr,create:Lr,scope:Y0}=R("content"),Or=Lr(qr(Pr));var ro=x(Or,[["render",Mr]]);const bt="GroupStateKey",so=Symbol.for("GroupScopeKey");function Ct(){return t.inject(so,!1)}function io(e=!0){t.provide(so,e)}function Rr(e){const n=e.get("width",-1),o=t.shallowRef({width:n,column:-1,gutter:-1,itemWidth:-1}),l=t.markRaw({layout:o,passport:0});return e.set(bt,l),l}function co(e,n,o=-1,l=-1,r=!1){if(n<=0)return;const s=e.get(bt);if(!s)return;const a=e.get("groupLayout")??{};o==-1&&(o=a.column??1),l===-1&&(l=a.gutter??0);const i=a.minItemWidth??-1,c=()=>{const u=fe(n);let f=X.toNumber(o);const m=fe(l);let p=(u-(f-1)*m)/f;for(;i!==-1&&f>1&&p<i;)f--,p=(u-(f-1)*m)/f;let y=!1;const k=s.layout;k.value.width=n,k.value.column!==f&&(k.value.column=f,y=!0),k.value.gutter!==m&&(k.value.gutter=m,y=!0),k.value.itemWidth!==p&&(k.value.itemWidth=p,y=!0),y&&t.triggerRef(k)};if(r)c();else{const u=++s.passport;setTimeout(()=>{u===s.passport&&c()},50)}}function Fr(e,n=!1){let o;return n?o=e.getForParent(bt):o=e.get(bt),o.layout}function Je(e,n=1,o=!1){const l=Fr(e,o);if(l.value.itemWidth<=0)return-1;let r=X.toNumber(n);return r>l.value.column&&(r=l.value.column),l.value.itemWidth*r+(r-1)*l.value.gutter}const{componentName:Ur,create:Hr}=R("placeholder"),Jt=Hr({props:{span:{type:[Number,String],required:!1,default:1}},setup(e,n){const o=Ur,l=t.computed(()=>({[o]:!0}));let r=Ie();const s=t.computed(()=>r?Je(r,e.span):-1),a=t.computed(()=>s.value!==-1?{width:`${s.value}px`}:{});return()=>{let i={class:l.value,style:a.value};return t.h("view",i)}}}),{componentName:Kr,create:xr}=R("group");function jr(e){let n=X.toNumber(e)-1,o=[];for(let l=0;l<n;l++){let r=t.h(Jt,{span:1});o.push(r)}return o}const uo=xr({props:{...ie,...eo,...to},setup(e,n){const o=Gn(e.name,e,no);Rr(o);const l=Ct();io(!0);const r=Kr,s=t.computed(()=>({[r]:!0})),a=t.computed(()=>l&&o?Je(o,e.span,!0):-1),i=t.computed(()=>a.value!==-1?{width:`${a.value}px`}:{}),c=t.computed(()=>({[`${r}__wrap`]:!0,[`${r}__wrap__${e.layoutMode}`]:!0}));let u=t.toRef(e,"title");const f=t.toRef(e,"gutter"),m=t.toRef(e,"column"),p=t.ref();let y=!0;if(l&&o)t.watch([a,m,f],([k,h,g])=>{co(o,k,h,g,y),y=!1});else{const k=t.ref(-1);t.watch([k,m,f],([g,d,S])=>{co(o,g,d,S,y),y=!1});let h=null;t.onMounted(()=>{let g=p.value;Re&&g&&(k.value=Ce(g).width,window.ResizeObserver&&(h=new window.ResizeObserver(()=>{k.value=Ce(g).width}),h.observe(g)))}),t.onUnmounted(()=>{h?.disconnect()})}return()=>{let k=[];if(n.slots.title){let w={class:{"fox-group__title":!0}},N=n.slots.title(),b=t.h("view",w,{default:()=>N});k.push(b)}else if(u.value){let w={class:{"fox-group__title":!0}},N=t.h("view",w,u.value);k.push(N)}let h=[];n.slots.default&&(h=n.slots.default());let g={class:c.value};if(h.length>0){let w=jr(m.value);h=[...h,...w]}let d=t.h("view",g,{default:()=>h});k.push(d);let S={ref:p,class:s.value,style:i.value};return t.h("view",S,{default:()=>k})}}}),fo={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,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Wr,create:Yr}=R("price"),Xr=Yr({props:{...fo},setup(e){const n=t.computed(()=>({[Wr]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>se(e.price)==0?"":xt(e.price,e.decimalLength,!0,e.digits,e.separator)),r=t.computed(()=>{let a=l.value;if(a.length==0)return"";let i=a.indexOf(".");return a.substring(0,i)}),s=t.computed(()=>{let a=l.value;if(a.length==0)return"";let i=a.indexOf(".");return a.substring(i+1)});return{classes:n,showSymbol:o,intText:r,decimalText:s}}}),vr=["innerHTML"],Qr=["innerHTML"];function Gr(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,vr)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Qr)):t.createCommentVNode("",!0)],2)}var wt=x(Xr,[["render",Gr]]);const{componentName:_t,create:Zr}=R("hint-text"),Jr=Zr({components:{[wt.name]:wt},props:{...fo,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.computed(()=>({[_t]:!0})),s=t.computed(()=>({left:ne(e.startPoint.x),top:ne(e.startPoint.y-e.height-10-4),height:ne(e.height),width:ne(e.width)})),a=t.computed(()=>({[`${_t}__content`]:!0})),i=t.computed(()=>({})),c=t.computed(()=>({[`${_t}__arrow`]:!0})),u=t.computed(()=>({top:ne(e.height)}));return{classes:r,styles:s,textClasses:a,textStyles:i,arrowClasses:c,arrowStyles:u}}}),_r={key:1,class:"text"};function es(e,n,o,l,r,s){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(a,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",_r,t.toDisplayString(e.message),1))],6),t.createElementVNode("view",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.visible]])]),_:1})}var Nt=x(Jr,[["render",es]]);class mo{constructor(n){this.seed=new Date().getTime(),this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const en={},ts=new mo,Fe=new Map,tn=e=>{if(e){const n=document.getElementById(e);Fe.delete(e),n&&document.body.removeChild(n)}else{for(const n of Fe.keys()){const o=document.getElementById(n);o&&document.body.removeChild(o)}Fe.clear()}},ns=e=>{const n=document.getElementById(e.id);if(n){const o=Fe.get(e.id);o?e={...en,...o,...e}:e={...en,...e};const l=t.createVNode(Nt,e);return t.render(l,n),e.id}},os=e=>{e.unmount=tn;let n;if(e.id){if(n=e.id,Fe.has(n))return ns(e)}else n=`hinttext_${ts.get()}`;e={...en,...e},e.id=n,Fe.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Nt,e);return t.render(l,o),document.body.appendChild(o),n},ls=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Bt={show(e,n,o={},l=!0){l&&tn(),ls(n);const r=Ce(e),s={x:r.left,y:r.top},a=r.width;return os({...o,message:n,startPoint:s,width:a})},hide(e){tn(e)},install(e){e.config.globalProperties.$hintText=Bt}},{componentName:po,create:as}=R("item"),rs=as({inheritAttrs:!0,props:{...ie,...de},setup(e,n){ke({componentName:po,validate:!1},e.name);const o=Ie(),l=Ct();io(!1);const r=po,s=t.computed(()=>({[r]:!0,[`${r}__input--border`]:e.hasBorder})),a=t.computed(()=>l&&o?Je(o,e.span):-1),i=t.computed(()=>a.value>0?{width:`${a.value}px`}:{}),c=t.ref(null),u=t.computed({get:()=>c.value??X.toBoolean(e.isRequired),set:B=>{c.value=B}}),f=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),m=he(t.toRef(e,"labelPosition"),"labelPosition",Le.Near),p=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),y=t.computed(()=>({[`${r}__main`]:!0,[`${r}__main--${p.value}`]:!0})),k=t.computed(()=>({label:!0,[`label-${p.value}`]:!0})),h=he(t.toRef(e,"labelWidth"),"labelWidth",Le.Near),g=t.computed(()=>h&&h.value?{width:`${ne(h.value)}`}:{}),d=t.computed(()=>({["label--string"]:!0,["label--required"]:u.value})),S=t.computed(()=>({content:!0,[e.contentClass]:!0})),w=t.computed(()=>({...e.contentStyle})),N=t.reactive({errorTip:"",errorIcon:"",warnTip:"",warnIcon:"",infoTip:"",infoIcon:""});n.expose({setRequired(B){u.value=B},setErrorTip(B){N.errorTip=B},setErrorIcon(B){N.errorIcon=B},setWarnTip(B){N.warnTip=B},setWarnIcon(B){N.warnIcon=B},setInfoTip(B){N.infoTip=B},setInfoIcon(B){N.infoIcon=B}});const b=t.computed(()=>e.infoTip||N.infoTip),C=t.computed(()=>e.infoIcon||N.infoIcon),E=t.computed(()=>e.warnTip||N.warnTip),F=t.computed(()=>e.warnIcon||N.warnIcon),D=t.computed(()=>e.errorTip||N.errorTip),$=t.computed(()=>e.errorIcon||N.errorIcon),q=t.computed(()=>D.value?"error":E.value?"warn":b.value?"info":""),O=t.computed(()=>q.value.length>0),K=t.computed(()=>q.value==="error"?D.value:q.value==="warn"?E.value:q.value==="info"?b.value:""),z=t.computed(()=>q.value==="error"?$.value:q.value==="warn"?F.value:q.value==="info"?C.value:""),A=t.computed(()=>{let B={[`${r}__tip`]:!0,[`${r}__tip--${q.value}`]:!0};return q.value==="error"&&e.errorClass?B[`${e.errorClass}`]=!0:q.value==="warn"&&e.warnClass?B[`${e.warnClass}`]=!0:q.value==="info"&&e.infoClass&&(B[`${e.infoClass}`]=!0),B}),V=t.computed(()=>{let B={};return m&&m.value==="top"?B["padding-left"]="0px":h&&h.value&&(B["padding-left"]=ne(h.value)),B}),T=t.ref();let U="";return t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([B,L,H,P])=>{!T.value||(B?U?Bt.show(T.value,L,{...P,id:U,type:H}):U=Bt.show(T.value,L,{...P,type:H}):Bt.hide(U))}),{classes:s,styles:i,mainClasses:y,hasLabel:f,labelClasses:k,labelStyles:g,labelStringClasses:d,contentClasses:S,contentStyles:w,contentRef:T,hasTip:O,mTip:K,mIcon:z,tipClasses:A,tipStyles:V}}}),ss={class:"text"};function is(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("view",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("view",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append")],6)],2),e.hasTip?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(a,{key:0,class:"icon",name:e.mIcon},null,8,["name"])):t.createCommentVNode("",!0),t.createElementVNode("view",ss,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"hide")],6)}var we=x(rs,[["render",is]]);const{componentName:ho,create:cs}=R("icon"),oe=cs({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:n,slots:o}){const l=s=>{n("click",s)},r=t.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const s=r.value;return t.h(s?"img":e.tag,{class:s?`${ho}__img`:`${e.fontClassName} ${ho} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:ne(e.size),width:ne(e.size),height:ne(e.size)},onClick:l,src:s?e.name:""},o.default?.())}}}),{componentName:go,create:ds,scope:us}=R("input-item"),yo={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}},ko=ds({props:{...ie,...de,...yo},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ke({componentName:go},e.name),{toLocaleRefs:l}=ee.useFoxI18n(us),r=l(e,["placeholder"]),s=t.ref(!1),a=be(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),c=Ne(e,"modelValue"),u=go,f=t.computed(()=>({[u]:!0,[`${u}__disabled`]:a.value})),m=he(t.computed(()=>e.textAlign),"textAlign"),p=t.computed(()=>s.value?{textAlign:"left"}:{textAlign:m.value??"right"}),y=$=>{let O=$.target.value;e.type==="digit"&&(O=jt(O,!0)),e.type==="number"&&(O=jt(O,!1)),e.maxLength&&O.length>Number(e.maxLength)&&(O=O.slice(0,Number(e.maxLength))),c.value=O,o("update:modelValue",O,$),o("change",O,$)};let k=Ne(e,"hintText"),h=t.ref(!1);const g=$=>{let O=$.target.value;s.value=!0,ge(k.value)||(h.value=!0),o("focus",O,$)},d=$=>{setTimeout(()=>{h.value&&(h.value=!1),s.value=!1},0);let O=$.target.value;e.maxLength&&O.length>Number(e.maxLength)&&(O=O.slice(0,Number(e.maxLength))),o("blur",O,$)},S=t.computed(()=>({[`${u}__append`]:!0})),w=t.computed(()=>se(e.unit)>0),N=t.computed(()=>!F.value),b=t.computed(()=>({hidden:!N.value})),C=$=>{c.value="",o("update:modelValue","",$),o("change","",$),o("clear","")},E=t.computed(()=>e.clearable&&!a.value&&!i.value),F=t.computed(()=>se(c.value)>0&&s.value),D=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const $={class:f.value,style:p.value,type:e.type,maxlength:e.maxLength,placeholder:r.placeholder.value,disabled:a.value,readonly:i.value,value:c.value,onInput:y,onFocus:g,onBlur:d},q=[],O=t.h("input",$);q.push(O);const K=[];if(E.value){const L={name:"close-little",size:"10px"},H=t.h(oe,L),P={class:D.value,onClick:C},I=t.h("view",P,{default:()=>[H]});K.push(I)}if(w.value){const L=t.h("view",{class:b.value},[e.unit]);K.push(L)}const z={class:S.value},A=t.h("view",z,{default:()=>K});q.push(A);const V={default:()=>q};if(n.slots.default){const L=n.slots.default();V.label=()=>L}if(n.slots.prepend){const L=n.slots.prepend();V.prepend=()=>L}if(n.slots.append){const L=n.slots.append();V.append=()=>L}const U={...xn(e,yo),hintText:k.value,hintVisible:h.value};return t.h(we,U,V)}}});function So(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let s=o.length-1;s>=l;s--)if(o.charAt(s)!="0"){r=s;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 bo(e,n,o=20){if(typeof n=="string"&&(n=X.toNumber(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Mn(`${e}`,`${n}`);return So(l)}else{let l=Ht(`${e}`,Pn(`${n}`),20);return So(l)}}function fs(e,n=-1,o=!1,l=3,r=","){return xt(e,n,o,l,r)}function Co(e,n,o,l,r=!0){if(e=="")return"";if(e=Ln(e),n=X.toNumber(n),n==1)return e;if(l)e=bo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(X.toNumber(o)+2,"0"):e=Ht(e,1,X.toNumber(o)));else{let s=-1*n;e=bo(e,s)}return e}function wo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=X.toBoolean(n.minInclude),r=Kt(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let s="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";o.message=s.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=X.toBoolean(n.maxInclude),r=Kt(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}const{componentName:No,create:ms,scope:ps}=R("money-item"),Bo=ms({props:{...ie,...de,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ke({componentName:No},e.name),l=t.ref(!1),r=be(t.computed(()=>e.disabled)),s=Ee(t.computed(()=>e.readonly)),a=Ne(e,"modelValue"),i=t.ref("");t.watchEffect(()=>{let z=Co(a.value,e.rates,e.precision,!1);i.value!==z&&(i.value=z)});const c=t.computed(()=>{let z="";return l.value&&(z=i.value),z}),{t:u}=ee.useFoxI18n(ps),f=t.computed(()=>{let z=e.placeholder??"";return!l.value&&!ge(i.value)?z=fs(i.value,e.decimalLength,e.autoPadding,e.digits,e.separator):z=u(["placeholder",z]),z}),m=No,p=t.computed(()=>({[m]:!0,[`${m}__disabled`]:r.value,[`${m}__placeholder`]:i.value.length>0})),y=he(t.computed(()=>e.textAlign),"textAlign"),k=t.computed(()=>l.value?{textAlign:"left"}:{textAlign:y.value??"right"}),h=t.ref(""),g=t.computed(()=>{let z=h.value;return ge(z)&&(z=e.errorTip??""),z}),d=t.ref(""),S=t.ref(!1),w=z=>{let V=z.target.value;if(ge(V)){i.value="",a.value="",o("update:modelValue","",z),o("change","",z),X.toBoolean(e.showTip)&&S.value&&(S.value=!1);return}if(V.length>=2){let T=V;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){t.triggerRef(i);return}}if(V!="-"){if(!Rn(V)){t.triggerRef(i);return}if(e.integerLength!=-1&&Fn(V)>Number(e.integerLength)){t.triggerRef(i);return}if(e.decimalLength&&e.decimalLength!=-1&&Un(V)>Number(e.decimalLength)){t.triggerRef(i);return}let T=wo(V,e);if(T.maxValid===!1){h.value=T.message,t.triggerRef(i);return}}else if(e.min!=null&&X.toNumber(e.min)>=0){t.triggerRef(i);return}d.value=V,X.toBoolean(e.showTip)&&(S.value=V.length>0),i.value=V,a.value=Co(V,e.rates,e.precision,!0),o("update:modelValue",a.value,z),o("change",a.value,z)},N=z=>{if(l.value=!0,X.toBoolean(e.showTip)){let A=i.value;ge(A)&&(A=e.hintText),ge(A)||(d.value=A,S.value=!0)}h.value="",o("focus",a.value,z)},b=z=>{if(setTimeout(()=>{l.value=!1,X.toBoolean(e.showTip)&&S.value===!0&&(S.value=!1)},0),!ge(i.value)){let A=wo(i.value,e);if(A.minValid===!1||A.maxValid){h.value=A.message;return}}o("update:modelValue",a.value,z),o("blur",a.value,z)},C=t.computed(()=>({[`${m}__append`]:!0})),E=t.computed(()=>se(e.unit)>0),F=t.computed(()=>!O.value),D=t.computed(()=>({hidden:!F.value})),$=z=>{a.value="",o("update:modelValue","",z),o("change","",z),o("clear","")},q=t.computed(()=>e.clearable&&!r.value&&!s.value),O=t.computed(()=>se(a.value)>0&&l.value),K=t.computed(()=>({action:!0,hidden:!O.value}));return()=>{let z={class:p.value,style:k.value,type:"digit",maxlength:e.maxLength,placeholder:f.value,disabled:r.value,readonly:s.value,value:c.value,onInput:w,onFocus:N,onBlur:b},A=[],V=t.h("input",z);A.push(V);let T=[];if(q.value){let I={name:"close-little",size:"10px"},j=t.h(oe,I),Y={class:K.value,onClick:$},W=t.h("view",Y,{default:()=>[j]});T.push(W)}if(E.value){let I=t.h("view",{class:D.value},[e.unit]);T.push(I)}let U={class:C.value},B=t.h("view",U,{default:()=>T});A.push(B);let L={default:()=>A};if(n.slots.default){let I=n.slots.default();L.label=()=>I}if(n.slots.prepend){let I=n.slots.prepend();L.prepend=()=>I}if(n.slots.append){let I=n.slots.append();L.append=()=>I}let H={...e,errorTip:g.value,hintText:d.value,hintVisible:S.value,hintType:"number"};return t.h(we,H,L)}}}),{componentName:hs,create:gs,scope:ys}=R("textarea"),nn={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}},ks=gs({props:{...nn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=ee.useFoxI18n(ys);const l=o(e,["placeholder"]),r=t.ref(null),s=t.computed(()=>{const p=hs;return{[p]:!0,[`${p}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const a=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let p=r.value;if(p){p.style.height="auto";let y=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:k,minHeight:h}=e.autosize;k!==void 0&&(y=Math.min(y,k)),h!==void 0&&(y=Math.max(y,h))}y&&(p.style.height=y+"px")}};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(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:s,styles:a,change:p=>{const y=p.target;c(y.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let k=p.target.value;c(k,p),n("blur",{value:k,event:p})}}}}),Ss=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],bs={key:0,class:"fox-textarea__limit"};function Cs(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...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,Ss),e.limitShow?(t.openBlock(),t.createElementBlock("view",bs,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}var on=x(ks,[["render",Cs]]);const{componentName:ws,create:Ns}=R("textarea-item"),Vo=Ns({props:{...ie,...de,...nn},emits:["update:modelValue","change","blur","focus"],setup(e,n){const{emitEvent:o}=ke({componentName:ws},e.name),l=be(t.computed(()=>e.disabled)),r=Ee(t.computed(()=>e.readonly)),s=Ne(e,"modelValue"),a=m=>{s.value=m,o("update:modelValue",m,{}),o("change",m,{})};let i=Ne(e,"hintText"),c=t.ref(!1);const u=m=>{ge(i.value)||(c.value=!0),o("focus",s.value,m)},f=m=>{setTimeout(()=>{c.value&&(c.value=!1)},0),o("blur",s.value,m)};return()=>{const p={...pe(e,nn),disabled:l.value,readonly:r.value,value:s.value,["onUpdate:modelValue"]:a,onFocus:u,onBlur:f},y=[],k=t.h(on,p);y.push(k);const h={default:()=>y};if(n.slots.default){const S=n.slots.default();h.label=()=>S}const g=pe(e,de,ie);return t.h(we,g,h)}}}),Ao={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!1},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},ze={...Ao,position:{type:String,default:"center"},transition:String,style:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},isWrapTeleport:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1}},Eo={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1}},ln={...ze,...Eo,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let _e=0;const To="fox-overflow-hidden",Bs=e=>[()=>{e()&&(!_e&&document.body.classList.add(To),_e++)},()=>{e()&&_e&&(_e--,!_e&&document.body.classList.remove(To))}],{componentName:Vs,create:As}=R("overlay"),Es=As({props:Ao,emits:["click","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[Vs]:!0,[e.overlayClass]:!0}));t.watch(()=>e.visible,c=>{c?l():r()});const l=()=>{e.lockScroll&&e.visible&&document.body.classList.add("fox-overflow-hidden")},r=()=>{document.body.classList.remove("fox-overflow-hidden")};t.onDeactivated(r),t.onBeforeUnmount(r),t.onMounted(l),t.onActivated(l);const s=t.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:o,style:s,touchmove:c=>{e.lockScroll&&c.preventDefault()},onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ts(e,n,o,l,r,s){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onTouchmove:n[0]||(n[0]=t.withModifiers((...a)=>e.touchmove&&e.touchmove(...a),["stop"])),onClick:n[1]||(n[1]=(...a)=>e.onClick&&e.onClick(...a)),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],38),[[t.vShow,e.visible]])]),_:3})}var Vt=x(Es,[["render",Ts]]);const{componentName:$s,create:Ds}=R("popup");let $o=2e3;const Is=Ds({components:{[Vt.name]:Vt,[oe.name]:oe},props:{...ze},emits:["click","click-close-icon","open","close","opend","closed","update:visible","click-overlay"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({zIndex:e.zIndex,showSlot:!0,transitionName:`popup-fade-${e.position}`,overLayCount:1,keepAlive:!1,closed:e.closeable}),[r,s]=Bs(()=>e.lockScroll),a=t.computed(()=>({[$s]:!0,round:e.round,[`popup-${e.position}`]:!0,[`popup-${e.position}--safebottom`]:e.position==="bottom"&&e.safeAreaInsetBottom,[e.popClass]:!0})),i=t.computed(()=>({zIndex:l.zIndex,animationDuration:e.duration?`${e.duration}s`:"initial",...e.style})),c=()=>{e.zIndex!=2e3&&($o=Number(e.zIndex)),n("update:visible",!0),r(),l.zIndex=++$o,e.destroyOnClose&&(l.showSlot=!0),n("open")},u=()=>{s(),n("update:visible",!1),e.destroyOnClose&&setTimeout(()=>{l.showSlot=!1,n("close")},+e.duration*1e3)},f=h=>{n("click",h)},m=h=>{n("click-close-icon",h),u()},p=h=>{e.closeOnClickOverlay&&(n("click-overlay",h),u())},y=h=>{n("opend",h)},k=h=>{n("closed",h)};return t.onMounted(()=>{e.transition?l.transitionName=e.transition:l.transitionName=`popup-slide-${e.position}`,e.visible&&c()}),t.onBeforeUnmount(()=>{e.visible&&u()}),t.onBeforeMount(()=>{e.visible&&s()}),t.onActivated(()=>{l.keepAlive&&(n("update:visible",!0),l.keepAlive=!1)}),t.onDeactivated(()=>{e.visible&&(u(),l.keepAlive=!0)}),t.watch(()=>e.visible,h=>{h?c():u()}),t.watch(()=>e.position,h=>{h==="center"?l.transitionName="popup-fade":l.transitionName=`popup-slide-${h}`}),t.watch(()=>e.closeable,h=>{l.closed=h}),{...t.toRefs(l),popStyle:i,classes:a,onClick:f,onClickCloseIcon:m,onClickOverlay:p,onOpened:y,onClosed:k,popupRef:o}}}),zs={key:1};function qs(e,n,o,l,r,s){const a=t.resolveComponent("fox-overlay"),i=t.resolveComponent("fox-icon");return e.isWrapTeleport?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:e.teleport},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c)),ref:"popupRef"},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(i,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to"])):(t.openBlock(),t.createElementBlock("view",zs,[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[3]||(n[3]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(i,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])]))}var me=x(Is,[["render",qs]]);const Do=10;function Ms(e,n){return e>n&&e>Do?"horizontal":n>e&&n>Do?"vertical":""}function et(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),a=t.ref(0),i=t.ref(0),c=t.ref(""),u=()=>c.value==="vertical",f=()=>c.value==="horizontal",m=()=>{r.value=0,s.value=0,a.value=0,i.value=0,c.value=""};return{move:k=>{const h=k.touches[0];r.value=h.clientX-e.value,s.value=h.clientY-n.value,o.value=h.clientX,l.value=h.clientY,a.value=Math.abs(r.value),i.value=Math.abs(s.value),c.value||(c.value=Ms(a.value,i.value))},start:k=>{m(),e.value=k.touches[0].clientX,n.value=k.touches[0].clientY},reset:m,startX:e,startY:n,moveX:o,moveY:l,deltaX:r,deltaY:s,offsetX:a,offsetY:i,direction:c,isVertical:u,isHorizontal:f}}let Io=0;function Ps(){return Io}function Ls(e){Io=e}function Be(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function Oe(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function Os(e,n,o,l){return typeof e.itemOptions=="function"?e.itemOptions(n,o,l):X.isObject(e.itemProps)?e.itemOptions:null}function zo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}class Rs{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(X.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function Fs(){const e=t.getCurrentInstance();return new Rs(e.proxy)}function qo(e,n,o){const l=Be(e,n),r=Be(e,o);if(l!==r)return!1;const s=Oe(e,n),a=Oe(e,o);return s===a}function Us(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],s=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const i=n[a];let u=o[a].findIndex(f=>{if(s==="text")return Be(e,f)===i;if(s==="value"){let m=Oe(e,f);return m==null&&(m=Be(e,f)),m===i}else if(s==="item")return qo(e,f,i)});if(u==-1)break;r.push(u)}else{let a=o[0];for(let i=0;i<n.length;i++){const c=n[i];let u=a.findIndex(f=>{if(s==="text")return Be(e,f)===c;if(s==="value"){let m=Oe(e,f);return m==null&&(m=Be(e,f)),m===c}else if(s==="item")return qo(e,f,c)});if(u==-1||(r.push(u),!Array.isArray(a[u].children)))break;a=a[u].children}}return r}function Mo(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[]},s=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const i=o[a];let c=n[a];c<0&&c>=i.length&&(c=0);const u=i[c],f=Be(e,u);if(r.texts.push(f),s==="text")r.values.push(f);else if(s==="value"){let m=Oe(e,u);m==null&&(m=f),r.values.push(m)}else r.values.push(u)}else{let a=o[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=a.length&&(c=0);const u=a[c],f=Be(e,u);if(r.texts.push(f),s==="text")r.values.push(f);else if(s==="value"){let m=Oe(e,u);m==null&&(m=f),r.values.push(m)}else{const m=Object.assign({},u);m.children=null,r.values.push(m)}if(!Array.isArray(u.children))break;a=u.children}}return r}function Po(e){return{text:e,value:e}}const Hs=15,Lo=300,Ks=200,{create:xs}=R("picker-column");function Oo(e,n,o){return Math.min(Math.max(e,n),o)}function js(e){e.stopPropagation()}function Ws(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&js(e)}const Ys=xs({props:{source:{type:Array,default:[]},column:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...Eo},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__content":!0})),l=t.computed(()=>({height:`${X.toNumber(e.visibleItemCount)*+e.itemHeight}px`})),r=t.ref(),s=t.reactive({offset:0,duration:0,moving:!1,startOffset:0,touchStartTime:0,momentumOffset:0,transitionEndTrigger:null});t.watch([()=>e.modelValue,()=>e.itemHeight],([b])=>{g(b)});const a=t.toRef(e,"source"),i=(b,C)=>{let E=Os(e,b,e.column,C);return E!=null&&E.disabled===!0},c=b=>Be(e,b),u=b=>Oe(e,b),f=et(),m=t.computed(()=>({transform:`translate3d(0, ${s.offset+y()}px, 0)`,transitionDuration:`${s.duration}ms`,transitionProperty:s.duration?"all":"none"})),p=b=>Oo(Math.round(-b/+e.itemHeight),0,e.source.length-1),y=()=>+e.itemHeight*(+e.visibleItemCount-1)/2,k=()=>{s.moving=!1,s.duration=0,s.transitionEndTrigger&&(s.transitionEndTrigger(),s.transitionEndTrigger=null)},h=b=>{b=Oo(b,0,a.value.length);for(let C=b;C<a.value.length;C++)if(!i(a.value[C],C))return C;for(let C=b-1;C>=0;C--)if(!i(a.value[C],C))return C},g=(b,C=!1)=>{b=h(b)??0;const E=-b*+e.itemHeight,F=()=>{C&&(n("update:modelValue",b),n("change",b))};s.moving&&E!==s.offset?s.transitionEndTrigger=F:F(),s.offset=E},d=(b,C)=>{const E=Math.abs(b/C);b=s.offset+E/.03*(b<0?-1:1);const F=p(b);g(F,!0)},S=b=>{e.readonly||(f.start(b),s.startOffset=s.offset,s.duration=0,s.touchStartTime=Date.now(),s.momentumOffset=s.startOffset,s.transitionEndTrigger=null)},w=b=>{if(e.readonly)return;s.moving=!0,f.move(b),f.isVertical()&&(s.moving=!0,Ws(b,!0)),s.startOffset+f.deltaY.value>e.itemHeight?s.offset=e.itemHeight:s.offset=s.startOffset+f.deltaY.value;const E=Date.now();E-s.touchStartTime>Lo&&(s.touchStartTime=E,s.momentumOffset=s.offset)},N=()=>{const b=p(s.offset);s.duration=Ks,g(b,!0);const C=s.offset-s.momentumOffset,E=Date.now()-s.touchStartTime;if(E<Lo&&Math.abs(C)>Hs){d(C,E);return}};return t.onMounted(()=>{+e.itemHeight<=0||g(e.modelValue??0)}),{classes:o,styles:l,source:a,itemDisabled:i,itemText:c,itemValue:u,...t.toRefs(s),wrapper:r,getItemText:Be,onTouchStart:S,onTouchMove:w,onTouchEnd:N,wrapperStyle:m,stopMomentum:k}}});function Xs(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style: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))},[t.createElementVNode("view",{ref:"wrapper",class:"fox-picker__wrapper",style:t.normalizeStyle(e.wrapperStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.itemDisabled(a,i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:i,class:"fox-picker__item fox-picker__item-ref"},t.toDisplayString(e.itemText(a,i)),1))],64))),256))],4)],38)}var Ro=x(Ys,[["render",Xs]]);const{create:vs,componentName:Qs,scope:Gs}=R("picker"),Zs=vs({components:{[Ro.name]:Ro,[me.name]:me},props:{...ln},emits:["close","change","confirm","update:visible","update:text","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=ee.useFoxI18n(Gs),r=o(e,["title","cancelText","clearText","confirmText"]),s=t.ref(),a=t.ref(Ps());t.watch(()=>e.visible,q=>{q&&a.value<=0&&setTimeout(()=>{if(s.value){const O=s.value.querySelector(".fox-picker__item-ref");O&&(a.value=O.getBoundingClientRect().height,Ls(a.value))}},50)});const i=t.computed(()=>({[Qs]:!0})),c=Fs(),u=t.ref("singleColumn");let f=t.ref([]);t.watchEffect(async()=>{if(e.source){let q=await c.load("picker",e.source,e.params);if(q.length>0){let O=q[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let K=q,z=[];K.forEach(A=>{let V=A.map(T=>Po(T));z.push(V)}),f.value=z}else f.value=q;u.value="multipleColumn"}else if(typeof O=="string"){let K=q,z=[],A=K.map(V=>Po(V));z.push(A),f.value=z,u.value="singleColumn"}else Array.isArray(O.children)?(u.value="cascade",f.value=[q]):(u.value="singleColumn",f.value=[q])}}});const m=t.ref([]),p=t.ref(e.modelValue),y=t.ref([]);t.watch([()=>e.modelValue,()=>f.value],([q,O])=>{let K=Us(e,q,O,u.value);if(!X.isEqual(K,y.value)){y.value=K;let z=Mo(e,K,O,u.value);z&&(m.value=z.texts,n("update:text",m.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,q=>{k.value=q});const h=q=>{let O=zo(e,q);return X.isObject(O)?O.getDefautIndex??0:0},g=q=>{if(e.readonly===!0)return!0;let O=zo(e,q);return X.isObject(O)?O.readonly??!1:!1},d=(q,O,K=!1)=>{let z=y.value;z[q]=O;for(let V=0;V<q;V++)z[V]==null&&(z[V]=h(V));if(u.value==="cascade")for(let V=q+1;V<w.value.length;V++){let T=h(V);V<z.length?z[V]=T:z.push(T)}else for(let V=z.length;V<w.value.length;V++){let T=h(V);z.push(T)}y.value=z;let A=Mo(e,z,f.value,u.value);if(A&&(m.value=A.texts,p.value=A.values),K)if(u.value==="singleColumn"){let V=A&&A.values.length>0?A.values[0]:"";n("change",V)}else n("change",A?.values)},S=q=>q<y.value.length?y.value[q]:h(q),w=t.computed(()=>{if(f.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return f.value;let q=[],O=0,K=f.value[0],z=0;for(;;){let A=K.map(T=>{let U=Object.assign({},T);return U.children=null,U});q.push(A),O>=y.value.length?z=0:z=y.value[O],(z<0||z>=K.length)&&(z=0);let V=K[z];if(!Array.isArray(V.children))break;K=V.children,O++}return q}),N=t.computed(()=>X.toNumber(+e.visibleItemCount-1)/2*a.value),b=t.computed(()=>X.toNumber(e.visibleItemCount)*a.value),C=t.computed(()=>({height:`${b.value+56}px`}));return{...r,cloumnsRef:s,classes:i,popupStyles:C,columns:w,dataType:u,show:k,itemHeight:a,top:N,height:b,isReadonly:g,getIndex:S,change:(q,O)=>{d(q,O,!0)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{let q=f.value.length-1;for(;q>=0&&!(y.value[q]===null||y.value[q]===void 0);q--);if(q>=0&&d(q,0,!1),u.value==="singleColumn"){let O=p.value.length>0?p.value[0]:"";e.readonly||(n("update:modelValue",O),n("update:text",m.value)),n("confirm",O)}else e.readonly||(n("update:modelValue",p.value),n("update:text",m.value)),n("confirm",p.value);n("update:visible",!1)},clear:()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Js={class:"fox-picker__bar"},_s={class:"fox-picker__column",ref:"cloumnsRef"};function ei(e,n,o,l,r,s){const a=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",Js,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",null,t.toDisplayString(e.title),1),t.createElementVNode("view",{class:"fox-picker__button",onClick:n[1]||(n[1]=c=>e.confirm())},t.toDisplayString(e.confirmText),1)]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",_s,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(a,{source:c,readonly:e.isReadonly(u),column:u,modelValue:e.getIndex(u),"onUpdate:modelValue":f=>e.change(u,f),"visible-item-count":e.visibleItemCount,"item-height":e.itemHeight,"item-options":e.itemOptions,textName:e.textName,valueName:e.valueName},null,8,["source","readonly","column","modelValue","onUpdate:modelValue","visible-item-count","item-height","item-options","textName","valueName"])]))),128))],512),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","isWrapTeleport"])],2)}var tt=x(Zs,[["render",ei]]);const{componentName:ti,create:ni,scope:oi}=R("picker-item"),Fo=ni({props:{...ie,...de,...ln,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}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ke({componentName:ti,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(oi),r=l(e,["placeholder"]),s=t.ref(!1),a=be(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),c=Ne(e,"modelValue"),u=t.ref([]),f=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),m="fox-input-item",p=t.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value})),y=he(t.computed(()=>e.textAlign),"textAlign"),k=t.computed(()=>({textAlign:y.value??"right"})),h=t.ref(!1),g=()=>{h.value=!0},d=A=>{h.value=A},S=A=>{c.value=A,o("update:modelValue",A,{}),o("change",A,{})},w=A=>{let T=A.target.value;s.value=!0,o("focus",T,A)},N=A=>{setTimeout(()=>{s.value=!1},0);let T=A.target.value;e.maxLength&&T.length>Number(e.maxLength)&&(T=T.slice(0,Number(e.maxLength))),o("blur",T,A)},b=t.computed(()=>({[`${m}__append`]:!0})),C=t.computed(()=>se(e.unit)>0),E=t.computed(()=>se(e.unit)>0&&!s.value),F=t.computed(()=>({hidden:!E.value})),D=A=>{c.value="",o("update:modelValue","",A),o("change","",A),o("clear","")},$=t.computed(()=>e.clearable&&!a.value&&!i.value),q=t.computed(()=>se(c.value)>0&&s.value),O=A=>{q.value?D(A):g()},K=t.computed(()=>q.value&&$.value?"close-little":"arrow-right"),z=t.computed(()=>({action:!0}));return()=>{const A={class:p.value,style:k.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:f.value,onClick:g,onFocus:w,onBlur:N},V=[],T=t.h("input",A);V.push(T);const U=[],B={name:K.value,size:"10px"},L=t.h(oe,B),H={class:z.value,onClick:O},P=t.h("view",H,{default:()=>[L]});if(U.push(P),C.value){const v=t.h("view",{class:F.value},[e.unit]);U.push(v)}const I={class:b.value},j=t.h("view",I,{default:()=>U});V.push(j);const Y={default:()=>V};if(n.slots.default){const v=n.slots.default();Y.label=()=>v}if(n.slots.prepend){const v=n.slots.prepend();Y.prepend=()=>v}if(n.slots.append){const v=n.slots.append();Y.append=()=>v}const W=pe(e,ln);W.disabled=!1,W.readonly=a.value||i.value,W.visible=h.value,W["onUpdate:visible"]=d,W.modelValue=c.value,W["onUpdate:modelValue"]=S,W.text=u.value,W["onUpdate:text"]=v=>{u.value=v};const Z=t.h(tt,W);Y.hide=()=>[Z];const J=pe(e,de,ie);return t.h(we,J,Y)}}});let li={...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object};const At=(e,n,o)=>e.map(l=>{const{value:r="value",text:s="text",children:a="children"}=o??{},{[r]:i,[s]:c,[a]:u,...f}=l,m={loading:!1,...f,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return m.children&&m.children.length&&(m.children=At(m.children,m,o)),m}),Uo=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Uo(l.children,n)},ai={topId:null,idKey:"id",pidKey:"pid",sortKey:""},ri=(e,n)=>{const o={...ai,...n||{}},{topId:l,idKey:r,pidKey:s,sortKey:a}=o;let i=[],c={};return e.forEach(u=>{u={...u};const{[r]:f,[s]:m}=u,p=c[m]=c[m]||[];!i.length&&m===l&&(i=p),p.push(u),u.children=c[f]||(c[f]=[])}),a&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((f,m)=>f[a]-m[a])}),c=null,i};class Ho{constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=At(n,null,this.config)}updateChildren(n,o){o?o.children=At(n,o,this.config):this.nodes=At(n,null,this.config)}getNodeByValue(n){let o;return Uo(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const r=l.find(s=>s.value===n[s.level]);if(!r)break;o.push(r),l=r.children}return o}isLeaf(n,o){const{leaf:l,children:r}=n,s=Array.isArray(r)&&Boolean(r.length);return l||!s&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:r}=n;return Array.isArray(r)&&Boolean(r.length)}}const{create:si,scope:ii}=R("cascaderpane"),ci=si({props:{visible:Boolean,modelValue:Array,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},components:{},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),a=t.ref(new Ho([],{})),i=t.ref([]),c=t.computed(()=>o.value.lazy&&Boolean(o.value.lazyLoad)),u=new Map;let f;const m=async()=>{u.clear(),i.value=[],l.value=0,r.value=!1,f=null;let{options:d}=e;o.value.convertConfig&&(d=ri(d,o.value.convertConfig)),a.value=new Ho(d,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),c.value&&!a.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:a.value.nodes,selectedNode:null}],p()},p=async()=>{const d=s.value;if(d===void 0||!a.value.nodes.length)return;if(d.length===0){l.value=0,i.value=[{nodes:a.value.nodes,selectedNode:null}];return}let S=d;if(c.value&&Array.isArray(d)&&d.length){S=[];let w=a.value.nodes.find(N=>N.value===d[0]);if(w){S=[w.value],r.value=!0;const N=await d.slice(1).reduce(async(b,C)=>{const E=await b;await y(E);const F=E?.children?.find(D=>D.value===C);return F&&S.push(C),Promise.resolve(F)},Promise.resolve(w));await y(N),r.value=!1}}S.length&&d===e.modelValue&&a.value.getPathNodesByValue(S).map((N,b)=>{l.value=b,g.handleNode(N,!0)})},y=async d=>{if(!d)return;if(!o.value.lazyLoad){d.leaf=!0;return}if(a.value.isLeaf(d,c.value)||a.value.hasChildren(d,c.value))return;d.loading=!0;const S=d.root?null:d;let w=u.get(d);w||(w=new Promise(b=>{o.value.lazyLoad?.(d,b)}),u.set(d,w));const N=await w;Array.isArray(N)&&N.length>0?a.value.updateChildren(N,S):d.leaf=!0,d.loading=!1,u.delete(d)},k=d=>{const S=d.map(w=>w.value);s.value=S,n("change",S,d),n("update:modelValue",S,d)},{t:h}=ee.useFoxI18n(ii),g={async handleNode(d,S){const{disabled:w,loading:N}=d;if(!(!S&&w||!i.value[l.value])){if(a.value.isLeaf(d,c.value)){if(d.leaf=!0,i.value[l.value].selectedNode=d,i.value=i.value.slice(0,d.level+1),!S){const b=i.value.map(C=>C.selectedNode);k(b),n("pathChange",b)}return}if(a.value.hasChildren(d,c.value)){const b=d.level+1;if(i.value[l.value].selectedNode=d,i.value=i.value.slice(0,b),i.value.push({nodes:d.children||[],selectedNode:null}),l.value=b,!S){const C=i.value.map(E=>E.selectedNode);n("pathChange",C)}return}f=d,!N&&(await y(d),f===d&&(i.value[l.value].selectedNode=d,g.handleNode(d,S)))}},handleTabClick(d){f=null,l.value=d.paneKey},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:h("select")},isSelected(d,S){return d.selectedNode&&d.selectedNode.value===S.value}};return t.watch([o,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==s.value&&(s.value=d,p())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(s.value)&&s.value.length>0&&p()}),{panes:i,initLoading:r,tabsCursor:l,...g}}}),di={role:"menu",class:"fox-cascader-pane"},ui=["aria-checked","aria-disabled","onClick"],fi={class:"fox-cascader-item__title"},mi=t.createElementVNode("view",{class:"fox-cascader-pane"},null,-1);function pi(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-tabpane"),c=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,f)=>(t.openBlock(),t.createBlock(i,{title:e.formatTabTitle(u),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",di,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,m=>(t.openBlock(),t.createElementBlock("view",{key:m.value,class:t.normalizeClass(["fox-cascader-item",{active:e.isSelected(u,m),disabled:m.disabled}]),"aria-checked":e.isSelected(u,m),"aria-disabled":m.disabled||void 0,role:"menuitemradio",onClick:p=>e.handleNode(m,!1)},[t.createElementVNode("view",fi,t.toDisplayString(m.text),1),m.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-cascader-item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(a,{key:1,class:"fox-cascader-item__icon-check",name:"checklist"}))],10,ui))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(i,{key:1,title:"Loading..."},{default:t.withCtx(()=>[mi]),_:1}))]),_:1},8,["modelValue","onClick"])}var Ko=x(ci,[["render",pi]]);const{create:hi}=R("cascader"),gi=hi({components:{[Ko.name]:Ko},props:{...li},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,i)=>{o.value=a,l.value=!1,n("change",a,i),n("update:modelValue",a)},s=a=>{n("pathChange",a)};return t.watch(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:s,innerValue:o,innerVisible:l}}}),yi=["innerHTML"];function ki(e,n,o,l,r,s){const a=t.resolveComponent("fox-cascaderpane"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,yi)):t.createCommentVNode("",!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"])]),_:1},8,["visible","closeable","close-icon","close-icon-position"])}var an=x(gi,[["render",ki]]);function nt(e,n){const o=e.textName??"text";return n[o]??""}function ot(e,n){const o=e.valueName??"value";return n[o]}function xo(e,n){const o=e.childrenName??"children";return n[o]}function Et(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],s=nt(e,r),a=ot(e,r);o.texts.push(s),o.values.push(a??"")}return o}function jo(e,n,o,l,r=[]){const s=o[l];for(let a=0;a<n.length;a++)if(nt(e,n[a])===s){const c=ot(e,n[a])??"",u={[e.textName]:s,[e.valueName]:c};r.push(u);const f=xo(e,n[a]);Array.isArray(f)&&jo(e,f,o,l+1,r);return}}function Wo(e,n,o,l,r=[]){const s=o[l];for(let a=0;a<n.length;a++)if(ot(e,n[a])===s){const c=nt(e,n[a])??"",u={[e.textName]:c,[e.valueName]:s};r.push(u);const f=xo(e,n[a]);Array.isArray(f)&&Wo(e,f,o,l+1,r);return}}function rn(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++){const r=nt(e,n[l]),s=nt(e,o[l]);if(r!==s)return!1;const a=ot(e,n[l]),i=ot(e,o[l]);if(a!==i)return!1}return!0}class Si{constructor(n){this.proxy=n}async load(n,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const r=Ze(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(X.isObject(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(n,o))}}function bi(){const e=t.getCurrentInstance();return new Si(e.proxy)}const{componentName:Ci,create:wi,scope:Ni}=R("cascader-item"),Yo=wi({props:{...ie,...de,modelValue:Array,title:String,placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:Boolean,lazyLoad:Function,valueName:{type:String,default:"value"},textName:{type:String,default:"text"},childrenName:{type:String,default:"children"},convertConfig:Object},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ke({componentName:Ci,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(Ni),r=l(e,["placeholder"]),s=t.ref(!1),a=be(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),c=bi(),u=t.ref([]);t.watchEffect(async()=>{e.source&&(u.value=await c.load(e.source,e.params))});const f=t.ref([]),m=t.computed(()=>Array.isArray(f.value)?f.value.join(" "):f.value),p=t.ref(),y=t.ref([]);t.watchEffect(async()=>{if(e.lazy===!0){y.value.length==0&&(f.value=e.modelValue,p.value=e.modelValue);return}if(e.valueType==="item"){let B=e.modelValue;if(!rn(e,B,y.value)){y.value=B;let L=Et(e,B);f.value=L.texts,p.value=L.values}}else if(e.valueType==="text"){let B=e.modelValue,L=[];if(jo(e,u.value,B,0,L),!rn(e,L,y.value)){y.value=L;let H=Et(e,L);B.value=H.texts,p.value=H.values}}else{let B=e.modelValue,L=[];if(Wo(e,u.value,B,0,L),!rn(e,L,y.value)){y.value=L;let H=Et(e,L);f.value=H.texts,B.value=H.values}}});const k="fox-input-item",h=t.computed(()=>({[k]:!0,[`${k}__disabled`]:a.value})),g=he(t.computed(()=>e.textAlign),"textAlign"),d=t.computed(()=>({textAlign:g.value??"right"})),S=t.ref(!1),w=()=>{a.value===!0||i.value===!0||(S.value=!0)},N=B=>{S.value=B},b=(B,L)=>{let H=L.map(I=>{if(I==null)return I;let j={...I};return Reflect.deleteProperty(j,"text"),j[e.textName]=I.text??"",Reflect.deleteProperty(j,"value"),j[e.valueName]=I.value??"",j});y.value=H;let P=Et(e,H);f.value=P.texts,p.value=P.values,e.valueType==="text"?(o("change",f.value,H),o("update:modelValue",f.value)):e.valueType==="item"?(o("change",H,H),o("update:modelValue",H)):(o("change",p.value,H),o("update:modelValue",p.value))},C=B=>{let L=B.map(H=>{if(H==null)return H;let P={...H};return Reflect.deleteProperty(P,"text"),P[e.textName]=H.text??"",Reflect.deleteProperty(P,"value"),P[e.valueName]=H.value??"",P});o("pathChange",L)},E=B=>{s.value=!0,o("focus",p.value,B)},F=B=>{setTimeout(()=>{s.value=!1},0),o("blur",p.value,B)},D=t.computed(()=>({[`${k}__append`]:!0})),$=t.computed(()=>se(e.unit)>0),q=t.computed(()=>se(e.unit)>0&&!s.value),O=t.computed(()=>({hidden:!q.value})),K=B=>{y.value=[],f.value=[],p.value=[],o("update:modelValue",[],B),o("change",[],B),o("clear",[])},z=t.computed(()=>e.clearable&&!a.value&&!i.value),A=t.computed(()=>p.value&&p.value.length>0&&s.value),V=B=>{A.value?K(B):w()},T=t.computed(()=>A.value&&z.value?"close-little":"arrow-right"),U=t.computed(()=>({action:!0}));return()=>{const B={class:h.value,style:d.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:m.value,onClick:w,onFocus:E,onBlur:F},L=[],H=t.h("input",B);L.push(H);const P=[],I={name:T.value,size:"10px"},j=t.h(oe,I),Y={class:U.value,onClick:V},W=t.h("view",Y,{default:()=>[j]});if(P.push(W),$.value){const ae=t.h("view",{class:O.value},[e.unit]);P.push(ae)}const Z={class:D.value},J=t.h("view",Z,{default:()=>P});L.push(J);const G={default:()=>L};if(n.slots.default){const ae=n.slots.default();G.label=()=>ae}if(n.slots.prepend){const ae=n.slots.prepend();G.prepend=()=>ae}if(n.slots.append){const ae=n.slots.append();G.append=()=>ae}let v={};v.visible=S.value,v["onUpdate:visible"]=N,v.modelValue=p.value,v.onChange=b,v.onPathChange=C,v.options=u.value,v.title=e.title,v.lazy=e.lazy,v.lazyLoad=e.lazyLoad,v.valueKey=e.valueName,v.textKey=e.textName,v.childrenKey=e.childrenName,v.convertConfig=e.convertConfig;const le=t.h(an,v);G.hide=()=>[le];const te=pe(e,de,ie);return t.h(we,te,G)}}});var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){var o=1e3,l=6e4,r=36e5,s="millisecond",a="second",i="minute",c="hour",u="day",f="week",m="month",p="quarter",y="year",k="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|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,S={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("_")},w=function(K,z,A){var V=String(K);return!V||V.length>=z?K:""+Array(z+1-V.length).join(A)+K},N={s:w,z:function(K){var z=-K.utcOffset(),A=Math.abs(z),V=Math.floor(A/60),T=A%60;return(z<=0?"+":"-")+w(V,2,"0")+":"+w(T,2,"0")},m:function K(z,A){if(z.date()<A.date())return-K(A,z);var V=12*(A.year()-z.year())+(A.month()-z.month()),T=z.clone().add(V,m),U=A-T<0,B=z.clone().add(V+(U?-1:1),m);return+(-(V+(A-T)/(U?T-B:B-T))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:m,y,w:f,d:u,D:k,h:c,m:i,s:a,ms:s,Q:p}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},b="en",C={};C[b]=S;var E=function(K){return K instanceof q},F=function K(z,A,V){var T;if(!z)return b;if(typeof z=="string"){var U=z.toLowerCase();C[U]&&(T=U),A&&(C[U]=A,T=U);var B=z.split("-");if(!T&&B.length>1)return K(B[0])}else{var L=z.name;C[L]=z,T=L}return!V&&T&&(b=T),T||!V&&b},D=function(K,z){if(E(K))return K.clone();var A=typeof z=="object"?z:{};return A.date=K,A.args=arguments,new q(A)},$=N;$.l=F,$.i=E,$.w=function(K,z){return D(K,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var q=function(){function K(A){this.$L=F(A.locale,null,!0),this.parse(A)}var z=K.prototype;return z.parse=function(A){this.$d=function(V){var T=V.date,U=V.utc;if(T===null)return new Date(NaN);if($.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var B=T.match(g);if(B){var L=B[2]-1||0,H=(B[7]||"0").substring(0,3);return U?new Date(Date.UTC(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)):new Date(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)}}return new Date(T)}(A),this.$x=A.x||{},this.init()},z.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},z.$utils=function(){return $},z.isValid=function(){return this.$d.toString()!==h},z.isSame=function(A,V){var T=D(A);return this.startOf(V)<=T&&T<=this.endOf(V)},z.isAfter=function(A,V){return D(A)<this.startOf(V)},z.isBefore=function(A,V){return this.endOf(V)<D(A)},z.$g=function(A,V,T){return $.u(A)?this[V]:this.set(T,A)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(A,V){var T=this,U=!!$.u(V)||V,B=$.p(A),L=function(J,G){var v=$.w(T.$u?Date.UTC(T.$y,G,J):new Date(T.$y,G,J),T);return U?v:v.endOf(u)},H=function(J,G){return $.w(T.toDate()[J].apply(T.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},P=this.$W,I=this.$M,j=this.$D,Y="set"+(this.$u?"UTC":"");switch(B){case y:return U?L(1,0):L(31,11);case m:return U?L(1,I):L(0,I+1);case f:var W=this.$locale().weekStart||0,Z=(P<W?P+7:P)-W;return L(U?j-Z:j+(6-Z),I);case u:case k:return H(Y+"Hours",0);case c:return H(Y+"Minutes",1);case i:return H(Y+"Seconds",2);case a:return H(Y+"Milliseconds",3);default:return this.clone()}},z.endOf=function(A){return this.startOf(A,!1)},z.$set=function(A,V){var T,U=$.p(A),B="set"+(this.$u?"UTC":""),L=(T={},T[u]=B+"Date",T[k]=B+"Date",T[m]=B+"Month",T[y]=B+"FullYear",T[c]=B+"Hours",T[i]=B+"Minutes",T[a]=B+"Seconds",T[s]=B+"Milliseconds",T)[U],H=U===u?this.$D+(V-this.$W):V;if(U===m||U===y){var P=this.clone().set(k,1);P.$d[L](H),P.init(),this.$d=P.set(k,Math.min(this.$D,P.daysInMonth())).$d}else L&&this.$d[L](H);return this.init(),this},z.set=function(A,V){return this.clone().$set(A,V)},z.get=function(A){return this[$.p(A)]()},z.add=function(A,V){var T,U=this;A=Number(A);var B=$.p(V),L=function(I){var j=D(U);return $.w(j.date(j.date()+Math.round(I*A)),U)};if(B===m)return this.set(m,this.$M+A);if(B===y)return this.set(y,this.$y+A);if(B===u)return L(1);if(B===f)return L(7);var H=(T={},T[i]=l,T[c]=r,T[a]=o,T)[B]||1,P=this.$d.getTime()+A*H;return $.w(P,this)},z.subtract=function(A,V){return this.add(-1*A,V)},z.format=function(A){var V=this,T=this.$locale();if(!this.isValid())return T.invalidDate||h;var U=A||"YYYY-MM-DDTHH:mm:ssZ",B=$.z(this),L=this.$H,H=this.$m,P=this.$M,I=T.weekdays,j=T.months,Y=function(G,v,le,te){return G&&(G[v]||G(V,U))||le[v].slice(0,te)},W=function(G){return $.s(L%12||12,G,"0")},Z=T.meridiem||function(G,v,le){var te=G<12?"AM":"PM";return le?te.toLowerCase():te},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:$.s(P+1,2,"0"),MMM:Y(T.monthsShort,P,j,3),MMMM:Y(j,P),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:Y(T.weekdaysMin,this.$W,I,2),ddd:Y(T.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(L),HH:$.s(L,2,"0"),h:W(1),hh:W(2),a:Z(L,H,!0),A:Z(L,H,!1),m:String(H),mm:$.s(H,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:B};return U.replace(d,function(G,v){return v||J[G]||B.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(A,V,T){var U,B=$.p(V),L=D(A),H=(L.utcOffset()-this.utcOffset())*l,P=this-L,I=$.m(this,L);return I=(U={},U[y]=I/12,U[m]=I,U[p]=I/3,U[f]=(P-H)/6048e5,U[u]=(P-H)/864e5,U[c]=P/r,U[i]=P/l,U[a]=P/o,U)[B]||P,T?I:$.a(I)},z.daysInMonth=function(){return this.endOf(m).$D},z.$locale=function(){return C[this.$L]},z.locale=function(A,V){if(!A)return this.$L;var T=this.clone(),U=F(A,V,!0);return U&&(T.$L=U),T},z.clone=function(){return $.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},K}(),O=q.prototype;return D.prototype=O,[["$ms",s],["$s",a],["$m",i],["$H",c],["$W",u],["$M",m],["$y",y],["$D",k]].forEach(function(K){O[K[1]]=function(z){return this.$g(z,K[0],K[1])}}),D.extend=function(K,z){return K.$i||(K(z,q,D),K.$i=!0),D},D.locale=F,D.isDayjs=E,D.unix=function(K){return D(1e3*K)},D.en=C[b],D.Ls=C,D.p={},D})})(Xo);var Ve=Xo.exports,vo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},c=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var d=g.match(/([+-]|\d\d)/g),S=60*d[1]+(+d[2]||0);return S===0?0:d[0]==="+"?-S:S}(h)}],m=function(h){var g=i[h];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(h,g){var d,S=i.meridiem;if(S){for(var w=1;w<=24;w+=1)if(h.indexOf(S(w,0,g))>-1){d=w>12;break}}else d=h===(g?"pm":"PM");return d},y={A:[a,function(h){this.afternoon=p(h,!1)}],a:[a,function(h){this.afternoon=p(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[r,u("day")],Do:[a,function(h){var g=i.ordinal,d=h.match(/\d+/);if(this.day=d[0],g)for(var S=1;S<=31;S+=1)g(S).replace(/\[|\]/g,"")===h&&(this.day=S)}],M:[s,u("month")],MM:[r,u("month")],MMM:[a,function(h){var g=m("months"),d=(m("monthsShort")||g.map(function(S){return S.slice(0,3)})).indexOf(h)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[a,function(h){var g=m("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(h){this.year=c(h)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function k(h){var g,d;g=h,d=i&&i.formats;for(var S=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,$,q){var O=q&&q.toUpperCase();return $||d[q]||o[q]||d[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,z,A){return z||A.slice(1)})})).match(l),w=S.length,N=0;N<w;N+=1){var b=S[N],C=y[b],E=C&&C[0],F=C&&C[1];S[N]=F?{regex:E,parser:F}:b.replace(/^\[|\]$/g,"")}return function(D){for(var $={},q=0,O=0;q<w;q+=1){var K=S[q];if(typeof K=="string")O+=K.length;else{var z=K.regex,A=K.parser,V=D.slice(O),T=z.exec(V)[0];A.call($,T),D=D.replace(T,"")}}return function(U){var B=U.afternoon;if(B!==void 0){var L=U.hours;B?L<12&&(U.hours+=12):L===12&&(U.hours=0),delete U.afternoon}}($),$}}return function(h,g,d){d.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var S=g.prototype,w=S.parse;S.parse=function(N){var b=N.date,C=N.utc,E=N.args;this.$u=C;var F=E[1];if(typeof F=="string"){var D=E[2]===!0,$=E[3]===!0,q=D||$,O=E[2];$&&(O=E[2]),i=this.$locale(),!D&&O&&(i=d.Ls[O]),this.$d=function(V,T,U){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*V);var B=k(T)(V),L=B.year,H=B.month,P=B.day,I=B.hours,j=B.minutes,Y=B.seconds,W=B.milliseconds,Z=B.zone,J=new Date,G=P||(L||H?1:J.getDate()),v=L||J.getFullYear(),le=0;L&&!H||(le=H>0?H-1:J.getMonth());var te=I||0,ye=j||0,ae=Y||0,$e=W||0;return Z?new Date(Date.UTC(v,le,G,te,ye,ae,$e+60*Z.offset*1e3)):U?new Date(Date.UTC(v,le,G,te,ye,ae,$e)):new Date(v,le,G,te,ye,ae,$e)}catch{return new Date("")}}(b,F,C),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),q&&b!=this.format(F)&&(this.$d=new Date("")),i={}}else if(F instanceof Array)for(var K=F.length,z=1;z<=K;z+=1){E[1]=F[z-1];var A=d.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}z===K&&(this.$d=new Date(""))}else w.call(this,N)}}})})(vo);var Bi=vo.exports,Qo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){return function(o,l,r){var s=l.prototype,a=s.format;r.en.ordinal=function(i){var c=["th","st","nd","rd"],u=i%100;return"["+i+(c[(u-20)%10]||c[u]||c[0])+"]"},s.format=function(i){var c=this,u=this.$locale();if(!this.isValid())return a.bind(this)(i);var f=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return f.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return f.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return a.bind(this)(m)}}})})(Qo);var Vi=Qo.exports,Go={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){return function(o,l,r){var s=l.prototype,a=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,p,y,k,h){var g=m.name?m:m.$locale(),d=a(g[p]),S=a(g[y]),w=d||S.map(function(b){return b.slice(0,k)});if(!h)return w;var N=g.weekStart;return w.map(function(b,C){return w[(C+(N||0))%7]})},c=function(){return r.Ls[r.locale()]},u=function(m,p){return m.formats[p]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,h,g){return h||g.slice(1)})}(m.formats[p.toUpperCase()])},f=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):i(m,"months")},monthsShort:function(p){return p?p.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):i(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(m.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return f.bind(this)()},r.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.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 u(m,p)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return i(c(),"months")},r.monthsShort=function(){return i(c(),"monthsShort","months",3)},r.weekdays=function(m){return i(c(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(Go);var Ai=Go.exports,Zo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){var o="week",l="year";return function(r,s,a){var i=s.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=a(this).startOf(l).add(1,l).date(u),m=a(this).endOf(o);if(f.isBefore(m))return 1}var p=a(this).startOf(l).date(u).startOf(o).subtract(1,"millisecond"),y=this.diff(p,o,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Zo);var Ei=Zo.exports,Jo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),s=this.week(),a=this.year();return s===1&&r===11?a+1:r===0&&s>=52?a-1:a}}})})(Jo);var Ti=Jo.exports,_o={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){return function(o,l,r){l.prototype.dayOfYear=function(s){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return s==null?a:this.add(s-a,"day")}}})})(_o);var $i=_o.exports,el={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}})})(el);var Di=el.exports,tl={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Te,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}})})(tl);var Ii=tl.exports;Ve.extend(Ai),Ve.extend(Vi),Ve.extend(Bi),Ve.extend(Ei),Ve.extend(Ti),Ve.extend($i),Ve.extend(Di),Ve.extend(Ii);const Q={format(e,n){return Ve(e).format(n)},parser(e,n){return Ve(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").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){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(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(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e.getTime();let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),s=l.getTime(),a=n.getTime();return s>a?r>=a&&r<=s:r>=s&&r<=a},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),s=l.getTime(),a=n.getTime();return s>a?r>=a&&r<=s:r>=s&&r<=a}},nl=new Date().getFullYear(),sn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},Tt=(e,n,o)=>{let l;X.isDate(n)?l=n:se(n)>0?l=Q.parser(n,o):l=new Date;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},cn=(e,n,o)=>{X.isDate(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),Q.format(new Date(l),o)};let dn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(nl-10,0,1),validator:X.isDate},maxDate:{type:Date,default:()=>new Date(nl+10,11,31),validator:X.isDate},isWrapTeleport:{type:Boolean,default:!0}};const{create:zi,scope:qi}=R("date-picker"),Mi=zi({components:{[tt.name]:tt},props:{...dn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(qi),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},r=t.ref(!1);t.watch(()=>e.visible,g=>{r.value=g});function s(g,d){return new Date(g,d,0).getDate()}const a=(g,d)=>{const S=e[`${g}Date`],w=S.getFullYear();let N=1,b=1,C=0,E=0;g==="max"&&(N=12,b=s(d.getFullYear(),d.getMonth()+1),C=23,E=59);const F=E;return d.getFullYear()===w&&(N=S.getMonth()+1,d.getMonth()+1===N&&(b=S.getDate(),d.getDate()===b&&(C=S.getHours(),d.getHours()===C&&(E=S.getMinutes())))),{[`${g}Year`]:w,[`${g}Month`]:N,[`${g}Date`]:b,[`${g}Hour`]:C,[`${g}Minute`]:E,[`${g}Seconds`]:F}},i=t.computed(()=>{if(!p.value)return[];const{maxYear:g,maxDate:d,maxMonth:S,maxHour:w,maxMinute:N,maxSeconds:b}=a("max",p.value),{minYear:C,minDate:E,minMonth:F,minHour:D,minMinute:$,minSeconds:q}=a("min",p.value);let O=[{type:"year",range:[C,g]},{type:"month",range:[F,S]},{type:"day",range:[E,d]},{type:"hour",range:[D,w]},{type:"minute",range:[$,N]},{type:"seconds",range:[q,b]}];switch(e.type){case"date":O=O.slice(0,3);break;case"datetime":O=O.slice(0,5);break;case"time":O=O.slice(3,6);break;case"month-day":O=O.slice(1,3);break;case"datehour":O=O.slice(0,4);break}return O}),c=(g,d,S)=>{if(!(d>g))return null;const w=[];for(;g<=d;)e.isShowChinese?w.push({text:g+l[S],value:g}):w.push({text:`${g}`,value:g}),S==="minute"?g+=e.minuteStep:g++;return w},u=t.computed(()=>{let g=[];return i.value.forEach(d=>{let S=c(d.range[0],d.range[1],d.type);S&&g.push(S)}),g}),f=(g,d)=>g==="year"?d.getFullYear():g==="month"?d.getMonth()+1:g==="day"?d.getDate():g==="hour"?d.getHours():g==="minute"?d.getMinutes():g==="seconds"?d.getSeconds():0,m=t.ref(),p=t.ref();t.watchEffect(()=>{let g,d=e.modelValue;if(typeof d=="string"?d.length==0?g=new Date:e.valueFormat?g=Tt(e,e.modelValue,e.valueFormat):g=Tt(e,d,sn[e.type]):X.isDate(d)?g=d:g=new Date,!p.value||g.getTime()!==p.value.getTime()){p.value=g;let S=[];i.value.forEach(w=>{let N=f(w.type,g);S.push(N)}),m.value=S}});const y=g=>{if(e.type==="date"){let d=g;p.value=new Date(d[0],d[1]-1,Math.min(d[2],s(d[0],d[1])))}else if(e.type==="datetime"){let d=g;p.value=new Date(d[0],d[1]-1,Math.min(d[2],s(d[0],d[1])),d[3],d[4])}else if(e.type==="datehour"){let d=g;p.value=new Date(d[0],d[1]-1,Math.min(d[2],s(d[0],d[1])),d[3])}else if(e.type==="time"){let d=g,S=p.value??new Date,w=new Date(S.getFullYear(),S.getMonth(),S.getDate(),d[0],d[1],d[2]);p.value=w}else if(e.type==="month-day"){let d=g,S=p.value??new Date,w=new Date(S.getFullYear(),d[0]-1,d[1]);p.value=w}m.value=g};return{columns:u,dateIndexs:m,show:r,onClose:()=>{r.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:g=>{y(g),r.value=!1;let d=p.value??new Date;if(e.valueFormat){let S=cn(e,d,e.valueFormat);n("update:modelValue",S)}else n("update:modelValue",d);n("update:visible",!1),n("confirm",g)}}}});function Pi(e,n,o,l,r,s){const a=t.resolveComponent("fox-picker");return t.openBlock(),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,onConfirm:e.onConfirm,onClose:e.onClose,isWrapTeleport:e.isWrapTeleport},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","isWrapTeleport"])}var un=x(Mi,[["render",Pi]]);const{create:Li,componentName:Oi,scope:Ri}=R("date-item");function Fi(e){let n=e.format;if(!n){let o=e.type??"date";n=sn[o]}return n}const ol=Li({props:{...ie,...de,...dn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ke({componentName:Oi,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(Ri),r=l(e,["placeholder"]),s=t.ref(!1),a=be(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),u=Ne(e,"modelValue",V=>V==null?null:typeof V=="string"?V.length==0?null:e.valueFormat?Tt(e,V,e.valueFormat):Tt(e,V,sn[e.type]):X.isDate(V)?V:null),f=t.computed(()=>{if(!u.value)return"";const V=Fi(e);return cn(e,u.value,V)}),m="fox-input-item",p=t.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value})),y=he(t.computed(()=>e.textAlign),"textAlign"),k=t.computed(()=>({textAlign:y.value??"right"})),h=t.ref(!1),g=()=>{h.value=!0},d=()=>{h.value=!1};n.expose({showPicker:g,hidePicker:d});const S=V=>{h.value=V},w=V=>{if(u.value=V,e.valueFormat){let T=cn(e,V,e.valueFormat);o("update:modelValue",T,{}),o("change",T,{})}else o("update:modelValue",V,{}),o("change",V,{})},N=V=>{let U=V.target.value;s.value=!0,o("focus",U,V)},b=V=>{setTimeout(()=>{s.value=!1},0);let U=V.target.value;e.maxLength&&U.length>Number(e.maxLength)&&(U=U.slice(0,Number(e.maxLength))),o("blur",U,V)},C=t.computed(()=>({[`${m}__append`]:!0})),E=t.computed(()=>se(e.unit)>0),F=t.computed(()=>se(e.unit)>0&&!s.value),D=t.computed(()=>({hidden:!F.value})),$=V=>{u.value="",o("update:modelValue","",V),o("change","",V),o("clear","")},q=t.computed(()=>e.clearable&&!a.value&&!i.value),O=t.computed(()=>se(u.value)>0&&s.value),K=V=>{O.value?$(V):g()},z=t.computed(()=>O.value&&q.value?"close-little":"date"),A=t.computed(()=>({action:!0}));return()=>{const V={class:p.value,style:k.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:f.value,onClick:g,onFocus:N,onBlur:b},T=[],U=t.h("input",V);T.push(U);const B=[],L={name:z.value,size:"10px"},H=t.h(oe,L),P={class:A.value,onClick:K},I=t.h("view",P,{default:()=>[H]});if(B.push(I),E.value){const te=t.h("view",{class:D.value},[e.unit]);B.push(te)}const j={class:C.value},Y=t.h("view",j,{default:()=>B});T.push(Y);const W={default:()=>T};if(n.slots.default){const te=n.slots.default();W.label=()=>te}if(n.slots.prepend){const te=n.slots.prepend();W.prepend=()=>te}if(n.slots.append){const te=n.slots.append();W.append=()=>te}const Z=pe(e,dn);Z.valueFormat=null,Z.disabled=!1,Z.readonly=a.value||i.value,Z.visible=h.value,Z["onUpdate:visible"]=S,Z.modelValue=u.value,Z["onUpdate:modelValue"]=w;const J={};if(n.slots.top){const te=n.slots.top();J.top=()=>te}if(n.slots.bottom){const te=n.slots.bottom();J.default=()=>te}const G=t.h(un,Z,J);W.hide=()=>[G];const v=pe(e,de,ie);return t.h(we,v,W)}}}),{create:Ui,scope:Hi}=R("calendar-pane"),Ki=Ui({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:null},startDate:{type:String,default:Q.getDay(0)},endDate:{type:String,default:Q.getDay(365)}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{localeArrayRef:l,toLocaleRefs:r,t:s}=ee.useFoxI18n(Hi),a=l("weekdays"),i=r(e,["title","confirmText","startText","endText"]),c=t.ref(null),u=t.ref(null),f=t.ref(null),m=t.ref(null),p=t.ref(0),y=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),k=t.computed(()=>o.btn),h=t.computed(()=>o.topInfo),g=t.computed(()=>o.bottomInfo),d=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:"calendar-month-day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),S=P=>P.split("-"),w=P=>Q.isEqual(d.currDate[0],P),N=P=>Q.isEqual(d.currDate[1],P),b=(P,I,j)=>I.curData[0]+"-"+I.curData[1]+"-"+Q.getNumTwoBit(+P.day),C=(P,I,j)=>{const Y=b(P,I);return P.type=="curr"?!d.isRange&&Q.isEqual(d.currDate,Y)||d.isRange&&(w(Y)||N(Y))?`${d.dayPrefix}-active`:d.propStartDate&&Q.compareDate(Y,d.propStartDate)||d.propEndDate&&Q.compareDate(d.propEndDate,Y)?`${d.dayPrefix}-disabled`:d.isRange&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&Q.compareDate(d.currDate[0],Y)&&Q.compareDate(Y,d.currDate[1])?`${d.dayPrefix}-choose`:null:`${d.dayPrefix}-disabled`},E=()=>{(d.isRange&&d.chooseData.length==2||!d.isRange)&&(n("choose",d.chooseData),e.poppable&&n("update"))},F=(P,I,j,Y)=>{if(C(P,I)!=`${d.dayPrefix}-disabled`){let W=[...I.curData];W[2]=typeof P.day=="number"?Q.getNumTwoBit(P.day):P.day,W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=Q.getWhatDay(+W[0],+W[1],+W[2]),d.isRange?(Object.values(d.currDate).length==2?d.currDate=[W[3]]:Q.compareDate(d.currDate[0],W[3])?Array.isArray(d.currDate)&&d.currDate.push(W[3]):Array.isArray(d.currDate)&&d.currDate.unshift(W[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[...W]:Q.compareDate(d.chooseData[3],W[3])?d.chooseData=[[...d.chooseData],[...W]]:d.chooseData=[[...W],[...d.chooseData]]):(d.currDate=W[3],d.chooseData=[...W]),j||(n("select",d.chooseData),e.isAutoBackFill&&E())}},D=P=>{const I=P=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let j=parseInt(I.curData[0]),Y=parseInt(I.curData[1].toString().replace(/^0/,""));switch(P){case"prev":Y==1&&(j-=1),Y=Y==1?12:--Y;break;case"next":Y==12&&(j+=1),Y=Y==12?1:++Y;break}return[j,Q.getNumTwoBit(Y),Q.getMonthDays(String(j),String(Y))]},$=(P,I,j)=>{let{year:Y,month:W}=j;return I=="prev"&&P>=7&&(P-=7),Array.from(Array(P),(Z,J)=>({day:J+1,type:I,year:Y,month:W}))},q=(P,I,j,Y)=>{let{year:W,month:Z}=j;return I=="prev"&&P>=7&&(P-=7),Array.from(Array(Y),(G,v)=>({day:v+1,type:I,year:W,month:Z})).slice(Y-P)},O=(P,I)=>{const j=Q.getMonthPreDay(+P[0],+P[1]);let Y=P[1]-1,W=P[0];Y<=0&&(Y=12,W+=1);const Z=Q.getMonthDays(P[0],P[1]),J=Q.getMonthDays(W+"",Y+""),G={year:P[0],month:P[1]},v={curData:P,title:s("monthTitle",{year:G.year,month:G.month}),monthData:[...q(j,"prev",{month:Y,year:W},J),...$(Z,"curr",G)]};v.cssHeight=39+(v.monthData.length>35?384:320);let le=0;d.monthsData.length>0&&(le=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),v.cssScrollHeight=le,I=="next"?(!d.endData||!Q.compareDate(`${d.endData[0]}-${d.endData[1]}-${Q.getMonthDays(d.endData[0],d.endData[1])}`,`${P[0]}-${P[1]}-${P[2]}`))&&d.monthsData.push(v):!d.startData||!Q.compareDate(`${P[0]}-${P[1]}-${P[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(v):d.unLoadPrev=!0},K=()=>{let P=e.startDate?e.startDate:Q.getDay(0),I=e.endDate?e.endDate:Q.getDay(365);d.propStartDate=P,d.propEndDate=I,d.startData=S(P),d.endData=S(I),!e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length<=0?d.currDate=d.isRange?[Q.date2Str(new Date),Q.getDay(1)]:Q.date2Str(new Date):d.currDate=d.isRange?[...e.defaultValue]:e.defaultValue;const j={year:Number(d.startData[0]),month:Number(d.startData[1])},Y={year:Number(d.endData[0]),month:Number(d.endData[1])};let W=Y.month-j.month;Y.year-j.year>0&&(W=W+12*(Y.year-j.year)),O(d.startData,"next");let Z=1;do O(D("next"),"next");while(Z++<W);d.monthsNum=W,d.isRange&&Array.isArray(d.currDate)?(P&&Q.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),I&&Q.compareDate(I,d.currDate[1])&&d.currDate.splice(1,1,I),d.defaultData=[...S(d.currDate[0]),...S(d.currDate[1])]):(P&&Q.compareDate(d.currDate,P)?d.currDate=P:I&&!Q.compareDate(d.currDate,I)&&(d.currDate=I),d.defaultData=[...S(d.currDate)]);let J=0,G=0;d.monthsData.forEach((te,ye)=>{let ae=s("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]});te.title==ae&&(J=ye),d.isRange&&(ae=s("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]}),te.title==ae&&(G=ye))}),z(W,J),d.currentIndex=J,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.isRange?(F({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),F({day:d.defaultData[5],type:"curr"},d.monthsData[G],!0)):F({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0);let v=d.monthsData[d.monthsData.length-1],le=v.cssHeight+v.cssScrollHeight;qe(()=>{c?.value&&u?.value&&m?.value&&(p.value=c.value.clientHeight,u.value.style.height=`${le}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(le/(W+1))},z=(P,I)=>{P>=3?I>0&&I<P?d.defaultRange=[I-1,I+3]:I==0?d.defaultRange=[I,I+4]:I==P&&(d.defaultRange=[I-2,I+2]):d.defaultRange=[0,P+2];let j=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=j},A=(P,I)=>d.isRange&&P.type=="curr"&&C(P,I)=="calendar-month-day-active",V=(P,I)=>A(P,I)&&w(b(P,I)),T=(P,I)=>d.currDate.length>=2&&N(b(P,I))?A(P,I):!1,U=(P,I)=>{if(d.currDate.length>=2)return Q.isEqual(d.currDate[0],d.currDate[1])},B=P=>{const I=`${P.year}-${P.month}-${P.day<10?"0"+P.day:P.day}`;return Q.isEqual(I,Q.date2Str(new Date))},L=P=>{const I=P.target.scrollTop;let j=Math.floor(I/d.avgHeight);if(j==0)I>=d.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<d.monthsNum-1)I>=d.monthsData[j+1].cssScrollHeight&&(j+=1),I<d.monthsData[j].cssScrollHeight&&(j-=1);else{const Y=Math.round(I+p.value);Y<d.monthsData[j].cssScrollHeight+d.monthsData[j].cssHeight&&I>d.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=d.monthsNum&&Y>=d.monthsData[j+1].cssScrollHeight+d.monthsData[j+1].cssHeight&&(j+=1),I<d.monthsData[j-1].cssScrollHeight&&(j-=1)}d.currentIndex!==j&&(d.currentIndex=j,z(d.monthsNum,j)),d.yearMonthTitle=d.monthsData[j].title},H=()=>{d.chooseData.splice(0),d.monthsData.splice(0),K()};return K(),t.watch(()=>e.defaultValue,P=>{P&&e.poppable&&H()}),{weeks:a,compConthsData:y,showTopBtn:k,topInfo:h,bottomInfo:g,rangeTip:U,mothsViewScroll:L,getClass:C,isStartTip:V,isEndTip:T,chooseDay:F,isCurrDay:B,confirm:E,monthsPanel:u,months:c,weeksPanel:f,viewArea:m,...t.toRefs(d),...t.toRefs(e),...i}}}),xi={key:0,class:"calendar-title"},ji={key:1,class:"calendar-top-slot"},Wi={key:2,class:"calendar-curr-month"},Yi={class:"calendar-weeks",ref:"weeksPanel"},Xi={class:"calendar-months-panel",ref:"monthsPanel"},vi={class:"calendar-month-title"},Qi={class:"calendar-month-con"},Gi=["onClick"],Zi={class:"calendar-day"},Ji={key:0,class:"calendar-curr-tips calendar-curr-tips-top"},_i={key:1,class:"calendar-curr-tips calendar-curr-tips-bottom"},ec={key:2,class:"calendar-curr-tip-curr"},tc={key:4,class:"calendar-day-tip"},nc={key:0,class:"fox-calendar-footer"};function oc(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar fox-calendar-taro",{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar-header",{"fox-calendar-header-tile":!e.poppable}])},[e.showTitle?(t.openBlock(),t.createElementBlock("view",xi,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",ji,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Wi,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Yi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-week-item",key:i},t.toDisplayString(a),1))),128))],512)],2),t.createElementVNode("view",{class:"fox-calendar-content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[t.createElementVNode("view",Xi,[t.createElementVNode("view",{class:"viewArea",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-month",key:i},[t.createElementVNode("view",vi,t.toDisplayString(a.title),1),t.createElementVNode("view",Qi,[t.createElementVNode("view",{class:t.normalizeClass(["calendar-month-item",e.type==="range"?"month-item-range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["calendar-month-day",e.getClass(c,a)]),onClick:f=>e.chooseDay(c,a)},[t.createElementVNode("view",Zi,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ji,[t.renderSlot(e.$slots,"topInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",_i,[t.renderSlot(e.$slots,"bottomInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",ec," \u4ECA\u5929 ")):t.createCommentVNode("",!0),e.isStartTip(c,a)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["calendar-day-tip",{"calendar-curr-tips-top":e.rangeTip(c,a)}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,a)?(t.openBlock(),t.createElementBlock("view",tc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Gi))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",nc,[t.createElementVNode("view",{class:"calendar-confirm-btn",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}var ll=x(Ki,[["render",oc]]);const lt=e=>typeof e=="string"?e:X.isDate(e)?Q.date2Str(e):"",al=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),fn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Date,Array],default:null},startDate:{type:[String,Date],default:Q.getDay(0)},endDate:{type:[String,Date],default:Q.getDay(365)}},{create:lc}=R("calendar"),ac=lc({components:{[ll.name]:ll},props:{...fn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>e.type==="range"),r=t.computed(()=>{let S;if(al(e.defaultValue))S=l.value?[Q.date2Str(new Date),Q.getDay(1)]:Q.date2Str(new Date);else if(l.value)if(Array.isArray(e.defaultValue)&&e.defaultValue.length==2){let w=lt(e.defaultValue[0]),N=lt(e.defaultValue[1]);S=[w,N]}else S=[Q.date2Str(new Date),Q.getDay(1)];else{let w=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue;S=lt(w??new Date)}return S}),s=t.computed(()=>lt(e.startDate)),a=t.computed(()=>lt(e.endDate)),i=t.computed(()=>o.btn),c=t.computed(()=>o.topInfo),u=t.computed(()=>o.day),f=t.computed(()=>o.bottomInfo);let m=t.ref(e.visible);const p=t.ref(null),y=()=>{m.value=!1,n("update:visible",!1)},k=()=>{m.value=!1,n("close"),n("update:visible",!1)},h=S=>{k(),n("choose",S)},g=()=>{k()},d=S=>{n("select",S)};return t.watch(()=>e.visible,S=>{m.value=S}),{defaultValue:r,startDateStr:s,endDateStr:a,closePopup:g,update:y,close:k,choose:h,select:d,calendarRef:p,showTopBtn:i,topInfo:c,dayInfo:u,bottomInfo:f}}});function rc(e,n,o,l,r,s){const a=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.visible,position:"bottom",round:"",closeable:!0,onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"destroy-on-close":!0,style:{height:"85vh"}},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createBlock(a,{key:0,props:"",ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")])}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})])}:void 0,e.topInfo?{name:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})])}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})])}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","show-today","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title"])):t.createCommentVNode("",!0)]),_:3},8,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(a,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDateStr,"end-date":e.endDateStr,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")])}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})])}:void 0,e.topInfo?{name:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})])}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})])}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onClose","onChoose","onSelect","show-title","show-sub-title"]))}var mn=x(ac,[["render",rc]]);const pn=(e,n)=>{let o;return X.isDate(e)?o=e:se(e)>0?o=Q.parser(e,n):o=new Date,o},Ue=(e,n)=>X.isDate(e)?Q.format(e,n):`${e}`,He=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,r=Q.date2Str(e),s=Q.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,r,s]};function sc(e,n,o,l,r){return{props:{...ie,...de,...fn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(s,a){const{emitEvent:i}=ke({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},s.name),{toLocaleRefs:c}=ee.useFoxI18n(n),u=c(s,["placeholder"]),f=t.ref(!1),m=be(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),y=t.computed(()=>s.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),h=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},g=(I,j="one",Y="YYYY-MM-DD")=>{if(al(I)){h();return}if(y.value&&Array.isArray(I)&&I.length==2){let W,Z;typeof I[0]=="string"?(W=pn(I[0],Y),Z=pn(I[1],Y)):(W=I[0],Z=I[1]);let J=He(W),G=He(Z);(k.startDate===null||k.startDate.getTime()!==W.getTime()||k.endDate?.getTime()!==Z.getTime())&&(k.startDate=W,k.startArray=J,k.endDate=Z,k.endArray=G)}else{let W;typeof I=="string"?W=pn(I,Y):W=I;let Z=He(W);(k.startDate===null||k.startDate.getTime()!==W.getTime())&&(k.startDate=W,k.startArray=Z)}};g(s.modelValue,s.type,s.valueFormat),t.watch(()=>s.modelValue,I=>{g(I,s.type,s.valueFormat)});const d=t.computed(()=>{if(k.startDate===null)return"";if(y.value){let I=Ue(k.startDate,s.format),j=Ue(k.endDate,s.format);return`${I} ${s.rangeSeparator} ${j}`}else{let I=Ue(k.startDate,s.format);return s.showWeek&&(I=`${I} ${k.startArray[4]}`),I}}),S=t.computed(()=>{if(k.startDate===null)return null;if(y.value){let I=Q.date2Str(k.startDate),j=Q.date2Str(k.endDate??new Date);return[I,j]}else return Q.date2Str(k.startDate)}),w="fox-input-item",N=t.computed(()=>({[w]:!0,[`${w}__disabled`]:m.value})),b=he(t.computed(()=>s.textAlign),"textAlign"),C=t.computed(()=>({textAlign:b.value??"right"})),E=t.ref(!1),F=()=>{p.value||m.value||(E.value=!0)},D=I=>{E.value=I},$=I=>{if(!!I){if(y.value&&Array.isArray(I)){let j=I[0],Y=X.toNumber(j[0]),W=X.toNumber(j[1]),Z=X.toNumber(j[2]),J=new Date(Y,W-1,Z),G=I[1];Y=X.toNumber(G[0]),W=X.toNumber(G[1]),Z=X.toNumber(G[2]);let v=new Date(Y,W-1,Z);if(k.startDate=J,k.startArray=He(J),k.endDate=v,k.endArray=He(v),s.valueFormat){let le=Ue(J,s.valueFormat),te=Ue(v,s.valueFormat);i("update:modelValue",[le,te],{})}else i("update:modelValue",[J,v],{})}else{let j=I,Y=X.toNumber(j[0]),W=X.toNumber(j[1]),Z=X.toNumber(j[2]),J=new Date(Y,W-1,Z);if(k.startDate=J,k.startArray=He(J),s.valueFormat){let G=Ue(J,s.valueFormat);i("update:modelValue",G,{})}else i("update:modelValue",J,{})}i("change",I,{})}},q=I=>{let Y=I.target.value;f.value=!0,i("focus",Y,I)},O=I=>{setTimeout(()=>{f.value=!1},0);let Y=I.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),i("blur",Y,I)},K=t.computed(()=>({[`${w}__append`]:!0})),z=t.computed(()=>se(s.unit)>0),A=t.computed(()=>se(s.unit)>0&&!f.value),V=t.computed(()=>({hidden:!A.value})),T=I=>{h(),i("update:modelValue",null,I),i("change","",I),i("clear","")},U=t.computed(()=>s.clearable&&!m.value&&!p.value),B=t.computed(()=>se(d.value)>0&&f.value),L=I=>{B.value?T(I):F()},H=t.computed(()=>B.value&&U.value?"close-little":"date"),P=t.computed(()=>({action:!0}));return()=>{const I={class:N.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:u.placeholder.value,readonly:!0,value:d.value,onClick:F,onFocus:q,onBlur:O},j=[],Y=t.h("input",I);j.push(Y);const W=[],Z={name:H.value,size:"10px"},J=t.h(r,Z),G={class:P.value,onClick:L},v=t.h("view",G,{default:()=>[J]});if(W.push(v),z.value){const Tn=t.h("view",{class:V.value},[s.unit]);W.push(Tn)}const le={class:K.value},te=t.h("view",le,{default:()=>W});j.push(te);const ye={default:()=>j};a.slots.default&&(ye.label=a.slots.default),a.slots.prepend&&(ye.prepend=a.slots.prepend),a.slots.append&&(ye.append=a.slots.append);const ae=pe(s,fn);ae.visible=E.value,ae["onUpdate:visible"]=D,ae["default-value"]=S.value,ae.onChoose=$;const $e={};if(a.slots.btn){const Tn=a.slots.btn();$e.btn=()=>Tn}a.slots.day&&($e.day=a.slots.day),a.slots.topInfo&&($e.topInfo=a.slots.topInfo),a.slots.bottomInfo&&($e.bottomInfo=a.slots.bottomInfo);const ja=t.h(o,ae,$e);ye.hide=()=>[ja];const K0=pe(s,de,ie);return t.h(l,K0,ye)}}}}const{componentName:ic,create:cc,scope:dc}=R("calendar-item"),rl=cc(sc(ic,dc,mn,we,oe)),hn={justify:{type:String,default:"space-between"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"},labelWidth:{type:[String,Number]},labelPosition:{type:String},position:{type:String,default:"left"},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!1,default:"check-normal"},iconActiveName:{type:String,required:!1,default:"check-checked"},iconSize:{type:[String,Number],required:!1,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}};function uc(e,n){return{props:{...hn,modelValue:{type:[String,Number,Boolean,Object],required:!1},value:{type:[String,Number,Boolean,Object],required:!1}},emits:["click","update:modelValue"],setup(o,l){const r=(g,d)=>`${e}__${g}-${d}`,s=t.computed(()=>`
4
- ${r("justify",o.justify)}
5
- ${r("align",o.align)}
6
- ${r("flex",o.wrap)}
7
- ${e}
8
- `);let a=t.inject("parent",null);const i=t.computed(()=>a===null?o.value===void 0||o.value===null?!1:X.isEqual(o.value,o.modelValue):a.currentValue===null?!1:X.isEqual(a.currentValue,o.value)),c=t.computed(()=>a&&a.disabled||o.disabled),u=t.computed(()=>c.value?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),f=()=>{const{iconName:g,iconSize:d,iconActiveName:S,iconClassPrefix:w,iconFontClassName:N}=t.toRefs(o);return t.h(n,{name:i.value?S.value:g.value,size:d.value,class:u.value,classPrefix:w.value,fontClassName:N.value})},m=t.computed(()=>{let g={[`${e}__label`]:!0,[`${e}__label--disabled`]:c.value};return o.labelPosition&&(o.labelPosition==="top"?g[`${e}__label--top`]=!0:o.labelPosition==="right"?g[`${e}__label--right`]=!0:g[`${e}__label--left`]=!0),g}),p=t.computed(()=>o.labelWidth?{width:ne(o.labelWidth)}:{}),y=()=>t.h("view",{class:m.value,style:p.value},l.slots.default?.()),k=g=>{i.value||c.value||(a&&a.updateValue(o.value),l.emit("update:modelValue",o.value),l.emit("click",o.value,g))},h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},l.slots.default?.());return()=>{let g=[];return o.shape==="button"?g=[h()]:o.position==="left"?g=[y(),f()]:g=[f(),y()],t.h("view",{class:s.value,onClick:k},{default:()=>g})}}}}const{componentName:fc,create:mc}=R("radio"),gn=mc(uc(fc,oe));function sl(e,n,o,l="value"){for(let r=0;r<n.length;r++){let s=n[r];if(l==="text"){if($t(e,s)===o)return r}else if(l==="item"){if(X.isEqual(o,s))return r}else if(at(e,s)===o)return r}return-1}function $t(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function at(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function pc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class hc{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);let r=Ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(X.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function gc(){const e=t.getCurrentInstance();return new hc(e.proxy)}function yc(e,n){return{props:{...hn,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1},column:{type:[String,Number],required:!1,default:1},disabled:{type:[String,Boolean],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(o,l){const{emitEvent:r}=ke({componentName:e},o.name),s=Ie(),a=Ct(),i=he(t.toRef(o,"labelPosition"),"labelPosition",Le.Near),c=he(t.toRef(o,"labelWidth"),"labelWidth",Le.Near),u=t.computed(()=>a&&s?Je(s,o.span):-1),f=t.computed(()=>({width:`${u.value}px`}));let m=gc(),p=t.ref([]);t.watchEffect(async()=>{o.source&&(p.value=await m.load("radio",o.source,o.params))});let y=t.ref(-1);t.watch([()=>o.modelValue,()=>p.value],async([b,C])=>{y.value=sl(o,C,b,o.valueType)},{deep:!0});const k=be(t.computed(()=>o.disabled)),h=t.computed(()=>{if(!o.source)return o.modelValue;if(y.value===-1)return null;let b=p.value[y.value];return at(o,b)}),g=b=>{let C=null,E=null;if(p.value.length>0){let F=sl(o,p.value,b,"value");y.value=F,F>=0&&(E=p.value[F],o.valueType==="text"?C=$t(o,E):o.valueType==="item"?C=E:C=at(o,E))}else C=b;r("update:modelValue",C),r("change",C,E)},d=t.computed(()=>{let b=o.column;b<0&&(b=1);let C=100/b;return C<0&&(C=100),`${C}%`}),S=t.readonly({disabled:k,currentValue:h,updateValue:g}),w=()=>{let b=null,C=null;if(p.value.length>0&&y.value!==-1){let E=p.value[y.value];o.valueType==="text"?b=$t(o,E):o.valueType==="item"?b=E:b=at(o,E)}r("update:modelValue",b),r("change",b,C)},N={clear(){y.value!==-1&&(y.value=-1,w())}};return l.expose(N),t.provide("parent",S),o.source?()=>{let b=[];return p.value.forEach((C,E)=>{let F=$t(o,C),D=at(o,C),$=pe(o,hn);Object.assign($,{style:{width:d.value},labelWidth:c.value,labelPosition:i.value,value:D});let q=pc(o,C,E);$={...$,...q};let O;if(l.slots.label){let K=l.slots.label?.({text:F,index:E});O=t.h(n,$,{default:()=>[K]})}else O=t.h(n,$,{default:()=>[F]});b.push(O)}),t.h("view",{class:`${e}`,style:f.value},{default:()=>b})}:()=>t.h("view",{class:`${e}`,style:f.value},l.slots.default?.())}}}const{componentName:kc,create:Sc}=R("radio-item"),il=Sc(yc(kc,gn)),yn={justify:{type:String,default:"space-between"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"},labelWidth:{type:[String,Number]},labelPosition:{type:String},position:{type:String,default:"left"},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!1,default:"check-normal"},iconActiveName:{type:String,required:!1,default:"checked"},iconIndeterminateName:{type:String,default:"check-disabled"},iconSize:{type:[String,Number],required:!1,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"},indeterminate:{type:Boolean,default:!1}},bc=(e,n)=>({props:{...yn,modelValue:{type:[String,Number,Boolean,Object],required:!1},value:{type:[String,Number,Boolean,Object],required:!1},disabled:{type:Boolean,default:!1}},emits:["click","update:modelValue","change"],setup(o,l){const r=(S,w)=>`${e}__${S}-${w}`,s=t.computed(()=>`
9
- ${r("justify",o.justify)}
10
- ${r("align",o.align)}
11
- ${r("flex",o.wrap)}
12
- ${e}
13
- `);let a=t.inject("parent",null);const i=t.computed(()=>a===null?o.value===void 0||o.value===null?!1:X.isEqual(o.value,o.modelValue):a.currentValue===null?!1:Kn(o.value,a.currentValue)!==-1),c=t.computed(()=>a&&a.disabled||o.disabled),u=t.computed(()=>c.value?"fox-checkbox__icon--disable":i.value?o.indeterminate?"fox-checkbox__icon--indeterminate":"fox-checkbox__icon":"fox-checkbox__icon--unchecked"),f=()=>{const{iconName:S,iconSize:w,iconActiveName:N,iconClassPrefix:b,iconFontClassName:C,iconIndeterminateName:E}=t.toRefs(o);return t.h(n,{name:i.value?o.indeterminate?E.value:N.value:S.value,size:w.value,class:u.value,classPrefix:b.value,fontClassName:C.value})},m=t.computed(()=>{let S={[`${e}__label`]:!0,[`${e}__label--disabled`]:c.value};return o.labelPosition&&(o.labelPosition==="top"?S[`${e}__label--top`]=!0:o.labelPosition==="right"?S[`${e}__label--right`]=!0:S[`${e}__label--left`]=!0),S}),p=t.computed(()=>o.labelWidth?{width:ne(o.labelWidth)}:{}),y=()=>t.h("view",{class:m.value,style:p.value},l.slots.default?.());let k="";const h=S=>{if(c.value)return;a&&a.updateValue(o.value),k="click";let w=i.value?null:o.value;l.emit("update:modelValue",w),l.emit("click",w,S)};t.watch(()=>o.modelValue,S=>{k=="click"?k="":l.emit("change",S)});const g={toggle(){if(c.value)return;a&&a.updateValue(o.value);let S=i.value?null:o.value;l.emit("update:modelValue",S)},select(){if(c.value||i.value)return;a&&a.updateValue(o.value);let S=o.value;l.emit("update:modelValue",S)},clear(){c.value||i.value||(a&&a.updateValue(o.value),l.emit("update:modelValue",null))}};l.expose(g);const d=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},l.slots.default?.());return()=>{let S=[];return o.shape==="button"?S=[d()]:o.position==="left"?S=[y(),f()]:S=[f(),y()],t.h("view",{class:s.value,onClick:h},{default:()=>S})}}}),{componentName:Cc,create:wc}=R("checkbox"),kn=wc(bc(Cc,oe));function cl(e,n,o,l="value"){for(let r=0;r<n.length;r++){let s=n[r];if(l==="text"){if(Dt(e,s)===o)return r}else if(l==="item"){if(X.isEqual(o,s))return r}else if(rt(e,s)===o)return r}return-1}function Dt(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function rt(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function Nc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Bc{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);let r=Ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(X.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function Vc(){const e=t.getCurrentInstance();return new Bc(e.proxy)}function Ac(e,n){return{props:{...yn,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1},column:{type:[String,Number],required:!1,default:1},disabled:{type:[String,Boolean],required:!1},modelValue:{type:Array,default:[]}},emits:["change","update:modelValue"],setup(o,l){const{emitEvent:r}=ke({componentName:e},o.name),s=Ie(),a=Ct(),i=he(t.toRef(o,"labelPosition"),"labelPosition",Le.Near),c=he(t.toRef(o,"labelWidth"),"labelWidth",Le.Near),u=t.computed(()=>a&&s?Je(s,o.span):-1),f=t.computed(()=>({width:`${u.value}px`}));let m=Vc(),p=t.ref([]);t.watchEffect(async()=>{o.source&&(p.value=await m.load("checkbox",o.source,o.params))});let y=t.ref([]);t.watch([()=>o.modelValue,()=>p.value],async([C,E])=>{let F=[];Array.isArray(C)&&C.forEach(D=>{let $=cl(o,E,D,o.valueType);$!==-1&&F.push($)}),y.value=F},{deep:!0});const k=be(t.computed(()=>o.disabled)),h=t.computed(()=>{if(!o.source)return o.modelValue;let C=[];return y.value.forEach(E=>{let F=p.value[E];C.push(rt(o,F))}),C}),g=C=>{let E=[],F=[];if(p.value.length>0){let D=cl(o,p.value,C,"value");if(D===-1)return;let $=y.value.indexOf(D);$===-1?y.value.push(D):y.value.splice($,1),y.value.forEach(q=>{let O=p.value[q];F.push(O),o.valueType==="text"?E.push(Dt(o,O)):o.valueType==="item"?E.push(O):E.push(rt(o,O))})}else{E=h.value;let D=E.indexOf(C);D===-1?E.push(C):E.splice(D,1)}r("update:modelValue",E),r("change",E,F)},d=t.computed(()=>{let C=o.column;C<0&&(C=1);let E=100/C;return E<0&&(E=100),`${E}%`}),S=t.readonly({disabled:k,currentValue:h,updateValue:g});t.provide("parent",S);const w=function(C){},N=()=>{let C=[],E=[];y.value.forEach(F=>{let D=p.value[F];E.push(D),o.valueType==="text"?C.push(Dt(o,D)):o.valueType==="item"?C.push(D):C.push(rt(o,D))}),r("update:modelValue",C),r("change",C,E)},b={selectAll:()=>{let C=!1;for(let E=0;E<p.value.length;E++)y.value.includes(E)||(y.value.push(E),C=!0);C&&N()},clearAll:()=>{let C=!1,E=y.value.length;E>0&&(y.value.splice(0,E),C=!0),C&&N()},toggleAll:()=>{for(let C=0;C<p.value.length;C++){let E=y.value.indexOf(C);E==-1?y.value.push(C):y.value.splice(E,1)}N()},toggleReverse:()=>{let C=[];for(let E=0;E<p.value.length;E++)y.value.indexOf(E)===-1&&C.push(E);y.value=C,N()}};return l.expose(b),o.source?()=>{let C=[];return p.value.forEach((E,F)=>{let D=Dt(o,E),$=rt(o,E),q=pe(o,yn);Object.assign(q,{style:{width:d.value},labelWidth:c.value,labelPosition:i.value,value:$});const O=Nc(o,E,F);q={...q,...O,ref:w};let K;if(l.slots.label){let z=l.slots.label?.({text:D,index:F});K=t.h(n,q,{default:()=>[z]})}else K=t.h(n,q,{default:()=>[D]});C.push(K)}),t.h("view",{class:`${e}`,style:f.value},{default:()=>C})}:()=>{let C=l.slots.default?.()??[];return t.h("view",{class:`${e}`,style:f.value,ref:w},{default:()=>C})}}}}const{componentName:Ec,create:Tc}=R("checkbox-item"),dl=Tc(Ac(Ec,kn)),Sn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:$c,create:Dc}=R("switch"),Ic=Dc({props:{...Sn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=t.computed(()=>e.modelValue===e.activeValue),l=t.computed(()=>{const i=$c;return{[i]:!0,[o.value?"switch-open":"switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),r=t.computed(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let s="";const a=i=>{if(e.disable||e.loading)return;s="click";const c=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{s=="click"?s="":n("change",i)}),{classes:l,style:r,onClick:a}}}),zc={class:"switch-button"};function qc(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",zc,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,name:e.name,size:e.size,color:e.color},null,8,["name","size","color"])):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.modelValue]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.modelValue]])],64)):t.createCommentVNode("",!0)])],6)}var bn=x(Ic,[["render",qc]]);const{componentName:ul,create:Mc}=R("switch-item"),fl=Mc({props:{...ie,...de,...Sn},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o}=ke({componentName:ul},e.name),l=ul,r=be(t.computed(()=>e.disabled)),s=Ee(t.computed(()=>e.readonly)),a=Ne(e,"modelValue"),i=c=>{a.value=c,o("update:modelValue",c,{}),o("change",c,{})};return()=>{const u={...pe(e,Sn),disabled:r.value,readonly:s.value,value:a.value,["onUpdate:modelValue"]:i},f=[],m=t.h(bn,u);f.push(m);const p={default:()=>f};if(n.slots.default){const h=n.slots.default();p.label=()=>h}const y=pe(e,de,ie);return y["content-class"]=l,t.h(we,y,p)}}});function Pc(e,n,o,l){return{props:{...ie,...de,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},iconName:{type:[String],required:!1,default:""},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(r,s){const{emitEvent:a}=ke({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},r.name),{toLocaleRefs:i}=ee.useFoxI18n(n),c=i(r,["placeholder"]),u=be(t.computed(()=>r.disabled)),f=Ee(t.computed(()=>r.readonly)),m=Ne(r,"modelValue"),p=t.computed(()=>({[`${e}`]:!0,[`${e}__disabled`]:u.value,[`${e}__placeholder`]:!u.value&&ge(m.value)})),y=he(t.computed(()=>r.textAlign),"textAlign"),k=t.computed(()=>({textAlign:y.value??"right"})),h=t.computed(()=>ge(m.value)?c.placeholder.value:m.value),g=()=>{a("focus",m.value)},d=()=>{a("blur",m.value)},S=t.computed(()=>({[`${e}__append`]:!0})),w=t.computed(()=>se(r.unit)>0),N=E=>{u.value==!0||f.value==!0||a("click")},b=t.computed(()=>"arrow-right"),C=t.computed(()=>({action:!0}));return()=>{const E={tabIndex:0,class:p.value,style:k.value,innerHTML:h.value,onFocus:g,onBlur:d,onClick:N},F=[],D=t.h("view",E);F.push(D);const $=[],q={name:b.value,size:"10px"},O=t.h(o,q),K={class:C.value,onClick:N},z=t.h("view",K,{default:()=>[O]});if($.push(z),w.value){const L=t.h("view",{},[r.unit]);$.push(L)}const A={class:S.value},V=t.h("view",A,{default:()=>$});F.push(V);const T={default:()=>F};if(s.slots.default){const L=s.slots.default();T.label=()=>L}if(s.slots.prepend){const L=s.slots.prepend();T.prepend=()=>L}if(s.slots.append){const L=s.slots.append();T.append=()=>L}const U=pe(r,de,ie);return t.h(l,U,T)}}}}const{componentName:Lc,create:Oc,scope:Rc}=R("link-item"),ml=Oc(Pc(Lc,Rc,oe,we)),{componentName:Fc,create:Uc}=R("button"),Hc=Uc({components:{[oe.name]:oe},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},icon:{type:String,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:s,disabled:a,loading:i,color:c,plain:u,block:f}=t.toRefs(e),m=k=>{!i.value&&!a.value&&n("click",k)},p=t.computed(()=>{const k=Fc;return{[k]:!0,[`${k}--${l.value}`]:l.value,[`${k}--${r.value}`]:r.value,[`${k}--${s.value}`]:s.value,[`${k}--plain`]:u.value,[`${k}--block`]:f.value,[`${k}--disabled`]:a.value,[`${k}--loading`]:i.value}}),y=t.computed(()=>{const k={};return c?.value&&(u.value?(k.color=c.value,k.background="#fff",c.value?.includes("gradient")||(k.borderColor=c.value)):(k.color="#fff",k.background=c.value)),k});return{handleClick:m,classes:p,getStyle:y}}}),Kc={class:"fox-button__warp"};function xc(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Kc,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.icon&&!e.loading?(t.openBlock(),t.createBlock(a,{key:1,name:e.icon,"class-prefix":e.iconClassPrefix,"font-class-name":e.iconFontClassName},null,8,["name","class-prefix","font-class-name"])):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({text:e.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}var Ke=x(Hc,[["render",xc]]);const{componentName:jc,create:Wc}=R("cell"),Yc=Wc({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:""},icon:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>{const s=jc;return{[s]:!0,[`${s}--clickable`]:e.isLink,[`${s}--center`]:e.center,[`${s}--large`]:e.size=="large"}}),l=t.computed(()=>({borderRadius:ne(e.roundRadius)}));return{handleClick:s=>{n("click",s)},classes:o,baseStyle:l}}}),Xc={key:0,class:"fox-cell__icon"},vc={key:1,class:"fox-cell__title"},Qc={class:"title"},Gc={class:"fox-cell__title-desc"};function Zc(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.icon||e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Xc,[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.icon},null,8,["name"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.title||e.subTitle?(t.openBlock(),t.createElementBlock("view",vc,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",Qc,t.toDisplayString(e.title),1),t.createElementVNode("view",Gc,t.toDisplayString(e.subTitle),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-cell__value",style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),5)):t.createCommentVNode("",!0),e.$slots.link?t.renderSlot(e.$slots,"link",{key:3}):e.isLink?(t.openBlock(),t.createBlock(a,{key:4,class:"fox-cell__link",name:"right"})):t.createCommentVNode("",!0)])],6)}var pl=x(Yc,[["render",Zc]]);const{componentName:Jc,create:_c}=R("cell-group"),ed=_c({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Jc]:!0}))}}}),td={key:1,class:"fox-cell-group__title"},nd={key:3,class:"fox-cell-group__desc"},od={class:"fox-cell-group__warp"};function ld(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",td,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",nd,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",od,[t.renderSlot(e.$slots,"default")])],2)}var hl=x(ed,[["render",ld]]);const{componentName:ad,create:rd}=R("image"),sd=rd({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}},emits:["click","load","error"],setup(e,{emit:n}){const o=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),l=t.computed(()=>{const u=ad;return{[u]:!0,[`${u}-round`]:e.round}}),r=t.computed(()=>{let u={};return e.width&&(u.width=ne(e.width)),e.height&&(u.height=ne(e.height)),e.radius!==void 0&&e.radius!==null&&(u.overflow="hidden",u.borderRadius=ne(e.radius)),u}),s=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,u=>{o.isError=!1,o.loading=!0});const a=()=>{o.loading=!1,n("load")},i=()=>{o.isError=!0,o.loading=!1,n("error")},c=u=>{n("click",u)};return{...t.toRefs(o),imageClick:c,classes:l,styles:s,stylebox:r,error:i,load:a}}}),id=["src","alt"],cd={key:0,class:"fox-img-loading"},dd={key:1,class:"fox-img-error"};function ud(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...i)=>e.imageClick&&e.imageClick(...i))},[t.createElementVNode("img",{class:"fox-img",src:e.src,alt:e.alt,onLoad:n[0]||(n[0]=(...i)=>e.load&&e.load(...i)),onError:n[1]||(n[1]=(...i)=>e.error&&e.error(...i)),style:t.normalizeStyle(e.styles)},null,44,id),e.loading?(t.openBlock(),t.createElementBlock("view",cd,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("view",dd,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"image-error"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}var gl=x(sd,[["render",ud]]);const{create:fd}=R("layout"),yl=fd({}),{componentName:md,create:pd}=R("col"),hd=pd({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=md,o=t.inject("gutter"),l=t.computed(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),r=t.computed(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}));return{classes:l,style:r}}});function gd(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}var kl=x(hd,[["render",gd]]);const{componentName:yd,create:kd}=R("row"),Sd=kd({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=yd;t.provide("gutter",e.gutter);const o=(r,s)=>r?s?`fox-row-${r}-${s}`:"":`fox-row-${s}`;return{classes:t.computed(()=>e.type==="flex"?`
14
- ${o("",e.type)}
15
- ${o("justify",e.justify)}
16
- ${o("align",e.align)}
17
- ${o("flex",e.flexWrap)}
18
- ${n}
19
- `:`
20
- ${n}
21
- `)}}});function bd(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}var Sl=x(Sd,[["render",bd]]);const{componentName:bl,create:Cd}=R("sticky"),Cl=Cd({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:[Object,String]},zIndex:{type:[Number,String],default:2e3}},emits:["change","scroll"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>{let k;return typeof e.container=="string"&&(k=document.getElementById(e.container)),k||(k=e.container??window),k}),r=t.ref(),s=t.reactive({width:0,height:0,fixed:!1,transform:0}),a=t.computed(()=>{const{fixed:k,width:h,height:g}=s;if(k)return{width:`${h}px`,height:`${g}px`}}),i=t.computed(()=>{if(!s.fixed)return;const k={width:`${s.width}px`,height:`${s.height}px`,[e.position]:`${c.value}px`,zIndex:+e.zIndex};return s.transform&&(k.transform=`translate3d(0, ${s.transform}px, 0)`),k}),c=t.computed(()=>e.position==="top"?e.top:e.bottom),u=k=>{const h=t.unref(k);if(!h)return!1;const g=window.getComputedStyle(h),d=g.display==="none",S=h.offsetParent===null&&g.position!=="fixed";return d||S},f=()=>!(!r.value||u(r)),m=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),p=()=>t.h("view",{style:i.value,class:s.fixed?`${bl} fox-sticky--fixed`:bl},o.default?.()),y=()=>{if(console.info("-------------- on scroll"),!f())return;const{container:k,position:h}=e,g=m(l.value),d=Ce(r);if((d.width||d.height)&&(s.width=d.width,s.height=d.height),h==="top")if(k){const S=Ce(l.value),w=S.bottom-+c.value-s.height;s.fixed=+c.value>d.top&&S.bottom>0,s.transform=w<0?w:0}else s.fixed=c.value>d.top;else if(h==="bottom"){const S=document.documentElement.clientHeight;if(k){const w=Ce(l.value),N=S-w.top-+c.value-s.height;s.fixed=S-+c.value<d.bottom&&S>w.top,s.transform=N<0?-N:0}else s.fixed=S-+c.value<d.bottom}n("scroll",{top:g,fixed:s.fixed})};return t.watch(()=>s.fixed,k=>{n("change",k)}),t.onMounted(()=>{l.value.addEventListener("scroll",y),y()}),t.onUnmounted(()=>{l.value.removeEventListener("scroll",y)}),()=>t.h("view",{style:a.value,ref:r},[p()])}}),{componentName:wd,create:Nd}=R("divider"),Bd=Nd({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const l=wd;let r={[l]:!0},s={};return e.direction==="horizontal"?s={...r,[`${l}-center`]:n.slots.default,[`${l}-left`]:e.contentPosition==="left",[`${l}-right`]:e.contentPosition==="right",[`${l}-dashed`]:e.dashed,[`${l}-hairline`]:e.hairline}:s={...r,[`${l}-vertical`]:e.direction==="vertical"},s})}}});function Vd(e,n,o,l,r,s){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}var wl=x(Bd,[["render",Vd]]);function Ad(e,n){const o=[],l=r=>{!Array.isArray(r)||r.forEach(s=>{if(!!t.isVNode(s)){if(n){if(s.type&&s.type.name===n){o.push(s);return}}else o.push(s);s.component?.subTree&&l(s.component.subTree.children),s.children&&l(s.children)}})};return l(e),o}function Ed(e,n,o){const l=Ad(e.subTree.children,o);n.sort((r,s)=>l.indexOf(r.vnode)-l.indexOf(s.vnode))}function Td(e,n){const o=t.shallowReactive([]),l=t.getCurrentInstance(),r=i=>{!i.proxy||(o.push(t.markRaw(i)),Ed(l,o,n))},s=i=>{o.splice(o.indexOf(t.markRaw(i)),1)},a=Object.assign;return i=>(t.provide(e,a({add:r,remove:s,internalChildren:o},i)),{internalChildren:o})}const{componentName:Nl}=R("grid"),Bl=Symbol("grid"),$d={props:{columnNum:{type:[Number,String],default:4},iconSize:{type:[Number,String],default:28},iconColor:{type:String},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}},setup(e,{slots:n}){Td(Bl,`${Nl}-item`)({props:e});const o=t.computed(()=>{const r=Nl;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=t.computed(()=>{const r={};return e.gutter&&(r.paddingLeft=ne(e.gutter)),r});return()=>t.h("view",{class:o.value,style:l.value},n.default?.())}},{create:Dd}=R("grid"),Vl=Dd($d);function Id(e){const n=t.getCurrentInstance();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}function zd(e){const n=t.inject(e,null);if(n){const o=t.getCurrentInstance(),{add:l,remove:r,internalChildren:s}=n;l(o),t.onUnmounted(()=>r(o));const a=t.computed(()=>s.indexOf(o));return{parent:n,index:a}}return{parent:null,index:t.ref(-1)}}const{create:qd,componentName:Al}=R("grid-item"),Md=qd({props:{text:{type:String},icon:{type:String},iconSize:{type:[Number,String]},iconColor:{type:String}},emits:["click"],setup(e,{emit:n}){const o=zd(Bl);if(!o.parent)return;const l=o.index,r=o.parent.props,s=t.computed(()=>({[Al]:!0})),a=t.computed(()=>{const f={flexBasis:`${100/+r.columnNum}%`};return r.square?f.paddingTop=`${100/+r.columnNum}%`:r.gutter&&(f.paddingRight=ne(r.gutter),l.value>=r.columnNum&&(f.marginTop=ne(r.gutter))),f}),i=t.computed(()=>{const f=`${Al}__content`;return{[`${f}`]:!0,[`${f}--border`]:r.border,[`${f}--surround`]:r.border&&r.gutter,[`${f}--center`]:r.center,[`${f}--square`]:r.square,[`${f}--reverse`]:r.reverse,[`${f}--${r.direction}`]:!!r.direction,[`${f}--clickable`]:r.clickable}}),c=t.computed(()=>({name:e.icon,size:e.iconSize||r.iconSize,color:e.iconColor||r.iconColor}));return{rootClass:s,rootStyle:a,contentClass:i,iconProps:c,handleClick:f=>{n("click",f)}}}}),Pd={key:3,class:"fox-grid-item__text"};function Ld(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,name:e.iconProps.name,size:e.iconProps.size,color:e.iconProps.color},null,8,["name","size","color"])),e.$slots.text?t.renderSlot(e.$slots,"text",{key:2}):(t.openBlock(),t.createElementBlock("view",Pd,t.toDisplayString(e.text),1))],64))],2)],6)}var El=x(Md,[["render",Ld]]);const{componentName:Od,create:Rd}=R("navbar"),Fd=Rd({props:{leftShow:{type:Boolean,default:!0},title:{type:String,default:""},titIcon:{type:String,default:""},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:s,zIndex:a}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref(0);const f=t.computed(()=>{const g=Od;return{[g]:!0,[`${g}--border`]:o.value,[`${g}--fixed`]:l.value,[`${g}--safe-area-inset-top`]:r.value}}),m=t.computed(()=>({zIndex:a.value}));t.onMounted(()=>{l.value&&s.value&&t.nextTick(()=>{u=c?.value?.getBoundingClientRect().height,i.value.style.height=u+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function k(){n("on-click-icon")}function h(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:f,styles:m,handleLeft:p,handleCenter:y,handleCenterIcon:k,handleRight:h}}}),Ud={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Hd={key:1,class:"fox-navbar__text"},Kd={class:"fox-navbar__title"},xd={key:0,class:"fox-navbar__text"},jd={key:1,class:"fox-navbar__text"},Wd={class:"fox-navbar__title"},Yd={key:0,class:"fox-navbar__text"};function Xd(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Ud,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left"})):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Hd,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Kd,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[2]||(n[2]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",xd,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[3]||(n[3]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left"})):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",jd,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Wd,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[4]||(n[4]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[5]||(n[5]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Yd,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}var Tl=x(Fd,[["render",Xd]]);const vd=(e,n)=>({props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:l}){const{toLocaleRefs:r}=ee.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),a=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),i=t.ref(-1);return{...s,classes:a,updateValue:(f=!o.visible)=>{l("update:visible",f)},selected:(f,m)=>{l("selected",{item:f,event:m}),i.value=f.id},current:i}}}),Qd={class:"fox-fixednav__list"},Gd=["onClick"],Zd=["src"],Jd={class:"span"},_d={key:0,class:"b"},eu={class:"text"};function tu(e,n,o,l,r,s){const a=t.resolveComponent("fox-overlay"),i=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Qd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:f=>e.selected(c,f),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Zd),t.createElementVNode("view",Jd,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",_d,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Gd))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{name:"left",color:"#fff"}),t.createElementVNode("view",eu,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const{componentName:nu,create:ou,scope:lu}=R("fixednav"),au=ou(vd(nu,lu));var $l=x(au,[["render",tu]]);const{componentName:ru,create:su}=R("menu"),iu=su({props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.ref(0),s=t.ref(!1),a=()=>{const g=t.reactive([]),d=t.reactive([]);return{children:g,linkChildren:w=>{const N=b=>{b.proxy&&(d.push(b),g.push(b.proxy))};t.provide("menuParent",Object.assign({link:N,children:g,internalChildren:d},w))}}},{children:i,linkChildren:c}=a(),u=t.computed(()=>i.some(g=>g.state.showWrapper)),f=t.computed(()=>({[ru]:!0,"scroll-fixed":s.value})),m=()=>{if(l.value){const g=Ce(l);e.direction==="down"?r.value=g.bottom:r.value=window.innerHeight-g.top}};c({props:e,offset:r});const p=g=>{i.forEach((d,S)=>{S===g?(m(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},y=g=>Math.max(0,"scrollTop"in g?g.scrollTop:g.pageYOffset),k=()=>{const{scrollFixed:g}=e,d=y(window);s.value=d>(typeof g=="boolean"?30:Number(g))},h=g=>{let d="";const{titleClass:S}=e;return g&&(d+="active"),S&&(d+=` ${S}`),d};return t.onMounted(()=>{const{scrollFixed:g}=e;g&&window.addEventListener("scroll",k)}),t.onUnmounted(()=>{const{scrollFixed:g}=e;g&&window.removeEventListener("scroll",k)}),{toggleItem:p,children:i,opened:u,classes:f,barRef:l,getClasses:h}}}),cu=["onClick"],du={class:"fox-menu__title-text"};function uu(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-menu__item",{disabled:i.disabled,active:i.state.showPopup}]),onClick:u=>!i.disabled&&e.toggleItem(c),style:t.normalizeStyle({color:i.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(i.state.showPopup)])},[t.createElementVNode("view",du,t.toDisplayString(i.renderTitle()),1),t.createVNode(a,{name:i.titleIcon||(e.direction==="up"?"arrow-up":"down-arrow"),size:"10",class:"fox-menu__title-icon"},null,8,["name"])],2)],14,cu))),128))],2),t.renderSlot(e.$slots,"default")],2)}var Dl=x(iu,[["render",uu]]);const{componentName:fu,create:mu}=R("menu-item"),pu=mu({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},titleIcon:String,activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[oe.name]:oe,[me.name]:me},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),r=()=>{const y=t.inject("menuParent",null);if(y){const k=t.getCurrentInstance(),{link:h}=y;return h(k),{parent:y}}},{parent:s}=r(),a=t.computed(()=>({[fu]:!0})),i=t.computed(()=>{const y={height:s.offset.value+"px"};return s.props.direction==="down"?y:{...y,top:"auto"}});return{classes:a,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(k=>k.value===e.modelValue);return y?y.text:""},state:l,parent:s,toggle:(y=!l.showPopup,k={})=>{y!==l.showPopup&&(l.showPopup=y,l.isShowPlaceholderElement=y,y&&(l.showWrapper=!0))},onClick:y=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(n("update:modelValue",y.value),n("change",y.value))},handleClose:()=>{l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1}}}}),hu={class:"fox-menu-item__content"},gu=["onClick"];function yu(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop",overlayClass:"fox-menu__overlay",overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,isWrapTeleport:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",hu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:f=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass({activeTitleClass:c.value===e.modelValue,inactiveTitleClass:c.value!==e.modelValue}),name:e.optionIcon,color:e.parent.props.activeColor},null,8,["class","name","color"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass({activeTitleClass:c.value===e.modelValue,inactiveTitleClass:c.value!==e.modelValue}),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,gu))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}var Il=x(pu,[["render",yu]]);const{create:ku}=R("tabbar"),Su=ku({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:String,default:"20px"},deactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(r){l.value!==r&&(l.value=r,n.emit("update:modelValue",r),n.emit("change",r,l.children[r]))}let l=t.reactive({children:[],size:e.size,value:e.modelValue,deactiveColor:e.deactiveColor,activeColor:e.activeColor,changeIndex:o});return t.provide("parent",l),t.watch(()=>e.modelValue,r=>{l.value=r}),{changeIndex:o}}});function bu(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}var zl=x(Su,[["render",bu]]);const{create:Cu}=R("tabbar-item"),wu=Cu({props:{title:{type:String,default:""},icon:{type:String,default:""},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},classPrefix:{type:String,default:"fox-icon"},dot:{type:Boolean,default:!1},fontClassName:{type:String,default:"foxui-iconfont"}},setup(e,n){const o=t.inject("parent"),l=t.reactive({size:o.size,deactiveColor:o.deactiveColor,activeColor:o.activeColor,value:o.value,index:0}),r=t.getCurrentInstance();r!==null&&(u=>{if(u.proxy){let f=o.children.length;l.index=f;let m=Object.assign(u.proxy,{index:f});o.children.push(m)}})(r);const s=t.computed(()=>l.index===l.value);function a(c){o&&typeof o.changeIndex=="function"&&o.changeIndex(c)}const i=t.computed(()=>o?o.value:null);return t.watch(i,c=>{l.value=c}),{state:l,active:s,change:a}}}),Nu={class:"fox-tabbar-item_icon-box"},Bu={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Vu={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Au={key:1,class:"fox-tabbar-item_icon-box_dot"},Eu={key:2},Tu={key:0};function $u(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=i=>e.change(e.state.index))},[t.createElementVNode("view",Nu,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Bu,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Vu,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Au)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Eu,[t.createVNode(a,{class:"fox-tabbar-item_icon-box_icon",size:e.state.size,name:e.icon,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix},null,8,["size","name","font-class-name","class-prefix"])])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",Tu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}var ql=x(wu,[["render",$u]]);const{componentName:Du,create:Iu}=R("elevator"),zu=Iu({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"],setup(e,n){const o=t.ref(null),l=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=t.computed(()=>({[Du]:!0})),s=t.computed(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=t.computed(()=>o.value.clientHeight),i=(d,S)=>{const w="data-";return d.getAttribute(w+S)},c=d=>{t.nextTick(()=>{!l.listGroup.includes(d)&&d!=null&&l.listGroup.push(d)})},u=()=>{let d=0;l.listHeight.push(d);for(let S=0;S<l.listGroup.length;S++)d+=l.listGroup[S].clientHeight,l.listHeight.push(d)},f=d=>{!d&&d!==0||(d<0&&(d=0),d>l.listHeight.length-2&&(d=l.listHeight.length-2),l.codeIndex=d,o.value.scrollTo(0,l.listHeight[d]))},m=d=>{l.scrollStart=!0;let S=i(d.target,"index"),w=d.touches[0];l.touchState.y1=w.pageY,l.anchorIndex=+S,l.codeIndex=+S,f(+S)},p=d=>{let S=d.touches[0];l.touchState.y2=S.pageY;let w=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+w,f(l.codeIndex)},y=()=>{l.scrollStart=!1},k=(d,S)=>{n.emit("click-item",d,S),l.currentData=S,l.currentKey=d},h=d=>{n.emit("click-index",d)},g=d=>{let w=d.target.scrollTop;const N=l.listHeight;l.scrollY=w;for(let b=0;b<N.length-1;b++){let C=N[b],E=N[b+1];if(l.scrollY>=C&&l.scrollY<E){l.currentIndex=b,l.diff=E-l.scrollY;return}}l.currentIndex=N.length-2};return t.onMounted(()=>{o.value.addEventListener("scroll",g)}),St({scrollTo:f}),t.watch(()=>l.listGroup.length,()=>{l.listHeight=[],t.nextTick(u)}),t.watch(()=>l.diff,d=>{const S=l.listHeight;let w=d>0&&d<e.titleHeight?d-e.titleHeight:0;l.scrollY+a.value===S[S.length-1]&&w!==0&&(w=0),l.fixedTop!==w&&(l.fixedTop=w)}),{classes:r,...t.toRefs(l),fixedStyle:s,clientHeight:a,setListGroup:c,listview:o,touchStart:m,touchMove:p,touchEnd:y,handleClickItem:k,handleClickIndex:h}}}),qu={class:"fox-elevator__list__item__code"},Mu=["onClick"],Pu=["innerHTML"],Lu={class:"fixed-title"},Ou={class:"fox-elevator__bars__inner"},Ru=["data-index","onClick"];function Fu(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,a=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",qu,t.toDisplayString(a[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===a[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(a[e.acceptKey],i)},[t.renderSlot(e.$slots,"default",{item:i},()=>[t.createElementVNode("span",{innerHTML:i.name},null,8,Pu)])],10,Mu))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",Lu,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=t.withModifiers((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[t.createElementVNode("view",Ou,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:a[e.acceptKey],onClick:c=>e.handleClickIndex(a[e.acceptKey])},t.toDisplayString(a[e.acceptKey]),11,Ru))),128))])],32)],2)}var Ml=x(zu,[["render",Fu]]);const{componentName:v0,create:Uu,scope:Hu}=R("pagination"),Ku=Uu({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}=ee.useFoxI18n(Hu),l=o(e,["prevText","nextText"]),{modelValue:r,mode:s,showPageSize:a,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:p,totalItems:y,itemsPerPage:k}=t.toRefs(e),h=+p.value||Math.ceil(+y.value/+k.value);return Math.max(1,h)}),u=(p,y)=>{p>c.value||p<1||(p!=r.value&&n("update:modelValue",p),y&&n("change",p))},f=(p,y,k)=>({number:p,text:y,active:k}),m=t.computed(()=>{if(s.value=="simple")return;let p=[];const y=c.value,k=a.value;let h=1,g=y;const d=y>k;d&&(h=Math.max(r.value-Math.floor(k/2),1),g=h+k-1,g>y&&(g=y,h=g-k+1));for(var S=h;S<=g;S++){const w=f(S,S,r.value==S);p.push(w)}if(d&&k>0&&i.value){if(h>1){const w=f(h-1,"...");p.unshift(w)}if(g<y){const w=f(g+1,"...");p.push(w)}}return p});return t.watchEffect(()=>{u(r.value,!1)}),{...l,modelValue:r,select:u,countRef:c,mode:s,pages:m,forceEllipses:i}}}),xu={class:"fox-pagination"},ju={key:0,class:"fox-pagination-contain"},Wu=["onClick"],Yu={key:1,class:"fox-pagination-contain"},Xu={class:"fox-pagination-simple"};function vu(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",xu,[t.createElementVNode("view",{class: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))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",ju,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(a,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",a.active?"active":""]),onClick:c=>e.select(a.number,!0)},[t.renderSlot(e.$slots,"page",{item:a},()=>[t.createTextVNode(t.toDisplayString(a.text),1)])],10,Wu))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Yu,[t.createElementVNode("view",Xu,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=a=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}var Pl=x(Ku,[["render",vu]]);const{create:Qu}=R("tabs");class Gu{constructor(){this.title="",this.paneKey="",this.disabled=!1}}const Zu=Qu({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},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0}},components:{},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){t.provide("activeKey",{activeKey:t.computed(()=>e.modelValue)});const l=t.ref([]),r=t.ref(e.modelValue||0),s=p=>{p.forEach((y,k)=>{let h=y.type;if(h=h.name||h,h=="fox-tabpane"){let g=new Gu;(y.props?.title||y.props?.["pane-key"])&&(g.title=y.props?.title,g.paneKey=y.props?.["pane-key"]||k,g.disabled=y.props?.disabled),l.value.push(g)}else{if(y.children==" ")return;s(y.children)}})},a=(p=o.default?.())=>{l.value=[],p&&p.length&&s(p)};t.watch(()=>o.default?.(),p=>{a(p)}),t.watch(()=>e.modelValue,p=>{let y=l.value.findIndex(k=>k.paneKey==p);y==-1?console.error("[FoxUI] <Tabs> \u5F53\u524D\u672A\u627E\u5230 TabPane \u7EC4\u4EF6\u5143\u7D20 , \u8BF7\u68C0\u67E5 ."):r.value=y}),t.onMounted(a),t.onActivated(a);const i=t.computed(()=>({transform:e.direction=="horizontal"?`translate3d(-${r.value*100}%, 0, 0)`:`translate3d( 0,-${r.value*100}%, 0)`,transitionDuration:`${e.animatedTime}ms`})),c=t.computed(()=>({background:e.background})),u=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),f=t.computed(()=>({marginLeft:ne(e.titleGutter),marginRight:ne(e.titleGutter)}));return{titles:l,contentStyle:i,tabsNavStyle:c,tabsActiveStyle:u,titleStyle:f,...{tabChange:(p,y)=>{n("click",p),!p.disabled&&(r.value=y,n("update:modelValue",p.paneKey),n("change",p))}}}}}),Ju=["onClick"];function _u(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:i.paneKey==e.modelValue,disabled:i.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(i,c),key:i.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(a,{color:e.color,name:"joy-smile"},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis&&!e.titleScroll&&e.direction=="horizontal"}])},t.toDisplayString(i.title),3)],14,Ju))),128))],6),t.createElementVNode("view",{class:"fox-tabs__content",style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],4)],2)}var Ll=x(Zu,[["render",_u]]);const{create:ef}=R("tabpane"),tf=ef({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){return{activeKey:t.inject("activeKey").activeKey}}});function nf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabpane",{active:e.paneKey==e.activeKey}])},[t.renderSlot(e.$slots,"default")],2)}var Ol=x(tf,[["render",nf]]);const{componentName:Rl,create:of}=R("indicator"),lf=of({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}=t.toRefs(e);return{classes:t.computed(()=>{const r=Rl;return{[r]:!0,[`${r}--block`]:n.value,[`${r}--align__${o.value}`]:n.value&&o.value}}),componentName:Rl}}});function af(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,a=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[a===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&a<10?`0${a}`:a),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var Fl=x(lf,[["render",af]]);const{componentName:rf,create:sf}=R("sidenavbar"),cf=sf({props:{offset:{type:[String,Number],default:15}},emits:[],setup:(e,n)=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),r=t.computed(()=>({[rf]:!0})),s=(i,c=1)=>{for(let u=0;u<i.length;u++){let f=i[u];f.children[0].style.paddingLeft=e.offset*c+"px",f.className.includes("fox-sidenavbaritem")||s(Array.from(f.children[1].children),++l.count)}l.count--},a=()=>{let i=o.value.childNodes;i.length&&(i=Array.from(i).filter(c=>c.nodeType!==3).map(c=>c),s(i))};return t.onMounted(()=>{a(),l.observer=new MutationObserver(function(){l.count=1,a()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}),{...t.toRefs(l),list:o,classes:r}}}),df={class:"fox-sidenavbar__content"},uf={class:"fox-sidenavbar__content__list",ref:"list"};function ff(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",df,[t.createElementVNode("view",uf,[t.renderSlot(e.$slots,"default")],512)])],2)}var Ul=x(cf,[["render",ff]]);const{componentName:mf,create:pf}=R("sidenavbaritem"),hf=pf({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[mf]:!0})),handleClick:()=>{n.emit("click")}})}),gf=["ikey"],yf={class:"fox-sidenavbaritem__title"};function kf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:"fox-sidenavbaritem",onClick:n[0]||(n[0]=t.withModifiers((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[t.createElementVNode("span",yf,t.toDisplayString(e.title),1)],8,gf)}var Hl=x(hf,[["render",kf]]);const{componentName:Sf,create:bf}=R("subsidenavbar"),Cf=bf({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},emits:["title-click"],setup:(e,n)=>{const o=t.reactive({direction:""}),l=t.computed(()=>({[Sf]:!0})),r=t.computed(()=>({height:o.direction?"0px":"auto"})),s=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return t.onMounted(()=>{o.direction=e.open?"":"up"}),{...t.toRefs(o),classes:l,style:r,handleClick:s}}}),wf=["ikey"],Nf={class:"fox-subsidenavbar__title__text"},Bf={class:"fox-subsidenavbar__title__icon"};function Vf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-subsidenavbar__title",onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.handleClick&&e.handleClick(...i),["stop"]))},[t.createElementVNode("span",Nf,t.toDisplayString(e.title),1),t.createElementVNode("span",Bf,[t.createVNode(a,{name:"down-arrow",class:t.normalizeClass(e.direction)},null,8,["class"])])]),t.createElementVNode("view",{class:t.normalizeClass(["fox-subsidenavbar__list",e.direction?"foxFadeOut":"foxFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)],10,wf)}var Kl=x(Cf,[["render",Vf]]);const{componentName:Af,create:Ef}=R("range"),Tf=Ef({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,slots:o}){const l=t.ref(0);let r,s;const a=t.ref(),i=t.ref(),c=et(),u=t.computed(()=>{const{marks:A,max:V,min:T}=e;return Object.keys(A).map(parseFloat).sort((L,H)=>L-H).filter(L=>L>=T&&L<=V)}),f=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const A=Af;return{[A]:!0,[`${A}-disabled`]:e.disabled,[`${A}-vertical`]:e.vertical,[`${A}-show-number`]:!e.hiddenRange}}),p=t.computed(()=>{const A="fox-range-container";return{[A]:!0,[`${A}-vertical`]:e.vertical}}),y=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),h=A=>!!e.range&&Array.isArray(A),g=()=>{const{modelValue:A,min:V}=e;return h(A)?`${(A[1]-A[0])*100/f.value}%`:`${(A-Number(V))*100/f.value}%`},d=()=>{const{modelValue:A,min:V}=e;return h(A)?`${(A[0]-Number(V))*100/f.value}%`:"0%"},S=t.computed(()=>e.vertical?{height:g(),top:d(),background:e.activeColor,transition:i.value?"none":void 0}:{width:g(),left:d(),background:e.activeColor,transition:i.value?"none":void 0}),w=A=>{const V="fox-range-mark",{modelValue:T,max:U,min:B}=e;let L=Number(B),H=Number(U);if(e.range){const[I,j]=T;L=I,H=j}else H=T;let P=A<=H&&A>=L;return{[`${V}-text`]:!0,[`${V}-text-active`]:P}},N=A=>{const{max:V,min:T,vertical:U}=e;let B={left:`${(A-Number(T))/f.value*100}%`};return U&&(B={top:`${(A-Number(T))/f.value*100}%`}),B},b=A=>{const{modelValue:V,max:T,min:U}=e;let B=Number(U),L=Number(T);if(e.range){const[I,j]=V;B=I,L=j}return{background:A<=L&&A>=B?e.activeColor:e.inactiveColor}},C=A=>{const{min:V,max:T,step:U}=e;return A=Math.max(+V,Math.min(A,+T)),Math.round(A/+U)*+U},E=(A,V)=>JSON.stringify(A)===JSON.stringify(V),F=A=>A[0]>A[1]?A.slice(0).reverse():A,D=(A,V)=>{h(A)?A=F(A).map(C):A=C(A),E(A,e.modelValue)||n("update:modelValue",A),V&&!E(A,r)&&n("change",A)},$=A=>{if(e.disabled)return;const{min:V,modelValue:T}=e,U=Ce(a);let B=A.clientX-U.left,L=U.width;e.vertical&&(B=A.clientY-U.top,L=U.height);const H=Number(V)+B/L*f.value;if(h(T)){const[P,I]=T,j=(P+I)/2;H<=j?D([H,I],!0):D([P,H],!0)}else D(H,!0)},q=A=>{e.disabled||(c.start(A),s=e.modelValue,h(s)?r=s.map(C):r=C(s),i.value="start")},O=A=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),c.move(A),i.value="draging";const V=Ce(a);let T=c.deltaX.value,U=V.width,B=T/U*f.value;e.vertical&&(T=c.deltaY.value,U=V.height,B=T/U*f.value),h(r)?s[l.value]=r[l.value]+B:s=r+B,D(s),A.stopPropagation(),A.preventDefault()},K=()=>{e.disabled||(i.value==="draging"&&(D(s,!0),n("drag-end")),i.value="")},z=A=>typeof A=="number"?e.modelValue[A]:e.modelValue;return{root:a,classes:m,wrapperStyle:y,buttonStyle:k,onClick:$,onTouchStart:q,onTouchMove:O,onTouchEnd:K,...t.toRefs(e),barStyle:S,curValue:z,buttonIndex:l,containerClasses:p,markClassName:w,marksStyle:N,marksList:u,tickStyle:b}}}),$f={key:0,class:"min"},Df={key:0,class:"fox-range-mark"},If=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],zf={key:0,class:"number"},qf=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Mf={key:0,class:"number"},Pf={key:1,class:"max"};function Lf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",$f,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Df,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,a=>(t.openBlock(),t.createElementBlock("span",{key:a,class:t.normalizeClass(e.markClassName(a)),style:t.normalizeStyle(e.marksStyle(a))},[t.createTextVNode(t.toDisplayString(a)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(a))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],a=>t.createElementVNode("view",{key:a,role:"slider",class: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:t.withModifiers(i=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",zf,t.toDisplayString(e.curValue(a)),1))],4))],42,If)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Mf,t.toDisplayString(e.curValue()),1))],4))],40,qf))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Pf,t.toDisplayString(+e.max),1))],2)}var xl=x(Tf,[["render",Lf]]);const{create:Of,scope:Rf}=R("searchbar"),Ff=Of({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"textarea"},label:{type:String,default:""},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},background:{type:String,default:""},inputBackground:{type:String,default:""},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(Rf),l=o(e,["placeholder"]),r=t.reactive({active:!1}),s=t.computed(()=>({background:e.background})),a=t.computed(()=>({background:e.inputBackground})),i=d=>{let w=d.target.value;e.maxLength&&w.length>Number(e.maxLength)&&(w=w.slice(0,Number(e.maxLength))),n("update:modelValue",w,d),n("change",w,d)},c=d=>{let w=d.target.value;r.active=!0,n("focus",w,d)},u=d=>{setTimeout(()=>{r.active=!1},0);let w=d.target.value;e.maxLength&&w.length>Number(e.maxLength)&&(w=w.slice(0,Number(e.maxLength))),n("blur",w,d)},f=d=>{n("update:modelValue","",d),n("change","",d),n("clear","")},m=()=>{n("search",e.modelValue)},p=d=>{n("click-input",d)},y=d=>{n("click-left-icon",e.modelValue,d)},k=d=>{n("click-right-icon",e.modelValue,d)},h=t.computed(()=>({"text-align":e.inputAlign})),g=t.ref(null);return t.onMounted(()=>{e.autofocus&&g.value.focus()}),{...l,inputsearch:g,...t.toRefs(r),valueChange:i,valueFocus:c,valueBlur:u,handleClear:f,handleSubmit:m,searchbarStyle:s,inputSearchbarStyle:a,clickInput:p,leftIconClick:y,rightIconClick:k,styleSearchbar:h}}}),Uf={key:0,class:"fox-searchbar__search-label"},Hf={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Kf={class:"fox-searchbar__input-inner"},xf=["type","maxlength","placeholder","value","disabled","readonly"],jf={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Wf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",Uf,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Hf,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-searchbar__search-input",style:t.normalizeStyle(e.inputSearchbarStyle)},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:n[0]||(n[0]=(...i)=>e.leftIconClick&&e.leftIconClick(...i))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",Kf,[t.createElementVNode("form",{action:"#",onSubmit:n[5]||(n[5]=t.withModifiers((...i)=>e.handleSubmit&&e.handleSubmit(...i),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:"fox-searchbar__input-bar",type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:n[1]||(n[1]=(...i)=>e.clickInput&&e.clickInput(...i)),onInput:n[2]||(n[2]=(...i)=>e.valueChange&&e.valueChange(...i)),onFocus:n[3]||(n[3]=(...i)=>e.valueFocus&&e.valueFocus(...i)),onBlur:n[4]||(n[4]=(...i)=>e.valueBlur&&e.valueBlur(...i)),style:t.normalizeStyle(e.styleSearchbar)},null,44,xf)],32),e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[6]||(n[6]=(...i)=>e.handleClear&&e.handleClear(...i)),class:"fox-searchbar__input-clear"},[t.createVNode(a,{name:"circle-close",size:"12",color:"#555"})],512)),[[t.vShow,e.modelValue.length>0]]):t.createCommentVNode("",!0)]),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-sarch-icon",onClick:n[7]||(n[7]=(...i)=>e.rightIconClick&&e.rightIconClick(...i))},[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],4),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",jf,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}var jl=x(Ff,[["render",Wf]]);const{componentName:Yf,create:Xf}=R("inputnumber"),vf=Xf({props:{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},iconLeft:{type:String,default:"minus"},iconRight:{type:String,default:"plus"}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=t.computed(()=>{const p=Yf;return{[p]:!0,[`${p}--disabled`]:e.disabled}}),l=p=>Number(p).toFixed(Number(e.decimalPlaces)),r=p=>{const y=p.target;n("update:modelValue",y.valueAsNumber,p)},s=(p,y)=>{let k=l(p);n("update:modelValue",k,y),n("change",k,y)},a=(p=Number(e.modelValue))=>p<Number(e.max)&&!e.disabled,i=(p=Number(e.modelValue))=>p>Number(e.min)&&!e.disabled;return{classes:o,change:r,blur:p=>{if(e.disabled||e.readonly)return;let k=p.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),s(k,p),n("blur",p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},add:p=>{if(n("add",p),a()){let y=Number(e.modelValue)+Number(e.step);s(y,p)}else n("overlimit",p,"add")},addAllow:a,reduce:p=>{if(n("reduce",p),i()){let y=Number(e.modelValue)-Number(e.step);s(y,p)}else n("overlimit",p,"reduce")},reduceAllow:i,toPxDesc:ne}}}),Qf=["min","max","disabled","readonly","value"];function Gf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.toPxDesc(e.buttonSize)})},[t.createVNode(a,{name:e.iconLeft,class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.reduceAllow()}]),size:e.buttonSize,onClick:e.reduce},null,8,["name","class","size","onClick"]),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i))},null,44,Qf),t.createVNode(a,{name:e.iconRight,class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.addAllow()}]),size:e.buttonSize,onClick:e.add},null,8,["name","class","size","onClick"])],6)}var Wl=x(vf,[["render",Gf]]);const{componentName:Zf,create:Jf}=R("rate"),_f=Jf({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},iconSize:{type:[String,Number],default:18},activeColor:{type:String,default:""},voidColor:{type:String,default:""},uncheckedIcon:{type:String,default:"star-n"},checkedIcon:{type:String,default:"star-fill-n"},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:14},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=t.ref([]),l=t.computed(()=>({[Zf]:!0})),r=m=>{n("update:modelValue",m),n("change",m)},s=(m,p)=>{if(e.disabled||e.readonly)return;let y=0;p===1&&e.modelValue===p||(y=p,e.allowHalf&&m==2&&(y-=.5)),r(y)},a=(m,p,y)=>{let k=0;for(let h=p.value.length-1;h>=0;h--){const g=p.value[h];if(m>g.offsetLeft){y?k=h+(m>g.offsetLeft+g.clientWidth/2?1:.5):k=h+1;break}}return k},i=!0,c=et(),u={onTouchStart(m){!e.touchable||c.start(m)},onTouchMove(m){!e.touchable||!i||(c.move(m),c.isHorizontal()&&o.value&&(m.preventDefault(),r(a(c.moveX.value,o,e.allowHalf))))}},f=Math.random().toString(36).slice(-8);return{classes:l,...u,onClick:s,toPxDesc:ne,rateRefs:o,refRandomId:f}}}),em=["id"];function tm(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:t.normalizeStyle({marginRight:e.toPxDesc(e.spacing)})},[t.createVNode(a,{size:e.iconSize,class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:c=>e.onClick(1,i),color:i<=e.modelValue?e.activeColor:e.voidColor,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,name:i<=e.modelValue?e.checkedIcon:e.uncheckedIcon},null,8,["size","onClick","class","color","font-class-name","class-prefix","name"]),e.allowHalf&&Number(e.modelValue)+1>i?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-rate-item__icon fox-rate-item__icon--half",onClick:c=>e.onClick(2,i),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor,size:e.iconSize,name:e.checkedIcon},null,8,["onClick","font-class-name","class-prefix","color","size","name"])):e.allowHalf&&Number(e.modelValue)+1<i?(t.openBlock(),t.createBlock(a,{key:1,class:"fox-rate-item__icon fox-rate-item__icon--disabled fox-rate-item__icon--half",onClick:c=>e.onClick(2,i),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:e.voidColor,size:e.iconSize,name:e.uncheckedIcon},null,8,["onClick","font-class-name","class-prefix","color","size","name"])):t.createCommentVNode("",!0)],12,em))),128))],34)}var Yl=x(_f,[["render",tm]]);const{create:nm,scope:om}=R("shortpassword"),lm=nm({props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},noButton:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6},isWrapTeleport:{type:Boolean,default:!0}},emits:["update:modelValue","update:visible","complete","change","ok","tips","close","cancel"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(om),l=o(e,["title","desc","tips"]),r=t.ref(e.modelValue),s=t.ref(),a=t.computed(()=>y(Number(e.length))),i=t.ref(e.visible);function c(){n("ok",r.value)}function u(){s.value.focus()}t.watch(()=>e.visible,g=>{i.value=g}),t.watch(()=>e.modelValue,g=>{r.value=g,n("update:modelValue",g)},{deep:!0,immediate:!0});function f(g){let S=g.target.value;S.length>a.value&&(S=S.slice(0,a.value),r.value=S),String(r.value).length===a.value&&n("complete",S),n("change",S),n("update:modelValue",S)}function m(){n("update:visible",!1),n("cancel")}function p(){n("update:visible",!1),n("close")}function y(g){return Math.min(Math.max(4,g),6)}function k(){n("tips")}function h(){let g=navigator.userAgent,d=g.indexOf("Android")>-1||g.indexOf("Linux")>-1;if(!!g.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))return{paddingRight:"1200px"};if(d)return{opacity:0,zindex:10}}return{...l,comLen:a,sureClick:c,realInput:r,realpwd:s,focus:u,range:y,changeValue:f,close:m,onTips:k,show:i,systemStyle:h,closeIcon:p}}}),am={class:"fox-shortpsd-title"},rm={class:"fox-shortpsd-subtitle"},sm={class:"fox-input-normalw"},im=t.createElementVNode("div",{class:"fox-input-site"},null,-1),cm={key:0,class:"fox-shortpsd-icon"},dm={class:"fox-shortpsd-message"},um={class:"fox-shortpsd-error"},fm={key:0,class:"fox-shortpsd-forget"},mm={key:0,class:"fox-shortpsd-footer"};function pm(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"32px 24px 28px 24px",borderRadius:"12px",textAlign:"center"},visible:e.show,"onUpdate:visible":n[6]||(n[6]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.closeIcon,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",am,t.toDisplayString(e.title),1),t.createElementVNode("view",rm,t.toDisplayString(e.desc),1),t.createElementVNode("div",sm,[t.withDirectives(t.createElementVNode("input",{ref:"realpwd",class:"fox-input-real",type:"number",maxlength:"6",style:t.normalizeStyle(e.systemStyle()),"onUpdate:modelValue":n[0]||(n[0]=c=>e.realInput=c),onInput:n[1]||(n[1]=(...c)=>e.changeValue&&e.changeValue(...c))},null,36),[[t.vModelText,e.realInput]]),im,t.createElementVNode("view",{class:"fox-shortpsd-fake",onClick:n[2]||(n[2]=(...c)=>e.focus&&e.focus(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-shortpsd-li",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",cm)):t.createCommentVNode("",!0)]))),128))])]),t.createElementVNode("view",dm,[t.createElementVNode("view",um,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",fm,[t.createVNode(a,{class:"icon",size:"11px",name:"tips"}),t.createElementVNode("view",{onClick:n[3]||(n[3]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)]),e.noButton?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",mm,[t.createElementVNode("view",{class:"fox-shortpsd-cancle",onClick:n[4]||(n[4]=(...c)=>e.close&&e.close(...c))},"\u53D6\u6D88"),t.createElementVNode("view",{class:"fox-shortpsd-sure",onClick:n[5]||(n[5]=(...c)=>e.sureClick&&e.sureClick(...c))},"\u786E\u8BA4")]))]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay","isWrapTeleport"])])}var Xl=x(lm,[["render",pm]]);class hm{constructor(){this.url="",this.name="file",this.fileType="image",this.method="post",this.xhrState=200,this.timeout=30*1e3,this.headers={},this.withCredentials=!1}}class gm{constructor(n){this.options=n}upload(){const n=this.options,o=new XMLHttpRequest;if(o.timeout=n.timeout,o.upload){o.upload.addEventListener("progress",l=>{n.onProgress?.(l,n)},!1),o.onreadystatechange=()=>{o.readyState===4&&(o.status==n.xhrState?n.onSuccess?.(o.responseText,n):n.onFailure?.(o.responseText,n))},o.withCredentials=n.withCredentials,o.open(n.method,n.url,!0);for(const[l,r]of Object.entries(n.headers))o.setRequestHeader(l,r);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(o,n):o.send(n.formData)}else console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest")}uploadTaro(n,o){const l=this.options;if(o==="WEB")this.upload();else if(l.beforeXhrUpload)l.beforeXhrUpload(n,l);else{const r=n({url:l.url,filePath:l.taroFilePath,fileType:l.fileType,header:{"Content-Type":"multipart/form-data",...l.headers},formData:l.formData,name:l.name,success(s){l.xhrState==s.statusCode?l.onSuccess?.(s,l):l.onFailure?.(s,l)},fail(s){l.onFailure?.(s,l)}});l.onStart?.(l),r.progress(s=>{l.onProgress?.(s,l)})}}}class ym{constructor(){this.status="ready",this.message="ready",this.uid=new Date().getTime().toString(),this.percentage=0,this.formData={}}}const{componentName:km,create:Sm,scope:bm}=R("uploader"),Cm=Sm({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:{}},uploadIcon:{type:String,default:"photograph"},uploadIconSize:{type:[String,Number],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}=ee.useFoxI18n(bm),l=t.reactive(e.fileList);let r=[];const s=t.computed(()=>({[km]:!0})),a=h=>{h.value=""},i=h=>{n("file-item-click",{fileItem:h})},c=(h,g)=>{const d=new hm;d.url=e.url,d.formData=h.formData,d.timeout=e.timeout*1,d.method=e.method,d.xhrState=e.xhrState,d.headers=e.headers,d.withCredentials=e.withCredentials;try{d.sourceFile=h.formData.get(e.name)}catch{}d.onStart=w=>{h.status="ready",h.message=o("readyUpload"),u(g),n("start",w)},d.onProgress=(w,N)=>{h.status="uploading",h.message=o("uploading"),h.percentage=(w.loaded/w.total*100).toFixed(0),n("progress",{event:w,option:N,percentage:h.percentage})},d.onSuccess=(w,N)=>{h.status="success",h.message=o("success"),n("success",{responseText:w,option:N,fileItem:h}),n("update:fileList",l)},d.onFailure=(w,N)=>{h.status="error",h.message=o("error"),n("failure",{responseText:w,option:N,fileItem:h})};let S=new gm(d);e.autoUpload?S.upload():r.push(new Promise((w,N)=>{w(S)}))},u=(h=-1)=>{h>-1?r.splice(h,1):r=[]},f=()=>{Promise.all(r).then(h=>{h.forEach(g=>g.upload())})},m=h=>{h.forEach((g,d)=>{const S=new FormData;for(const[N,b]of Object.entries(e.data))S.append(N,b);S.append(e.name,g);const w=t.reactive(new ym);if(w.name=g.name,w.status="ready",w.type=g.type,w.formData=S,w.message=o("waitingUpload"),c(w,d),e.isPreview&&g.type.includes("image")){const N=new FileReader;N.onload=b=>{w.url=b.target.result,l.push(w)},N.readAsDataURL(g)}else l.push(w)})},p=h=>{const g=e.maximum*1,d=e.maximize*1,S=new Array;h=h.filter(N=>N.size>d?(S.push(N),!1):!0),S.length&&n("oversize",S);let w=h.length+l.length;return w>g&&h.splice(h.length-(w-g)),h};return{onChange:h=>{if(e.disabled)return;const g=h.target;let{files:d}=g;if(e.beforeUpload)e.beforeUpload(d).then(S=>{const w=p(new Array().slice.call(S));m(w)});else{const S=p(new Array().slice.call(d));m(S)}n("change",{fileList:l,event:h}),e.clearInput&&a(g)},onDelete:(h,g)=>{u(g),e.beforeDelete(h,l)&&(l.splice(g,1),n("delete",{file:h,fileList:l,index:g}))},fileList:l,classes:s,fileItemClick:i,clearUploadQueue:u,submit:f}}}),wm={key:0,class:"fox-uploader__slot"},Nm=["accept","multiple","name","disabled"],Bm=["accept","multiple","name","disabled"],Vm={key:0,class:"fox-uploader__preview-img"},Am={key:0,class:"fox-uploader__preview__progress"},Em={class:"fox-uploader__preview__progress__msg"},Tm={key:1,class:"fox-uploader__preview__progress"},$m={class:"fox-uploader__preview__progress__msg"},Dm=["onClick","src"],Im={key:4,class:"fox-uploader__preview-img__file"},zm=["onClick"],qm={class:"tips"},Mm={key:1,class:"fox-uploader__preview-list"},Pm=["onClick"],Lm=["accept","multiple","name","disabled"],Om=["accept","multiple","name","disabled"];function Rm(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-progress");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",wm,[t.renderSlot(e.$slots,"default"),e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[0]||(n[0]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Nm)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[1]||(n[1]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Bm))],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:c.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Vm,[c.status=="ready"?(t.openBlock(),t.createElementBlock("view",Am,[t.createElementVNode("view",Em,t.toDisplayString(c.message),1)])):c.status!="success"?(t.openBlock(),t.createElementBlock("view",Tm,[t.createVNode(a,{color:"#fff",name:c.status=="error"?"failure":"loading"},null,8,["name"]),t.createElementVNode("view",$m,t.toDisplayString(c.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createBlock(a,{key:2,onClick:f=>e.onDelete(c,u),class:"close",name:"failure"},null,8,["onClick"])):t.createCommentVNode("",!0),c.type.includes("image")&&c.url?(t.openBlock(),t.createElementBlock("img",{key:3,class:"fox-uploader__preview-img__c",onClick:f=>e.fileItemClick(c),src:c.url},null,8,Dm)):(t.openBlock(),t.createElementBlock("view",Im,[t.createElementVNode("view",{onClick:f=>e.fileItemClick(c),class:"fox-uploader__preview-img__file__name"},[t.createVNode(a,{color:"#808080",name:"link"}),t.createTextVNode("\xA0"+t.toDisplayString(c.name),1)],8,zm)])),t.createElementVNode("view",qm,t.toDisplayString(c.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Mm,[t.createElementVNode("view",{onClick:f=>e.fileItemClick(c),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[c.status]])},[t.createVNode(a,{name:"link"}),t.createTextVNode("\xA0"+t.toDisplayString(c.name),1)],10,Pm),t.createVNode(a,{class:"fox-uploader__preview-img__file__del",onClick:f=>e.onDelete(c,u),color:"#808080",name:"del"},null,8,["onClick"]),c.status=="uploading"?(t.openBlock(),t.createBlock(i,{key:0,size:"small",percentage:c.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.createVNode(a,{size:e.uploadIconSize,color:"#808080",name:e.uploadIcon},null,8,["size","name"]),e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[2]||(n[2]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Lm)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[3]||(n[3]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Om))],2)):t.createCommentVNode("",!0)],2)}var vl=x(Cm,[["render",Rm]]),Fm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWd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2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K";const{create:Hm,scope:Km}=R("numberkeyboard"),xm=Hm({props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},value:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},isWrapTeleport:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},popClass:{type:String,default:""}},emits:["input","delete","close","update:value"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(Km),l=o(e,["confirmText"]),r=t.ref(void 0),s=t.ref(e.visible),a=t.ref();function i(){const{customKey:h}=e;let g={id:"lock",type:"lock"},d=Array.isArray(h)?h:[h];return d.length===1&&(g={id:d[0],type:"custom"}),[...c(),g,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const h=[];for(let g=1;g<=9;g++)h.push({id:g,type:"number"});return e.randomKeys?h.sort(()=>Math.random()>.5?1:-1):h}function u(){const h=c(),{customKey:g}=e;let d=Array.isArray(g)?g:[g];return d.length>2&&(d=[d[0],d[1]]),d.length==2&&e.title&&e.type!="rightColumn"&&(d=[d[0]]),d.length===1?e.title&&e.type!="rightColumn"?h.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):h.push({id:0,type:"number"},{id:d[0],type:"custom"}):d.length===2&&h.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:d[1],type:"custom"}),h}const f=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i());t.watch(()=>e.visible,h=>{s.value=h});function m(h,g){g.stopPropagation(),r.value=h.id,(h.type=="number"||h.type=="custom")&&(n("input",h.id),e.value.length<e.maxlength&&n("update:value",e.value+h.id)),h.type=="lock"&&k(),h.type=="delete"&&(n("delete"),n("update:value",e.value.slice(0,e.value.length-1)))}function p(h,g){g.stopPropagation()}function y(h){h.preventDefault(),r.value=void 0}function k(){n("close")}return{...l,delImg:Fm,lockImg:Um,clickKeyIndex:r,defaultKey:i,closeBoard:k,onTouchEnd:y,onTouchMove:p,onTouchstart:m,keysList:f,genCustomKeys:u,getBasicKeys:c,root:a,show:s}}}),jm={class:"fox-numberkeyboard",ref:"root"},Wm={key:0,class:"number-board-header"},Ym={class:"tit"},Xm={class:"number-board-body"},vm={class:"number-board"},Qm=["onTouchstart","onTouchmove"],Gm=["src"],Zm=["src"],Jm={key:0,class:"number-board-sidebar"},_m={class:"key-board-wrapper"},ep=["src"];function tp(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.show,"onUpdate:visible":n[6]||(n[6]=i=>e.show=i),position:"bottom",teleport:e.teleport,popClass:e.popClass,overlay:e.overlay,onClickOverlay:n[7]||(n[7]=i=>e.closeBoard()),isWrapTeleport:e.isWrapTeleport,"overlay-class":"fox-numberkeyboard-overlay"},{default:t.withCtx(()=>[t.createElementVNode("div",jm,[e.title?(t.openBlock(),t.createElementBlock("div",Wm,[t.createElementVNode("h3",Ym,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"keyboard-close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Xm,[t.createElementVNode("div",vm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["key-board-wrapper",{"key-board-wrapper-large":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}]),key:"key"+i.id},[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:i.id==e.clickKeyIndex},{lock:i.type=="lock"},{delete:i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:c=>e.onTouchMove(i,c),onTouchend:n[1]||(n[1]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,Gm)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Zm)):t.createCommentVNode("",!0)],42,Qm)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Jm,[t.createElementVNode("div",_m,[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[2]||(n[2]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[3]||(n[3]=i=>e.onTouchMove({id:"delete",type:"delete"},i)),onTouchend:n[4]||(n[4]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,ep)],34)]),t.createElementVNode("div",{class:"key-board-wrapper key-board-finish",onClick:n[5]||(n[5]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["key","finish",{activeFinish:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])],512)]),_:1},8,["visible","teleport","popClass","overlay","isWrapTeleport"])}var Ql=x(xm,[["render",tp]]);const{componentName:np,create:op}=R("swipe"),lp=op({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=t.computed(()=>({[np]:!0})),l=S=>S.value?.clientWidth||0,r=t.ref(),s=t.computed(()=>l(r)),a=t.ref(),i=t.computed(()=>l(a));let c=!1,u="",f="";const m=t.reactive({offset:0,moving:!1}),p=(S="")=>{c=!0,S&&(m.offset=S==="left"?-i.value:s.value),n("open",{name:e.name,position:u||S})},y=()=>{m.offset=0,c=!1,n("close",{name:e.name,position:u})},k=t.computed(()=>({transform:`translate3d(${m.offset}px, 0, 0)`})),h=S=>{u=S>0?"right":"left";let w=S;switch(u){case"left":c&&f===u?w=-i.value:w=Math.abs(S)>i.value?-i.value:S;break;case"right":c&&f===u?w=s.value:w=Math.abs(S)>s.value?s.value:S;break}m.offset=w},g=et();return{classes:o,touchStyle:k,...{onTouchStart(S){e.disabled||g.start(S)},onTouchMove(S){e.disabled||(g.move(S),g.isHorizontal()&&(m.moving=!0,h(g.deltaX.value),e.touchMovePreventDefault&&S.preventDefault(),e.touchMoveStopPropagation&&S.stopPropagation()))},onTouchEnd(){if(m.moving)switch(m.moving=!1,f=u,u){case"left":Math.abs(m.offset)<=i.value/2?y():(m.offset=-i.value,p());break;case"right":Math.abs(m.offset)<=s.value/2?y():(m.offset=s.value,p());break}}},leftRef:r,rightRef:a,open:p,close:y}}}),ap={class:"fox-swipe__left",ref:"leftRef"},rp={class:"fox-swipe__content"},sp={class:"fox-swipe__right",ref:"rightRef"};function ip(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style: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))},[t.createElementVNode("view",ap,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",rp,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",sp,[t.renderSlot(e.$slots,"right")],512)],38)}var Gl=x(lp,[["render",ip]]);const{componentName:cp,create:dp}=R("actionsheet"),up=dp({props:{...ze,cancelText:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},isWrapTeleport:{type:Boolean,default:!0},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[cp]:!0}));return{isHighlight:i=>e.chooseTagValue&&e.chooseTagValue===i[e.optionTag]?e.color:"#1a1a1a",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(i,c)=>{i.disable||(n("choose",i,c),n("update:visible",!1))},close:()=>{n("close"),n("update:visible",!1)},classes:o}}}),fp={class:"fox-actionsheet-panel"},mp={key:0,class:"fox-actionsheet-title"},pp={key:0,class:"fox-actionsheet-item desc"},hp={key:1,class:"fox-actionsheet-menu"},gp=["onClick"],yp={class:"subdesc"};function kp(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(a,{"pop-class":"popclass",visible:e.visible,isWrapTeleport:e.isWrapTeleport,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",fp,[e.title?(t.openBlock(),t.createElementBlock("view",mp,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},()=>[e.description?(t.openBlock(),t.createElementBlock("view",pp,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",hp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-actionsheet-item",{"fox-actionsheet-item-disabled":i.disable}]),style:t.normalizeStyle({color:e.isHighlight(i)}),key:c,onClick:u=>e.chooseItem(i,c)},[t.createTextVNode(t.toDisplayString(i[e.optionTag]),1),t.createElementVNode("view",yp,t.toDisplayString(i[e.optionSubTag]),1)],14,gp))),128))])):t.createCommentVNode("",!0),e.cancelText?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-actionsheet-cancel",onClick:n[0]||(n[0]=(...i)=>e.cancelActionSheet&&e.cancelActionSheet(...i))},t.toDisplayString(e.cancelText),1)):t.createCommentVNode("",!0)])])]),_:3},8,["visible","isWrapTeleport","onClickOverlay","closeOnClickOverlay"])],2)}var Zl=x(up,[["render",kp]]);const{componentName:Sp,create:bp}=R("backtop"),Cp=bp({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String,Object],default:"body"},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}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[Sp]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function a(k=0){o.scrollEl instanceof Window?window.scrollTo(0,k):o.scrollEl.scrollTop=k}function i(){let k=m()(function h(){var g=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=g*-o.scrollTop/e.duration+o.scrollTop;a(d),k=m()(h),(g==e.duration||d==0)&&window.cancelAnimationFrame(k)})}function c(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function u(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function f(){window.cancelAnimationFrame=window.webkitCancelAnimationFrame}function m(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(k){window.setTimeout(k,1e3/60)}}function p(k){o.startTime=+new Date,e.isAnimation&&e.duration>0?i():a(),n("click",k)}function y(){if(!e.elId)return;let k;typeof e.elId=="string"?k=document.getElementById(e.elId):k=e.elId,o.scrollEl=k,c(),f()}return t.onMounted(()=>{e.distance==0&&(o.backTop=!0),y()}),t.onUnmounted(()=>{u()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,y())}),t.onDeactivated(()=>{o.keepAlive=!0,u()}),{state:o,classes:l,style:r,click:p}}});function wp(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.click&&e.click(...i),["stop"]))},[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(a,{size:"19px",class:"fox-backtop-main",name:"top"})])],6)}var Jl=x(Cp,[["render",wp]]);const{componentName:Np,create:Bp}=R("drag"),Vp=Bp({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=t.ref(),l=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=t.computed(()=>({[Np]:!0}));function s(){const m=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=m.clientWidth,l.screenHeight=m.clientHeight}function a(m){l.boundary.left?+m.style.left.split("px")[0]>l.boundary.left?(m.style.left=+m.style.left.split("px")[0]-10+"px",qe(()=>{a(m)})):m.style.left=`${l.boundary.left}px`:+m.style.left.split("px")[0]>10?(m.style.left=+m.style.left.split("px")[0]-10+"px",qe(()=>{a(m)})):m.style.left="0px"}function i(m,p){p-parseInt(m.style.left.split("px")[0])>10?(m.style.left=parseInt(m.style.left.split("px")[0])+10+"px",qe(()=>{i(m,p)})):m.style.left=p+"px"}function c(m){m.preventDefault();const p=m.currentTarget;if(m.targetTouches.length===1){const y=m.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 k=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>k?l.xPum=k: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 u(m){const p=m.currentTarget;let k=m.changedTouches[0].clientX;const h=l.screenWidth-l.elWidth-l.boundary.right;k>h?k=h:k<l.boundary.left?k=l.boundary.left:k=k<l.screenWidth/2?l.boundary.left:h,e.direction!="y"&&e.attract&&(k<l.screenWidth/2?qe(()=>{a(p)}):qe(()=>{i(p,h)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function f(m){const p=m.currentTarget,y=m.touches[0],k=m.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=k.clientX-l.position.x,l.ny=k.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return t.onMounted(()=>{s(),l.boundary=e.boundary}),t.onActivated(()=>{l.keepAlive&&(l.keepAlive=!1)}),t.onDeactivated(()=>{l.keepAlive=!0,o.removeEventListener("touchstart",f),o.removeEventListener("touchmove",c),o.removeEventListener("touchend",u)}),{classes:r,myDrag:o,touchStart:f,touchMove:c,touchEnd:u}}});function Ap(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class: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))},[t.renderSlot(e.$slots,"default")],34)}var _l=x(Vp,[["render",Ap]]);const{componentName:Ep,create:Tp,scope:$p}=R("dialog"),Dp=Tp({inheritAttrs:!1,components:{[me.name]:me,[Ke.name]:Ke},props:{...ze,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n($p),l=o(e,["confirmText","cancelText"]),r=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&Re&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,f=>{r.value=f,f&&n("opened")});const s=t.computed(()=>({[Ep]:!0,[e.customClass]:!0})),a=f=>{n("update",f),n("update:visible",f)},i=f=>{if(e.beforeClose){const m=e.beforeClose(f);X.isPromise(m)&&m.then(p=>{p&&(a(!1),n("closed"))})}else a(!1),n("closed")};return{...l,closed:i,classes:s,onCancel:()=>{n("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{n("confirm"),i("confirm")},showPopup:r}}}),Ip={key:0,class:"fox-dialog__header"},zp=["innerHTML"];function qp(e,n,o,l,r,s){const a=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",Ip,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,zp)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}var ea=x(Dp,[["render",qp]]);class Mp{constructor(){this.title="",this.content="",this.cancelText="",this.confirmText="",this.textAlign="center",this.customClass="",this.overlayStyle={},this.overlayClass="",this.popStyle={},this.popClass="",this.teleport="body",this.id=new Date().getTime(),this.footerDirection="horizontal",this.onUpdate=n=>{},this.onConfirm=()=>{},this.onCancel=()=>{},this.onOpened=()=>{},this.onClosed=()=>{},this.visible=!0,this.noFooter=!1,this.noConfirmBtn=!1,this.noCancelBtn=!1,this.confrimBtnDisabled=!1,this.closeOnPopstate=!1,this.lockScroll=!1}}class Pp{constructor(n){this.options=new Mp,this.close=()=>{},this.setDefaultOptions=i=>{},this.resetDefaultOptions=()=>{};let o=Object.assign(this.options,n),l=document.body,r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const s=document.createElement("view");s.id="dialog-"+o.id;const a={setup(){return o.onUpdate=i=>{i==!1&&l.removeChild(s)},o?.onOpened&&o?.onOpened(),o.teleport=`#${s.id}`,()=>t.h(ea,o)}};this.instance=t.createVNode(a),l.appendChild(s),t.render(this.instance,s)}}const It=function(e){return new Pp(e)};It.install=e=>{e.use(ea),e.config.globalProperties.$dialog=It};const{componentName:Lp,create:Op,scope:Rp}=R("infiniteloading"),Fp=Op({props:{hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},pullIcon:{type:String,default:"refresh"},pullClass:{type:String},pullText:{type:String,default:""},loadIcon:{type:String,default:"refresh"},loadClass:{type:String},loadText:{type:String,default:""},loadMoreText:{type:String,default:"..."},useWindow:{type:Boolean,default:!0},containerId:{type:String,default:""},useCapture:{type:Boolean,default:!1},isOpenRefresh:{type:Boolean,default:!1}},emits:["scroll-change","load-more","refresh"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=ee.useFoxI18n(Rp),r=l(e,["pullText","loadText","loadMoreText"]),s=t.reactive({scrollEl:window,scroller:null,refreshTop:null,beforeScrollTop:0,isTouching:!1,isInfiniting:!1,refreshMaxH:0,y:0,x:0,distance:0}),a=t.computed(()=>({[Lp]:!0})),i=t.computed(()=>({height:s.distance<0?"0px":`${s.distance}px`,transition:s.isTouching?"height 0s cubic-bezier(0.25,0.1,0.25,1)":"height 0.2s cubic-bezier(0.25,0.1,0.25,1)"})),c=()=>window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(b){window.setTimeout(b,1e3/60)},u=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,f=b=>b?b.offsetTop+f(b.offsetParent):0,m=()=>{let b=0,C=0,E="down";const F=u();if(e.useWindow)s.scroller&&(b=f(s.scroller)+s.scroller.offsetHeight-F-window.innerHeight),C=F;else{const{scrollHeight:D,clientHeight:$,scrollTop:q}=s.scrollEl;b=D-$-q,C=q}return s.beforeScrollTop>C?E="up":E="down",s.beforeScrollTop=C,n("scroll-change",C),b<=e.threshold&&E=="down"},p=()=>{s.isInfiniting=!1},y=()=>{c()(()=>{if(!m()||!e.hasMore||s.isInfiniting)return!1;s.isInfiniting=!0,n("load-more",p)})},k=()=>{s.scrollEl.addEventListener("scroll",y,e.useCapture)},h=()=>{s.distance=0,s.isTouching=!1},g=b=>{if(s.beforeScrollTop==0&&!s.isTouching&&e.isOpenRefresh){s.y=b.touches[0].pageY,s.isTouching=!0;const C=s.refreshTop.firstElementChild.offsetHeight;s.refreshMaxH=Math.floor(C*1+10)}},d=b=>{s.distance=b.touches[0].pageY-s.y,s.distance>0&&s.isTouching?(b.preventDefault(),s.distance>=s.refreshMaxH&&(s.distance=s.refreshMaxH)):(s.distance=0,s.isTouching=!1)},S=()=>{s.distance<s.refreshMaxH?s.distance=0:n("refresh",h)},w=b=>e.containerId?document.querySelector(`#${e.containerId}`):b&&b.parentNode;t.onMounted(()=>{const b=w(s.scroller);s.scrollEl=e.useWindow?window:b,k()}),t.onUnmounted(()=>{s.scrollEl.removeEventListener("scroll",y,e.useCapture)});const N=t.ref(!1);return t.onActivated(()=>{N.value&&(N.value=!1,k())}),t.onDeactivated(()=>{N.value=!0,s.scrollEl.removeEventListener("scroll",y,e.useCapture)}),{...r,classes:a,...t.toRefs(s),touchStart:g,touchMove:d,touchEnd:S,getStyle:i,slots:o}}}),Up={class:"top-box"},Hp={class:"top-text"},Kp={class:"fox-infinite-container"},xp={class:"fox-infinite-bottom"},jp={key:0,class:"bottom-box"},Wp={class:"bottom-text"},Yp={key:0,class:"tips"};function Xp(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:n[0]||(n[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("view",{class:"fox-infinite-top",ref:"refreshTop",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",Up,[t.createVNode(a,{class:t.normalizeClass(["top-img",e.pullClass]),name:e.pullIcon},null,8,["class","name"]),t.createElementVNode("view",Hp,t.toDisplayString(e.pullText),1)])],4),t.createElementVNode("view",Kp,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",xp,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",jp,[e.slots.loading?t.renderSlot(e.$slots,"loading",{key:1}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(a,{class:t.normalizeClass(["bottom-img",e.loadClass]),name:e.loadIcon},null,8,["class","name"]),t.createElementVNode("view",Wp,t.toDisplayString(e.loadText),1)],64))])):e.hasMore?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.slots.finished?t.renderSlot(e.$slots,"finished",{key:1}):(t.openBlock(),t.createElementBlock("view",Yp,t.toDisplayString(e.loadMoreText),1))],64))])],34)}var ta=x(Fp,[["render",Xp]]);const{componentName:Q0,create:vp}=R("notify"),Qp=vp({components:{[me.name]:me},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},modelVisible:{type:Boolean,default:!1},position:{type:String,default:"top"},isWrapTeleport:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},setup(e,{slots:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{});const r=t.ref(e.modelVisible),s=()=>{e.onClick&&e.onClick()},a=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},c=()=>{a(),e.duration&&(o=setTimeout(()=>{i()},e.duration))};return e.duration&&c(),t.watch(()=>e.duration,f=>{f&&c()}),{state:l,hide:i,onAfterLeave:()=>{a(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:s,showPopup:r}}});function Gp(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),position:e.position,overlay:!1,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","isWrapTeleport"])}var Cn=x(Qp,[["render",Gp]]);const wn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:""};let xe=[],st=[];const na=e=>{if(e){const n=document.getElementById(e);st=st.filter(o=>o.id!==e),xe=xe.filter(o=>o!==e),n&&document.body.removeChild(n)}else xe.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),st=[],xe=[]},Zp=e=>{const n=document.getElementById(e.id);if(n){const o=st.find(r=>r.id===e.id);o?e={...wn,...o,...e}:e={...wn,...e};const l=t.createVNode(Cn,e);return t.render(l,n),l.component.ctx}},it=e=>{e.unmount=na;let n;if(e.id){if(n=e.id,xe.find(s=>s===e.id))return Zp(e)}else n=new Date().getTime()+"";e={...wn,...e},e.id=n,xe.push(e.id),st.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{document.body.removeChild(o)},e.duration)}),()=>t.h(Cn,e)}},r=t.createVNode(l);document.body.appendChild(o),t.render(r,o)},ct=e=>{if(!e){console.warn("[NutUI Notify]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Nn={text(e,n={}){return ct(e),it({...n,msg:e})},primary(e,n={}){return ct(e),it({...n,msg:e,type:"primary"})},success(e,n={}){return ct(e),it({...n,msg:e,type:"success"})},danger(e,n={}){return ct(e),it({...n,msg:e,type:"danger"})},warn(e,n={}){return ct(e),it({...n,msg:e,type:"warning"})},hide(){na()},install(e){e.use(Cn),e.config.globalProperties.$notify=Nn}},{create:Jp}=R("toast"),_p=Jp({components:{[oe.name]:oe},props:{id:String,msg:String,duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:String,customClass:String,bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:String,default:"20"},icon:String,textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:Function,unmount:Function,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;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},s=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{s()},e.duration))},i=()=>{e.closeOnClickOverlay&&(s(),n("close"))};e.duration&&a(),t.watch(()=>e.duration,p=>{p&&a()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:s,clickCover:i,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:f,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),eh={key:1,class:"fox-toast-title"},th=["innerHTML"];function nh(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[t.createVNode(a,{size:e.iconSize,color:"#ffffff",name:e.icon},null,8,["size","name"])],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",eh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,th)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Bn=x(_p,[["render",nh]]);const Vn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let je=[],dt=[];const oa=e=>{if(e){const n=document.getElementById(e);dt=dt.filter(o=>o.id!==e),je=je.filter(o=>o!==e),n&&document.body.removeChild(n)}else je.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),dt=[],je=[]},oh=e=>{const n=document.getElementById(e.id);if(n){const o=dt.find(r=>r.id===e.id);o?e={...Vn,...o,...e}:e={...Vn,...e};const l=t.createVNode(Bn,e);return t.render(l,n),l.component.ctx}},ut=e=>{e.unmount=oa;let n;if(e.id){if(n=e.id,je.find(r=>r===e.id))return oh(e)}else n=new Date().getTime()+"";e={...Vn,...e},e.id=n,je.push(e.id),dt.push(e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Bn,e);return t.render(l,o),document.body.appendChild(o),l.component.ctx},zt=e=>{if(!e){console.warn("[FoxUI Toast]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},An={text(e,n={}){return zt(e),ut({...n,type:"text",msg:e})},success(e,n={}){return zt(e),ut({icon:"success",...n,msg:e,type:"success"})},fail(e,n={}){return zt(e),ut({icon:"failure",...n,msg:e,type:"fail"})},warn(e,n={}){return zt(e),ut({icon:"tips",...n,msg:e,type:"warn"})},loading(e,n={}){return ut({icon:"loading",...n,msg:e,type:"loading"})},hide(e){oa(e)},install(e){e.use(Bn),e.config.globalProperties.$toast=An}},{componentName:G0,create:lh}=R("audio"),ah=lh({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:{},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let h=0;h<k.length;h++)document.addEventListener(k[h],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(h){console.log(h.message)}});const r=k=>{const h=o.value;e.autoplay&&h&&h.paused&&h.play(),l.second=h.duration,l.duration=y(h.duration),n("can-play",k)},s=k=>{l.currentTime=parseInt(k.target.currentTime)},a=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},i=()=>{const k=o.value;l.playing?(k.pause(),l.handPlaying=!1):(k.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},c=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},u=k=>{l.currentDuration=y(k),l.percent=k/l.second*100},f=()=>{l.playing=!1,n("ended")},m=k=>{const h=o.value;h.currentTime=l.second*k/100,n("changeProgress",h.currentTime)},p=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=k=>{if(!k)return"00:00:00";let h=parseInt(k),g=Math.floor(h/3600),d=Math.floor((h-g*3600)/60),S=h-g*3600-d*60,w="";return w+=("0"+g.toString()).slice(-2)+":",w+=("0"+d.toString()).slice(-2)+":",w+=("0"+S.toString()).slice(-2),w};return t.watch(()=>l.currentTime,k=>{u(k)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:p,forward:c,fastBack:a,changeStatus:i}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:a,forward:c,changeStatus:i,progressChange:m,audioEnd:f,onTimeupdate:s,handleMute:p,onCanplay:r}}}),rh={class:"fox-audio"},sh={key:0,class:"progress-wrapper"},ih={class:"time"},ch={class:"progress-bar-wrapper"},dh=t.createElementVNode("div",{class:"custom-button"},null,-1),uh={class:"time"},fh={key:1,class:"fox-audio-icon"},mh=["controls","src","preload","autoplay","loop","muted"];function ph(e,n,o,l,r,s){const a=t.resolveComponent("fox-range"),i=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",rh,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",sh,[t.createElementVNode("div",ih,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",ch,[t.createVNode(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[dh]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",uh,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",fh,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio-icon-box",e.playing?"fox-audio-icon-play":"fox-audio-icon-stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,name:"service",class:"fox-icon-am-rotate fox-icon-am-infinite"})):t.createCommentVNode("",!0),e.playing?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:1,name:"service"}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:n[4]||(n[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:n[5]||(n[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,mh)])}var la=x(ah,[["render",ph]]);const{componentName:Z0,create:hh,scope:gh}=R("audio-operate"),yh=hh({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(gh),l=t.inject("audioParent"),r=t.reactive(l),s=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(r),customSlot:s,t:o}}}),kh={class:"fox-audio-operate"};function Sh(e,n,o,l,r,s){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",kh,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}var aa=x(yh,[["render",Sh]]);const{componentName:bh,create:Ch}=R("avatar"),wh=Ch({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"},url:{type:String,default:""},alt:{type:String,default:""},icon:{type:String,default:""}},emits:["active-avatar","onError"],setup(e,{emit:n,slots:o}){const{size:l,shape:r,bgColor:s,color:a,icon:i}=t.toRefs(e),c=["large","normal","small"],u=t.inject("avatarGroup",null),f=t.ref(null),m=t.reactive({lightTheme:!1}),p=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const b=u?.avatarGroupRef?.value?.children;b&&S(b)});const y=t.computed(()=>({[bh]:!0,[`fox-avatar-${l.value||u?.props?.size||"normal"}`]:!0,[`fox-avatar-${r.value||u?.props?.shape||"normal"}`]:!0})),k=t.computed(()=>({width:c.indexOf(l.value)>-1?"":`${l.value}px`,height:c.indexOf(l.value)>-1?"":`${l.value}px`,backgroundColor:`${s.value}`,color:`${a.value}`,marginLeft:p.index!=1&&(u?.props?.span?`${u?.props?.span}px`:""),zIndex:u?.props?.zIndex=="right"?`${Math.abs(p.maxIndex-p.index)}`:""})),h=t.computed(()=>({backgroundColor:`${u?.props?.maxBgColor}`,color:`${u?.props?.maxColor}`})),g=t.computed(()=>i.value?i.value:""),d=t.computed(()=>o.default),S=b=>{p.maxIndex=b.length;for(let C=0;C<b.length;C++)b[C]&&b[C].classList&&b[C].classList[0]=="fox-avatar"&&b[C].setAttribute("data-index",C+1);p.index=f?.value?.dataset?.index,p.index==p.maxIndex&&p.index!=u?.props?.maxCount&&(p.showMax=!0)};return{classes:y,styles:k,iconStyles:g,isShowText:d,maxStyles:h,activeAvatar:b=>{n("active-avatar",b)},onError:b=>{n("onError",b)},avatarGroup:u,visible:m,avatarRef:f,...t.toRefs(p)}}}),Nh=["src","alt"],Bh={key:2,class:"text"},Vh={key:1,class:"text"};function Ah(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),onClick:n[1]||(n[1]=i=>e.activeAvatar(e.e)),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.url?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.url,alt:e.alt,onError:n[0]||(n[0]=(...i)=>e.onError&&e.onError(...i))},null,40,Nh)):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.iconStyles},null,8,["name"])):t.createCommentVNode("",!0),e.isShowText?(t.openBlock(),t.createElementBlock("view",Bh,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.showMax?(t.openBlock(),t.createElementBlock("view",Vh,t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}var ra=x(wh,[["render",Ah]]);const{componentName:Eh,create:Th}=R("avatar-group"),$h=Th({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}){t.toRefs(e);const l=t.ref(null),r=t.ref(0),s=t.computed(()=>({[Eh]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:s,avatarGroupRef:l}}});function Dh(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}var sa=x($h,[["render",Dh]]);const{componentName:Ih,create:zh}=R("list"),qh=zh({props:{height:{type:[Number],default:50},listData:{type:Array,default:()=>[]},containerHeight:{type:[Number],default:-1}},emits:["scroll","scroll-bottom"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({startOffset:0,start:0,list:e.listData.slice()}),r=Ne(e,"containerHeight",p=>p<=0?p:fe(p));t.onMounted(()=>{if(r.value==-1){const p=Ce(o.value);r.value=p.height}});const s=t.computed(()=>r.value==-1?0:Math.ceil(r.value/e.height)),a=t.computed(()=>l.start+s.value),i=t.computed(()=>`translate3d(0, ${l.startOffset}px, 0)`),c=t.computed(()=>({[Ih]:!0})),u=t.computed(()=>l.list.length*e.height),f=t.computed(()=>l.list.slice(l.start,Math.min(a.value,l.list.length))),m=()=>{const p=o.value?.scrollTop;l.start=Math.floor(p/e.height),a.value>l.list.length&&(n("scroll"),n("scroll-bottom")),l.startOffset=p-p%e.height};return t.watch(()=>e.listData,()=>{l.list=e.listData.slice()}),{...t.toRefs(l),list:o,getTransform:i,listHeight:u,visibleData:f,classes:c,handleScrollEvent:m}}});function Mh(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onScrollPassive:n[0]||(n[0]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.listHeight+"px"})},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",style:t.normalizeStyle({height:e.height+"px"}),key:a},[t.renderSlot(e.$slots,"default",{item:a,index:i})],4))),128))],4)],34)}var ia=x(qh,[["render",Mh]]);const{create:Ph}=R("progress"),Lh=Ph({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:{tyep:String,default:""},textBackground:{tyep:String,default:""},iconName:{type:String,default:"checked"},iconColor:{type:String,default:"#439422"},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,o=t.ref(e.strokeWidth+"px"),l=t.ref(),r=t.ref(),s=t.computed(()=>({width:e.percentage+"%",background:e.strokeColor||""})),a=t.computed(()=>({color:e.textColor||""}));return{height:o,bgStyle:s,textStyle:a,progressOuter:l,insideText:r,slotDefault:n}}}),Oh={class:"fox-progress"};function Rh(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",Oh,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},[e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text",style:t.normalizeStyle({lineHeight:e.height})},[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?(t.openBlock(),t.createBlock(a,{key:1,size:"16px",name:e.iconName,color:e.iconColor},null,8,["name","color"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)])}var ca=x(Lh,[["render",Rh]]);const{componentName:Fh,create:Uh}=R("circleprogress"),Hh=Uh({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=!!t.useSlots().default,l=Math.random().toString(36).slice(-8),r=t.computed(()=>({[Fh]:!0})),s=t.computed(()=>{const f=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${f} 0 90 a 45 45 0 1, ${f} 0 -90`}),a=t.computed(()=>X.isObject(e.color)?`url(#${l})`:e.color),i=t.computed(()=>{let f=283,m=f*Number(e.progress)/100;return{stroke:X.isObject(e.color)?`url(#${l})`:e.color,strokeDasharray:`${m}px ${f}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!X.isObject(e.color))return;let f=e.color;const m=Object.keys(f).sort((y,k)=>parseFloat(y)-parseFloat(k));let p=[];return m.map((y,k)=>{let h={key:"",value:""};h.key=y,h.value=f[y],p.push(h)}),p});return{classes:r,hoverStyle:i,pathStyle:c,path:s,hoverColor:a,stop:u,slotDefault:o,refRandomId:l}}}),Kh={viewBox:"0 0 100 100"},xh=["id"],jh=["offset","stop-color"],Wh=["d","stroke-width"],Yh=["d","stroke","stroke-linecap","stroke-width"],Xh={class:"fox-circleprogress-text"},vh={key:0};function Qh(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Kh,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(a,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:a.key,"stop-color":a.value},null,8,jh))),128))],8,xh)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Wh),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Yh)])),t.createElementVNode("div",Xh,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",vh,t.toDisplayString(e.progress)+"%",1))])],6)}var da=x(Hh,[["render",Qh]]);const{componentName:Gh,create:Zh}=R("noticebar"),Jh=Zh({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:String,default:""},rightIcon:{type:String,default:""},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)}},emits:["click","close"],setup(e,{emit:n,slots:o}){const l=t.ref(null),r=t.ref(null),s=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null}),a=t.computed(()=>({[Gh]:!0})),i=t.computed(()=>s.isCanScroll==null?e.wrapable:!s.isCanScroll&&!e.wrapable),c=t.computed(()=>e.leftIcon!="close"),u=t.computed(()=>{let E={};return e.color&&(E.color=e.color),e.background&&(E.background=e.background),e.direction=="vertical"&&(E.height=`${e.height}px`),E}),f=t.computed(()=>({animationDelay:(s.firstRound?e.delay:0)+"s",animationDuration:s.duration+"s",transform:`translateX(${s.firstRound?0:s.wrapWidth+"px"})`})),m=t.computed(()=>{let E="";return e.leftIcon&&(E=e.leftIcon),E}),p=t.computed(()=>{let E={};if(e.complexAm)E={transform:`translateY(${s.distance}px)`};else if(s.animate){let F=~~(e.height/e.speed/4);E={transition:`all ${F==0?~~(e.height/e.speed):F}s`,"margin-top":`-${e.height}px`}}return E});t.watch(()=>e.text,E=>{y()}),t.watch(()=>e.list,E=>{s.scrollList=[].concat(E)});const y=E=>{s.showNoticeBar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const F=l.value.getBoundingClientRect().width,D=r.value.getBoundingClientRect().width;s.isCanScroll=e.scrollable==null?D>F:e.scrollable,console.log(111,s.isCanScroll),s.isCanScroll?(s.wrapWidth=F,s.offsetWidth=D,s.duration=D/e.speed,s.animationClass="play"):s.animationClass=""},0)},k=E=>{n("click",E)},h=E=>{e.closeMode&&(s.showNoticeBar=!e.closeMode),n("close",E)},g=()=>{s.firstRound=!1,setTimeout(()=>{s.duration=(s.offsetWidth+s.wrapWidth)/e.speed,s.animationClass="play-infinite"},0)},d=()=>{S(),s.timer=setInterval(S,~~(e.height/e.speed/4*1e3)+e.standTime)},S=()=>{s.animate=!0,setTimeout(()=>{s.scrollList.push(s.scrollList[0]),s.scrollList.shift(),s.animate=!1},~~(e.height/e.speed/4*1e3))},w=()=>{s.timer=setInterval(()=>{let E=100;for(let F=0;F<E;F++)N(F,!(F<E-1))},e.standTime+100*e.speed)},N=(E,F)=>{setTimeout(()=>{s.distance-=e.height/100,F&&(s.scrollList.push(s.scrollList[0]),s.scrollList.shift(),s.distance=0)},E*e.speed)},b=E=>{n("click",E)},C=()=>{n("close",s.scrollList[0])};return t.onMounted(()=>{e.direction=="vertical"?(o.default?s.scrollList=[].concat(o.default()[0].children):s.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?w():d()},e.standTime)):y(e.text)}),t.onActivated(()=>{s.keepAlive&&(s.keepAlive=!1)}),t.onDeactivated(()=>{s.keepAlive=!0,clearInterval(s.timer)}),t.onUnmounted(()=>{clearInterval(s.timer)}),{...t.toRefs(e),...t.toRefs(s),isEllipsis:i,classes:a,iconShow:c,barStyle:u,contentStyle:f,iconBg:m,horseLampStyle:p,wrap:l,content:r,handleClick:k,onClickIcon:h,onAnimationEnd:g,go:b,handleClickIcon:C,slots:o}}}),_h={ref:"wrap",class:"wrap"},eg=["onClick"];function tg(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar-page",{withicon:e.closeMode,close:e.closeMode,wrapable:e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.iconShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"left-icon",style:t.normalizeStyle({"background-image":`url(${e.iconBg})`})},[t.renderSlot(e.$slots,"left-icon",{},()=>[e.iconBg?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"notice",size:"16",color:e.color},null,8,["color"]))])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",_h,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(["content",e.animationClass,{"fox-ellipsis":e.isEllipsis}]),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c)),onWebkitAnimationEnd:n[1]||(n[1]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.rightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"right-icon",onClick:n[2]||(n[2]=t.withModifiers((...c)=>e.onClickIcon&&e.onClickIcon(...c),["stop"]))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(a,{name:e.rightIcon?e.rightIcon:"close",color:e.color},null,8,["name","color"])])])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticeBar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar-vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,u)=>(t.openBlock(),t.createBlock(i,{key:u,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:c},null,8,["style","item"]))),128))],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,u)=>(t.openBlock(),t.createElementBlock("li",{class:"horseLamp_list_item",key:u,style:t.normalizeStyle({height:e.height}),onClick:f=>e.go(c)},t.toDisplayString(c),13,eg))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=c=>!e.slots.rightIcon&&e.handleClickIcon())},[e.slots.rightIcon?t.renderSlot(e.$slots,"rightIcon",{key:0}):e.closeMode?(t.openBlock(),t.createBlock(a,{key:1,type:"cross",color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],2)}var ua=x(Jh,[["render",tg]]),ng="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+vr79t8Q4ODjs7e0+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZM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MWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==";const{componentName:J0,create:ag,scope:rg}=R("empty"),sg={empty:ng,error:og,network:lg},ig=ag({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ee.useFoxI18n(rg),o=n(e,["description"]),{image:l,imageSize:r}=t.toRefs(e),s=t.computed(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),i=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:sg[l.value];return{...o,imageUrl:i,imgStyle:s}}}),cg={class:"fox-empty"},dg=["src"],ug={key:1,class:"fox-empty-description"};function fg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",cg,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,dg)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",ug,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}var fa=x(ig,[["render",fg]]);const{create:mg,scope:pg}=R("video"),hg=mg({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"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(pg),l=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=t.ref(null),s=t.computed(()=>e.options.disabled);t.watch(()=>e.source,N=>{N.src&&t.nextTick(()=>{l.videoElm.load()})}),t.watch(()=>e.options,N=>{l.state.isMuted=N?N.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)),p(),l.showToolbox?i():(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",f))},i=()=>{const N=r.value,b=r.value.getElementsByClassName("progress")[0];l.player.$player=N,l.progressBar.progressElm=b,l.progressBar.pos=b.getBoundingClientRect(),l.videoSet.progress.width=Math.round(b.getBoundingClientRect().width)},c=()=>{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",()=>{u()}),l.videoElm.addEventListener("ended",f),n("play",l.videoElm)}catch{m()}else l.videoElm.pause(),n("pause",l.videoElm)},u=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},f=()=>{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)},m=()=>{l.state.isError=!0},p=()=>{l.state.vol=e.options.volume},y=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},k=()=>{},h=N=>{let C=N.targetTouches[0].pageX-l.progressBar.pos.left;C<=0&&(C=0),C>=l.videoSet.progress.width&&(C=l.videoSet.progress.width),l.videoSet.progress.current=C;let E=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&d(E,l.videoElm.duration)},g=N=>{let C=N.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=C;let E=C/l.videoSet.progress.width;l.videoElm.duration&&d(E,l.videoElm.duration)},d=(N,b)=>{l.videoElm.currentTime=Math.floor(N*b)},S=()=>{l.state.isError=!1,a()},w=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{a()}),{root:r,...t.toRefs(e),...t.toRefs(l),handleError:m,isDisabled:s,play:c,handleMuted:y,touchSlidSrart:k,touchSlidMove:h,touchSlidEnd:g,retry:S,fullScreen:w,t:o}}}),gg={class:"fox-video",ref:"videocon"},yg=["muted","autoplay","loop","poster","controls","preload"],kg=["src","type"],Sg={class:"current-time"},bg={class:"progress-container"},Cg={class:"progress",ref:"progressBar"},wg=[t.createElementVNode("div",{class:"move-handle"},null,-1)],Ng={class:"played",ref:"playedBar"},Bg={class:"duration-time"},Vg={class:"fox-video-error"},Ag={class:"lose"};function Eg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",gg,[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))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,kg)],40,yg),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"playing-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...a)=>e.play&&e.play(...a))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"show-control":!e.state.playing,"hide-control":e.state.playing}])},[t.createElementVNode("div",{class:"control-play-btn",onClick:n[3]||(n[3]=(...a)=>e.play&&e.play(...a))}),t.createElementVNode("div",Sg,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",bg,[t.createElementVNode("div",Cg,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"video-ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(a=>e.touchSlidSrart(a),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(a=>e.touchSlidEnd(a),["stop"]))},wg,36),t.createElementVNode("div",Ng,null,512)],512)]),t.createElementVNode("div",Bg,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),t.createElementVNode("div",{class:"fullscreen-icon",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Vg,[t.createElementVNode("p",Ag,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var We=x(hg,[["render",Eg]]);const{create:Tg,componentName:$g}=R("steps"),ma=Tg({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=t.reactive({children:[]}),r=t.computed(()=>{const i=$g;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),s=i=>{i&&l.children.push(i)},a=i=>{n("click-step",i)};return t.provide("parent",{relation:s,state:l,props:e,onEmit:a}),()=>t.h("view",{class:r.value},o.default?.())}}),{create:Dg,componentName:Ig}=R("step"),zg=Dg({props:{title:{type:String,default:""},content:{type:String,default:""},icon:{type:String,default:null},iconColor:{type:String,default:""},size:{type:[String,Number],default:"12px"}},emits:["click-step"],setup(e,{emit:n,slots:o}){const{proxy:l}=t.getCurrentInstance(),r=t.inject("parent");r.relation(l);const s=t.reactive({dot:r.props.progressDot}),a=t.computed(()=>r.state.children.indexOf(l)+1),i=()=>{const m=a.value;return m<+r.props.current?"finish":m===+r.props.current?"process":"wait"},c=t.computed(()=>i()),u=t.computed(()=>{const m=Ig;return{[m]:!0,[`${m}-${c.value}`]:!0}}),f=()=>{r.onEmit(a.value)};return{...t.toRefs(s),index:a,classes:u,handleClickStep:f}}}),qg={class:"fox-step-head"},Mg=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Pg={key:2,class:"fox-step-inner"},Lg={class:"fox-step-main"},Og={class:"fox-step-title"},Rg={key:0},Fg={key:0,class:"fox-step-content"},Ug=["innerHTML"];function Hg(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[t.createElementVNode("view",qg,[Mg,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":e.icon?"is-icon":"is-text"]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-step-icon-inner",color:e.iconColor,name:e.icon,size:e.size},null,8,["color","name","size"])):e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)):(t.openBlock(),t.createElementBlock("view",Pg,t.toDisplayString(e.index),1))],2)]),t.createElementVNode("view",Lg,[t.createElementVNode("view",Og,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Rg,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Fg,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Ug)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}var pa=x(zg,[["render",Hg]]);const ha=5;function Kg(){const e=t.reactive({startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""}),n=(s,a)=>s>a&&s>ha?"horizontal":a>s&&a>ha?"vertical":"",o=()=>{e.startX=0,e.startY=0,e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction=""};return{state:e,start:s=>{o(),e.startX=s.touches[0].clientX,e.startY=s.touches[0].clientY},reset:o,move:s=>{e.deltaX=s.touches[0].clientX-e.startX,e.deltaY=s.touches[0].clientY-e.startY,e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.direction||(e.direction=n(e.offsetX,e.offsetY))}}}const{create:xg,componentName:ga}=R("swiper"),jg=xg({props:{width:{type:[Number,String],default(){}},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},isCenter:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:0,children:[],childrenVNode:[],style:{}}),s=Kg(),a=t.computed(()=>({[ga]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>i.value?s.state.deltaY:s.state.deltaX),u=t.computed(()=>s.state.direction===e.direction),f=t.computed(()=>r.children.length),m=t.computed(()=>r[i.value?"height":"width"]),p=t.computed(()=>f.value*m.value),y=t.computed(()=>r.rect?(i.value?r.rect.height:r.rect.width)-m.value*f.value:0),k=t.computed(()=>(r.active+f.value)%f.value),h=()=>{let V=0;if(!e.isCenter)V=r.offset;else{let T=i.value?r.rect.height-m.value:r.rect.width-m.value;V=r.offset+(r.active===f.value-1?-T/2:T/2)}r.style={transitionDuration:`${r.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${V}px)`,[i.value?"height":"width"]:`${m.value*f.value}px`,[i.value?"width":"height"]:`${i.value?r.width:r.height}px`}},g=V=>{let T=[],U=o?.default?.();if(U=U.filter(B=>B.children&&Array.isArray(B.children)),U.forEach(B=>{T=T.concat(B.children)}),!r.childrenVNode.length)r.childrenVNode=T.slice(),V.proxy&&r.children.push(V.proxy);else if(r.childrenVNode.length>T.length)r.children=r.children.filter(B=>V.proxy!==B);else if(r.childrenVNode.length<T.length){for(let B=0;B<r.childrenVNode.length;B++)if(T[B].key!==r.childrenVNode[B].key){V.proxy&&r.children.splice(B,0,V.proxy),V.vnode&&r.childrenVNode.splice(B,0,V.vnode);break}r.childrenVNode.length!==T.length&&(V.proxy&&r.children.push(V.proxy),V.vnode&&r.childrenVNode.push(V.vnode))}else r.childrenVNode=T.slice(),V.proxy&&r.children.push(V.proxy)},d=(V,T,U)=>Math.min(Math.max(V,T),U),S=V=>{window.requestAnimationFrame.call(window,V)},w=(V,T=0)=>{let U=V*m.value;e.loop||(U=Math.min(U,-y.value));let B=T-U;return e.loop||(B=d(B,y.value,0)),B},N=V=>{const{active:T}=r;return V?e.loop?d(T+V,-1,f.value):d(T+V,0,f.value-1):T},b=({pace:V=0,offset:T=0,isEmit:U=!1})=>{if(f.value<=1)return;const{active:B}=r,L=N(V),H=w(L,T);if(e.loop){if(r.children[0]&&H!==y.value){const P=H<y.value;r.children[0].setOffset(P?p.value:0)}if(r.children[f.value-1]&&H!==0){const P=H>0;r.children[f.value-1].setOffset(P?-p.value:0)}}r.active=L,r.offset=H,U&&B!==r.active&&n("change",k.value),h()},C=()=>{r.moving=!0,r.active<=-1&&b({pace:f.value}),r.active>=f.value&&b({pace:-f.value})},E=()=>{clearTimeout(r.autoplayTimer)},F=()=>{C(),s.reset(),S(()=>{S(()=>{r.moving=!1,b({pace:-1,isEmit:!0})})})},D=()=>{C(),s.reset(),S(()=>{S(()=>{r.moving=!1,b({pace:1,isEmit:!0})})})},$=V=>{C(),s.reset(),S(()=>{S(()=>{r.moving=!1;let T;e.loop&&f.value===V?T=r.active===0?0:V:T=V%f.value,b({pace:T-r.active,isEmit:!0})})})},q=()=>{e.autoPlay<=0||f.value<=1||(E(),r.autoplayTimer=setTimeout(()=>{D(),q()},Number(e.autoPlay)))},O=(V=+e.initPage)=>{E(),r.rect=l.value.getBoundingClientRect(),V=Math.min(f.value-1,V),r.width=e.width?+e.width:r.rect.width,r.height=e.height?+e.height:r.rect.height,r.active=V,r.offset=w(r.active),r.moving=!0,h(),q()},K=V=>{e.isPreventDefault&&V.preventDefault(),e.isStopPropagation&&V.stopPropagation(),e.touchable&&(s.start(V),r.touchTime=Date.now(),E(),C())},z=V=>{e.touchable&&r.moving&&(s.move(V),u.value&&b({offset:c.value}))},A=V=>{if(!e.touchable||!r.moving)return;const T=c.value/(Date.now()-r.touchTime);if((Math.abs(T)>.3||Math.abs(c.value)>+(m.value/2).toFixed(2))&&u.value){let B=0;const L=i.value?s.state.offsetY:s.state.offsetX;e.loop?B=L>0?c.value>0?-1:1:0:B=-Math[c.value>0?"ceil":"floor"](c.value/m.value),b({pace:B,isEmit:!0})}else c.value&&b({pace:0});r.moving=!1,h(),q()};return t.provide("parent",{props:e,size:m,relation:g}),St({prev:F,next:D,to:$}),t.onDeactivated(()=>{E()}),t.onBeforeUnmount(()=>{E()}),t.watch(()=>e.initPage,V=>{t.nextTick(()=>{O(Number(V))})}),t.watch(()=>r.children.length,()=>{t.nextTick(()=>{O()})}),t.watch(()=>e.autoPlay,V=>{V>0?q():E()}),{state:r,classes:a,container:l,componentName:ga,isVertical:i,slots:o,activePagination:k,onTouchStart:K,onTouchMove:z,onTouchEnd:A}}});function Wg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{ref:"container",class: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))},[t.createElementVNode("view",{class:t.normalizeClass({[`${e.componentName}-inner`]:!0,[`${e.componentName}-vertical`]:e.isVertical}),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass({[`${e.componentName}-pagination`]:!0,[`${e.componentName}-pagination-vertical`]:e.isVertical})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(a,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}var Ye=x(jg,[["render",Wg]]);const{create:Yg,componentName:Xg}=R("swiper-item"),vg=Yg({setup(e,{slots:n}){const o=t.inject("parent");o.relation(t.getCurrentInstance());const l=t.reactive({offset:0}),r=t.computed(()=>({[Xg]:!0})),s=t.computed(()=>{const i={},c=o?.props.direction;return o?.size.value&&(i[c==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${l.offset}px)`),i});return St({setOffset:i=>{l.offset=i}}),{style:s,classes:r}}});function Qg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}var Xe=x(vg,[["render",Qg]]);const{componentName:e1,create:Gg}=R("imagepreviewitem"),Zg=Gg({props:{show:{type:Boolean,default:!1},initNo:Number,image:{type:Object,default:()=>{}},video:{type:Array,default:()=>{}},showIndex:{type:Boolean,default:!0},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},emits:["close","scale"],components:{[me.name]:me,[We.name]:We,[Ye.name]:Ye,[Xe.name]:Xe,[oe.name]:oe},setup(e,{emit:n}){const o=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=et(),r=t.computed(()=>{const{rootWidth:$,rootHeight:q}=e,O=q/$;return o.imageRatio>O}),s=t.computed(()=>{const{scale:$,moveX:q,moveY:O,moving:K,zooming:z}=o,A={transitionDuration:z||K?"0s":".3s"};if($!==1){const V=q/$,T=O/$;A.transform=`scale(${$}, ${$}) translate(${V}px, ${T}px)`}return A}),a=t.computed(()=>{if(o.imageRatio){const{rootWidth:$,rootHeight:q}=e,O=r.value?q/o.imageRatio:$;return Math.max(0,(o.scale*O-$)/2)}return 0}),i=t.computed(()=>{if(o.imageRatio){const{rootWidth:$,rootHeight:q}=e,O=r.value?q:$*o.imageRatio;return Math.max(0,(o.scale*O-q)/2)}return 0}),c=$=>{const{naturalWidth:q,naturalHeight:O}=$.target;o.imageRatio=O/q},u=()=>{f(1),o.moveX=0,o.moveY=0},f=$=>{$=D($,+e.minZoom,+e.maxZoom+1),$!==o.scale&&(o.scale=$,n("scale",{scale:$,index:e.initNo}))},m=()=>{const $=o.scale>1?1:2;f($),o.moveX=0,o.moveY=0},p=$=>Math.sqrt(($[0].clientX-$[1].clientX)**2+($[0].clientY-$[1].clientY)**2);let y,k,h,g,d,S,w;const N=$=>{const{touches:q}=$,{offsetX:O}=l;l.start($),w=q.length,y=o.moveX,k=o.moveY,S=Date.now(),o.moving=w===1&&o.scale!==1,o.zooming=w===2&&!O.value,o.zooming&&(h=o.scale,g=p($.touches))},b=$=>{const{touches:q}=$;if(l.move($),(o.moving||o.zooming)&&F($,!0),o.moving){const{deltaX:O,deltaY:K}=l,z=O.value+y,A=K.value+k;o.moveX=D(z,-a.value,a.value),o.moveY=D(A,-i.value,i.value)}if(o.zooming&&q.length===2){const O=p(q),K=h*O/g;f(K)}},C=()=>{if(w>1)return;const{offsetX:$,offsetY:q}=l,O=Date.now()-S,K=250,z=5;$.value<z&&q.value<z&&O<K&&(d?(clearTimeout(d),d=null,m()):d=setTimeout(()=>{n("close"),d=null},K))},E=$=>{let q=!1;(o.moving||o.zooming)&&(q=!0,o.moving&&y===o.moveX&&k===o.moveY&&(q=!1),$.touches.length||(o.zooming&&(o.moveX=D(o.moveX,-a.value,a.value),o.moveY=D(o.moveY,-i.value,i.value),o.zooming=!1),o.moving=!1,y=0,k=0,h=1,o.scale<1&&u(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),F($,q),C(),l.reset()},F=($,q)=>{(typeof $.cancelable!="boolean"||$.cancelable)&&$.preventDefault(),q&&$.stopPropagation()},D=($,q,O)=>Math.min(Math.max($,q),O);return t.watch(()=>e.initNo,u),t.watch(()=>e.show,$=>{$||u()}),{...t.toRefs(o),onTouchStart:N,onTouchMove:b,onTouchEnd:E,getDistance:p,imageStyle:s,imageLoad:c}}}),Jg=["src"],_g={key:1,class:"fox-imagepreview-box"};function ey(e,n,o,l,r,s){const a=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onTouchstart:e.onTouchStart,onTouchmove:e.onTouchMove,onTouchend:e.onTouchEnd,onTouchcancel:e.onTouchEnd},{default:t.withCtx(()=>[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.imageStyle),class:"fox-imagepreview-box"},[t.createElementVNode("img",{src:e.image.src,class:"fox-imagepreview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,Jg)],4)):t.createCommentVNode("",!0),e.video?(t.openBlock(),t.createElementBlock("view",_g,[t.createVNode(a,{source:e.video.source,options:e.video.options},null,8,["source","options"])])):t.createCommentVNode("",!0)]),_:1},8,["onTouchstart","onTouchmove","onTouchend","onTouchcancel"])}var ty=x(Zg,[["render",ey]]);const{componentName:t1,create:ny}=R("imagepreview"),oy=ny({props:{show:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},initNo:{type:Number,default:1},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},isWrapTeleport:{type:Boolean,default:!1},showIndex:{type:Boolean,default:!0},closeable:{type:Boolean,default:!1},closeIcon:{type:String,default:"circle-close"},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},emits:["close","change"],components:{[me.name]:me,[We.name]:We,[Ye.name]:Ye,[Xe.name]:Xe,[oe.name]:oe,ImagePreviewItem:ty},setup(e,{emit:n}){t.toRefs(e);const o=t.ref(),l=t.reactive({showPop:!1,active:1,maxNo:1,rootWidth:0,rootHeight:0}),r=t.computed(()=>{let f={};return e.closeIconPosition=="top-right"?f.right="10px":f.left="10px",f}),s=function(f){l.active=f+1,n("change",l.active)},a=()=>{if(e.beforeClose){const f=e.beforeClose.apply(null,l.active);X.isPromise(f)?f.then(m=>{m&&i()}):f&&i()}else i()},i=()=>{l.showPop=!1,l.active=1,n("close")},c=()=>{a()},u=()=>{setTimeout(()=>{l.rootHeight=o.value.offsetHeight,l.rootWidth=o.value.offsetWidth},100)};return t.watch(()=>e.show,f=>{l.showPop=f,u()}),t.onMounted(()=>{l.active=e.initNo,l.showPop=e.show,l.maxNo=e.images.length+e.videos.length}),{swipeRef:o,...t.toRefs(l),slideChangeEnd:s,onClose:a,handleCloseIcon:c,styles:r}}}),ly={class:"fox-imagepreview",ref:"swipeRef"},ay={key:0,class:"fox-imagepreview-index"};function ry(e,n,o,l,r,s){const a=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("fox-icon"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=f=>e.showPop=f),isWrapTeleport:e.isWrapTeleport,onClick:e.onClose,style:{width:"100%"}},{default:t.withCtx(()=>[t.createElementVNode("view",ly,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-imagepreview-swiper",loop:!0,"is-preventDefault":!1,direction:"horizontal",onChange:e.slideChangeEnd,"init-page":e.initNo>e.maxNo?e.maxNo-1:e.initNo-1,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[e.videos.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.videos,(f,m)=>(t.openBlock(),t.createBlock(a,{key:m,video:f,rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active,onClose:e.onClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","rootHeight","rootWidth","show","init-no","onClose","maxZoom","minZoom"]))),128)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(f,m)=>(t.openBlock(),t.createBlock(a,{key:m,image:f,rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active,onClose:e.onClose},null,8,["image","rootHeight","rootWidth","show","init-no","onClose"]))),128))]),_:1},8,["auto-play","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",ay,t.toDisplayString(e.active)+" / "+t.toDisplayString(e.images.length+e.videos.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-imagepreview-close-icon",onClick:n[0]||(n[0]=(...f)=>e.handleCloseIcon&&e.handleCloseIcon(...f)),style:t.normalizeStyle(e.styles)},[t.createVNode(c,{name:e.closeIcon,color:"#ffffff"},null,8,["name"])],4)):t.createCommentVNode("",!0)]),_:1},8,["visible","isWrapTeleport","onClick"])}var ya=x(oy,[["render",ry]]);class sy{constructor(){this.show=!1,this.images=[],this.initNo=1,this.paginationVisible=!1,this.paginationColor="",this.teleport="body",this.onClose=()=>{}}}class iy{constructor(n){this.options=new sy;let o=Object.assign(this.options,n),l=document.body,r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const s=document.createElement("view");s.id="imagepreview-"+new Date().getTime();const a={setup(){return o.teleport=`#${s.id}`,()=>t.h(ya,o)}},i=t.createVNode(a);l.appendChild(s),t.render(i,s)}}const qt=function(e){return new iy(e)};qt.install=e=>{e.use(ya),e.config.globalProperties.$imagepreview=qt};const{componentName:n1,create:cy}=R("countup"),dy=cy({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},machineTrunMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=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:l,scrolling:r,customBgImg:s,type:a}=t.reactive(e);t.watch(()=>e.customChangeNum,(N,b)=>{c(),y(0)}),t.watch(()=>e.machinePrizeLevel,(N,b)=>{o.prizeLevelTrun=N}),t.watch(()=>e.initNum,(N,b)=>{o.current=N,o.valFlag=!1,i()}),t.watch(()=>e.endNum,(N,b)=>{o.current=e.initNum,o.valFlag=!1,i()});const i=()=>{if(o.valFlag)return!1;l&&(r||s?a!="machine"&&y():(p(),setTimeout(()=>{o.valFlag=!0},300)))},c=()=>{clearInterval(Number(o.timer)),o.timer=null},u=(N,b,C)=>{const E=(N.toString().split(".")[1]||"").length,F=(b.toString().split(".")[1]||"").length,D=Math.pow(10,Math.max(E,F));return C=="-"?Number((N*D-b*D).toFixed(0))/D:Number((N*D+b*D).toFixed(0))/D},f=N=>{let{num_total_len:b,pointNum:C,initDigit1:E,initDigit2:F,sortFlag:D}=o,$=D=="add"||D=="equal"?String(F)[N-(b-C)]:10-Number(String(F)[N-(b-C)]),q=D=="add"||D=="equal"?String(E)[N]:10-Number(String(E)[N]),O=N>b-C-1?-$*100+"%":N<=String(E).length-1?-q*100+"%":0;return O=="-1000%"&&(O=0),O},m=N=>{let{num_total_len:b,pointNum:C,initDigit1:E,initDigit2:F,sortFlag:D}=o,$=String(F)[N-(b-C)];return N>b-C-1?$||0:N<=String(E).length-1?String(E)[N]:0},p=()=>{let{endNum:N,initNum:b,speed:C,toFixed:E}=e,F=setInterval(()=>{b>N?o.current<=N||o.current<=C?(o.current=Number(N.toFixed(E)),clearInterval(F),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))-parseFloat(String(C))).toFixed(E)):o.current>=N?(o.current=Number(N.toFixed(E)),clearInterval(F),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))+parseFloat(String(C))).toFixed(E))},e.during)},y=N=>{let{initNum:b,endNum:C,toFixed:E,customBgImg:F}=e;F&&(b=e.customChangeNum);let D,$,q,O;b!=0?(E!=0&&(b=Number(b.toFixed(E))),String(b).indexOf(".")>-1?(D=String(b).split(".")[0].length,$=String(b).split(".")[1].length):(D=String(b).length,$=0)):(D=1,$=0),C!=0?(E!=0&&(C=Number(C.toFixed(E))),String(C).indexOf(".")>-1?(q=String(C).split(".")[0].length,O=String(C).split(".")[1].length):(q=String(C).length,O=0)):(q=1,O=0);let K=D>=q?D:q,z=$>=O?$:O;o.num_total_len=K+z,o.pointNum=z,b>C?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=u(b,C,"-"),o.numberVal=Number(String(b))):b<C?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=u(C,b,"-"),o.numberVal=Number(String(C))):o.sortFlag="equal";var A=1;for(let T=0;T<o.pointNum;T++)A*=10;var V=o.numberVal*A;if(o.relNum=V,E!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(V).length),String(b).indexOf(".")>-1){let T=String(b).split(".");o.initDigit1=Number(T[0]),o.initDigit2=Number(T[1])}else o.initDigit1=b,o.initDigit2=0;r&&!F?t.nextTick(()=>{if(o.sortFlag=="equal")return!1;let U=document.getElementsByClassName("numberItem")[o.num_total_len-1];k(U)}):N!==0&&g()},k=N=>{c();var b=1;o.pointNum!=0&&(b=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{h(N),o.totalCount=u(o.totalCount,b,"-"),o.totalCount<=0&&(c(),n("scroll-end"),o.valFlag=!1)},e.during)},h=N=>{let b=N.getAttribute("turn-number"),C;if(o.sortFlag=="add"?C=parseInt(String(b))+1:C=parseInt(String(b))-1>=0?parseInt(String(b))-1:9,N.setAttribute("turn-number",String(C)),(N.style.transition=="none 0s ease 0s"||C==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),C==10||o.sortFlag=="reduce"&&C==0){var E=null;N.style.top=`-${o.sortFlag=="add"?C*100:(10-C)*100}%`,N.setAttribute("turn-number","0"),E=setTimeout(()=>{E&&clearTimeout(E),N.style.transition="none",N.style.top="0",C==10&&N.previousSibling&&h(N.previousSibling)},.975*e.during)}else N.style.top=`-${o.sortFlag=="add"?C*100:(10-C)*100}%`;N.style.top=="-100%"&&o.sortFlag=="reduce"&&h(N.previousSibling)},g=()=>{o.pointNum!=0&&Math.pow(10,o.pointNum),t.nextTick(()=>{document.getElementsByClassName("run-number-img")[0].addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),o.valFlag=!1})})},d=()=>{for(o.notPrize=[];o.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(N)==-1&&o.notPrize.push(N)}};Id({machineLuck:()=>{const N=e.machineTrunMore<0?0:e.machineTrunMore;let b=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&d();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let E=b*(C+1+parseFloat(String(N)));o.prizeYPrev.length!=0&&(o.prizeY[C]=o.prizeYPrev[C]);let F=o.prizeYPrev[C]?o.prizeYPrev[C]:0,D=E+F+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(b-F);o.prizeLevelTrun<0&&(D+=e.numHeight*o.notPrize[C]),w(C,D,F)},500*C)}});const w=(N,b,C)=>{let E=setInterval(()=>{if(C<=b)C+=10,o.prizeY[N]=parseFloat(String(C));else if(clearInterval(E),E=null,o.finshMachine+=1,o.prizeY[N]=b,o.finshMachine==e.machineNum){let F=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach($=>{let q=$;for(;q>F;)q-=F;o.prizeYPrev.push(q)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scroll-end",!1),o.valFlag=!1):(n("scroll-end",!0),o.valFlag=!1)},130)}},30)};return t.onMounted(()=>{o.current=e.initNum,t.nextTick(()=>{i()})}),t.onUnmounted(()=>{c(),o.timer=null}),{...t.toRefs(o),...t.toRefs(t.reactive(e)),topNumber:f,turnNumber:m}}}),uy={class:"fox-countup"},fy=["turn-number"];function my(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",uy,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number-machine-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-machine-img-li",ref_for:!0,ref:"run-number-machine-img-li",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,class:"run-number-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-img-li",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPosition:"0 "+-(String(e.relNum)[i]*e.numHeight+e.customSpacNum*String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:"numberItem",class:"numberItem",key:a,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"itemSpan",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,fy))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}var ka=x(dy,[["render",my]]);const ft=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Sa=e=>{if(!e)return Date.now();let n=e;return n=n>0?+n:n.toString().replace(/\-/g,"/"),new Date(n).getTime()},{componentName:py,create:hy}=R("countdown"),gy=hy({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=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=t.computed(()=>({[py]:!0})),s=t.computed(()=>c(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Sa(e.startTime),l.counting||(l.counting=!0),i()},i=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,k=Math.max(l.handleEndTime-y,0);l.restTime=k,k||(l.counting=!1,m(),n("on-end")),k>0&&i()}}))},c=(y,k)=>{const h=y;let g={d:0,h:0,m:0,s:0,ms:0};const d=1e3,S=60*d,w=60*S,N=24*w;return h>0&&(g.d=h>=d?Math.floor(h/N):0,g.h=Math.floor(h%N/w),g.m=Math.floor(h%w/S),g.s=Math.floor(h%S/d),g.ms=Math.floor(h%d)),k=="custom"?g:u({...g})},u=y=>{let{d:k,h,m:g,s:d,ms:S}=y,w=e.format;if(w.includes("DD")?w=w.replace("DD",ft(k)):h+=Number(k)*24,w.includes("HH")?w=w.replace("HH",ft(h)):g+=Number(h)*60,w.includes("mm")?w=w.replace("mm",ft(g)):d+=Number(g)*60,w.includes("ss")?w=w.replace("ss",ft(d)):S+=Number(d)*1e3,w.includes("S")){const N=ft(S,3).toString();w.includes("SSS")?w=w.replace("SSS",N):w.includes("SS")?w=w.replace("SS",N.slice(0,2)):w.includes("S")&&(w=w.replace("SS",N.slice(0,1)))}return w},f=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i(),n("on-restart",l.restTime))},m=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(m(),l.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?a():l.restTime=e.time}),t.watch(()=>l.restTime,y=>{let k=c(y,"custom");n("update:modelValue",k),n("input",k)}),t.watch(()=>e.paused,(y,k)=>{k?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i()),n("on-restart",l.restTime)):l.counting&&m()}),t.watch(()=>e.endTime,y=>{a()}),t.watch(()=>e.startTime,y=>{a()}),{...t.toRefs(e),slots:o,classes:r,getTimeStamp:Sa,start:f,pause:m,renderTime:s,reset:p}}}),yy=["innerHTML"];function ky(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fo xcd-block",innerHTML:e.renderTime},null,8,yy))],2)}var ba=x(gy,[["render",ky]]);const{create:Sy}=R("badge"),by=Sy({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),o=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),l=t.computed(()=>{if(e.dot)return;const r=e.value,s=e.max;return typeof r=="number"&&typeof s=="number"&&s<r?`${s}+`:r});return{state:n,stl:o,content:l}}}),Cy={class:"fox-badge"},wy={class:"slot-icons"},Ny=["textContent"];function By(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",Cy,[t.createElementVNode("view",wy,[t.renderSlot(e.$slots,"icons")]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content sup",{"is-dot":e.dot}]),style:t.normalizeStyle(e.stl)},null,14,Ny),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ca=x(by,[["render",By]]);const{componentName:Vy,create:Ay}=R("tag"),Ey=Ay({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}},emits:["close","click"],setup(e,{emit:n}){const{type:o,color:l,plain:r,round:s,mark:a,textColor:i}=t.toRefs(e);return{classes:t.computed(()=>{const p=Vy;return{[p]:!0,[`${p}--${o.value}`]:o.value,[`${p}--plain`]:r.value,[`${p}--round`]:s.value,[`${p}--mark`]:a.value}}),getStyle:()=>{const p={};return i.value?p.color=i.value:l.value&&r.value&&(p.color=l.value),r.value?(p.background="#fff",p["border-color"]=l.value):l.value&&(p.background=l.value),p},onClose:p=>{p.stopPropagation(),n("close",p)},onClick:p=>{p.stopPropagation(),n("click",p)}}}});function Ty(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-tag--close",name:"close",size:"12",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}var wa=x(Ey,[["render",Ty]]);const{componentName:$y,create:Dy}=R("popover"),Iy=Dy({inheritAttrs:!1,components:{[me.name]:me,[Ke.name]:Ke},props:{...ze,list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"}},emits:["update","update:visible","close","choose","openPopover"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({elWidth:0,elHeight:0}),r=t.ref(e.visible),{theme:s,location:a}=t.toRefs(e),i=t.computed(()=>{const d=$y;return{[d]:!0,[`${d}--${s.value}`]:s.value}}),c=t.computed(()=>{const d="popoverContent";return{[d]:!0,[`${d}--${a.value}`]:a.value}}),u=t.computed(()=>{const d="popoverArrow";return{[d]:!0,[`${d}--${a.value}`]:a.value}});function f(){l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight}const m=t.computed(()=>{const d={};return a.value=="top"?(d.bottom=l.elHeight+20+"px",d.left=0+"px"):a.value=="right"?(d.top=0+"px",d.right=-l.elWidth+"px"):a.value=="left"?(d.top=0+"px",d.left=-l.elWidth+"px"):(d.top=l.elHeight+20+"px",d.left=0+"px"),d}),p=t.computed(()=>{const d={};return a.value=="top"?(d.bottom=-20+"px",d.left=l.elWidth/2+"px"):a.value=="right"?(d.top=20+"px",d.left=-20+"px"):a.value=="left"?(d.top=20+"px",d.right=-20+"px"):(d.left=l.elWidth/2+"px",d.top=-20+"px"),d});t.onMounted(()=>{f()}),t.watch(()=>e.visible,d=>{r.value=d});const y=d=>{n("update",d),n("update:visible",d)};return{classes:i,showPopup:r,openPopover:()=>{y(!e.visible),n("open")},popoverContent:c,popoverArrow:u,closePopover:()=>{n("close"),n("update:visible",!1)},chooseItem:(d,S)=>{d.disabled||n("choose",d,S)},getReference:f,reference:o,getStyle:m,getArrowStyle:p}}}),zy={ref:"reference"},qy=["onClick"],My={class:"title-name"};function Py(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{onClick:n[1]||(n[1]=t.withModifiers((...i)=>e.openPopover&&e.openPopover(...i),["stop"])),class:t.normalizeClass(e.classes)},[t.createElementVNode("div",zy,[t.renderSlot(e.$slots,"reference")],512),e.showPopup?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",{class:"more-background",onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.closePopover&&e.closePopover(...i),["stop"]))}),t.createElementVNode("view",{class:t.normalizeClass(e.popoverContent),style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",{class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.getArrowStyle)},null,6),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass({"title-item":!0,disabled:i.disabled}),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?t.renderSlot(e.$slots,"default",{key:0},()=>[t.createVNode(a,{class:"item-img",name:i.icon},null,8,["name"])]):t.createCommentVNode("",!0),t.createElementVNode("view",My,t.toDisplayString(i.name),1)],10,qy))),128))],6)],64)):t.createCommentVNode("",!0)],2)}var Na=x(Iy,[["render",Py]]);const Ly={props:{width:{type:String,default:"100px"},height:{type:String,default:"100px"},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(e){const{avatarShape:n,round:o,avatarSize:l}=t.toRefs(e),r=t.computed(()=>{const i="avatarClass";return{[i]:!0,[`${i}--${n.value}`]:n.value}}),s=t.computed(()=>{const i="blockClass";return{[i]:!0,[`${i}--round`]:o.value}}),a=()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"};return t.onMounted(()=>{}),{avatarShape:n,avatarClass:r,blockClass:s,getStyle:a}}},{create:Oy}=R("skeleton"),Ry=Oy(Ly),Fy={key:0},Uy={key:1,class:"skeleton"},Hy={key:0,class:"skeleton-animation"},Ky={class:"content"},xy={class:"content-line"},jy={key:0,class:"title"};function Wy(e,n,o,l,r,s){const a=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",Uy,[e.animated?(t.openBlock(),t.createElementBlock("view",Hy)):t.createCommentVNode("",!0),t.createElementVNode("view",Ky,[e.avatar?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle()),"bg-color":"rgb(239, 239, 239)"},null,8,["class","shape","style"])):t.createCommentVNode("",!0),Number(e.row)==1?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.blockClass),style:t.normalizeStyle({width:e.width,height:e.height})},null,6)):t.createCommentVNode("",!0),t.createElementVNode("view",xy,[e.title?(t.openBlock(),t.createElementBlock("view",jy)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(e.blockClass),style:t.normalizeStyle({width:e.width,height:e.height})},null,6))),128))])])])):(t.openBlock(),t.createElementBlock("view",Fy,[t.renderSlot(e.$slots,"default")]))}var Ba=x(Ry,[["render",Wy]]);const{create:Yy}=R("collapse"),Xy=Yy({props:{active:{type:[String,Number,Array]},accordion:{type:Boolean},titleIcon:{type:String,default:""},titleIconSize:{type:String,default:"16px"},titleIconColor:{type:String,default:""},titleIconPosition:{type:String,default:"left"},icon:{type:String,default:""},iconSize:{type:String,default:"16px"},iconColor:{type:String,default:""},rotate:{type:[String,Number],default:180}},emits:["update:active","change"],setup(e,{emit:n,slots:o}){const l=t.ref(null),r=t.ref([]);t.watch(()=>e.active,(c,u)=>{let f=r.value;Array.from(f).forEach(m=>{typeof c=="number"||typeof c=="string"?c==m.name?m.changeOpen(!0):m.changeOpen(!1):Object.values(c)instanceof Array&&(c.indexOf(Number(m.name))>-1||c.indexOf(String(m.name))>-1?m.changeOpen(!0):m.changeOpen(!1)),m.animation()})}),t.onMounted(()=>{r.value=t.getCurrentInstance().provides.collapseParent.children||[]});const s=c=>{n("update:active",c),n("change",c)},a=c=>{const u=e.active instanceof Object?Object.values(e.active):e.active;let f=-1;u.forEach((m,p)=>{String(m)==String(c)&&(f=p)}),f>-1?u.splice(f,1):u.push(c),s(u)},i=c=>{const{accordion:u,active:f}=e;if(u)return typeof f=="number"||typeof f=="string"?f==c:!1};return t.provide("collapseParent",{children:[],props:e,changeValAry:a,changeVal:s,isExpanded:i}),{collapseDom:l}}}),vy={ref:"collapseDom"};function Qy(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",vy,[t.renderSlot(e.$slots,"default")],512)}var Va=x(Xy,[["render",Qy]]);const{create:Gy,componentName:Zy}=R("collapse-item"),Jy=Gy({props:{title:{type:String,default:""},subTitle:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},collapseRef:{type:Object}},setup(e,n){const o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const N=Zy;return{[N]:!0,[`${N}-icon`]:l.props.icon}});(N=>{N.proxy&&l.children.push(N.proxy)})(t.getCurrentInstance());const a=t.reactive({icon:l.props.icon,iconSize:l.props.iconSize,iconColor:l.props.iconColor,openExpanded:!1,iconStyle:{transform:"rotate(0deg)",marginTop:l.props.iconHeght?"-"+l.props.iconHeght/2+"px":"-10px"}}),i=t.reactive({titleIcon:l.props.titleIcon,titleIconSize:l.props.titleIconSize,titleIconColor:l.props.titleIconColor,titleIconPosition:l.props.titleIconPosition}),c=t.ref(null),u=t.ref(null),f=()=>{const N=document.getElementsByClassName("collapse-wrapper")[0];N&&(N.style.willChange="auto")},m=()=>{const N=c.value,b=u.value;if(!N||!b)return;const C=b.offsetHeight||"auto";if(C){const E=`${C}px`;N.style.willChange="height",N.style.height=a.openExpanded?E:0,l.props.icon&&!a.openExpanded?a.iconStyle.transform="rotate(0deg)":a.iconStyle.transform="rotate("+l.props.rotate+"deg)"}a.openExpanded||f()},p=()=>{a.openExpanded=!a.openExpanded,m()},y=()=>{p(),l.props.icon&&(a.iconStyle.transform="rotate("+l.props.rotate+"deg)")},k=t.computed(()=>e.name),h=()=>{l.props.accordion?t.nextTick(()=>{k.value==l.props.active?p():l.changeVal(k.value)}):(l.changeValAry(String(e.name)),p())},g=N=>{a.openExpanded=N},d=t.computed(()=>l?l.isExpanded(e.name):null);t.watch(d,(N,b)=>{N&&(a.openExpanded=!0)}),t.watch(()=>n?.slots?.default?.(),()=>{setTimeout(()=>{m()},300)});const S=()=>{const{name:N}=e,b=l&&l.props.active;t.nextTick(()=>{typeof b=="number"||typeof b=="string"?N==b&&y():Object.values(b)instanceof Array&&Object.values(b).filter(E=>E==N).length>0&&y()})};t.onMounted(()=>{S()});const w=t.computed(()=>{let N=u.value,b="";return N?.innerText||(b="empty"),b});return{classes:r,emptyContent:w,...t.toRefs(a),...t.toRefs(l.props),...t.toRefs(i),wrapperRef:c,contentRef:u,open:p,toggleOpen:h,changeOpen:g,animation:m}}}),_y={class:"collapse-title"},ek={class:"collapse-title-value"},tk=["innerHTML"],nk={key:0,class:"subTitle"},ok=["innerHTML"],lk={key:0,class:"collapse-extraWrapper"},ak={class:"collapse-extraRender"},rk={class:"collapse-wrapper",ref:"wrapperRef"};function sk(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["collapse-item",{"item-expanded":e.openExpanded},{"fox-collapse-item-disabled":e.disabled}]),onClick:n[0]||(n[0]=(...i)=>e.toggleOpen&&e.toggleOpen(...i))},[t.createElementVNode("view",_y,[t.createElementVNode("view",null,[t.createElementVNode("view",ek,[e.titleIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.titleIcon,size:e.titleIconSize,color:e.titleIconColor,class:t.normalizeClass([e.titleIconPosition=="left"?"titleIconLeft":"titleIconRight"])},null,8,["name","size","color","class"])):t.createCommentVNode("",!0),e.$slots.mTitle?t.renderSlot(e.$slots,"mTitle",{key:1}):(t.openBlock(),t.createElementBlock("view",{key:2,innerHTML:e.title,class:"collapse-icon-title"},null,8,tk))])])]),e.$slots.sTitle?(t.openBlock(),t.createElementBlock("view",nk,[t.renderSlot(e.$slots,"sTitle")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.subTitle,class:"subTitle"},null,8,ok)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,name:e.icon,size:e.iconSize,color:e.iconColor,class:t.normalizeClass(["collapse-icon",{"col-expanded":e.openExpanded},{"collapse-icon-disabled":e.disabled}]),style:t.normalizeStyle(e.iconStyle)},null,8,["name","size","color","class","style"])):t.createCommentVNode("",!0)],2),e.$slots.extraRender?(t.openBlock(),t.createElementBlock("view",lk,[t.createElementVNode("div",ak,[t.renderSlot(e.$slots,"extraRender")])])):t.createCommentVNode("",!0),t.createElementVNode("view",rk,[t.createElementVNode("view",{class:t.normalizeClass(["collapse-content",e.emptyContent]),ref:"contentRef"},[t.renderSlot(e.$slots,"default")],2)],512)],2)}var Aa=x(Jy,[["render",sk]]),ik={setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}};const ck=(e,n)=>({components:{RenderColumn:ik},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(o,{emit:l,slots:r}){const{t:s}=ee.useFoxI18n(n),a=t.reactive({curData:o.data}),i=t.computed(()=>({[e]:!0})),c=h=>({"fox-table__main__head__tr--border":o.bordered,[`fox-table__main__head__tr--align${h.align?h.align:""}`]:!0}),u=h=>h.stylehead?h.stylehead:"",f=h=>h.stylecolumn?h.stylecolumn:"",m=h=>o.columns.filter(g=>g.key===h)[0],p=h=>{const g=o.columns.filter(d=>d.key===h);return g[0].stylecolumn?g[0].stylecolumn:""},y=h=>{h.sorter&&(l("sorter",h),a.curData=typeof h.sorter=="function"?a.curData.sort(h.sorter):h.sorter==="default"?a.curData.sort():a.curData)},k=()=>o.columns.map(h=>[h.key,h.render]);return t.watch(()=>o.data,h=>{a.curData=h.slice()}),{...t.toRefs(a),classes:i,cellClasses:c,getColumnItem:m,getColumnItemStyle:p,handleSorterClick:y,sortDataItem:k,t:s,stylehead:u,stylecolumn:f}}}),{componentName:dk,create:uk,scope:fk}=R("table"),mk=uk(ck(dk,fk)),pk={class:"fox-table__main__head"},hk={class:"fox-table__main__head__tr"},gk=["onClick"],yk={class:"fox-table__main__body"},kk={key:1},Sk={key:0,class:"fox-table__nodata"},bk={key:0,class:"fox-table__nodata__text"},Ck={key:1,class:"fox-table__summary"},wk=["innerHTML"];function Nk(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",pk,[t.createElementVNode("view",hk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(a,{key:0,name:"down-arrow",size:"12px"})):t.createCommentVNode("",!0)],14,gk))),128))])]),t.createElementVNode("view",yk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,f])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof f=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[f,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",kk,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Sk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bk,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Ck,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,wk)])):t.createCommentVNode("",!0)],2)}var Ea=x(mk,[["render",Nk]]);const{componentName:Bk,create:Vk}=R("ellipsis"),Ak=Vk({props:{class:{type:String},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:"..."}},emits:["click","change"],setup(e,{emit:n}){const o=t.ref(null);let l=null,r=0;const s=t.ref(),a=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>{let h=Bk;return e.class&&(h=`${h} ${e.class}`),h});t.watch(()=>e.content,(h,g)=>{h!=g&&(l&&document.body.appendChild(l),c())}),t.onMounted(()=>{c()});const c=()=>{if(!o.value)return;const h=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(h).forEach(S=>{l.style.setProperty(S,h.getPropertyValue(S))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const d=p(h.lineHeight);r=Math.floor(d*(Number(e.rows)+.5)+p(h.paddingTop)+p(h.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),u()},u=()=>{if(l.offsetHeight<=r)a.exceeded=!1;else{a.exceeded=!0;const h=e.content.length,g=Math.floor((0+h)/2),d=e.direction==="middle"?m([0,g],[g,h]):f(0,h);s.value=d,document.body.removeChild(l)}},f=(h,g)=>{const d=a.expanded?e.collapseText:e.expandText,S=e.content.length;if(g-h<=1)return e.direction==="end"?{leading:e.content.slice(0,h)+e.symbol}:{tailing:e.symbol+e.content.slice(g,S)};const w=Math.round((h+g)/2);return e.direction==="end"?l.innerText=e.content.slice(0,w)+e.symbol+d:l.innerText=d+e.symbol+e.content.slice(w,S),l.offsetHeight<=r?e.direction==="end"?f(w,g):f(h,w):e.direction==="end"?f(h,w):f(w,g)},m=(h,g)=>{const d=a.expanded?e.collapseText:e.expandText,S=e.content.length;if(h[1]-h[0]<=1&&g[1]-g[0]<=1)return{leading:e.content.slice(0,h[0])+e.symbol,tailing:e.symbol+e.content.slice(g[1],S)};const w=Math.floor((h[0]+h[1])/2),N=Math.ceil((g[0]+g[1])/2);return l.innerText=e.content.slice(0,w)+e.symbol+d+e.symbol+e.content.slice(N,S),l.offsetHeight<=r?m([w,h[1]],[g[0],N]):m([h[0],w],[N,g[1]])},p=h=>{if(!h)return 0;const g=h.match(/^\d*(\.\d*)?/);return g?Number(g[0]):0},y=h=>{h==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},k=()=>{n("click")};return{...t.toRefs(a),root:o,ellipsis:s,classes:i,clickHandle:y,handleClick:k}}}),Ek={key:0},Tk={key:1},$k={key:2};function Dk(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ek,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",Tk,[t.createTextVNode(t.toDisplayString(e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis-text",onClick:n[0]||(n[0]=t.withModifiers(a=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",$k,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis-text",onClick:n[1]||(n[1]=t.withModifiers(a=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}var Ta=x(Ak,[["render",Dk]]);const{componentName:Ik,create:zk}=R("animate"),qk=zk({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:r}=t.toRefs(e),s=t.reactive({clicked:!1});let a=t.computed(()=>({"fox-ani-container":!0,[`${Ik}-${o.value}`]:r.value==="initial"||s.clicked?o.value:!1,loop:l.value}));const i=c=>{s.clicked=!0,l.value||setTimeout(()=>{s.clicked=!1},1e3),n("click",c)};return{...t.toRefs(s),classes:a,handleClick:i}}}),Mk={class:"fox-animate"};function Pk(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",Mk,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],2)])}var $a=x(qk,[["render",Pk]]);const{componentName:Lk,create:Ok}=R("watermark"),Rk=Ok({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=t.reactive({base64Url:""}),{zIndex:l,gapX:r,gapY:s,width:a,height:i,rotate:c,image:u,imageWidth:f,imageHeight:m,content:p,fontStyle:y,fontWeight:k,fontColor:h,fontSize:g,fontFamily:d}=e,S=()=>{const N=document.createElement("canvas"),b=window.devicePixelRatio,C=N.getContext("2d"),E=`${(r+a)*b}px`,F=`${(s+i)*b}px`,D=a*b,$=i*b;if(N.setAttribute("width",E),N.setAttribute("height",F),C){if(u){C.translate(D/2,$/2),C.rotate(Math.PI/180*Number(c));const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=u,q.onload=()=>{C.drawImage(q,-f*b/2,-m*b/2,f*b,m*b),C.restore(),o.base64Url=N.toDataURL()}}else if(p){C.textBaseline="middle",C.textAlign="center",C.translate(D/2,$/2),C.rotate(Math.PI/180*Number(c));const q=Number(g)*b;C.font=`${y} normal ${k} ${q}px/${$}px ${d}`,C.fillStyle=h,C.fillText(p,0,0),C.restore(),o.base64Url=N.toDataURL()}}else throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")};S(),t.watch(()=>[l,r,s,a,i,c,u,f,m,p,y,k,h,g,d],()=>{S()});const w=t.computed(()=>{const N=Lk;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...t.toRefs(o),classes:w}}});function Fk(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Da=x(Rk,[["render",Fk]]);const{componentName:Uk,create:Hk,scope:Kk}=R("address"),xk=Hk({inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},defaultIcon:{type:String,default:"location2"},selectedIcon:{type:String,default:"Check"},closeBtnIcon:{type:String,default:"circle-close"},backBtnIcon:{type:String,default:"left"},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{localeRef:o,t:l}=ee.useFoxI18n(Kk),r=o(e.customAddressTitle,"selectRegion"),s=o(e.existAddressTitle,"deliveryTo"),a=o(e.customAndExistTitle,"chooseAnotherAddress"),i=t.computed(()=>({[Uk]:!0})),c=t.ref(null),u=t.ref(null),f=t.ref(e.visible),m=t.ref(e.type),p=t.ref(0),y=t.ref(["province","city","country","town"]),k=t.ref([""]),h=t.computed(()=>e.type==="custom2"),g=B=>{if(!Array.isArray(B))throw new TypeError("params muse be array.");if(!B.length)return[];B.forEach(H=>{if(!H.title){console.error("[FoxUI] <Address> \u8BF7\u68C0\u67E5\u6570\u7EC4\u9009\u9879\u7684 title \u503C\u662F\u5426\u6709\u8BBE\u7F6E ,title \u4E3A\u5FC5\u586B\u9879 .");return}});const L=[];return B=B.sort((H,P)=>H.title.localeCompare(P.title)),B.forEach(H=>{const P=L.findIndex(I=>I.title===H.title);P<=-1?L.push({title:H.title,list:[].concat(H)}):L[P]={title:H.title,list:L[P].list.concat(H)}}),L},d=t.reactive({province:h.value?g(e.province):e.province,city:h.value?g(e.city):e.city,country:h.value?g(e.country):e.country,town:h.value?g(e.town):e.town}),S=t.reactive({province:{},city:{},country:{},town:{}});let w=t.reactive({});const N=t.ref("self"),b=t.ref(20);t.onMounted(()=>{E()});const C=()=>{if(e.modelValue.length>0){p.value=e.modelValue.length-1;for(let B=0;B<e.modelValue.length;B++)if(d[y.value[B]].length==0){p.value=B-1;break}else{const L=e.modelValue[B],H=d[y.value[B]];if(m.value=="custom")S[y.value[B]]=H.filter(P=>P.id==L)[0];else if(m.value=="custom2"){let P=[];H.map(I=>{P.push(...I.list)}),S[y.value[B]]=P.filter(I=>I.id==L)[0]}}q()}},E=()=>{let B=l("select"),L=Object.prototype.toString.call(e.columnsPlaceholder||B);L=="[object String]"?k.value=new Array(4).fill(e.columnsPlaceholder||B):L=="[object Array]"&&(k.value=new Array(4).fill(""),k.value.forEach((H,P)=>{e.columnsPlaceholder[P]?k.value[P]=e.columnsPlaceholder[P]:k.value[P]=B}))},F=(B,L)=>B.name||p.value<L?B.name:k.value[L],D=(B="self")=>{!e.closeBtnIcon||(N.value=B=="cross"?"cross":"self",f.value=!1)},$=()=>{N.value="mask"},q=()=>{t.nextTick(()=>{const B=u.value&&u.value.getElementsByClassName("active")[0];if(B){const L=B.offsetLeft;b.value=L||20}})},O=B=>{const L={next:"",value:"",custom:y.value[p.value]};S[y.value[p.value]]=B;for(let H=p.value;H<4;H++)S[y.value[H+1]]={};p.value<3?(p.value=p.value+1,q(),L.next=y.value[p.value],L.value=B,n("change",L)):(D(),n("update:modelValue"))},K=(B,L,H)=>{F(B,H)&&(p.value=H,q())},z=B=>{const L=e.existAddress;let H={};L.forEach((P,I)=>{P&&P.selectedAddress&&(H=P),P.selectedAddress=!1}),B.selectedAddress=!0,w=B,n("selected",H,B,L),D()},A=()=>{for(let B=0;B<y.value.length;B++)S[y.value[B]]={};p.value=0,q()},V=()=>{const B=Object.assign({addressIdStr:"",addressStr:""},S),L={data:{},type:m.value};if(m.value=="custom"||m.value=="custom2"){const{province:H,city:P,country:I,town:j}=B;B.addressIdStr=[H.id||0,P.id||0,I.id||0,j.id||0].join("_"),B.addressStr=[H.name,P.name,I.name,j.name].join(""),L.data=B}else L.data=w;A(),N.value=="self"?n("close",L):n("close-mask",{closeWay:N}),n("update:visible",!1)},T=()=>{m.value=="exist"?m.value="custom":m.value="exist",A(),n("switch-module",{type:m.value})},U=(B,L)=>{O(L)};return t.watch(()=>e.visible,B=>{f.value=B}),t.watch(()=>f.value,B=>{B==!1?V():C()}),t.watch(()=>e.province,B=>{d.province=h.value?g(B):B}),t.watch(()=>e.city,B=>{d.city=h.value?g(B):B}),t.watch(()=>e.country,B=>{d.country=h.value?g(B):B}),t.watch(()=>e.town,B=>{d.town=h.value?g(B):B}),t.watch(()=>e.existAddress,B=>{B.forEach((L,H)=>{L.selectedAddress&&(w=L)})}),{selectRegion:r,deliveryTo:s,chooseAnotherAddress:a,classes:i,showPopup:f,privateType:m,tabIndex:p,tabName:y,regionList:d,selectedRegion:S,selectedExistAddress:w,switchModule:T,closeWay:N,close:V,getTabName:F,nextAreaList:O,regionLine:c,tabRegion:u,lineDistance:b,changeRegionTab:K,selectedExist:z,clickOverlay:$,handClose:D,handleElevatorItem:U,initCustomSelected:C,...t.toRefs(e)}}}),jk={class:"fox-address__header"},Wk={class:"fox-address__header__title"},Yk={key:0,class:"custom-address"},Xk={class:"region-tab",ref:"tabRegion"},vk=["onClick"],Qk={class:"region-con"},Gk={class:"region-group"},Zk=["onClick"],Jk={key:1,class:"custom-address"},_k={class:"region-tab",ref:"tabRegion"},eS=["onClick"],tS={class:"elevator-group"},nS={key:2,class:"exist-address"},oS={class:"exist-address-group"},lS={class:"exist-ul"},aS=["onClick"],rS={class:"exist-item-info"},sS={key:0,class:"exist-item-info-top"},iS={class:"exist-item-info-name"},cS={class:"exist-item-info-phone"},dS={class:"exist-item-info-bottom"},uS={class:"btn"};function fS(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-elevator"),c=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(c,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=u=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=u=>e.showPopup=u),isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",jk,[t.createElementVNode("view",{class:"arrow-back",onClick:n[0]||(n[0]=(...u)=>e.switchModule&&e.switchModule(...u))},[t.withDirectives(t.createVNode(a,{name:e.backBtnIcon,color:"#cccccc"},null,8,["name"]),[[t.vShow,e.type=="exist"&&e.privateType=="custom"&&e.backBtnIcon]])]),t.createElementVNode("view",Wk,t.toDisplayString(e.privateType=="custom"?e.selectRegion:e.deliveryTo),1),t.createElementVNode("view",{class:"arrow-close",onClick:n[1]||(n[1]=u=>e.handClose("cross"))},[e.closeBtnIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.closeBtnIcon,color:"#cccccc",size:"18px"},null,8,["name"])):t.createCommentVNode("",!0)])]),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",Yk,[t.createElementVNode("view",Xk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(u,f,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[m==e.tabIndex?"active":""]]),key:m,onClick:p=>e.changeRegionTab(u,f,m)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(u,m)),1)],10,vk))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",Qk,[t.createElementVNode("ul",Gk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList[e.tabName[e.tabIndex]],(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:f,class:t.normalizeClass(["region-item",[e.selectedRegion[e.tabName[e.tabIndex]].id==u.id?"active":""]]),onClick:m=>e.nextAreaList(u)},[e.selectedRegion[e.tabName[e.tabIndex]].id==u.id?(t.openBlock(),t.createBlock(a,{key:0,class:"region-item-icon",type:"self",name:e.selectedIcon,size:"13px"},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(u.name),1)],10,Zk))),128))])])])):e.privateType=="custom2"?(t.openBlock(),t.createElementBlock("view",Jk,[t.createElementVNode("view",_k,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(u,f,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[m==e.tabIndex?"active":""]]),key:m,onClick:p=>e.changeRegionTab(u,f,m)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(u,m)),1)],10,eS))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",tS,[t.createVNode(i,{height:e.height,"index-list":e.regionList[e.tabName[e.tabIndex]],onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])])])):e.privateType=="exist"?(t.openBlock(),t.createElementBlock("view",nS,[t.createElementVNode("div",oS,[t.createElementVNode("ul",lS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(u,f)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["exist-item",[u.selectedAddress?"active":""]]),key:f,onClick:m=>e.selectedExist(u)},[t.createVNode(a,{class:"exist-item-icon",type:"self",name:u.selectedAddress?e.selectedIcon:e.defaultIcon,size:"13px"},null,8,["name"]),t.createElementVNode("div",rS,[u.name&&u.phone?(t.openBlock(),t.createElementBlock("div",sS,[t.createElementVNode("div",iS,t.toDisplayString(u.name),1),t.createElementVNode("div",cS,t.toDisplayString(u.phone),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",dS,[t.createElementVNode("view",null,t.toDisplayString(u.provinceName+u.cityName+u.countyName+u.townName+u.addressDetail),1)])])],10,aS))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"choose-other",onClick:n[2]||(n[2]=(...u)=>e.switchModule&&e.switchModule(...u))},[t.createElementVNode("div",uS,t.toDisplayString(e.chooseAnotherAddress),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"bottom")],2)]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","isWrapTeleport","teleport"])}var Ia=x(xk,[["render",fS]]);const{componentName:mS,create:pS}=R("barrage"),hS=pS({props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:2e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>({[mS]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=0;const a=t.ref(e.danmu),i=t.ref(e.rows),c=t.ref(e.top),u=t.ref(0),f=e.speeds,m=t.ref(0);t.onMounted(()=>{m.value=l.value.offsetWidth,y()}),t.onUnmounted(()=>{clearInterval(s),s=0}),t.onDeactivated(()=>{clearInterval(s),s=0}),t.watch(()=>e.danmu,(h,g)=>{a.value=[...h]});const p=h=>{const g=u.value%a.value.length;!e.loop&&u.value===a.value.length?a.value.splice(a.value.length,0,h):a.value.splice(g,0,h)},y=()=>{clearInterval(s),s=0,s=setInterval(()=>{k(),y()},e.frequency)},k=()=>{if(!e.loop&&u.value>=a.value.length)return;const h=e.loop?u.value%a.value.length:u.value;let g=document.createElement("view");g.innerHTML=a.value[h],g.classList.add("dmitem"),r.value.appendChild(g),t.nextTick(()=>{const d=g.offsetWidth,S=g.offsetHeight;g.classList.add("move"),g.style.animationDuration=`${f}ms`,g.style.top=h%i.value*(S+c.value)+20+"px",g.style.width=d+20+"px",g.style.setProperty("--move-distance",`-${m.value}px`),g.dataset.index=`${h}`,g.addEventListener("animationend",()=>{r.value&&r.value.removeChild(g)}),u.value++})};return{classes:o,danmuList:a,dmBody:l,dmContainer:r,add:p}}}),gS={ref:"dmContainer",class:"dmContainer"};function yS(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("view",gS,null,512)],2)}var za=x(hS,[["render",yS]]);const{componentName:kS,create:SS,scope:bS}=R("signature"),CS=SS({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},reSign:{type:String},confirmText:{type:String}},components:{},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(bS),l=o(e,["unSupportTpl","reSign","confirmText"]),r=t.ref(null),s=t.ref(null),a=t.computed(()=>({[kS]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let d=document.createElement("canvas");return!!(d.getContext&&d.getContext("2d"))},u=()=>{r.value.addEventListener(i.events[0],f,!1)},f=d=>{d.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),r.value.addEventListener(i.events[1],m,!1),r.value.addEventListener(i.events[2],p,!1),r.value.addEventListener(i.events[3],y,!1)},m=d=>{d.preventDefault();let S=i.isSupportTouch?d.touches[0]:d;n("signing",S);let w=r.value.getBoundingClientRect(),N=S.clientX-w.left,b=S.clientY-w.top;i.ctx.lineTo(N,b),i.ctx.stroke()},p=d=>{d.preventDefault(),n("end"),r.value.removeEventListener(i.events[1],m,!1),r.value.removeEventListener(i.events[2],p,!1)},y=d=>{d.preventDefault(),r.value.removeEventListener(i.events[1],m,!1),r.value.removeEventListener(i.events[2],p,!1)},k=()=>{r.value.addEventListener(i.events[2],p,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},h=()=>{g(r.value)},g=d=>{let S;switch(e.type){case"png":S=d.toDataURL("image/png");break;case"jpg":S=d.toDataURL("image/jpeg",.8);break}k(),n("confirm",d,S)};return t.onMounted(()=>{c()&&(i.ctx=r.value.getContext("2d"),i.canvasWidth=s.value.offsetWidth,i.canvasHeight=s.value.offsetHeight,u())}),{...l,...t.toRefs(i),canvas:r,wrap:s,isCanvasSupported:c,confirm:h,clear:k,classes:a}}}),wS={class:"fox-signature-inner",ref:"wrap"},NS=["height","width"],BS={key:0,class:"fox-signature-unsopport"};function VS(e,n,o,l,r,s){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",wS,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,NS),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",BS,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}var qa=x(CS,[["render",VS]]);const{componentName:AS,create:ES,scope:TS}=R("timeselect"),$S=ES({props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!1},isWrapTeleport:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{toLocaleRefs:o}=ee.useFoxI18n(TS),l=o(e,["title"]),r=t.computed(()=>({[AS]:!0})),s=t.computed(()=>({width:"100%",height:e.height})),a=t.computed(()=>e.currentKey),i=t.computed(()=>e.currentTime),c=()=>{n.emit("update:visible",!1),n.emit("select",i.value)};return t.provide("currentKey",a),t.provide("currentTime",i),{...l,classes:r,popStyle:s,close:c}}}),DS={class:"fox-timeselect__title"},IS={class:"fox-timeselect__title__fixed"},zS={class:"fox-timeselect__content"},qS={class:"fox-timeselect__content__pannel"},MS={class:"fox-timeselect__content__detail"};function PS(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{position:"bottom",closeable:"",round:"",isWrapTeleport:e.isWrapTeleport,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",DS,[t.createElementVNode("view",IS,t.toDisplayString(e.title),1)]),t.createElementVNode("view",zS,[t.createElementVNode("view",qS,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",MS,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["isWrapTeleport","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}var Ma=x($S,[["render",PS]]);const{componentName:LS,create:OS}=R("timepannel"),RS=OS({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.reactive({currentKey:o}),r=t.computed(()=>({[LS]:!0,"fox-timepannel--curr":l.currentKey==e.pannelKey})),s=a=>{n.emit("change",a)};return{...t.toRefs(l),classes:r,handlePannel:s}}});function FS(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=a=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}var Pa=x(RS,[["render",FS]]);const{componentName:US,create:HS}=R("timedetail"),KS=HS({name:"timedetail",props:{times:{type:Array,default:()=>[]},detailKey:{type:[Number,String],default:0}},emits:["select"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.inject("currentTime"),r=t.reactive({currentKey:o,currentTime:l}),s=t.computed(()=>({[US]:!0})),a=u=>{let f=r.currentTime.find(m=>m.key==r.currentKey);if(f)return{"fox-timedetail__detail__list__item":!0,"fox-timedetail__detail__list__item--curr":f.list.filter(m=>m===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==r.currentKey).list),c=u=>{n.emit("select",u)};return{classes:s,...t.toRefs(r),getClass:a,renderData:i,handleTime:c}}}),xS={class:"fox-timedetail__detail fox-timedetail__detail--moring"},jS={class:"fox-timedetail__detail__list"},WS=["onClick"];function YS(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",xS,[t.createElementVNode("view",jS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,a=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(a)),key:a,onClick:i=>e.handleTime(a)},t.toDisplayString(a),11,WS))),128))])])],2)}var La=x(KS,[["render",YS]]);const{componentName:o1,create:XS,scope:vS}=R("sku-header"),QS=XS({props:{idText:{type:String,default:""},goods:{type:Object,default:{}}},emits:[],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=ee.useFoxI18n(vS);return{...l(e,["idText"]),getSlots:a=>o[a]}}}),GS={class:"fox-sku-header"},ZS=["src"],JS={class:"fox-sku-header-right"},_S={key:3,class:"fox-sku-header-right-extra"};function eb(e,n,o,l,r,s){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",GS,[t.createElementVNode("img",{src:e.goods.imagePath},null,8,ZS),t.createElementVNode("view",JS,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",_S,t.toDisplayString(e.idText)+"\xA0:\xA0"+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}var tb=x(QS,[["render",eb]]);const{componentName:l1,create:nb}=R("sku-select"),ob=nb({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const o=t.ref([]);return t.watch(()=>e.sku,r=>{o.value=[].slice.call(r)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(o.value=[].slice.call(e.sku))}),{skuInfo:o,changeSaleChild:(r,s,a,i)=>{r.checkFlag||r.disable||n("selectSku",{sku:r,skuIndex:s,parentSku:a,parentIndex:i})}}}}),lb={class:"fox-sku-select"},ab={class:"fox-sku-select-item-title"},rb={class:"fox-sku-select-item-skus"},sb=["onClick"];function ib(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",lb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:a.id},[t.createElementVNode("view",ab,t.toDisplayString(a.name),1),t.createElementVNode("view",rb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:f=>e.changeSaleChild(c,u,a,i),key:c.name},t.toDisplayString(c.name),11,sb))),128))])]))),128))])}var cb=x(ob,[["render",ib]]);const{componentName:a1,create:db}=R("sku-stepper"),ub=db({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"\u8D2D\u4E70\u6570\u91CF"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],setup(e,{emit:n}){const o=t.ref(e.stepperMin);return t.onMounted(()=>{o.value=e.stepperMin}),{goodsCount:o,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(o.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&typeof c=="function"?c():""},changeStepper:c=>{o.value=c,n("changeStepper",c)}}}}),fb={class:"fox-sku-stepper"},mb={class:"fox-sku-stepper-title"},pb=["innerHTML"],hb={class:"fox-sku-stepper-count"};function gb(e,n,o,l,r,s){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",fb,[t.createElementVNode("view",mb,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,pb),t.createElementVNode("view",hb,[t.createVNode(a,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}var yb=x(ub,[["render",gb]]);const{componentName:r1,create:kb}=R("sku-operate"),Sb=kb({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"\u7ACB\u5373\u8D2D\u4E70"},addCartText:{type:String,default:"\u52A0\u5165\u8D2D\u7269\u8F66"},confirmText:{type:String,default:"\u786E\u5B9A"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:o}){return{getBtnDesc:a=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[a],clickBtnOperate:a=>{n("clickBtnOperate",a)},getSlots:a=>o[a]}}}),bb={key:0,class:"fox-sku-operate"},Cb=["innerHTML"],wb={key:1,class:"fox-sku-operate-btn"},Nb=["onClick"];function Bb(e,n,o,l,r,s){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",bb,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-sku-operate-desc",innerHTML:e.btnExtraText},null,8,Cb)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",wb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${a}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(a)},t.toDisplayString(e.getBtnDesc(a)),11,Nb))),128))]))])):t.createCommentVNode("",!0)}var Vb=x(Sb,[["render",Bb]]);const{componentName:s1,create:Ab,scope:Eb}=R("sku"),Tb=Ab({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","selectSku","changeStepper","clickBtnOperate","clickCloseIcon","clickOverlay","close","reduce","add","overLimit","click-overlay"],components:{SkuHeader:tb,SkuSelect:cb,SkuStepper:yb,SkuOperate:Vb},setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=ee.useFoxI18n(Eb),r=l(e,["confirmText","buyText","stepperTitle","addCartText"]),s=t.ref(e.visible),a=t.ref(e.stepperMin);t.watch(()=>e.visible,g=>{s.value=g}),t.watch(()=>s.value,g=>{g==!1&&h()}),t.onMounted(()=>{});const i=g=>o[g],c=g=>{n("selectSku",g)},u=g=>{a.value=g,n("changeStepper",g)},f=g=>{n("add",g)},m=g=>{n("reduce",g)},p=g=>{n("overLimit",g)},y=g=>{n("clickBtnOperate",{type:g,value:a.value})},k=g=>{g=="icon"&&n("click-close-icon"),g=="overlay"&&n("click-overlay"),g=="close"&&n("close"),s.value=!1},h=()=>{n("update:visible",!1)};return{...r,showPopup:s,closePopup:k,selectSku:c,changeStepper:u,stepperOverLimit:p,clickBtnOperate:y,add:f,reduce:m,getSlots:i}}}),$b={class:"fox-sku"},Db={class:"fox-sku-content"};function Ib(e,n,o,l,r,s){const a=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=m=>e.showPopup=m),onClickCloseIcon:n[1]||(n[1]=m=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=m=>e.closePopup("overlay")),onClose:n[3]||(n[3]=m=>e.closePopup("close")),style:{height:"75%"},isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",$b,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")])}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")])}:void 0]),1032,["goods"])),t.createElementVNode("view",Db,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")])}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","isWrapTeleport","teleport"])}var Oa=x(Tb,[["render",Ib]]);const{create:zb}=R("card"),qb=zb({props:{imgUrl:{type:String,default:""},title:{type:String,default:""},price:{type:String,default:""},vipPrice:{type:String,default:""},shopDesc:{type:String,default:""},delivery:{type:String,default:""},shopName:{type:String,default:""},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:o}){return{isHaveSlot:r=>o[r]}}}),Mb={class:"fox-card"},Pb={class:"fox-card__left"},Lb=["src"],Ob={class:"fox-card__right"},Rb={class:"fox-card__right__title"},Fb={key:0,class:"fox-card__right__price"},Ub={class:"fox-card__right__other"},Hb={class:"fox-card__right__shop"},Kb={class:"fox-card__right__shop__name"};function xb(e,n,o,l,r,s){const a=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Mb,[t.createElementVNode("div",Pb,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Lb)]),t.createElementVNode("div",Ob,[t.createElementVNode("div",Rb,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Fb,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(a,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",Ub,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",Hb,[t.createElementVNode("div",Kb,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}var Ra=x(qb,[["render",xb]]);const{componentName:i1,create:jb,scope:Wb}=R("ecard"),Yb=jb({props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:[Object,Array],default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"\xA5"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(Wb),l=t.ref(null),r=t.ref(null),s=t.ref(""),a=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(p,y)=>{l.value=y,a.value=e.cardAmountMin,r.value=p.price,n("change",p),n("update:modelValue",p.price)},u=p=>{let k=p.target.value.replace(/[^\d]/g,"");s.value=k,r.value=k,Number(k)>e.cardAmountMax&&(s.value=e.cardAmountMax,r.value=e.cardAmountMax),Number(k)<e.cardAmountMin&&(s.value=e.cardAmountMin,r.value=e.cardAmountMin),n("inputChange",Number(s.value)),n("update:modelValue",Number(s.value))},f=()=>{l.value="input",a.value=e.cardAmountMin,r.value=s.value,n("update:modelValue",s.value),n("inputClick")},m=p=>{a.value=p,n("changeStep",a.value,r.value)};return t.watch(()=>e.modelValue,p=>{i.value=p}),{handleClick:c,changeStep:m,change:u,inputClick:f,stepValue:a,currentIndex:l,inputValue:s,money:i,t:o}}}),Xb={class:"fox-ecard"},vb={class:"fox-ecard__title"},Qb={class:"fox-ecard__list"},Gb=["onClick"],Zb={class:"fox-ecard__list__input--con"},Jb=["placeholder"],_b={class:"fox-ecard__list__step"};function eC(e,n,o,l,r,s){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",Xb,[t.createElementVNode("view",vb,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",Qb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,Gb))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",Zb,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,Jb),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",_b,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(a,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}var Fa=x(Yb,[["render",eC]]),c1="";const{componentName:d1,create:tC}=R("item-contents"),nC=tC({props:{name:{type:String,default:""},item:{type:Object,default:{}}},components:{},emits:["delIconClick","editIconClick","itemClick"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n();return{delClick:a=>{n("delIconClick",a,e.item),a.stopPropagation()},editClick:a=>{n("editIconClick",a,e.item),a.stopPropagation()},contentsClick:a=>{n("itemClick",a,e.item),a.stopPropagation()},t:o}}}),oC={class:"fox-item-contents__info"},lC={class:"fox-item-contents__info-contact"},aC={class:"fox-item-contents__info-contact-name"},rC={class:"fox-item-contents__info-contact-tel"},sC={key:0,class:"fox-item-contents__info-contact-default"},iC={class:"fox-item-contents__info-handle"},cC={class:"fox-item-contents__addr"};function dC(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:"fox-item-contents__contain",onClick:n[0]||(n[0]=(...i)=>e.contentsClick&&e.contentsClick(...i))},[t.createElementVNode("div",oC,[t.createElementVNode("div",lC,[t.renderSlot(e.$slots,"contentTop",{},()=>[t.createElementVNode("div",aC,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",rC,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",sC,t.toDisplayString(e.t("defaultText")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",iC,[t.renderSlot(e.$slots,"contentIcon",{},()=>[t.createVNode(a,{name:"del",class:"fox-item-contents__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(a,{name:"edit",class:"fox-item-contents__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",cC,[t.renderSlot(e.$slots,"contentAddr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}var En=x(nC,[["render",dC]]);const{componentName:u1,create:uC}=R("long-press-shell"),fC=uC({props:{item:{type:Object,default:{}}},emits:["holdingDown","handleDel","handelMask","handleCopy","handleSet","handleDelIcon","handleEditIcon","handleItemContent"],components:{ItemContents:En},setup(e,{emit:n,slots:o}){let l=null;const r=t.ref(!1),s=d=>{l=0,r.value=!0,n("holdingDown",d,e.item)};return{holddownstart:d=>{l=setTimeout(()=>{s(d)},300)},holddownmove:d=>{clearTimeout(l)},holddownend:d=>{clearTimeout(l)},showMaskRef:r,delClick:d=>{l!=0&&(n("handleDel",d,e.item),d.stopPropagation())},copyCLick:d=>{l!=0&&(n("handleCopy",d,e.item),d.stopPropagation())},hideMaskClick:d=>{r.value=!1},setDefault:d=>{l!=0&&(n("handleSet",d,e.item),d.stopPropagation())},maskClick:d=>{l!=0&&(r.value=!1),d.stopPropagation(),d.preventDefault()},delShellClick:(d,S)=>{n("handleDelIcon",d,e.item),d.stopPropagation()},editShellClick:(d,S)=>{n("handleEditIcon",d,e.item),d.stopPropagation()},itemShellClick:(d,S)=>{n("handleItemContent",d,e.item),d.stopPropagation()}}}}),mC={class:"fox-long-press-shell"},pC=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u590D\u5236"),t.createElementVNode("br"),t.createTextVNode("\u5730\u5740")],-1)],hC=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u8BBE\u7F6E"),t.createElementVNode("br"),t.createTextVNode("\u9ED8\u8BA4")],-1)],gC=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u5220\u9664"),t.createElementVNode("br"),t.createTextVNode("\u5730\u5740")],-1)];function yC(e,n,o,l,r,s){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",mC,[t.createElementVNode("div",{class:"fox-long-press-shell__contain",onTouchstart:n[4]||(n[4]=(...i)=>e.holddownstart&&e.holddownstart(...i)),onTouchend:n[5]||(n[5]=(...i)=>e.holddownend&&e.holddownend(...i)),onTouchmove:n[6]||(n[6]=(...i)=>e.holddownmove&&e.holddownmove(...i))},[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"]),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-long-press-shell__contain-mask",onClick:n[3]||(n[3]=(...i)=>e.maskClick&&e.maskClick(...i))},[t.renderSlot(e.$slots,"longpressAll",{},()=>[t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-copy",onClick:n[0]||(n[0]=(...i)=>e.copyCLick&&e.copyCLick(...i))},pC),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-set",onClick:n[1]||(n[1]=(...i)=>e.setDefault&&e.setDefault(...i))},hC),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-del",onClick:n[2]||(n[2]=(...i)=>e.delClick&&e.delClick(...i))},gC)])])):t.createCommentVNode("",!0)],32),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-addresslist__mask-bottom",onClick:n[7]||(n[7]=(...i)=>e.hideMaskClick&&e.hideMaskClick(...i))})):t.createCommentVNode("",!0)])}var kC=x(fC,[["render",yC]]);const{componentName:h1,create:SC}=R("swipe-shell"),bC=SC({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:En},setup(e,{emit:n,slots:o}){const l=t.ref(!1);return{delShellClick:(f,m)=>{n("handleDelIcon",f,e.item),f.stopPropagation()},editShellClick:(f,m)=>{n("handleEditIcon",f,e.item),f.stopPropagation()},itemShellClick:(f,m)=>{l.value||(n("handleItemContent",f,e.item),f.stopPropagation())},swipeDelClick:(f,m)=>{n("handelSwipeDel",f,e.item),f.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),CC={class:"fox-swipe-shell"},wC=t.createTextVNode("\u5220\u9664");function NC(e,n,o,l,r,s){const a=t.resolveComponent("item-contents"),i=t.resolveComponent("fox-button"),c=t.resolveComponent("fox-swipe");return t.openBlock(),t.createBlock(c,null,{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperightbtn",{},()=>[t.createVNode(i,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[wC]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",CC,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick,onTouchmove:e.swipemove,onTouchstart:e.swipestart},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick","onTouchmove","onTouchstart"])])]),_:3})}var BC=x(bC,[["render",NC]]);const{componentName:g1,create:VC}=R("general-shell"),AC=VC({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:En},setup(e,{emit:n,slots:o}){return{delShellClick:(i,c)=>{n("handleDelIcon",i,e.item),i.stopPropagation()},editShellClick:(i,c)=>{n("handleEditIcon",i,e.item),i.stopPropagation()},itemShellClick:(i,c)=>{n("handleItemContent",i,e.item),i.stopPropagation()},swipeDelClick:(i,c)=>{n("handelSwipeDel",i,e.item),i.stopPropagation()}}}}),EC={class:"fox-general-shell"};function TC(e,n,o,l,r,s){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",EC,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"])])}var $C=x(AC,[["render",TC]]);const{componentName:y1,create:DC,scope:IC}=R("addresslist"),zC=DC({props:{data:{type:Array,default:[]},longPressEdition:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataMapOptions:{type:Object,default:{}}},components:{LongPressShell:kC,SwipeShell:BC,GeneralShell:$C},emits:["handelDelIcon","handelEditIcon","handelItem","longPressCopyClick","longPressSetClick","longPressDelClick","swipeDelClick","addAddressClick"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(IC),l=t.ref([]),r=t.reactive({id:2,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),s=()=>{Object.keys(e.dataMapOptions).length>0&&(l.value=e.data.map((k,h)=>jn(r,k,e.dataMapOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const a=(k,h)=>{n("handelDelIcon",k,h),k.stopPropagation()},i=(k,h)=>{n("handelEditIcon",k,h),k.stopPropagation()},c=(k,h)=>{n("handelItem",k,h),k.stopPropagation()},u=(k,h)=>{n("longPressCopyClick",k,h),k.stopPropagation()},f=(k,h)=>{n("longPressSetClick",k,h),k.stopPropagation()},m=(k,h)=>{n("longPressDelClick",k,h),k.stopPropagation()},p=(k,h)=>{n("swipeDelClick",k,h),k.stopPropagation()},y=k=>{n("addAddressClick",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{clickDelIcon:a,clickEditIcon:i,clickContentItem:c,clickLongCopy:u,clickLongSet:f,clickLongDel:m,clickSwipeDel:p,addAddress:y,dataArray:l,t:o}}}),qC={class:"fox-addresslist"};function MC(e,n,o,l,r,s){const a=t.resolveComponent("general-shell"),i=t.resolveComponent("long-press-shell"),c=t.resolveComponent("swipe-shell"),u=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",qC,[!e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.dataArray,(f,m)=>(t.openBlock(),t.createBlock(a,{key:"general"+m,item:f,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},null,8,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.dataArray,(f,m)=>(t.openBlock(),t.createBlock(i,{key:"longpress"+m,item:f,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandleCopy:e.clickLongCopy,onHandleSet:e.clickLongSet,onHandleDel:e.clickLongDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),longpressAll:t.withCtx(()=>[t.renderSlot(e.$slots,"longpressbtns")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandleCopy","onHandleSet","onHandleDel"]))),128)):t.createCommentVNode("",!0),!e.longPressEdition&&e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.dataArray,(f,m)=>(t.openBlock(),t.createBlock(c,{key:"swipe"+m,item:f,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),swiperightbtn:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperight")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-addresslist__bottom",onClick:n[0]||(n[0]=(...f)=>e.addAddress&&e.addAddress(...f))},[t.createVNode(u,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)])}var Ua=x(zC,[["render",MC]]);const{componentName:k1,create:PC}=R("category"),LC=PC({props:{type:{type:String,default:"classify"},category:{type:Array,default:()=>[]}},setup(e,{emit:n,slots:o}){const l=t.ref(0),r=t.ref(!1),s=a=>{l.value=a,n("change",a)};return t.onMounted(()=>{}),{getChildList:s,checkIndex:l,categoryLeft:r}}}),OC={class:"fox-category"},RC={class:"fox-category__cateList"},FC={key:0},UC=["onClick"];function HC(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",OC,[t.createElementVNode("div",RC,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",FC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(a?.catName),11,UC)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}var Ha=x(LC,[["render",HC]]);const{componentName:S1,create:KC}=R("categorypane"),xC=KC({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:l=>{n("onChange",l)}}}}),jC={class:"fox-categorypane"},WC={key:0,class:"fox-categorypane__cateListRight"},YC={class:"fox-categorypane__childTitle"},XC={key:0,class:"fox-categorypane__childItemList"},vC=["onClick"],QC=["src"],GC={class:"fox-categorypane__skuImg"},ZC={key:1,class:"fox-categorypane__cateListRight"},JC={class:"fox-categorypane__childTitle"},_C={key:0,class:"fox-categorypane__childItemList"},e0=["onClick"],t0={class:"fox-categorypane__skuName"},n0={key:2,class:"fox-categorypane__selfItemList"};function o0(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",jC,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",WC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",YC,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",XC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:u,onClick:f=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-categorypane__childImg",src:c.backImg},null,8,QC),t.createElementVNode("div",GC,t.toDisplayString(c.catName),1)],8,vC))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",ZC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",JC,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",_C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:u,onClick:f=>e.onChange(c)},[t.createElementVNode("div",t0,t.toDisplayString(c.catName),1)],8,e0))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",n0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__skuName",key:i,onClick:n[0]||(n[0]=c=>e.onChange())},t.toDisplayString(a.catName),1))),128))])):t.createCommentVNode("",!0)])}var Ka=x(xC,[["render",o0]]);const{componentName:b1,create:l0}=R("comment-header"),a0=l0({props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},components:{},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),r0={class:"fox-comment-header__user"},s0={class:"fox-comment-header__user-avter"},i0=["src"],c0={class:"fox-comment-header__user-score"},d0={key:0,class:"fox-comment-header__time"};function u0(e,n,o,l,r,s){const a=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",r0,[t.createElementVNode("view",s0,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,i0)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",c0,[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=i=>e.info.score=i),"icon-size":"10",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",d0,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=i=>e.info.score=i),"icon-size":"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}var f0=x(a0,[["render",u0]]);const{componentName:C1,create:m0}=R("comment-images"),p0=m0({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{},emits:["click","clickImages"],setup(e,{emit:n}){const o=t.ref(!1),l=t.ref(1),r=t.ref([]);return t.watch(()=>[e.videos,e.images],a=>{a[0].length>0&&a[0].forEach(i=>{i.type="video"}),r.value=a[0].concat(a[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(a=>{a.type="video"}),r.value=e.videos.concat(e.images)}),{isShowImage:o,initIndex:l,showImages:(a,i)=>{const{videos:c,images:u}=e,f=a=="img"?i-c.length:i;n("clickImages",{type:a,index:f,value:a=="img"?u[f]:c[f]})},totalImages:r}}}),h0=["onClick"],g0=["src"],y0=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),k0=["onClick"],S0=["src"],b0={key:0,class:"fox-comment-images__mask"};function C0(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c,c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,g0),y0],8,h0))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,S0),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",b0,[t.createElementVNode("span",null,"\u5171 "+t.toDisplayString(e.totalImages.length)+" \u5F20",1),t.createVNode(a,{name:"right",size:"12"})])):t.createCommentVNode("",!0)],8,k0)):t.createCommentVNode("",!0)],64))),128))],2)}var w0=x(p0,[["render",C0]]);const{componentName:w1,create:N0}=R("comment-bottom"),B0=N0({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>{}},operation:{type:Array,default:["replay","like","more"]},complaintsText:{type:String,default:""}},components:{},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n("comment"),l=o(e,["complaintsText"]),r=t.ref(!1),s=t.ref([]);return t.onMounted(()=>{const c=["replay","like","more"];e.operation&&e.operation.forEach(u=>{c.includes(u)&&s.value.push(u)})}),{...l,showPopver:r,operate:c=>{c=="more"&&(r.value=!r.value),n("clickOperate",c)},mergeOp:s,handleClick:()=>{n("handleClick")}}}}),V0={class:"fox-comment-bottom"},A0={key:0},E0={class:"fox-comment-bottom__cpx"},T0=["onClick"];function $0(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",V0,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",A0,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",E0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${i}`]),onClick:u=>e.operate(i)},[i!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[i]),1),t.createVNode(a,{name:i=="like"?"fabulous":"comment"},null,8,["name"])],64)):t.createCommentVNode("",!0),i=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(a,{name:"more-x"}),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.complaintsText),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,T0))),128))])])}var D0=x(B0,[["render",$0]]);const{componentName:I0,create:z0,scope:q0}=R("comment"),M0=z0({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>{}},follow:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:f0,CommentImages:w0,CommentBottom:D0},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(q0),l=t.computed(()=>({[I0]:!0})),r=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:l,conEllipsis:r,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:o}}}),P0=["innerHTML"],L0={class:"fox-comment__follow-title"},O0={class:"fox-comment__follow-com"},R0={key:0,class:"fox-comment__follow-img"};function F0(e,n,o,l,r,s){const a=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("fox-icon"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(a,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...f)=>e.handleClick&&e.handleClick(...f)),innerHTML:e.info.content.replace(/\n/g,"<br>")},null,12,P0),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",L0,[t.createVNode(c,{size:"14",name:"joy-smile"}),t.createTextVNode(t.toDisplayString(e.t("additionalReview",[e.follow.days])),1)]),t.createElementVNode("view",O0,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",R0,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",[e.follow.images.length])),1),t.createVNode(c,{size:"12",name:"right"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}var xa=x(M0,[["render",F0]]);const U0=[oo,lo,ao,ro,uo,we,Jt,ko,Bo,Vo,on,Fo,Yo,ol,rl,gn,il,kn,dl,fl,Nt,ml,Ke,pl,hl,oe,Vt,me,gl,yl,kl,Sl,Cl,wl,Vl,El,Tl,$l,Dl,Il,zl,ql,Ml,Pl,Ll,Ol,Fl,Ul,Hl,Kl,xl,jl,an,mn,un,Wl,Yl,tt,Xl,vl,Ql,Gl,Zl,Jl,_l,It,ta,Nn,bn,An,la,aa,ra,sa,ia,ca,da,ua,fa,We,ma,pa,Ye,Xe,wt,qt,ka,ba,Ca,wa,Na,Ba,Va,Aa,Ea,Ta,$a,Da,Ia,za,qa,Ma,Pa,La,Oa,Ra,Fa,Ua,Ha,Ka,xa];var H0=new mr(U0,"4.0.0");Object.defineProperty(M,"clone",{enumerable:!0,get:function(){return X.clone}}),Object.defineProperty(M,"extend",{enumerable:!0,get:function(){return X.extend}}),Object.defineProperty(M,"isArray",{enumerable:!0,get:function(){return X.isArray}}),Object.defineProperty(M,"isDate",{enumerable:!0,get:function(){return X.isDate}}),Object.defineProperty(M,"isESModule",{enumerable:!0,get:function(){return X.isESModule}}),Object.defineProperty(M,"isEqual",{enumerable:!0,get:function(){return X.isEqual}}),Object.defineProperty(M,"isFunction",{enumerable:!0,get:function(){return X.isFunction}}),Object.defineProperty(M,"isMap",{enumerable:!0,get:function(){return X.isMap}}),Object.defineProperty(M,"isObject",{enumerable:!0,get:function(){return X.isObject}}),Object.defineProperty(M,"isPlainObject",{enumerable:!0,get:function(){return X.isPlainObject}}),Object.defineProperty(M,"isPromise",{enumerable:!0,get:function(){return X.isPromise}}),Object.defineProperty(M,"isSet",{enumerable:!0,get:function(){return X.isSet}}),Object.defineProperty(M,"isString",{enumerable:!0,get:function(){return X.isString}}),Object.defineProperty(M,"isSymbol",{enumerable:!0,get:function(){return X.isSymbol}}),Object.defineProperty(M,"toBoolean",{enumerable:!0,get:function(){return X.toBoolean}}),Object.defineProperty(M,"toNumber",{enumerable:!0,get:function(){return X.toNumber}}),Object.defineProperty(M,"toTypeString",{enumerable:!0,get:function(){return X.toTypeString}}),M.ActionSheet=Zl,M.Address=Ia,M.AddressList=Ua,M.Animate=$a,M.Audio=la,M.AudioOperate=aa,M.Avatar=ra,M.AvatarGroup=sa,M.BackTop=Jl,M.Badge=Ca,M.Barrage=za,M.Button=Ke,M.Calendar=mn,M.CalendarItem=rl,M.Card=Ra,M.Cascader=an,M.CascaderItem=Yo,M.Category=Ha,M.CategoryPane=Ka,M.Cell=pl,M.CellGroup=hl,M.Checkbox=kn,M.CheckboxItem=dl,M.CircleProgress=da,M.Col=kl,M.Collapse=Va,M.CollapseItem=Aa,M.Comment=xa,M.Content=ro,M.CountDown=ba,M.CountUp=ka,M.DateItem=ol,M.DatePicker=un,M.Dialog=It,M.Divider=wl,M.Drag=_l,M.Ecard=Fa,M.Elevator=Ml,M.Ellipsis=Ta,M.Empty=fa,M.FixedNav=$l,M.Footer=ao,M.Grid=Vl,M.GridItem=El,M.Group=uo,M.Header=lo,M.Icon=oe,M.Image=gl,M.ImagePreview=qt,M.Indicator=Fl,M.InfiniteLoading=ta,M.InputItem=ko,M.InputNumber=Wl,M.Item=we,M.Layout=yl,M.LinkItem=ml,M.List=ia,M.Menu=Dl,M.MenuItem=Il,M.MoneyItem=Bo,M.Navbar=Tl,M.NoticeBar=ua,M.Notify=Nn,M.NumberKeyboard=Ql,M.OverLay=Vt,M.Page=oo,M.Pagination=Pl,M.Picker=tt,M.PickerItem=Fo,M.Placeholder=Jt,M.Popover=Na,M.Popup=me,M.Price=wt,M.Progress=ca,M.Radio=gn,M.RadioItem=il,M.Range=xl,M.Rate=Yl,M.Row=Sl,M.SearchBar=jl,M.ShortPassword=Xl,M.SideNavBar=Ul,M.SideNavBarItem=Hl,M.Signature=qa,M.Skeleton=Ba,M.Sku=Oa,M.Step=pa,M.Steps=ma,M.Sticky=Cl,M.SubSideNavBar=Kl,M.Swipe=Gl,M.Swiper=Ye,M.SwiperItem=Xe,M.Switch=bn,M.SwitchItem=fl,M.TabPane=Ol,M.Tabbar=zl,M.TabbarItem=ql,M.Table=Ea,M.Tabs=Ll,M.Tag=wa,M.Textarea=on,M.TextareaItem=Vo,M.TimeDetail=La,M.TimePannel=Pa,M.TimeSelect=Ma,M.Toast=An,M.UniqueID=mo,M.Uploader=vl,M.Video=We,M.WaterMark=Da,M.clearNonNumber=jt,M.compareTo=Kt,M.debounce=or,M.decimalLength=Un,M.default=H0,M.divide=Ht,M.excludeProps=xn,M.floatData=jn,M.hinttext=Nt,M.includeProps=pe,M.indexOf=Kn,M.integerLength=Fn,M.isBrowser=Re,M.isEmptyString=ge,M.isNumberString=Rn,M.isRegExp=On,M.lastIndexOf=Xa,M.multiply=Mn,M.negate=Pn,M.numberFormat=xt,M.raf=qe,M.throttle=vn,M.unNumberFormat=Ln,M.valueLength=se,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});