@v-miniapp/ui-react 1.0.45 → 1.0.59

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 (255) hide show
  1. package/dist/components/app/app.d.ts +17 -0
  2. package/dist/components/app/bottom-tab-bar-layout/hook.d.ts +21 -0
  3. package/dist/components/app/bottom-tab-bar-layout/store.d.ts +13 -0
  4. package/dist/components/app/bottom-tab-bar-layout/type.d.ts +13 -0
  5. package/dist/components/app/data-theme.d.ts +8 -0
  6. package/dist/components/app/index.d.ts +9 -18
  7. package/dist/components/app/navigation-bar-layout/hook.d.ts +17 -0
  8. package/dist/components/app/navigation-bar-layout/store.d.ts +13 -0
  9. package/dist/components/app/navigation-bar-layout/type.d.ts +7 -0
  10. package/dist/components/app/page-layout/hook.d.ts +21 -0
  11. package/dist/components/app/page-layout/store.d.ts +13 -0
  12. package/dist/components/app/page-layout/type.d.ts +8 -0
  13. package/dist/components/app/type.d.ts +27 -0
  14. package/dist/components/calendar/default-render.d.ts +1 -1
  15. package/dist/components/calendar/utils.d.ts +1 -1
  16. package/dist/components/carousel/index.d.ts +1 -0
  17. package/dist/components/input-wrapper/input-wrapper.d.ts +2 -2
  18. package/dist/components/layout/page.d.ts +8 -1
  19. package/dist/external/index.js +11344 -7959
  20. package/dist/external/styles.css +1 -1
  21. package/dist/index.d.ts +4 -1
  22. package/dist/index.js +4194 -4376
  23. package/dist/styles.css +1 -1
  24. package/dist/utils/event-emitter.d.ts +4 -0
  25. package/dist-storybook/assets/App-Dp1UG-xp.js +93 -0
  26. package/dist-storybook/assets/{Color-AVL7NMMY-1_8XTICv.js → Color-AVL7NMMY-XA8cFKdV.js} +1 -1
  27. package/dist-storybook/assets/DEEPLINK-cjgFMuRJ.js +33 -0
  28. package/dist-storybook/assets/{DocsRenderer-PQXLIZUC-BO86igwd.js → DocsRenderer-PQXLIZUC-D10-0Yfb.js} +2 -2
  29. package/dist-storybook/assets/EVENTS-BY66PjI7.js +65 -0
  30. package/dist-storybook/assets/GETTING_STARTED-580o-9Mx.js +64 -0
  31. package/dist-storybook/assets/GETTING_STARTED-BiQMvjvo.js +62 -0
  32. package/dist-storybook/assets/GETTING_STARTED-CIVMqKZW.js +80 -0
  33. package/dist-storybook/assets/{INFINITE_SCROLL-BtM3uoX0.js → INFINITE_SCROLL-BbeR5HeP.js} +1 -1
  34. package/dist-storybook/assets/LocalesProvider-CMlmwAyY.js +53 -0
  35. package/dist-storybook/assets/MIGRATE_DARKMODE_TO_THEME-CBDyZyg2.js +107 -0
  36. package/dist-storybook/assets/{MIGRATION_GUIDE-2LONslE4.js → MIGRATION_GUIDE-FZyRWI-B.js} +3 -3
  37. package/dist-storybook/assets/OVERVIEW-C9_6gX5Q.js +51 -0
  38. package/dist-storybook/assets/Router-B5U8bubH.js +71 -0
  39. package/dist-storybook/assets/{TAILWIND_INTEGRATION-_T-VfvkM.js → TAILWIND_INTEGRATION-BJdy5DAv.js} +1 -1
  40. package/dist-storybook/assets/THEME-CRbvH7KT.js +103 -0
  41. package/dist-storybook/assets/_baseClone-DQVxEhny.js +1 -0
  42. package/dist-storybook/assets/alert-CKwsuaPI.js +1 -0
  43. package/dist-storybook/assets/{alert.stories-B-vuojPh.js → alert.stories-D0X5wUHk.js} +3 -3
  44. package/dist-storybook/assets/app-CTv8lFU3.js +1 -0
  45. package/dist-storybook/assets/avatar-rWcYGe6j.js +1 -0
  46. package/dist-storybook/assets/{avatar.stories-KYFztAc8.js → avatar.stories-8lrbhMma.js} +6 -6
  47. package/dist-storybook/assets/{axe-CmvD4WV5.js → axe-BHGdSCoA.js} +1 -1
  48. package/dist-storybook/assets/badge-VcjGVEum.js +1 -0
  49. package/dist-storybook/assets/{badge.stories-Be2ItCmQ.js → badge.stories-BEFNaUA1.js} +3 -3
  50. package/dist-storybook/assets/{blocks-BuaOUtiH.js → blocks-DKR3P4qW.js} +3 -3
  51. package/dist-storybook/assets/{bottom-tab-bar-CtcTAxuI.js → bottom-tab-bar-B6IAoRwz.js} +1 -1
  52. package/dist-storybook/assets/{bottom-tab-bar.stories-CDmEve6z.js → bottom-tab-bar.stories-DXzLlO5o.js} +3 -3
  53. package/dist-storybook/assets/button-DJH3RlJl.js +1 -0
  54. package/dist-storybook/assets/{button.stories-CaqLWQiY.js → button.stories-DgYDJ6x7.js} +3 -3
  55. package/dist-storybook/assets/calendar-C4Xe_TW2.js +1 -0
  56. package/dist-storybook/assets/{calendar.stories-DLWZldet.js → calendar.stories-IVvRAjWN.js} +3 -3
  57. package/dist-storybook/assets/carousel-DJlgMyS5.js +37 -0
  58. package/dist-storybook/assets/{carousel.stories-B8YbGOOr.js → carousel.stories-3rA3nxdL.js} +3 -3
  59. package/dist-storybook/assets/checkbox-JOxcmyCZ.js +1 -0
  60. package/dist-storybook/assets/{checkbox.stories-CLvfZPiw.js → checkbox.stories-ge3pgfBb.js} +3 -3
  61. package/dist-storybook/assets/chip-Crt60rph.js +1 -0
  62. package/dist-storybook/assets/{chip.stories-BbwJb5eD.js → chip.stories-D7E6fdiV.js} +3 -3
  63. package/dist-storybook/assets/{date-Cg-Uk_pp.js → date-B3PFMb6s.js} +1 -1
  64. package/dist-storybook/assets/date-field-range-B-sv9nbW.js +1 -0
  65. package/dist-storybook/assets/date-field.stories-B9G2heHt.js +129 -0
  66. package/dist-storybook/assets/date-picker-BPzKPdhO.js +1 -0
  67. package/dist-storybook/assets/{date-picker.stories-BuGWvzFL.js → date-picker.stories-CIFgk4q_.js} +3 -3
  68. package/dist-storybook/assets/dialog-BAfGQzk5.js +1 -0
  69. package/dist-storybook/assets/{dialog.stories-DJ0WsSkA.js → dialog.stories-vDMKz9Tw.js} +3 -3
  70. package/dist-storybook/assets/{chip-kG4p82WT.js → dropdown-Dtomaqpw.js} +2 -2
  71. package/dist-storybook/assets/{dropdown.stories-D6JUYP73.js → dropdown.stories-Cj0HM0VI.js} +3 -3
  72. package/dist-storybook/assets/{embla-carousel-react.esm-BYjpaHZ9.js → embla-carousel-react.esm-5D5fs7OQ.js} +1 -1
  73. package/dist-storybook/assets/icon-CdiFzFyf.js +1 -0
  74. package/dist-storybook/assets/{icon.stories-B-ZvRzFf.js → icon.stories-DWwbUUY-.js} +3 -3
  75. package/dist-storybook/assets/iframe-BHaCv4dM.css +1 -0
  76. package/dist-storybook/assets/{iframe-CQAwSt4E.js → iframe-DfPay7Zl.js} +42 -42
  77. package/dist-storybook/assets/image-CMKb-R3x.js +9 -0
  78. package/dist-storybook/assets/{image.stories-C4l8D3ju.js → image.stories-BhZU057W.js} +3 -3
  79. package/dist-storybook/assets/index-BWpuenI4.js +1 -0
  80. package/dist-storybook/assets/{index-CgMRTj-o.js → index-DqZh6B0b.js} +1 -1
  81. package/dist-storybook/assets/{index-BV0AJWP6.js → index-EGt7xBnA.js} +1 -1
  82. package/dist-storybook/assets/{index-DHiZ-gXR.js → index-cMNObl2z.js} +1 -1
  83. package/dist-storybook/assets/input-wrapper-CgaUwbbE.js +1 -0
  84. package/dist-storybook/assets/{label-DV2iCDmN.js → label-D44azUgi.js} +1 -1
  85. package/dist-storybook/assets/{label.stories-BwTIPFXX.js → label.stories-CXJjdYf_.js} +3 -3
  86. package/dist-storybook/assets/{navigation-bar-vI-FPasP.js → navigation-bar-DK3TxcTu.js} +2 -2
  87. package/dist-storybook/assets/{navigation-bar.stories-DYuFaJFD.js → navigation-bar.stories-CB3Kg-sH.js} +3 -3
  88. package/dist-storybook/assets/number-field-Bz7su9S1.js +1 -0
  89. package/dist-storybook/assets/{number-field.stories--fn26TJu.js → number-field.stories-DSxPSzLv.js} +3 -3
  90. package/dist-storybook/assets/omit-BWHsnDSR.js +1 -0
  91. package/dist-storybook/assets/option-item-CpeNcb5w.js +1 -0
  92. package/dist-storybook/assets/{option-item.stories-snjAvgay.js → option-item.stories-BvXoc8WX.js} +3 -3
  93. package/dist-storybook/assets/pagination-Cp-DHO4Q.js +1 -0
  94. package/dist-storybook/assets/{pagination.stories-BoEs0jzS.js → pagination.stories-_5qj2nTS.js} +4 -4
  95. package/dist-storybook/assets/proxy-B4G9nIBd.js +1 -0
  96. package/dist-storybook/assets/radio-D0aV0RIg.js +1 -0
  97. package/dist-storybook/assets/{radio.stories-DuN-Awi_.js → radio.stories-BNR-wwuw.js} +3 -3
  98. package/dist-storybook/assets/rating-D2e8RTGl.js +1 -0
  99. package/dist-storybook/assets/{rating.stories-BCcQjMEx.js → rating.stories-CI0LG0Qq.js} +3 -3
  100. package/dist-storybook/assets/{react-18-CNyWQ7je.js → react-18-C7pDmBBf.js} +1 -1
  101. package/dist-storybook/assets/{react-hufnxGVs.js → react-I9jCW2VV.js} +1 -1
  102. package/dist-storybook/assets/search-field-DINESW8Y.js +1 -0
  103. package/dist-storybook/assets/{search-field.stories-DiCZbhng.js → search-field.stories-CKXC6-Za.js} +3 -3
  104. package/dist-storybook/assets/section-content-D49PabBW.js +1 -0
  105. package/dist-storybook/assets/{section.stories-C2I_kKhu.js → section.stories-9vd48AgB.js} +3 -3
  106. package/dist-storybook/assets/sheet-footer-nEdxsYan.js +1 -0
  107. package/dist-storybook/assets/{sheet.stories-wk1JaKU5.js → sheet.stories-C3gLIQsn.js} +3 -3
  108. package/dist-storybook/assets/skeleton-B12XbNAJ.js +1 -0
  109. package/dist-storybook/assets/{skeleton.stories-BCmX-VNr.js → skeleton.stories-C0y1o1Y_.js} +3 -3
  110. package/dist-storybook/assets/{store-D2RudmNr.js → store-Ce3Ikv5g.js} +5 -5
  111. package/dist-storybook/assets/switch-D0Z9tWin.js +1 -0
  112. package/dist-storybook/assets/{switch.stories-BqPLNKB9.js → switch.stories-BdWFln-M.js} +3 -3
  113. package/dist-storybook/assets/{tab-bar-CSeCmtIZ.js → tab-bar-kExoGg5P.js} +1 -1
  114. package/dist-storybook/assets/{tab-bar.stories-Cb6v8H2w.js → tab-bar.stories-BgDXX0of.js} +3 -3
  115. package/dist-storybook/assets/text-area-GKy5HL12.js +1 -0
  116. package/dist-storybook/assets/{text-area.stories-By8bCfgc.js → text-area.stories-DCt3RB3A.js} +3 -3
  117. package/dist-storybook/assets/text-field-CGWNqitB.js +1 -0
  118. package/dist-storybook/assets/{text-field.stories-CrWBAhvI.js → text-field.stories-Bqv7f948.js} +3 -3
  119. package/dist-storybook/assets/toast-provider-DKSrfhJD.js +9 -0
  120. package/dist-storybook/assets/{toast.stories-iWAToAZA.js → toast.stories-CcFzS6QI.js} +1 -1
  121. package/dist-storybook/assets/tooltip-B9rDI6z9.js +1 -0
  122. package/dist-storybook/assets/{tooltip.stories-RC6SuPPD.js → tooltip.stories-DDdsuU3U.js} +3 -3
  123. package/dist-storybook/assets/typography-CB8hPDyK.js +1 -0
  124. package/dist-storybook/assets/{typography.stories-Bu8qFugR.js → typography.stories-BzCxaZQU.js} +3 -3
  125. package/dist-storybook/assets/{uploader.stories-B2wW9qVy.js → uploader.stories-izVumFqZ.js} +3 -3
  126. package/dist-storybook/assets/use-app-pause-ClsUnndr.js +21 -0
  127. package/dist-storybook/assets/use-app-resume-D_EcIvMd.js +21 -0
  128. package/dist-storybook/assets/use-bottom-tab-bar-BC1cz2uE.js +49 -0
  129. package/dist-storybook/assets/use-custom-icon-event-cUk4Md0Y.js +26 -0
  130. package/dist-storybook/assets/use-did-hide-BmABiaUE.js +30 -0
  131. package/dist-storybook/assets/use-did-show-CQuySkkT.js +30 -0
  132. package/dist-storybook/assets/use-histories-CBm09Lno.js +30 -0
  133. package/dist-storybook/assets/use-history-7yguNz6O.js +33 -0
  134. package/dist-storybook/assets/use-language-DPyWMce2.js +46 -0
  135. package/dist-storybook/assets/use-load-more-KlDJZhj2.js +42 -0
  136. package/dist-storybook/assets/use-location-C7kE1yla.js +39 -0
  137. package/dist-storybook/assets/use-navigate-BpIyvtwc.js +36 -0
  138. package/dist-storybook/assets/use-navigation-bar-guzwhM_u.js +42 -0
  139. package/dist-storybook/assets/use-navigation-type-DOndDqQH.js +27 -0
  140. package/dist-storybook/assets/use-page-layout-dO6ylI1b.js +37 -0
  141. package/dist-storybook/assets/use-page-scroll-CCG2d2Gb.js +42 -0
  142. package/dist-storybook/assets/use-pull-to-refresh-lhumDu1H.js +38 -0
  143. package/dist-storybook/assets/use-settings-changed-Bt58DJ-c.js +30 -0
  144. package/dist-storybook/assets/use-translate-Jhz6jTXo.js +59 -0
  145. package/dist-storybook/assets/{visibility-sensor-CwrzJO06.js → visibility-sensor-Jf-Nmil6.js} +1 -1
  146. package/dist-storybook/iframe.html +2 -2
  147. package/dist-storybook/index.json +1 -1
  148. package/dist-storybook/project.json +1 -1
  149. package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +2 -2
  150. package/dist-storybook/sb-addons/docs-1/manager-bundle.js +2 -2
  151. package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +1 -1
  152. package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +4 -4
  153. package/dist-storybook/stories-data.json +152 -122
  154. package/package.json +3 -1
  155. package/dist/components/app/components/app.d.ts +0 -13
  156. package/dist/components/app/components/link.d.ts +0 -8
  157. package/dist/components/app/components/navigation-analytic.d.ts +0 -2
  158. package/dist/components/app/components/pages-render.d.ts +0 -2
  159. package/dist/components/app/context/location-key.d.ts +0 -4
  160. package/dist/components/app/hooks/use-app-pause.d.ts +0 -1
  161. package/dist/components/app/hooks/use-app-resume.d.ts +0 -1
  162. package/dist/components/app/hooks/use-app-state.d.ts +0 -7
  163. package/dist/components/app/hooks/use-bottom-tab-bar.d.ts +0 -13
  164. package/dist/components/app/hooks/use-did-hide.d.ts +0 -1
  165. package/dist/components/app/hooks/use-did-show.d.ts +0 -1
  166. package/dist/components/app/hooks/use-history.d.ts +0 -2
  167. package/dist/components/app/hooks/use-location.d.ts +0 -1
  168. package/dist/components/app/hooks/use-navigate.d.ts +0 -1
  169. package/dist/components/app/hooks/use-navigation-bar.d.ts +0 -12
  170. package/dist/components/app/hooks/use-navigation-type.d.ts +0 -1
  171. package/dist/components/app/hooks/use-page-config.d.ts +0 -1
  172. package/dist/components/app/hooks/use-page-layout.d.ts +0 -14
  173. package/dist/components/app/hooks/use-page-scroll.d.ts +0 -5
  174. package/dist/components/app/hooks/use-page-state.d.ts +0 -6
  175. package/dist/components/app/stores/app.d.ts +0 -24
  176. package/dist/components/app/stores/app.selector.d.ts +0 -11
  177. package/dist/components/app/types/app.d.ts +0 -55
  178. package/dist/components/app/types/navigation.d.ts +0 -30
  179. package/dist/components/app/utils/animation.d.ts +0 -2
  180. package/dist/components/app/utils/data-theme.d.ts +0 -5
  181. package/dist/components/app/utils/history.d.ts +0 -7
  182. package/dist/hooks/use-analytic.d.ts +0 -1
  183. package/dist/hooks/use-is-using-app.d.ts +0 -1
  184. package/dist/hooks/use-is-using-locales.d.ts +0 -1
  185. package/dist/locales/defaultResources/en.d.ts +0 -27
  186. package/dist/locales/defaultResources/vi.d.ts +0 -27
  187. package/dist/locales/fns.d.ts +0 -6
  188. package/dist/locales/hooks.d.ts +0 -9
  189. package/dist/locales/index.d.ts +0 -4
  190. package/dist/locales/provider.d.ts +0 -6
  191. package/dist/locales/store.d.ts +0 -13
  192. package/dist/locales/types.d.ts +0 -37
  193. package/dist/locales/utils.d.ts +0 -2
  194. package/dist-storybook/assets/ANIMATION-CUdn1GTK.js +0 -99
  195. package/dist-storybook/assets/APP_FRAMEWORK-ljbIOHYd.js +0 -197
  196. package/dist-storybook/assets/BOTTOM_TAB_BAR-DxCwCfBK.js +0 -175
  197. package/dist-storybook/assets/CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js +0 -250
  198. package/dist-storybook/assets/DARK_MODE-CoHseCDO.js +0 -57
  199. package/dist-storybook/assets/GETTING_STARTED-H_vVi5cv.js +0 -77
  200. package/dist-storybook/assets/KEEP_ALIVE-CL2au0al.js +0 -126
  201. package/dist-storybook/assets/LOCALE-XTCey55y.js +0 -465
  202. package/dist-storybook/assets/MOBILE_BEHAVIOURS-DZ6alKTX.js +0 -177
  203. package/dist-storybook/assets/PAGE_LAYOUT-BuOpN-1Y.js +0 -192
  204. package/dist-storybook/assets/ROUTING_NAVIGATION-BCPHXNto.js +0 -335
  205. package/dist-storybook/assets/_setToString-CbM921C9.js +0 -1
  206. package/dist-storybook/assets/alert-DLW8CoyB.js +0 -1
  207. package/dist-storybook/assets/avatar-GxcYPA1p.js +0 -1
  208. package/dist-storybook/assets/badge-D_LzMVtw.js +0 -1
  209. package/dist-storybook/assets/button-CL7GeC23.js +0 -1
  210. package/dist-storybook/assets/calendar-dOCsjhVU.js +0 -1
  211. package/dist-storybook/assets/carousel-1Kww3hIz.js +0 -37
  212. package/dist-storybook/assets/checkbox-MGytNNRt.js +0 -1
  213. package/dist-storybook/assets/classname-CUR_zgkh.js +0 -1
  214. package/dist-storybook/assets/date-field.stories-Diptwqfv.js +0 -129
  215. package/dist-storybook/assets/date-picker-Dnq_-0Md.js +0 -1
  216. package/dist-storybook/assets/icon-DdQsMyRa.js +0 -1
  217. package/dist-storybook/assets/iframe-yMKl6hJA.css +0 -1
  218. package/dist-storybook/assets/image-C3EsNRhz.js +0 -9
  219. package/dist-storybook/assets/input-wrapper-BKHgnPy6.js +0 -1
  220. package/dist-storybook/assets/number-field-CXKmnfKe.js +0 -1
  221. package/dist-storybook/assets/omit-Bsx5nTI0.js +0 -1
  222. package/dist-storybook/assets/option-item-LRh_OyV4.js +0 -1
  223. package/dist-storybook/assets/pagination-DZHoBs_4.js +0 -1
  224. package/dist-storybook/assets/pick-BhmhLmLe.js +0 -1
  225. package/dist-storybook/assets/radio-B5NJxG_l.js +0 -1
  226. package/dist-storybook/assets/rating-BdXViYBv.js +0 -1
  227. package/dist-storybook/assets/search-field-CQqgFbfg.js +0 -1
  228. package/dist-storybook/assets/section-content-DGNB4eLN.js +0 -1
  229. package/dist-storybook/assets/skeleton-C91JgehG.js +0 -1
  230. package/dist-storybook/assets/store-CPumdfcU.js +0 -1
  231. package/dist-storybook/assets/switch-p-aXI-ev.js +0 -1
  232. package/dist-storybook/assets/text-area-DwSXyqOe.js +0 -1
  233. package/dist-storybook/assets/text-field-jK6rpOo2.js +0 -1
  234. package/dist-storybook/assets/toast-provider-DurnMJhd.js +0 -9
  235. package/dist-storybook/assets/tooltip-QDdel5My.js +0 -1
  236. package/dist-storybook/assets/typography-DEpAJl_i.js +0 -1
  237. package/dist-storybook/assets/use-app-pause-B_tWHKJK.js +0 -29
  238. package/dist-storybook/assets/use-app-resume--900G-dV.js +0 -29
  239. package/dist-storybook/assets/use-custom-icon-event-3VExRzvC.js +0 -29
  240. package/dist-storybook/assets/use-did-hide-BUsL73ab.js +0 -48
  241. package/dist-storybook/assets/use-did-show-C1-VLDxi.js +0 -49
  242. package/dist-storybook/assets/use-histories-E4E2jJEY.js +0 -50
  243. package/dist-storybook/assets/use-history-o1im8IDj.js +0 -67
  244. package/dist-storybook/assets/use-location-CUEaBO4P.js +0 -56
  245. package/dist-storybook/assets/use-navigate-C4CTuFSZ.js +0 -84
  246. package/dist-storybook/assets/use-navigation-type-Dcz4hgKo.js +0 -44
  247. package/dist-storybook/assets/use-page-config-DSJBVQbq.js +0 -48
  248. package/dist-storybook/assets/use-page-scroll-dY-U1Vv4.js +0 -69
  249. package/dist-storybook/assets/use-page-state-CtNpwGPN.js +0 -79
  250. package/dist-storybook/assets/use-settings-changed-BBJwIHTE.js +0 -29
  251. /package/dist/components/app/{components/bottom-tab-bar.d.ts → bottom-tab-bar-layout/index.d.ts} +0 -0
  252. /package/dist/components/app/{components/navigation-bar.d.ts → navigation-bar-layout/index.d.ts} +0 -0
  253. /package/dist/components/app/{components/page-layout.d.ts → page-layout/index.d.ts} +0 -0
  254. /package/dist/{components/app/hooks → hooks}/use-custom-icon-event.d.ts +0 -0
  255. /package/dist/{components/app/hooks → hooks}/use-settings-changed.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import{j as t,r}from"./iframe-CQAwSt4E.js";import{T as y,S as B,M as x,P as T,a as b}from"./blocks-BuaOUtiH.js";import{b as i}from"./chip-kG4p82WT.js";import{B as s}from"./button-CL7GeC23.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DHiZ-gXR.js";import"./classname-CUR_zgkh.js";import"./icon-DdQsMyRa.js";import"./colors-_6nFGM3e.js";import"./navigation-bar-vI-FPasP.js";import"./visibility-sensor-CwrzJO06.js";import"./index-B-Ksafg0.js";import"./store-CPumdfcU.js";import"./_setToString-CbM921C9.js";import"./react-hufnxGVs.js";import"./omit-Bsx5nTI0.js";import"./pick-BhmhLmLe.js";import"./image-C3EsNRhz.js";import"./typography-DEpAJl_i.js";import"./bottom-tab-bar-CtcTAxuI.js";import"./toast-provider-DurnMJhd.js";import"./carousel-1Kww3hIz.js";import"./embla-carousel-react.esm-BYjpaHZ9.js";import"./pagination-DZHoBs_4.js";import"./section-content-DGNB4eLN.js";import"./option-item-LRh_OyV4.js";import"./index-BV0AJWP6.js";import"./alert-DLW8CoyB.js";import"./skeleton-C91JgehG.js";import"./label-DV2iCDmN.js";import"./input-wrapper-BKHgnPy6.js";import"./text-field-jK6rpOo2.js";import"./number-field-CXKmnfKe.js";import"./checkbox-MGytNNRt.js";import"./radio-B5NJxG_l.js";import"./date-Cg-Uk_pp.js";import"./date-picker-Dnq_-0Md.js";import"./calendar-dOCsjhVU.js";import"./search-field-CQqgFbfg.js";import"./text-area-DwSXyqOe.js";import"./avatar-GxcYPA1p.js";import"./badge-D_LzMVtw.js";import"./switch-p-aXI-ev.js";import"./tab-bar-CSeCmtIZ.js";import"./rating-BdXViYBv.js";import"./tooltip-QDdel5My.js";const O=()=>{const n=`
1
+ import{j as t,r}from"./iframe-DfPay7Zl.js";import{T as y,S as B,M as x,P as T,a as b}from"./blocks-DKR3P4qW.js";import{D as i}from"./dialog-BAfGQzk5.js";import{B as s}from"./button-DJH3RlJl.js";import{t as e}from"./store-Ce3Ikv5g.js";import"./preload-helper-PPVm8Dsz.js";import"./index-cMNObl2z.js";import"./image-CMKb-R3x.js";import"./visibility-sensor-Jf-Nmil6.js";import"./index-B-Ksafg0.js";import"./icon-CdiFzFyf.js";import"./colors-_6nFGM3e.js";import"./typography-CB8hPDyK.js";import"./navigation-bar-DK3TxcTu.js";import"./proxy-B4G9nIBd.js";import"./index-BWpuenI4.js";import"./react-I9jCW2VV.js";import"./_baseClone-DQVxEhny.js";import"./app-CTv8lFU3.js";import"./toast-provider-DKSrfhJD.js";import"./bottom-tab-bar-B6IAoRwz.js";const O=()=>{const n=`
2
2
  ## ${e("common.table.title")}
3
3
 
4
4
  | ${e("common.table.name")} | ${e("common.table.type")} | ${e("common.table.required")} | ${e("common.table.description")} |
@@ -17,7 +17,7 @@ import{j as t,r}from"./iframe-CQAwSt4E.js";import{T as y,S as B,M as x,P as T,a
17
17
  | \`overlay\` | \`'default' | 'blur'\` | ${e("common.table.no")} | ${e("components.dialog.overlayDescription")} |
18
18
  | \`className\` | \`string\` | ${e("common.table.no")} | ${e("components.dialog.classNameDescription")} |
19
19
  | \`...props\` | \`ComponentPropsWithRef<'div'>\` | ${e("common.table.no")} | ${e("components.dialog.propsDescription")} |
20
- `;return t.jsxs(t.Fragment,{children:[t.jsx(y,{}),t.jsx(B,{}),t.jsx(x,{children:e("components.dialog.description")}),t.jsx(T,{}),t.jsx(x,{children:n}),t.jsx(b,{})]})},xe={title:"Components/Dialog",component:i,parameters:{layout:"fullscreen",docs:{page:O}},tags:["autodocs"],argTypes:{open:{control:"boolean",description:e("components.dialog.argTypes.openDescription"),table:{type:{summary:"boolean"}}},onBackdropClick:{action:"backdrop clicked",description:e("components.dialog.argTypes.onBackdropClickDescription"),table:{type:{summary:"(e: React.MouseEvent) => void"}}},onCloseClick:{action:"close clicked",description:e("components.dialog.argTypes.onCloseClickDescription"),table:{type:{summary:"(e: React.MouseEvent) => void"}}},title:{control:"text",description:e("components.dialog.argTypes.titleDescription"),table:{type:{summary:"ReactNode"}}},description:{control:"text",description:e("components.dialog.argTypes.descriptionDescription"),table:{type:{summary:"ReactNode"}}},topImageUrl:{control:"text",description:e("components.dialog.argTypes.topImageUrlDescription"),table:{type:{summary:"string"}}},top:{control:!1,description:e("components.dialog.argTypes.topDescription"),table:{type:{summary:"ReactNode"}}},children:{control:!1,description:e("components.dialog.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}},footer:{control:!1,description:e("components.dialog.argTypes.footerDescription"),table:{type:{summary:"ReactNode"}}},closeAction:{control:"boolean",description:e("components.dialog.argTypes.closeActionDescription"),table:{type:{summary:"boolean"}}},portal:{control:"boolean",description:e("components.dialog.argTypes.portalDescription"),table:{type:{summary:"boolean"}}},overlay:{control:"select",options:["default","blur"],description:e("components.dialog.argTypes.overlayDescription"),table:{type:{summary:"default | blur"}}},className:{control:"text",description:e("components.dialog.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},l={storyName:e("components.dialog.stories.default.storyName"),render:()=>{const[n,o]=r.useState(!1),[k,C]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.default.buttonText")}),t.jsx(i,{open:k,portal:!0,onBackdropClick:()=>C(!1),title:e("components.dialog.stories.default.title2"),description:e("components.dialog.stories.default.description2"),footer:t.jsx(t.Fragment,{children:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>C(!1),children:e("components.dialog.stories.default.close")})})}),t.jsx(i,{open:n,portal:!0,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.default.title"),description:e("components.dialog.stories.default.description"),footer:t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.default.cancel")}),t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.default.confirm")}),t.jsx(s,{size:"large",theme:"neutral",onClick:()=>C(!0),children:e("components.dialog.stories.default.open2")})]})})]})}},a={storyName:e("components.dialog.stories.titleOnly.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.titleOnly.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.titleOnly.title"),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.titleOnly.close")})})]})}},c={storyName:e("components.dialog.stories.withTopImage.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withTopImage.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.withTopImage.title"),description:e("components.dialog.stories.withTopImage.description"),topImageUrl:"https://picsum.photos/600/300",footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withTopImage.close")})})]})}},p={storyName:e("components.dialog.stories.withCloseButton.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withCloseButton.buttonText")}),t.jsx(i,{open:n,closeAction:!0,onBackdropClick:()=>o(!1),onCloseClick:()=>o(!1),title:e("components.dialog.stories.withCloseButton.title"),description:e("components.dialog.stories.withCloseButton.description"),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withCloseButton.close")})})]})}},m={storyName:e("components.dialog.stories.withCustomTopContent.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withCustomTopContent.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),top:t.jsxs("div",{style:{padding:"24px 24px 16px",textAlign:"center"},children:[t.jsx("h3",{style:{margin:0,marginBottom:"8px"},children:e("components.dialog.stories.withCustomTopContent.customTitle")}),t.jsx("p",{style:{margin:0,color:"#666"},children:e("components.dialog.stories.withCustomTopContent.customSubtitle")})]}),title:e("components.dialog.stories.withCustomTopContent.title"),description:e("components.dialog.stories.withCustomTopContent.description"),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withCustomTopContent.close")})})]})}},d={storyName:e("components.dialog.stories.footerWithMultipleButtons.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.footerWithMultipleButtons.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.footerWithMultipleButtons.title"),description:e("components.dialog.stories.footerWithMultipleButtons.description"),footer:t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithMultipleButtons.cancel")}),t.jsx(s,{size:"large",theme:"neutral",type:"solid",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithMultipleButtons.save")})]})})]})}},u={storyName:e("components.dialog.stories.footerWithStackedButtons.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.footerWithStackedButtons.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.footerWithStackedButtons.title"),description:e("components.dialog.stories.footerWithStackedButtons.description"),footer:t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithStackedButtons.primaryAction")}),t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithStackedButtons.secondaryAction")})]})})]})}},g={storyName:e("components.dialog.stories.withCustomContent.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withCustomContent.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),closeAction:!0,onCloseClick:()=>o(!1),title:e("components.dialog.stories.withCustomContent.title"),children:t.jsxs("div",{style:{padding:"16px"},children:[t.jsx("h3",{children:e("components.dialog.stories.withCustomContent.contentTitle")}),t.jsx("p",{children:e("components.dialog.stories.withCustomContent.contentText")})]}),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withCustomContent.close")})})]})}},h={storyName:e("components.dialog.stories.completeExample.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.completeExample.buttonText")}),t.jsx(i,{open:n,closeAction:!0,onCloseClick:()=>o(!1),onBackdropClick:()=>o(!1),title:e("components.dialog.stories.completeExample.titleText"),description:e("components.dialog.stories.completeExample.descriptionText"),footer:t.jsxs("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end"},children:[t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.completeExample.cancel")}),t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.completeExample.confirm")})]})})]})}},f={storyName:e("components.dialog.stories.interactive.title"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.interactive.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.interactive.title"),description:e("components.dialog.stories.interactive.descriptionText"),closeAction:!1,footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.interactive.close")})})]})}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
20
+ `;return t.jsxs(t.Fragment,{children:[t.jsx(y,{}),t.jsx(B,{}),t.jsx(x,{children:e("components.dialog.description")}),t.jsx(T,{}),t.jsx(x,{children:n}),t.jsx(b,{})]})},J={title:"Components/Dialog",component:i,parameters:{layout:"fullscreen",docs:{page:O}},tags:["autodocs"],argTypes:{open:{control:"boolean",description:e("components.dialog.argTypes.openDescription"),table:{type:{summary:"boolean"}}},onBackdropClick:{action:"backdrop clicked",description:e("components.dialog.argTypes.onBackdropClickDescription"),table:{type:{summary:"(e: React.MouseEvent) => void"}}},onCloseClick:{action:"close clicked",description:e("components.dialog.argTypes.onCloseClickDescription"),table:{type:{summary:"(e: React.MouseEvent) => void"}}},title:{control:"text",description:e("components.dialog.argTypes.titleDescription"),table:{type:{summary:"ReactNode"}}},description:{control:"text",description:e("components.dialog.argTypes.descriptionDescription"),table:{type:{summary:"ReactNode"}}},topImageUrl:{control:"text",description:e("components.dialog.argTypes.topImageUrlDescription"),table:{type:{summary:"string"}}},top:{control:!1,description:e("components.dialog.argTypes.topDescription"),table:{type:{summary:"ReactNode"}}},children:{control:!1,description:e("components.dialog.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}},footer:{control:!1,description:e("components.dialog.argTypes.footerDescription"),table:{type:{summary:"ReactNode"}}},closeAction:{control:"boolean",description:e("components.dialog.argTypes.closeActionDescription"),table:{type:{summary:"boolean"}}},portal:{control:"boolean",description:e("components.dialog.argTypes.portalDescription"),table:{type:{summary:"boolean"}}},overlay:{control:"select",options:["default","blur"],description:e("components.dialog.argTypes.overlayDescription"),table:{type:{summary:"default | blur"}}},className:{control:"text",description:e("components.dialog.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},l={storyName:e("components.dialog.stories.default.storyName"),render:()=>{const[n,o]=r.useState(!1),[k,C]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.default.buttonText")}),t.jsx(i,{open:k,portal:!0,onBackdropClick:()=>C(!1),title:e("components.dialog.stories.default.title2"),description:e("components.dialog.stories.default.description2"),footer:t.jsx(t.Fragment,{children:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>C(!1),children:e("components.dialog.stories.default.close")})})}),t.jsx(i,{open:n,portal:!0,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.default.title"),description:e("components.dialog.stories.default.description"),footer:t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.default.cancel")}),t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.default.confirm")}),t.jsx(s,{size:"large",theme:"neutral",onClick:()=>C(!0),children:e("components.dialog.stories.default.open2")})]})})]})}},a={storyName:e("components.dialog.stories.titleOnly.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.titleOnly.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.titleOnly.title"),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.titleOnly.close")})})]})}},c={storyName:e("components.dialog.stories.withTopImage.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withTopImage.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.withTopImage.title"),description:e("components.dialog.stories.withTopImage.description"),topImageUrl:"https://picsum.photos/600/300",footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withTopImage.close")})})]})}},p={storyName:e("components.dialog.stories.withCloseButton.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withCloseButton.buttonText")}),t.jsx(i,{open:n,closeAction:!0,onBackdropClick:()=>o(!1),onCloseClick:()=>o(!1),title:e("components.dialog.stories.withCloseButton.title"),description:e("components.dialog.stories.withCloseButton.description"),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withCloseButton.close")})})]})}},m={storyName:e("components.dialog.stories.withCustomTopContent.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withCustomTopContent.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),top:t.jsxs("div",{style:{padding:"24px 24px 16px",textAlign:"center"},children:[t.jsx("h3",{style:{margin:0,marginBottom:"8px"},children:e("components.dialog.stories.withCustomTopContent.customTitle")}),t.jsx("p",{style:{margin:0,color:"#666"},children:e("components.dialog.stories.withCustomTopContent.customSubtitle")})]}),title:e("components.dialog.stories.withCustomTopContent.title"),description:e("components.dialog.stories.withCustomTopContent.description"),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withCustomTopContent.close")})})]})}},d={storyName:e("components.dialog.stories.footerWithMultipleButtons.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.footerWithMultipleButtons.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.footerWithMultipleButtons.title"),description:e("components.dialog.stories.footerWithMultipleButtons.description"),footer:t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithMultipleButtons.cancel")}),t.jsx(s,{size:"large",theme:"neutral",type:"solid",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithMultipleButtons.save")})]})})]})}},u={storyName:e("components.dialog.stories.footerWithStackedButtons.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.footerWithStackedButtons.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.footerWithStackedButtons.title"),description:e("components.dialog.stories.footerWithStackedButtons.description"),footer:t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithStackedButtons.primaryAction")}),t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.footerWithStackedButtons.secondaryAction")})]})})]})}},g={storyName:e("components.dialog.stories.withCustomContent.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.withCustomContent.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),closeAction:!0,onCloseClick:()=>o(!1),title:e("components.dialog.stories.withCustomContent.title"),children:t.jsxs("div",{style:{padding:"16px"},children:[t.jsx("h3",{children:e("components.dialog.stories.withCustomContent.contentTitle")}),t.jsx("p",{children:e("components.dialog.stories.withCustomContent.contentText")})]}),footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.withCustomContent.close")})})]})}},h={storyName:e("components.dialog.stories.completeExample.storyName"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.completeExample.buttonText")}),t.jsx(i,{open:n,closeAction:!0,onCloseClick:()=>o(!1),onBackdropClick:()=>o(!1),title:e("components.dialog.stories.completeExample.titleText"),description:e("components.dialog.stories.completeExample.descriptionText"),footer:t.jsxs("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end"},children:[t.jsx(s,{size:"large",theme:"neutral",type:"solid-subtle",onClick:()=>o(!1),children:e("components.dialog.stories.completeExample.cancel")}),t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.completeExample.confirm")})]})})]})}},f={storyName:e("components.dialog.stories.interactive.title"),render:()=>{const[n,o]=r.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!0),children:e("components.dialog.stories.interactive.buttonText")}),t.jsx(i,{open:n,onBackdropClick:()=>o(!1),title:e("components.dialog.stories.interactive.title"),description:e("components.dialog.stories.interactive.descriptionText"),closeAction:!1,footer:t.jsx(s,{size:"large",theme:"neutral",onClick:()=>o(!1),children:e("components.dialog.stories.interactive.close")})})]})}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
21
21
  storyName: t('components.dialog.stories.default.storyName'),
22
22
  render: () => {
23
23
  const [open, setOpen] = useState(false);
@@ -209,4 +209,4 @@ import{j as t,r}from"./iframe-CQAwSt4E.js";import{T as y,S as B,M as x,P as T,a
209
209
  </Button>} />
210
210
  </>;
211
211
  }
212
- }`,...f.parameters?.docs?.source}}};const ke=["Default","TitleOnly","WithTopImage","WithCloseButton","WithCustomTopContent","FooterWithMultipleButtons","FooterWithStackedButtons","WithCustomContent","CompleteExample","Interactive"];export{h as CompleteExample,l as Default,d as FooterWithMultipleButtons,u as FooterWithStackedButtons,f as Interactive,a as TitleOnly,p as WithCloseButton,g as WithCustomContent,m as WithCustomTopContent,c as WithTopImage,ke as __namedExportsOrder,xe as default};
212
+ }`,...f.parameters?.docs?.source}}};const K=["Default","TitleOnly","WithTopImage","WithCloseButton","WithCustomTopContent","FooterWithMultipleButtons","FooterWithStackedButtons","WithCustomContent","CompleteExample","Interactive"];export{h as CompleteExample,l as Default,d as FooterWithMultipleButtons,u as FooterWithStackedButtons,f as Interactive,a as TitleOnly,p as WithCloseButton,g as WithCustomContent,m as WithCustomTopContent,c as WithTopImage,K as __namedExportsOrder,J as default};
@@ -1,4 +1,4 @@
1
- import{j as e,e as Re,r as t}from"./iframe-CQAwSt4E.js";import{c as k,g as w}from"./classname-CUR_zgkh.js";import{I as L,r as ze}from"./icon-DdQsMyRa.js";import{L as qe,u as ve,n as ge}from"./navigation-bar-vI-FPasP.js";import"./visibility-sensor-CwrzJO06.js";import"./store-CPumdfcU.js";import{B as z}from"./button-CL7GeC23.js";import{I as Y}from"./image-C3EsNRhz.js";import{T as N}from"./typography-DEpAJl_i.js";import"./bottom-tab-bar-CtcTAxuI.js";import"./toast-provider-DurnMJhd.js";import"./carousel-1Kww3hIz.js";import"./pagination-DZHoBs_4.js";import{r as F}from"./blocks-BuaOUtiH.js";import"./section-content-DGNB4eLN.js";import{O as _e}from"./option-item-LRh_OyV4.js";import"./alert-DLW8CoyB.js";import{S as R}from"./skeleton-C91JgehG.js";import"./label-DV2iCDmN.js";import{g as X,I as J}from"./input-wrapper-BKHgnPy6.js";import"./text-field-jK6rpOo2.js";import"./number-field-CXKmnfKe.js";import"./checkbox-MGytNNRt.js";import"./radio-B5NJxG_l.js";import{d as be}from"./date-Cg-Uk_pp.js";import{D as Te}from"./date-picker-Dnq_-0Md.js";import{C as de}from"./calendar-dOCsjhVU.js";import{u as H}from"./index-BV0AJWP6.js";import{o as ae}from"./omit-Bsx5nTI0.js";import{S as Ee}from"./search-field-CQqgFbfg.js";import"./text-area-DwSXyqOe.js";import"./avatar-GxcYPA1p.js";import{B as De}from"./badge-D_LzMVtw.js";import"./switch-p-aXI-ev.js";import"./tab-bar-CSeCmtIZ.js";import"./rating-BdXViYBv.js";import"./tooltip-QDdel5My.js";const Me=""+new URL("default-error-BcnD8fFO.png",import.meta.url).href,U=w("error"),ce=({image:l,title:r="Đã xảy ra lỗi",description:a="Lỗi kết nối đến hệ thống. Vui lòng kiểm tra kết nối mạng hoặc đợi trong giây lát.",button:n,className:i,...o})=>e.jsxs("div",{className:k(U,i),...o,children:[e.jsx("div",{className:`${U}__image`,children:l||e.jsx(Y,{width:208,height:208,src:Me})}),e.jsxs("div",{className:`${U}__content`,children:[e.jsx(N,{size:"base",color:"alias-object-primary",children:r}),e.jsx(N,{size:"small",color:"alias-object-secondary",children:a})]}),e.jsx(z,{children:"Thử lại",theme:"neutral",size:"large",...n})]});ce.__docgenInfo={description:"",methods:[],displayName:"ErrorComponent",props:{title:{defaultValue:{value:"'Đã xảy ra lỗi'",computed:!1},required:!1},description:{defaultValue:{value:"'Lỗi kết nối đến hệ thống. Vui lòng kiểm tra kết nối mạng hoặc đợi trong giây lát.'",computed:!1},required:!1}}};const ne=w("error-boundary");class Ve extends Re.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}render(){return this.state.hasError?e.jsx("div",{className:k(ne,{[`${ne}--global`]:this.props.isGlobal}),children:e.jsx(ce,{})}):this.props.children}}Ve.__docgenInfo={description:"",methods:[],displayName:"ErrorBoundary",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},isGlobal:{required:!1,tsType:{name:"boolean"},description:""}}};const re=l=>l.histories[l.histories.length-1],Se=l=>r=>{if(l)return r.histories.find(a=>a.location.key===l)},pe=()=>{const{locationKey:l}=t.useContext(qe);return ve(r=>l&&Se(l)(r)||re(r))},ye=l=>{const a=pe().location.key,[n,i]=t.useState(!1),o=t.useRef(l);return o.current=l,t.useEffect(()=>ge.on("beforeLocationChangeP1",({history:v,nextHistory:c})=>{v.location.key===a&&c.location.key!==a?(i(!0),o.current?.()):i(!1)}),[a]),n},fe=l=>{const a=pe().location.key,[n,i]=t.useState(!0),o=t.useRef(l);return o.current=l,t.useEffect(()=>ge.on("beforeLocationChangeP2",({history:v,nextHistory:c})=>{v.location.key!==a&&c.location.key===a?(i(!0),o.current?.()):i(!1)}),[a]),t.useEffect(()=>{o.current?.()},[]),n},ke=()=>ve(r=>r.initialized),q=w("sheet"),Q=t.forwardRef(({children:l,className:r,open:a,overlay:n="default",onBackdropClick:i,...o},v)=>e.jsxs("div",{ref:v,className:k(q,{[`${q}--open`]:a},r),...o,children:[e.jsx("div",{className:k(`${q}__overlay`,{[`${q}__overlay--blur`]:n==="blur"}),onClick:i}),e.jsx("div",{className:`${q}__box`,children:l})]})),Pe=({open:l,...r})=>{const[a,n]=t.useState(l),i=t.useRef(null);return fe(()=>{l&&n(l)}),ye(()=>{n(!1)}),t.useEffect(()=>{n(l)},[l]),t.useEffect(()=>{a&&i.current&&document.body.appendChild(i.current)},[a]),F.createPortal(e.jsx(Q,{ref:i,open:a,...r}),document.body)},$e=({open:l,...r})=>{const[a,n]=t.useState(l),i=t.useRef(null);return t.useEffect(()=>()=>{n(!1)},[]),t.useEffect(()=>{n(l)},[l]),t.useEffect(()=>{a&&i.current&&document.body.appendChild(i.current)},[a]),F.createPortal(e.jsx(Q,{ref:i,open:a,...r}),document.body)},E=({portal:l=!0,...r})=>{const a=ke();return l&&a?e.jsx(Pe,{...r}):l&&!a?e.jsx($e,{...r}):e.jsx(Q,{...r})};E.__docgenInfo={description:"",methods:[],displayName:"Sheet",props:{open:{required:!1,tsType:{name:"boolean"},description:""},overlay:{required:!1,tsType:{name:"union",raw:"'default' | 'blur'",elements:[{name:"literal",value:"'default'"},{name:"literal",value:"'blur'"}]},description:""},onBackdropClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void",signature:{arguments:[{type:{name:"ReactMouseEvent",raw:"React.MouseEvent<HTMLDivElement, MouseEvent>",elements:[{name:"HTMLDivElement"},{name:"MouseEvent"}]},name:"e"}],return:{name:"void"}}},description:""},portal:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};const P=w("sheet-header"),D=({title:l,backIcon:r,onBackClick:a,closeIcon:n,onCloseClick:i,className:o,...v})=>e.jsxs("div",{className:k(P,o),...v,children:[!!r&&e.jsx(z,{shape:"rounded",size:"medium",type:"ghost",theme:"neutral",leadingIcon:r===!0?{name:"chevron-left"}:r,onClick:a}),!r&&e.jsx("div",{className:`${P}__placeholder-icon`}),e.jsx(N,{component:"h3",size:"large",weight:"regular",className:`${P}__title`,children:l}),!n&&e.jsx("div",{className:`${P}__placeholder-icon`}),!!n&&e.jsx(z,{shape:"rounded",size:"medium",type:"ghost",theme:"neutral",leadingIcon:n===!0?{name:"xmark"}:n,onClick:i})]});D.__docgenInfo={description:"",methods:[],displayName:"SheetHeader"};const ie=w("sheet-body"),M=({className:l,children:r,horizontalSpace:a=!0,...n})=>e.jsx("div",{className:k(ie,{[`${ie}--horizontal-space`]:a},l),...n,children:r});M.__docgenInfo={description:"",methods:[],displayName:"SheetBody",props:{children:{required:!1,tsType:{name:"ReactNode"},description:""},horizontalSpace:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};const Oe=w("sheet-footer"),A=({children:l,className:r,...a})=>e.jsx("div",{className:k(Oe,r),...a,children:l});A.__docgenInfo={description:"",methods:[],displayName:"SheetFooter",props:{children:{required:!1,tsType:{name:"ReactNode"},description:""}}};const I=w("dialog"),Z=t.forwardRef(({topImageUrl:l,top:r,title:a,description:n,children:i,closeAction:o,footer:v,open:c,onBackdropClick:y,onCloseClick:g,overlay:u="default",className:s,...b},d)=>e.jsxs("div",{ref:d,className:k(I,{[`${I}--open`]:c},s),...b,children:[e.jsx("div",{className:k(`${I}__overlay`,{[`${I}__overlay--blur`]:u==="blur"}),onClick:y}),!!o&&e.jsx(z,{className:`${I}__close`,leadingIcon:{name:"xmark"},size:"large",theme:"neutral",type:"outline",shape:"pill",onClick:g}),e.jsxs("div",{className:k(`${I}__box`,!!o&&`${I}__box--close`),children:[l&&e.jsx(Y,{src:l,className:`${I}__image`}),r,(!!a||!!n)&&e.jsxs("div",{className:`${I}__title-group`,children:[!!a&&e.jsx(N,{size:"large",weight:600,children:a}),!!n&&e.jsx(N,{size:"base",weight:400,children:n})]}),!!i&&e.jsx("div",{className:`${I}__body`,children:i}),!!v&&e.jsx("div",{className:`${I}__footer`,children:v})]})]})),Le=({open:l,...r})=>{const[a,n]=t.useState(l),i=t.useRef(null);return fe(()=>{l&&n(l)}),ye(()=>{n(!1)}),t.useEffect(()=>{n(l)},[l]),t.useEffect(()=>{a&&i.current&&document.body.appendChild(i.current)},[a]),F.createPortal(e.jsx(Z,{ref:i,open:a,...r}),document.body)},Fe=({open:l,...r})=>{const[a,n]=t.useState(l),i=t.useRef(null);return t.useEffect(()=>()=>{n(!1)},[]),t.useEffect(()=>{n(l)},[l]),t.useEffect(()=>{a&&i.current&&document.body.appendChild(i.current)},[a]),F.createPortal(e.jsx(Z,{ref:i,open:a,...r}),document.body)},He=({portal:l=!0,...r})=>{const a=ke();return l&&a?e.jsx(Le,{...r}):l&&!a?e.jsx(Fe,{...r}):e.jsx(Z,{...r})};He.__docgenInfo={description:"",methods:[],displayName:"Dialog",props:{portal:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};const Ae=w("date-field-input"),$=t.forwardRef((l,r)=>{const{value:a,onChange:n,onCompleted:i,defaultValue:o,...v}=l,c=a!==void 0,[y,g]=t.useState(()=>a?_(a):l.defaultValue?_(l.defaultValue):""),u=t.useRef(null),s=t.useRef("");return t.useImperativeHandle(r,()=>u.current),t.useEffect(()=>{a!==void 0&&g(_(a))},[a?.getTime()]),e.jsx("input",{inputMode:"numeric",...v,className:k(Ae,l.className),value:y,onChange:b=>{let d=b.target.selectionEnd||0;const p=te(b.target.value),m=s.current.length>b.target.value.length;if(s.current=p,m||[2,3,5,6].includes(d)&&(d+=1),g(p),setTimeout(()=>{b.target.setSelectionRange(d,d)}),p.length===10){const f=oe(p);f&&i?.(f,d)}},onBlur:b=>{const d=te(b.target.value),p=oe(d);c?(g(a?_(a):""),s.current="",n?.(p)):be(p).isValid()?(g(_(p)),n?.(p)):(g(""),s.current="",a!==null&&n?.(null)),l.onBlur?.(b)},ref:u})}),te=l=>{const r=l.replace(/\D/g,""),a=r.slice(0,2),n=r.slice(2,4),i=r.slice(4,8);let o="";return a&&(o+=a+(a.length===2?"/":"")),n&&(o+=n+(n.length===2?"/":"")),i&&(o+=i),o},_=l=>l?be(l).format("DD/MM/YYYY"):"",oe=l=>{if(!l||l.length!==10)return null;const[r,a,n]=l.split("/");try{return new Date(parseInt(n),parseInt(a)-1,parseInt(r))}catch{return null}};$.__docgenInfo={description:"",methods:[],displayName:"Input"};const O=({title:l,confirmButton:r,open:a,onCancel:n,value:i,defaultValue:o,onSelect:v,...c})=>{const y=i!==void 0,[g,u]=t.useState(i||o||new Date),s=t.useCallback(()=>{y&&g.getTime()!==i?.getTime()&&u(i||new Date)},[y,g,i]);return t.useEffect(()=>{i===null&&u(new Date),i&&u(i)},[i?.getTime()]),e.jsxs(E,{open:a,children:[e.jsx(D,{title:l,closeIcon:!0,onCloseClick:()=>{n?.(),s()}}),e.jsx(M,{children:a&&e.jsx(Te,{...c,value:g,onChange:u})}),e.jsx(A,{children:e.jsx(z,{size:"large",children:"Xác nhận",theme:"neutral",...r,onClick:()=>{v?.(g),s()}})})]})};O.__docgenInfo={description:"",methods:[],displayName:"DatePickerSheet"};const ue=w("calendar-sheet"),he=({title:l,confirmButton:r,open:a,onCancel:n,value:i,defaultValue:o,onSelect:v,className:c,...y})=>{const g=i!==void 0,[u,s]=t.useState(i||o||null),b=t.useCallback(()=>{g&&u?.getTime()!==i?.getTime()&&s(i||null)},[g,u,i]);return t.useEffect(()=>{i===null&&s(null),i&&s(i)},[i?.getTime()]),e.jsxs(E,{open:a,className:k(ue,c),children:[e.jsx(D,{title:l,closeIcon:!0,onCloseClick:()=>{n?.(),b()}}),e.jsx(M,{className:`${ue}__body`,children:a&&e.jsx(de,{type:"single",...y,onChange:s,value:u})}),e.jsx(A,{children:e.jsx(z,{size:"large",children:"Xác nhận",theme:"neutral",...r,disabled:!u,onClick:()=>{u&&(v?.(u),b())}})})]})};he.__docgenInfo={description:"",methods:[],displayName:"CalendarSingleSheet"};const G=w("date-field"),Be=t.forwardRef((l,r)=>{const{wrapper:a,props:n}=X(l),{picker:i="date-picker",onChange:o,value:v,defaultValue:c,pickerProps:y}=n,[g,u]=t.useState(n.autoFocus),[s,b]=H(n,{trigger:"onChange",valuePropName:"value",defaultValuePropName:"defaultValue",defaultValue:null}),d=t.useRef(null),[p,m]=t.useState(!1);return t.useImperativeHandle(r,()=>({focus:()=>d.current?.focus?.(),blur:()=>d.current?.blur?.()})),e.jsxs(e.Fragment,{children:[e.jsx(J,{trailingIcon:{name:"calendar",color:"alias-object-secondary"},onTrailingIconClick:f=>{f.stopPropagation(),m(!0)},...a,className:a.className,isFocus:g,onClick:()=>d.current?.focus(),loadingNode:n.loading&&e.jsxs("div",{className:`${G}__loading`,children:[e.jsxs("div",{className:`${G}__loading__left`,children:[e.jsx(R,{width:40,height:13,shape:"pill"}),e.jsx(R,{width:128,height:13,shape:"pill"})]}),e.jsx(R,{width:40,height:13,shape:"pill"})]}),children:e.jsx($,{...n,value:s,onChange:b,disabled:a.disabled,onFocus:f=>{u(!0),n.onFocus?.(f)},onBlur:f=>{u(!1),n.onBlur?.(f)},ref:d,className:k(G,n.inputClassName)})}),i==="date-picker"&&e.jsx(O,{open:p,value:s,onSelect:f=>{m(!1),b(f)},onCancel:()=>m(!1),title:a.label?.text,...y}),i==="calendar"&&e.jsx(he,{open:p,value:s,onSelect:f=>{m(!1),b(f)},onCancel:()=>m(!1),title:a.label?.text,...y})]})});Be.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"blur",docblock:null,modifiers:[],params:[],returns:null}],displayName:"DateField"};const me=w("calendar-sheet"),we=({className:l,title:r,confirmButton:a,open:n,onCancel:i,value:o,defaultValue:v,onSelect:c,...y})=>{const g=o!==void 0,[u,s]=t.useState(o||v||[null,null]),b=t.useCallback(()=>{g&&s(o||[null,null])},[g,o]);return t.useEffect(()=>{o===null&&s([null,null]),o&&s(o)},[o]),e.jsxs(E,{open:n,className:k(me,l),children:[e.jsx(D,{title:r,closeIcon:!0,onCloseClick:()=>{i?.(),b()}}),e.jsx(M,{className:`${me}__body`,children:n&&e.jsx(de,{type:"range",...y,value:u,onPick:s})}),e.jsx(A,{children:e.jsx(z,{size:"large",children:"Xác nhận",theme:"neutral",...a,disabled:!u||u[0]===null||u[1]===null,onClick:()=>{c?.(u),b()}})})]})};we.__docgenInfo={description:"",methods:[],displayName:"CalendarRangeSheet"};const se=w("date-field-range"),Ke=t.forwardRef((l,r)=>{const{wrapper:a,props:n}=X(l),{picker:i="date-picker",pickerProps:o}=n,[v,c]=t.useState(-1),[y,g]=t.useState(n.autoFocus),[u,s]=H(n,{trigger:"onChange",valuePropName:"value",defaultValuePropName:"defaultValue",defaultValue:{from:null,to:null}}),b=t.useRef(null),d=t.useRef(null),p=()=>{y||(u?.from?d.current?.focus?.():b.current?.focus?.())};return t.useImperativeHandle(r,()=>({focus:p,blur:()=>{b.current?.blur?.(),d.current?.blur?.()}})),e.jsxs(e.Fragment,{children:[e.jsx(J,{trailingIcon:{name:"calendar",color:"alias-object-secondary"},onTrailingIconClick:m=>{m.stopPropagation(),c(0)},...a,className:a.className,isFocus:y,onClick:()=>p(),loadingNode:n.loading&&e.jsxs("div",{className:`${se}__loading`,children:[e.jsx(R,{width:128,height:13,shape:"pill"}),e.jsx(R,{width:128,height:13,shape:"pill"})]}),children:e.jsxs("div",{className:se,children:[e.jsx($,{...ae(n,["value","onChange","defaultValue"]),placeholder:n.placeholder?.from,value:u?.from,onChange:m=>s({...u,from:m}),onCompleted:(m,f)=>{f<10||(d.current?.focus?.(),d.current?.setSelectionRange(0,0))},disabled:a.disabled,onKeyDown:m=>{const f=m.key==="ArrowRight";b.current?.selectionStart===10&&f&&(d.current?.focus(),d.current?.setSelectionRange(0,0)),n.onKeyDown?.(m)},onFocus:m=>{g(!0),n.onFocus?.(m)},onBlur:m=>{g(!1),n.onBlur?.(m)},ref:b,className:n.inputClassName}),e.jsx(L,{name:"arrow-right",color:a.error?"alias-support-negative":a.success?"alias-support-positive":"alias-object-secondary",size:16}),e.jsx($,{...ae(n,["value","onChange","defaultValue"]),placeholder:n.placeholder?.to,value:u?.to,onChange:m=>s({...u,to:m}),disabled:a.disabled,onKeyDown:m=>{const f=m.key==="Delete",V=m.key==="ArrowLeft";d.current?.selectionStart===0&&(f||V)&&b.current?.focus(),n.onKeyDown?.(m)},onFocus:m=>{g(!0),n.onFocus?.(m)},onBlur:m=>{g(!1),n.onBlur?.(m)},ref:d,className:n.inputClassName})]})}),i==="date-picker"&&e.jsxs(e.Fragment,{children:[e.jsx(O,{open:v===0,value:u?.from,onSelect:m=>{c(1),s({...u,from:m})},onCancel:()=>c(-1),title:e.jsxs(e.Fragment,{children:[a.label?.text," từ ngày"]}),...o?.[0]}),e.jsx(O,{open:v===1,value:u?.to,onSelect:m=>{c(-1),s({...u,to:m})},min:u?.from,onCancel:()=>c(-1),title:e.jsxs(e.Fragment,{children:[a.label?.text," đến ngày"]}),...o?.[1]})]}),i==="calendar"&&e.jsx(we,{open:v===0,value:[u?.from||null,u?.to||null],onSelect:m=>{c(-1),s({from:m[0],to:m[1]})},onCancel:()=>c(-1),title:e.jsx(e.Fragment,{children:a.label?.text}),...o})]})});Ke.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"blur",docblock:null,modifiers:[],params:[],returns:null}],displayName:"DateFieldRange"};const T=w("dropdown"),We=t.forwardRef((l,r)=>{const{wrapper:a,props:n}=X(l),[i,o]=t.useState(!1),[v,c]=H(n,{trigger:"onChange",valuePropName:"value"}),[y,g]=t.useState(""),{options:u,searchFilter:s=Ue,emptyText:b="Không tìm thấy",searchProps:d,allowSearch:p,placeholder:m,sheetTitle:f=a.label?.text||a.label?.children,renderLabel:V=h=>h.label,renderItem:Ie=(h,x)=>e.jsx(_e,{theme:"neutral",divider:x.index<x.options.length-1,selected:h.value===x.value,children:V(h,v)}),children:S}=n,B=u.find(h=>h.value===v),ee=t.useMemo(()=>u.filter(h=>s(h,y)),[u,y,s]),le=typeof v>"u"||v===null,Ne=()=>B?n.renderValue?n.renderValue(B):V(B,v):v;t.useEffect(()=>{i||g("")},[i]),t.useImperativeHandle(r,()=>({open:()=>o(!0),close:()=>o(!1)}));const K=()=>{a.disabled||n.loading||o(!0)},xe=()=>{if(S){if(t.isValidElement(S)){const h=S,x=h.props.onClick;return t.cloneElement(h,{onClick:(W,...Ce)=>{x?.(W,...Ce),K()}})}return e.jsx("div",{onClick:K,children:S})}return e.jsxs(J,{trailingIcon:{name:"chevron-down",color:"alias-object-secondary",size:20},...a,className:k(T,a.className),isFocus:i,onClick:K,loadingNode:n.loading&&e.jsxs("div",{className:`${T}__loading`,children:[e.jsx(R,{width:128,height:13,shape:"pill"}),e.jsx(R,{width:24,height:24,shape:"pill"})]}),children:[le&&e.jsx(N,{size:"base",weight:400,color:"alias-object-placeholder",children:m||" "}),!le&&e.jsx(N,{size:"base",weight:400,color:"alias-object-primary",children:Ne()})]})};return e.jsxs(e.Fragment,{children:[xe(),e.jsxs(E,{open:i,onBackdropClick:()=>o(!1),className:`${T}__sheet`,children:[e.jsx(D,{closeIcon:!0,title:f,onCloseClick:()=>o(!1)}),p&&e.jsx("div",{className:`${T}__sheet__search`,children:e.jsx(Ee,{placeholder:"Tìm kiếm",...d,value:y,onChange:g})}),e.jsxs(M,{horizontalSpace:!1,children:[ee.map((h,x,W)=>e.jsx("div",{onClick:()=>{c(h.value),o(!1)},children:Ie(h,{options:W,value:v,index:x})},h.value)),!ee.length&&e.jsxs("div",{className:`${T}__sheet__empty`,children:[e.jsx(L,{name:"newspaper",size:40,color:"alias-object-placeholder"}),e.jsx(N,{size:"small",color:"alias-object-placeholder",children:b})]})]})]})]})}),Ue=(l,r)=>r?typeof l.label=="string"||typeof l.label=="number"?l.label.toString().toLowerCase().includes(r.toLowerCase()):!1:!0;We.__docgenInfo={description:"",methods:[{name:"open",docblock:null,modifiers:[],params:[],returns:null},{name:"close",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Dropdown",props:{shape:{required:!1,tsType:{name:"union",raw:"'rounded' | 'pill'",elements:[{name:"literal",value:"'rounded'"},{name:"literal",value:"'pill'"}]},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},success:{required:!1,tsType:{name:"boolean"},description:""},successMessage:{required:!1,tsType:{name:"ReactNode"},description:""},error:{required:!1,tsType:{name:"boolean"},description:""},errorMessage:{required:!1,tsType:{name:"ReactNode"},description:""},label:{required:!1,tsType:{name:"intersection",raw:`ComponentPropsWithRef<'label'> & {
1
+ import{r as a,j as l}from"./iframe-DfPay7Zl.js";import{g as O,c as V}from"./store-Ce3Ikv5g.js";import{g as L,I as H}from"./input-wrapper-CgaUwbbE.js";import{S}from"./search-field-DINESW8Y.js";import{T as k}from"./typography-CB8hPDyK.js";import{u as A}from"./index-EGt7xBnA.js";import{S as _,a as W,b as F}from"./sheet-footer-nEdxsYan.js";import{I as B}from"./icon-CdiFzFyf.js";import{S as q}from"./skeleton-B12XbNAJ.js";import{O as $}from"./option-item-CpeNcb5w.js";const m=O("dropdown"),G=a.forwardRef((o,v)=>{const{wrapper:u,props:i}=L(o),[b,t]=a.useState(!1),[n,R]=A(i,{trigger:"onChange",valuePropName:"value"}),[s,h]=a.useState(""),{options:d,searchFilter:w=K,emptyText:N="Không tìm thấy",searchProps:j,allowSearch:C,placeholder:T,sheetTitle:M=u.label?.text||u.label?.children,renderLabel:f=e=>e.label,renderItem:x=(e,r)=>l.jsx($,{theme:"neutral",divider:r.index<r.options.length-1,selected:e.value===r.value,children:f(e,n)}),children:g}=i,c=d.find(e=>e.value===n),I=a.useMemo(()=>d.filter(e=>w(e,s)),[d,s,w]),z=typeof n>"u"||n===null,E=()=>c?i.renderValue?i.renderValue(c):f(c,n):n;a.useEffect(()=>{b||h("")},[b]),a.useImperativeHandle(v,()=>({open:()=>t(!0),close:()=>t(!1)}));const y=()=>{u.disabled||i.loading||t(!0)},D=()=>{if(g){if(a.isValidElement(g)){const e=g,r=e.props.onClick;return a.cloneElement(e,{onClick:(p,...P)=>{r?.(p,...P),y()}})}return l.jsx("div",{onClick:y,children:g})}return l.jsxs(H,{trailingIcon:{name:"chevron-down",color:"alias-object-secondary",size:20},...u,className:V(m,u.className),isFocus:b,onClick:y,loadingNode:i.loading&&l.jsxs("div",{className:`${m}__loading`,children:[l.jsx(q,{width:128,height:13,shape:"pill"}),l.jsx(q,{width:24,height:24,shape:"pill"})]}),children:[z&&l.jsx(k,{size:"base",weight:400,color:"alias-object-placeholder",children:T||" "}),!z&&l.jsx(k,{size:"base",weight:400,color:"alias-object-primary",children:E()})]})};return l.jsxs(l.Fragment,{children:[D(),l.jsxs(_,{open:b,onBackdropClick:()=>t(!1),className:`${m}__sheet`,children:[l.jsx(W,{closeIcon:!0,title:M,onCloseClick:()=>t(!1)}),C&&l.jsx("div",{className:`${m}__sheet__search`,children:l.jsx(S,{placeholder:"Tìm kiếm",...j,value:s,onChange:h})}),l.jsxs(F,{horizontalSpace:!1,children:[I.map((e,r,p)=>l.jsx("div",{onClick:()=>{R(e.value),t(!1)},children:x(e,{options:p,value:n,index:r})},e.value)),!I.length&&l.jsxs("div",{className:`${m}__sheet__empty`,children:[l.jsx(B,{name:"newspaper",size:40,color:"alias-object-placeholder"}),l.jsx(k,{size:"small",color:"alias-object-placeholder",children:N})]})]})]})]})}),K=(o,v)=>v?typeof o.label=="string"||typeof o.label=="number"?o.label.toString().toLowerCase().includes(v.toLowerCase()):!1:!0;G.__docgenInfo={description:"",methods:[{name:"open",docblock:null,modifiers:[],params:[],returns:null},{name:"close",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Dropdown",props:{shape:{required:!1,tsType:{name:"union",raw:"'rounded' | 'pill'",elements:[{name:"literal",value:"'rounded'"},{name:"literal",value:"'pill'"}]},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},success:{required:!1,tsType:{name:"boolean"},description:""},successMessage:{required:!1,tsType:{name:"ReactNode"},description:""},error:{required:!1,tsType:{name:"boolean"},description:""},errorMessage:{required:!1,tsType:{name:"ReactNode"},description:""},label:{required:!1,tsType:{name:"intersection",raw:`ComponentPropsWithRef<'label'> & {
2
2
  disabled?: boolean
3
3
  required?: boolean
4
4
  icon?: IIconProps | ReactNode
@@ -244,4 +244,4 @@ import{j as e,e as Re,r as t}from"./iframe-CQAwSt4E.js";import{c as k,g as w}fro
244
244
  }`,signature:{properties:[{key:"loading",value:{name:"boolean",required:!1}},{key:"inputClassName",value:{name:"string",required:!1}},{key:"onChange",value:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}},required:!1}},{key:"loadingType",value:{name:"union",raw:"'search' | 'input'",elements:[{name:"literal",value:"'search'"},{name:"literal",value:"'input'"}],required:!1}}]}}]}],raw:"Omit<Origin, keyof Destination>"}]},{name:"union",raw:"'trailingIcon' | 'onTrailingIconClick'",elements:[{name:"literal",value:"'trailingIcon'"},{name:"literal",value:"'onTrailingIconClick'"}]}],raw:`Omit<
245
245
  ITextFieldProps,
246
246
  'trailingIcon' | 'onTrailingIconClick'
247
- >`},description:""},emptyText:{required:!1,tsType:{name:"ReactNode"},description:""},children:{required:!1,tsType:{name:"ReactNode"},description:""},loading:{required:!1,tsType:{name:"boolean"},description:""}}};const Ge=(l={})=>new Promise((r,a)=>{vsf.chooseImage({...l,success:n=>{r(n)},fail:n=>{a(n)}})});async function Ye(l){try{const{count:r=1}=l||{},a=await Ge({count:r,includeBase64:!0}),n=[];return(a.tempFiles||[]).forEach(o=>{if(!o.data)return;const v={tempFile:o};n.push(v)}),n}catch(r){return console.error("Failed to upload image",r),[]}}const C=w("uploader"),Xe=({limit:l,disabled:r,showPreview:a,className:n,includeBase64:i,value:o,onChange:v,...c})=>{const[y,g]=H({...o!==void 0&&{value:o},...v!==void 0&&{onChange:v}},{defaultValue:[],trigger:"onChange"}),u=t.useCallback(async()=>{if(r||l&&(y??[]).length>=l)return;const b=await Ye({includeBase64:i});g(d=>{const p=[...d??[]];return b.forEach(m=>{l&&p.length>=l||p.unshift(m)}),p})},[l,r,i,y,g]),s=t.useCallback(b=>{g(d=>{const p=[...d];return p.splice(b,1),p})},[g]);return e.jsxs("div",{...c,className:k(C,{[`${C}--disabled`]:r},n),children:[e.jsx("div",{className:`${C}__trigger`,onClick:u,children:e.jsx(L,{name:"plus",type:"outline",size:40,color:r?"alias-object-disabled":"global-neutral-neutral-50"})}),a&&e.jsx("div",{className:`${C}__preview-list`,children:[...y??[]].reverse().map((b,d)=>e.jsx(je,{previewSrc:b.tempFile.data,onDelete:()=>s(d)},b.tempFile.path))})]})},je=({previewSrc:l,onDelete:r})=>e.jsxs("div",{className:`${C}__preview-item`,children:[e.jsx(Y,{className:`${C}__preview-image`,fit:"cover",src:l}),e.jsx("div",{className:`${C}__delete-button`,onClick:r,children:e.jsx(L,{name:"xmark",size:16,color:"white"})})]});Xe.__docgenInfo={description:"",methods:[],displayName:"Uploader"};je.__docgenInfo={description:"",methods:[],displayName:"FilePreview",props:{previewSrc:{required:!1,tsType:{name:"string"},description:""},onDelete:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const j=w("chip"),Je=({theme:l="default",type:r="selection",leadingIcon:a,trailingIcon:n,selected:i,label:o,style:v,className:c,disabled:y,count:g,...u})=>{l=l==="default"?"brand":l;const s=(p,m)=>p?e.jsx("span",{className:k(`${j}__icon`,m),children:ze(p)}):null,b=()=>{if(a)return s(a,`${j}__icon--leading`);switch(r){case"selection":return i?s({name:"circle-check",type:"fill"},`${j}__icon--leading`):null;default:return null}},d=()=>{if(n)return s(n,`${j}__icon--trailing`);switch(r){case"dropdown":return s({name:"chevron-down"},`${j}__icon--trailing`);case"input":return i?s({name:"xmark"},`${j}__icon--trailing`):null;case"action":return g==null?null:e.jsx(De,{outline:!0,className:`${j}__badge`,children:g});default:return null}};return e.jsxs("div",{className:k(j,{[`${j}--${i?"selected":""}`]:!0,[`${j}--theme-${l}`]:!0,[`${j}--type-${r}`]:!0,[`${j}--disabled`]:y},c),onClick:u.onClick,...u,children:[e.jsx("span",{className:`${j}__overlay`}),b(),e.jsx(N,{component:"span",size:"base",weight:400,className:`${j}__label`,children:o||u.children}),d()]})};Je.__docgenInfo={description:"",methods:[],displayName:"Chip",props:{theme:{defaultValue:{value:"'default'",computed:!1},required:!1},type:{defaultValue:{value:"'selection'",computed:!1},required:!1}}};export{Je as C,Be as D,E as S,Xe as U,Ke as a,He as b,We as c,D as d,M as e,A as f};
247
+ >`},description:""},emptyText:{required:!1,tsType:{name:"ReactNode"},description:""},children:{required:!1,tsType:{name:"ReactNode"},description:""},loading:{required:!1,tsType:{name:"boolean"},description:""}}};export{G as D};
@@ -1,4 +1,4 @@
1
- import{j as n,r as u}from"./iframe-CQAwSt4E.js";import{T as w,S as b,M as c,P as h,a as v}from"./blocks-BuaOUtiH.js";import{c as e}from"./chip-kG4p82WT.js";import{t as o}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DHiZ-gXR.js";import"./classname-CUR_zgkh.js";import"./icon-DdQsMyRa.js";import"./colors-_6nFGM3e.js";import"./navigation-bar-vI-FPasP.js";import"./visibility-sensor-CwrzJO06.js";import"./index-B-Ksafg0.js";import"./store-CPumdfcU.js";import"./_setToString-CbM921C9.js";import"./react-hufnxGVs.js";import"./omit-Bsx5nTI0.js";import"./pick-BhmhLmLe.js";import"./button-CL7GeC23.js";import"./typography-DEpAJl_i.js";import"./image-C3EsNRhz.js";import"./bottom-tab-bar-CtcTAxuI.js";import"./toast-provider-DurnMJhd.js";import"./carousel-1Kww3hIz.js";import"./embla-carousel-react.esm-BYjpaHZ9.js";import"./pagination-DZHoBs_4.js";import"./section-content-DGNB4eLN.js";import"./option-item-LRh_OyV4.js";import"./index-BV0AJWP6.js";import"./alert-DLW8CoyB.js";import"./skeleton-C91JgehG.js";import"./label-DV2iCDmN.js";import"./input-wrapper-BKHgnPy6.js";import"./text-field-jK6rpOo2.js";import"./number-field-CXKmnfKe.js";import"./checkbox-MGytNNRt.js";import"./radio-B5NJxG_l.js";import"./date-Cg-Uk_pp.js";import"./date-picker-Dnq_-0Md.js";import"./calendar-dOCsjhVU.js";import"./search-field-CQqgFbfg.js";import"./text-area-DwSXyqOe.js";import"./avatar-GxcYPA1p.js";import"./badge-D_LzMVtw.js";import"./switch-p-aXI-ev.js";import"./tab-bar-CSeCmtIZ.js";import"./rating-BdXViYBv.js";import"./tooltip-QDdel5My.js";const y=()=>{const d=`
1
+ import{j as n,r as u}from"./iframe-DfPay7Zl.js";import{T as w,S as b,M as c,P as h,a as v}from"./blocks-DKR3P4qW.js";import{D as e}from"./dropdown-Dtomaqpw.js";import{t as o}from"./store-Ce3Ikv5g.js";import"./preload-helper-PPVm8Dsz.js";import"./index-cMNObl2z.js";import"./input-wrapper-CgaUwbbE.js";import"./icon-CdiFzFyf.js";import"./colors-_6nFGM3e.js";import"./label-D44azUgi.js";import"./typography-CB8hPDyK.js";import"./skeleton-B12XbNAJ.js";import"./omit-BWHsnDSR.js";import"./_baseClone-DQVxEhny.js";import"./search-field-DINESW8Y.js";import"./text-field-CGWNqitB.js";import"./index-EGt7xBnA.js";import"./index-B-Ksafg0.js";import"./sheet-footer-nEdxsYan.js";import"./navigation-bar-DK3TxcTu.js";import"./proxy-B4G9nIBd.js";import"./visibility-sensor-Jf-Nmil6.js";import"./index-BWpuenI4.js";import"./react-I9jCW2VV.js";import"./app-CTv8lFU3.js";import"./button-DJH3RlJl.js";import"./image-CMKb-R3x.js";import"./toast-provider-DKSrfhJD.js";import"./bottom-tab-bar-B6IAoRwz.js";import"./option-item-CpeNcb5w.js";const y=()=>{const d=`
2
2
  ## ${o("common.table.title")}
3
3
 
4
4
  | ${o("common.table.name")} | ${o("common.table.type")} | ${o("common.table.required")} | ${o("common.table.description")} |
@@ -23,7 +23,7 @@ import{j as n,r as u}from"./iframe-CQAwSt4E.js";import{T as w,S as b,M as c,P as
23
23
  | \`suffix\` | \`ReactNode\` | ${o("common.table.no")} | ${o("components.dropdown.suffixDescription")} |
24
24
  | \`className\` | \`string\` | ${o("common.table.no")} | ${o("components.dropdown.classNameDescription")} |
25
25
  | \`...props\` | \`ComponentPropsWithRef<'div'>\` | ${o("common.table.no")} | ${o("components.dropdown.propsDescription")} |
26
- `;return n.jsxs(n.Fragment,{children:[n.jsx(w,{}),n.jsx(b,{}),n.jsx(c,{children:o("components.dropdown.description")}),n.jsx(h,{}),n.jsx(c,{children:d}),n.jsx(v,{})]})},uo={title:"Components/Dropdown",component:e,parameters:{layout:"padded",docs:{page:y}},tags:["autodocs"],argTypes:{options:{control:!1,description:o("components.dropdown.argTypes.optionsDescription"),table:{type:{summary:"IDropdownOption[]"}}},value:{control:"text",description:o("components.dropdown.argTypes.valueDescription"),table:{type:{summary:"Value"}}},onChange:{action:"changed",description:o("components.dropdown.argTypes.onChangeDescription"),table:{type:{summary:"(value: Value) => void"}}},placeholder:{control:"text",description:o("components.dropdown.argTypes.placeholderDescription"),table:{type:{summary:"string"}}},shape:{control:"select",options:["rounded","pill"],description:o("components.dropdown.argTypes.shapeDescription"),table:{type:{summary:'"rounded" | "pill"'},defaultValue:{summary:"rounded"}}},disabled:{control:"boolean",description:o("components.dropdown.argTypes.disabledDescription"),table:{type:{summary:"boolean"}}},allowSearch:{control:"boolean",description:o("components.dropdown.argTypes.allowSearchDescription"),table:{type:{summary:"boolean"}}},loading:{control:"boolean",description:o("components.dropdown.argTypes.loadingDescription"),table:{type:{summary:"boolean"}}},className:{control:"text",description:o("components.dropdown.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},t={storyName:o("components.dropdown.stories.default.storyName"),args:{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],placeholder:o("components.dropdown.stories.default.placeholder")}},s={storyName:o("components.dropdown.stories.controlled.storyName"),render:()=>{const[d,m]=u.useState(null);return n.jsx(e,{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],value:d,onChange:m,placeholder:o("components.dropdown.stories.default.placeholder")})}},p={storyName:o("components.dropdown.stories.withLabel.storyName"),args:{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],label:{text:o("components.dropdown.stories.withLabel.label")},placeholder:o("components.dropdown.stories.default.placeholder")}},r={storyName:o("components.dropdown.stories.shapes.storyName"),render:()=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[n.jsx(e,{shape:"rounded",options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.shapes.rounded")}),n.jsx(e,{shape:"pill",options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.shapes.pill")})]})},i={storyName:o("components.dropdown.stories.states.storyName"),render:()=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[n.jsx(e,{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.default.placeholder")}),n.jsx(e,{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],value:"option1",placeholder:o("components.dropdown.stories.default.placeholder")}),n.jsx(e,{disabled:!0,options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.states.disabled")}),n.jsx(e,{error:!0,errorMessage:o("components.dropdown.stories.states.errorMessage"),options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.default.placeholder")}),n.jsx(e,{loading:!0,options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.states.loading")})]})},a={storyName:o("components.dropdown.stories.withSearch.storyName"),args:{options:[{value:"apple",label:o("components.dropdown.stories.withSearch.apple")},{value:"banana",label:o("components.dropdown.stories.withSearch.banana")},{value:"cherry",label:o("components.dropdown.stories.withSearch.cherry")},{value:"date",label:o("components.dropdown.stories.withSearch.date")},{value:"elderberry",label:o("components.dropdown.stories.withSearch.elderberry")}],allowSearch:!0,placeholder:o("components.dropdown.stories.withSearch.placeholder")}},l={storyName:o("components.dropdown.stories.interactive.storyName"),args:{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],placeholder:o("components.dropdown.stories.default.placeholder")}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
26
+ `;return n.jsxs(n.Fragment,{children:[n.jsx(w,{}),n.jsx(b,{}),n.jsx(c,{children:o("components.dropdown.description")}),n.jsx(h,{}),n.jsx(c,{children:d}),n.jsx(v,{})]})},Q={title:"Components/Dropdown",component:e,parameters:{layout:"padded",docs:{page:y}},tags:["autodocs"],argTypes:{options:{control:!1,description:o("components.dropdown.argTypes.optionsDescription"),table:{type:{summary:"IDropdownOption[]"}}},value:{control:"text",description:o("components.dropdown.argTypes.valueDescription"),table:{type:{summary:"Value"}}},onChange:{action:"changed",description:o("components.dropdown.argTypes.onChangeDescription"),table:{type:{summary:"(value: Value) => void"}}},placeholder:{control:"text",description:o("components.dropdown.argTypes.placeholderDescription"),table:{type:{summary:"string"}}},shape:{control:"select",options:["rounded","pill"],description:o("components.dropdown.argTypes.shapeDescription"),table:{type:{summary:'"rounded" | "pill"'},defaultValue:{summary:"rounded"}}},disabled:{control:"boolean",description:o("components.dropdown.argTypes.disabledDescription"),table:{type:{summary:"boolean"}}},allowSearch:{control:"boolean",description:o("components.dropdown.argTypes.allowSearchDescription"),table:{type:{summary:"boolean"}}},loading:{control:"boolean",description:o("components.dropdown.argTypes.loadingDescription"),table:{type:{summary:"boolean"}}},className:{control:"text",description:o("components.dropdown.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},t={storyName:o("components.dropdown.stories.default.storyName"),args:{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],placeholder:o("components.dropdown.stories.default.placeholder")}},s={storyName:o("components.dropdown.stories.controlled.storyName"),render:()=>{const[d,m]=u.useState(null);return n.jsx(e,{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],value:d,onChange:m,placeholder:o("components.dropdown.stories.default.placeholder")})}},p={storyName:o("components.dropdown.stories.withLabel.storyName"),args:{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],label:{text:o("components.dropdown.stories.withLabel.label")},placeholder:o("components.dropdown.stories.default.placeholder")}},r={storyName:o("components.dropdown.stories.shapes.storyName"),render:()=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[n.jsx(e,{shape:"rounded",options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.shapes.rounded")}),n.jsx(e,{shape:"pill",options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.shapes.pill")})]})},i={storyName:o("components.dropdown.stories.states.storyName"),render:()=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[n.jsx(e,{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.default.placeholder")}),n.jsx(e,{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],value:"option1",placeholder:o("components.dropdown.stories.default.placeholder")}),n.jsx(e,{disabled:!0,options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.states.disabled")}),n.jsx(e,{error:!0,errorMessage:o("components.dropdown.stories.states.errorMessage"),options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.default.placeholder")}),n.jsx(e,{loading:!0,options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")}],placeholder:o("components.dropdown.stories.states.loading")})]})},a={storyName:o("components.dropdown.stories.withSearch.storyName"),args:{options:[{value:"apple",label:o("components.dropdown.stories.withSearch.apple")},{value:"banana",label:o("components.dropdown.stories.withSearch.banana")},{value:"cherry",label:o("components.dropdown.stories.withSearch.cherry")},{value:"date",label:o("components.dropdown.stories.withSearch.date")},{value:"elderberry",label:o("components.dropdown.stories.withSearch.elderberry")}],allowSearch:!0,placeholder:o("components.dropdown.stories.withSearch.placeholder")}},l={storyName:o("components.dropdown.stories.interactive.storyName"),args:{options:[{value:"option1",label:o("components.dropdown.stories.options.option1")},{value:"option2",label:o("components.dropdown.stories.options.option2")},{value:"option3",label:o("components.dropdown.stories.options.option3")},{value:"option4",label:o("components.dropdown.stories.options.option4")},{value:"option5",label:o("components.dropdown.stories.options.option5")}],placeholder:o("components.dropdown.stories.default.placeholder")}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
27
27
  storyName: t('components.dropdown.stories.default.storyName'),
28
28
  args: {
29
29
  options: [{
@@ -197,4 +197,4 @@ import{j as n,r as u}from"./iframe-CQAwSt4E.js";import{T as w,S as b,M as c,P as
197
197
  }],
198
198
  placeholder: t('components.dropdown.stories.default.placeholder')
199
199
  }
200
- }`,...l.parameters?.docs?.source}}};const wo=["Default","Controlled","WithLabel","Shapes","States","WithSearch","Interactive"];export{s as Controlled,t as Default,l as Interactive,r as Shapes,i as States,p as WithLabel,a as WithSearch,wo as __namedExportsOrder,uo as default};
200
+ }`,...l.parameters?.docs?.source}}};const U=["Default","Controlled","WithLabel","Shapes","States","WithSearch","Interactive"];export{s as Controlled,t as Default,l as Interactive,r as Shapes,i as States,p as WithLabel,a as WithSearch,U as __namedExportsOrder,Q as default};
@@ -1 +1 @@
1
- import{r as _}from"./iframe-CQAwSt4E.js";function en(t){return Object.prototype.toString.call(t)==="[object Object]"}function zt(t){return en(t)||Array.isArray(t)}function on(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vt(t,n){const o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),r=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==r?!1:o.every(e=>{const f=t[e],i=n[e];return typeof f=="function"?`${f}`==`${i}`:!zt(f)||!zt(i)?f===i:vt(f,i)})}function jt(t){return t.concat().sort((n,o)=>n.name>o.name?1:-1).map(n=>n.options)}function rn(t,n){if(t.length!==n.length)return!1;const o=jt(t),s=jt(n);return o.every((c,r)=>{const e=s[r];return vt(c,e)})}function At(t){return typeof t=="number"}function It(t){return typeof t=="string"}function St(t){return typeof t=="boolean"}function Gt(t){return Object.prototype.toString.call(t)==="[object Object]"}function w(t){return Math.abs(t)}function Ot(t){return Math.sign(t)}function at(t,n){return w(t-n)}function sn(t,n){if(t===0||n===0||w(t)<=w(n))return 0;const o=at(w(t),w(n));return w(o/t)}function cn(t){return Math.round(t*100)/100}function lt(t){return dt(t).map(Number)}function z(t){return t[mt(t)]}function mt(t){return Math.max(0,t.length-1)}function Dt(t,n){return n===mt(t)}function Ht(t,n=0){return Array.from(Array(t),(o,s)=>n+s)}function dt(t){return Object.keys(t)}function Rt(t,n){return[t,n].reduce((o,s)=>(dt(s).forEach(c=>{const r=o[c],e=s[c],f=Gt(r)&&Gt(e);o[c]=f?Rt(r,e):e}),o),{})}function Tt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function un(t,n){const o={start:s,center:c,end:r};function s(){return 0}function c(i){return r(i)/2}function r(i){return n-i}function e(i,u){return It(t)?o[t](i):t(n,i,u)}return{measure:e}}function pt(){let t=[];function n(c,r,e,f={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(r,e,f),i=()=>c.removeEventListener(r,e,f);else{const u=c;u.addListener(e),i=()=>u.removeListener(e)}return t.push(i),s}function o(){t=t.filter(c=>c())}const s={add:n,clear:o};return s}function fn(t,n,o,s){const c=pt(),r=1e3/60;let e=null,f=0,i=0;function u(){c.add(t,"visibilitychange",()=>{t.hidden&&l()})}function h(){b(),c.clear()}function d(g){if(!i)return;e||(e=g,o(),o());const a=g-e;for(e=g,f+=a;f>=r;)o(),f-=r;const S=f/r;s(S),i&&(i=n.requestAnimationFrame(d))}function p(){i||(i=n.requestAnimationFrame(d))}function b(){n.cancelAnimationFrame(i),e=null,f=0,i=0}function l(){e=null,f=0}return{init:u,destroy:h,start:p,stop:b,update:o,render:s}}function an(t,n){const o=n==="rtl",s=t==="y",c=s?"y":"x",r=s?"x":"y",e=!s&&o?-1:1,f=h(),i=d();function u(l){const{height:m,width:g}=l;return s?m:g}function h(){return s?"top":o?"right":"left"}function d(){return s?"bottom":o?"left":"right"}function p(l){return l*e}return{scroll:c,cross:r,startEdge:f,endEdge:i,measureSize:u,direction:p}}function nt(t=0,n=0){const o=w(t-n);function s(u){return u<t}function c(u){return u>n}function r(u){return s(u)||c(u)}function e(u){return r(u)?s(u)?t:n:u}function f(u){return o?u-o*Math.ceil((u-n)/o):u}return{length:o,max:n,min:t,constrain:e,reachedAny:r,reachedMax:c,reachedMin:s,removeOffset:f}}function qt(t,n,o){const{constrain:s}=nt(0,t),c=t+1;let r=e(n);function e(p){return o?w((c+p)%c):s(p)}function f(){return r}function i(p){return r=e(p),d}function u(p){return h().set(f()+p)}function h(){return qt(t,f(),o)}const d={get:f,set:i,add:u,clone:h};return d}function ln(t,n,o,s,c,r,e,f,i,u,h,d,p,b,l,m,g,a,S){const{cross:x,direction:I}=t,D=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=pt(),L=pt(),v=nt(50,225).constrain(b.measure(20)),P={mouse:300,touch:400},A={mouse:500,touch:600},N=l?43:25;let j=!1,G=0,H=0,Z=!1,X=!1,$=!1,U=!1;function st(y){if(!S)return;function O(k){(St(S)||S(y,k))&&ct(k)}const F=n;E.add(F,"dragstart",k=>k.preventDefault(),T).add(F,"touchmove",()=>{},T).add(F,"touchend",()=>{}).add(F,"touchstart",O).add(F,"mousedown",O).add(F,"touchcancel",C).add(F,"contextmenu",C).add(F,"click",Q,!0)}function R(){E.clear(),L.clear()}function et(){const y=U?o:n;L.add(y,"touchmove",B,T).add(y,"touchend",C).add(y,"mousemove",B,T).add(y,"mouseup",C)}function ot(y){const O=y.nodeName||"";return D.includes(O)}function K(){return(l?A:P)[U?"mouse":"touch"]}function it(y,O){const F=d.add(Ot(y)*-1),k=h.byDistance(y,!l).distance;return l||w(y)<v?k:g&&O?k*.5:h.byIndex(F.get(),0).distance}function ct(y){const O=Tt(y,s);U=O,$=l&&O&&!y.buttons&&j,j=at(c.get(),e.get())>=2,!(O&&y.button!==0)&&(ot(y.target)||(Z=!0,r.pointerDown(y),u.useFriction(0).useDuration(0),c.set(e),et(),G=r.readPoint(y),H=r.readPoint(y,x),p.emit("pointerDown")))}function B(y){if(!Tt(y,s)&&y.touches.length>=2)return C(y);const F=r.readPoint(y),k=r.readPoint(y,x),q=at(F,G),J=at(k,H);if(!X&&!U&&(!y.cancelable||(X=q>J,!X)))return C(y);const W=r.pointerMove(y);q>m&&($=!0),u.useFriction(.3).useDuration(.75),f.start(),c.add(I(W)),y.preventDefault()}function C(y){const F=h.byDistance(0,!1).index!==d.get(),k=r.pointerUp(y)*K(),q=it(I(k),F),J=sn(k,q),W=N-10*J,Y=a+J/50;X=!1,Z=!1,L.clear(),u.useDuration(W).useFriction(Y),i.distance(q,!l),U=!1,p.emit("pointerUp")}function Q(y){$&&(y.stopPropagation(),y.preventDefault(),$=!1)}function V(){return Z}return{init:st,destroy:R,pointerDown:V}}function dn(t,n){let s,c;function r(d){return d.timeStamp}function e(d,p){const l=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Tt(d,n)?d:d.touches[0])[l]}function f(d){return s=d,c=d,e(d)}function i(d){const p=e(d)-e(c),b=r(d)-r(s)>170;return c=d,b&&(s=d),p}function u(d){if(!s||!c)return 0;const p=e(c)-e(s),b=r(d)-r(s),l=r(d)-r(c)>170,m=p/b;return b&&!l&&w(m)>.1?m:0}return{pointerDown:f,pointerMove:i,pointerUp:u,readPoint:e}}function pn(){function t(o){const{offsetTop:s,offsetLeft:c,offsetWidth:r,offsetHeight:e}=o;return{top:s,right:c+r,bottom:s+e,left:c,width:r,height:e}}return{measure:t}}function mn(t){function n(s){return t*(s/100)}return{measure:n}}function gn(t,n,o,s,c,r,e){const f=[t].concat(s);let i,u,h=[],d=!1;function p(g){return c.measureSize(e.measure(g))}function b(g){if(!r)return;u=p(t),h=s.map(p);function a(S){for(const x of S){if(d)return;const I=x.target===t,D=s.indexOf(x.target),T=I?u:h[D],E=p(I?t:s[D]);if(w(E-T)>=.5){g.reInit(),n.emit("resize");break}}}i=new ResizeObserver(S=>{(St(r)||r(g,S))&&a(S)}),o.requestAnimationFrame(()=>{f.forEach(S=>i.observe(S))})}function l(){d=!0,i&&i.disconnect()}return{init:b,destroy:l}}function hn(t,n,o,s,c,r){let e=0,f=0,i=c,u=r,h=t.get(),d=0;function p(){const T=s.get()-t.get(),E=!i;let L=0;return E?(e=0,o.set(s),t.set(s),L=T):(o.set(t),e+=T/i,e*=u,h+=e,t.add(e),L=h-d),f=Ot(L),d=h,D}function b(){const T=s.get()-n.get();return w(T)<.001}function l(){return i}function m(){return f}function g(){return e}function a(){return x(c)}function S(){return I(r)}function x(T){return i=T,D}function I(T){return u=T,D}const D={direction:m,duration:l,velocity:g,seek:p,settled:b,useBaseFriction:S,useBaseDuration:a,useFriction:I,useDuration:x};return D}function Sn(t,n,o,s,c){const r=c.measure(10),e=c.measure(50),f=nt(.1,.99);let i=!1;function u(){return!(i||!t.reachedAny(o.get())||!t.reachedAny(n.get()))}function h(b){if(!u())return;const l=t.reachedMin(n.get())?"min":"max",m=w(t[l]-n.get()),g=o.get()-n.get(),a=f.constrain(m/e);o.subtract(g*a),!b&&w(g)<r&&(o.set(t.constrain(o.get())),s.useDuration(25).useBaseFriction())}function d(b){i=!b}return{shouldConstrain:u,constrain:h,toggleActive:d}}function yn(t,n,o,s,c){const r=nt(-n+t,0),e=d(),f=h(),i=p();function u(l,m){return at(l,m)<=1}function h(){const l=e[0],m=z(e),g=e.lastIndexOf(l),a=e.indexOf(m)+1;return nt(g,a)}function d(){return o.map((l,m)=>{const{min:g,max:a}=r,S=r.constrain(l),x=!m,I=Dt(o,m);return x?a:I||u(g,S)?g:u(a,S)?a:S}).map(l=>parseFloat(l.toFixed(3)))}function p(){if(n<=t+c)return[r.max];if(s==="keepSnaps")return e;const{min:l,max:m}=f;return e.slice(l,m)}return{snapsContained:i,scrollContainLimit:f}}function bn(t,n,o){const s=n[0],c=o?s-t:z(n);return{limit:nt(c,s)}}function xn(t,n,o,s){const r=n.min+.1,e=n.max+.1,{reachedMin:f,reachedMax:i}=nt(r,e);function u(p){return p===1?i(o.get()):p===-1?f(o.get()):!1}function h(p){if(!u(p))return;const b=t*(p*-1);s.forEach(l=>l.add(b))}return{loop:h}}function En(t){const{max:n,length:o}=t;function s(r){const e=r-n;return o?e/-o:0}return{get:s}}function Ln(t,n,o,s,c){const{startEdge:r,endEdge:e}=t,{groupSlides:f}=c,i=d().map(n.measure),u=p(),h=b();function d(){return f(s).map(m=>z(m)[e]-m[0][r]).map(w)}function p(){return s.map(m=>o[r]-m[r]).map(m=>-w(m))}function b(){return f(u).map(m=>m[0]).map((m,g)=>m+i[g])}return{snaps:u,snapsAligned:h}}function In(t,n,o,s,c,r){const{groupSlides:e}=c,{min:f,max:i}=s,u=h();function h(){const p=e(r),b=!t||n==="keepSnaps";return o.length===1?[r]:b?p:p.slice(f,i).map((l,m,g)=>{const a=!m,S=Dt(g,m);if(a){const x=z(g[0])+1;return Ht(x)}if(S){const x=mt(r)-z(g)[0]+1;return Ht(x,z(g)[0])}return l})}return{slideRegistry:u}}function Tn(t,n,o,s,c){const{reachedAny:r,removeOffset:e,constrain:f}=s;function i(l){return l.concat().sort((m,g)=>w(m)-w(g))[0]}function u(l){const m=t?e(l):f(l),g=n.map((S,x)=>({diff:h(S-m,0),index:x})).sort((S,x)=>w(S.diff)-w(x.diff)),{index:a}=g[0];return{index:a,distance:m}}function h(l,m){const g=[l,l+o,l-o];if(!t)return l;if(!m)return i(g);const a=g.filter(S=>Ot(S)===m);return a.length?i(a):z(g)-o}function d(l,m){const g=n[l]-c.get(),a=h(g,m);return{index:l,distance:a}}function p(l,m){const g=c.get()+l,{index:a,distance:S}=u(g),x=!t&&r(g);if(!m||x)return{index:a,distance:l};const I=n[a]-S,D=l+h(I,0);return{index:a,distance:D}}return{byDistance:p,byIndex:d,shortcut:h}}function vn(t,n,o,s,c,r,e){function f(d){const p=d.distance,b=d.index!==n.get();r.add(p),p&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),b&&(o.set(n.get()),n.set(d.index),e.emit("select"))}function i(d,p){const b=c.byDistance(d,p);f(b)}function u(d,p){const b=n.clone().set(d),l=c.byIndex(b.get(),p);f(l)}return{distance:i,index:u}}function An(t,n,o,s,c,r,e,f){const i={passive:!0,capture:!0};let u=0;function h(b){if(!f)return;function l(m){if(new Date().getTime()-u>10)return;e.emit("slideFocusStart"),t.scrollLeft=0;const S=o.findIndex(x=>x.includes(m));At(S)&&(c.useDuration(0),s.index(S,0),e.emit("slideFocus"))}r.add(document,"keydown",d,!1),n.forEach((m,g)=>{r.add(m,"focus",a=>{(St(f)||f(b,a))&&l(g)},i)})}function d(b){b.code==="Tab"&&(u=new Date().getTime())}return{init:h}}function ft(t){let n=t;function o(){return n}function s(i){n=e(i)}function c(i){n+=e(i)}function r(i){n-=e(i)}function e(i){return At(i)?i:i.get()}return{get:o,set:s,add:c,subtract:r}}function $t(t,n){const o=t.scroll==="x"?e:f,s=n.style;let c=null,r=!1;function e(p){return`translate3d(${p}px,0px,0px)`}function f(p){return`translate3d(0px,${p}px,0px)`}function i(p){if(r)return;const b=cn(t.direction(p));b!==c&&(s.transform=o(b),c=b)}function u(p){r=!p}function h(){r||(s.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:h,to:i,toggleActive:u}}function On(t,n,o,s,c,r,e,f,i){const h=lt(c),d=lt(c).reverse(),p=a().concat(S());function b(E,L){return E.reduce((v,P)=>v-c[P],L)}function l(E,L){return E.reduce((v,P)=>b(v,L)>0?v.concat([P]):v,[])}function m(E){return r.map((L,v)=>({start:L-s[v]+.5+E,end:L+n-.5+E}))}function g(E,L,v){const P=m(L);return E.map(A=>{const N=v?0:-o,j=v?o:0,G=v?"end":"start",H=P[A][G];return{index:A,loopPoint:H,slideLocation:ft(-1),translate:$t(t,i[A]),target:()=>f.get()>H?N:j}})}function a(){const E=e[0],L=l(d,E);return g(L,o,!1)}function S(){const E=n-e[0]-1,L=l(h,E);return g(L,-o,!0)}function x(){return p.every(({index:E})=>{const L=h.filter(v=>v!==E);return b(L,n)<=.1})}function I(){p.forEach(E=>{const{target:L,translate:v,slideLocation:P}=E,A=L();A!==P.get()&&(v.to(A),P.set(A))})}function D(){p.forEach(E=>E.translate.clear())}return{canLoop:x,clear:D,loop:I,loopPoints:p}}function Dn(t,n,o){let s,c=!1;function r(i){if(!o)return;function u(h){for(const d of h)if(d.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}s=new MutationObserver(h=>{c||(St(o)||o(i,h))&&u(h)}),s.observe(t,{childList:!0})}function e(){s&&s.disconnect(),c=!0}return{init:r,destroy:e}}function Mn(t,n,o,s){const c={};let r=null,e=null,f,i=!1;function u(){f=new IntersectionObserver(l=>{i||(l.forEach(m=>{const g=n.indexOf(m.target);c[g]=m}),r=null,e=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:s}),n.forEach(l=>f.observe(l))}function h(){f&&f.disconnect(),i=!0}function d(l){return dt(c).reduce((m,g)=>{const a=parseInt(g),{isIntersecting:S}=c[a];return(l&&S||!l&&!S)&&m.push(a),m},[])}function p(l=!0){if(l&&r)return r;if(!l&&e)return e;const m=d(l);return l&&(r=m),l||(e=m),m}return{init:u,destroy:h,get:p}}function wn(t,n,o,s,c,r){const{measureSize:e,startEdge:f,endEdge:i}=t,u=o[0]&&c,h=l(),d=m(),p=o.map(e),b=g();function l(){if(!u)return 0;const S=o[0];return w(n[f]-S[f])}function m(){if(!u)return 0;const S=r.getComputedStyle(z(s));return parseFloat(S.getPropertyValue(`margin-${i}`))}function g(){return o.map((S,x,I)=>{const D=!x,T=Dt(I,x);return D?p[x]+h:T?p[x]+d:I[x+1][f]-S[f]}).map(w)}return{slideSizes:p,slideSizesWithGaps:b,startGap:h,endGap:d}}function Pn(t,n,o,s,c,r,e,f,i){const{startEdge:u,endEdge:h,direction:d}=t,p=At(o);function b(a,S){return lt(a).filter(x=>x%S===0).map(x=>a.slice(x,x+S))}function l(a){return a.length?lt(a).reduce((S,x,I)=>{const D=z(S)||0,T=D===0,E=x===mt(a),L=c[u]-r[D][u],v=c[u]-r[x][h],P=!s&&T?d(e):0,A=!s&&E?d(f):0,N=w(v-A-(L+P));return I&&N>n+i&&S.push(x),E&&S.push(a.length),S},[]).map((S,x,I)=>{const D=Math.max(I[x-1]||0);return a.slice(D,S)}):[]}function m(a){return p?b(a,o):l(a)}return{groupSlides:m}}function Fn(t,n,o,s,c,r,e){const{align:f,axis:i,direction:u,startIndex:h,loop:d,duration:p,dragFree:b,dragThreshold:l,inViewThreshold:m,slidesToScroll:g,skipSnaps:a,containScroll:S,watchResize:x,watchSlides:I,watchDrag:D,watchFocus:T}=r,E=2,L=pn(),v=L.measure(n),P=o.map(L.measure),A=an(i,u),N=A.measureSize(v),j=mn(N),G=un(f,N),H=!d&&!!S,Z=d||!!S,{slideSizes:X,slideSizesWithGaps:$,startGap:U,endGap:st}=wn(A,v,P,o,Z,c),R=Pn(A,N,g,d,v,P,U,st,E),{snaps:et,snapsAligned:ot}=Ln(A,G,v,P,R),K=-z(et)+z($),{snapsContained:it,scrollContainLimit:ct}=yn(N,K,ot,S,E),B=H?it:ot,{limit:C}=bn(K,B,d),Q=qt(mt(B),h,d),V=Q.clone(),M=lt(o),y=({dragHandler:rt,scrollBody:Et,scrollBounds:Lt,options:{loop:gt}})=>{gt||Lt.constrain(rt.pointerDown()),Et.seek()},O=({scrollBody:rt,translate:Et,location:Lt,offsetLocation:gt,previousLocation:Jt,scrollLooper:Xt,slideLooper:Yt,dragHandler:_t,animation:Zt,eventHandler:Ft,scrollBounds:Wt,options:{loop:Ct}},kt)=>{const Nt=rt.settled(),tn=!Wt.shouldConstrain(),Bt=Ct?Nt:Nt&&tn,Vt=Bt&&!_t.pointerDown();Vt&&Zt.stop();const nn=Lt.get()*kt+Jt.get()*(1-kt);gt.set(nn),Ct&&(Xt.loop(rt.direction()),Yt.loop()),Et.to(gt.get()),Vt&&Ft.emit("settle"),Bt||Ft.emit("scroll")},F=fn(s,c,()=>y(xt),rt=>O(xt,rt)),k=.68,q=B[Q.get()],J=ft(q),W=ft(q),Y=ft(q),tt=ft(q),ut=hn(J,Y,W,tt,p,k),yt=Tn(d,B,K,C,tt),bt=vn(F,Q,V,ut,yt,tt,e),Mt=En(C),wt=pt(),Kt=Mn(n,o,e,m),{slideRegistry:Pt}=In(H,S,B,ct,R,M),Qt=An(t,o,Pt,bt,ut,wt,e,T),xt={ownerDocument:s,ownerWindow:c,eventHandler:e,containerRect:v,slideRects:P,animation:F,axis:A,dragHandler:ln(A,t,s,c,tt,dn(A,c),J,F,bt,ut,yt,Q,e,j,b,l,a,k,D),eventStore:wt,percentOfView:j,index:Q,indexPrevious:V,limit:C,location:J,offsetLocation:Y,previousLocation:W,options:r,resizeHandler:gn(n,e,c,o,A,x,L),scrollBody:ut,scrollBounds:Sn(C,Y,tt,ut,j),scrollLooper:xn(K,C,Y,[J,Y,W,tt]),scrollProgress:Mt,scrollSnapList:B.map(Mt.get),scrollSnaps:B,scrollTarget:yt,scrollTo:bt,slideLooper:On(A,N,K,X,$,et,B,Y,o),slideFocus:Qt,slidesHandler:Dn(n,e,I),slidesInView:Kt,slideIndexes:M,slideRegistry:Pt,slidesToScroll:R,target:tt,translate:$t(A,n)};return xt}function Cn(){let t={},n;function o(u){n=u}function s(u){return t[u]||[]}function c(u){return s(u).forEach(h=>h(n,u)),i}function r(u,h){return t[u]=s(u).concat([h]),i}function e(u,h){return t[u]=s(u).filter(d=>d!==h),i}function f(){t={}}const i={init:o,emit:c,off:e,on:r,clear:f};return i}const kn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Nn(t){function n(r,e){return Rt(r,e||{})}function o(r){const e=r.breakpoints||{},f=dt(e).filter(i=>t.matchMedia(i).matches).map(i=>e[i]).reduce((i,u)=>n(i,u),{});return n(r,f)}function s(r){return r.map(e=>dt(e.breakpoints||{})).reduce((e,f)=>e.concat(f),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:o,optionsMediaQueries:s}}function Bn(t){let n=[];function o(r,e){return n=e.filter(({options:f})=>t.optionsAtMedia(f).active!==!1),n.forEach(f=>f.init(r,t)),e.reduce((f,i)=>Object.assign(f,{[i.name]:i}),{})}function s(){n=n.filter(r=>r.destroy())}return{init:o,destroy:s}}function ht(t,n,o){const s=t.ownerDocument,c=s.defaultView,r=Nn(c),e=Bn(r),f=pt(),i=Cn(),{mergeOptions:u,optionsAtMedia:h,optionsMediaQueries:d}=r,{on:p,off:b,emit:l}=i,m=A;let g=!1,a,S=u(kn,ht.globalOptions),x=u(S),I=[],D,T,E;function L(){const{container:M,slides:y}=x;T=(It(M)?t.querySelector(M):M)||t.children[0];const F=It(y)?T.querySelectorAll(y):y;E=[].slice.call(F||T.children)}function v(M){const y=Fn(t,T,E,s,c,M,i);if(M.loop&&!y.slideLooper.canLoop()){const O=Object.assign({},M,{loop:!1});return v(O)}return y}function P(M,y){g||(S=u(S,M),x=h(S),I=y||I,L(),a=v(x),d([S,...I.map(({options:O})=>O)]).forEach(O=>f.add(O,"change",A)),x.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(V),a.eventHandler.init(V),a.resizeHandler.init(V),a.slidesHandler.init(V),a.options.loop&&a.slideLooper.loop(),T.offsetParent&&E.length&&a.dragHandler.init(V),D=e.init(V,I)))}function A(M,y){const O=R();N(),P(u({startIndex:O},M),y),i.emit("reInit")}function N(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),e.destroy(),f.clear()}function j(){g||(g=!0,f.clear(),N(),i.emit("destroy"),i.clear())}function G(M,y,O){!x.active||g||(a.scrollBody.useBaseFriction().useDuration(y===!0?0:x.duration),a.scrollTo.index(M,O||0))}function H(M){const y=a.index.add(1).get();G(y,M,-1)}function Z(M){const y=a.index.add(-1).get();G(y,M,1)}function X(){return a.index.add(1).get()!==R()}function $(){return a.index.add(-1).get()!==R()}function U(){return a.scrollSnapList}function st(){return a.scrollProgress.get(a.offsetLocation.get())}function R(){return a.index.get()}function et(){return a.indexPrevious.get()}function ot(){return a.slidesInView.get()}function K(){return a.slidesInView.get(!1)}function it(){return D}function ct(){return a}function B(){return t}function C(){return T}function Q(){return E}const V={canScrollNext:X,canScrollPrev:$,containerNode:C,internalEngine:ct,destroy:j,off:b,on:p,emit:l,plugins:it,previousScrollSnap:et,reInit:m,rootNode:B,scrollNext:H,scrollPrev:Z,scrollProgress:st,scrollSnapList:U,scrollTo:G,selectedScrollSnap:R,slideNodes:Q,slidesInView:ot,slidesNotInView:K};return P(n,o),setTimeout(()=>i.emit("init"),0),V}ht.globalOptions=void 0;function Ut(t={},n=[]){const o=_.useRef(t),s=_.useRef(n),[c,r]=_.useState(),[e,f]=_.useState(),i=_.useCallback(()=>{c&&c.reInit(o.current,s.current)},[c]);return _.useEffect(()=>{vt(o.current,t)||(o.current=t,i())},[t,i]),_.useEffect(()=>{rn(s.current,n)||(s.current=n,i())},[n,i]),_.useEffect(()=>{if(on()&&e){ht.globalOptions=Ut.globalOptions;const u=ht(e,o.current,s.current);return r(u),()=>u.destroy()}else r(void 0)},[e,r]),[f,c]}Ut.globalOptions=void 0;export{Ut as u};
1
+ import{r as _}from"./iframe-DfPay7Zl.js";function en(t){return Object.prototype.toString.call(t)==="[object Object]"}function zt(t){return en(t)||Array.isArray(t)}function on(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vt(t,n){const o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),r=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==r?!1:o.every(e=>{const f=t[e],i=n[e];return typeof f=="function"?`${f}`==`${i}`:!zt(f)||!zt(i)?f===i:vt(f,i)})}function jt(t){return t.concat().sort((n,o)=>n.name>o.name?1:-1).map(n=>n.options)}function rn(t,n){if(t.length!==n.length)return!1;const o=jt(t),s=jt(n);return o.every((c,r)=>{const e=s[r];return vt(c,e)})}function At(t){return typeof t=="number"}function It(t){return typeof t=="string"}function St(t){return typeof t=="boolean"}function Gt(t){return Object.prototype.toString.call(t)==="[object Object]"}function w(t){return Math.abs(t)}function Ot(t){return Math.sign(t)}function at(t,n){return w(t-n)}function sn(t,n){if(t===0||n===0||w(t)<=w(n))return 0;const o=at(w(t),w(n));return w(o/t)}function cn(t){return Math.round(t*100)/100}function lt(t){return dt(t).map(Number)}function z(t){return t[mt(t)]}function mt(t){return Math.max(0,t.length-1)}function Dt(t,n){return n===mt(t)}function Ht(t,n=0){return Array.from(Array(t),(o,s)=>n+s)}function dt(t){return Object.keys(t)}function Rt(t,n){return[t,n].reduce((o,s)=>(dt(s).forEach(c=>{const r=o[c],e=s[c],f=Gt(r)&&Gt(e);o[c]=f?Rt(r,e):e}),o),{})}function Tt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function un(t,n){const o={start:s,center:c,end:r};function s(){return 0}function c(i){return r(i)/2}function r(i){return n-i}function e(i,u){return It(t)?o[t](i):t(n,i,u)}return{measure:e}}function pt(){let t=[];function n(c,r,e,f={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(r,e,f),i=()=>c.removeEventListener(r,e,f);else{const u=c;u.addListener(e),i=()=>u.removeListener(e)}return t.push(i),s}function o(){t=t.filter(c=>c())}const s={add:n,clear:o};return s}function fn(t,n,o,s){const c=pt(),r=1e3/60;let e=null,f=0,i=0;function u(){c.add(t,"visibilitychange",()=>{t.hidden&&l()})}function h(){b(),c.clear()}function d(g){if(!i)return;e||(e=g,o(),o());const a=g-e;for(e=g,f+=a;f>=r;)o(),f-=r;const S=f/r;s(S),i&&(i=n.requestAnimationFrame(d))}function p(){i||(i=n.requestAnimationFrame(d))}function b(){n.cancelAnimationFrame(i),e=null,f=0,i=0}function l(){e=null,f=0}return{init:u,destroy:h,start:p,stop:b,update:o,render:s}}function an(t,n){const o=n==="rtl",s=t==="y",c=s?"y":"x",r=s?"x":"y",e=!s&&o?-1:1,f=h(),i=d();function u(l){const{height:m,width:g}=l;return s?m:g}function h(){return s?"top":o?"right":"left"}function d(){return s?"bottom":o?"left":"right"}function p(l){return l*e}return{scroll:c,cross:r,startEdge:f,endEdge:i,measureSize:u,direction:p}}function nt(t=0,n=0){const o=w(t-n);function s(u){return u<t}function c(u){return u>n}function r(u){return s(u)||c(u)}function e(u){return r(u)?s(u)?t:n:u}function f(u){return o?u-o*Math.ceil((u-n)/o):u}return{length:o,max:n,min:t,constrain:e,reachedAny:r,reachedMax:c,reachedMin:s,removeOffset:f}}function qt(t,n,o){const{constrain:s}=nt(0,t),c=t+1;let r=e(n);function e(p){return o?w((c+p)%c):s(p)}function f(){return r}function i(p){return r=e(p),d}function u(p){return h().set(f()+p)}function h(){return qt(t,f(),o)}const d={get:f,set:i,add:u,clone:h};return d}function ln(t,n,o,s,c,r,e,f,i,u,h,d,p,b,l,m,g,a,S){const{cross:x,direction:I}=t,D=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=pt(),L=pt(),v=nt(50,225).constrain(b.measure(20)),P={mouse:300,touch:400},A={mouse:500,touch:600},N=l?43:25;let j=!1,G=0,H=0,Z=!1,X=!1,$=!1,U=!1;function st(y){if(!S)return;function O(k){(St(S)||S(y,k))&&ct(k)}const F=n;E.add(F,"dragstart",k=>k.preventDefault(),T).add(F,"touchmove",()=>{},T).add(F,"touchend",()=>{}).add(F,"touchstart",O).add(F,"mousedown",O).add(F,"touchcancel",C).add(F,"contextmenu",C).add(F,"click",Q,!0)}function R(){E.clear(),L.clear()}function et(){const y=U?o:n;L.add(y,"touchmove",B,T).add(y,"touchend",C).add(y,"mousemove",B,T).add(y,"mouseup",C)}function ot(y){const O=y.nodeName||"";return D.includes(O)}function K(){return(l?A:P)[U?"mouse":"touch"]}function it(y,O){const F=d.add(Ot(y)*-1),k=h.byDistance(y,!l).distance;return l||w(y)<v?k:g&&O?k*.5:h.byIndex(F.get(),0).distance}function ct(y){const O=Tt(y,s);U=O,$=l&&O&&!y.buttons&&j,j=at(c.get(),e.get())>=2,!(O&&y.button!==0)&&(ot(y.target)||(Z=!0,r.pointerDown(y),u.useFriction(0).useDuration(0),c.set(e),et(),G=r.readPoint(y),H=r.readPoint(y,x),p.emit("pointerDown")))}function B(y){if(!Tt(y,s)&&y.touches.length>=2)return C(y);const F=r.readPoint(y),k=r.readPoint(y,x),q=at(F,G),J=at(k,H);if(!X&&!U&&(!y.cancelable||(X=q>J,!X)))return C(y);const W=r.pointerMove(y);q>m&&($=!0),u.useFriction(.3).useDuration(.75),f.start(),c.add(I(W)),y.preventDefault()}function C(y){const F=h.byDistance(0,!1).index!==d.get(),k=r.pointerUp(y)*K(),q=it(I(k),F),J=sn(k,q),W=N-10*J,Y=a+J/50;X=!1,Z=!1,L.clear(),u.useDuration(W).useFriction(Y),i.distance(q,!l),U=!1,p.emit("pointerUp")}function Q(y){$&&(y.stopPropagation(),y.preventDefault(),$=!1)}function V(){return Z}return{init:st,destroy:R,pointerDown:V}}function dn(t,n){let s,c;function r(d){return d.timeStamp}function e(d,p){const l=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Tt(d,n)?d:d.touches[0])[l]}function f(d){return s=d,c=d,e(d)}function i(d){const p=e(d)-e(c),b=r(d)-r(s)>170;return c=d,b&&(s=d),p}function u(d){if(!s||!c)return 0;const p=e(c)-e(s),b=r(d)-r(s),l=r(d)-r(c)>170,m=p/b;return b&&!l&&w(m)>.1?m:0}return{pointerDown:f,pointerMove:i,pointerUp:u,readPoint:e}}function pn(){function t(o){const{offsetTop:s,offsetLeft:c,offsetWidth:r,offsetHeight:e}=o;return{top:s,right:c+r,bottom:s+e,left:c,width:r,height:e}}return{measure:t}}function mn(t){function n(s){return t*(s/100)}return{measure:n}}function gn(t,n,o,s,c,r,e){const f=[t].concat(s);let i,u,h=[],d=!1;function p(g){return c.measureSize(e.measure(g))}function b(g){if(!r)return;u=p(t),h=s.map(p);function a(S){for(const x of S){if(d)return;const I=x.target===t,D=s.indexOf(x.target),T=I?u:h[D],E=p(I?t:s[D]);if(w(E-T)>=.5){g.reInit(),n.emit("resize");break}}}i=new ResizeObserver(S=>{(St(r)||r(g,S))&&a(S)}),o.requestAnimationFrame(()=>{f.forEach(S=>i.observe(S))})}function l(){d=!0,i&&i.disconnect()}return{init:b,destroy:l}}function hn(t,n,o,s,c,r){let e=0,f=0,i=c,u=r,h=t.get(),d=0;function p(){const T=s.get()-t.get(),E=!i;let L=0;return E?(e=0,o.set(s),t.set(s),L=T):(o.set(t),e+=T/i,e*=u,h+=e,t.add(e),L=h-d),f=Ot(L),d=h,D}function b(){const T=s.get()-n.get();return w(T)<.001}function l(){return i}function m(){return f}function g(){return e}function a(){return x(c)}function S(){return I(r)}function x(T){return i=T,D}function I(T){return u=T,D}const D={direction:m,duration:l,velocity:g,seek:p,settled:b,useBaseFriction:S,useBaseDuration:a,useFriction:I,useDuration:x};return D}function Sn(t,n,o,s,c){const r=c.measure(10),e=c.measure(50),f=nt(.1,.99);let i=!1;function u(){return!(i||!t.reachedAny(o.get())||!t.reachedAny(n.get()))}function h(b){if(!u())return;const l=t.reachedMin(n.get())?"min":"max",m=w(t[l]-n.get()),g=o.get()-n.get(),a=f.constrain(m/e);o.subtract(g*a),!b&&w(g)<r&&(o.set(t.constrain(o.get())),s.useDuration(25).useBaseFriction())}function d(b){i=!b}return{shouldConstrain:u,constrain:h,toggleActive:d}}function yn(t,n,o,s,c){const r=nt(-n+t,0),e=d(),f=h(),i=p();function u(l,m){return at(l,m)<=1}function h(){const l=e[0],m=z(e),g=e.lastIndexOf(l),a=e.indexOf(m)+1;return nt(g,a)}function d(){return o.map((l,m)=>{const{min:g,max:a}=r,S=r.constrain(l),x=!m,I=Dt(o,m);return x?a:I||u(g,S)?g:u(a,S)?a:S}).map(l=>parseFloat(l.toFixed(3)))}function p(){if(n<=t+c)return[r.max];if(s==="keepSnaps")return e;const{min:l,max:m}=f;return e.slice(l,m)}return{snapsContained:i,scrollContainLimit:f}}function bn(t,n,o){const s=n[0],c=o?s-t:z(n);return{limit:nt(c,s)}}function xn(t,n,o,s){const r=n.min+.1,e=n.max+.1,{reachedMin:f,reachedMax:i}=nt(r,e);function u(p){return p===1?i(o.get()):p===-1?f(o.get()):!1}function h(p){if(!u(p))return;const b=t*(p*-1);s.forEach(l=>l.add(b))}return{loop:h}}function En(t){const{max:n,length:o}=t;function s(r){const e=r-n;return o?e/-o:0}return{get:s}}function Ln(t,n,o,s,c){const{startEdge:r,endEdge:e}=t,{groupSlides:f}=c,i=d().map(n.measure),u=p(),h=b();function d(){return f(s).map(m=>z(m)[e]-m[0][r]).map(w)}function p(){return s.map(m=>o[r]-m[r]).map(m=>-w(m))}function b(){return f(u).map(m=>m[0]).map((m,g)=>m+i[g])}return{snaps:u,snapsAligned:h}}function In(t,n,o,s,c,r){const{groupSlides:e}=c,{min:f,max:i}=s,u=h();function h(){const p=e(r),b=!t||n==="keepSnaps";return o.length===1?[r]:b?p:p.slice(f,i).map((l,m,g)=>{const a=!m,S=Dt(g,m);if(a){const x=z(g[0])+1;return Ht(x)}if(S){const x=mt(r)-z(g)[0]+1;return Ht(x,z(g)[0])}return l})}return{slideRegistry:u}}function Tn(t,n,o,s,c){const{reachedAny:r,removeOffset:e,constrain:f}=s;function i(l){return l.concat().sort((m,g)=>w(m)-w(g))[0]}function u(l){const m=t?e(l):f(l),g=n.map((S,x)=>({diff:h(S-m,0),index:x})).sort((S,x)=>w(S.diff)-w(x.diff)),{index:a}=g[0];return{index:a,distance:m}}function h(l,m){const g=[l,l+o,l-o];if(!t)return l;if(!m)return i(g);const a=g.filter(S=>Ot(S)===m);return a.length?i(a):z(g)-o}function d(l,m){const g=n[l]-c.get(),a=h(g,m);return{index:l,distance:a}}function p(l,m){const g=c.get()+l,{index:a,distance:S}=u(g),x=!t&&r(g);if(!m||x)return{index:a,distance:l};const I=n[a]-S,D=l+h(I,0);return{index:a,distance:D}}return{byDistance:p,byIndex:d,shortcut:h}}function vn(t,n,o,s,c,r,e){function f(d){const p=d.distance,b=d.index!==n.get();r.add(p),p&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),b&&(o.set(n.get()),n.set(d.index),e.emit("select"))}function i(d,p){const b=c.byDistance(d,p);f(b)}function u(d,p){const b=n.clone().set(d),l=c.byIndex(b.get(),p);f(l)}return{distance:i,index:u}}function An(t,n,o,s,c,r,e,f){const i={passive:!0,capture:!0};let u=0;function h(b){if(!f)return;function l(m){if(new Date().getTime()-u>10)return;e.emit("slideFocusStart"),t.scrollLeft=0;const S=o.findIndex(x=>x.includes(m));At(S)&&(c.useDuration(0),s.index(S,0),e.emit("slideFocus"))}r.add(document,"keydown",d,!1),n.forEach((m,g)=>{r.add(m,"focus",a=>{(St(f)||f(b,a))&&l(g)},i)})}function d(b){b.code==="Tab"&&(u=new Date().getTime())}return{init:h}}function ft(t){let n=t;function o(){return n}function s(i){n=e(i)}function c(i){n+=e(i)}function r(i){n-=e(i)}function e(i){return At(i)?i:i.get()}return{get:o,set:s,add:c,subtract:r}}function $t(t,n){const o=t.scroll==="x"?e:f,s=n.style;let c=null,r=!1;function e(p){return`translate3d(${p}px,0px,0px)`}function f(p){return`translate3d(0px,${p}px,0px)`}function i(p){if(r)return;const b=cn(t.direction(p));b!==c&&(s.transform=o(b),c=b)}function u(p){r=!p}function h(){r||(s.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:h,to:i,toggleActive:u}}function On(t,n,o,s,c,r,e,f,i){const h=lt(c),d=lt(c).reverse(),p=a().concat(S());function b(E,L){return E.reduce((v,P)=>v-c[P],L)}function l(E,L){return E.reduce((v,P)=>b(v,L)>0?v.concat([P]):v,[])}function m(E){return r.map((L,v)=>({start:L-s[v]+.5+E,end:L+n-.5+E}))}function g(E,L,v){const P=m(L);return E.map(A=>{const N=v?0:-o,j=v?o:0,G=v?"end":"start",H=P[A][G];return{index:A,loopPoint:H,slideLocation:ft(-1),translate:$t(t,i[A]),target:()=>f.get()>H?N:j}})}function a(){const E=e[0],L=l(d,E);return g(L,o,!1)}function S(){const E=n-e[0]-1,L=l(h,E);return g(L,-o,!0)}function x(){return p.every(({index:E})=>{const L=h.filter(v=>v!==E);return b(L,n)<=.1})}function I(){p.forEach(E=>{const{target:L,translate:v,slideLocation:P}=E,A=L();A!==P.get()&&(v.to(A),P.set(A))})}function D(){p.forEach(E=>E.translate.clear())}return{canLoop:x,clear:D,loop:I,loopPoints:p}}function Dn(t,n,o){let s,c=!1;function r(i){if(!o)return;function u(h){for(const d of h)if(d.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}s=new MutationObserver(h=>{c||(St(o)||o(i,h))&&u(h)}),s.observe(t,{childList:!0})}function e(){s&&s.disconnect(),c=!0}return{init:r,destroy:e}}function Mn(t,n,o,s){const c={};let r=null,e=null,f,i=!1;function u(){f=new IntersectionObserver(l=>{i||(l.forEach(m=>{const g=n.indexOf(m.target);c[g]=m}),r=null,e=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:s}),n.forEach(l=>f.observe(l))}function h(){f&&f.disconnect(),i=!0}function d(l){return dt(c).reduce((m,g)=>{const a=parseInt(g),{isIntersecting:S}=c[a];return(l&&S||!l&&!S)&&m.push(a),m},[])}function p(l=!0){if(l&&r)return r;if(!l&&e)return e;const m=d(l);return l&&(r=m),l||(e=m),m}return{init:u,destroy:h,get:p}}function wn(t,n,o,s,c,r){const{measureSize:e,startEdge:f,endEdge:i}=t,u=o[0]&&c,h=l(),d=m(),p=o.map(e),b=g();function l(){if(!u)return 0;const S=o[0];return w(n[f]-S[f])}function m(){if(!u)return 0;const S=r.getComputedStyle(z(s));return parseFloat(S.getPropertyValue(`margin-${i}`))}function g(){return o.map((S,x,I)=>{const D=!x,T=Dt(I,x);return D?p[x]+h:T?p[x]+d:I[x+1][f]-S[f]}).map(w)}return{slideSizes:p,slideSizesWithGaps:b,startGap:h,endGap:d}}function Pn(t,n,o,s,c,r,e,f,i){const{startEdge:u,endEdge:h,direction:d}=t,p=At(o);function b(a,S){return lt(a).filter(x=>x%S===0).map(x=>a.slice(x,x+S))}function l(a){return a.length?lt(a).reduce((S,x,I)=>{const D=z(S)||0,T=D===0,E=x===mt(a),L=c[u]-r[D][u],v=c[u]-r[x][h],P=!s&&T?d(e):0,A=!s&&E?d(f):0,N=w(v-A-(L+P));return I&&N>n+i&&S.push(x),E&&S.push(a.length),S},[]).map((S,x,I)=>{const D=Math.max(I[x-1]||0);return a.slice(D,S)}):[]}function m(a){return p?b(a,o):l(a)}return{groupSlides:m}}function Fn(t,n,o,s,c,r,e){const{align:f,axis:i,direction:u,startIndex:h,loop:d,duration:p,dragFree:b,dragThreshold:l,inViewThreshold:m,slidesToScroll:g,skipSnaps:a,containScroll:S,watchResize:x,watchSlides:I,watchDrag:D,watchFocus:T}=r,E=2,L=pn(),v=L.measure(n),P=o.map(L.measure),A=an(i,u),N=A.measureSize(v),j=mn(N),G=un(f,N),H=!d&&!!S,Z=d||!!S,{slideSizes:X,slideSizesWithGaps:$,startGap:U,endGap:st}=wn(A,v,P,o,Z,c),R=Pn(A,N,g,d,v,P,U,st,E),{snaps:et,snapsAligned:ot}=Ln(A,G,v,P,R),K=-z(et)+z($),{snapsContained:it,scrollContainLimit:ct}=yn(N,K,ot,S,E),B=H?it:ot,{limit:C}=bn(K,B,d),Q=qt(mt(B),h,d),V=Q.clone(),M=lt(o),y=({dragHandler:rt,scrollBody:Et,scrollBounds:Lt,options:{loop:gt}})=>{gt||Lt.constrain(rt.pointerDown()),Et.seek()},O=({scrollBody:rt,translate:Et,location:Lt,offsetLocation:gt,previousLocation:Jt,scrollLooper:Xt,slideLooper:Yt,dragHandler:_t,animation:Zt,eventHandler:Ft,scrollBounds:Wt,options:{loop:Ct}},kt)=>{const Nt=rt.settled(),tn=!Wt.shouldConstrain(),Bt=Ct?Nt:Nt&&tn,Vt=Bt&&!_t.pointerDown();Vt&&Zt.stop();const nn=Lt.get()*kt+Jt.get()*(1-kt);gt.set(nn),Ct&&(Xt.loop(rt.direction()),Yt.loop()),Et.to(gt.get()),Vt&&Ft.emit("settle"),Bt||Ft.emit("scroll")},F=fn(s,c,()=>y(xt),rt=>O(xt,rt)),k=.68,q=B[Q.get()],J=ft(q),W=ft(q),Y=ft(q),tt=ft(q),ut=hn(J,Y,W,tt,p,k),yt=Tn(d,B,K,C,tt),bt=vn(F,Q,V,ut,yt,tt,e),Mt=En(C),wt=pt(),Kt=Mn(n,o,e,m),{slideRegistry:Pt}=In(H,S,B,ct,R,M),Qt=An(t,o,Pt,bt,ut,wt,e,T),xt={ownerDocument:s,ownerWindow:c,eventHandler:e,containerRect:v,slideRects:P,animation:F,axis:A,dragHandler:ln(A,t,s,c,tt,dn(A,c),J,F,bt,ut,yt,Q,e,j,b,l,a,k,D),eventStore:wt,percentOfView:j,index:Q,indexPrevious:V,limit:C,location:J,offsetLocation:Y,previousLocation:W,options:r,resizeHandler:gn(n,e,c,o,A,x,L),scrollBody:ut,scrollBounds:Sn(C,Y,tt,ut,j),scrollLooper:xn(K,C,Y,[J,Y,W,tt]),scrollProgress:Mt,scrollSnapList:B.map(Mt.get),scrollSnaps:B,scrollTarget:yt,scrollTo:bt,slideLooper:On(A,N,K,X,$,et,B,Y,o),slideFocus:Qt,slidesHandler:Dn(n,e,I),slidesInView:Kt,slideIndexes:M,slideRegistry:Pt,slidesToScroll:R,target:tt,translate:$t(A,n)};return xt}function Cn(){let t={},n;function o(u){n=u}function s(u){return t[u]||[]}function c(u){return s(u).forEach(h=>h(n,u)),i}function r(u,h){return t[u]=s(u).concat([h]),i}function e(u,h){return t[u]=s(u).filter(d=>d!==h),i}function f(){t={}}const i={init:o,emit:c,off:e,on:r,clear:f};return i}const kn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Nn(t){function n(r,e){return Rt(r,e||{})}function o(r){const e=r.breakpoints||{},f=dt(e).filter(i=>t.matchMedia(i).matches).map(i=>e[i]).reduce((i,u)=>n(i,u),{});return n(r,f)}function s(r){return r.map(e=>dt(e.breakpoints||{})).reduce((e,f)=>e.concat(f),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:o,optionsMediaQueries:s}}function Bn(t){let n=[];function o(r,e){return n=e.filter(({options:f})=>t.optionsAtMedia(f).active!==!1),n.forEach(f=>f.init(r,t)),e.reduce((f,i)=>Object.assign(f,{[i.name]:i}),{})}function s(){n=n.filter(r=>r.destroy())}return{init:o,destroy:s}}function ht(t,n,o){const s=t.ownerDocument,c=s.defaultView,r=Nn(c),e=Bn(r),f=pt(),i=Cn(),{mergeOptions:u,optionsAtMedia:h,optionsMediaQueries:d}=r,{on:p,off:b,emit:l}=i,m=A;let g=!1,a,S=u(kn,ht.globalOptions),x=u(S),I=[],D,T,E;function L(){const{container:M,slides:y}=x;T=(It(M)?t.querySelector(M):M)||t.children[0];const F=It(y)?T.querySelectorAll(y):y;E=[].slice.call(F||T.children)}function v(M){const y=Fn(t,T,E,s,c,M,i);if(M.loop&&!y.slideLooper.canLoop()){const O=Object.assign({},M,{loop:!1});return v(O)}return y}function P(M,y){g||(S=u(S,M),x=h(S),I=y||I,L(),a=v(x),d([S,...I.map(({options:O})=>O)]).forEach(O=>f.add(O,"change",A)),x.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(V),a.eventHandler.init(V),a.resizeHandler.init(V),a.slidesHandler.init(V),a.options.loop&&a.slideLooper.loop(),T.offsetParent&&E.length&&a.dragHandler.init(V),D=e.init(V,I)))}function A(M,y){const O=R();N(),P(u({startIndex:O},M),y),i.emit("reInit")}function N(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),e.destroy(),f.clear()}function j(){g||(g=!0,f.clear(),N(),i.emit("destroy"),i.clear())}function G(M,y,O){!x.active||g||(a.scrollBody.useBaseFriction().useDuration(y===!0?0:x.duration),a.scrollTo.index(M,O||0))}function H(M){const y=a.index.add(1).get();G(y,M,-1)}function Z(M){const y=a.index.add(-1).get();G(y,M,1)}function X(){return a.index.add(1).get()!==R()}function $(){return a.index.add(-1).get()!==R()}function U(){return a.scrollSnapList}function st(){return a.scrollProgress.get(a.offsetLocation.get())}function R(){return a.index.get()}function et(){return a.indexPrevious.get()}function ot(){return a.slidesInView.get()}function K(){return a.slidesInView.get(!1)}function it(){return D}function ct(){return a}function B(){return t}function C(){return T}function Q(){return E}const V={canScrollNext:X,canScrollPrev:$,containerNode:C,internalEngine:ct,destroy:j,off:b,on:p,emit:l,plugins:it,previousScrollSnap:et,reInit:m,rootNode:B,scrollNext:H,scrollPrev:Z,scrollProgress:st,scrollSnapList:U,scrollTo:G,selectedScrollSnap:R,slideNodes:Q,slidesInView:ot,slidesNotInView:K};return P(n,o),setTimeout(()=>i.emit("init"),0),V}ht.globalOptions=void 0;function Ut(t={},n=[]){const o=_.useRef(t),s=_.useRef(n),[c,r]=_.useState(),[e,f]=_.useState(),i=_.useCallback(()=>{c&&c.reInit(o.current,s.current)},[c]);return _.useEffect(()=>{vt(o.current,t)||(o.current=t,i())},[t,i]),_.useEffect(()=>{rn(s.current,n)||(s.current=n,i())},[n,i]),_.useEffect(()=>{if(on()&&e){ht.globalOptions=Ut.globalOptions;const u=ht(e,o.current,s.current);return r(u),()=>u.destroy()}else r(void 0)},[e,r]),[f,c]}Ut.globalOptions=void 0;export{Ut as u};
@@ -0,0 +1 @@
1
+ import{r as l,j as t}from"./iframe-DfPay7Zl.js";import{g as w}from"./colors-_6nFGM3e.js";import{c as C,g as k}from"./store-Ce3Ikv5g.js";const c=e=>l.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{opacity:.4,d:"M9 17C4.5889 17 1 13.4111 1 9C1 4.5889 4.5889 1 9 1C13.4111 1 17 4.5889 17 9C17 13.4111 13.4111 17 9 17ZM9 2.5C5.416 2.5 2.5 5.416 2.5 9C2.5 12.584 5.416 15.5 9 15.5C12.584 15.5 15.5 12.584 15.5 9C15.5 5.416 12.584 2.5 9 2.5Z",fill:"currentColor"}),l.createElement("path",{d:"M16.25 9.75C15.8359 9.75 15.5 9.4141 15.5 9C15.5 5.416 12.584 2.5 9 2.5C8.5859 2.5 8.25 2.1641 8.25 1.75C8.25 1.3359 8.5859 1 9 1C13.4111 1 17 4.5889 17 9C17 9.4141 16.6641 9.75 16.25 9.75Z",fill:"currentColor"})),f=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.7482 2.25105C22.0829 2.58579 22.0829 3.1285 21.7482 3.46323L3.46323 21.7482C3.1285 22.0829 2.58579 22.0829 2.25105 21.7482C1.91632 21.4134 1.91632 20.8707 2.25105 20.536L20.536 2.25105C20.8707 1.91632 21.4134 1.91632 21.7482 2.25105Z",fill:"currentColor"}),l.createElement("path",{d:"M13.52 2.25105C13.8547 2.58579 13.8547 3.1285 13.52 3.46323L3.46323 13.52C3.1285 13.8547 2.58579 13.8547 2.25105 13.52C1.91632 13.1852 1.91632 12.6425 2.25105 12.3078L12.3078 2.25105C12.6425 1.91632 13.1852 1.91632 13.52 2.25105Z",fill:"currentColor"}),l.createElement("path",{d:"M5.29091 3.46323C5.62565 3.1285 5.62565 2.58579 5.29091 2.25105C4.95618 1.91632 4.41346 1.91632 4.07873 2.25105L2.25105 4.07873C1.91632 4.41346 1.91632 4.95618 2.25105 5.29091C2.58579 5.62565 3.1285 5.62565 3.46323 5.29091L5.29091 3.46323Z",fill:"currentColor"}),l.createElement("path",{d:"M21.7482 10.4793C22.0829 10.814 22.0829 11.3567 21.7482 11.6915L11.6915 21.7482C11.3567 22.0829 10.814 22.0829 10.4793 21.7482C10.1445 21.4134 10.1445 20.8707 10.4793 20.536L20.536 10.4793C20.8707 10.1445 21.4135 10.1445 21.7482 10.4793Z",fill:"currentColor"}),l.createElement("path",{d:"M21.7474 19.9197C22.0821 19.585 22.0821 19.0422 21.7474 18.7075C21.4126 18.3728 20.8699 18.3728 20.5352 18.7075L18.7075 20.5352C18.3728 20.8699 18.3728 21.4126 18.7075 21.7474C19.0422 22.0821 19.585 22.0821 19.9197 21.7474L21.7474 19.9197Z",fill:"currentColor"})),d={"add-magic-fill":"ue971","add-magic-outline":"ue900","arrow-door-out-fill":"ue972","arrow-door-out-outline":"ue901","arrow-left-from-line-fill":"ue9da","arrow-left-from-line-outline":"ue969","arrow-right-fill":"ue973","arrow-right-from-line-fill":"ue9db","arrow-right-from-line-outline":"ue96a","arrow-right-outline":"ue902","arrow-rotate-anticlockwise-fill":"ue974","arrow-rotate-anticlockwise-outline":"ue903","arrow-rotate-clockwise-fill":"ue975","arrow-rotate-clockwise-outline":"ue904","arrow-trend-down-fill":"ue9d9","arrow-trend-down-outline":"ue968","arrow-trend-up-fill":"ue9d8","arrow-trend-up-outline":"ue967","arrows-expand-fill":"ue976","arrows-expand-outline":"ue905","atm-machine-fill":"ue977","atm-machine-outline":"ue906","badge-check-fill":"ue978","badge-check-outline":"ue907","ballot-circle-fill":"ue979","ballot-circle-outline":"ue908","battery-alert-fill":"ue97a","battery-alert-outline":"ue909","battery-charging-fill":"ue97b","battery-charging-outline":"ue90a","bell-fill":"ue97c","bell-outline":"ue90b","bell-slash-fill":"ue97d","bell-slash-outline":"ue90c","bolt-fill":"ue97e","bolt-outline":"ue90d","bolt-slash-fill":"ue97f","bolt-slash-outline":"ue90e","book-open-fill":"ue980","book-open-outline":"ue90f","bookmark-fill":"ue9f3","bookmark-outline":"ue9f1","bug-slash-fill":"ue981","bug-slash-outline":"ue910","calendar-fill":"ue982","calendar-outline":"ue911","camera-fill":"ue983","camera-outline":"ue912","car-electric-fill":"ue984","car-electric-outline":"ue913","car-side-fill":"ue985","car-side-outline":"ue914","charging-station-fill":"ue986","charging-station-outline":"ue915","chart-column-trend-up-fill":"ue9e0","chart-column-trend-up-outline":"ue96f","chart-donut-fill":"ue9df","chart-donut-outline":"ue96e","check-double-fill":"ue987","check-double-outline":"ue916","check-fill":"ue988","check-outline":"ue917","chevron-down-fill":"ue989","chevron-down-outline":"ue918","chevron-left-fill":"ue98a","chevron-left-outline":"ue919","chevron-right-fill":"ue98b","chevron-right-outline":"ue91a","chevron-up-fill":"ue98c","chevron-up-outline":"ue91b","circle-check-fill":"ue98d","circle-check-outline":"ue91c","circle-info-fill":"ue98e","circle-info-outline":"ue91d","circle-question-fill":"ue98f","circle-question-outline":"ue91e","circle-xmark-fill":"ue990","circle-xmark-outline":"ue91f","clipboard-list-fill":"ue991","clipboard-list-outline":"ue920","clock-fill":"ue992","clock-outline":"ue921","clone-fill":"ue993","clone-outline":"ue922","credit-card-fill":"ue994","credit-card-outline":"ue923","credit-card-plus-fill":"ue995","credit-card-plus-outline":"ue924","crown-fill":"ue996","crown-outline":"ue925","discount-code-fill":"ue997","discount-code-outline":"ue926","dots-fill":"ue998","dots-outline":"ue927","double-chevron-left-fill":"ue999","double-chevron-left-outline":"ue928","double-chevron-right-fill":"ue99a","double-chevron-right-outline":"ue929","download-fill":"ue99b","download-outline":"ue92a","envelope-fill":"ue99c","envelope-outline":"ue92b","eye-fill":"ue99d","eye-outline":"ue92c","eye-slash-fill":"ue99e","eye-slash-outline":"ue92d","facial-recognition-fill":"ue99f","facial-recognition-outline":"ue92e","file-content-fill":"ue9a0","file-content-outline":"ue92f","filter-fill":"ue9a1","filter-outline":"ue930","fingerprint-fill":"ue9a2","fingerprint-outline":"ue931","flag-fill":"ue9de","flag-outline":"ue96d","folder-fill":"ue9dc","folder-open-fill":"ue9dd","folder-open-outline":"ue96c","folder-outline":"ue96b","gear-fill":"ue9a3","gear-outline":"ue932","gift-fill":"ue9a4","gift-outline":"ue933","graduation-cap-fill":"ue9ef","graduation-cap-outline":"ue9ee","grid-fill":"ue9a5","grid-outline":"ue934","grid-plus-fill":"ue9a6","grid-plus-outline":"ue935","hashtag-fill":"ue9f2","hashtag-outline":"ue9f0","headset-fill":"ue9a7","headset-outline":"ue936","heart-fill":"ue9a8","heart-outline":"ue937","history-fill":"ue9a9","history-outline":"ue938","house-fill":"ue9aa","house-outline":"ue939","image-fill":"ue9e1","image-outline":"ue970","input-password-fill":"ue9ab","input-password-outline":"ue93a","language-fill":"ue9ac","language-outline":"ue93b","lightbulb-fill":"ue9ad","lightbulb-outline":"ue93c","link-fill":"ue9ae","link-outline":"ue93d","link-slash-fill":"ue9af","link-slash-outline":"ue93e","loader-fill":"ue9b0","loader-outline":"ue93f","lock-fill":"ue9b1","lock-outline":"ue940","magnifier-fill":"ue9b2","magnifier-outline":"ue941","media-next-fill":"ue9b3","media-next-outline":"ue942","media-pause-fill":"ue9b4","media-pause-outline":"ue943","media-play-fill":"ue9b5","media-play-outline":"ue944","media-previous-fill":"ue9b6","media-previous-outline":"ue945","media-stop-fill":"ue9eb","media-stop-outline":"ue9e6","menu-fill":"ue9ec","menu-outline":"ue9ed","message-content-fill":"ue9ea","message-content-outline":"ue9e4","microphone-fill":"ue9b7","microphone-outline":"ue946","minus-fill":"ue9b8","minus-outline":"ue947","money-bill-coin-fill":"ue9b9","money-bill-coin-outline":"ue948","msg-fill":"ue9ba","msg-outline":"ue949","newspaper-fill":"ue9bb","newspaper-outline":"ue94a","nodes-fill":"ue9d7","nodes-outline":"ue966","office-fill":"ue9bc","office-outline":"ue94b","paper-plane-fill":"ue9bd","paper-plane-outline":"ue94c","pen-fill":"ue9be","pen-outline":"ue94d","phone-fill":"ue9bf","phone-outline":"ue94e","pin-fill":"ue9c0","pin-outline":"ue94f","pin-tack-fill":"ue9c1","pin-tack-outline":"ue950","plane-fill":"ue9c2","plane-outline":"ue951","plus-fill":"ue9c3","plus-outline":"ue952","qrcode-fill":"ue9c4","qrcode-outline":"ue953","receipt-fill":"ue9c5","receipt-outline":"ue954","scan-fill":"ue9c6","scan-outline":"ue955","scooter-front-fill":"ue9c7","scooter-front-outline":"ue956","share-right-fill":"ue9c8","share-right-outline":"ue957","shield-check-fill":"ue9c9","shield-check-outline":"ue958","stack-x-plus-fill":"ue9ca","stack-x-plus-outline":"ue959","star-fill":"ue9cb","star-outline":"ue95a","text-prompt-fill":"ue9e7","text-prompt-outline":"ue9e2","text-size-fill":"ue9e8","text-size-outline":"ue9e3","thumbs-down-fill":"ue9cc","thumbs-down-outline":"ue95b","thumbs-up-fill":"ue9cd","thumbs-up-outline":"ue95c","trash-fill":"ue9ce","trash-outline":"ue95d","triangle-warning-fill":"ue9cf","triangle-warning-outline":"ue95e","user-bubble-check-fill":"ue9d0","user-bubble-check-outline":"ue95f","user-fill":"ue9d1","user-outline":"ue960","user-shield-fill":"ue9d2","user-shield-outline":"ue961","user-xmark-fill":"ue9d3","user-xmark-outline":"ue962","users-plus-fill":"ue9d4","users-plus-outline":"ue963","wallet-fill":"ue9d5","wallet-outline":"ue964","waveform-lines-fill":"ue9e9","waveform-lines-outline":"ue9e5","xmark-fill":"ue9d6","xmark-outline":"ue965","placeholder-fill":"ue984","placeholder-outline":"ue91f"},x={"loader-fill":c,"loader-outline":c,"placeholder-fill":f,"placeholder-outline":f},s=k("icon"),I=Object.keys(d).map(e=>e.endsWith("-fill")?e.slice(0,-5):e.endsWith("-outline")?e.slice(0,-8):e),h=({size:e,color:o,className:p,style:m,animation:r,...u})=>{const n=b=>t.jsx("span",{className:C(s,{[`${s}--${r}`]:r},p),style:{width:e,height:e,fontSize:e,color:w(o),...m},children:b});if("children"in u)return n(u.children);const a=x[`${u.name}-${u.type||"outline"}`];if(a)return n(t.jsx(a,{}));const i=d[`${u.name}-${u.type||"outline"}`];if(!i)return;const g=parseInt(i.startsWith("u")?i.slice(1):i,16);return n(String.fromCodePoint(g))},v=e=>{if(!e)return null;if(typeof e=="function"){const o=e;return t.jsx(o,{})}return l.isValidElement(e)||typeof e!="object"?e:t.jsx(h,{...e})};h.__docgenInfo={description:"",methods:[],displayName:"Icon"};v.__docgenInfo={description:"",methods:[],displayName:"renderIcon"};export{h as I,I as i,v as r};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-CQAwSt4E.js";import{T as y,S as g,M as d,P as f,a as h}from"./blocks-BuaOUtiH.js";import{i as u,I as o}from"./icon-DdQsMyRa.js";import{t as s}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DHiZ-gXR.js";import"./colors-_6nFGM3e.js";import"./classname-CUR_zgkh.js";const v=()=>{const x=`
1
+ import{j as e}from"./iframe-DfPay7Zl.js";import{T as y,S as g,M as d,P as f,a as h}from"./blocks-DKR3P4qW.js";import{i as u,I as o}from"./icon-CdiFzFyf.js";import{t as s}from"./store-Ce3Ikv5g.js";import"./preload-helper-PPVm8Dsz.js";import"./index-cMNObl2z.js";import"./colors-_6nFGM3e.js";const v=()=>{const x=`
2
2
  ## ${s("common.table.title")}
3
3
 
4
4
  | ${s("common.table.name")} | ${s("common.table.type")} | ${s("common.table.required")} | ${s("common.table.description")} |
@@ -12,7 +12,7 @@ import{j as e}from"./iframe-CQAwSt4E.js";import{T as y,S as g,M as d,P as f,a as
12
12
  | \`className\` | \`string\` | ${s("common.table.no")} | ${s("components.icon.classNameDescription")} |
13
13
  | \`style\` | \`React.CSSProperties\` | ${s("common.table.no")} | ${s("components.icon.styleDescription")} |
14
14
  | \`...props\` | \`Omit<ComponentProps<'svg'>, 'name' | 'type' | 'children'>\` | ${s("common.table.no")} | ${s("components.icon.propsDescription")} |
15
- `;return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsx(g,{}),e.jsx(d,{children:s("components.icon.description")}),e.jsx(f,{}),e.jsx(d,{children:x}),e.jsx(h,{})]})},$={title:"Components/Icon",component:o,parameters:{layout:"padded",docs:{page:v}},tags:["autodocs"],argTypes:{name:{control:"select",description:s("components.icon.argTypes.nameDescription"),table:{type:{summary:"IIconName"}},options:u},type:{control:"select",options:["outline","fill"],description:s("components.icon.argTypes.typeDescription"),table:{type:{summary:'"outline" | "fill"'},defaultValue:{summary:"outline"}}},size:{control:{type:"number",min:8,max:128,step:4},description:s("components.icon.argTypes.sizeDescription"),table:{type:{summary:"number | string"}}},color:{control:"text",description:s("components.icon.argTypes.colorDescription"),table:{type:{summary:"IColor"}}},animation:{control:"select",options:["spin","ping","pulse","bounce"],description:s("components.icon.argTypes.animationDescription"),table:{type:{summary:"IIconAnimation"}}},children:{control:!1,description:s("components.icon.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}},className:{control:"text",description:s("components.icon.argTypes.classNameDescription"),table:{type:{summary:"string"}}},style:{control:"object",description:s("components.icon.argTypes.styleDescription"),table:{type:{summary:"React.CSSProperties"}}}}},n={storyName:s("components.icon.stories.default.storyName"),args:{name:"placeholder"}},i={storyName:s("components.icon.stories.iconTypes.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"24px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",type:"outline",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.iconTypes.outline")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",type:"fill",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.iconTypes.fill")})]})]})},t={storyName:s("components.icon.stories.sizes.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:16}),e.jsx("span",{style:{fontSize:"12px"},children:"16px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:24}),e.jsx("span",{style:{fontSize:"12px"},children:"24px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:"32px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:48}),e.jsx("span",{style:{fontSize:"12px"},children:"48px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:"2rem"}),e.jsx("span",{style:{fontSize:"12px"},children:"2rem"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:"3em"}),e.jsx("span",{style:{fontSize:"12px"},children:"3em"})]})]})},l={storyName:s("components.icon.stories.colors.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:s("components.icon.stories.colors.themeColors")}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-object-primary"}),e.jsx("span",{style:{fontSize:"12px"},children:"Primary"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-support-positive"}),e.jsx("span",{style:{fontSize:"12px"},children:"Positive"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-support-negative"}),e.jsx("span",{style:{fontSize:"12px"},children:"Negative"})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:s("components.icon.stories.colors.cssColors")}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"#FF0000"}),e.jsx("span",{style:{fontSize:"12px"},children:"#FF0000"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"rgb(0, 102, 204)"}),e.jsx("span",{style:{fontSize:"12px"},children:"rgb(0, 102, 204)"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"#00AA00"}),e.jsx("span",{style:{fontSize:"12px"},children:"#00AA00"})]})]})]})]})},a={storyName:s("components.icon.stories.animations.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"24px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"loader",animation:"spin",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.spin")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"ping",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.ping")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"pulse",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.pulse")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"bounce",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.bounce")})]})]})},r={storyName:s("components.icon.stories.customSVGIcon.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L2 7v10l10 5 10-5V7l-10-5z"})})}),e.jsx(o,{size:32,color:"#4a90e2",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("circle",{cx:"12",cy:"12",r:"10"})})}),e.jsx(o,{size:48,color:"alias-object-primary",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})})]})},c={storyName:s("components.icon.stories.withSVGProps.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,title:"Information",titleId:"info-title",desc:"This is an information icon"}),e.jsx(o,{name:"placeholder",type:"fill",size:32,color:"alias-object-primary",title:"Custom Icon"})]})},p={storyName:s("components.icon.stories.completeExample.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:"Common Icons"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:24}),e.jsx(o,{name:"placeholder",type:"fill",size:24,color:"alias-object-primary"}),e.jsx(o,{name:"placeholder",size:24,color:"alias-support-positive"}),e.jsx(o,{name:"placeholder",size:24,color:"alias-support-negative"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:"Animated Icons"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"loader",animation:"spin",size:32,color:"alias-object-primary"}),e.jsx(o,{name:"placeholder",animation:"ping",size:32,color:"alias-support-positive"}),e.jsx(o,{name:"placeholder",animation:"pulse",size:32,color:"alias-support-negative"})]})]})]})},m={storyName:s("components.icon.stories.interactive.storyName"),args:{name:"placeholder",type:"outline",size:24}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
15
+ `;return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsx(g,{}),e.jsx(d,{children:s("components.icon.description")}),e.jsx(f,{}),e.jsx(d,{children:x}),e.jsx(h,{})]})},C={title:"Components/Icon",component:o,parameters:{layout:"padded",docs:{page:v}},tags:["autodocs"],argTypes:{name:{control:"select",description:s("components.icon.argTypes.nameDescription"),table:{type:{summary:"IIconName"}},options:u},type:{control:"select",options:["outline","fill"],description:s("components.icon.argTypes.typeDescription"),table:{type:{summary:'"outline" | "fill"'},defaultValue:{summary:"outline"}}},size:{control:{type:"number",min:8,max:128,step:4},description:s("components.icon.argTypes.sizeDescription"),table:{type:{summary:"number | string"}}},color:{control:"text",description:s("components.icon.argTypes.colorDescription"),table:{type:{summary:"IColor"}}},animation:{control:"select",options:["spin","ping","pulse","bounce"],description:s("components.icon.argTypes.animationDescription"),table:{type:{summary:"IIconAnimation"}}},children:{control:!1,description:s("components.icon.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}},className:{control:"text",description:s("components.icon.argTypes.classNameDescription"),table:{type:{summary:"string"}}},style:{control:"object",description:s("components.icon.argTypes.styleDescription"),table:{type:{summary:"React.CSSProperties"}}}}},n={storyName:s("components.icon.stories.default.storyName"),args:{name:"placeholder"}},i={storyName:s("components.icon.stories.iconTypes.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"24px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",type:"outline",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.iconTypes.outline")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",type:"fill",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.iconTypes.fill")})]})]})},t={storyName:s("components.icon.stories.sizes.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:16}),e.jsx("span",{style:{fontSize:"12px"},children:"16px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:24}),e.jsx("span",{style:{fontSize:"12px"},children:"24px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:"32px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:48}),e.jsx("span",{style:{fontSize:"12px"},children:"48px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:"2rem"}),e.jsx("span",{style:{fontSize:"12px"},children:"2rem"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:"3em"}),e.jsx("span",{style:{fontSize:"12px"},children:"3em"})]})]})},l={storyName:s("components.icon.stories.colors.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:s("components.icon.stories.colors.themeColors")}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-object-primary"}),e.jsx("span",{style:{fontSize:"12px"},children:"Primary"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-support-positive"}),e.jsx("span",{style:{fontSize:"12px"},children:"Positive"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-support-negative"}),e.jsx("span",{style:{fontSize:"12px"},children:"Negative"})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:s("components.icon.stories.colors.cssColors")}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"#FF0000"}),e.jsx("span",{style:{fontSize:"12px"},children:"#FF0000"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"rgb(0, 102, 204)"}),e.jsx("span",{style:{fontSize:"12px"},children:"rgb(0, 102, 204)"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"#00AA00"}),e.jsx("span",{style:{fontSize:"12px"},children:"#00AA00"})]})]})]})]})},a={storyName:s("components.icon.stories.animations.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"24px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"loader",animation:"spin",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.spin")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"ping",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.ping")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"pulse",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.pulse")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"bounce",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.bounce")})]})]})},r={storyName:s("components.icon.stories.customSVGIcon.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L2 7v10l10 5 10-5V7l-10-5z"})})}),e.jsx(o,{size:32,color:"#4a90e2",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("circle",{cx:"12",cy:"12",r:"10"})})}),e.jsx(o,{size:48,color:"alias-object-primary",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})})]})},c={storyName:s("components.icon.stories.withSVGProps.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,title:"Information",titleId:"info-title",desc:"This is an information icon"}),e.jsx(o,{name:"placeholder",type:"fill",size:32,color:"alias-object-primary",title:"Custom Icon"})]})},p={storyName:s("components.icon.stories.completeExample.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:"Common Icons"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:24}),e.jsx(o,{name:"placeholder",type:"fill",size:24,color:"alias-object-primary"}),e.jsx(o,{name:"placeholder",size:24,color:"alias-support-positive"}),e.jsx(o,{name:"placeholder",size:24,color:"alias-support-negative"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:"Animated Icons"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"loader",animation:"spin",size:32,color:"alias-object-primary"}),e.jsx(o,{name:"placeholder",animation:"ping",size:32,color:"alias-support-positive"}),e.jsx(o,{name:"placeholder",animation:"pulse",size:32,color:"alias-support-negative"})]})]})]})},m={storyName:s("components.icon.stories.interactive.storyName"),args:{name:"placeholder",type:"outline",size:24}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
16
16
  storyName: t('components.icon.stories.default.storyName'),
17
17
  args: {
18
18
  name: 'placeholder'
@@ -362,4 +362,4 @@ import{j as e}from"./iframe-CQAwSt4E.js";import{T as y,S as g,M as d,P as f,a as
362
362
  type: 'outline',
363
363
  size: 24
364
364
  }
365
- }`,...m.parameters?.docs?.source}}};const T=["Default","IconTypes","Sizes","Colors","Animations","CustomSVGIcon","WithSVGProps","CompleteExample","Interactive"];export{a as Animations,l as Colors,p as CompleteExample,r as CustomSVGIcon,n as Default,i as IconTypes,m as Interactive,t as Sizes,c as WithSVGProps,T as __namedExportsOrder,$ as default};
365
+ }`,...m.parameters?.docs?.source}}};const $=["Default","IconTypes","Sizes","Colors","Animations","CustomSVGIcon","WithSVGProps","CompleteExample","Interactive"];export{a as Animations,l as Colors,p as CompleteExample,r as CustomSVGIcon,n as Default,i as IconTypes,m as Interactive,t as Sizes,c as WithSVGProps,$ as __namedExportsOrder,C as default};