@anoki/fse-ui 1.0.606 → 1.0.608

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 (218) hide show
  1. package/dist/components/ui/AuthorWithImage/AuthorWithImage.css +1 -1
  2. package/dist/components/ui/Carousel/Carousel.css +1 -1
  3. package/dist/index.cjs218.js +1 -1
  4. package/dist/index.cjs225.js +1 -1
  5. package/dist/index.cjs235.js +1 -1
  6. package/dist/index.cjs242.js +1 -1
  7. package/dist/index.cjs249.js +1 -1
  8. package/dist/index.cjs254.js +1 -1
  9. package/dist/index.cjs261.js +1 -1
  10. package/dist/index.cjs269.js +1 -1
  11. package/dist/index.cjs308.js +1 -1
  12. package/dist/index.cjs335.js +1 -1
  13. package/dist/index.cjs336.js +1 -1
  14. package/dist/index.cjs337.js +1 -1
  15. package/dist/index.cjs34.js +1 -1
  16. package/dist/index.cjs34.js.map +1 -1
  17. package/dist/index.cjs344.js +1 -1
  18. package/dist/index.cjs351.js +1 -1
  19. package/dist/index.cjs361.js +1 -1
  20. package/dist/index.cjs362.js +1 -1
  21. package/dist/index.cjs363.js +1 -1
  22. package/dist/index.cjs364.js +2 -0
  23. package/dist/index.cjs364.js.map +1 -0
  24. package/dist/index.cjs365.js +1 -1
  25. package/dist/index.cjs365.js.map +1 -1
  26. package/dist/{index.cjs370.js → index.cjs366.js} +2 -2
  27. package/dist/{index.cjs370.js.map → index.cjs366.js.map} +1 -1
  28. package/dist/{index.cjs371.js → index.cjs367.js} +1 -1
  29. package/dist/{index.cjs371.js.map → index.cjs367.js.map} +1 -1
  30. package/dist/index.cjs368.js +1 -1
  31. package/dist/index.cjs368.js.map +1 -1
  32. package/dist/index.cjs378.js +1 -1
  33. package/dist/index.cjs378.js.map +1 -1
  34. package/dist/index.cjs379.js +1 -1
  35. package/dist/index.cjs379.js.map +1 -1
  36. package/dist/index.cjs380.js +1 -1
  37. package/dist/index.cjs380.js.map +1 -1
  38. package/dist/index.cjs381.js +1 -1
  39. package/dist/index.cjs381.js.map +1 -1
  40. package/dist/index.cjs382.js +1 -1
  41. package/dist/index.cjs382.js.map +1 -1
  42. package/dist/index.cjs383.js +1 -1
  43. package/dist/index.cjs383.js.map +1 -1
  44. package/dist/index.cjs384.js +2 -0
  45. package/dist/index.cjs384.js.map +1 -0
  46. package/dist/index.cjs396.js +27 -1
  47. package/dist/index.cjs396.js.map +1 -1
  48. package/dist/index.cjs397.js +1 -1
  49. package/dist/index.cjs397.js.map +1 -1
  50. package/dist/index.cjs398.js +1 -1
  51. package/dist/index.cjs398.js.map +1 -1
  52. package/dist/index.cjs399.js +1 -27
  53. package/dist/index.cjs399.js.map +1 -1
  54. package/dist/index.cjs400.js +1 -1
  55. package/dist/index.cjs400.js.map +1 -1
  56. package/dist/index.cjs401.js +1 -1
  57. package/dist/index.cjs401.js.map +1 -1
  58. package/dist/index.cjs407.js +1 -1
  59. package/dist/index.cjs407.js.map +1 -1
  60. package/dist/index.cjs408.js +1 -1
  61. package/dist/index.cjs408.js.map +1 -1
  62. package/dist/index.cjs409.js +1 -1
  63. package/dist/index.cjs409.js.map +1 -1
  64. package/dist/index.cjs410.js +1 -1
  65. package/dist/index.cjs410.js.map +1 -1
  66. package/dist/index.cjs411.js +1 -1
  67. package/dist/index.cjs411.js.map +1 -1
  68. package/dist/index.cjs412.js +1 -1
  69. package/dist/index.cjs414.js +1 -1
  70. package/dist/index.cjs414.js.map +1 -1
  71. package/dist/index.cjs415.js +1 -1
  72. package/dist/index.cjs416.js +1 -1
  73. package/dist/index.cjs416.js.map +1 -1
  74. package/dist/index.cjs417.js +1 -1
  75. package/dist/index.cjs417.js.map +1 -1
  76. package/dist/index.cjs418.js +1 -1
  77. package/dist/index.cjs418.js.map +1 -1
  78. package/dist/index.cjs419.js +1 -1
  79. package/dist/index.cjs419.js.map +1 -1
  80. package/dist/index.cjs420.js +1 -1
  81. package/dist/index.cjs420.js.map +1 -1
  82. package/dist/index.cjs421.js +1 -1
  83. package/dist/index.cjs421.js.map +1 -1
  84. package/dist/index.cjs425.js +1 -1
  85. package/dist/index.cjs432.js +1 -1
  86. package/dist/index.cjs434.js +1 -1
  87. package/dist/index.cjs436.js +1 -1
  88. package/dist/index.cjs449.js +38 -1
  89. package/dist/index.cjs449.js.map +1 -1
  90. package/dist/index.cjs450.js +1 -38
  91. package/dist/index.cjs450.js.map +1 -1
  92. package/dist/index.cjs451.js +1 -1
  93. package/dist/index.cjs451.js.map +1 -1
  94. package/dist/index.cjs452.js +1 -1
  95. package/dist/index.cjs452.js.map +1 -1
  96. package/dist/index.cjs453.js +1 -1
  97. package/dist/index.cjs453.js.map +1 -1
  98. package/dist/index.cjs457.js +1 -1
  99. package/dist/index.cjs457.js.map +1 -1
  100. package/dist/index.cjs458.js +1 -1
  101. package/dist/index.cjs458.js.map +1 -1
  102. package/dist/index.cjs459.js +1 -1
  103. package/dist/index.cjs459.js.map +1 -1
  104. package/dist/index.cjs460.js +1 -1
  105. package/dist/index.cjs460.js.map +1 -1
  106. package/dist/index.es218.js +1 -1
  107. package/dist/index.es225.js +3 -3
  108. package/dist/index.es235.js +1 -1
  109. package/dist/index.es242.js +8 -8
  110. package/dist/index.es249.js +1 -1
  111. package/dist/index.es254.js +1 -1
  112. package/dist/index.es261.js +1 -1
  113. package/dist/index.es269.js +2 -2
  114. package/dist/index.es308.js +1 -1
  115. package/dist/index.es335.js +3 -3
  116. package/dist/index.es336.js +1 -1
  117. package/dist/index.es337.js +2 -2
  118. package/dist/index.es34.js +84 -75
  119. package/dist/index.es34.js.map +1 -1
  120. package/dist/index.es344.js +1 -1
  121. package/dist/index.es351.js +1 -1
  122. package/dist/index.es361.js +1 -1
  123. package/dist/index.es362.js +12 -12
  124. package/dist/index.es363.js +1 -1
  125. package/dist/index.es364.js +9 -0
  126. package/dist/index.es364.js.map +1 -0
  127. package/dist/index.es365.js +25 -15
  128. package/dist/index.es365.js.map +1 -1
  129. package/dist/{index.es370.js → index.es366.js} +2 -2
  130. package/dist/{index.es370.js.map → index.es366.js.map} +1 -1
  131. package/dist/{index.es371.js → index.es367.js} +1 -1
  132. package/dist/{index.es371.js.map → index.es367.js.map} +1 -1
  133. package/dist/index.es368.js +15 -6
  134. package/dist/index.es368.js.map +1 -1
  135. package/dist/index.es378.js +116 -126
  136. package/dist/index.es378.js.map +1 -1
  137. package/dist/index.es379.js +134 -13
  138. package/dist/index.es379.js.map +1 -1
  139. package/dist/index.es380.js +13 -14
  140. package/dist/index.es380.js.map +1 -1
  141. package/dist/index.es381.js +14 -8
  142. package/dist/index.es381.js.map +1 -1
  143. package/dist/index.es382.js +9 -50
  144. package/dist/index.es382.js.map +1 -1
  145. package/dist/index.es383.js +49 -52
  146. package/dist/index.es383.js.map +1 -1
  147. package/dist/index.es384.js +56 -0
  148. package/dist/index.es384.js.map +1 -0
  149. package/dist/index.es396.js +3664 -2021
  150. package/dist/index.es396.js.map +1 -1
  151. package/dist/index.es397.js +5 -59
  152. package/dist/index.es397.js.map +1 -1
  153. package/dist/index.es398.js +2 -189
  154. package/dist/index.es398.js.map +1 -1
  155. package/dist/index.es399.js +2019 -3662
  156. package/dist/index.es399.js.map +1 -1
  157. package/dist/index.es400.js +59 -5
  158. package/dist/index.es400.js.map +1 -1
  159. package/dist/index.es401.js +189 -2
  160. package/dist/index.es401.js.map +1 -1
  161. package/dist/index.es407.js +4 -46
  162. package/dist/index.es407.js.map +1 -1
  163. package/dist/index.es408.js +45 -7
  164. package/dist/index.es408.js.map +1 -1
  165. package/dist/index.es409.js +7 -217
  166. package/dist/index.es409.js.map +1 -1
  167. package/dist/index.es410.js +203 -163
  168. package/dist/index.es410.js.map +1 -1
  169. package/dist/index.es411.js +177 -3
  170. package/dist/index.es411.js.map +1 -1
  171. package/dist/index.es412.js +1 -1
  172. package/dist/index.es414.js +8 -131
  173. package/dist/index.es414.js.map +1 -1
  174. package/dist/index.es415.js +1 -1
  175. package/dist/index.es416.js +3 -9
  176. package/dist/index.es416.js.map +1 -1
  177. package/dist/index.es417.js +131 -2
  178. package/dist/index.es417.js.map +1 -1
  179. package/dist/index.es418.js +77 -199
  180. package/dist/index.es418.js.map +1 -1
  181. package/dist/index.es419.js +203 -20
  182. package/dist/index.es419.js.map +1 -1
  183. package/dist/index.es420.js +21 -392
  184. package/dist/index.es420.js.map +1 -1
  185. package/dist/index.es421.js +384 -74
  186. package/dist/index.es421.js.map +1 -1
  187. package/dist/index.es425.js +1 -1
  188. package/dist/index.es432.js +3 -3
  189. package/dist/index.es434.js +1 -1
  190. package/dist/index.es436.js +4 -4
  191. package/dist/index.es449.js +69 -65
  192. package/dist/index.es449.js.map +1 -1
  193. package/dist/index.es450.js +8 -68
  194. package/dist/index.es450.js.map +1 -1
  195. package/dist/index.es451.js +14 -9
  196. package/dist/index.es451.js.map +1 -1
  197. package/dist/index.es452.js +62 -14
  198. package/dist/index.es452.js.map +1 -1
  199. package/dist/index.es453.js +64 -61
  200. package/dist/index.es453.js.map +1 -1
  201. package/dist/index.es457.js +11 -21
  202. package/dist/index.es457.js.map +1 -1
  203. package/dist/index.es458.js +26 -11
  204. package/dist/index.es458.js.map +1 -1
  205. package/dist/index.es459.js +4 -27
  206. package/dist/index.es459.js.map +1 -1
  207. package/dist/index.es460.js +22 -4
  208. package/dist/index.es460.js.map +1 -1
  209. package/package.json +1 -1
  210. package/dist/index.cjs369.js +0 -2
  211. package/dist/index.cjs369.js.map +0 -1
  212. package/dist/index.cjs377.js +0 -2
  213. package/dist/index.cjs377.js.map +0 -1
  214. package/dist/index.es369.js +0 -28
  215. package/dist/index.es369.js.map +0 -1
  216. package/dist/index.es377.js +0 -128
  217. package/dist/index.es377.js.map +0 -1
  218. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs357.js"),v=require("./index.cjs358.js"),M=require("./index.cjs359.js"),R=require("./index.cjs363.js"),B=require("./index.cjs360.js"),V=require("./index.cjs377.js"),z=require("./index.cjs378.js"),K=require("./index.cjs379.js"),E=require("./index.cjs370.js"),x=require("./index.cjs361.js"),U=require("./index.cjs380.js"),Y=require("./index.cjs381.js"),Z=require("./index.cjs382.js"),J=require("./index.cjs383.js"),s=require("./index.cjs196.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var j="Dialog",[S,X]=M.createContextScope(j),[ee,u]=S(j),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f=!1,D]=B.useControllableState({prop:r,defaultProp:i,onChange:o});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:R.useId(),titleId:R.useId(),descriptionId:R.useId(),open:f,onOpenChange:D,onOpenToggle:a.useCallback(()=>D(L=>!L),[D]),modal:c,children:n})};C.displayName=j;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=v.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(E.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=v.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=v.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs357.js"),v=require("./index.cjs358.js"),M=require("./index.cjs359.js"),R=require("./index.cjs363.js"),B=require("./index.cjs360.js"),V=require("./index.cjs378.js"),z=require("./index.cjs379.js"),K=require("./index.cjs380.js"),E=require("./index.cjs366.js"),x=require("./index.cjs361.js"),U=require("./index.cjs381.js"),Y=require("./index.cjs382.js"),Z=require("./index.cjs383.js"),J=require("./index.cjs384.js"),s=require("./index.cjs196.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var j="Dialog",[S,X]=M.createContextScope(j),[ee,u]=S(j),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f=!1,D]=B.useControllableState({prop:r,defaultProp:i,onChange:o});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:R.useId(),titleId:R.useId(),descriptionId:R.useId(),open:f,onOpenChange:D,onOpenToggle:a.useCallback(()=>D(L=>!L),[D]),modal:c,children:n})};C.displayName=j;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=v.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(E.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=v.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=v.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css');const o=require("./index.cjs196.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:e});exports.ConsentModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const o=require("./index.cjs196.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:e});exports.ConsentModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs249.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css');const e=require("./index.cjs196.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const e=require("./index.cjs196.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs254.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css');const e=require("./index.cjs196.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorConfirmModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const e=require("./index.cjs196.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorConfirmModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs261.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),T=require("./index.cjs357.js"),_=require("./index.cjs358.js"),O=require("./index.cjs359.js"),M=require("./index.cjs360.js"),$=require("./index.cjs368.js"),N=require("./index.cjs369.js"),C=require("./index.cjs361.js"),d=require("./index.cjs196.js");function H(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=H(q);var S="Switch",[I,z]=O.createContextScope(S),[B,D]=I(S),v=s.forwardRef((e,o)=>{const{__scopeSwitch:t,name:r,checked:n,defaultChecked:p,required:i,disabled:c,value:a="on",onCheckedChange:b,form:m,...l}=e,[u,R]=s.useState(null),g=_.useComposedRefs(o,f=>R(f)),x=s.useRef(!1),k=u?m||!!u.closest("form"):!0,[h=!1,y]=M.useControllableState({prop:n,defaultProp:p,onChange:b});return d.jsxRuntimeExports.jsxs(B,{scope:t,checked:h,disabled:c,children:[d.jsxRuntimeExports.jsx(C.Primitive.button,{type:"button",role:"switch","aria-checked":h,"aria-required":i,"data-state":P(h),"data-disabled":c?"":void 0,disabled:c,value:a,...l,ref:g,onClick:T.composeEventHandlers(e.onClick,f=>{y(E=>!E),k&&(x.current=f.isPropagationStopped(),x.current||f.stopPropagation())})}),k&&d.jsxRuntimeExports.jsx(A,{control:u,bubbles:!x.current,name:r,value:a,checked:h,required:i,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});v.displayName=S;var j="SwitchThumb",w=s.forwardRef((e,o)=>{const{__scopeSwitch:t,...r}=e,n=D(j,t);return d.jsxRuntimeExports.jsx(C.Primitive.span,{"data-state":P(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:o})});w.displayName=j;var A=e=>{const{control:o,checked:t,bubbles:r=!0,...n}=e,p=s.useRef(null),i=$.usePrevious(t),c=N.useSize(o);return s.useEffect(()=>{const a=p.current,b=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(b,"checked").set;if(i!==t&&l){const u=new Event("click",{bubbles:r});l.call(a,t),a.dispatchEvent(u)}},[i,t,r]),d.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:p,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function P(e){return e?"checked":"unchecked"}var F=v,L=w;exports.Root=F;exports.Switch=v;exports.SwitchThumb=w;exports.Thumb=L;exports.createSwitchScope=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),T=require("./index.cjs357.js"),_=require("./index.cjs358.js"),O=require("./index.cjs359.js"),M=require("./index.cjs360.js"),$=require("./index.cjs364.js"),N=require("./index.cjs365.js"),C=require("./index.cjs361.js"),d=require("./index.cjs196.js");function H(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=H(q);var S="Switch",[I,z]=O.createContextScope(S),[B,D]=I(S),v=s.forwardRef((e,o)=>{const{__scopeSwitch:t,name:r,checked:n,defaultChecked:p,required:i,disabled:c,value:a="on",onCheckedChange:b,form:m,...l}=e,[u,R]=s.useState(null),g=_.useComposedRefs(o,f=>R(f)),x=s.useRef(!1),k=u?m||!!u.closest("form"):!0,[h=!1,y]=M.useControllableState({prop:n,defaultProp:p,onChange:b});return d.jsxRuntimeExports.jsxs(B,{scope:t,checked:h,disabled:c,children:[d.jsxRuntimeExports.jsx(C.Primitive.button,{type:"button",role:"switch","aria-checked":h,"aria-required":i,"data-state":P(h),"data-disabled":c?"":void 0,disabled:c,value:a,...l,ref:g,onClick:T.composeEventHandlers(e.onClick,f=>{y(E=>!E),k&&(x.current=f.isPropagationStopped(),x.current||f.stopPropagation())})}),k&&d.jsxRuntimeExports.jsx(A,{control:u,bubbles:!x.current,name:r,value:a,checked:h,required:i,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});v.displayName=S;var j="SwitchThumb",w=s.forwardRef((e,o)=>{const{__scopeSwitch:t,...r}=e,n=D(j,t);return d.jsxRuntimeExports.jsx(C.Primitive.span,{"data-state":P(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:o})});w.displayName=j;var A=e=>{const{control:o,checked:t,bubbles:r=!0,...n}=e,p=s.useRef(null),i=$.usePrevious(t),c=N.useSize(o);return s.useEffect(()=>{const a=p.current,b=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(b,"checked").set;if(i!==t&&l){const u=new Event("click",{bubbles:r});l.call(a,t),a.dispatchEvent(u)}},[i,t,r]),d.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:p,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function P(e){return e?"checked":"unchecked"}var F=v,L=w;exports.Root=F;exports.Switch=v;exports.SwitchThumb=w;exports.Thumb=L;exports.createSwitchScope=z;
2
2
  //# sourceMappingURL=index.cjs269.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs359.js"),E=require("./index.cjs358.js"),n=require("./index.cjs242.js"),h=require("./index.cjs357.js"),w=require("./index.cjs383.js"),i=require("./index.cjs196.js");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=M(b);var j="AlertDialog",[q,I]=T.createContextScope(j,[n.createDialogScope]),s=n.createDialogScope(),d=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Root,{...r,...t,modal:!0})};d.displayName=j;var $="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=$;var L="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=L;var F="AlertDialogOverlay",D=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Overlay,{...a,...r,ref:o})});D.displayName=F;var c="AlertDialogContent",[G,W]=q(c),Y=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,u=s(t),g=l.useRef(null),P=E.useComposedRefs(o,g),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(G,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...u,...a,ref:P,onOpenAutoFocus:h.composeEventHandlers(a.onOpenAutoFocus,p=>{var y;p.preventDefault(),(y=R.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[i.jsxRuntimeExports.jsx(Y,{children:r}),i.jsxRuntimeExports.jsx(z,{contentRef:g})]})})})});v.displayName=c;var C="AlertDialogTitle",f=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Title,{...a,...r,ref:o})});f.displayName=C;var N="AlertDialogDescription",x=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Description,{...a,...r,ref:o})});x.displayName=N;var k="AlertDialogAction",S=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Close,{...a,...r,ref:o})});S.displayName=k;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=W(O,t),u=s(t),g=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...u,...r,ref:g})});m.displayName=O;var z=({contentRef:e})=>{const o=`\`${c}\` requires a description for the component to be accessible for screen reader users.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs359.js"),E=require("./index.cjs358.js"),n=require("./index.cjs242.js"),h=require("./index.cjs357.js"),w=require("./index.cjs384.js"),i=require("./index.cjs196.js");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=M(b);var j="AlertDialog",[q,I]=T.createContextScope(j,[n.createDialogScope]),s=n.createDialogScope(),d=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Root,{...r,...t,modal:!0})};d.displayName=j;var $="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=$;var L="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=L;var F="AlertDialogOverlay",D=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Overlay,{...a,...r,ref:o})});D.displayName=F;var c="AlertDialogContent",[G,W]=q(c),Y=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,u=s(t),g=l.useRef(null),P=E.useComposedRefs(o,g),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(G,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...u,...a,ref:P,onOpenAutoFocus:h.composeEventHandlers(a.onOpenAutoFocus,p=>{var y;p.preventDefault(),(y=R.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[i.jsxRuntimeExports.jsx(Y,{children:r}),i.jsxRuntimeExports.jsx(z,{contentRef:g})]})})})});v.displayName=c;var C="AlertDialogTitle",f=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Title,{...a,...r,ref:o})});f.displayName=C;var N="AlertDialogDescription",x=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Description,{...a,...r,ref:o})});x.displayName=N;var k="AlertDialogAction",S=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Close,{...a,...r,ref:o})});S.displayName=k;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=W(O,t),u=s(t),g=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...u,...r,ref:g})});m.displayName=O;var z=({contentRef:e})=>{const o=`\`${c}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${c}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index.cjs396.js"),I=require("./index.cjs397.js"),d=require("./index.cjs398.js");function T(){return T=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},T.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(l=>t.push(l)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",B)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:k,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index.cjs399.js"),I=require("./index.cjs400.js"),d=require("./index.cjs401.js");function T(){return T=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},T.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(l=>t.push(l)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",B)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:k,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;
2
2
  //# sourceMappingURL=index.cjs335.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("./index.cjs416.js"),l=require("./index.cjs415.js");function L(x){let{swiper:a,extendParams:C,on:c,emit:g}=x;C({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null};function u(i){let n;return i&&typeof i=="string"&&a.isElement&&(n=a.el.querySelector(i)||a.hostEl.querySelector(i),n)?n:(i&&(typeof i=="string"&&(n=[...document.querySelectorAll(i)]),a.params.uniqueNavElements&&typeof i=="string"&&n&&n.length>1&&a.el.querySelectorAll(i).length===1?n=a.el.querySelector(i):n&&n.length===1&&(n=n[0])),i&&!n?i:n)}function v(i,n){const t=a.params.navigation;i=l.m(i),i.forEach(e=>{e&&(e.classList[n?"add":"remove"](...t.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](t.lockClass))})}function d(){const{nextEl:i,prevEl:n}=a.navigation;if(a.params.loop){v(n,!1),v(i,!1);return}v(n,a.isBeginning&&!a.params.rewind),v(i,a.isEnd&&!a.params.rewind)}function E(i){i.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),g("navigationPrev"))}function h(i){i.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),g("navigationNext"))}function f(){const i=a.params.navigation;if(a.params.navigation=w.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(i.nextEl||i.prevEl))return;let n=u(i.nextEl),t=u(i.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:t}),n=l.m(n),t=l.m(t);const e=(s,p)=>{s&&s.addEventListener("click",p==="next"?h:E),!a.enabled&&s&&s.classList.add(...i.lockClass.split(" "))};n.forEach(s=>e(s,"next")),t.forEach(s=>e(s,"prev"))}function m(){let{nextEl:i,prevEl:n}=a.navigation;i=l.m(i),n=l.m(n);const t=(e,s)=>{e.removeEventListener("click",s==="next"?h:E),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};i.forEach(e=>t(e,"next")),n.forEach(e=>t(e,"prev"))}c("init",()=>{a.params.navigation.enabled===!1?b():(f(),d())}),c("toEdge fromEdge lock unlock",()=>{d()}),c("destroy",()=>{m()}),c("enable disable",()=>{let{nextEl:i,prevEl:n}=a.navigation;if(i=l.m(i),n=l.m(n),a.enabled){d();return}[...i,...n].filter(t=>!!t).forEach(t=>t.classList.add(a.params.navigation.lockClass))}),c("click",(i,n)=>{let{nextEl:t,prevEl:e}=a.navigation;t=l.m(t),e=l.m(e);const s=n.target;let p=e.includes(s)||t.includes(s);if(a.isElement&&!p){const r=n.path||n.composedPath&&n.composedPath();r&&(p=r.find(o=>t.includes(o)||e.includes(o)))}if(a.params.navigation.hideOnClick&&!p){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===s||a.pagination.el.contains(s)))return;let r;t.length?r=t[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(r=e[0].classList.contains(a.params.navigation.hiddenClass)),g(r===!0?"navigationShow":"navigationHide"),[...t,...e].filter(o=>!!o).forEach(o=>o.classList.toggle(a.params.navigation.hiddenClass))}});const k=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),f(),d()},b=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(a.navigation,{enable:k,disable:b,update:d,init:f,destroy:m})}module.exports=L;
1
+ "use strict";const w=require("./index.cjs414.js"),l=require("./index.cjs415.js");function L(x){let{swiper:a,extendParams:C,on:c,emit:g}=x;C({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null};function u(i){let n;return i&&typeof i=="string"&&a.isElement&&(n=a.el.querySelector(i)||a.hostEl.querySelector(i),n)?n:(i&&(typeof i=="string"&&(n=[...document.querySelectorAll(i)]),a.params.uniqueNavElements&&typeof i=="string"&&n&&n.length>1&&a.el.querySelectorAll(i).length===1?n=a.el.querySelector(i):n&&n.length===1&&(n=n[0])),i&&!n?i:n)}function v(i,n){const t=a.params.navigation;i=l.m(i),i.forEach(e=>{e&&(e.classList[n?"add":"remove"](...t.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](t.lockClass))})}function d(){const{nextEl:i,prevEl:n}=a.navigation;if(a.params.loop){v(n,!1),v(i,!1);return}v(n,a.isBeginning&&!a.params.rewind),v(i,a.isEnd&&!a.params.rewind)}function E(i){i.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),g("navigationPrev"))}function h(i){i.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),g("navigationNext"))}function f(){const i=a.params.navigation;if(a.params.navigation=w.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(i.nextEl||i.prevEl))return;let n=u(i.nextEl),t=u(i.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:t}),n=l.m(n),t=l.m(t);const e=(s,p)=>{s&&s.addEventListener("click",p==="next"?h:E),!a.enabled&&s&&s.classList.add(...i.lockClass.split(" "))};n.forEach(s=>e(s,"next")),t.forEach(s=>e(s,"prev"))}function m(){let{nextEl:i,prevEl:n}=a.navigation;i=l.m(i),n=l.m(n);const t=(e,s)=>{e.removeEventListener("click",s==="next"?h:E),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};i.forEach(e=>t(e,"next")),n.forEach(e=>t(e,"prev"))}c("init",()=>{a.params.navigation.enabled===!1?b():(f(),d())}),c("toEdge fromEdge lock unlock",()=>{d()}),c("destroy",()=>{m()}),c("enable disable",()=>{let{nextEl:i,prevEl:n}=a.navigation;if(i=l.m(i),n=l.m(n),a.enabled){d();return}[...i,...n].filter(t=>!!t).forEach(t=>t.classList.add(a.params.navigation.lockClass))}),c("click",(i,n)=>{let{nextEl:t,prevEl:e}=a.navigation;t=l.m(t),e=l.m(e);const s=n.target;let p=e.includes(s)||t.includes(s);if(a.isElement&&!p){const r=n.path||n.composedPath&&n.composedPath();r&&(p=r.find(o=>t.includes(o)||e.includes(o)))}if(a.params.navigation.hideOnClick&&!p){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===s||a.pagination.el.contains(s)))return;let r;t.length?r=t[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(r=e[0].classList.contains(a.params.navigation.hiddenClass)),g(r===!0?"navigationShow":"navigationHide"),[...t,...e].filter(o=>!!o).forEach(o=>o.classList.toggle(a.params.navigation.hiddenClass))}});const k=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),f(),d()},b=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(a.navigation,{enable:k,disable:b,update:d,init:f,destroy:m})}module.exports=L;
2
2
  //# sourceMappingURL=index.cjs336.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const $=require("./index.cjs417.js"),q=require("./index.cjs416.js"),f=require("./index.cjs415.js");function w(S){let{swiper:e,extendParams:H,on:u,emit:v}=S;const d="swiper-pagination";H({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:a=>a,formatFractionTotal:a=>a,bulletClass:`${d}-bullet`,bulletActiveClass:`${d}-bullet-active`,modifierClass:`${d}-`,currentClass:`${d}-current`,totalClass:`${d}-total`,hiddenClass:`${d}-hidden`,progressbarFillClass:`${d}-progressbar-fill`,progressbarOppositeClass:`${d}-progressbar-opposite`,clickableClass:`${d}-clickable`,lockClass:`${d}-lock`,horizontalClass:`${d}-horizontal`,verticalClass:`${d}-vertical`,paginationDisabledClass:`${d}-disabled`}}),e.pagination={el:null,bullets:[]};let b,m=0;function k(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function x(a,s){const{bulletActiveClass:i}=e.params.pagination;a&&(a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&(a.classList.add(`${i}-${s}`),a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&a.classList.add(`${i}-${s}-${s}`)))}function I(a,s,i){if(a=a%i,s=s%i,s===a+1)return"next";if(s===a-1)return"previous"}function D(a){const s=a.target.closest($.c(e.params.pagination.bulletClass));if(!s)return;a.preventDefault();const i=f.h(s)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=I(e.realIndex,i,e.slides.length);t==="next"?e.slideNext():t==="previous"?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i)}function h(){const a=e.rtl,s=e.params.pagination;if(k())return;let i=e.pagination.el;i=f.m(i);let t,c;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,z=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,t=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(t=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,t=e.activeIndex||0),s.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const l=e.pagination.bullets;let g,p,L;if(s.dynamicBullets&&(b=f.f(l[0],e.isHorizontal()?"width":"height"),i.forEach(n=>{n.style[e.isHorizontal()?"width":"height"]=`${b*(s.dynamicMainBullets+4)}px`}),s.dynamicMainBullets>1&&c!==void 0&&(m+=t-(c||0),m>s.dynamicMainBullets-1?m=s.dynamicMainBullets-1:m<0&&(m=0)),g=Math.max(t-m,0),p=g+(Math.min(l.length,s.dynamicMainBullets)-1),L=(p+g)/2),l.forEach(n=>{const r=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(o=>`${s.bulletActiveClass}${o}`)].map(o=>typeof o=="string"&&o.includes(" ")?o.split(" "):o).flat();n.classList.remove(...r)}),i.length>1)l.forEach(n=>{const r=f.h(n);r===t?n.classList.add(...s.bulletActiveClass.split(" ")):e.isElement&&n.setAttribute("part","bullet"),s.dynamicBullets&&(r>=g&&r<=p&&n.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),r===g&&x(n,"prev"),r===p&&x(n,"next"))});else{const n=l[t];if(n&&n.classList.add(...s.bulletActiveClass.split(" ")),e.isElement&&l.forEach((r,o)=>{r.setAttribute("part",o===t?"bullet-active":"bullet")}),s.dynamicBullets){const r=l[g],o=l[p];for(let y=g;y<=p;y+=1)l[y]&&l[y].classList.add(...`${s.bulletActiveClass}-main`.split(" "));x(r,"prev"),x(o,"next")}}if(s.dynamicBullets){const n=Math.min(l.length,s.dynamicMainBullets+4),r=(b*n-b)/2-L*b,o=a?"right":"left";l.forEach(y=>{y.style[e.isHorizontal()?o:"top"]=`${r}px`})}}i.forEach((l,g)=>{if(s.type==="fraction"&&(l.querySelectorAll($.c(s.currentClass)).forEach(p=>{p.textContent=s.formatFractionCurrent(t+1)}),l.querySelectorAll($.c(s.totalClass)).forEach(p=>{p.textContent=s.formatFractionTotal(z)})),s.type==="progressbar"){let p;s.progressbarOpposite?p=e.isHorizontal()?"vertical":"horizontal":p=e.isHorizontal()?"horizontal":"vertical";const L=(t+1)/z;let n=1,r=1;p==="horizontal"?n=L:r=L,l.querySelectorAll($.c(s.progressbarFillClass)).forEach(o=>{o.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${r})`,o.style.transitionDuration=`${e.params.speed}ms`})}s.type==="custom"&&s.renderCustom?(l.innerHTML=s.renderCustom(e,t+1,z),g===0&&v("paginationRender",l)):(g===0&&v("paginationRender",l),v("paginationUpdate",l)),e.params.watchOverflow&&e.enabled&&l.classList[e.isLocked?"add":"remove"](s.lockClass)})}function B(){const a=e.params.pagination;if(k())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=f.m(i);let t="";if(a.type==="bullets"){let c=e.params.loop?Math.ceil(s/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&c>s&&(c=s);for(let C=0;C<c;C+=1)a.renderBullet?t+=a.renderBullet.call(e,C,a.bulletClass):t+=`<${a.bulletElement} ${e.isElement?'part="bullet"':""} class="${a.bulletClass}"></${a.bulletElement}>`}a.type==="fraction"&&(a.renderFraction?t=a.renderFraction.call(e,a.currentClass,a.totalClass):t=`<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`),a.type==="progressbar"&&(a.renderProgressbar?t=a.renderProgressbar.call(e,a.progressbarFillClass):t=`<span class="${a.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(c=>{a.type!=="custom"&&(c.innerHTML=t||""),a.type==="bullets"&&e.pagination.bullets.push(...c.querySelectorAll($.c(a.bulletClass)))}),a.type!=="custom"&&v("paginationRender",i[0])}function A(){e.params.pagination=q.c(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const a=e.params.pagination;if(!a.el)return;let s;typeof a.el=="string"&&e.isElement&&(s=e.el.querySelector(a.el)),!s&&typeof a.el=="string"&&(s=[...document.querySelectorAll(a.el)]),s||(s=a.el),!(!s||s.length===0)&&(e.params.uniqueNavElements&&typeof a.el=="string"&&Array.isArray(s)&&s.length>1&&(s=[...e.el.querySelectorAll(a.el)],s.length>1&&(s=s.find(i=>f.a(i,".swiper")[0]===e.el))),Array.isArray(s)&&s.length===1&&(s=s[0]),Object.assign(e.pagination,{el:s}),s=f.m(s),s.forEach(i=>{a.type==="bullets"&&a.clickable&&i.classList.add(...(a.clickableClass||"").split(" ")),i.classList.add(a.modifierClass+a.type),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.type==="bullets"&&a.dynamicBullets&&(i.classList.add(`${a.modifierClass}${a.type}-dynamic`),m=0,a.dynamicMainBullets<1&&(a.dynamicMainBullets=1)),a.type==="progressbar"&&a.progressbarOpposite&&i.classList.add(a.progressbarOppositeClass),a.clickable&&i.addEventListener("click",D),e.enabled||i.classList.add(a.lockClass)}))}function M(){const a=e.params.pagination;if(k())return;let s=e.pagination.el;s&&(s=f.m(s),s.forEach(i=>{i.classList.remove(a.hiddenClass),i.classList.remove(a.modifierClass+a.type),i.classList.remove(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.clickable&&(i.classList.remove(...(a.clickableClass||"").split(" ")),i.removeEventListener("click",D))})),e.pagination.bullets&&e.pagination.bullets.forEach(i=>i.classList.remove(...a.bulletActiveClass.split(" ")))}u("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const a=e.params.pagination;let{el:s}=e.pagination;s=f.m(s),s.forEach(i=>{i.classList.remove(a.horizontalClass,a.verticalClass),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass)})}),u("init",()=>{e.params.pagination.enabled===!1?P():(A(),B(),h())}),u("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),u("snapIndexChange",()=>{h()}),u("snapGridLengthChange",()=>{B(),h()}),u("destroy",()=>{M()}),u("enable disable",()=>{let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),u("lock unlock",()=>{h()}),u("click",(a,s)=>{const i=s.target,t=f.m(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&t&&t.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const c=t[0].classList.contains(e.params.pagination.hiddenClass);v(c===!0?"paginationShow":"paginationHide"),t.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const O=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.remove(e.params.pagination.paginationDisabledClass))),A(),B(),h()},P=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.add(e.params.pagination.paginationDisabledClass))),M()};Object.assign(e.pagination,{enable:O,disable:P,render:B,update:h,init:A,destroy:M})}module.exports=w;
