@v-miniapp/ui-react 1.0.45 → 1.0.47

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 (121) hide show
  1. package/dist/components/app/types/app.d.ts +10 -0
  2. package/dist/components/app/utils/data-theme.d.ts +1 -2
  3. package/dist/components/carousel/index.d.ts +1 -0
  4. package/dist/external/index.js +3128 -3106
  5. package/dist/index.js +2438 -2416
  6. package/dist-storybook/assets/{ANIMATION-CUdn1GTK.js → ANIMATION-DLCDVwPI.js} +1 -1
  7. package/dist-storybook/assets/{APP_FRAMEWORK-ljbIOHYd.js → APP_FRAMEWORK-B9Mrudgl.js} +8 -8
  8. package/dist-storybook/assets/{BOTTOM_TAB_BAR-DxCwCfBK.js → BOTTOM_TAB_BAR-Bgfy-nnv.js} +1 -1
  9. package/dist-storybook/assets/{CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js → CUSTOM_ERROR_BOUNDARY-G_i_6aho.js} +1 -1
  10. package/dist-storybook/assets/{Color-AVL7NMMY-1_8XTICv.js → Color-AVL7NMMY-OD8SQvXt.js} +1 -1
  11. package/dist-storybook/assets/{DocsRenderer-PQXLIZUC-BO86igwd.js → DocsRenderer-PQXLIZUC-D8kbgtPd.js} +2 -2
  12. package/dist-storybook/assets/{GETTING_STARTED-H_vVi5cv.js → GETTING_STARTED-Bf6ENjZo.js} +1 -1
  13. package/dist-storybook/assets/{INFINITE_SCROLL-BtM3uoX0.js → INFINITE_SCROLL-O36i5W8i.js} +1 -1
  14. package/dist-storybook/assets/{KEEP_ALIVE-CL2au0al.js → KEEP_ALIVE-CicDtVw6.js} +1 -1
  15. package/dist-storybook/assets/{LOCALE-XTCey55y.js → LOCALE-D_43J3RD.js} +1 -1
  16. package/dist-storybook/assets/{MIGRATION_GUIDE-2LONslE4.js → MIGRATION_GUIDE-Dn2gFk5v.js} +3 -3
  17. package/dist-storybook/assets/{MOBILE_BEHAVIOURS-DZ6alKTX.js → MOBILE_BEHAVIOURS-D5jOxNiz.js} +1 -1
  18. package/dist-storybook/assets/{PAGE_LAYOUT-BuOpN-1Y.js → PAGE_LAYOUT-C0sW9iZo.js} +1 -1
  19. package/dist-storybook/assets/{ROUTING_NAVIGATION-BCPHXNto.js → ROUTING_NAVIGATION-Bpj_mu5r.js} +1 -1
  20. package/dist-storybook/assets/{TAILWIND_INTEGRATION-_T-VfvkM.js → TAILWIND_INTEGRATION-CVrohRXO.js} +1 -1
  21. package/dist-storybook/assets/THEME_MODE-Sc8cgznR.js +111 -0
  22. package/dist-storybook/assets/{_setToString-CbM921C9.js → _setToString-CjYxL0rS.js} +1 -1
  23. package/dist-storybook/assets/{alert-DLW8CoyB.js → alert-abKmNYys.js} +1 -1
  24. package/dist-storybook/assets/{alert.stories-B-vuojPh.js → alert.stories-XyvS4WTm.js} +1 -1
  25. package/dist-storybook/assets/{avatar-GxcYPA1p.js → avatar-B-jvPnzm.js} +1 -1
  26. package/dist-storybook/assets/{avatar.stories-KYFztAc8.js → avatar.stories-glTjw5Kd.js} +1 -1
  27. package/dist-storybook/assets/{axe-CmvD4WV5.js → axe-B8nlqekz.js} +1 -1
  28. package/dist-storybook/assets/{badge-D_LzMVtw.js → badge-Cc9u7jBX.js} +1 -1
  29. package/dist-storybook/assets/{badge.stories-Be2ItCmQ.js → badge.stories-CeNmmdtv.js} +1 -1
  30. package/dist-storybook/assets/{blocks-BuaOUtiH.js → blocks-CpOj9FQ_.js} +3 -3
  31. package/dist-storybook/assets/{bottom-tab-bar-CtcTAxuI.js → bottom-tab-bar-BsPd0FD7.js} +1 -1
  32. package/dist-storybook/assets/{bottom-tab-bar.stories-CDmEve6z.js → bottom-tab-bar.stories-BG1ee2eN.js} +1 -1
  33. package/dist-storybook/assets/{button-CL7GeC23.js → button-GtWXUngt.js} +1 -1
  34. package/dist-storybook/assets/{button.stories-CaqLWQiY.js → button.stories-3d_T0h_Z.js} +1 -1
  35. package/dist-storybook/assets/{calendar-dOCsjhVU.js → calendar-CJ5_NxYx.js} +1 -1
  36. package/dist-storybook/assets/{calendar.stories-DLWZldet.js → calendar.stories-DEleEKoa.js} +1 -1
  37. package/dist-storybook/assets/{carousel-1Kww3hIz.js → carousel-sbzGq2WF.js} +1 -1
  38. package/dist-storybook/assets/{carousel.stories-B8YbGOOr.js → carousel.stories-DY9nDa3M.js} +1 -1
  39. package/dist-storybook/assets/{checkbox-MGytNNRt.js → checkbox-CMpJJxvm.js} +1 -1
  40. package/dist-storybook/assets/{checkbox.stories-CLvfZPiw.js → checkbox.stories-BY8W9TRC.js} +1 -1
  41. package/dist-storybook/assets/{chip-kG4p82WT.js → chip-zY6gJxDk.js} +1 -1
  42. package/dist-storybook/assets/{chip.stories-BbwJb5eD.js → chip.stories-CXh30Tdq.js} +1 -1
  43. package/dist-storybook/assets/{classname-CUR_zgkh.js → classname-DoNrELT0.js} +1 -1
  44. package/dist-storybook/assets/{date-Cg-Uk_pp.js → date-Ci5dIit0.js} +1 -1
  45. package/dist-storybook/assets/{date-field.stories-Diptwqfv.js → date-field.stories-CerGwXZy.js} +1 -1
  46. package/dist-storybook/assets/{date-picker-Dnq_-0Md.js → date-picker-BCIW_1-h.js} +1 -1
  47. package/dist-storybook/assets/{date-picker.stories-BuGWvzFL.js → date-picker.stories-DUaL7sft.js} +1 -1
  48. package/dist-storybook/assets/{dialog.stories-DJ0WsSkA.js → dialog.stories-BtQMDA-1.js} +1 -1
  49. package/dist-storybook/assets/{dropdown.stories-D6JUYP73.js → dropdown.stories-DF69os0J.js} +1 -1
  50. package/dist-storybook/assets/{embla-carousel-react.esm-BYjpaHZ9.js → embla-carousel-react.esm-CCQjHA-d.js} +1 -1
  51. package/dist-storybook/assets/{icon-DdQsMyRa.js → icon-TJ3FHxUI.js} +1 -1
  52. package/dist-storybook/assets/{icon.stories-B-ZvRzFf.js → icon.stories-Ch36FMIn.js} +1 -1
  53. package/dist-storybook/assets/{iframe-CQAwSt4E.js → iframe-CLEfhyJc.js} +3 -3
  54. package/dist-storybook/assets/{image-C3EsNRhz.js → image-D6Yo4ht9.js} +1 -1
  55. package/dist-storybook/assets/{image.stories-C4l8D3ju.js → image.stories-CJPB43ys.js} +1 -1
  56. package/dist-storybook/assets/{index-CgMRTj-o.js → index-7xlKHfV2.js} +1 -1
  57. package/dist-storybook/assets/{index-DHiZ-gXR.js → index-CaMbLGUB.js} +1 -1
  58. package/dist-storybook/assets/{index-BV0AJWP6.js → index-DRIh_SUo.js} +1 -1
  59. package/dist-storybook/assets/{input-wrapper-BKHgnPy6.js → input-wrapper-D_9hAdHZ.js} +1 -1
  60. package/dist-storybook/assets/{label-DV2iCDmN.js → label-fI1oWVKU.js} +1 -1
  61. package/dist-storybook/assets/{label.stories-BwTIPFXX.js → label.stories-C3xDUHd-.js} +1 -1
  62. package/dist-storybook/assets/{navigation-bar-vI-FPasP.js → navigation-bar-CiGSH7u8.js} +2 -2
  63. package/dist-storybook/assets/{navigation-bar.stories-DYuFaJFD.js → navigation-bar.stories-BvGp7uJf.js} +1 -1
  64. package/dist-storybook/assets/{number-field-CXKmnfKe.js → number-field-DNj4myBV.js} +1 -1
  65. package/dist-storybook/assets/{number-field.stories--fn26TJu.js → number-field.stories-B_Bj8RqE.js} +1 -1
  66. package/dist-storybook/assets/{omit-Bsx5nTI0.js → omit-CStFhbPt.js} +1 -1
  67. package/dist-storybook/assets/{option-item-LRh_OyV4.js → option-item-BloohEvW.js} +1 -1
  68. package/dist-storybook/assets/{option-item.stories-snjAvgay.js → option-item.stories-BjtolfPz.js} +1 -1
  69. package/dist-storybook/assets/{pagination-DZHoBs_4.js → pagination-Dcazh6R_.js} +1 -1
  70. package/dist-storybook/assets/{pagination.stories-BoEs0jzS.js → pagination.stories-CrGsYeRw.js} +1 -1
  71. package/dist-storybook/assets/{pick-BhmhLmLe.js → pick-DbIUGM9R.js} +1 -1
  72. package/dist-storybook/assets/{radio-B5NJxG_l.js → radio-t2E8E0Oc.js} +1 -1
  73. package/dist-storybook/assets/{radio.stories-DuN-Awi_.js → radio.stories-BEG-zTwI.js} +1 -1
  74. package/dist-storybook/assets/{rating-BdXViYBv.js → rating-DsULci27.js} +1 -1
  75. package/dist-storybook/assets/{rating.stories-BCcQjMEx.js → rating.stories-Dwk8Ov3Q.js} +1 -1
  76. package/dist-storybook/assets/{react-18-CNyWQ7je.js → react-18-4mLDkQmf.js} +1 -1
  77. package/dist-storybook/assets/{react-hufnxGVs.js → react-mAVd1wAc.js} +1 -1
  78. package/dist-storybook/assets/{search-field-CQqgFbfg.js → search-field-CuiHMy7j.js} +1 -1
  79. package/dist-storybook/assets/{search-field.stories-DiCZbhng.js → search-field.stories-BnsT36yY.js} +1 -1
  80. package/dist-storybook/assets/{section-content-DGNB4eLN.js → section-content-pkGNuEs6.js} +1 -1
  81. package/dist-storybook/assets/{section.stories-C2I_kKhu.js → section.stories-B5IhLkbG.js} +1 -1
  82. package/dist-storybook/assets/{sheet.stories-wk1JaKU5.js → sheet.stories-COzxyiqj.js} +1 -1
  83. package/dist-storybook/assets/{skeleton-C91JgehG.js → skeleton-Dn8rwbgX.js} +1 -1
  84. package/dist-storybook/assets/{skeleton.stories-BCmX-VNr.js → skeleton.stories-B71MlMyi.js} +1 -1
  85. package/dist-storybook/assets/{store-CPumdfcU.js → store-DxAqU1JB.js} +1 -1
  86. package/dist-storybook/assets/{switch-p-aXI-ev.js → switch-BziC1t_8.js} +1 -1
  87. package/dist-storybook/assets/{switch.stories-BqPLNKB9.js → switch.stories-DMBBwZef.js} +1 -1
  88. package/dist-storybook/assets/{tab-bar-CSeCmtIZ.js → tab-bar-DZ3oOU50.js} +1 -1
  89. package/dist-storybook/assets/{tab-bar.stories-Cb6v8H2w.js → tab-bar.stories-Bp9w6nc3.js} +1 -1
  90. package/dist-storybook/assets/{text-area-DwSXyqOe.js → text-area-CAmJ2yms.js} +1 -1
  91. package/dist-storybook/assets/{text-area.stories-By8bCfgc.js → text-area.stories-BZ3HXtij.js} +1 -1
  92. package/dist-storybook/assets/{text-field-jK6rpOo2.js → text-field-CjrgfYOZ.js} +1 -1
  93. package/dist-storybook/assets/{text-field.stories-CrWBAhvI.js → text-field.stories-vSXYvs0U.js} +1 -1
  94. package/dist-storybook/assets/{toast-provider-DurnMJhd.js → toast-provider-B9k1NBG6.js} +1 -1
  95. package/dist-storybook/assets/{toast.stories-iWAToAZA.js → toast.stories-DQKbk7dO.js} +1 -1
  96. package/dist-storybook/assets/{tooltip-QDdel5My.js → tooltip-VnA8Hy0S.js} +1 -1
  97. package/dist-storybook/assets/{tooltip.stories-RC6SuPPD.js → tooltip.stories-wuthZ3Sv.js} +1 -1
  98. package/dist-storybook/assets/{typography-DEpAJl_i.js → typography-DoV67nnS.js} +1 -1
  99. package/dist-storybook/assets/{typography.stories-Bu8qFugR.js → typography.stories-DD9HLY16.js} +1 -1
  100. package/dist-storybook/assets/{uploader.stories-B2wW9qVy.js → uploader.stories-sModULvT.js} +1 -1
  101. package/dist-storybook/assets/{use-app-pause-B_tWHKJK.js → use-app-pause-BQYQ2_kc.js} +1 -1
  102. package/dist-storybook/assets/{use-app-resume--900G-dV.js → use-app-resume-BHDCAORn.js} +1 -1
  103. package/dist-storybook/assets/{use-custom-icon-event-3VExRzvC.js → use-custom-icon-event-BCGSFwaE.js} +1 -1
  104. package/dist-storybook/assets/{use-did-hide-BUsL73ab.js → use-did-hide-Cosc0Bts.js} +1 -1
  105. package/dist-storybook/assets/{use-did-show-C1-VLDxi.js → use-did-show-CTWe5NYk.js} +1 -1
  106. package/dist-storybook/assets/{use-histories-E4E2jJEY.js → use-histories-CAcE6nVz.js} +1 -1
  107. package/dist-storybook/assets/{use-history-o1im8IDj.js → use-history-FuEbPpap.js} +1 -1
  108. package/dist-storybook/assets/{use-location-CUEaBO4P.js → use-location-CdUC1tic.js} +1 -1
  109. package/dist-storybook/assets/{use-navigate-C4CTuFSZ.js → use-navigate-DP9paY1K.js} +1 -1
  110. package/dist-storybook/assets/{use-navigation-type-Dcz4hgKo.js → use-navigation-type-BWVxMUtZ.js} +1 -1
  111. package/dist-storybook/assets/{use-page-config-DSJBVQbq.js → use-page-config-5u8OF-8L.js} +1 -1
  112. package/dist-storybook/assets/{use-page-scroll-dY-U1Vv4.js → use-page-scroll-nPQcBn5B.js} +1 -1
  113. package/dist-storybook/assets/{use-page-state-CtNpwGPN.js → use-page-state-CULl52gw.js} +1 -1
  114. package/dist-storybook/assets/{use-settings-changed-BBJwIHTE.js → use-settings-changed-2GP5ZsJS.js} +1 -1
  115. package/dist-storybook/assets/{visibility-sensor-CwrzJO06.js → visibility-sensor-huP-8j4n.js} +1 -1
  116. package/dist-storybook/iframe.html +1 -1
  117. package/dist-storybook/index.json +1 -1
  118. package/dist-storybook/project.json +1 -1
  119. package/dist-storybook/stories-data.json +6 -6
  120. package/package.json +1 -1
  121. package/dist-storybook/assets/DARK_MODE-CoHseCDO.js +0 -57
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-CQAwSt4E.js";import{T as y,S as x,M as u,P as h,a as g}from"./blocks-BuaOUtiH.js";import{B as o}from"./button-CL7GeC23.js";import{t}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DHiZ-gXR.js";import"./icon-DdQsMyRa.js";import"./colors-_6nFGM3e.js";import"./classname-CUR_zgkh.js";import"./typography-DEpAJl_i.js";const f=()=>{const b=`
1
+ import{j as e}from"./iframe-CLEfhyJc.js";import{T as y,S as x,M as u,P as h,a as g}from"./blocks-CpOj9FQ_.js";import{B as o}from"./button-GtWXUngt.js";import{t}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./classname-DoNrELT0.js";import"./typography-DoV67nnS.js";const f=()=>{const b=`
2
2
  ## ${t("common.table.title")}
3
3
 
4
4
  | ${t("common.table.name")} | ${t("common.table.type")} | ${t("common.table.required")} | ${t("common.table.description")} |
@@ -1 +1 @@
1
- import{r as b,j as e}from"./iframe-CQAwSt4E.js";import{c as i,g as ye}from"./classname-CUR_zgkh.js";import{d as w}from"./date-Cg-Uk_pp.js";import{I as E}from"./icon-DdQsMyRa.js";import{B as A}from"./button-CL7GeC23.js";import{T as m}from"./typography-DEpAJl_i.js";import{u as ge}from"./index-BV0AJWP6.js";import{u as ee}from"./store-CPumdfcU.js";class we{getNumDaysInMonth(t,o){return new Date(o,t+1,0).getDate()}isSame(t,o){return w(t).isSame(w(o),"day")}isBefore(t,o){return w(t).isBefore(w(o),"day")}isAfter(t,o){return w(t).isAfter(w(o),"day")}isSameOrBefore(t,o){return w(t).isSameOrBefore(w(o),"day")}isSameOrAfter(t,o){return w(t).isSameOrAfter(w(o),"day")}}const x=new we,ce=(n,t,o)=>{const y=ee.getState().translate;return y(n,t,o)};function Ce(){const n=ee(y=>y.language),t=ee(y=>y.systemLanguage),o=ee(y=>y.setLanguage);return{language:n,systemLanguage:t,setLanguage:o}}const Se=n=>({date:t=>t.getDate(),headerLabel:(t,o)=>ce("calendar.headerLabel",{month:ce(`calendar.monthLabel[${t}]`,void 0,n),year:o},n),weekday:t=>ce(`calendar.weekdayLabel[${t}]`,void 0,n)}),xe=(n,t)=>({...t,...Se(n==="en"?"en":"vi")}),be=ye("calendar"),l=be+"-single-picker",pe=new Date(1900,0,1),ze=new Date(2099,11,31),Ie=n=>{const t={};return n.defaultValue!==void 0&&(t.defaultValue=n.defaultValue),n.value!==void 0&&(t.value=n.value),n.onChange!==void 0&&(t.onChange=n.onChange),t},$e=n=>{const{className:t,renderText:o,lang:y,navigationMode:C="month-year",defaultValue:Me,onChange:De,value:S,minDate:F=pe,maxDate:V=ze,...U}=n,[z,W]=ge(Ie(n)),te=xe(y,o),{date:N,dateSubText:h,headerLabel:$,weekday:R}=te,T=new Date,[d,I]=b.useState(()=>z?z.getMonth():T.getMonth()),[c,p]=b.useState(()=>z?z.getFullYear():T.getFullYear()),Y=(new Date(c,d,1).getDay()+6)%7,f=x.getNumDaysInMonth(d,c),K=Y+f,u=Math.ceil(K/7),L=V.getMonth(),M=V.getFullYear(),q=F.getMonth(),G=F.getFullYear(),Q=c<M||c===M&&d<L,H=c>G||c===G&&d>q,O=c<M||c+1===M&&d<=L,X=c>G||c-1===G&&d>=q,v=b.useMemo(()=>{if(!H)return null;let g=c,s=d-1;return s<0&&(g--,s=11),{month:s,year:g}},[d,H,c]),D=b.useMemo(()=>{if(!Q)return null;let g=c,s=d+1;return s>11&&(g++,s=0),{month:s,year:g}},[d,Q,c]),J=b.useMemo(()=>v?x.getNumDaysInMonth(v.month,v.year):null,[v]),ne=b.useMemo(()=>D?x.getNumDaysInMonth(D.month,D.year):null,[D]),ae=g=>{const s=new Date(c,d,g);return x.isSameOrAfter(s,F)&&x.isSameOrBefore(s,V)};return e.jsxs("div",{className:i(be,l,t),...U,children:[e.jsxs("div",{className:`${l}__header`,children:[C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!X,onClick:()=>{X&&p(c-1)},children:e.jsx(E,{size:20,name:"double-chevron-left"})}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!H,onClick:()=>{v&&(I(v.month),p(v.year))},children:e.jsx(E,{size:20,name:"chevron-left"})}),e.jsx(m,{className:`${l}__header-label`,children:typeof $=="function"?$?.(d,c):$}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!Q,onClick:()=>{D&&(I(D.month),p(D.year))},children:e.jsx(E,{size:20,name:"chevron-right"})}),C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!O,onClick:()=>{O&&p(c+1)},children:e.jsx(E,{size:20,name:"double-chevron-right"})})]}),e.jsx("div",{children:e.jsxs("div",{className:`${l}__grid`,children:[Array.from({length:7},(g,s)=>{const B=(s+1)%7;return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsx("div",{className:i(`${l}__cell`,`${l}__cell-week`),children:e.jsx(m,{color:"alias-object-secondary",children:typeof R=="function"?R(B):R})})})}),Array.from({length:u*7},(g,s)=>{if(s<Y){if(!J)return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:"null"})},s);const j=J-Y+s+1,r=new Date(c,d,j);return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:[typeof N=="function"?N(r):N,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(r):h})]})},s)}if(s>=Y+f){if(!ne)return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:"null"})},s);const j=s-(Y+f)+1,r=new Date(c,d,j);return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:[typeof N=="function"?N(r):N,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(r):h})]})},s)}const B=s-Y+1,P=new Date(c,d,B),le=!ae(B);return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",onClick:()=>{!P||le||W(P)},className:i(`${l}__cell`,`${l}__cell-day`,{[`${l}__cell-day--disabled`]:le,[`${l}__cell-day--today`]:x.isSame(P,T),[`${l}__cell-day--selected`]:z&&x.isSame(P,z)}),children:[typeof N=="function"?N(P):N,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(P):h})]})},s)})]})})]})};$e.__docgenInfo={description:"",methods:[],displayName:"SinglePicker"};const je=ye("calendar"),a=je+"-range-picker",Ye=new Date(1900,0,1),Le=new Date(2099,11,31),Pe=n=>{const t={};return(n.defaultValue!==void 0||n.defaultValue===null)&&(t.defaultValue=n.defaultValue),(n.value!==void 0||n.value===null)&&(t.value=n.value),n.onChange!==void 0&&(t.onChange=n.onChange),t},me=n=>{const t=new Date;if(n){const[o,y]=n;return o?o.getMonth():y?y.getMonth():t.getMonth()}return t.getMonth()},he=n=>{const t=new Date;if(n){const[o,y]=n;return o?o.getFullYear():y?y.getFullYear():t.getFullYear()}return t.getFullYear()},fe=n=>{if(!n)return null;const[t]=n;return t},_e=n=>{if(!n)return null;const[,t]=n;return t},ve=n=>{const{className:t,renderText:o,lang:y,navigationMode:C="month-year",defaultValue:Me,onChange:De,value:S,minDate:F=Ye,maxDate:V=Le,onPick:U,...z}=n,[W,te]=ge(Pe(n)),N=xe(y,o),{date:h,dateSubText:$,headerLabel:R,weekday:T}=N,[d,I]=b.useState(fe(W)),[c,p]=b.useState(_e(W)),Y=new Date,[f,K]=b.useState(me(W)),[u,L]=b.useState(he(W)),M=(new Date(u,f,1).getDay()+6)%7,q=x.getNumDaysInMonth(f,u),G=M+q,Q=Math.ceil(G/7),H=V.getMonth(),O=V.getFullYear(),X=F.getMonth(),v=F.getFullYear(),D=u<O||u===O&&f<H,J=u>v||u===v&&f>X,ne=u<O||u+1===O&&f<=H,ae=u>v||u-1===v&&f>=X,g=b.useMemo(()=>{if(!J)return null;let j=u,r=f-1;return r<0&&(j--,r=11),{month:r,year:j}},[f,J,u]),s=b.useMemo(()=>{if(!D)return null;let j=u,r=f+1;return r>11&&(j++,r=0),{month:r,year:j}},[f,D,u]),B=b.useMemo(()=>g?x.getNumDaysInMonth(g.month,g.year):null,[g]),P=b.useMemo(()=>s?x.getNumDaysInMonth(s.month,s.year):null,[s]),le=j=>{const r=new Date(u,f,j);return x.isSameOrAfter(r,F)&&x.isSameOrBefore(r,V)};return b.useEffect(()=>{S!=null&&(K(me(S)),L(he(S)))},[S?.[0]?.getTime()]),b.useEffect(()=>{S!=null&&(I(fe(S)),p(_e(S)))},[S]),e.jsxs("div",{className:i(je,a,t),...z,children:[e.jsxs("div",{className:`${a}__header`,children:[C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!ae,onClick:()=>{ae&&L(u-1)},children:e.jsx(E,{size:20,name:"double-chevron-left"})}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!J,onClick:()=>{g&&(K(g.month),L(g.year))},children:e.jsx(E,{size:20,name:"chevron-left"})}),e.jsx(m,{className:`${a}__header-label`,children:typeof R=="function"?R?.(f,u):R}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!D,onClick:()=>{s&&(K(s.month),L(s.year))},children:e.jsx(E,{size:20,name:"chevron-right"})}),C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!ne,onClick:()=>{ne&&L(u+1)},children:e.jsx(E,{size:20,name:"double-chevron-right"})})]}),e.jsx("div",{children:e.jsxs("div",{className:`${a}__grid`,children:[Array.from({length:7},(j,r)=>{const se=(r+1)%7;return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsx("div",{className:i(`${a}__cell`,`${a}__cell-week`),children:e.jsx(m,{color:"alias-object-secondary",children:typeof T=="function"?T(se):T})})})}),Array.from({length:Q*7},(j,r)=>{if(r<M){if(!B)return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:"null"})},r);const k=B-M+r+1,Z=new Date(u,f,k);return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:[typeof h=="function"?h(Z):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof $=="function"?$(Z):$})]})},r)}if(r>=M+q){if(!P)return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:"null"})},r);const k=r-(M+q)+1,Z=new Date(u,f,k);return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:[typeof h=="function"?h(Z):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof $=="function"?$(Z):$})]})},r)}const se=r%7===6,ke=r%7===0,ie=r-M+1,_=new Date(u,f,ie),de=!le(ie),re=d&&x.isSame(_,d),oe=c&&x.isSame(_,c),ue=(function(){return d&&c?x.isSameOrAfter(_,d)&&x.isSameOrBefore(_,c):!1})();return e.jsxs("div",{className:i(`${a}__cell-container`),children:[ue&&e.jsx("div",{className:i(`${a}__cell-range-background`,{[`${a}__cell-range-background-start`]:re,[`${a}__cell-range-background-end`]:oe,[`${a}__cell-range-background-start-end-row`]:re&&se,[`${a}__cell-range-background-end-start-row`]:oe&&ke})}),e.jsxs(m,{size:"base",role:"button",onClick:()=>{if(de)return;if(d&&c){I(_),p(null),U?.([_,null]);return}if(!d&&!c){I(_),U?.([_,null]);return}const k=d||c;if(_<k){I(_),p(k),te?.([_,k]),U?.([_,k]);return}I(k),p(_),te?.([k,_]),U?.([k,_])},className:i(`${a}__cell`,`${a}__cell-day`,{[`${a}__cell-day--disabled`]:de,[`${a}__cell-day--today`]:x.isSame(_,Y),[`${a}__cell-day--in-range-picker`]:ue,[`${a}__cell-day--selected`]:re||oe}),children:[typeof h=="function"?h(_):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof $=="function"?$(_):$})]})]},r)})]})})]})};ve.__docgenInfo={description:"",methods:[],displayName:"RangePicker"};const Ee=()=>ee(t=>t.initialized),Ne=({type:n="single",...t})=>n==="single"?e.jsx($e,{...t}):e.jsx(ve,{...t}),Ae=({lang:n,...t})=>{const{language:o}=Ce();return e.jsx(Ne,{lang:n||o,...t})},Fe=n=>Ee()?e.jsx(Ne,{...n}):e.jsx(Ae,{...n});Fe.__docgenInfo={description:"",methods:[],displayName:"Calendar"};export{Fe as C};
1
+ import{r as b,j as e}from"./iframe-CLEfhyJc.js";import{c as i,g as ye}from"./classname-DoNrELT0.js";import{d as w}from"./date-Ci5dIit0.js";import{I as E}from"./icon-TJ3FHxUI.js";import{B as A}from"./button-GtWXUngt.js";import{T as m}from"./typography-DoV67nnS.js";import{u as ge}from"./index-DRIh_SUo.js";import{u as ee}from"./store-DxAqU1JB.js";class we{getNumDaysInMonth(t,o){return new Date(o,t+1,0).getDate()}isSame(t,o){return w(t).isSame(w(o),"day")}isBefore(t,o){return w(t).isBefore(w(o),"day")}isAfter(t,o){return w(t).isAfter(w(o),"day")}isSameOrBefore(t,o){return w(t).isSameOrBefore(w(o),"day")}isSameOrAfter(t,o){return w(t).isSameOrAfter(w(o),"day")}}const x=new we,ce=(n,t,o)=>{const y=ee.getState().translate;return y(n,t,o)};function Ce(){const n=ee(y=>y.language),t=ee(y=>y.systemLanguage),o=ee(y=>y.setLanguage);return{language:n,systemLanguage:t,setLanguage:o}}const Se=n=>({date:t=>t.getDate(),headerLabel:(t,o)=>ce("calendar.headerLabel",{month:ce(`calendar.monthLabel[${t}]`,void 0,n),year:o},n),weekday:t=>ce(`calendar.weekdayLabel[${t}]`,void 0,n)}),xe=(n,t)=>({...t,...Se(n==="en"?"en":"vi")}),be=ye("calendar"),l=be+"-single-picker",pe=new Date(1900,0,1),ze=new Date(2099,11,31),Ie=n=>{const t={};return n.defaultValue!==void 0&&(t.defaultValue=n.defaultValue),n.value!==void 0&&(t.value=n.value),n.onChange!==void 0&&(t.onChange=n.onChange),t},$e=n=>{const{className:t,renderText:o,lang:y,navigationMode:C="month-year",defaultValue:Me,onChange:De,value:S,minDate:F=pe,maxDate:V=ze,...U}=n,[z,W]=ge(Ie(n)),te=xe(y,o),{date:N,dateSubText:h,headerLabel:$,weekday:R}=te,T=new Date,[d,I]=b.useState(()=>z?z.getMonth():T.getMonth()),[c,p]=b.useState(()=>z?z.getFullYear():T.getFullYear()),Y=(new Date(c,d,1).getDay()+6)%7,f=x.getNumDaysInMonth(d,c),K=Y+f,u=Math.ceil(K/7),L=V.getMonth(),M=V.getFullYear(),q=F.getMonth(),G=F.getFullYear(),Q=c<M||c===M&&d<L,H=c>G||c===G&&d>q,O=c<M||c+1===M&&d<=L,X=c>G||c-1===G&&d>=q,v=b.useMemo(()=>{if(!H)return null;let g=c,s=d-1;return s<0&&(g--,s=11),{month:s,year:g}},[d,H,c]),D=b.useMemo(()=>{if(!Q)return null;let g=c,s=d+1;return s>11&&(g++,s=0),{month:s,year:g}},[d,Q,c]),J=b.useMemo(()=>v?x.getNumDaysInMonth(v.month,v.year):null,[v]),ne=b.useMemo(()=>D?x.getNumDaysInMonth(D.month,D.year):null,[D]),ae=g=>{const s=new Date(c,d,g);return x.isSameOrAfter(s,F)&&x.isSameOrBefore(s,V)};return e.jsxs("div",{className:i(be,l,t),...U,children:[e.jsxs("div",{className:`${l}__header`,children:[C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!X,onClick:()=>{X&&p(c-1)},children:e.jsx(E,{size:20,name:"double-chevron-left"})}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!H,onClick:()=>{v&&(I(v.month),p(v.year))},children:e.jsx(E,{size:20,name:"chevron-left"})}),e.jsx(m,{className:`${l}__header-label`,children:typeof $=="function"?$?.(d,c):$}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!Q,onClick:()=>{D&&(I(D.month),p(D.year))},children:e.jsx(E,{size:20,name:"chevron-right"})}),C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!O,onClick:()=>{O&&p(c+1)},children:e.jsx(E,{size:20,name:"double-chevron-right"})})]}),e.jsx("div",{children:e.jsxs("div",{className:`${l}__grid`,children:[Array.from({length:7},(g,s)=>{const B=(s+1)%7;return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsx("div",{className:i(`${l}__cell`,`${l}__cell-week`),children:e.jsx(m,{color:"alias-object-secondary",children:typeof R=="function"?R(B):R})})})}),Array.from({length:u*7},(g,s)=>{if(s<Y){if(!J)return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:"null"})},s);const j=J-Y+s+1,r=new Date(c,d,j);return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:[typeof N=="function"?N(r):N,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(r):h})]})},s)}if(s>=Y+f){if(!ne)return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:"null"})},s);const j=s-(Y+f)+1,r=new Date(c,d,j);return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:[typeof N=="function"?N(r):N,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(r):h})]})},s)}const B=s-Y+1,P=new Date(c,d,B),le=!ae(B);return e.jsx("div",{className:i(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",onClick:()=>{!P||le||W(P)},className:i(`${l}__cell`,`${l}__cell-day`,{[`${l}__cell-day--disabled`]:le,[`${l}__cell-day--today`]:x.isSame(P,T),[`${l}__cell-day--selected`]:z&&x.isSame(P,z)}),children:[typeof N=="function"?N(P):N,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(P):h})]})},s)})]})})]})};$e.__docgenInfo={description:"",methods:[],displayName:"SinglePicker"};const je=ye("calendar"),a=je+"-range-picker",Ye=new Date(1900,0,1),Le=new Date(2099,11,31),Pe=n=>{const t={};return(n.defaultValue!==void 0||n.defaultValue===null)&&(t.defaultValue=n.defaultValue),(n.value!==void 0||n.value===null)&&(t.value=n.value),n.onChange!==void 0&&(t.onChange=n.onChange),t},me=n=>{const t=new Date;if(n){const[o,y]=n;return o?o.getMonth():y?y.getMonth():t.getMonth()}return t.getMonth()},he=n=>{const t=new Date;if(n){const[o,y]=n;return o?o.getFullYear():y?y.getFullYear():t.getFullYear()}return t.getFullYear()},fe=n=>{if(!n)return null;const[t]=n;return t},_e=n=>{if(!n)return null;const[,t]=n;return t},ve=n=>{const{className:t,renderText:o,lang:y,navigationMode:C="month-year",defaultValue:Me,onChange:De,value:S,minDate:F=Ye,maxDate:V=Le,onPick:U,...z}=n,[W,te]=ge(Pe(n)),N=xe(y,o),{date:h,dateSubText:$,headerLabel:R,weekday:T}=N,[d,I]=b.useState(fe(W)),[c,p]=b.useState(_e(W)),Y=new Date,[f,K]=b.useState(me(W)),[u,L]=b.useState(he(W)),M=(new Date(u,f,1).getDay()+6)%7,q=x.getNumDaysInMonth(f,u),G=M+q,Q=Math.ceil(G/7),H=V.getMonth(),O=V.getFullYear(),X=F.getMonth(),v=F.getFullYear(),D=u<O||u===O&&f<H,J=u>v||u===v&&f>X,ne=u<O||u+1===O&&f<=H,ae=u>v||u-1===v&&f>=X,g=b.useMemo(()=>{if(!J)return null;let j=u,r=f-1;return r<0&&(j--,r=11),{month:r,year:j}},[f,J,u]),s=b.useMemo(()=>{if(!D)return null;let j=u,r=f+1;return r>11&&(j++,r=0),{month:r,year:j}},[f,D,u]),B=b.useMemo(()=>g?x.getNumDaysInMonth(g.month,g.year):null,[g]),P=b.useMemo(()=>s?x.getNumDaysInMonth(s.month,s.year):null,[s]),le=j=>{const r=new Date(u,f,j);return x.isSameOrAfter(r,F)&&x.isSameOrBefore(r,V)};return b.useEffect(()=>{S!=null&&(K(me(S)),L(he(S)))},[S?.[0]?.getTime()]),b.useEffect(()=>{S!=null&&(I(fe(S)),p(_e(S)))},[S]),e.jsxs("div",{className:i(je,a,t),...z,children:[e.jsxs("div",{className:`${a}__header`,children:[C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!ae,onClick:()=>{ae&&L(u-1)},children:e.jsx(E,{size:20,name:"double-chevron-left"})}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!J,onClick:()=>{g&&(K(g.month),L(g.year))},children:e.jsx(E,{size:20,name:"chevron-left"})}),e.jsx(m,{className:`${a}__header-label`,children:typeof R=="function"?R?.(f,u):R}),C!=="time-only"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!D,onClick:()=>{s&&(K(s.month),L(s.year))},children:e.jsx(E,{size:20,name:"chevron-right"})}),C==="month-year"&&e.jsx(A,{type:"ghost",theme:"neutral",disabled:!ne,onClick:()=>{ne&&L(u+1)},children:e.jsx(E,{size:20,name:"double-chevron-right"})})]}),e.jsx("div",{children:e.jsxs("div",{className:`${a}__grid`,children:[Array.from({length:7},(j,r)=>{const se=(r+1)%7;return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsx("div",{className:i(`${a}__cell`,`${a}__cell-week`),children:e.jsx(m,{color:"alias-object-secondary",children:typeof T=="function"?T(se):T})})})}),Array.from({length:Q*7},(j,r)=>{if(r<M){if(!B)return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:"null"})},r);const k=B-M+r+1,Z=new Date(u,f,k);return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:[typeof h=="function"?h(Z):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof $=="function"?$(Z):$})]})},r)}if(r>=M+q){if(!P)return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:"null"})},r);const k=r-(M+q)+1,Z=new Date(u,f,k);return e.jsx("div",{className:i(`${a}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:i(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:[typeof h=="function"?h(Z):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof $=="function"?$(Z):$})]})},r)}const se=r%7===6,ke=r%7===0,ie=r-M+1,_=new Date(u,f,ie),de=!le(ie),re=d&&x.isSame(_,d),oe=c&&x.isSame(_,c),ue=(function(){return d&&c?x.isSameOrAfter(_,d)&&x.isSameOrBefore(_,c):!1})();return e.jsxs("div",{className:i(`${a}__cell-container`),children:[ue&&e.jsx("div",{className:i(`${a}__cell-range-background`,{[`${a}__cell-range-background-start`]:re,[`${a}__cell-range-background-end`]:oe,[`${a}__cell-range-background-start-end-row`]:re&&se,[`${a}__cell-range-background-end-start-row`]:oe&&ke})}),e.jsxs(m,{size:"base",role:"button",onClick:()=>{if(de)return;if(d&&c){I(_),p(null),U?.([_,null]);return}if(!d&&!c){I(_),U?.([_,null]);return}const k=d||c;if(_<k){I(_),p(k),te?.([_,k]),U?.([_,k]);return}I(k),p(_),te?.([k,_]),U?.([k,_])},className:i(`${a}__cell`,`${a}__cell-day`,{[`${a}__cell-day--disabled`]:de,[`${a}__cell-day--today`]:x.isSame(_,Y),[`${a}__cell-day--in-range-picker`]:ue,[`${a}__cell-day--selected`]:re||oe}),children:[typeof h=="function"?h(_):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof $=="function"?$(_):$})]})]},r)})]})})]})};ve.__docgenInfo={description:"",methods:[],displayName:"RangePicker"};const Ee=()=>ee(t=>t.initialized),Ne=({type:n="single",...t})=>n==="single"?e.jsx($e,{...t}):e.jsx(ve,{...t}),Ae=({lang:n,...t})=>{const{language:o}=Ce();return e.jsx(Ne,{lang:n||o,...t})},Fe=n=>Ee()?e.jsx(Ne,{...n}):e.jsx(Ae,{...n});Fe.__docgenInfo={description:"",methods:[],displayName:"Calendar"};export{Fe as C};
@@ -1,4 +1,4 @@
1
- import{j as t,r as D}from"./iframe-CQAwSt4E.js";import{C as r}from"./calendar-dOCsjhVU.js";import{t as e}from"./store-D2RudmNr.js";import{T as f,S as w,M as b,P as S,a as C}from"./blocks-BuaOUtiH.js";import"./preload-helper-PPVm8Dsz.js";import"./classname-CUR_zgkh.js";import"./date-Cg-Uk_pp.js";import"./icon-DdQsMyRa.js";import"./colors-_6nFGM3e.js";import"./button-CL7GeC23.js";import"./typography-DEpAJl_i.js";import"./index-BV0AJWP6.js";import"./index-B-Ksafg0.js";import"./store-CPumdfcU.js";import"./_setToString-CbM921C9.js";import"./react-hufnxGVs.js";import"./index-DHiZ-gXR.js";const c=new Date;c.setDate(c.getDate()+1);const x=new Date;x.setDate(x.getDate()+4);const N=()=>{const n=`
1
+ import{j as t,r as D}from"./iframe-CLEfhyJc.js";import{C as r}from"./calendar-CJ5_NxYx.js";import{t as e}from"./store-D2RudmNr.js";import{T as f,S as w,M as b,P as S,a as C}from"./blocks-CpOj9FQ_.js";import"./preload-helper-PPVm8Dsz.js";import"./classname-DoNrELT0.js";import"./date-Ci5dIit0.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./button-GtWXUngt.js";import"./typography-DoV67nnS.js";import"./index-DRIh_SUo.js";import"./index-B-Ksafg0.js";import"./store-DxAqU1JB.js";import"./_setToString-CjYxL0rS.js";import"./react-mAVd1wAc.js";import"./index-CaMbLGUB.js";const c=new Date;c.setDate(c.getDate()+1);const x=new Date;x.setDate(x.getDate()+4);const N=()=>{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")} |
@@ -1,4 +1,4 @@
1
- import{r as u,j as I}from"./iframe-CQAwSt4E.js";import{c as R,g as z}from"./classname-CUR_zgkh.js";import{u as B}from"./embla-carousel-react.esm-BYjpaHZ9.js";import{P as G}from"./pagination-DZHoBs_4.js";const J={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function K(a,e){const n=a.scrollSnapList();return typeof e=="number"?n.map(()=>e):e(n,a)}function Q(a,e){const n=a.rootNode();return e&&e(n)||n}function H(a={}){let e,n,s,f,p=null,l=0,o=!1,g=!1,t=!1,i=!1;function y(r,x){n=r;const{mergeOptions:q,optionsAtMedia:D}=x,U=q(J,H.globalOptions),$=q(U,a);if(e=D($),n.scrollSnapList().length<=1)return;i=e.jump,s=!1,f=K(n,e.delay);const{eventStore:C,ownerDocument:W}=n.internalEngine(),_=!!n.internalEngine().options.watchDrag,L=Q(n,e.rootNode);C.add(W,"visibilitychange",j),_&&n.on("pointerDown",w),_&&!e.stopOnInteraction&&n.on("pointerUp",S),e.stopOnMouseEnter&&C.add(L,"mouseenter",E),e.stopOnMouseEnter&&!e.stopOnInteraction&&C.add(L,"mouseleave",T),e.stopOnFocusIn&&n.on("slideFocusStart",d),e.stopOnFocusIn&&!e.stopOnInteraction&&C.add(n.containerNode(),"focusout",m),e.playOnInit&&m()}function c(){n.off("pointerDown",w).off("pointerUp",S).off("slideFocusStart",d),d(),s=!0,o=!1}function O(){const{ownerWindow:r}=n.internalEngine();r.clearTimeout(l),l=r.setTimeout(F,f[n.selectedScrollSnap()]),p=new Date().getTime(),n.emit("autoplay:timerset")}function h(){const{ownerWindow:r}=n.internalEngine();r.clearTimeout(l),l=0,p=null,n.emit("autoplay:timerstopped")}function m(){if(!s){if(k()){t=!0;return}o||n.emit("autoplay:play"),O(),o=!0}}function d(){s||(o&&n.emit("autoplay:stop"),h(),o=!1)}function j(){if(k())return t=o,d();t&&m()}function k(){const{ownerDocument:r}=n.internalEngine();return r.visibilityState==="hidden"}function w(){g||d()}function S(){g||m()}function E(){g=!0,d()}function T(){g=!1,m()}function A(r){typeof r<"u"&&(i=r),m()}function b(){o&&d()}function v(){o&&m()}function P(){return o}function F(){const{index:r}=n.internalEngine(),x=r.clone().add(1).get(),q=n.scrollSnapList().length-1,D=e.stopOnLastSnap&&x===q;if(n.canScrollNext()?n.scrollNext(i):n.scrollTo(0,i),n.emit("autoplay:select"),D)return d();m()}function M(){if(!p)return null;const r=f[n.selectedScrollSnap()],x=new Date().getTime()-p;return r-x}return{name:"autoplay",options:a,init:y,destroy:c,play:A,stop:b,reset:v,isPlaying:P,timeUntilNext:M}}H.globalOptions=void 0;function V(a={}){let e,n=[];const s=["select","slideFocus"];function f(t){e=t;const{options:{axis:i},slideRects:y}=e.internalEngine();i!=="y"&&(n=y.map(c=>c.height),s.forEach(c=>e.on(c,o)),o())}function p(){s.forEach(i=>e.off(i,o));const t=e.containerNode();t.style.height="",t.getAttribute("style")||t.removeAttribute("style")}function l(){const{slideRegistry:t}=e.internalEngine(),i=t[e.selectedScrollSnap()];return i?i.map(y=>n[y]).reduce((y,c)=>Math.max(y,c),0):null}function o(){l()!==null&&(e.containerNode().style.height=`${l()}px`)}return{name:"autoHeight",options:a,init:f,destroy:p}}V.globalOptions=void 0;const X=(a={})=>{const{align:e="center",initialIndex:n=0,autoplay:s=!1,delay:f=3e3,duration:p=25,loop:l,autoHeight:o=!0}=a;console.log(e);const[g,t]=B({axis:"x",align:e,startIndex:n,duration:p,loop:l},[H({playOnInit:!0,delay:f,active:s}),V({active:o})]),i=t?.scrollNext,y=u.useCallback(v=>i?.(v.jump),[i]),c=t?.scrollPrev,O=u.useCallback(v=>c?.(v.jump),[c]),h=t?.scrollTo,m=u.useCallback((v,P)=>h?.(v,P.jump),[h]),[d,j]=u.useState(!1),[k,w]=u.useState(!1),[S,E]=u.useState(0),[T,A]=u.useState([]),b=u.useCallback(()=>{t&&(w(!!t?.canScrollPrev()),j(!!t?.canScrollNext()),A(t.scrollSnapList()),E(t.selectedScrollSnap()))},[t]);return u.useEffect(()=>{t&&(b(),t.on("reInit",b).on("select",b))},[t,b]),{ref:g,next:y,prev:O,toSlide:m,activeIndex:S,canNext:d,canPrev:k,snaps:T,options:a}},N=z("carousel"),Y=u.forwardRef(({className:a,carousel:e,options:n,pagination:s=!0,children:f},p)=>{const l=X(n);return e=e||l,u.useImperativeHandle(p,()=>e),I.jsxs("div",{className:R(N,a),style:{"--carousel-gap":typeof e.options.gap=="number"?e.options.gap+"px":"8px"},children:[I.jsx("div",{className:`${N}__viewport`,ref:e.ref,children:I.jsx("div",{className:`${N}__tracks`,children:f})}),!!s&&I.jsx(G,{total:e.snaps.length,activeIndex:e.activeIndex})]})}),Z=({children:a,className:e,...n})=>I.jsx("div",{className:R(`${N}__item`,e),...n,children:a});Y.__docgenInfo={description:"",methods:[],displayName:"Carousel",props:{className:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""},carousel:{required:!1,tsType:{name:"signature",type:"object",raw:`{
1
+ import{r as u,j as I}from"./iframe-CLEfhyJc.js";import{c as R,g as z}from"./classname-DoNrELT0.js";import{u as B}from"./embla-carousel-react.esm-CCQjHA-d.js";import{P as G}from"./pagination-Dcazh6R_.js";const J={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function K(a,e){const n=a.scrollSnapList();return typeof e=="number"?n.map(()=>e):e(n,a)}function Q(a,e){const n=a.rootNode();return e&&e(n)||n}function H(a={}){let e,n,s,f,p=null,l=0,o=!1,g=!1,t=!1,i=!1;function y(r,x){n=r;const{mergeOptions:q,optionsAtMedia:D}=x,U=q(J,H.globalOptions),$=q(U,a);if(e=D($),n.scrollSnapList().length<=1)return;i=e.jump,s=!1,f=K(n,e.delay);const{eventStore:C,ownerDocument:W}=n.internalEngine(),_=!!n.internalEngine().options.watchDrag,L=Q(n,e.rootNode);C.add(W,"visibilitychange",j),_&&n.on("pointerDown",w),_&&!e.stopOnInteraction&&n.on("pointerUp",S),e.stopOnMouseEnter&&C.add(L,"mouseenter",E),e.stopOnMouseEnter&&!e.stopOnInteraction&&C.add(L,"mouseleave",T),e.stopOnFocusIn&&n.on("slideFocusStart",d),e.stopOnFocusIn&&!e.stopOnInteraction&&C.add(n.containerNode(),"focusout",m),e.playOnInit&&m()}function c(){n.off("pointerDown",w).off("pointerUp",S).off("slideFocusStart",d),d(),s=!0,o=!1}function O(){const{ownerWindow:r}=n.internalEngine();r.clearTimeout(l),l=r.setTimeout(F,f[n.selectedScrollSnap()]),p=new Date().getTime(),n.emit("autoplay:timerset")}function h(){const{ownerWindow:r}=n.internalEngine();r.clearTimeout(l),l=0,p=null,n.emit("autoplay:timerstopped")}function m(){if(!s){if(k()){t=!0;return}o||n.emit("autoplay:play"),O(),o=!0}}function d(){s||(o&&n.emit("autoplay:stop"),h(),o=!1)}function j(){if(k())return t=o,d();t&&m()}function k(){const{ownerDocument:r}=n.internalEngine();return r.visibilityState==="hidden"}function w(){g||d()}function S(){g||m()}function E(){g=!0,d()}function T(){g=!1,m()}function A(r){typeof r<"u"&&(i=r),m()}function b(){o&&d()}function v(){o&&m()}function P(){return o}function F(){const{index:r}=n.internalEngine(),x=r.clone().add(1).get(),q=n.scrollSnapList().length-1,D=e.stopOnLastSnap&&x===q;if(n.canScrollNext()?n.scrollNext(i):n.scrollTo(0,i),n.emit("autoplay:select"),D)return d();m()}function M(){if(!p)return null;const r=f[n.selectedScrollSnap()],x=new Date().getTime()-p;return r-x}return{name:"autoplay",options:a,init:y,destroy:c,play:A,stop:b,reset:v,isPlaying:P,timeUntilNext:M}}H.globalOptions=void 0;function V(a={}){let e,n=[];const s=["select","slideFocus"];function f(t){e=t;const{options:{axis:i},slideRects:y}=e.internalEngine();i!=="y"&&(n=y.map(c=>c.height),s.forEach(c=>e.on(c,o)),o())}function p(){s.forEach(i=>e.off(i,o));const t=e.containerNode();t.style.height="",t.getAttribute("style")||t.removeAttribute("style")}function l(){const{slideRegistry:t}=e.internalEngine(),i=t[e.selectedScrollSnap()];return i?i.map(y=>n[y]).reduce((y,c)=>Math.max(y,c),0):null}function o(){l()!==null&&(e.containerNode().style.height=`${l()}px`)}return{name:"autoHeight",options:a,init:f,destroy:p}}V.globalOptions=void 0;const X=(a={})=>{const{align:e="center",initialIndex:n=0,autoplay:s=!1,delay:f=3e3,duration:p=25,loop:l,autoHeight:o=!0}=a,[g,t]=B({axis:"x",align:e,startIndex:n,duration:p,loop:l},[H({playOnInit:!0,delay:f,active:s}),V({active:o})]),i=t?.scrollNext,y=u.useCallback(v=>i?.(v.jump),[i]),c=t?.scrollPrev,O=u.useCallback(v=>c?.(v.jump),[c]),h=t?.scrollTo,m=u.useCallback((v,P)=>h?.(v,P.jump),[h]),[d,j]=u.useState(!1),[k,w]=u.useState(!1),[S,E]=u.useState(0),[T,A]=u.useState([]),b=u.useCallback(()=>{t&&(w(!!t?.canScrollPrev()),j(!!t?.canScrollNext()),A(t.scrollSnapList()),E(t.selectedScrollSnap()))},[t]);return u.useEffect(()=>{t&&(b(),t.on("reInit",b).on("select",b))},[t,b]),{ref:g,next:y,prev:O,toSlide:m,activeIndex:S,canNext:d,canPrev:k,snaps:T,options:a}},N=z("carousel"),Y=u.forwardRef(({className:a,carousel:e,options:n,pagination:s=!0,children:f},p)=>{const l=X(n);return e=e||l,u.useImperativeHandle(p,()=>e),I.jsxs("div",{className:R(N,a),style:{"--carousel-gap":typeof e.options.gap=="number"?e.options.gap+"px":"8px"},children:[I.jsx("div",{className:`${N}__viewport`,ref:e.ref,children:I.jsx("div",{className:`${N}__tracks`,children:f})}),!!s&&I.jsx(G,{total:e.snaps.length,activeIndex:e.activeIndex})]})}),Z=({children:a,className:e,...n})=>I.jsx("div",{className:R(`${N}__item`,e),...n,children:a});Y.__docgenInfo={description:"",methods:[],displayName:"Carousel",props:{className:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""},carousel:{required:!1,tsType:{name:"signature",type:"object",raw:`{
2
2
  ref: ICarouselViewPortRef
3
3
  next: (options: ICarouselToOptions) => void
4
4
  prev: (options: ICarouselToOptions) => void
@@ -1,4 +1,4 @@
1
- import{j as e,r as j}from"./iframe-CQAwSt4E.js";import{C as a,a as n,u as f}from"./carousel-1Kww3hIz.js";import{B as r}from"./button-CL7GeC23.js";import{t as o}from"./store-D2RudmNr.js";import{T as F,S as b,M as h,P as $,a as v}from"./blocks-BuaOUtiH.js";import"./preload-helper-PPVm8Dsz.js";import"./classname-CUR_zgkh.js";import"./embla-carousel-react.esm-BYjpaHZ9.js";import"./pagination-DZHoBs_4.js";import"./icon-DdQsMyRa.js";import"./colors-_6nFGM3e.js";import"./typography-DEpAJl_i.js";import"./index-DHiZ-gXR.js";const N=()=>{const s=`
1
+ import{j as e,r as j}from"./iframe-CLEfhyJc.js";import{C as a,a as n,u as f}from"./carousel-sbzGq2WF.js";import{B as r}from"./button-GtWXUngt.js";import{t as o}from"./store-D2RudmNr.js";import{T as F,S as b,M as h,P as $,a as v}from"./blocks-CpOj9FQ_.js";import"./preload-helper-PPVm8Dsz.js";import"./classname-DoNrELT0.js";import"./embla-carousel-react.esm-CCQjHA-d.js";import"./pagination-Dcazh6R_.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./typography-DoV67nnS.js";import"./index-CaMbLGUB.js";const N=()=>{const s=`
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")} |
@@ -1 +1 @@
1
- import{j as t,r as d}from"./iframe-CQAwSt4E.js";import{c as B,g as F}from"./classname-CUR_zgkh.js";import{u as p}from"./index-BV0AJWP6.js";import{T as b}from"./typography-DEpAJl_i.js";const g=({fill:n="white",...l})=>t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:t.jsx("path",{d:"M5.11112 12.4445H5.10934C4.90756 12.4445 4.71645 12.352 4.59112 12.1947L1.03556 7.75026C0.805341 7.46226 0.851563 7.04359 1.13956 6.81337C1.42845 6.58315 1.84712 6.63026 2.07645 6.91737L5.11467 10.7147L12.1485 2.02492C12.3805 1.7387 12.7991 1.69337 13.0862 1.92626C13.3725 2.15826 13.4169 2.57781 13.1849 2.86403L5.62934 12.1974C5.50223 12.3538 5.31201 12.4445 5.11112 12.4445Z",fill:n})});g.__docgenInfo={description:"",methods:[],displayName:"CheckIcon",props:{fill:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'white'",computed:!1}}}};const x=({fill:n="white",...l})=>t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:t.jsx("rect",{x:"2",y:"6.5",width:"11",height:"2",rx:"1",fill:n})});x.__docgenInfo={description:"",methods:[],displayName:"IndeterminateIcon",props:{fill:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'white'",computed:!1}}}};const a=F("checkbox"),S=d.forwardRef((n,l)=>{const{disabled:r=!1,theme:C="brand",variant:s="default",className:N,style:k,checked:V,defaultChecked:L,onChange:R,number:T,defaultNumber:q,onNumberChange:z,children:m,typography:_,...h}=n,v=C||"brand",u=d.useRef(null),[w,i]=d.useState(!1),[f,j]=p(n,{valuePropName:"checked",defaultValuePropName:"defaultChecked",trigger:"onChange"}),[o,y]=p(n,{valuePropName:"number",defaultValuePropName:"defaultNumber",trigger:"onNumberChange"}),c=o!==void 0?!0:f;d.useImperativeHandle(l,()=>({focus:()=>u.current?.focus?.(),blur:()=>u.current?.blur?.()}));const $=e=>{if(e.preventDefault(),r)return;const P=o===void 0?1:o+1;y(P)},I=()=>s==="number"?t.jsx("input",{...h,type:"text",inputMode:"numeric",value:o??"",disabled:r,readOnly:!0,ref:u,className:`${a}__input`,onClick:e=>e.stopPropagation(),onFocus:e=>{i(!0),n.onFocus?.(e)},onBlur:e=>{i(!1),n.onBlur?.(e)}}):t.jsx("input",{...h,type:"checkbox",checked:f,disabled:r,onChange:e=>j(e.target.checked),ref:u,className:`${a}__input`,onFocus:e=>{i(!0),n.onFocus?.(e)},onBlur:e=>{i(!1),n.onBlur?.(e)}});return t.jsxs("label",{className:B(a,{[`${a}--checked`]:c,[`${a}--unchecked`]:!c,[`${a}--disabled`]:r,[`${a}--focus`]:w,[`${a}--theme-${v}`]:!0,[`${a}--variant-${s}`]:s!=="default"},N),style:k,onClick:s==="number"?$:void 0,children:[t.jsxs("span",{className:`${a}__button`,children:[t.jsx("span",{className:`${a}__overlay`}),c&&s==="number"&&o!==void 0?t.jsx(b,{component:"span",size:"x-small",weight:700,color:r?"alias-border-disabled":"alias-object-on-brand",className:`${a}__number`,children:o}):c&&s==="indeterminate"?t.jsx(x,{fill:r?"var(--color-alias-border-disabled, rgba(10, 10, 10, 0.25))":"white"}):c?t.jsx(g,{fill:r?"var(--color-alias-border-disabled, rgba(10, 10, 10, 0.25))":"white"}):null,I()]}),m&&t.jsx(b,{component:"span",..._,size:"base",children:m})]})});S.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"blur",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Checkbox"};export{S as C};
1
+ import{j as t,r as d}from"./iframe-CLEfhyJc.js";import{c as B,g as F}from"./classname-DoNrELT0.js";import{u as p}from"./index-DRIh_SUo.js";import{T as b}from"./typography-DoV67nnS.js";const g=({fill:n="white",...l})=>t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:t.jsx("path",{d:"M5.11112 12.4445H5.10934C4.90756 12.4445 4.71645 12.352 4.59112 12.1947L1.03556 7.75026C0.805341 7.46226 0.851563 7.04359 1.13956 6.81337C1.42845 6.58315 1.84712 6.63026 2.07645 6.91737L5.11467 10.7147L12.1485 2.02492C12.3805 1.7387 12.7991 1.69337 13.0862 1.92626C13.3725 2.15826 13.4169 2.57781 13.1849 2.86403L5.62934 12.1974C5.50223 12.3538 5.31201 12.4445 5.11112 12.4445Z",fill:n})});g.__docgenInfo={description:"",methods:[],displayName:"CheckIcon",props:{fill:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'white'",computed:!1}}}};const x=({fill:n="white",...l})=>t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:t.jsx("rect",{x:"2",y:"6.5",width:"11",height:"2",rx:"1",fill:n})});x.__docgenInfo={description:"",methods:[],displayName:"IndeterminateIcon",props:{fill:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'white'",computed:!1}}}};const a=F("checkbox"),S=d.forwardRef((n,l)=>{const{disabled:r=!1,theme:C="brand",variant:s="default",className:N,style:k,checked:V,defaultChecked:L,onChange:R,number:T,defaultNumber:q,onNumberChange:z,children:m,typography:_,...h}=n,v=C||"brand",u=d.useRef(null),[w,i]=d.useState(!1),[f,j]=p(n,{valuePropName:"checked",defaultValuePropName:"defaultChecked",trigger:"onChange"}),[o,y]=p(n,{valuePropName:"number",defaultValuePropName:"defaultNumber",trigger:"onNumberChange"}),c=o!==void 0?!0:f;d.useImperativeHandle(l,()=>({focus:()=>u.current?.focus?.(),blur:()=>u.current?.blur?.()}));const $=e=>{if(e.preventDefault(),r)return;const P=o===void 0?1:o+1;y(P)},I=()=>s==="number"?t.jsx("input",{...h,type:"text",inputMode:"numeric",value:o??"",disabled:r,readOnly:!0,ref:u,className:`${a}__input`,onClick:e=>e.stopPropagation(),onFocus:e=>{i(!0),n.onFocus?.(e)},onBlur:e=>{i(!1),n.onBlur?.(e)}}):t.jsx("input",{...h,type:"checkbox",checked:f,disabled:r,onChange:e=>j(e.target.checked),ref:u,className:`${a}__input`,onFocus:e=>{i(!0),n.onFocus?.(e)},onBlur:e=>{i(!1),n.onBlur?.(e)}});return t.jsxs("label",{className:B(a,{[`${a}--checked`]:c,[`${a}--unchecked`]:!c,[`${a}--disabled`]:r,[`${a}--focus`]:w,[`${a}--theme-${v}`]:!0,[`${a}--variant-${s}`]:s!=="default"},N),style:k,onClick:s==="number"?$:void 0,children:[t.jsxs("span",{className:`${a}__button`,children:[t.jsx("span",{className:`${a}__overlay`}),c&&s==="number"&&o!==void 0?t.jsx(b,{component:"span",size:"x-small",weight:700,color:r?"alias-border-disabled":"alias-object-on-brand",className:`${a}__number`,children:o}):c&&s==="indeterminate"?t.jsx(x,{fill:r?"var(--color-alias-border-disabled, rgba(10, 10, 10, 0.25))":"white"}):c?t.jsx(g,{fill:r?"var(--color-alias-border-disabled, rgba(10, 10, 10, 0.25))":"white"}):null,I()]}),m&&t.jsx(b,{component:"span",..._,size:"base",children:m})]})});S.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"blur",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Checkbox"};export{S as C};
@@ -1,4 +1,4 @@
1
- import{j as o,r as i}from"./iframe-CQAwSt4E.js";import{T as g,S as v,M as f,P as j,a as N}from"./blocks-BuaOUtiH.js";import{C as n}from"./checkbox-MGytNNRt.js";import{B as D}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"./index-BV0AJWP6.js";import"./index-B-Ksafg0.js";import"./typography-DEpAJl_i.js";import"./colors-_6nFGM3e.js";import"./icon-DdQsMyRa.js";const S=()=>{const t=`
1
+ import{j as o,r as i}from"./iframe-CLEfhyJc.js";import{T as g,S as v,M as f,P as j,a as N}from"./blocks-CpOj9FQ_.js";import{C as n}from"./checkbox-CMpJJxvm.js";import{B as D}from"./button-GtWXUngt.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./classname-DoNrELT0.js";import"./index-DRIh_SUo.js";import"./index-B-Ksafg0.js";import"./typography-DoV67nnS.js";import"./colors-_6nFGM3e.js";import"./icon-TJ3FHxUI.js";const S=()=>{const t=`
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")} |
@@ -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{j as e,e as Re,r as t}from"./iframe-CLEfhyJc.js";import{c as k,g as w}from"./classname-DoNrELT0.js";import{I as L,r as ze}from"./icon-TJ3FHxUI.js";import{L as qe,u as ve,n as ge}from"./navigation-bar-CiGSH7u8.js";import"./visibility-sensor-huP-8j4n.js";import"./store-DxAqU1JB.js";import{B as z}from"./button-GtWXUngt.js";import{I as Y}from"./image-D6Yo4ht9.js";import{T as N}from"./typography-DoV67nnS.js";import"./bottom-tab-bar-BsPd0FD7.js";import"./toast-provider-B9k1NBG6.js";import"./carousel-sbzGq2WF.js";import"./pagination-Dcazh6R_.js";import{r as F}from"./blocks-CpOj9FQ_.js";import"./section-content-pkGNuEs6.js";import{O as _e}from"./option-item-BloohEvW.js";import"./alert-abKmNYys.js";import{S as R}from"./skeleton-Dn8rwbgX.js";import"./label-fI1oWVKU.js";import{g as X,I as J}from"./input-wrapper-D_9hAdHZ.js";import"./text-field-CjrgfYOZ.js";import"./number-field-DNj4myBV.js";import"./checkbox-CMpJJxvm.js";import"./radio-t2E8E0Oc.js";import{d as be}from"./date-Ci5dIit0.js";import{D as Te}from"./date-picker-BCIW_1-h.js";import{C as de}from"./calendar-CJ5_NxYx.js";import{u as H}from"./index-DRIh_SUo.js";import{o as ae}from"./omit-CStFhbPt.js";import{S as Ee}from"./search-field-CuiHMy7j.js";import"./text-area-CAmJ2yms.js";import"./avatar-B-jvPnzm.js";import{B as De}from"./badge-Cc9u7jBX.js";import"./switch-BziC1t_8.js";import"./tab-bar-DZ3oOU50.js";import"./rating-DsULci27.js";import"./tooltip-VnA8Hy0S.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'> & {
2
2
  disabled?: boolean
3
3
  required?: boolean
4
4
  icon?: IIconProps | ReactNode
@@ -1,4 +1,4 @@
1
- import{j as t,r as g}from"./iframe-CQAwSt4E.js";import{T as j,S as b,M as u,P as w,a as I}from"./blocks-BuaOUtiH.js";import{C as s}from"./chip-kG4p82WT.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"./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 S=()=>{const i=`
1
+ import{j as t,r as g}from"./iframe-CLEfhyJc.js";import{T as j,S as b,M as u,P as w,a as I}from"./blocks-CpOj9FQ_.js";import{C as s}from"./chip-zY6gJxDk.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./classname-DoNrELT0.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./navigation-bar-CiGSH7u8.js";import"./visibility-sensor-huP-8j4n.js";import"./index-B-Ksafg0.js";import"./store-DxAqU1JB.js";import"./_setToString-CjYxL0rS.js";import"./react-mAVd1wAc.js";import"./omit-CStFhbPt.js";import"./pick-DbIUGM9R.js";import"./button-GtWXUngt.js";import"./typography-DoV67nnS.js";import"./image-D6Yo4ht9.js";import"./bottom-tab-bar-BsPd0FD7.js";import"./toast-provider-B9k1NBG6.js";import"./carousel-sbzGq2WF.js";import"./embla-carousel-react.esm-CCQjHA-d.js";import"./pagination-Dcazh6R_.js";import"./section-content-pkGNuEs6.js";import"./option-item-BloohEvW.js";import"./index-DRIh_SUo.js";import"./alert-abKmNYys.js";import"./skeleton-Dn8rwbgX.js";import"./label-fI1oWVKU.js";import"./input-wrapper-D_9hAdHZ.js";import"./text-field-CjrgfYOZ.js";import"./number-field-DNj4myBV.js";import"./checkbox-CMpJJxvm.js";import"./radio-t2E8E0Oc.js";import"./date-Ci5dIit0.js";import"./date-picker-BCIW_1-h.js";import"./calendar-CJ5_NxYx.js";import"./search-field-CuiHMy7j.js";import"./text-area-CAmJ2yms.js";import"./avatar-B-jvPnzm.js";import"./badge-Cc9u7jBX.js";import"./switch-BziC1t_8.js";import"./tab-bar-DZ3oOU50.js";import"./rating-DsULci27.js";import"./tooltip-VnA8Hy0S.js";const S=()=>{const i=`
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")} |
@@ -1 +1 @@
1
- import{g as c}from"./iframe-CQAwSt4E.js";var o={exports:{}};var i;function p(){return i||(i=1,(function(n){(function(){var f={}.hasOwnProperty;function e(){for(var t="",r=0;r<arguments.length;r++){var s=arguments[r];s&&(t=a(t,u(s)))}return t}function u(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return e.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var s in t)f.call(t,s)&&t[s]&&(r=a(r,s));return r}function a(t,r){return r?t?t+" "+r:t+r:t}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(o)),o.exports}var l=p();const x=c(l),v=n=>`vsf-${n}`;export{x as c,v as g};
1
+ import{g as c}from"./iframe-CLEfhyJc.js";var o={exports:{}};var i;function p(){return i||(i=1,(function(n){(function(){var f={}.hasOwnProperty;function e(){for(var t="",r=0;r<arguments.length;r++){var s=arguments[r];s&&(t=a(t,u(s)))}return t}function u(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return e.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var s in t)f.call(t,s)&&t[s]&&(r=a(r,s));return r}function a(t,r){return r?t?t+" "+r:t+r:t}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(o)),o.exports}var l=p();const x=c(l),v=n=>`vsf-${n}`;export{x as c,v as g};
@@ -1 +1 @@
1
- import{g as J}from"./iframe-CQAwSt4E.js";var q={exports:{}},st=q.exports,Q;function it(){return Q||(Q=1,(function(j,Z){(function(g,l){j.exports=l()})(st,(function(){var g=1e3,l=6e4,S=36e5,v="millisecond",_="second",b="minute",k="hour",y="day",B="week",p="month",z="quarter",M="year",A="date",R="Invalid Date",tt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,et=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,rt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},N=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},nt={s:N,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+N(n,2,"0")+":"+N(e,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var n=12*(t.year()-r.year())+(t.month()-r.month()),e=r.clone().add(n,p),i=t-e<0,u=r.clone().add(n+(i?-1:1),p);return+(-(n+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:p,y:M,w:B,d:y,D:A,h:k,m:b,s:_,ms:v,Q:z}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",O={};O[H]=rt;var V="$isDayjsObject",U=function(s){return s instanceof L||!(!s||!s[V])},C=function s(r,t,n){var e;if(!r)return H;if(typeof r=="string"){var i=r.toLowerCase();O[i]&&(e=i),t&&(O[i]=t,e=i);var u=r.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=r.name;O[o]=r,e=o}return!n&&e&&(H=e),e||!n&&H},f=function(s,r){if(U(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new L(t)},a=nt;a.l=C,a.i=U,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var L=(function(){function s(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[V]=!0}var r=s.prototype;return r.parse=function(t){this.$d=(function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(tt);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==R},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)<this.startOf(n)},r.isBefore=function(t,n){return this.endOf(n)<f(t)},r.$g=function(t,n,e){return a.u(t)?this[n]:this.set(e,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,n){var e=this,i=!!a.u(n)||n,u=a.p(t),o=function(w,$){var D=a.w(e.$u?Date.UTC(e.$y,$,w):new Date(e.$y,$,w),e);return i?D:D.endOf(y)},c=function(w,$){return a.w(e.toDate()[w].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,m=this.$D,Y="set"+(this.$u?"UTC":"");switch(u){case M:return i?o(1,0):o(31,11);case p:return i?o(1,d):o(0,d+1);case B:var x=this.$locale().weekStart||0,T=(h<x?h+7:h)-x;return o(i?m-T:m+(6-T),d);case y:case A:return c(Y+"Hours",0);case k:return c(Y+"Minutes",1);case b:return c(Y+"Seconds",2);case _:return c(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,n){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[y]=u+"Date",e[A]=u+"Date",e[p]=u+"Month",e[M]=u+"FullYear",e[k]=u+"Hours",e[b]=u+"Minutes",e[_]=u+"Seconds",e[v]=u+"Milliseconds",e)[i],c=i===y?this.$D+(n-this.$W):n;if(i===p||i===M){var h=this.clone().set(A,1);h.$d[o](c),h.init(),this.$d=h.set(A,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},r.set=function(t,n){return this.clone().$set(t,n)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,n){var e,i=this;t=Number(t);var u=a.p(n),o=function(d){var m=f(i);return a.w(m.date(m.date()+Math.round(d*t)),i)};if(u===p)return this.set(p,this.$M+t);if(u===M)return this.set(M,this.$y+t);if(u===y)return o(1);if(u===B)return o(7);var c=(e={},e[b]=l,e[k]=S,e[_]=g,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},r.subtract=function(t,n){return this.add(-1*t,n)},r.format=function(t){var n=this,e=this.$locale();if(!this.isValid())return e.invalidDate||R;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,m=e.months,Y=e.meridiem,x=function($,D,I,W){return $&&($[D]||$(n,i))||I[D].slice(0,W)},T=function($){return a.s(o%12||12,$,"0")},w=Y||function($,D,I){var W=$<12?"AM":"PM";return I?W.toLowerCase():W};return i.replace(et,(function($,D){return D||(function(I){switch(I){case"YY":return String(n.$y).slice(-2);case"YYYY":return a.s(n.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return x(e.monthsShort,h,m,3);case"MMMM":return x(m,h);case"D":return n.$D;case"DD":return a.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return x(e.weekdaysMin,n.$W,d,2);case"ddd":return x(e.weekdaysShort,n.$W,d,3);case"dddd":return d[n.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return w(o,c,!0);case"A":return w(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(n.$s);case"ss":return a.s(n.$s,2,"0");case"SSS":return a.s(n.$ms,3,"0");case"Z":return u}return null})($)||u.replace(":","")}))},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,n,e){var i,u=this,o=a.p(n),c=f(t),h=(c.utcOffset()-this.utcOffset())*l,d=this-c,m=function(){return a.m(u,c)};switch(o){case M:i=m()/12;break;case p:i=m();break;case z:i=m()/3;break;case B:i=(d-h)/6048e5;break;case y:i=(d-h)/864e5;break;case k:i=d/S;break;case b:i=d/l;break;case _:i=d/g;break;default:i=d}return e?i:a.a(i)},r.daysInMonth=function(){return this.endOf(p).$D},r.$locale=function(){return O[this.$L]},r.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),i=C(t,n,!0);return i&&(e.$L=i),e},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s})(),P=L.prototype;return f.prototype=P,[["$ms",v],["$s",_],["$m",b],["$H",k],["$W",y],["$M",p],["$y",M],["$D",A]].forEach((function(s){P[s[1]]=function(r){return this.$g(r,s[0],s[1])}})),f.extend=function(s,r){return s.$i||(s(r,L,f),s.$i=!0),f},f.locale=C,f.isDayjs=U,f.unix=function(s){return f(1e3*s)},f.en=O[H],f.Ls=O,f.p={},f}))})(q)),q.exports}var ut=it();const X=J(ut);var E={exports:{}},at=E.exports,G;function ot(){return G||(G=1,(function(j,Z){(function(g,l){j.exports=l()})(at,(function(){return function(g,l){l.prototype.isSameOrAfter=function(S,v){return this.isSame(S,v)||this.isAfter(S,v)}}}))})(E)),E.exports}var ct=ot();const ft=J(ct);var F={exports:{}},ht=F.exports,K;function dt(){return K||(K=1,(function(j,Z){(function(g,l){j.exports=l()})(ht,(function(){return function(g,l){l.prototype.isSameOrBefore=function(S,v){return this.isSame(S,v)||this.isBefore(S,v)}}}))})(F)),F.exports}var $t=dt();const lt=J($t);X.extend(ft);X.extend(lt);export{X as d};
1
+ import{g as J}from"./iframe-CLEfhyJc.js";var q={exports:{}},st=q.exports,Q;function it(){return Q||(Q=1,(function(j,Z){(function(g,l){j.exports=l()})(st,(function(){var g=1e3,l=6e4,S=36e5,v="millisecond",_="second",b="minute",k="hour",y="day",B="week",p="month",z="quarter",M="year",A="date",R="Invalid Date",tt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,et=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,rt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},N=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},nt={s:N,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+N(n,2,"0")+":"+N(e,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var n=12*(t.year()-r.year())+(t.month()-r.month()),e=r.clone().add(n,p),i=t-e<0,u=r.clone().add(n+(i?-1:1),p);return+(-(n+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:p,y:M,w:B,d:y,D:A,h:k,m:b,s:_,ms:v,Q:z}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",O={};O[H]=rt;var V="$isDayjsObject",U=function(s){return s instanceof L||!(!s||!s[V])},C=function s(r,t,n){var e;if(!r)return H;if(typeof r=="string"){var i=r.toLowerCase();O[i]&&(e=i),t&&(O[i]=t,e=i);var u=r.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=r.name;O[o]=r,e=o}return!n&&e&&(H=e),e||!n&&H},f=function(s,r){if(U(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new L(t)},a=nt;a.l=C,a.i=U,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var L=(function(){function s(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[V]=!0}var r=s.prototype;return r.parse=function(t){this.$d=(function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(tt);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==R},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)<this.startOf(n)},r.isBefore=function(t,n){return this.endOf(n)<f(t)},r.$g=function(t,n,e){return a.u(t)?this[n]:this.set(e,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,n){var e=this,i=!!a.u(n)||n,u=a.p(t),o=function(w,$){var D=a.w(e.$u?Date.UTC(e.$y,$,w):new Date(e.$y,$,w),e);return i?D:D.endOf(y)},c=function(w,$){return a.w(e.toDate()[w].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,m=this.$D,Y="set"+(this.$u?"UTC":"");switch(u){case M:return i?o(1,0):o(31,11);case p:return i?o(1,d):o(0,d+1);case B:var x=this.$locale().weekStart||0,T=(h<x?h+7:h)-x;return o(i?m-T:m+(6-T),d);case y:case A:return c(Y+"Hours",0);case k:return c(Y+"Minutes",1);case b:return c(Y+"Seconds",2);case _:return c(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,n){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[y]=u+"Date",e[A]=u+"Date",e[p]=u+"Month",e[M]=u+"FullYear",e[k]=u+"Hours",e[b]=u+"Minutes",e[_]=u+"Seconds",e[v]=u+"Milliseconds",e)[i],c=i===y?this.$D+(n-this.$W):n;if(i===p||i===M){var h=this.clone().set(A,1);h.$d[o](c),h.init(),this.$d=h.set(A,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},r.set=function(t,n){return this.clone().$set(t,n)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,n){var e,i=this;t=Number(t);var u=a.p(n),o=function(d){var m=f(i);return a.w(m.date(m.date()+Math.round(d*t)),i)};if(u===p)return this.set(p,this.$M+t);if(u===M)return this.set(M,this.$y+t);if(u===y)return o(1);if(u===B)return o(7);var c=(e={},e[b]=l,e[k]=S,e[_]=g,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},r.subtract=function(t,n){return this.add(-1*t,n)},r.format=function(t){var n=this,e=this.$locale();if(!this.isValid())return e.invalidDate||R;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,m=e.months,Y=e.meridiem,x=function($,D,I,W){return $&&($[D]||$(n,i))||I[D].slice(0,W)},T=function($){return a.s(o%12||12,$,"0")},w=Y||function($,D,I){var W=$<12?"AM":"PM";return I?W.toLowerCase():W};return i.replace(et,(function($,D){return D||(function(I){switch(I){case"YY":return String(n.$y).slice(-2);case"YYYY":return a.s(n.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return x(e.monthsShort,h,m,3);case"MMMM":return x(m,h);case"D":return n.$D;case"DD":return a.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return x(e.weekdaysMin,n.$W,d,2);case"ddd":return x(e.weekdaysShort,n.$W,d,3);case"dddd":return d[n.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return w(o,c,!0);case"A":return w(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(n.$s);case"ss":return a.s(n.$s,2,"0");case"SSS":return a.s(n.$ms,3,"0");case"Z":return u}return null})($)||u.replace(":","")}))},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,n,e){var i,u=this,o=a.p(n),c=f(t),h=(c.utcOffset()-this.utcOffset())*l,d=this-c,m=function(){return a.m(u,c)};switch(o){case M:i=m()/12;break;case p:i=m();break;case z:i=m()/3;break;case B:i=(d-h)/6048e5;break;case y:i=(d-h)/864e5;break;case k:i=d/S;break;case b:i=d/l;break;case _:i=d/g;break;default:i=d}return e?i:a.a(i)},r.daysInMonth=function(){return this.endOf(p).$D},r.$locale=function(){return O[this.$L]},r.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),i=C(t,n,!0);return i&&(e.$L=i),e},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s})(),P=L.prototype;return f.prototype=P,[["$ms",v],["$s",_],["$m",b],["$H",k],["$W",y],["$M",p],["$y",M],["$D",A]].forEach((function(s){P[s[1]]=function(r){return this.$g(r,s[0],s[1])}})),f.extend=function(s,r){return s.$i||(s(r,L,f),s.$i=!0),f},f.locale=C,f.isDayjs=U,f.unix=function(s){return f(1e3*s)},f.en=O[H],f.Ls=O,f.p={},f}))})(q)),q.exports}var ut=it();const X=J(ut);var E={exports:{}},at=E.exports,G;function ot(){return G||(G=1,(function(j,Z){(function(g,l){j.exports=l()})(at,(function(){return function(g,l){l.prototype.isSameOrAfter=function(S,v){return this.isSame(S,v)||this.isAfter(S,v)}}}))})(E)),E.exports}var ct=ot();const ft=J(ct);var F={exports:{}},ht=F.exports,K;function dt(){return K||(K=1,(function(j,Z){(function(g,l){j.exports=l()})(ht,(function(){return function(g,l){l.prototype.isSameOrBefore=function(S,v){return this.isSame(S,v)||this.isBefore(S,v)}}}))})(F)),F.exports}var $t=dt();const lt=J($t);X.extend(ft);X.extend(lt);export{X as d};
@@ -1,4 +1,4 @@
1
- import{j as t,r as h}from"./iframe-CQAwSt4E.js";import{T as g,S as D,M as u,P as b,a as f}from"./blocks-BuaOUtiH.js";import{D as a,a as l}from"./chip-kG4p82WT.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"./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 x=()=>{const o=`
1
+ import{j as t,r as h}from"./iframe-CLEfhyJc.js";import{T as g,S as D,M as u,P as b,a as f}from"./blocks-CpOj9FQ_.js";import{D as a,a as l}from"./chip-zY6gJxDk.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./classname-DoNrELT0.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./navigation-bar-CiGSH7u8.js";import"./visibility-sensor-huP-8j4n.js";import"./index-B-Ksafg0.js";import"./store-DxAqU1JB.js";import"./_setToString-CjYxL0rS.js";import"./react-mAVd1wAc.js";import"./omit-CStFhbPt.js";import"./pick-DbIUGM9R.js";import"./button-GtWXUngt.js";import"./typography-DoV67nnS.js";import"./image-D6Yo4ht9.js";import"./bottom-tab-bar-BsPd0FD7.js";import"./toast-provider-B9k1NBG6.js";import"./carousel-sbzGq2WF.js";import"./embla-carousel-react.esm-CCQjHA-d.js";import"./pagination-Dcazh6R_.js";import"./section-content-pkGNuEs6.js";import"./option-item-BloohEvW.js";import"./index-DRIh_SUo.js";import"./alert-abKmNYys.js";import"./skeleton-Dn8rwbgX.js";import"./label-fI1oWVKU.js";import"./input-wrapper-D_9hAdHZ.js";import"./text-field-CjrgfYOZ.js";import"./number-field-DNj4myBV.js";import"./checkbox-CMpJJxvm.js";import"./radio-t2E8E0Oc.js";import"./date-Ci5dIit0.js";import"./date-picker-BCIW_1-h.js";import"./calendar-CJ5_NxYx.js";import"./search-field-CuiHMy7j.js";import"./text-area-CAmJ2yms.js";import"./avatar-B-jvPnzm.js";import"./badge-Cc9u7jBX.js";import"./switch-BziC1t_8.js";import"./tab-bar-DZ3oOU50.js";import"./rating-DsULci27.js";import"./tooltip-VnA8Hy0S.js";const x=()=>{const o=`
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")} |
@@ -1 +1 @@
1
- import{r as n,j as p}from"./iframe-CQAwSt4E.js";import{u as Y}from"./index-BV0AJWP6.js";import{o as ae}from"./omit-Bsx5nTI0.js";import{g as se,c as A}from"./classname-CUR_zgkh.js";import{u as ne}from"./embla-carousel-react.esm-BYjpaHZ9.js";import{T as oe}from"./typography-DEpAJl_i.js";import{d as E}from"./date-Cg-Uk_pp.js";const F=se("date-picker"),re={CIRCLE_DEGREES:360,WHEEL_ITEM_SIZE:24,WHEEL_ITEM_COUNT:80,WHEEL_ITEMS_IN_VIEW:4},T=`${F}-item`,{CIRCLE_DEGREES:$,WHEEL_ITEM_COUNT:U,WHEEL_ITEMS_IN_VIEW:le,WHEEL_ITEM_SIZE:q}=re,L=$/U,ce=L*le,Z=Math.round(q/2/Math.tan(Math.PI/U)),R=(e,o)=>Math.abs(e-o)<ce,ie=(e,o,a,r,s)=>{const f=e.slideNodes()[o],l=e.scrollProgress()*s,i=e.scrollSnapList()[o]*s,t=i+s,u=i-s;let O=!1,d=o*-L;if(R(l,i)&&(O=!0),R(l,u)&&(O=!0,d=-$+(r-o)*L),R(l,t)&&(O=!0,d=-(s%$)-o*L),O){const c=Math.abs(l-i)<L/2;f.style.opacity=c?"1":"0.25",f.style.transform=`translateY(-${o*100}%) rotateX(${d}deg) translateZ(${Z}px)`}else f.style.opacity="0",f.style.transform="none"},ue=(e,o)=>{e.containerNode().style.transform=`translateZ(${Z}px) rotateX(${o}deg)`},k=e=>{const{className:o,items:a,activeIndex:r=0,renderLabel:s,onChange:f}=e,l=!0,[i,t]=ne({loop:l,axis:"y",dragFree:!0,containScroll:!1,watchSlides:!1,startIndex:r}),u=a.length,O=n.useRef(null),d=u*L,c=0,g=n.useCallback(h=>{if(!h)return;const{translate:y,slideLooper:I}=h.internalEngine();y.clear(),y.toggleActive(!1),I.loopPoints.forEach(({translate:M})=>{M.clear(),M.toggleActive(!1)})},[]),C=n.useCallback(h=>{const I=(u*L-c)*h.scrollProgress();ue(h,I),h.slideNodes().forEach((M,D)=>{ie(h,D,l,u,d)})},[u,c,d,l]);return n.useEffect(()=>{if(!t)return;t.on("pointerUp",y=>{const{scrollTo:I,target:M,location:D}=y.internalEngine(),j=M.get()-D.get(),H=Math.abs(j)<q/2.5?10:.1,x=j*H;I.distance(x,!0)}),t.on("scroll",C),t.on("reInit",y=>{g(y),C(y)}),g(t),C(t);const h=()=>{f&&f(t.selectedScrollSnap())};return t.on("select",h),()=>{t.off("select",h)}},[t,g,C,f]),p.jsx("div",{className:A(T,o),children:p.jsx("div",{className:`${T}__scene`,ref:O,children:p.jsx("div",{className:`${T}__viewport`,ref:i,children:p.jsx("div",{className:`${T}__container`,children:a.map(h=>p.jsx("div",{className:`${T}__slide`,children:p.jsx(oe,{size:"base",weight:"600",children:s?.(h)||h})},h))})})})})};k.__docgenInfo={description:"",methods:[],displayName:"DatePickerItem"};const de=e=>{const{type:o,value:a,max:r,min:s,hasHour:f,renderLabels:l}=e;let i,t,u;switch(o){case"day":{u=l?.days||ge,i=r&&E(r).startOf("month").valueOf()===E(a).startOf("month").valueOf()?r.getDate():void 0,t=s&&E(s).startOf("month").valueOf()===E(a).startOf("month").valueOf()?s.getDate():void 0;break}case"month":{u=l?.months||(f?ye:he),i=r&&E(r).startOf("year").valueOf()===E(a).startOf("year").valueOf()?r.getMonth():void 0,t=s&&E(s).startOf("year").valueOf()===E(a).startOf("year").valueOf()?s.getMonth():void 0;break}case"year":{u=l?.years||ve,i=r?r.getFullYear():void 0,t=s?s.getFullYear():void 0;break}case"hour":{u=l?.hours||me,i=r&&E(r).startOf("day").valueOf()===E(a).startOf("day").valueOf()?r.getHours():void 0,t=s&&E(s).startOf("day").valueOf()===E(a).startOf("day").valueOf()?s.getHours():void 0;break}case"minute":{u=l?.minutes||fe,i=r&&E(r).startOf("hour").valueOf()===E(a).startOf("hour").valueOf()?r.getMinutes():void 0,t=s&&E(s).startOf("hour").valueOf()===E(a).startOf("hour").valueOf()?s.getMinutes():void 0;break}case"dayOfWeek":{u=l?.dayOfWeeks||Ee;break}}return{renderLabel:u,max:i,min:t}},W=(e,o,a)=>Array.from({length:Math.floor((o-e+1)/a)},(r,s)=>e+s*a),w=(e,o)=>{let a=0;for(;a<e.length;a++){if(e[a]===o)return a;if(e[a]>o)return Math.max(a,0)}return a-1},me=e=>e.toString().padStart(2,"0"),fe=e=>e.toString().padStart(2,"0"),ge=e=>e.toString().padStart(2,"0"),he=e=>"tháng "+(e+1).toString().padStart(2,"0"),ye=e=>"thg "+(e+1).toString().padStart(2,"0"),ve=e=>e.toString().padStart(4,"0"),Ee=e=>["chủ nhật","thứ 2","thứ 3","thứ 4","thứ 5","thứ 6","thứ 7"][e%7],B=({className:e,hour:o,day:a,month:r,year:s,minutesProps:f,hoursProps:l,daysProps:i,monthsProps:t,yearsProps:u,dayOfWeeksProps:O,...d})=>{const[c,g]=Y(d,{trigger:"onChange",valuePropName:"value",defaultValue:{years:new Date().getFullYear(),minutes:new Date().getMinutes(),hours:new Date().getHours(),days:new Date().getDate(),months:new Date().getMonth(),dayOfWeeks:new Date().getDay()}});let C=!1;a=a||o&&(r||s),r=r||(o||a)&&s,a&&!o&&!r&&!s&&(C=!0,a=!1);const h=o,y=n.useMemo(()=>W(0,59,f?.step||1),[f?.step]),I=n.useMemo(()=>w(y,c.minutes),[y,c.minutes]),M=n.useCallback(v=>{g(m=>({...m,minutes:y[v%y.length]}))},[y,g]),D=n.useMemo(()=>W(0,23,l?.step||1),[l?.step]),j=n.useMemo(()=>w(D,c.hours),[D,c.hours]),H=n.useCallback(v=>{g(m=>({...m,hours:D[v%D.length]}))},[D,g]),x=n.useMemo(()=>{const v=new Date(c.years,c.months+1,0).getDate();return W(1,v,i?.step||1)},[i?.step,c.months,c.years]),G=n.useMemo(()=>w(x,c.days),[x,c.days]),X=n.useCallback(v=>{g(m=>({...m,days:x[v%x.length],dayOfWeeks:new Date(m.years,m.months,x[v%x.length]).getDay()}))},[x,g]),b=n.useMemo(()=>W(0,11,t?.step||1),[t?.step]),z=n.useMemo(()=>w(b,c.months),[b,c.months]),J=n.useCallback(v=>{g(m=>({...m,months:b[v%b.length],dayOfWeeks:new Date(m.years,b[v%b.length],m.days).getDay()}))},[b,g]),_=n.useMemo(()=>W(1900,2300,u?.step||1),[u?.step]),K=n.useMemo(()=>w(_,c.years),[_,c.years]),Q=n.useCallback(v=>{g(m=>({...m,years:_[v%_.length],dayOfWeeks:new Date(_[v%_.length],m.months,m.days).getDay()}))},[_,g]),S=n.useMemo(()=>W(0,59,O?.step||1),[O?.step]),P=n.useMemo(()=>w(S,c.dayOfWeeks),[S,c.dayOfWeeks]),ee=n.useCallback(v=>{g(m=>{const N=new Date(m.years,m.months,m.days),V=S[v%S.length],te=N.getDay()-V;return N.setDate(N.getDate()-te),{...m,years:N.getFullYear(),months:N.getMonth(),days:N.getDate(),dayOfWeeks:V}})},[S,g]);return p.jsxs("div",{className:A(`${F}-base`,e),children:[a&&p.jsx(k,{items:x,activeIndex:G,onChange:X,renderLabel:i.renderLabel,min:i.min,max:i.max},x.length),r&&p.jsx(k,{items:b,activeIndex:z,onChange:J,renderLabel:t.renderLabel,min:t.min,max:t.max}),s&&p.jsx(k,{items:_,activeIndex:K,onChange:Q,renderLabel:u.renderLabel,min:u.min,max:u.max}),C&&p.jsx(k,{items:S,activeIndex:P,onChange:ee,renderLabel:O.renderLabel,min:O.min,max:O.max}),o&&p.jsx(k,{items:D,activeIndex:j,onChange:H,renderLabel:l.renderLabel,min:l.min,max:l.max}),h&&p.jsx(k,{items:y,activeIndex:I,onChange:M,renderLabel:f.renderLabel,min:f.min,max:f.max})]})};B.__docgenInfo={description:"",methods:[],displayName:"DatePickerBase"};const Me=({min:e,max:o,renderLabels:a,year:r=!0,month:s=!0,day:f=!0,hour:l=!1,...i})=>{const[t,u]=Y(i,{trigger:"onChange",valuePropName:"value",defaultValue:new Date}),O=n.useMemo(()=>({years:t.getFullYear(),months:t.getMonth(),days:t.getDate(),dayOfWeeks:t.getDay(),hours:t.getHours(),minutes:t.getMinutes()}),[t]),d=n.useCallback(M=>de({type:M,value:t,max:o,min:e,hasHour:l,renderLabels:a}),[t,o,e,l,a]),c=n.useMemo(()=>d("year"),[d]),g=n.useMemo(()=>d("month"),[d]),C=n.useMemo(()=>d("day"),[d]),h=n.useMemo(()=>d("hour"),[d]),y=n.useMemo(()=>d("minute"),[d]),I=n.useMemo(()=>d("dayOfWeek"),[d]);return p.jsx(B,{...ae(i,["value","onChange"]),year:r,month:s,day:f,hour:l,yearsProps:c,monthsProps:g,daysProps:C,hoursProps:h,minutesProps:y,dayOfWeeksProps:I,value:O,onChange:M=>{u(new Date(M.years,M.months,M.days,M.hours,M.minutes))}})};Me.__docgenInfo={description:"",methods:[],displayName:"DatePicker",props:{year:{defaultValue:{value:"true",computed:!1},required:!1},month:{defaultValue:{value:"true",computed:!1},required:!1},day:{defaultValue:{value:"true",computed:!1},required:!1},hour:{defaultValue:{value:"false",computed:!1},required:!1}}};export{Me as D};
1
+ import{r as n,j as p}from"./iframe-CLEfhyJc.js";import{u as Y}from"./index-DRIh_SUo.js";import{o as ae}from"./omit-CStFhbPt.js";import{g as se,c as A}from"./classname-DoNrELT0.js";import{u as ne}from"./embla-carousel-react.esm-CCQjHA-d.js";import{T as oe}from"./typography-DoV67nnS.js";import{d as E}from"./date-Ci5dIit0.js";const F=se("date-picker"),re={CIRCLE_DEGREES:360,WHEEL_ITEM_SIZE:24,WHEEL_ITEM_COUNT:80,WHEEL_ITEMS_IN_VIEW:4},T=`${F}-item`,{CIRCLE_DEGREES:$,WHEEL_ITEM_COUNT:U,WHEEL_ITEMS_IN_VIEW:le,WHEEL_ITEM_SIZE:q}=re,L=$/U,ce=L*le,Z=Math.round(q/2/Math.tan(Math.PI/U)),R=(e,o)=>Math.abs(e-o)<ce,ie=(e,o,a,r,s)=>{const f=e.slideNodes()[o],l=e.scrollProgress()*s,i=e.scrollSnapList()[o]*s,t=i+s,u=i-s;let O=!1,d=o*-L;if(R(l,i)&&(O=!0),R(l,u)&&(O=!0,d=-$+(r-o)*L),R(l,t)&&(O=!0,d=-(s%$)-o*L),O){const c=Math.abs(l-i)<L/2;f.style.opacity=c?"1":"0.25",f.style.transform=`translateY(-${o*100}%) rotateX(${d}deg) translateZ(${Z}px)`}else f.style.opacity="0",f.style.transform="none"},ue=(e,o)=>{e.containerNode().style.transform=`translateZ(${Z}px) rotateX(${o}deg)`},k=e=>{const{className:o,items:a,activeIndex:r=0,renderLabel:s,onChange:f}=e,l=!0,[i,t]=ne({loop:l,axis:"y",dragFree:!0,containScroll:!1,watchSlides:!1,startIndex:r}),u=a.length,O=n.useRef(null),d=u*L,c=0,g=n.useCallback(h=>{if(!h)return;const{translate:y,slideLooper:I}=h.internalEngine();y.clear(),y.toggleActive(!1),I.loopPoints.forEach(({translate:M})=>{M.clear(),M.toggleActive(!1)})},[]),C=n.useCallback(h=>{const I=(u*L-c)*h.scrollProgress();ue(h,I),h.slideNodes().forEach((M,D)=>{ie(h,D,l,u,d)})},[u,c,d,l]);return n.useEffect(()=>{if(!t)return;t.on("pointerUp",y=>{const{scrollTo:I,target:M,location:D}=y.internalEngine(),j=M.get()-D.get(),H=Math.abs(j)<q/2.5?10:.1,x=j*H;I.distance(x,!0)}),t.on("scroll",C),t.on("reInit",y=>{g(y),C(y)}),g(t),C(t);const h=()=>{f&&f(t.selectedScrollSnap())};return t.on("select",h),()=>{t.off("select",h)}},[t,g,C,f]),p.jsx("div",{className:A(T,o),children:p.jsx("div",{className:`${T}__scene`,ref:O,children:p.jsx("div",{className:`${T}__viewport`,ref:i,children:p.jsx("div",{className:`${T}__container`,children:a.map(h=>p.jsx("div",{className:`${T}__slide`,children:p.jsx(oe,{size:"base",weight:"600",children:s?.(h)||h})},h))})})})})};k.__docgenInfo={description:"",methods:[],displayName:"DatePickerItem"};const de=e=>{const{type:o,value:a,max:r,min:s,hasHour:f,renderLabels:l}=e;let i,t,u;switch(o){case"day":{u=l?.days||ge,i=r&&E(r).startOf("month").valueOf()===E(a).startOf("month").valueOf()?r.getDate():void 0,t=s&&E(s).startOf("month").valueOf()===E(a).startOf("month").valueOf()?s.getDate():void 0;break}case"month":{u=l?.months||(f?ye:he),i=r&&E(r).startOf("year").valueOf()===E(a).startOf("year").valueOf()?r.getMonth():void 0,t=s&&E(s).startOf("year").valueOf()===E(a).startOf("year").valueOf()?s.getMonth():void 0;break}case"year":{u=l?.years||ve,i=r?r.getFullYear():void 0,t=s?s.getFullYear():void 0;break}case"hour":{u=l?.hours||me,i=r&&E(r).startOf("day").valueOf()===E(a).startOf("day").valueOf()?r.getHours():void 0,t=s&&E(s).startOf("day").valueOf()===E(a).startOf("day").valueOf()?s.getHours():void 0;break}case"minute":{u=l?.minutes||fe,i=r&&E(r).startOf("hour").valueOf()===E(a).startOf("hour").valueOf()?r.getMinutes():void 0,t=s&&E(s).startOf("hour").valueOf()===E(a).startOf("hour").valueOf()?s.getMinutes():void 0;break}case"dayOfWeek":{u=l?.dayOfWeeks||Ee;break}}return{renderLabel:u,max:i,min:t}},W=(e,o,a)=>Array.from({length:Math.floor((o-e+1)/a)},(r,s)=>e+s*a),w=(e,o)=>{let a=0;for(;a<e.length;a++){if(e[a]===o)return a;if(e[a]>o)return Math.max(a,0)}return a-1},me=e=>e.toString().padStart(2,"0"),fe=e=>e.toString().padStart(2,"0"),ge=e=>e.toString().padStart(2,"0"),he=e=>"tháng "+(e+1).toString().padStart(2,"0"),ye=e=>"thg "+(e+1).toString().padStart(2,"0"),ve=e=>e.toString().padStart(4,"0"),Ee=e=>["chủ nhật","thứ 2","thứ 3","thứ 4","thứ 5","thứ 6","thứ 7"][e%7],B=({className:e,hour:o,day:a,month:r,year:s,minutesProps:f,hoursProps:l,daysProps:i,monthsProps:t,yearsProps:u,dayOfWeeksProps:O,...d})=>{const[c,g]=Y(d,{trigger:"onChange",valuePropName:"value",defaultValue:{years:new Date().getFullYear(),minutes:new Date().getMinutes(),hours:new Date().getHours(),days:new Date().getDate(),months:new Date().getMonth(),dayOfWeeks:new Date().getDay()}});let C=!1;a=a||o&&(r||s),r=r||(o||a)&&s,a&&!o&&!r&&!s&&(C=!0,a=!1);const h=o,y=n.useMemo(()=>W(0,59,f?.step||1),[f?.step]),I=n.useMemo(()=>w(y,c.minutes),[y,c.minutes]),M=n.useCallback(v=>{g(m=>({...m,minutes:y[v%y.length]}))},[y,g]),D=n.useMemo(()=>W(0,23,l?.step||1),[l?.step]),j=n.useMemo(()=>w(D,c.hours),[D,c.hours]),H=n.useCallback(v=>{g(m=>({...m,hours:D[v%D.length]}))},[D,g]),x=n.useMemo(()=>{const v=new Date(c.years,c.months+1,0).getDate();return W(1,v,i?.step||1)},[i?.step,c.months,c.years]),G=n.useMemo(()=>w(x,c.days),[x,c.days]),X=n.useCallback(v=>{g(m=>({...m,days:x[v%x.length],dayOfWeeks:new Date(m.years,m.months,x[v%x.length]).getDay()}))},[x,g]),b=n.useMemo(()=>W(0,11,t?.step||1),[t?.step]),z=n.useMemo(()=>w(b,c.months),[b,c.months]),J=n.useCallback(v=>{g(m=>({...m,months:b[v%b.length],dayOfWeeks:new Date(m.years,b[v%b.length],m.days).getDay()}))},[b,g]),_=n.useMemo(()=>W(1900,2300,u?.step||1),[u?.step]),K=n.useMemo(()=>w(_,c.years),[_,c.years]),Q=n.useCallback(v=>{g(m=>({...m,years:_[v%_.length],dayOfWeeks:new Date(_[v%_.length],m.months,m.days).getDay()}))},[_,g]),S=n.useMemo(()=>W(0,59,O?.step||1),[O?.step]),P=n.useMemo(()=>w(S,c.dayOfWeeks),[S,c.dayOfWeeks]),ee=n.useCallback(v=>{g(m=>{const N=new Date(m.years,m.months,m.days),V=S[v%S.length],te=N.getDay()-V;return N.setDate(N.getDate()-te),{...m,years:N.getFullYear(),months:N.getMonth(),days:N.getDate(),dayOfWeeks:V}})},[S,g]);return p.jsxs("div",{className:A(`${F}-base`,e),children:[a&&p.jsx(k,{items:x,activeIndex:G,onChange:X,renderLabel:i.renderLabel,min:i.min,max:i.max},x.length),r&&p.jsx(k,{items:b,activeIndex:z,onChange:J,renderLabel:t.renderLabel,min:t.min,max:t.max}),s&&p.jsx(k,{items:_,activeIndex:K,onChange:Q,renderLabel:u.renderLabel,min:u.min,max:u.max}),C&&p.jsx(k,{items:S,activeIndex:P,onChange:ee,renderLabel:O.renderLabel,min:O.min,max:O.max}),o&&p.jsx(k,{items:D,activeIndex:j,onChange:H,renderLabel:l.renderLabel,min:l.min,max:l.max}),h&&p.jsx(k,{items:y,activeIndex:I,onChange:M,renderLabel:f.renderLabel,min:f.min,max:f.max})]})};B.__docgenInfo={description:"",methods:[],displayName:"DatePickerBase"};const Me=({min:e,max:o,renderLabels:a,year:r=!0,month:s=!0,day:f=!0,hour:l=!1,...i})=>{const[t,u]=Y(i,{trigger:"onChange",valuePropName:"value",defaultValue:new Date}),O=n.useMemo(()=>({years:t.getFullYear(),months:t.getMonth(),days:t.getDate(),dayOfWeeks:t.getDay(),hours:t.getHours(),minutes:t.getMinutes()}),[t]),d=n.useCallback(M=>de({type:M,value:t,max:o,min:e,hasHour:l,renderLabels:a}),[t,o,e,l,a]),c=n.useMemo(()=>d("year"),[d]),g=n.useMemo(()=>d("month"),[d]),C=n.useMemo(()=>d("day"),[d]),h=n.useMemo(()=>d("hour"),[d]),y=n.useMemo(()=>d("minute"),[d]),I=n.useMemo(()=>d("dayOfWeek"),[d]);return p.jsx(B,{...ae(i,["value","onChange"]),year:r,month:s,day:f,hour:l,yearsProps:c,monthsProps:g,daysProps:C,hoursProps:h,minutesProps:y,dayOfWeeksProps:I,value:O,onChange:M=>{u(new Date(M.years,M.months,M.days,M.hours,M.minutes))}})};Me.__docgenInfo={description:"",methods:[],displayName:"DatePicker",props:{year:{defaultValue:{value:"true",computed:!1},required:!1},month:{defaultValue:{value:"true",computed:!1},required:!1},day:{defaultValue:{value:"true",computed:!1},required:!1},hour:{defaultValue:{value:"false",computed:!1},required:!1}}};export{Me as D};
@@ -1,4 +1,4 @@
1
- import{j as t,r as y}from"./iframe-CQAwSt4E.js";import{T as D,S as g,M as u,P,a as k}from"./blocks-BuaOUtiH.js";import{D as l}from"./date-picker-Dnq_-0Md.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DHiZ-gXR.js";import"./index-BV0AJWP6.js";import"./index-B-Ksafg0.js";import"./omit-Bsx5nTI0.js";import"./_setToString-CbM921C9.js";import"./classname-CUR_zgkh.js";import"./embla-carousel-react.esm-BYjpaHZ9.js";import"./typography-DEpAJl_i.js";import"./colors-_6nFGM3e.js";import"./date-Cg-Uk_pp.js";const h=()=>{const o=`
1
+ import{j as t,r as y}from"./iframe-CLEfhyJc.js";import{T as D,S as g,M as u,P,a as k}from"./blocks-CpOj9FQ_.js";import{D as l}from"./date-picker-BCIW_1-h.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./index-DRIh_SUo.js";import"./index-B-Ksafg0.js";import"./omit-CStFhbPt.js";import"./_setToString-CjYxL0rS.js";import"./classname-DoNrELT0.js";import"./embla-carousel-react.esm-CCQjHA-d.js";import"./typography-DoV67nnS.js";import"./colors-_6nFGM3e.js";import"./date-Ci5dIit0.js";const h=()=>{const o=`
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")} |
@@ -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-CLEfhyJc.js";import{T as y,S as B,M as x,P as T,a as b}from"./blocks-CpOj9FQ_.js";import{b as i}from"./chip-zY6gJxDk.js";import{B as s}from"./button-GtWXUngt.js";import{t as e}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./classname-DoNrELT0.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./navigation-bar-CiGSH7u8.js";import"./visibility-sensor-huP-8j4n.js";import"./index-B-Ksafg0.js";import"./store-DxAqU1JB.js";import"./_setToString-CjYxL0rS.js";import"./react-mAVd1wAc.js";import"./omit-CStFhbPt.js";import"./pick-DbIUGM9R.js";import"./image-D6Yo4ht9.js";import"./typography-DoV67nnS.js";import"./bottom-tab-bar-BsPd0FD7.js";import"./toast-provider-B9k1NBG6.js";import"./carousel-sbzGq2WF.js";import"./embla-carousel-react.esm-CCQjHA-d.js";import"./pagination-Dcazh6R_.js";import"./section-content-pkGNuEs6.js";import"./option-item-BloohEvW.js";import"./index-DRIh_SUo.js";import"./alert-abKmNYys.js";import"./skeleton-Dn8rwbgX.js";import"./label-fI1oWVKU.js";import"./input-wrapper-D_9hAdHZ.js";import"./text-field-CjrgfYOZ.js";import"./number-field-DNj4myBV.js";import"./checkbox-CMpJJxvm.js";import"./radio-t2E8E0Oc.js";import"./date-Ci5dIit0.js";import"./date-picker-BCIW_1-h.js";import"./calendar-CJ5_NxYx.js";import"./search-field-CuiHMy7j.js";import"./text-area-CAmJ2yms.js";import"./avatar-B-jvPnzm.js";import"./badge-Cc9u7jBX.js";import"./switch-BziC1t_8.js";import"./tab-bar-DZ3oOU50.js";import"./rating-DsULci27.js";import"./tooltip-VnA8Hy0S.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")} |
@@ -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-CLEfhyJc.js";import{T as w,S as b,M as c,P as h,a as v}from"./blocks-CpOj9FQ_.js";import{c as e}from"./chip-zY6gJxDk.js";import{t as o}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./classname-DoNrELT0.js";import"./icon-TJ3FHxUI.js";import"./colors-_6nFGM3e.js";import"./navigation-bar-CiGSH7u8.js";import"./visibility-sensor-huP-8j4n.js";import"./index-B-Ksafg0.js";import"./store-DxAqU1JB.js";import"./_setToString-CjYxL0rS.js";import"./react-mAVd1wAc.js";import"./omit-CStFhbPt.js";import"./pick-DbIUGM9R.js";import"./button-GtWXUngt.js";import"./typography-DoV67nnS.js";import"./image-D6Yo4ht9.js";import"./bottom-tab-bar-BsPd0FD7.js";import"./toast-provider-B9k1NBG6.js";import"./carousel-sbzGq2WF.js";import"./embla-carousel-react.esm-CCQjHA-d.js";import"./pagination-Dcazh6R_.js";import"./section-content-pkGNuEs6.js";import"./option-item-BloohEvW.js";import"./index-DRIh_SUo.js";import"./alert-abKmNYys.js";import"./skeleton-Dn8rwbgX.js";import"./label-fI1oWVKU.js";import"./input-wrapper-D_9hAdHZ.js";import"./text-field-CjrgfYOZ.js";import"./number-field-DNj4myBV.js";import"./checkbox-CMpJJxvm.js";import"./radio-t2E8E0Oc.js";import"./date-Ci5dIit0.js";import"./date-picker-BCIW_1-h.js";import"./calendar-CJ5_NxYx.js";import"./search-field-CuiHMy7j.js";import"./text-area-CAmJ2yms.js";import"./avatar-B-jvPnzm.js";import"./badge-Cc9u7jBX.js";import"./switch-BziC1t_8.js";import"./tab-bar-DZ3oOU50.js";import"./rating-DsULci27.js";import"./tooltip-VnA8Hy0S.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")} |
@@ -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-CLEfhyJc.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};