1
+ "use strict";const $=require("./index.cjs416.js"),q=require("./index.cjs414.js"),f=require("./index.cjs415.js");function w(S){let{swiper:e,extendParams:H,on:u,emit:v}=S;const d="swiper-pagination";H({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:a=>a,formatFractionTotal:a=>a,bulletClass:`${d}-bullet`,bulletActiveClass:`${d}-bullet-active`,modifierClass:`${d}-`,currentClass:`${d}-current`,totalClass:`${d}-total`,hiddenClass:`${d}-hidden`,progressbarFillClass:`${d}-progressbar-fill`,progressbarOppositeClass:`${d}-progressbar-opposite`,clickableClass:`${d}-clickable`,lockClass:`${d}-lock`,horizontalClass:`${d}-horizontal`,verticalClass:`${d}-vertical`,paginationDisabledClass:`${d}-disabled`}}),e.pagination={el:null,bullets:[]};let b,m=0;function k(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function x(a,s){const{bulletActiveClass:i}=e.params.pagination;a&&(a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&(a.classList.add(`${i}-${s}`),a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&a.classList.add(`${i}-${s}-${s}`)))}function I(a,s,i){if(a=a%i,s=s%i,s===a+1)return"next";if(s===a-1)return"previous"}function D(a){const s=a.target.closest($.c(e.params.pagination.bulletClass));if(!s)return;a.preventDefault();const i=f.h(s)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=I(e.realIndex,i,e.slides.length);t==="next"?e.slideNext():t==="previous"?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i)}function h(){const a=e.rtl,s=e.params.pagination;if(k())return;let i=e.pagination.el;i=f.m(i);let t,c;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,z=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,t=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(t=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,t=e.activeIndex||0),s.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const l=e.pagination.bullets;let g,p,L;if(s.dynamicBullets&&(b=f.f(l[0],e.isHorizontal()?"width":"height"),i.forEach(n=>{n.style[e.isHorizontal()?"width":"height"]=`${b*(s.dynamicMainBullets+4)}px`}),s.dynamicMainBullets>1&&c!==void 0&&(m+=t-(c||0),m>s.dynamicMainBullets-1?m=s.dynamicMainBullets-1:m<0&&(m=0)),g=Math.max(t-m,0),p=g+(Math.min(l.length,s.dynamicMainBullets)-1),L=(p+g)/2),l.forEach(n=>{const r=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(o=>`${s.bulletActiveClass}${o}`)].map(o=>typeof o=="string"&&o.includes(" ")?o.split(" "):o).flat();n.classList.remove(...r)}),i.length>1)l.forEach(n=>{const r=f.h(n);r===t?n.classList.add(...s.bulletActiveClass.split(" ")):e.isElement&&n.setAttribute("part","bullet"),s.dynamicBullets&&(r>=g&&r<=p&&n.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),r===g&&x(n,"prev"),r===p&&x(n,"next"))});else{const n=l[t];if(n&&n.classList.add(...s.bulletActiveClass.split(" ")),e.isElement&&l.forEach((r,o)=>{r.setAttribute("part",o===t?"bullet-active":"bullet")}),s.dynamicBullets){const r=l[g],o=l[p];for(let y=g;y<=p;y+=1)l[y]&&l[y].classList.add(...`${s.bulletActiveClass}-main`.split(" "));x(r,"prev"),x(o,"next")}}if(s.dynamicBullets){const n=Math.min(l.length,s.dynamicMainBullets+4),r=(b*n-b)/2-L*b,o=a?"right":"left";l.forEach(y=>{y.style[e.isHorizontal()?o:"top"]=`${r}px`})}}i.forEach((l,g)=>{if(s.type==="fraction"&&(l.querySelectorAll($.c(s.currentClass)).forEach(p=>{p.textContent=s.formatFractionCurrent(t+1)}),l.querySelectorAll($.c(s.totalClass)).forEach(p=>{p.textContent=s.formatFractionTotal(z)})),s.type==="progressbar"){let p;s.progressbarOpposite?p=e.isHorizontal()?"vertical":"horizontal":p=e.isHorizontal()?"horizontal":"vertical";const L=(t+1)/z;let n=1,r=1;p==="horizontal"?n=L:r=L,l.querySelectorAll($.c(s.progressbarFillClass)).forEach(o=>{o.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${r})`,o.style.transitionDuration=`${e.params.speed}ms`})}s.type==="custom"&&s.renderCustom?(l.innerHTML=s.renderCustom(e,t+1,z),g===0&&v("paginationRender",l)):(g===0&&v("paginationRender",l),v("paginationUpdate",l)),e.params.watchOverflow&&e.enabled&&l.classList[e.isLocked?"add":"remove"](s.lockClass)})}function B(){const a=e.params.pagination;if(k())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=f.m(i);let t="";if(a.type==="bullets"){let c=e.params.loop?Math.ceil(s/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&c>s&&(c=s);for(let C=0;C<c;C+=1)a.renderBullet?t+=a.renderBullet.call(e,C,a.bulletClass):t+=`<${a.bulletElement} ${e.isElement?'part="bullet"':""} class="${a.bulletClass}"></${a.bulletElement}>`}a.type==="fraction"&&(a.renderFraction?t=a.renderFraction.call(e,a.currentClass,a.totalClass):t=`<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`),a.type==="progressbar"&&(a.renderProgressbar?t=a.renderProgressbar.call(e,a.progressbarFillClass):t=`<span class="${a.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(c=>{a.type!=="custom"&&(c.innerHTML=t||""),a.type==="bullets"&&e.pagination.bullets.push(...c.querySelectorAll($.c(a.bulletClass)))}),a.type!=="custom"&&v("paginationRender",i[0])}function A(){e.params.pagination=q.c(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const a=e.params.pagination;if(!a.el)return;let s;typeof a.el=="string"&&e.isElement&&(s=e.el.querySelector(a.el)),!s&&typeof a.el=="string"&&(s=[...document.querySelectorAll(a.el)]),s||(s=a.el),!(!s||s.length===0)&&(e.params.uniqueNavElements&&typeof a.el=="string"&&Array.isArray(s)&&s.length>1&&(s=[...e.el.querySelectorAll(a.el)],s.length>1&&(s=s.find(i=>f.a(i,".swiper")[0]===e.el))),Array.isArray(s)&&s.length===1&&(s=s[0]),Object.assign(e.pagination,{el:s}),s=f.m(s),s.forEach(i=>{a.type==="bullets"&&a.clickable&&i.classList.add(...(a.clickableClass||"").split(" ")),i.classList.add(a.modifierClass+a.type),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.type==="bullets"&&a.dynamicBullets&&(i.classList.add(`${a.modifierClass}${a.type}-dynamic`),m=0,a.dynamicMainBullets<1&&(a.dynamicMainBullets=1)),a.type==="progressbar"&&a.progressbarOpposite&&i.classList.add(a.progressbarOppositeClass),a.clickable&&i.addEventListener("click",D),e.enabled||i.classList.add(a.lockClass)}))}function M(){const a=e.params.pagination;if(k())return;let s=e.pagination.el;s&&(s=f.m(s),s.forEach(i=>{i.classList.remove(a.hiddenClass),i.classList.remove(a.modifierClass+a.type),i.classList.remove(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.clickable&&(i.classList.remove(...(a.clickableClass||"").split(" ")),i.removeEventListener("click",D))})),e.pagination.bullets&&e.pagination.bullets.forEach(i=>i.classList.remove(...a.bulletActiveClass.split(" ")))}u("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const a=e.params.pagination;let{el:s}=e.pagination;s=f.m(s),s.forEach(i=>{i.classList.remove(a.horizontalClass,a.verticalClass),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass)})}),u("init",()=>{e.params.pagination.enabled===!1?P():(A(),B(),h())}),u("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),u("snapIndexChange",()=>{h()}),u("snapGridLengthChange",()=>{B(),h()}),u("destroy",()=>{M()}),u("enable disable",()=>{let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),u("lock unlock",()=>{h()}),u("click",(a,s)=>{const i=s.target,t=f.m(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&t&&t.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const c=t[0].classList.contains(e.params.pagination.hiddenClass);v(c===!0?"paginationShow":"paginationHide"),t.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const O=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.remove(e.params.pagination.paginationDisabledClass))),A(),B(),h()},P=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.add(e.params.pagination.paginationDisabledClass))),M()};Object.assign(e.pagination,{enable:O,disable:P,render:B,update:h,init:A,destroy:M})}module.exports=w;
2
2
  //# sourceMappingURL=index.cjs337.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AuthorWithImage/AuthorWithImage.css');const e=require("./index.cjs196.js"),i=require("react"),$=require("./index.cjs94.js");;/* empty css */const B=require("./index.cjs234.js"),k=require("./index.cjs235.js"),D=require("./index.cjs236.js"),L=require("./index.cjs237.js"),u=require("./index.cjs9.js"),M=require("./index.cjs238.js"),m=require("./index.cjs60.js"),S=require("./index.cjs170.js"),U=require("./index.cjs169.js"),F=require("./index.cjs120.js"),P=require("./index.cjs10.js"),O=require("./index.cjs26.js"),W=({service:t,ImageComponent:s="img",imageProps:a={},imagePropsCard:d={},variant:p="service",publishedLabel:j="Pubblicato",readingTimeLabel:c="Tempo di lettura",readingMinuteLabel:g="min",tagsLabelTitle:R="Argomenti trattati",shareLabel:h="Condividi",copyLinkLabel:E="Copia link",copiedTextLabel:T="Link copiato",isPreview:f=!1})=>{var r,o,l;const{copyToClipboard:y,isCopied:I}=k.useCopyToClipboardCurrentPage(),{openAlert:N}=D.useAlertDialog(),b=i.useMemo(()=>t!=null&&t.updatedBy?L.getFullNameInitials(t.updatedBy.name??"",t.updatedBy.surname??""):"-",[t.updatedBy]),[q,w]=i.useMemo(()=>{var n;return t.previewImageTitle?M.splitInTwo((n=t.previewImageTitle)==null?void 0:n.toUpperCase()):["",""]},[t]),C=i.useMemo(()=>{var x;const n=t.readingTime??"0";return((x=Math.ceil(Number(n)/60))==null?void 0:x.toString())||"0"},[t]),A=()=>t.previewImageUrl?p==="event"?e.jsxRuntimeExports.jsxs("div",{className:"event-image-container",children:[e.jsxRuntimeExports.jsx(s,{alt:`Evento ${t.name} background`,src:t.previewImageUrl,className:"event-image",...a}),e.jsxRuntimeExports.jsx("div",{className:"event-content-overlay w-full",children:e.jsxRuntimeExports.jsxs(u.Row,{gap:"x24",alignItems:"end",children:[e.jsxRuntimeExports.jsx(s,{src:t.previewImageUrl,alt:`Evento ${t.name}`,...d}),e.jsxRuntimeExports.jsx("div",{style:{width:"437px"},children:e.jsxRuntimeExports.jsxs(P.Col,{gap:"x32",children:[e.jsxRuntimeExports.jsx(O.CardCategory,{title:t.eventTitle??"-",className:"w-full",description:t.eventDescriptionTitle??"-",description2:t.eventDescription??"-",classNameTitle:"text-slate-20 fs-5 md-fs-custom-2",classNameDescriptionTitle:"text-slate-28 fw-bold fs-6 md-fs-custom"}),e.jsxRuntimeExports.jsx(F.Tags,{title:R,items:t.tags??[]})]})})]})})]}):e.jsxRuntimeExports.jsxs("div",{className:f?"service-detail-image":"fullscreen-image-container",children:[e.jsxRuntimeExports.jsx(s,{alt:`Service ${t.name} image`,src:t.previewImageUrl,style:{aspectRatio:21/9},...a}),e.jsxRuntimeExports.jsxs("p",{className:"short-title",children:[e.jsxRuntimeExports.jsx("span",{children:q}),e.jsxRuntimeExports.jsx("span",{children:w})]})]}):null;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:"action-author",children:[e.jsxRuntimeExports.jsx($.AuthorBlock,{authorName:(r=t==null?void 0:t.updatedBy)!=null&&r.name?`${(o=t==null?void 0:t.updatedBy)==null?void 0:o.name} ${(l=t==null?void 0:t.updatedBy)==null?void 0:l.surname}`:"-",avatar:{initials:b},publishedLabel:j,publishedDate:B.fromISODateToDateFormatted(t.updatedAt??"","it")??"-",readingTimeLabel:c,readingTimeValue:C,readingMinuteLabel:g}),e.jsxRuntimeExports.jsxs(u.Row,{pb:"x16",gap:"x8",className:"action-link",children:[e.jsxRuntimeExports.jsx(m.ActionIconText,{textLabel:h,icon:e.jsxRuntimeExports.jsx(S.ShareLink,{}),handleAction:N,classNameText:"fw-bold"}),e.jsxRuntimeExports.jsx("div",{className:"share-divider",children:e.jsxRuntimeExports.jsx(m.ActionIconText,{textLabel:I?T:E,icon:e.jsxRuntimeExports.jsx(U.CopyLink,{}),handleAction:y,classNameText:"fw-bold"})})]})]}),A()]})};exports.AuthorWithImage=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AuthorWithImage/AuthorWithImage.css');const e=require("./index.cjs196.js"),i=require("react"),$=require("./index.cjs94.js");;/* empty css */const B=require("./index.cjs234.js"),k=require("./index.cjs235.js"),D=require("./index.cjs236.js"),L=require("./index.cjs237.js"),m=require("./index.cjs9.js"),M=require("./index.cjs238.js"),d=require("./index.cjs60.js"),S=require("./index.cjs170.js"),U=require("./index.cjs169.js"),F=require("./index.cjs120.js"),O=require("./index.cjs10.js"),P=require("./index.cjs26.js"),W=({service:t,ImageComponent:s="img",imageProps:a={},imagePropsCard:p={},variant:c="service",publishedLabel:j="Pubblicato",readingTimeLabel:g="Tempo di lettura",readingMinuteLabel:h="min",tagsLabelTitle:R="Argomenti trattati",shareLabel:E="Condividi",copyLinkLabel:T="Copia link",copiedTextLabel:f="Link copiato",isPreview:r=!1})=>{var o,l,x;const{copyToClipboard:y,isCopied:I}=k.useCopyToClipboardCurrentPage(),{openAlert:N}=D.useAlertDialog(),b=i.useMemo(()=>t!=null&&t.updatedBy?L.getFullNameInitials(t.updatedBy.name??"",t.updatedBy.surname??""):"-",[t.updatedBy]),[q,w]=i.useMemo(()=>{var n;return t.previewImageTitle?M.splitInTwo((n=t.previewImageTitle)==null?void 0:n.toUpperCase()):["",""]},[t]),C=i.useMemo(()=>{var u;const n=t.readingTime??"0";return((u=Math.ceil(Number(n)/60))==null?void 0:u.toString())||"0"},[t]),A=()=>t.previewImageUrl?c==="event"?e.jsxRuntimeExports.jsxs("div",{className:r?"service-detail-image":"event-image-container",children:[e.jsxRuntimeExports.jsx(s,{alt:`Evento ${t.name} background`,src:t.previewImageUrl,className:"event-image",style:{aspectRatio:21/9},...a}),e.jsxRuntimeExports.jsx("div",{className:"event-content-overlay w-full",children:e.jsxRuntimeExports.jsxs(m.Row,{gap:"x24",alignItems:"end",children:[e.jsxRuntimeExports.jsx(s,{src:t.previewImageUrl,alt:`Evento ${t.name}`,width:668,height:351,...p}),e.jsxRuntimeExports.jsx("div",{style:{width:"437px"},children:e.jsxRuntimeExports.jsxs(O.Col,{gap:"x32",children:[e.jsxRuntimeExports.jsx(P.CardCategory,{title:t.eventTitle??"-",className:"w-full",description:t.eventDescriptionTitle??"-",description2:t.eventDescription??"-",classNameTitle:"text-slate-20 fs-5 md-fs-custom-2",classNameDescriptionTitle:"text-slate-28 fw-bold fs-6 md-fs-custom"}),e.jsxRuntimeExports.jsx(F.Tags,{title:R,items:t.tags??[]})]})})]})})]}):e.jsxRuntimeExports.jsxs("div",{className:r?"service-detail-image":"fullscreen-image-container",children:[e.jsxRuntimeExports.jsx(s,{alt:`Service ${t.name} image`,src:t.previewImageUrl,style:{aspectRatio:21/9},...a}),e.jsxRuntimeExports.jsxs("p",{className:"short-title",children:[e.jsxRuntimeExports.jsx("span",{children:q}),e.jsxRuntimeExports.jsx("span",{children:w})]})]}):null;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:"action-author",children:[e.jsxRuntimeExports.jsx($.AuthorBlock,{authorName:(o=t==null?void 0:t.updatedBy)!=null&&o.name?`${(l=t==null?void 0:t.updatedBy)==null?void 0:l.name} ${(x=t==null?void 0:t.updatedBy)==null?void 0:x.surname}`:"-",avatar:{initials:b},publishedLabel:j,publishedDate:B.fromISODateToDateFormatted(t.updatedAt??"","it")??"-",readingTimeLabel:g,readingTimeValue:C,readingMinuteLabel:h}),e.jsxRuntimeExports.jsxs(m.Row,{pb:"x16",gap:"x8",className:"action-link",children:[e.jsxRuntimeExports.jsx(d.ActionIconText,{textLabel:E,icon:e.jsxRuntimeExports.jsx(S.ShareLink,{}),handleAction:N,classNameText:"fw-bold"}),e.jsxRuntimeExports.jsx("div",{className:"share-divider",children:e.jsxRuntimeExports.jsx(d.ActionIconText,{textLabel:I?f:T,icon:e.jsxRuntimeExports.jsx(U.CopyLink,{}),handleAction:y,classNameText:"fw-bold"})})]})]}),A()]})};exports.AuthorWithImage=W;
2
2
  //# sourceMappingURL=index.cjs34.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/AuthorWithImage/index.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { AuthorBlock } from \"../AuthorBlock\";\nimport \"./AuthorWithImage.scss\";\nimport { fromISODateToDateFormatted } from \"@/utils/dates\";\nimport { useCopyToClipboardCurrentPage } from \"@/hooks/useCopyToClipboardCurrentPage\";\nimport { useAlertDialog } from \"@/hooks/useAlert\";\nimport { getFullNameInitials } from \"@/utils/getFullNameInitials\";\nimport { Row } from \"../Row\";\nimport { CopyLink, ShareLink } from \"@/icons\";\nimport { splitInTwo } from \"@/utils/splitInTwo\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport { CardCategory, Col } from \"@/components\";\nimport { Tags } from \"@/sections\";\n\nexport type VariantType = \"service\" | \"event\" | \"insight\";\n\ninterface AuthorWithImageProps {\n service: {\n name: string;\n previewImageUrl?: string;\n previewImageTitle?: string;\n updatedBy?: {\n name?: string;\n surname?: string;\n };\n updatedAt?: string;\n readingTime?: string;\n eventTitle?: string;\n eventDescription?: string;\n eventDescriptionTitle?: string;\n tags?: string[];\n };\n publishedLabel?: string;\n readingTimeLabel?: string;\n readingMinuteLabel?: string;\n tagsLabelTitle?: string;\n shareLabel?: string;\n copyLinkLabel?: string;\n copiedTextLabel?: string;\n ImageComponent?: \"img\" | React.ComponentType<any>;\n imageProps?: Record<string, any>;\n imagePropsCard?: Record<string, any>;\n variant?: VariantType;\n isPreview?: boolean;\n}\n\nexport const AuthorWithImage = ({\n service,\n ImageComponent = \"img\",\n imageProps = {},\n imagePropsCard = {},\n variant = \"service\",\n publishedLabel = \"Pubblicato\",\n readingTimeLabel = \"Tempo di lettura\",\n readingMinuteLabel = \"min\",\n tagsLabelTitle = \"Argomenti trattati\",\n shareLabel = \"Condividi\",\n copyLinkLabel = \"Copia link\",\n copiedTextLabel = \"Link copiato\",\n isPreview = false,\n}: AuthorWithImageProps) => {\n const { copyToClipboard, isCopied } = useCopyToClipboardCurrentPage();\n const { openAlert } = useAlertDialog();\n const avatarInitials = useMemo(() => {\n if (!service?.updatedBy) return \"-\";\n return getFullNameInitials(\n service.updatedBy.name ?? \"\",\n service.updatedBy.surname ?? \"\",\n );\n }, [service.updatedBy]);\n\n const [firstTitleLine, secondTitleLine] = useMemo(() => {\n if (service.previewImageTitle) {\n return splitInTwo(service.previewImageTitle?.toUpperCase());\n }\n return [\"\", \"\"];\n }, [service]);\n\n const readingTimeInMinutes = useMemo(() => {\n const readingTime = service.readingTime ?? \"0\";\n return Math.ceil(Number(readingTime) / 60)?.toString() || \"0\";\n }, [service]);\n\n const renderImage = () => {\n if (!service.previewImageUrl) return null;\n\n if (variant === \"event\") {\n return (\n <div className=\"event-image-container\">\n <ImageComponent\n alt={`Evento ${service.name} background`}\n src={service.previewImageUrl}\n className=\"event-image\"\n {...imageProps}\n />\n <div className={\"event-content-overlay w-full\"}>\n <Row gap={\"x24\"} alignItems={\"end\"}>\n <ImageComponent\n src={service.previewImageUrl}\n alt={`Evento ${service.name}`}\n {...imagePropsCard}\n />\n <div style={{ width: \"437px\" }}>\n <Col gap={\"x32\"}>\n <CardCategory\n title={service.eventTitle ?? \"-\"}\n className={\"w-full\"}\n description={service.eventDescriptionTitle ?? \"-\"}\n description2={service.eventDescription ?? \"-\"}\n classNameTitle={\"text-slate-20 fs-5 md-fs-custom-2\"}\n classNameDescriptionTitle={\n \"text-slate-28 fw-bold fs-6 md-fs-custom\"\n }\n />\n <Tags title={tagsLabelTitle} items={service.tags ?? []} />\n </Col>\n </div>\n </Row>\n </div>\n </div>\n );\n }\n\n return (\n <div\n className={\n isPreview ? \"service-detail-image\" : \"fullscreen-image-container\"\n }\n >\n <ImageComponent\n alt={`Service ${service.name} image`}\n src={service.previewImageUrl}\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n <p className={\"short-title\"}>\n <span>{firstTitleLine}</span>\n <span>{secondTitleLine}</span>\n </p>\n </div>\n );\n };\n\n return (\n <>\n <div className={\"action-author\"}>\n <AuthorBlock\n authorName={\n service?.updatedBy?.name\n ? `${service?.updatedBy?.name} ${service?.updatedBy?.surname}`\n : \"-\"\n }\n avatar={{ initials: avatarInitials }}\n publishedLabel={publishedLabel}\n publishedDate={\n fromISODateToDateFormatted(service.updatedAt ?? \"\", \"it\") ?? \"-\"\n }\n readingTimeLabel={readingTimeLabel}\n readingTimeValue={readingTimeInMinutes}\n readingMinuteLabel={readingMinuteLabel}\n />\n <Row pb={\"x16\"} gap={\"x8\"} className={\"action-link\"}>\n <ActionIconText\n textLabel={shareLabel}\n icon={<ShareLink />}\n handleAction={openAlert}\n classNameText={\"fw-bold\"}\n />\n <div className={\"share-divider\"}>\n <ActionIconText\n textLabel={isCopied ? copiedTextLabel : copyLinkLabel}\n icon={<CopyLink />}\n handleAction={copyToClipboard}\n classNameText={\"fw-bold\"}\n />\n </div>\n </Row>\n </div>\n\n {renderImage()}\n </>\n );\n};\n"],"names":["AuthorWithImage","service","ImageComponent","imageProps","imagePropsCard","variant","publishedLabel","readingTimeLabel","readingMinuteLabel","tagsLabelTitle","shareLabel","copyLinkLabel","copiedTextLabel","isPreview","copyToClipboard","isCopied","useCopyToClipboardCurrentPage","openAlert","useAlertDialog","avatarInitials","useMemo","getFullNameInitials","firstTitleLine","secondTitleLine","splitInTwo","_a","readingTimeInMinutes","readingTime","renderImage","jsxs","jsx","Row","Col","CardCategory","Tags","Fragment","AuthorBlock","_b","_c","fromISODateToDateFormatted","ActionIconText","ShareLink","CopyLink"],"mappings":"wjBA8CaA,EAAkB,CAAC,CAC9B,QAAAC,EACA,eAAAC,EAAiB,MACjB,WAAAC,EAAa,CAAC,EACd,eAAAC,EAAiB,CAAC,EAClB,QAAAC,EAAU,UACV,eAAAC,EAAiB,aACjB,iBAAAC,EAAmB,mBACnB,mBAAAC,EAAqB,MACrB,eAAAC,EAAiB,qBACjB,WAAAC,EAAa,YACb,cAAAC,EAAgB,aAChB,gBAAAC,EAAkB,eAClB,UAAAC,EAAY,EACd,IAA4B,WAC1B,KAAM,CAAE,gBAAAC,EAAiB,SAAAC,CAAS,EAAIC,gCAA8B,EAC9D,CAAE,UAAAC,CAAU,EAAIC,iBAAe,EAC/BC,EAAiBC,EAAAA,QAAQ,IACxBnB,GAAA,MAAAA,EAAS,UACPoB,EAAA,oBACLpB,EAAQ,UAAU,MAAQ,GAC1BA,EAAQ,UAAU,SAAW,EAC/B,EAJgC,IAK/B,CAACA,EAAQ,SAAS,CAAC,EAEhB,CAACqB,EAAgBC,CAAe,EAAIH,UAAQ,IAAM,OACtD,OAAInB,EAAQ,kBACHuB,cAAWC,EAAAxB,EAAQ,oBAAR,YAAAwB,EAA2B,aAAa,EAErD,CAAC,GAAI,EAAE,CAAA,EACb,CAACxB,CAAO,CAAC,EAENyB,EAAuBN,EAAAA,QAAQ,IAAM,OACnC,MAAAO,EAAc1B,EAAQ,aAAe,IACpC,QAAAwB,EAAA,KAAK,KAAK,OAAOE,CAAW,EAAI,EAAE,IAAlC,YAAAF,EAAqC,aAAc,GAAA,EACzD,CAACxB,CAAO,CAAC,EAEN2B,EAAc,IACb3B,EAAQ,gBAETI,IAAY,QAEZwB,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,wBACb,SAAA,CAAAC,EAAA,kBAAA,IAAC5B,EAAA,CACC,IAAK,UAAUD,EAAQ,IAAI,cAC3B,IAAKA,EAAQ,gBACb,UAAU,cACT,GAAGE,CAAA,CACN,EACA2B,EAAAA,kBAAAA,IAAC,OAAI,UAAW,+BACd,kCAACC,EAAI,IAAA,CAAA,IAAK,MAAO,WAAY,MAC3B,SAAA,CAAAD,EAAA,kBAAA,IAAC5B,EAAA,CACC,IAAKD,EAAQ,gBACb,IAAK,UAAUA,EAAQ,IAAI,GAC1B,GAAGG,CAAA,CACN,EACA0B,EAAAA,kBAAAA,IAAC,MAAI,CAAA,MAAO,CAAE,MAAO,SACnB,SAAAD,EAAA,kBAAA,KAACG,EAAI,IAAA,CAAA,IAAK,MACR,SAAA,CAAAF,EAAA,kBAAA,IAACG,EAAA,aAAA,CACC,MAAOhC,EAAQ,YAAc,IAC7B,UAAW,SACX,YAAaA,EAAQ,uBAAyB,IAC9C,aAAcA,EAAQ,kBAAoB,IAC1C,eAAgB,oCAChB,0BACE,yCAAA,CAEJ,EACA6B,wBAACI,EAAAA,MAAK,MAAOzB,EAAgB,MAAOR,EAAQ,MAAQ,EAAI,CAAA,CAAA,CAAA,CAC1D,CACF,CAAA,CAAA,CAAA,CACF,CACF,CAAA,CAAA,EACF,EAKF4B,EAAA,kBAAA,KAAC,MAAA,CACC,UACEhB,EAAY,uBAAyB,6BAGvC,SAAA,CAAAiB,EAAA,kBAAA,IAAC5B,EAAA,CACC,IAAK,WAAWD,EAAQ,IAAI,SAC5B,IAAKA,EAAQ,gBACb,MAAO,CAAE,YAAa,GAAK,CAAE,EAC5B,GAAGE,CAAA,CACN,EACA0B,EAAAA,kBAAAA,KAAC,IAAE,CAAA,UAAW,cACZ,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,QAAM,SAAeR,CAAA,CAAA,EACtBQ,EAAAA,kBAAAA,IAAC,QAAM,SAAgBP,CAAA,CAAA,CAAA,CACzB,CAAA,CAAA,CAAA,CACF,EAvDmC,KA2DvC,OAEIM,EAAA,kBAAA,KAAAM,6BAAA,CAAA,SAAA,CAACN,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAW,gBACd,SAAA,CAAAC,EAAA,kBAAA,IAACM,EAAA,YAAA,CACC,YACEX,EAAAxB,GAAA,YAAAA,EAAS,YAAT,MAAAwB,EAAoB,KAChB,IAAGY,EAAApC,GAAA,YAAAA,EAAS,YAAT,YAAAoC,EAAoB,IAAI,KAAIC,EAAArC,GAAA,YAAAA,EAAS,YAAT,YAAAqC,EAAoB,OAAO,GAC1D,IAEN,OAAQ,CAAE,SAAUnB,CAAe,EACnC,eAAAb,EACA,cACEiC,EAA2B,2BAAAtC,EAAQ,WAAa,GAAI,IAAI,GAAK,IAE/D,iBAAAM,EACA,iBAAkBmB,EAClB,mBAAAlB,CAAA,CACF,2BACCuB,EAAAA,IAAI,CAAA,GAAI,MAAO,IAAK,KAAM,UAAW,cACpC,SAAA,CAAAD,EAAA,kBAAA,IAACU,EAAA,eAAA,CACC,UAAW9B,EACX,6BAAO+B,EAAU,UAAA,EAAA,EACjB,aAAcxB,EACd,cAAe,SAAA,CACjB,EACAa,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,gBACd,SAAAA,EAAA,kBAAA,IAACU,EAAA,eAAA,CACC,UAAWzB,EAAWH,EAAkBD,EACxC,6BAAO+B,EAAS,SAAA,EAAA,EAChB,aAAc5B,EACd,cAAe,SAAA,CAAA,CAEnB,CAAA,CAAA,CACF,CAAA,CAAA,EACF,EAECc,EAAY,CAAA,EACf,CAEJ"}
1
+ {"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/AuthorWithImage/index.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { AuthorBlock } from \"../AuthorBlock\";\nimport \"./AuthorWithImage.scss\";\nimport { fromISODateToDateFormatted } from \"@/utils/dates\";\nimport { useCopyToClipboardCurrentPage } from \"@/hooks/useCopyToClipboardCurrentPage\";\nimport { useAlertDialog } from \"@/hooks/useAlert\";\nimport { getFullNameInitials } from \"@/utils/getFullNameInitials\";\nimport { Row } from \"../Row\";\nimport { CopyLink, ShareLink } from \"@/icons\";\nimport { splitInTwo } from \"@/utils/splitInTwo\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport { CardCategory, Col } from \"@/components\";\nimport { Tags } from \"@/sections\";\n\nexport type VariantType = \"service\" | \"event\" | \"insight\";\n\ninterface AuthorWithImageProps {\n service: {\n name: string;\n previewImageUrl?: string;\n previewImageTitle?: string;\n updatedBy?: {\n name?: string;\n surname?: string;\n };\n updatedAt?: string;\n readingTime?: string;\n eventTitle?: string;\n eventDescription?: string;\n eventDescriptionTitle?: string;\n tags?: string[];\n };\n publishedLabel?: string;\n readingTimeLabel?: string;\n readingMinuteLabel?: string;\n tagsLabelTitle?: string;\n shareLabel?: string;\n copyLinkLabel?: string;\n copiedTextLabel?: string;\n ImageComponent?: \"img\" | React.ComponentType<any>;\n imageProps?: Record<string, any>;\n imagePropsCard?: Record<string, any>;\n variant?: VariantType;\n isPreview?: boolean;\n}\n\nexport const AuthorWithImage = ({\n service,\n ImageComponent = \"img\",\n imageProps = {},\n imagePropsCard = {},\n variant = \"service\",\n publishedLabel = \"Pubblicato\",\n readingTimeLabel = \"Tempo di lettura\",\n readingMinuteLabel = \"min\",\n tagsLabelTitle = \"Argomenti trattati\",\n shareLabel = \"Condividi\",\n copyLinkLabel = \"Copia link\",\n copiedTextLabel = \"Link copiato\",\n isPreview = false,\n}: AuthorWithImageProps) => {\n const { copyToClipboard, isCopied } = useCopyToClipboardCurrentPage();\n const { openAlert } = useAlertDialog();\n const avatarInitials = useMemo(() => {\n if (!service?.updatedBy) return \"-\";\n return getFullNameInitials(\n service.updatedBy.name ?? \"\",\n service.updatedBy.surname ?? \"\",\n );\n }, [service.updatedBy]);\n\n const [firstTitleLine, secondTitleLine] = useMemo(() => {\n if (service.previewImageTitle) {\n return splitInTwo(service.previewImageTitle?.toUpperCase());\n }\n return [\"\", \"\"];\n }, [service]);\n\n const readingTimeInMinutes = useMemo(() => {\n const readingTime = service.readingTime ?? \"0\";\n return Math.ceil(Number(readingTime) / 60)?.toString() || \"0\";\n }, [service]);\n\n const renderImage = () => {\n if (!service.previewImageUrl) return null;\n\n if (variant === \"event\") {\n return (\n <div\n className={\n isPreview ? \"service-detail-image\" : \"event-image-container\"\n }\n >\n <ImageComponent\n alt={`Evento ${service.name} background`}\n src={service.previewImageUrl}\n className=\"event-image\"\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n <div className={\"event-content-overlay w-full\"}>\n <Row gap={\"x24\"} alignItems={\"end\"}>\n <ImageComponent\n src={service.previewImageUrl}\n alt={`Evento ${service.name}`}\n width={668}\n height={351}\n {...imagePropsCard}\n />\n <div style={{ width: \"437px\" }}>\n <Col gap={\"x32\"}>\n <CardCategory\n title={service.eventTitle ?? \"-\"}\n className={\"w-full\"}\n description={service.eventDescriptionTitle ?? \"-\"}\n description2={service.eventDescription ?? \"-\"}\n classNameTitle={\"text-slate-20 fs-5 md-fs-custom-2\"}\n classNameDescriptionTitle={\n \"text-slate-28 fw-bold fs-6 md-fs-custom\"\n }\n />\n <Tags title={tagsLabelTitle} items={service.tags ?? []} />\n </Col>\n </div>\n </Row>\n </div>\n </div>\n );\n }\n\n return (\n <div\n className={\n isPreview ? \"service-detail-image\" : \"fullscreen-image-container\"\n }\n >\n <ImageComponent\n alt={`Service ${service.name} image`}\n src={service.previewImageUrl}\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n <p className={\"short-title\"}>\n <span>{firstTitleLine}</span>\n <span>{secondTitleLine}</span>\n </p>\n </div>\n );\n };\n\n return (\n <>\n <div className={\"action-author\"}>\n <AuthorBlock\n authorName={\n service?.updatedBy?.name\n ? `${service?.updatedBy?.name} ${service?.updatedBy?.surname}`\n : \"-\"\n }\n avatar={{ initials: avatarInitials }}\n publishedLabel={publishedLabel}\n publishedDate={\n fromISODateToDateFormatted(service.updatedAt ?? \"\", \"it\") ?? \"-\"\n }\n readingTimeLabel={readingTimeLabel}\n readingTimeValue={readingTimeInMinutes}\n readingMinuteLabel={readingMinuteLabel}\n />\n <Row pb={\"x16\"} gap={\"x8\"} className={\"action-link\"}>\n <ActionIconText\n textLabel={shareLabel}\n icon={<ShareLink />}\n handleAction={openAlert}\n classNameText={\"fw-bold\"}\n />\n <div className={\"share-divider\"}>\n <ActionIconText\n textLabel={isCopied ? copiedTextLabel : copyLinkLabel}\n icon={<CopyLink />}\n handleAction={copyToClipboard}\n classNameText={\"fw-bold\"}\n />\n </div>\n </Row>\n </div>\n\n {renderImage()}\n </>\n );\n};\n"],"names":["AuthorWithImage","service","ImageComponent","imageProps","imagePropsCard","variant","publishedLabel","readingTimeLabel","readingMinuteLabel","tagsLabelTitle","shareLabel","copyLinkLabel","copiedTextLabel","isPreview","copyToClipboard","isCopied","useCopyToClipboardCurrentPage","openAlert","useAlertDialog","avatarInitials","useMemo","getFullNameInitials","firstTitleLine","secondTitleLine","splitInTwo","_a","readingTimeInMinutes","readingTime","renderImage","jsxs","jsx","Row","Col","CardCategory","Tags","Fragment","AuthorBlock","_b","_c","fromISODateToDateFormatted","ActionIconText","ShareLink","CopyLink"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs399.js");var r=e.__require();exports.lodashExports=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs396.js");var r=e.__require();exports.lodashExports=r;
2
2
  //# sourceMappingURL=index.cjs344.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs400.js"),e=require("./index.cjs402.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
1
+ "use strict";const r=require("./index.cjs397.js"),e=require("./index.cjs402.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
2
2
  //# sourceMappingURL=index.cjs351.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=require("react-dom"),m=require("./index.cjs383.js"),p=require("./index.cjs196.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((o,c)=>{const{asChild:s,...a}=o,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsxRuntimeExports.jsx(u,{...a,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=y;exports.dispatchDiscreteCustomEvent=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=require("react-dom"),m=require("./index.cjs384.js"),p=require("./index.cjs196.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((o,c)=>{const{asChild:s,...a}=o,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsxRuntimeExports.jsx(u,{...a,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=y;exports.dispatchDiscreteCustomEvent=O;
2
2
  //# sourceMappingURL=index.cjs361.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs357.js"),Ve=require("./index.cjs407.js"),y=require("./index.cjs358.js"),Ye=require("./index.cjs359.js"),Xe=require("./index.cjs408.js"),We=require("./index.cjs377.js"),ze=require("./index.cjs380.js"),Ze=require("./index.cjs378.js"),T=require("./index.cjs409.js"),Je=require("./index.cjs379.js"),X=require("./index.cjs370.js"),A=require("./index.cjs361.js"),W=require("./index.cjs410.js"),Qe=require("./index.cjs383.js"),be=require("./index.cjs406.js"),et=require("./index.cjs382.js"),tt=require("./index.cjs381.js"),a=require("./index.cjs196.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[N,ut,at]=Ve.createCollection(F),[j,it]=Ye.createContextScope(F,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(F),[dt,G]=j(F),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const R=()=>{f.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>f.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=F;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Mt=Qe.createSlot("MenuContent.ScrollLock"),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,disableOutsideScroll:M,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=M?tt:r.Fragment,Ue=M?{as:Mt,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=wt(ne,E,te),k=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),k&&setTimeout(()=>k.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&Tt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Fe(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const k=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&k.reverse(),It(k)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,L(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Et="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Et;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,R=>o==null?void 0:o(R),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,R]=r.useState("");return r.useEffect(()=>{const M=p.current;M&&R((M.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,L(M=>{o?l.onItemLeave(M):(l.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(M=>l.onItemLeave(M))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Ct="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Ct;var Oe="MenuRadioGroup",[ht,gt]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(ht,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var ke="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=gt(ke,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=ke;var pe="MenuItemIndicator",[De,_t]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=_t(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var Pt="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=Pt;var jt="MenuArrow",Me=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Me.displayName=jt;var St="MenuSub",[Yt,Ne]=j(St),D="MenuSubTrigger",Re=r.forwardRef((e,n)=>{const t=S(D,e.__scopeMenu),o=G(D,e.__scopeMenu),u=Ne(D,e.__scopeMenu),s=ue(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Fe(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,L(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(c=>{var R,M;f();const d=(R=t.content)==null?void 0:R.getBoundingClientRect();if(d){const P=(M=t.content)==null?void 0:M.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var R;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(R=t.content)==null||R.focus(),c.preventDefault())})})})});Re.displayName=D;var Le="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Le,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var R;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(R=m.trigger)==null||R.focus(),f.preventDefault())})})})})})});Ee.displayName=Le;function Fe(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function It(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function bt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function wt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=bt(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function yt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function Tt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return yt(t,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var At=re,Ot=Z,kt=ce,Dt=ae,Nt=J,Lt=le,Ft=K,Gt=de,Kt=fe,Ht=me,qt=xe,Ut=ve,$t=Me,Bt=Re,Vt=Ee;exports.Anchor=Ot;exports.Arrow=$t;exports.CheckboxItem=Gt;exports.Content=Dt;exports.Group=Nt;exports.Item=Ft;exports.ItemIndicator=qt;exports.Label=Lt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Me;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Re;exports.Portal=kt;exports.RadioGroup=Kt;exports.RadioItem=Ht;exports.Root=At;exports.Separator=Ut;exports.SubContent=Vt;exports.SubTrigger=Bt;exports.createMenuScope=it;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs357.js"),Ve=require("./index.cjs408.js"),y=require("./index.cjs358.js"),Ye=require("./index.cjs359.js"),Xe=require("./index.cjs409.js"),We=require("./index.cjs378.js"),ze=require("./index.cjs381.js"),Ze=require("./index.cjs379.js"),T=require("./index.cjs410.js"),Je=require("./index.cjs380.js"),X=require("./index.cjs366.js"),A=require("./index.cjs361.js"),W=require("./index.cjs411.js"),Qe=require("./index.cjs384.js"),be=require("./index.cjs406.js"),et=require("./index.cjs383.js"),tt=require("./index.cjs382.js"),a=require("./index.cjs196.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[N,ut,at]=Ve.createCollection(F),[j,it]=Ye.createContextScope(F,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(F),[dt,G]=j(F),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const R=()=>{f.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>f.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=F;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Mt=Qe.createSlot("MenuContent.ScrollLock"),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,disableOutsideScroll:M,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=M?tt:r.Fragment,Ue=M?{as:Mt,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=wt(ne,E,te),k=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),k&&setTimeout(()=>k.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&Tt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Fe(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const k=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&k.reverse(),It(k)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,L(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Et="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Et;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,R=>o==null?void 0:o(R),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,R]=r.useState("");return r.useEffect(()=>{const M=p.current;M&&R((M.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,L(M=>{o?l.onItemLeave(M):(l.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(M=>l.onItemLeave(M))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Ct="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Ct;var Oe="MenuRadioGroup",[ht,gt]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(ht,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var ke="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=gt(ke,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=ke;var pe="MenuItemIndicator",[De,_t]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=_t(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var Pt="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=Pt;var jt="MenuArrow",Me=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Me.displayName=jt;var St="MenuSub",[Yt,Ne]=j(St),D="MenuSubTrigger",Re=r.forwardRef((e,n)=>{const t=S(D,e.__scopeMenu),o=G(D,e.__scopeMenu),u=Ne(D,e.__scopeMenu),s=ue(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Fe(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,L(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(c=>{var R,M;f();const d=(R=t.content)==null?void 0:R.getBoundingClientRect();if(d){const P=(M=t.content)==null?void 0:M.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var R;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(R=t.content)==null||R.focus(),c.preventDefault())})})})});Re.displayName=D;var Le="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Le,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var R;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(R=m.trigger)==null||R.focus(),f.preventDefault())})})})})})});Ee.displayName=Le;function Fe(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function It(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function bt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function wt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=bt(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function yt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function Tt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return yt(t,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var At=re,Ot=Z,kt=ce,Dt=ae,Nt=J,Lt=le,Ft=K,Gt=de,Kt=fe,Ht=me,qt=xe,Ut=ve,$t=Me,Bt=Re,Vt=Ee;exports.Anchor=Ot;exports.Arrow=$t;exports.CheckboxItem=Gt;exports.Content=Dt;exports.Group=Nt;exports.Item=Ft;exports.ItemIndicator=qt;exports.Label=Lt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Me;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Re;exports.Portal=kt;exports.RadioGroup=Kt;exports.RadioItem=Ht;exports.Root=At;exports.Separator=Ut;exports.SubContent=Vt;exports.SubTrigger=Bt;exports.createMenuScope=it;
2
2
  //# sourceMappingURL=index.cjs362.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs411.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(i());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs407.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(i());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
2
2
  //# sourceMappingURL=index.cjs363.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=c(o);function s(e){const t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}exports.usePrevious=s;
2
+ //# sourceMappingURL=index.cjs364.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs364.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":"mYAEA,SAASA,EAAYC,EAAO,CAC1B,MAAMC,EAAMC,EAAM,OAAO,CAAE,MAAAF,EAAO,SAAUA,EAAO,EACnD,OAAOE,EAAM,QAAQ,KACfD,EAAI,QAAQ,QAAUD,IACxBC,EAAI,QAAQ,SAAWA,EAAI,QAAQ,MACnCA,EAAI,QAAQ,MAAQD,GAEfC,EAAI,QAAQ,UAClB,CAACD,CAAK,CAAC,CACZ","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=(t,n)=>{a.useEffect(()=>{if(!n||!t.current)return;const o=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=o[0],s=o[o.length-1],r=e=>{e.key==="Tab"&&(e.shiftKey?document.activeElement===u&&(s.focus(),e.preventDefault()):document.activeElement===s&&(u.focus(),e.preventDefault()))},c=document.activeElement;return u.focus(),document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n&&(c==null||c.focus())}},[n,t])};exports.useFocusTrap=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs407.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
2
2
  //# sourceMappingURL=index.cjs365.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs365.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":"yGAEaA,EAAe,CAC1BC,EACAC,IACG,CACHC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACD,GAAY,CAACD,EAAI,QAAS,OAEzB,MAAAG,EAAoBH,EAAI,QAAQ,iBACpC,0EACF,EACMI,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAM,EAC3B,EAAE,eAAe,GAGf,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAM,EAC5B,EAAE,eAAe,GAGvB,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAM,EAEnB,SAAA,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACF,SAAA,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CAAA,EACC,CAACN,EAAUD,CAAG,CAAC,CACpB"}
1
+ {"version":3,"file":"index.cjs365.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":"kaAGA,SAASA,EAAQC,EAAS,CACxB,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAM,SAAS,MAAM,EAC7CC,OAAAA,EAAAA,gBAAgB,IAAM,CACpB,GAAIJ,EAAS,CACXE,EAAQ,CAAE,MAAOF,EAAQ,YAAa,OAAQA,EAAQ,aAAc,EACpE,MAAMK,EAAiB,IAAI,eAAgBC,GAAY,CAIrD,GAHI,CAAC,MAAM,QAAQA,CAAO,GAGtB,CAACA,EAAQ,OACX,OAEF,MAAMC,EAAQD,EAAQ,CAAC,EACvB,IAAIE,EACAC,EACJ,GAAI,kBAAmBF,EAAO,CAC5B,MAAMG,EAAkBH,EAAM,cACxBI,EAAa,MAAM,QAAQD,CAAe,EAAIA,EAAgB,CAAC,EAAIA,EACzEF,EAAQG,EAAW,WACnBF,EAASE,EAAW,SAC9B,MACUH,EAAQR,EAAQ,YAChBS,EAAST,EAAQ,aAEnBE,EAAQ,CAAE,MAAAM,EAAO,OAAAC,EAAQ,CACjC,CAAO,EACD,OAAAJ,EAAe,QAAQL,EAAS,CAAE,IAAK,YAAY,CAAE,EAC9C,IAAMK,EAAe,UAAUL,CAAO,CACnD,MACME,EAAQ,MAAM,CAEpB,EAAK,CAACF,CAAO,CAAC,EACLC,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs358.js"),g=require("./index.cjs411.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
2
- //# sourceMappingURL=index.cjs370.js.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs358.js"),g=require("./index.cjs407.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
2
+ //# sourceMappingURL=index.cjs366.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs370.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs366.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");require("./index.cjs412.js");function i(){const[t,e]=o.useState(null),a=o.useCallback(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch(n){return console.warn("Copy failed",n),e(null),!1}},[]);return[t,a]}exports.useCopyToClipboard=i;
2
- //# sourceMappingURL=index.cjs371.js.map
2
+ //# sourceMappingURL=index.cjs367.js.map