@televet/kibble-ui 4.0.0-beta.64 → 4.0.0-beta.65

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 (376) hide show
  1. package/dist/chunks/{alert.types-C1GVh2D6.js → alert.types-BvnpOwve.js} +2 -2
  2. package/dist/chunks/{alert.types-C1GVh2D6.js.map → alert.types-BvnpOwve.js.map} +1 -1
  3. package/dist/chunks/{alert.types-BdMaGbwu.js → alert.types-Dth5h5qO.js} +3 -3
  4. package/dist/chunks/{alert.types-BdMaGbwu.js.map → alert.types-Dth5h5qO.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-BKp_pbGA.js → avatar.component-BPCJZRyT.js} +14 -14
  6. package/dist/chunks/{avatar.component-BKp_pbGA.js.map → avatar.component-BPCJZRyT.js.map} +1 -1
  7. package/dist/chunks/avatar.component-y7gTa1dV.js +2 -0
  8. package/dist/chunks/{avatar.component-BRjxOsjQ.js.map → avatar.component-y7gTa1dV.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-DIfCXmiw.js → avatarGroup.component-BnRXVOIV.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-DIfCXmiw.js.map → avatarGroup.component-BnRXVOIV.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-B3cA6J2Z.js → avatarGroup.component-Mfl8jvgp.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-B3cA6J2Z.js.map → avatarGroup.component-Mfl8jvgp.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-DuNSCwga.js → buttonGroup.component-6ZBOJbfR.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-DuNSCwga.js.map → buttonGroup.component-6ZBOJbfR.js.map} +1 -1
  15. package/dist/chunks/{buttonGroup.component-CLTkO5BF.js → buttonGroup.component-DQfB4Nj3.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-CLTkO5BF.js.map → buttonGroup.component-DQfB4Nj3.js.map} +1 -1
  17. package/dist/chunks/{characterCounter.component-C2e2l-WJ.js → characterCounter.component-4T8NHb11.js} +2 -2
  18. package/dist/chunks/{characterCounter.component-C2e2l-WJ.js.map → characterCounter.component-4T8NHb11.js.map} +1 -1
  19. package/dist/chunks/{characterCounter.component-BEg4MItI.js → characterCounter.component-Cs0y0DOj.js} +3 -3
  20. package/dist/chunks/{characterCounter.component-BEg4MItI.js.map → characterCounter.component-Cs0y0DOj.js.map} +1 -1
  21. package/dist/chunks/checkbox.component-CFuJaYmY.js +2 -0
  22. package/dist/chunks/{checkbox.component-CYpG_LI3.js.map → checkbox.component-CFuJaYmY.js.map} +1 -1
  23. package/dist/chunks/{checkbox.component-Dxvk8exv.js → checkbox.component-DqlWmIyY.js} +10 -10
  24. package/dist/chunks/{checkbox.component-Dxvk8exv.js.map → checkbox.component-DqlWmIyY.js.map} +1 -1
  25. package/dist/chunks/{checkbox.records-BtLBaHBy.js → checkbox.records-08YIiUZO.js} +12 -12
  26. package/dist/chunks/{checkbox.records-BtLBaHBy.js.map → checkbox.records-08YIiUZO.js.map} +1 -1
  27. package/dist/chunks/checkbox.records-B7refmmT.js +2 -0
  28. package/dist/chunks/{checkbox.records-wbkLltak.js.map → checkbox.records-B7refmmT.js.map} +1 -1
  29. package/dist/chunks/{checkboxGroup.component-CCY-tnlz.js → checkboxGroup.component-DBqDJvPC.js} +3 -3
  30. package/dist/chunks/{checkboxGroup.component-CCY-tnlz.js.map → checkboxGroup.component-DBqDJvPC.js.map} +1 -1
  31. package/dist/chunks/{checkboxGroup.component-DXuYKyDD.js → checkboxGroup.component-DaxmsqdZ.js} +2 -2
  32. package/dist/chunks/{checkboxGroup.component-DXuYKyDD.js.map → checkboxGroup.component-DaxmsqdZ.js.map} +1 -1
  33. package/dist/chunks/{config-B1FINd7s.js → config-DlTdf-Yt.js} +3 -3
  34. package/dist/chunks/{config-B1FINd7s.js.map → config-DlTdf-Yt.js.map} +1 -1
  35. package/dist/chunks/{conversationCard.component-DvUZFdws.js → conversationCard.component-Bg1Q9FdN.js} +18 -17
  36. package/dist/chunks/{conversationCard.component-DvUZFdws.js.map → conversationCard.component-Bg1Q9FdN.js.map} +1 -1
  37. package/dist/chunks/conversationCard.component-CBrw3VnT.js +2 -0
  38. package/dist/chunks/{conversationCard.component-BbV9kzvn.js.map → conversationCard.component-CBrw3VnT.js.map} +1 -1
  39. package/dist/chunks/{datePicker.component-CfULnyaz.js → datePicker.component-DfQNebKg.js} +8 -8
  40. package/dist/chunks/{datePicker.component-CfULnyaz.js.map → datePicker.component-DfQNebKg.js.map} +1 -1
  41. package/dist/chunks/datePicker.component-u52NQcza.js +15 -0
  42. package/dist/chunks/{datePicker.component-CaX-nDYU.js.map → datePicker.component-u52NQcza.js.map} +1 -1
  43. package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
  44. package/dist/chunks/{dialog-trigger-BCeZGpGO.js.map → dialog-trigger-B5NK0lr-.js.map} +1 -1
  45. package/dist/chunks/{dialog-trigger-D2uDgMJr.js → dialog-trigger-BPlPzPU-.js} +9 -9
  46. package/dist/chunks/{dialog-trigger-D2uDgMJr.js.map → dialog-trigger-BPlPzPU-.js.map} +1 -1
  47. package/dist/chunks/{heading.component-CUa8MRJt.js → heading.component-BXcyhAEU.js} +2 -2
  48. package/dist/chunks/{heading.component-CUa8MRJt.js.map → heading.component-BXcyhAEU.js.map} +1 -1
  49. package/dist/chunks/{heading.component-Cuqs0DsG.js → heading.component-ZD_UVarx.js} +2 -2
  50. package/dist/chunks/{heading.component-Cuqs0DsG.js.map → heading.component-ZD_UVarx.js.map} +1 -1
  51. package/dist/chunks/{index-DZGYG5M4.js → index-BBZxmcrY.js} +2 -2
  52. package/dist/chunks/{index-DZGYG5M4.js.map → index-BBZxmcrY.js.map} +1 -1
  53. package/dist/chunks/index-BDnnTdaJ.js +2 -0
  54. package/dist/chunks/{index-CEYJbpt4.js.map → index-BDnnTdaJ.js.map} +1 -1
  55. package/dist/chunks/index-BGwwyukg.js +2 -0
  56. package/dist/chunks/index-BGwwyukg.js.map +1 -0
  57. package/dist/chunks/{index-CBh9RZVL.js → index-BNYygzo-.js} +18 -17
  58. package/dist/chunks/{index-CBh9RZVL.js.map → index-BNYygzo-.js.map} +1 -1
  59. package/dist/chunks/index-BYf7SZUC.js +2 -0
  60. package/dist/chunks/{index-BfD9Ne2e.js.map → index-BYf7SZUC.js.map} +1 -1
  61. package/dist/chunks/{index-Cuu1x05z.js → index-C2kxTsiE.js} +17 -16
  62. package/dist/chunks/{index-Cuu1x05z.js.map → index-C2kxTsiE.js.map} +1 -1
  63. package/dist/chunks/index-COoMV9Mh.js +2 -0
  64. package/dist/chunks/{index-hGlTuPbK.js.map → index-COoMV9Mh.js.map} +1 -1
  65. package/dist/chunks/index-CYk-7wwG.js +1018 -0
  66. package/dist/chunks/index-CYk-7wwG.js.map +1 -0
  67. package/dist/chunks/index-CZ42b9rT.js +3 -0
  68. package/dist/chunks/index-CZ42b9rT.js.map +1 -0
  69. package/dist/chunks/index-CZz7hHWb.js +2 -0
  70. package/dist/chunks/{index-B4fjIWcA.js.map → index-CZz7hHWb.js.map} +1 -1
  71. package/dist/chunks/{index-Cqwkg1hU.js → index-CjNAJEk5.js} +106 -105
  72. package/dist/chunks/{index-Cqwkg1hU.js.map → index-CjNAJEk5.js.map} +1 -1
  73. package/dist/chunks/{index-CZPHIn6T.js → index-Co91SHhW.js} +3 -3
  74. package/dist/chunks/{index-CZPHIn6T.js.map → index-Co91SHhW.js.map} +1 -1
  75. package/dist/chunks/{index-D5Dscg8T.js → index-D9DU-5GF.js} +49 -48
  76. package/dist/chunks/{index-D5Dscg8T.js.map → index-D9DU-5GF.js.map} +1 -1
  77. package/dist/chunks/{index-f4Ba8Pq7.js → index-DUHFrLMI.js} +15 -15
  78. package/dist/chunks/{index-f4Ba8Pq7.js.map → index-DUHFrLMI.js.map} +1 -1
  79. package/dist/chunks/{index-Dx94WMw1.js → index-DcJZ8q0f.js} +44 -43
  80. package/dist/chunks/{index-Dx94WMw1.js.map → index-DcJZ8q0f.js.map} +1 -1
  81. package/dist/chunks/index-Dyxhds_1.js +2 -0
  82. package/dist/chunks/{index-5cRW642o.js.map → index-Dyxhds_1.js.map} +1 -1
  83. package/dist/chunks/{index-DMSZTX7A.js → index-MDMqrELk.js} +9 -9
  84. package/dist/chunks/{index-DMSZTX7A.js.map → index-MDMqrELk.js.map} +1 -1
  85. package/dist/chunks/index-MlhL0PDC.js +2 -0
  86. package/dist/chunks/{index-CFnNmQf0.js.map → index-MlhL0PDC.js.map} +1 -1
  87. package/dist/chunks/{index-Dq91nN6-.js → index-S1uNQPZj.js} +3 -3
  88. package/dist/chunks/{index-Dq91nN6-.js.map → index-S1uNQPZj.js.map} +1 -1
  89. package/dist/chunks/index-UWtj4ULm.js +8 -0
  90. package/dist/chunks/{index-CedYIQt5.js.map → index-UWtj4ULm.js.map} +1 -1
  91. package/dist/chunks/index-ZaGEDS_0.js +2 -0
  92. package/dist/chunks/{index-BmcSWiFh.js.map → index-ZaGEDS_0.js.map} +1 -1
  93. package/dist/chunks/index-j7W9Hyzx.js +322 -0
  94. package/dist/chunks/index-j7W9Hyzx.js.map +1 -0
  95. package/dist/chunks/{logo.types-CXQsathd.js → logo.types-By8TqyNf.js} +2 -2
  96. package/dist/chunks/{logo.types-CXQsathd.js.map → logo.types-By8TqyNf.js.map} +1 -1
  97. package/dist/chunks/menu.component-CiZzHc2D.js +2 -0
  98. package/dist/chunks/{menu.component-DzEdcGnQ.js.map → menu.component-CiZzHc2D.js.map} +1 -1
  99. package/dist/chunks/{menu.component-DuEKWjJe.js → menu.component-D4gknsq1.js} +26 -26
  100. package/dist/chunks/{menu.component-DuEKWjJe.js.map → menu.component-D4gknsq1.js.map} +1 -1
  101. package/dist/chunks/modal.types-9-Bz6ybC.js +2 -0
  102. package/dist/chunks/{modal.types-SzYLypgs.js.map → modal.types-9-Bz6ybC.js.map} +1 -1
  103. package/dist/chunks/{modal.types-Cg8WeIe5.js → modal.types-BV8Eand2.js} +5 -5
  104. package/dist/chunks/{modal.types-Cg8WeIe5.js.map → modal.types-BV8Eand2.js.map} +1 -1
  105. package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js → notificationCounter.component-Bei8mHSZ.js} +2 -2
  106. package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
  107. package/dist/chunks/pinInput.types-B-RchRm_.js +2 -0
  108. package/dist/chunks/{pinInput.types-D73AXb6j.js.map → pinInput.types-B-RchRm_.js.map} +1 -1
  109. package/dist/chunks/{pinInput.types-DzJ8G-cv.js → pinInput.types-U7Tfj5It.js} +8 -8
  110. package/dist/chunks/{pinInput.types-DzJ8G-cv.js.map → pinInput.types-U7Tfj5It.js.map} +1 -1
  111. package/dist/chunks/popover-80QH8HEJ.js +2 -0
  112. package/dist/chunks/{popover-DPEovmxh.js.map → popover-80QH8HEJ.js.map} +1 -1
  113. package/dist/chunks/{popover-D0QoPsrG.js → popover-B9rNOU0g.js} +26 -26
  114. package/dist/chunks/{popover-D0QoPsrG.js.map → popover-B9rNOU0g.js.map} +1 -1
  115. package/dist/chunks/{popover-root-provider-Dt02njg5.js → popover-root-provider-CeLLpesI.js} +8 -8
  116. package/dist/chunks/{popover-root-provider-Dt02njg5.js.map → popover-root-provider-CeLLpesI.js.map} +1 -1
  117. package/dist/chunks/popover-root-provider-DAMDDAHQ.js +2 -0
  118. package/dist/chunks/{popover-root-provider-BYJE5I-P.js.map → popover-root-provider-DAMDDAHQ.js.map} +1 -1
  119. package/dist/chunks/popover.component-A8In7d2B.js +2 -0
  120. package/dist/chunks/popover.component-A8In7d2B.js.map +1 -0
  121. package/dist/chunks/popover.component-BR8W3Jb8.js +322 -0
  122. package/dist/chunks/popover.component-BR8W3Jb8.js.map +1 -0
  123. package/dist/chunks/popover.recipe--gMRcQTS.js +479 -0
  124. package/dist/chunks/popover.recipe--gMRcQTS.js.map +1 -0
  125. package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
  126. package/dist/chunks/popover.recipe-DLeyokHo.js.map +1 -0
  127. package/dist/chunks/{radio.records-CzNYznSb.js → radio.records-D7VFHW-s.js} +16 -16
  128. package/dist/chunks/{radio.records-CzNYznSb.js.map → radio.records-D7VFHW-s.js.map} +1 -1
  129. package/dist/chunks/radio.records-DLffZyeq.js +2 -0
  130. package/dist/chunks/{radio.records-CEgwvLIL.js.map → radio.records-DLffZyeq.js.map} +1 -1
  131. package/dist/chunks/radioGroup.component-CZwrCppd.js +2 -0
  132. package/dist/chunks/{radioGroup.component-6Sb4sfkk.js.map → radioGroup.component-CZwrCppd.js.map} +1 -1
  133. package/dist/chunks/{radioGroup.component-Dy-hsu8-.js → radioGroup.component-DVsMiHFI.js} +11 -11
  134. package/dist/chunks/{radioGroup.component-Dy-hsu8-.js.map → radioGroup.component-DVsMiHFI.js.map} +1 -1
  135. package/dist/chunks/{ratingDots.component-k9LJL9Eu.js → ratingDots.component-1U-hoEpC.js} +4 -4
  136. package/dist/chunks/{ratingDots.component-k9LJL9Eu.js.map → ratingDots.component-1U-hoEpC.js.map} +1 -1
  137. package/dist/chunks/{ratingDots.component-DMe19wON.js → ratingDots.component-qbroWQhZ.js} +2 -2
  138. package/dist/chunks/{ratingDots.component-DMe19wON.js.map → ratingDots.component-qbroWQhZ.js.map} +1 -1
  139. package/dist/chunks/render-strategy-BmWbSgqh.js +2 -0
  140. package/dist/chunks/{render-strategy-CdSSbgPU.js.map → render-strategy-BmWbSgqh.js.map} +1 -1
  141. package/dist/chunks/{render-strategy-ql9Qx5Cz.js → render-strategy-C8hwN3bm.js} +2 -2
  142. package/dist/chunks/{render-strategy-ql9Qx5Cz.js.map → render-strategy-C8hwN3bm.js.map} +1 -1
  143. package/dist/chunks/{select.component-InxmAsNH.js → select.component-5vAzdrZa.js} +44 -44
  144. package/dist/chunks/{select.component-InxmAsNH.js.map → select.component-5vAzdrZa.js.map} +1 -1
  145. package/dist/chunks/select.component-C_Fs6Xeq.js +2 -0
  146. package/dist/chunks/{select.component-CuiKCzV4.js.map → select.component-C_Fs6Xeq.js.map} +1 -1
  147. package/dist/chunks/{sortableList.component-B9CPjKG7.js → sortableList.component-BX3EvpRM.js} +3 -3
  148. package/dist/chunks/{sortableList.component-B9CPjKG7.js.map → sortableList.component-BX3EvpRM.js.map} +1 -1
  149. package/dist/chunks/{sortableList.component-CaPRUdXt.js → sortableList.component-B_O-YB3I.js} +3 -3
  150. package/dist/chunks/{sortableList.component-CaPRUdXt.js.map → sortableList.component-B_O-YB3I.js.map} +1 -1
  151. package/dist/chunks/{spinner.component-CWdZsQ1n.js → spinner.component-CzhcJOwX.js} +2 -2
  152. package/dist/chunks/{spinner.component-CWdZsQ1n.js.map → spinner.component-CzhcJOwX.js.map} +1 -1
  153. package/dist/chunks/{spinner.component-DWZ_4aTj.js → spinner.component-lHj69hIF.js} +3 -3
  154. package/dist/chunks/{spinner.component-DWZ_4aTj.js.map → spinner.component-lHj69hIF.js.map} +1 -1
  155. package/dist/chunks/{styledAvatar.types-D4XrEFve.js → styledAvatar.types-B9SHiNfg.js} +2 -2
  156. package/dist/chunks/{styledAvatar.types-D4XrEFve.js.map → styledAvatar.types-B9SHiNfg.js.map} +1 -1
  157. package/dist/chunks/{styledAvatar.types-BXftd-Wf.js → styledAvatar.types-BvHm6hKS.js} +2 -2
  158. package/dist/chunks/{styledAvatar.types-BXftd-Wf.js.map → styledAvatar.types-BvHm6hKS.js.map} +1 -1
  159. package/dist/chunks/{swatch.types-B8OSJZ-a.js → swatch.types-DbgA3RWc.js} +2 -2
  160. package/dist/chunks/{swatch.types-B8OSJZ-a.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
  161. package/dist/chunks/switch.component-B3Gfgft9.js +2 -0
  162. package/dist/chunks/{switch.component-Ct8hEoT2.js.map → switch.component-B3Gfgft9.js.map} +1 -1
  163. package/dist/chunks/{switch.component-vDh8eC0O.js → switch.component-DjOGsCIQ.js} +11 -11
  164. package/dist/chunks/{switch.component-vDh8eC0O.js.map → switch.component-DjOGsCIQ.js.map} +1 -1
  165. package/dist/chunks/{tabs.component-CuCzoee6.js → tabs.component-Ca9jVGv0.js} +48 -48
  166. package/dist/chunks/{tabs.component-CuCzoee6.js.map → tabs.component-Ca9jVGv0.js.map} +1 -1
  167. package/dist/chunks/tabs.component-pl0kO5_M.js +2 -0
  168. package/dist/chunks/{tabs.component-DDmnq9Yj.js.map → tabs.component-pl0kO5_M.js.map} +1 -1
  169. package/dist/chunks/{tagBlock.component-Cvlqt0tt.js → tagBlock.component-C2DAQrQE.js} +2 -2
  170. package/dist/chunks/{tagBlock.component-Cvlqt0tt.js.map → tagBlock.component-C2DAQrQE.js.map} +1 -1
  171. package/dist/chunks/{tagBlock.component-LJYc9GiQ.js → tagBlock.component-CnPbyaGH.js} +5 -5
  172. package/dist/chunks/{tagBlock.component-LJYc9GiQ.js.map → tagBlock.component-CnPbyaGH.js.map} +1 -1
  173. package/dist/chunks/text.component-CnnBhB3c.js +2 -0
  174. package/dist/chunks/text.component-CnnBhB3c.js.map +1 -0
  175. package/dist/chunks/text.component-Cpruo7MB.js +12 -0
  176. package/dist/chunks/text.component-Cpruo7MB.js.map +1 -0
  177. package/dist/chunks/textInput.component-D-galjwy.js +2 -0
  178. package/dist/chunks/{textInput.component-HHNykQ9Q.js.map → textInput.component-D-galjwy.js.map} +1 -1
  179. package/dist/chunks/{textInput.component--WvGHJxt.js → textInput.component-DXtEgbkr.js} +12 -12
  180. package/dist/chunks/{textInput.component--WvGHJxt.js.map → textInput.component-DXtEgbkr.js.map} +1 -1
  181. package/dist/chunks/textarea.component-DmxMuMCU.js +2 -0
  182. package/dist/chunks/{textarea.component-FFs6Uln9.js.map → textarea.component-DmxMuMCU.js.map} +1 -1
  183. package/dist/chunks/{textarea.component--AjIMSc1.js → textarea.component-Do0zHf-1.js} +7 -7
  184. package/dist/chunks/{textarea.component--AjIMSc1.js.map → textarea.component-Do0zHf-1.js.map} +1 -1
  185. package/dist/chunks/theme.provider-CIJGn9Kh.js +26 -0
  186. package/dist/chunks/theme.provider-CIJGn9Kh.js.map +1 -0
  187. package/dist/chunks/{theme.provider-C5Ltz2zj.js → theme.provider-Dj4pZ815.js} +1699 -1830
  188. package/dist/chunks/theme.provider-Dj4pZ815.js.map +1 -0
  189. package/dist/chunks/{timePicker.component-BxmUXWNg.js → timePicker.component-CophNE3d.js} +2 -2
  190. package/dist/chunks/{timePicker.component-BxmUXWNg.js.map → timePicker.component-CophNE3d.js.map} +1 -1
  191. package/dist/chunks/{timePicker.component-Bah1y2Pc.js → timePicker.component-DTs3MjOx.js} +4 -4
  192. package/dist/chunks/{timePicker.component-Bah1y2Pc.js.map → timePicker.component-DTs3MjOx.js.map} +1 -1
  193. package/dist/chunks/{timeRange.component-C0ZHjvEa.js → timeRange.component-C5dt8sZn.js} +2 -2
  194. package/dist/chunks/{timeRange.component-C0ZHjvEa.js.map → timeRange.component-C5dt8sZn.js.map} +1 -1
  195. package/dist/chunks/{timeRange.component-BhdUqy0y.js → timeRange.component-C5wSyUiZ.js} +2 -2
  196. package/dist/chunks/{timeRange.component-BhdUqy0y.js.map → timeRange.component-C5wSyUiZ.js.map} +1 -1
  197. package/dist/chunks/timestamp.component-BPU8bf7p.js +54 -0
  198. package/dist/chunks/{timestamp.component-BOksAchA.js.map → timestamp.component-BPU8bf7p.js.map} +1 -1
  199. package/dist/chunks/timestamp.component-rTLrzBPA.js +2 -0
  200. package/dist/chunks/{timestamp.component-DLh53lam.js.map → timestamp.component-rTLrzBPA.js.map} +1 -1
  201. package/dist/chunks/{toaster.records-Cf8bpHo8.js → toaster.records-BGfpUOVt.js} +22 -21
  202. package/dist/chunks/{toaster.records-Cf8bpHo8.js.map → toaster.records-BGfpUOVt.js.map} +1 -1
  203. package/dist/chunks/toaster.records-BJo0j1IZ.js +2 -0
  204. package/dist/chunks/{toaster.records-CGym-iT-.js.map → toaster.records-BJo0j1IZ.js.map} +1 -1
  205. package/dist/chunks/tooltip.component-CwrXAVEq.js +2 -0
  206. package/dist/chunks/tooltip.component-CwrXAVEq.js.map +1 -0
  207. package/dist/chunks/tooltip.component-DgOzrNG3.js +758 -0
  208. package/dist/chunks/tooltip.component-DgOzrNG3.js.map +1 -0
  209. package/dist/chunks/{typography.records-BeoK0Uyj.js → typography.records-C6G_65b4.js} +2 -2
  210. package/dist/chunks/{typography.records-BeoK0Uyj.js.map → typography.records-C6G_65b4.js.map} +1 -1
  211. package/dist/chunks/{typography.records-Xg59taw9.js → typography.records-jnjWfTLS.js} +2 -2
  212. package/dist/chunks/{typography.records-Xg59taw9.js.map → typography.records-jnjWfTLS.js.map} +1 -1
  213. package/dist/chunks/use-field-context--wBJQY1R.js +2 -0
  214. package/dist/chunks/{use-field-context-xBX4EpFz.js.map → use-field-context--wBJQY1R.js.map} +1 -1
  215. package/dist/chunks/{use-field-context-C4IwmN39.js → use-field-context-B_G7Yziz.js} +2 -2
  216. package/dist/chunks/{use-field-context-C4IwmN39.js.map → use-field-context-B_G7Yziz.js.map} +1 -1
  217. package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
  218. package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +1 -0
  219. package/dist/chunks/{portal-D2KZrSzZ.js → use-locale-context-D-agiW5E.js} +242 -242
  220. package/dist/chunks/use-locale-context-D-agiW5E.js.map +1 -0
  221. package/dist/chunks/{withFormControl-3s6IRbl0.js → withFormControl-BDuV97Vb.js} +49 -49
  222. package/dist/chunks/{withFormControl-3s6IRbl0.js.map → withFormControl-BDuV97Vb.js.map} +1 -1
  223. package/dist/chunks/withFormControl-DpytztWF.js +2 -0
  224. package/dist/chunks/{withFormControl-DhWavZor.js.map → withFormControl-DpytztWF.js.map} +1 -1
  225. package/dist/chunks/withTruncation-DPbMF-jg.js +2 -0
  226. package/dist/chunks/withTruncation-DPbMF-jg.js.map +1 -0
  227. package/dist/chunks/withTruncation-DoQriKuH.js +67 -0
  228. package/dist/chunks/withTruncation-DoQriKuH.js.map +1 -0
  229. package/dist/chunks/{wrap-CYgSj8wY.js → wrap-B8tBNeBY.js} +2 -2
  230. package/dist/chunks/{wrap-CYgSj8wY.js.map → wrap-B8tBNeBY.js.map} +1 -1
  231. package/dist/cjs/chakra/index.cjs +1 -1
  232. package/dist/cjs/chakra/index.cjs.map +1 -1
  233. package/dist/cjs/components/Alert/index.cjs +1 -1
  234. package/dist/cjs/components/Avatar/index.cjs +1 -1
  235. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  236. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  237. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  238. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  239. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  240. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  241. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  242. package/dist/cjs/components/Heading/index.cjs +1 -1
  243. package/dist/cjs/components/Menu/index.cjs +1 -1
  244. package/dist/cjs/components/Modal/index.cjs +1 -1
  245. package/dist/cjs/components/PinInput/index.cjs +1 -1
  246. package/dist/cjs/components/Popover/index.cjs +1 -1
  247. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  248. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  249. package/dist/cjs/components/Select/index.cjs +1 -1
  250. package/dist/cjs/components/SortableList/index.cjs +1 -1
  251. package/dist/cjs/components/Spinner/index.cjs +1 -1
  252. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  253. package/dist/cjs/components/Switch/index.cjs +1 -1
  254. package/dist/cjs/components/Tabs/index.cjs +1 -1
  255. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  256. package/dist/cjs/components/Text/index.cjs +1 -1
  257. package/dist/cjs/components/TextInput/index.cjs +1 -1
  258. package/dist/cjs/components/Textarea/index.cjs +1 -1
  259. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  260. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  261. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  262. package/dist/cjs/components/Toast/index.cjs +1 -1
  263. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  264. package/dist/cjs/components/index.cjs +1 -1
  265. package/dist/cjs/index.cjs +1 -1
  266. package/dist/cjs/theme/index.cjs +1 -1
  267. package/dist/esm/chakra/index.js +69 -69
  268. package/dist/esm/components/Alert/index.js +1 -1
  269. package/dist/esm/components/Avatar/index.js +1 -1
  270. package/dist/esm/components/AvatarGroup/index.js +1 -1
  271. package/dist/esm/components/ButtonGroup/index.js +1 -1
  272. package/dist/esm/components/CharacterCounter/index.js +1 -1
  273. package/dist/esm/components/Checkbox/index.js +1 -1
  274. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  275. package/dist/esm/components/ConversationCard/index.js +1 -1
  276. package/dist/esm/components/DatePicker/index.js +1 -1
  277. package/dist/esm/components/Heading/index.js +1 -1
  278. package/dist/esm/components/Logo/index.js +1 -1
  279. package/dist/esm/components/Menu/index.js +1 -1
  280. package/dist/esm/components/Modal/index.js +1 -1
  281. package/dist/esm/components/NotificationCounter/index.js +1 -1
  282. package/dist/esm/components/PinInput/index.js +1 -1
  283. package/dist/esm/components/Popover/index.js +1 -1
  284. package/dist/esm/components/RadioGroup/index.js +1 -1
  285. package/dist/esm/components/RatingDots/index.js +1 -1
  286. package/dist/esm/components/Select/index.js +1 -1
  287. package/dist/esm/components/SortableList/index.js +1 -1
  288. package/dist/esm/components/Spinner/index.js +1 -1
  289. package/dist/esm/components/StyledAvatar/index.js +1 -1
  290. package/dist/esm/components/Swatch/index.js +1 -1
  291. package/dist/esm/components/Switch/index.js +1 -1
  292. package/dist/esm/components/Tabs/index.js +1 -1
  293. package/dist/esm/components/TagBlock/index.js +1 -1
  294. package/dist/esm/components/Text/index.js +1 -1
  295. package/dist/esm/components/TextInput/index.js +1 -1
  296. package/dist/esm/components/Textarea/index.js +1 -1
  297. package/dist/esm/components/TimePicker/index.js +1 -1
  298. package/dist/esm/components/TimeRange/index.js +1 -1
  299. package/dist/esm/components/Timestamp/index.js +1 -1
  300. package/dist/esm/components/Toast/index.js +1 -1
  301. package/dist/esm/components/Tooltip/index.js +1 -1
  302. package/dist/esm/components/index.js +42 -41
  303. package/dist/esm/components/index.js.map +1 -1
  304. package/dist/esm/index.js +61 -60
  305. package/dist/esm/index.js.map +1 -1
  306. package/dist/esm/theme/index.js +1 -1
  307. package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
  308. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  309. package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
  310. package/dist/types/components/Tooltip/tooltip.component.d.ts +6 -5
  311. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
  312. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +3 -3
  313. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +10 -10
  314. package/package.json +1 -1
  315. package/dist/chunks/avatar.component-BRjxOsjQ.js +0 -2
  316. package/dist/chunks/checkbox.component-CYpG_LI3.js +0 -2
  317. package/dist/chunks/checkbox.records-wbkLltak.js +0 -2
  318. package/dist/chunks/conversationCard.component-BbV9kzvn.js +0 -2
  319. package/dist/chunks/datePicker.component-CaX-nDYU.js +0 -15
  320. package/dist/chunks/dialog-trigger-BCeZGpGO.js +0 -2
  321. package/dist/chunks/index-5cRW642o.js +0 -2
  322. package/dist/chunks/index-B4fjIWcA.js +0 -2
  323. package/dist/chunks/index-BfD9Ne2e.js +0 -2
  324. package/dist/chunks/index-BlGAWSIX.js +0 -3
  325. package/dist/chunks/index-BlGAWSIX.js.map +0 -1
  326. package/dist/chunks/index-BmcSWiFh.js +0 -2
  327. package/dist/chunks/index-C323eOJV.js +0 -1328
  328. package/dist/chunks/index-C323eOJV.js.map +0 -1
  329. package/dist/chunks/index-CEYJbpt4.js +0 -2
  330. package/dist/chunks/index-CFnNmQf0.js +0 -2
  331. package/dist/chunks/index-CedYIQt5.js +0 -8
  332. package/dist/chunks/index-Fztcdoo_.js +0 -2
  333. package/dist/chunks/index-Fztcdoo_.js.map +0 -1
  334. package/dist/chunks/index-WyVSig7F.js +0 -70
  335. package/dist/chunks/index-WyVSig7F.js.map +0 -1
  336. package/dist/chunks/index-hGlTuPbK.js +0 -2
  337. package/dist/chunks/menu.component-DzEdcGnQ.js +0 -2
  338. package/dist/chunks/modal.context-DSKLfsJK.js +0 -12
  339. package/dist/chunks/modal.context-DSKLfsJK.js.map +0 -1
  340. package/dist/chunks/modal.context-EJ67QNzq.js +0 -2
  341. package/dist/chunks/modal.context-EJ67QNzq.js.map +0 -1
  342. package/dist/chunks/modal.types-SzYLypgs.js +0 -2
  343. package/dist/chunks/pinInput.types-D73AXb6j.js +0 -2
  344. package/dist/chunks/popover-DPEovmxh.js +0 -2
  345. package/dist/chunks/popover-root-provider-BYJE5I-P.js +0 -2
  346. package/dist/chunks/popover.component-BNH2Qyh6.js +0 -264
  347. package/dist/chunks/popover.component-BNH2Qyh6.js.map +0 -1
  348. package/dist/chunks/popover.component-DXcu1TE5.js +0 -2
  349. package/dist/chunks/popover.component-DXcu1TE5.js.map +0 -1
  350. package/dist/chunks/popover.recipe-BLsWPsAa.js +0 -124
  351. package/dist/chunks/popover.recipe-BLsWPsAa.js.map +0 -1
  352. package/dist/chunks/popover.recipe-av5Jdn1r.js +0 -2
  353. package/dist/chunks/popover.recipe-av5Jdn1r.js.map +0 -1
  354. package/dist/chunks/portal-D2KZrSzZ.js.map +0 -1
  355. package/dist/chunks/portal-TWtD47zg.js +0 -22
  356. package/dist/chunks/portal-TWtD47zg.js.map +0 -1
  357. package/dist/chunks/radio.records-CEgwvLIL.js +0 -2
  358. package/dist/chunks/radioGroup.component-6Sb4sfkk.js +0 -2
  359. package/dist/chunks/render-strategy-CdSSbgPU.js +0 -2
  360. package/dist/chunks/select.component-CuiKCzV4.js +0 -2
  361. package/dist/chunks/switch.component-Ct8hEoT2.js +0 -2
  362. package/dist/chunks/tabs.component-DDmnq9Yj.js +0 -2
  363. package/dist/chunks/textInput.component-HHNykQ9Q.js +0 -2
  364. package/dist/chunks/textarea.component-FFs6Uln9.js +0 -2
  365. package/dist/chunks/theme.provider-BEb3gD55.js +0 -26
  366. package/dist/chunks/theme.provider-BEb3gD55.js.map +0 -1
  367. package/dist/chunks/theme.provider-C5Ltz2zj.js.map +0 -1
  368. package/dist/chunks/timestamp.component-BOksAchA.js +0 -53
  369. package/dist/chunks/timestamp.component-DLh53lam.js +0 -2
  370. package/dist/chunks/toaster.records-CGym-iT-.js +0 -2
  371. package/dist/chunks/use-field-context-xBX4EpFz.js +0 -2
  372. package/dist/chunks/withFormControl-DhWavZor.js +0 -2
  373. package/dist/chunks/withTruncation-D8W737TN.js +0 -562
  374. package/dist/chunks/withTruncation-D8W737TN.js.map +0 -1
  375. package/dist/chunks/withTruncation-nuzHzFsq.js +0 -2
  376. package/dist/chunks/withTruncation-nuzHzFsq.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),g=require("react"),e=require("./use-locale-context-BdqHZ8L8.js"),l=require("./render-strategy-BmWbSgqh.js"),a=require("./index-CZ42b9rT.js"),d=require("./index-MlhL0PDC.js"),[u,p]=e.createContext({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),P=g.forwardRef((t,o)=>{const r=p(),s=l.useRenderStrategyPropsContext(),n=e.usePresence({...s,present:r.open}),c=a.mergeProps(r.getBackdropProps(),n.getPresenceProps(),t);return n.unmounted?null:i.jsxRuntimeExports.jsx(e.ark.div,{...c,ref:e.composeRefs(n.ref,o)})});P.displayName="DialogBackdrop";const x=g.forwardRef((t,o)=>{const r=p(),s=a.mergeProps(r.getCloseTriggerProps(),t);return i.jsxRuntimeExports.jsx(e.ark.button,{...s,ref:o})});x.displayName="DialogCloseTrigger";const m=g.forwardRef((t,o)=>{const r=p(),s=e.usePresenceContext(),n=a.mergeProps(r.getContentProps(),s.getPresenceProps(),t);return s.unmounted?null:i.jsxRuntimeExports.jsx(e.ark.div,{...n,ref:e.composeRefs(s.ref,o)})});m.displayName="DialogContent";const D=g.forwardRef((t,o)=>{const r=p(),s=a.mergeProps(r.getDescriptionProps(),t);return i.jsxRuntimeExports.jsx(e.ark.div,{...s,ref:o})});D.displayName="DialogDescription";const R=g.forwardRef((t,o)=>{const r=p(),s=a.mergeProps(r.getPositionerProps(),t);return e.usePresenceContext().unmounted?null:i.jsxRuntimeExports.jsx(e.ark.div,{...s,ref:o})});R.displayName="DialogPositioner";const C=t=>{const o=g.useId(),{getRootNode:r}=e.useEnvironmentContext(),{dir:s}=e.useLocaleContext(),n={id:o,getRootNode:r,dir:s,...t},c=e.useMachine(d.machine,n);return d.connect(c,e.normalizeProps)},y=t=>{const[o,{children:r,...s}]=e.splitPresenceProps(t),[n]=l.splitRenderStrategyProps(o),c=C(s),v=e.usePresence(a.mergeProps({present:c.open},o));return i.jsxRuntimeExports.jsx(u,{value:c,children:i.jsxRuntimeExports.jsx(l.RenderStrategyPropsProvider,{value:n,children:i.jsxRuntimeExports.jsx(e.PresenceProvider,{value:v,children:r})})})},E=t=>{const[o,{value:r,children:s}]=e.splitPresenceProps(t),[n]=l.splitRenderStrategyProps(o),c=e.usePresence(a.mergeProps({present:r.open},o));return i.jsxRuntimeExports.jsx(u,{value:r,children:i.jsxRuntimeExports.jsx(l.RenderStrategyPropsProvider,{value:n,children:i.jsxRuntimeExports.jsx(e.PresenceProvider,{value:c,children:s})})})},j=g.forwardRef((t,o)=>{const r=p(),s=a.mergeProps(r.getTitleProps(),t);return i.jsxRuntimeExports.jsx(e.ark.h2,{...s,ref:o})});j.displayName="DialogTitle";const f=g.forwardRef((t,o)=>{const r=p(),s=e.usePresenceContext(),n=a.mergeProps({...r.getTriggerProps(),"aria-controls":s.unmounted?void 0:r.getTriggerProps()["aria-controls"]},t);return i.jsxRuntimeExports.jsx(e.ark.button,{...n,ref:o})});f.displayName="DialogTrigger";exports.DialogBackdrop=P;exports.DialogCloseTrigger=x;exports.DialogContent=m;exports.DialogDescription=D;exports.DialogPositioner=R;exports.DialogRoot=y;exports.DialogRootProvider=E;exports.DialogTitle=j;exports.DialogTrigger=f;exports.useDialogContext=p;
2
+ //# sourceMappingURL=dialog-trigger-B5NK0lr-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-trigger-BCeZGpGO.js","sources":["../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js","../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [DialogProvider, useDialogContext] = createContext({\n name: \"DialogContext\",\n hookName: \"useDialogContext\",\n providerName: \"<DialogProvider />\"\n});\n\nexport { DialogProvider, useDialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { useRenderStrategyPropsContext } from '../../utils/render-strategy.js';\nimport { ark } from '../factory.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogBackdrop = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const presence = usePresence({ ...renderStrategyProps, present: dialog.open });\n const mergedProps = mergeProps(dialog.getBackdropProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nexport { DialogBackdrop };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogCloseTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getCloseTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogCloseTrigger.displayName = \"DialogCloseTrigger\";\n\nexport { DialogCloseTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContent = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(dialog.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogContent.displayName = \"DialogContent\";\n\nexport { DialogContent };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogDescription = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogDescription.displayName = \"DialogDescription\";\n\nexport { DialogDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogPositioner = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogPositioner.displayName = \"DialogPositioner\";\n\nexport { DialogPositioner };\n","'use client';\nimport * as dialog from '@zag-js/dialog';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useDialog = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n getRootNode,\n dir,\n ...props\n };\n const service = useMachine(dialog.machine, machineProps);\n return dialog.connect(service, normalizeProps);\n};\n\nexport { useDialog };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useDialog } from './use-dialog.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRoot = (props) => {\n const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const dialog = useDialog(localProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRootProvider = (props) => {\n const [presenceProps, { value: dialog, children }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTitle = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.h2, { ...mergedProps, ref });\n});\nDialogTitle.displayName = \"DialogTitle\";\n\nexport { DialogTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...dialog.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : dialog.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogTrigger.displayName = \"DialogTrigger\";\n\nexport { DialogTrigger };\n"],"names":["DialogProvider","useDialogContext","createContext","DialogBackdrop","forwardRef","props","ref","dialog","renderStrategyProps","useRenderStrategyPropsContext","presence","usePresence","mergedProps","mergeProps","jsx","ark","composeRefs","DialogCloseTrigger","DialogContent","usePresenceContext","DialogDescription","DialogPositioner","useDialog","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","dialog.machine","dialog.connect","normalizeProps","DialogRoot","presenceProps","children","localProps","splitPresenceProps","splitRenderStrategyProps","RenderStrategyPropsProvider","PresenceProvider","DialogRootProvider","DialogTitle","DialogTrigger"],"mappings":"4NAGM,CAACA,EAAgBC,CAAgB,EAAIC,gBAAc,CACvD,KAAM,gBACN,SAAU,mBACV,aAAc,oBAChB,CAAC,ECGKC,EAAiBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAChD,MAAMC,EAASN,EAAkB,EAC3BO,EAAsBC,EAAAA,8BAA+B,EACrDC,EAAWC,EAAAA,YAAY,CAAE,GAAGH,EAAqB,QAASD,EAAO,KAAM,EACvEK,EAAcC,EAAU,WAACN,EAAO,iBAAkB,EAAEG,EAAS,iBAAkB,EAAEL,CAAK,EAC5F,OAAIK,EAAS,UACJ,KAEcI,wBAAIC,EAAAA,IAAI,IAAK,CAAE,GAAGH,EAAa,IAAKI,EAAAA,YAAYN,EAAS,IAAKJ,CAAG,CAAC,CAAE,CAC7F,CAAC,EACDH,EAAe,YAAc,iBCbxB,MAACc,EAAqBb,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACpD,MAAMC,EAASN,EAAkB,EAC3BW,EAAcC,EAAU,WAACN,EAAO,qBAAoB,EAAIF,CAAK,EACnE,OAAuBS,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,OAAQ,CAAE,GAAGH,EAAa,IAAAN,EAAK,CAChE,CAAC,EACDW,EAAmB,YAAc,qBCH5B,MAACC,EAAgBd,EAAU,WAAC,CAACC,EAAOC,IAAQ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C,IAAQ,CAC/C,MAAMC,EAASN,EAAkB,EAC3BS,EAAWS,EAAAA,mBAAoB,EAC/BP,EAAcC,EAAU,WAC5B,CACE,GAAGN,EAAO,gBAAiB,EAC3B,gBAAiBG,EAAS,UAAY,OAASH,EAAO,gBAAe,EAAG,eAAe,CACxF,EACDF,CACD,EACD,OAAuBS,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,OAAQ,CAAE,GAAGH,EAAa,IAAAN,EAAK,CAChE,CAAC,EACDuC,EAAc,YAAc","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
1
+ {"version":3,"file":"dialog-trigger-B5NK0lr-.js","sources":["../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js","../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [DialogProvider, useDialogContext] = createContext({\n name: \"DialogContext\",\n hookName: \"useDialogContext\",\n providerName: \"<DialogProvider />\"\n});\n\nexport { DialogProvider, useDialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { useRenderStrategyPropsContext } from '../../utils/render-strategy.js';\nimport { ark } from '../factory.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogBackdrop = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const presence = usePresence({ ...renderStrategyProps, present: dialog.open });\n const mergedProps = mergeProps(dialog.getBackdropProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nexport { DialogBackdrop };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogCloseTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getCloseTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogCloseTrigger.displayName = \"DialogCloseTrigger\";\n\nexport { DialogCloseTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContent = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(dialog.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogContent.displayName = \"DialogContent\";\n\nexport { DialogContent };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogDescription = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogDescription.displayName = \"DialogDescription\";\n\nexport { DialogDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogPositioner = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogPositioner.displayName = \"DialogPositioner\";\n\nexport { DialogPositioner };\n","'use client';\nimport * as dialog from '@zag-js/dialog';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useDialog = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n getRootNode,\n dir,\n ...props\n };\n const service = useMachine(dialog.machine, machineProps);\n return dialog.connect(service, normalizeProps);\n};\n\nexport { useDialog };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useDialog } from './use-dialog.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRoot = (props) => {\n const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const dialog = useDialog(localProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRootProvider = (props) => {\n const [presenceProps, { value: dialog, children }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTitle = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.h2, { ...mergedProps, ref });\n});\nDialogTitle.displayName = \"DialogTitle\";\n\nexport { DialogTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...dialog.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : dialog.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogTrigger.displayName = \"DialogTrigger\";\n\nexport { DialogTrigger };\n"],"names":["DialogProvider","useDialogContext","createContext","DialogBackdrop","forwardRef","props","ref","dialog","renderStrategyProps","useRenderStrategyPropsContext","presence","usePresence","mergedProps","mergeProps","jsx","ark","composeRefs","DialogCloseTrigger","DialogContent","usePresenceContext","DialogDescription","DialogPositioner","useDialog","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","dialog.machine","dialog.connect","normalizeProps","DialogRoot","presenceProps","children","localProps","splitPresenceProps","splitRenderStrategyProps","RenderStrategyPropsProvider","PresenceProvider","DialogRootProvider","DialogTitle","DialogTrigger"],"mappings":"wOAGM,CAACA,EAAgBC,CAAgB,EAAIC,gBAAc,CACvD,KAAM,gBACN,SAAU,mBACV,aAAc,oBAChB,CAAC,ECGKC,EAAiBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAChD,MAAMC,EAASN,EAAkB,EAC3BO,EAAsBC,EAAAA,8BAA+B,EACrDC,EAAWC,EAAAA,YAAY,CAAE,GAAGH,EAAqB,QAASD,EAAO,KAAM,EACvEK,EAAcC,EAAU,WAACN,EAAO,iBAAkB,EAAEG,EAAS,iBAAkB,EAAEL,CAAK,EAC5F,OAAIK,EAAS,UACJ,KAEcI,wBAAIC,EAAAA,IAAI,IAAK,CAAE,GAAGH,EAAa,IAAKI,EAAAA,YAAYN,EAAS,IAAKJ,CAAG,CAAC,CAAE,CAC7F,CAAC,EACDH,EAAe,YAAc,iBCbxB,MAACc,EAAqBb,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACpD,MAAMC,EAASN,EAA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EAASN,EAAkB,EAC3BW,EAAcC,EAAU,WAACN,EAAO,cAAa,EAAIF,CAAK,EAC5D,OAAuBS,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,GAAI,CAAE,GAAGH,EAAa,IAAAN,EAAK,CAC5D,CAAC,EACDsC,EAAY,YAAc,cCJrB,MAACC,EAAgBzC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC/C,MAAMC,EAASN,EAAkB,EAC3BS,EAAWS,EAAAA,mBAAoB,EAC/BP,EAAcC,EAAU,WAC5B,CACE,GAAGN,EAAO,gBAAiB,EAC3B,gBAAiBG,EAAS,UAAY,OAASH,EAAO,gBAAe,EAAG,eAAe,CACxF,EACDF,CACD,EACD,OAAuBS,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,OAAQ,CAAE,GAAGH,EAAa,IAAAN,EAAK,CAChE,CAAC,EACDuC,EAAc,YAAc","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
@@ -1,9 +1,9 @@
1
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import { forwardRef as c, useId as j } from "react";
3
- import { c as C, l as p, f as l, h as u, u as d, i as h, j as y, k as N, n as R, s as P, m } from "./portal-D2KZrSzZ.js";
4
- import { u as T, s as D, R as x } from "./render-strategy-ql9Qx5Cz.js";
5
- import { a1 as a } from "./index-C323eOJV.js";
6
- import { m as k, c as S } from "./index-Cuu1x05z.js";
3
+ import { c as C, l as p, f as l, h as u, u as d, i as h, j as y, k as N, n as R, s as P, m } from "./use-locale-context-D-agiW5E.js";
4
+ import { u as T, s as D, R as x } from "./render-strategy-C8hwN3bm.js";
5
+ import { Y as a } from "./index-CYk-7wwG.js";
6
+ import { m as k, c as S } from "./index-C2kxTsiE.js";
7
7
  const [v, g] = C({
8
8
  name: "DialogContext",
9
9
  hookName: "useDialogContext",
@@ -41,10 +41,10 @@ const I = (s) => {
41
41
  ...s
42
42
  }, i = N(k, t);
43
43
  return S(i, R);
44
- }, K = (s) => {
44
+ }, J = (s) => {
45
45
  const [o, { children: e, ...r }] = P(s), [t] = D(o), i = I(r), f = p(a({ present: i.open }, o));
46
46
  return /* @__PURE__ */ n.jsx(v, { value: i, children: /* @__PURE__ */ n.jsx(x, { value: t, children: /* @__PURE__ */ n.jsx(m, { value: f, children: e }) }) });
47
- }, O = (s) => {
47
+ }, K = (s) => {
48
48
  const [o, { value: e, children: r }] = P(s), [t] = D(o), i = p(a({ present: e.open }, o));
49
49
  return /* @__PURE__ */ n.jsx(v, { value: e, children: /* @__PURE__ */ n.jsx(x, { value: t, children: /* @__PURE__ */ n.jsx(m, { value: i, children: r }) }) });
50
50
  }, L = c((s, o) => {
@@ -64,15 +64,15 @@ const M = c((s, o) => {
64
64
  });
65
65
  M.displayName = "DialogTrigger";
66
66
  export {
67
- K as D,
67
+ J as D,
68
68
  M as a,
69
69
  b,
70
70
  z as c,
71
71
  E as d,
72
72
  B as e,
73
73
  L as f,
74
- O as g,
74
+ K as g,
75
75
  w as h,
76
76
  g as u
77
77
  };
78
- //# sourceMappingURL=dialog-trigger-D2uDgMJr.js.map
78
+ //# sourceMappingURL=dialog-trigger-BPlPzPU-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-trigger-D2uDgMJr.js","sources":["../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js","../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [DialogProvider, useDialogContext] = createContext({\n name: \"DialogContext\",\n hookName: \"useDialogContext\",\n providerName: \"<DialogProvider />\"\n});\n\nexport { DialogProvider, useDialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { useRenderStrategyPropsContext } from '../../utils/render-strategy.js';\nimport { ark } from '../factory.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogBackdrop = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const presence = usePresence({ ...renderStrategyProps, present: dialog.open });\n const mergedProps = mergeProps(dialog.getBackdropProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nexport { DialogBackdrop };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogCloseTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getCloseTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogCloseTrigger.displayName = \"DialogCloseTrigger\";\n\nexport { DialogCloseTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContent = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(dialog.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogContent.displayName = \"DialogContent\";\n\nexport { DialogContent };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogDescription = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogDescription.displayName = \"DialogDescription\";\n\nexport { DialogDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogPositioner = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogPositioner.displayName = \"DialogPositioner\";\n\nexport { DialogPositioner };\n","'use client';\nimport * as dialog from '@zag-js/dialog';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useDialog = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n getRootNode,\n dir,\n ...props\n };\n const service = useMachine(dialog.machine, machineProps);\n return dialog.connect(service, normalizeProps);\n};\n\nexport { useDialog };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useDialog } from './use-dialog.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRoot = (props) => {\n const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const dialog = useDialog(localProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRootProvider = (props) => {\n const [presenceProps, { value: dialog, children }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTitle = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.h2, { ...mergedProps, ref });\n});\nDialogTitle.displayName = \"DialogTitle\";\n\nexport { DialogTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...dialog.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : dialog.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogTrigger.displayName = \"DialogTrigger\";\n\nexport { DialogTrigger };\n"],"names":["DialogProvider","useDialogContext","createContext","DialogBackdrop","forwardRef","props","ref","dialog","renderStrategyProps","useRenderStrategyPropsContext","presence","usePresence","mergedProps","mergeProps","jsx","ark","composeRefs","DialogCloseTrigger","DialogContent","usePresenceContext","DialogDescription","DialogPositioner","useDialog","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","dialog.machine","dialog.connect","normalizeProps","DialogRoot","presenceProps","children","localProps","splitPresenceProps","splitRenderStrategyProps","RenderStrategyPropsProvider","PresenceProvider","DialogRootProvider","DialogTitle","DialogTrigger"],"mappings":";;;;;;AAGK,MAAC,CAACA,GAAgBC,CAAgB,IAAIC,EAAc;AAAA,EACvD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GCGKC,IAAiBC,EAAW,CAACC,GAAOC,MAAQ;AAChD,QAAMC,IAASN,EAAkB,GAC3BO,IAAsBC,EAA+B,GACrDC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gBAAAA,EAAAA,IAAI2B,GAA6B,EAAE,OAAOjC,GAAqB,UAA0BM,gBAAAA,EAAAA,IAAI4B,GAAkB,EAAE,OAAOhC,GAAU,UAAA2B,EAAQ,CAAE,EAAG,CAAA,GAAG;AAC1O,GCPMO,IAAcxC,EAAW,CAACC,GAAOC,MAAQ;AAC7C,QAAMC,IAASN,EAAkB,GAC3BW,IAAcC,EAAWN,EAAO,cAAa,GAAIF,CAAK;AAC5D,SAAuBS,gBAAAA,EAAAA,IAAIC,EAAI,IAAI,EAAE,GAAGH,GAAa,KAAAN,GAAK;AAC5D,CAAC;AACDsC,EAAY,cAAc;ACJrB,MAACC,IAAgBzC,EAAW,CAACC,GAAOC,MAAQ;AAC/C,QAAMC,IAASN,EAAkB,GAC3BS,IAAWS,EAAoB,GAC/BP,IAAcC;AAAA,IAClB;AAAA,MACE,GAAGN,EAAO,gBAAiB;AAAA,MAC3B,iBAAiBG,EAAS,YAAY,SAASH,EAAO,gBAAe,EAAG,eAAe;AAAA,IACxF;AAAA,IACDF;AAAA,EACD;AACD,SAAuBS,gBAAAA,EAAAA,IAAIC,EAAI,QAAQ,EAAE,GAAGH,GAAa,KAAAN,GAAK;AAChE,CAAC;AACDuC,EAAc,cAAc;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
1
+ {"version":3,"file":"dialog-trigger-BPlPzPU-.js","sources":["../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js","../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [DialogProvider, useDialogContext] = createContext({\n name: \"DialogContext\",\n hookName: \"useDialogContext\",\n providerName: \"<DialogProvider />\"\n});\n\nexport { DialogProvider, useDialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { useRenderStrategyPropsContext } from '../../utils/render-strategy.js';\nimport { ark } from '../factory.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogBackdrop = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const presence = usePresence({ ...renderStrategyProps, present: dialog.open });\n const mergedProps = mergeProps(dialog.getBackdropProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nexport { DialogBackdrop };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogCloseTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getCloseTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogCloseTrigger.displayName = \"DialogCloseTrigger\";\n\nexport { DialogCloseTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContent = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(dialog.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogContent.displayName = \"DialogContent\";\n\nexport { DialogContent };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogDescription = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogDescription.displayName = \"DialogDescription\";\n\nexport { DialogDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogPositioner = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogPositioner.displayName = \"DialogPositioner\";\n\nexport { DialogPositioner };\n","'use client';\nimport * as dialog from '@zag-js/dialog';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useDialog = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n getRootNode,\n dir,\n ...props\n };\n const service = useMachine(dialog.machine, machineProps);\n return dialog.connect(service, normalizeProps);\n};\n\nexport { useDialog };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useDialog } from './use-dialog.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRoot = (props) => {\n const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const dialog = useDialog(localProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRootProvider = (props) => {\n const [presenceProps, { value: dialog, children }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTitle = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.h2, { ...mergedProps, ref });\n});\nDialogTitle.displayName = \"DialogTitle\";\n\nexport { DialogTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...dialog.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : dialog.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogTrigger.displayName = \"DialogTrigger\";\n\nexport { DialogTrigger };\n"],"names":["DialogProvider","useDialogContext","createContext","DialogBackdrop","forwardRef","props","ref","dialog","renderStrategyProps","useRenderStrategyPropsContext","presence","usePresence","mergedProps","mergeProps","jsx","ark","composeRefs","DialogCloseTrigger","DialogContent","usePresenceContext","DialogDescription","DialogPositioner","useDialog","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","dialog.machine","dialog.connect","normalizeProps","DialogRoot","presenceProps","children","localProps","splitPresenceProps","splitRenderStrategyProps","RenderStrategyPropsProvider","PresenceProvider","DialogRootProvider","DialogTitle","DialogTrigger"],"mappings":";;;;;;AAGK,MAAC,CAACA,GAAgBC,CAAgB,IAAIC,EAAc;AAAA,EACvD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GCGKC,IAAiBC,EAAW,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AAC;AAChF,SAAuBtB,gBAAAA,EAAG,IAACd,GAAgB,EAAE,OAAOO,GAAQ,UAA0BO,gBAAAA,EAAAA,IAAI2B,GAA6B,EAAE,OAAOjC,GAAqB,UAA0BM,gBAAAA,EAAAA,IAAI4B,GAAkB,EAAE,OAAOhC,GAAU,UAAA2B,EAAQ,CAAE,EAAG,CAAA,GAAG;AAC1O,GCPMO,IAAcxC,EAAW,CAACC,GAAOC,MAAQ;AAC7C,QAAMC,IAASN,EAAkB,GAC3BW,IAAcC,EAAWN,EAAO,cAAa,GAAIF,CAAK;AAC5D,SAAuBS,gBAAAA,EAAAA,IAAIC,EAAI,IAAI,EAAE,GAAGH,GAAa,KAAAN,GAAK;AAC5D,CAAC;AACDsC,EAAY,cAAc;ACJrB,MAACC,IAAgBzC,EAAW,CAACC,GAAOC,MAAQ;AAC/C,QAAMC,IAASN,EAAkB,GAC3BS,IAAWS,EAAoB,GAC/BP,IAAcC;AAAA,IAClB;AAAA,MACE,GAAGN,EAAO,gBAAiB;AAAA,MAC3B,iBAAiBG,EAAS,YAAY,SAASH,EAAO,gBAAe,EAAG,eAAe;AAAA,IACxF;AAAA,IACDF;AAAA,EACD;AACD,SAAuBS,gBAAAA,EAAAA,IAAIC,EAAI,QAAQ,EAAE,GAAGH,GAAa,KAAAN,GAAK;AAChE,CAAC;AACDuC,EAAc,cAAc;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
@@ -1,5 +1,5 @@
1
1
  import { j as i } from "./jsx-runtime-C5mzlN2N.js";
2
- import { w as n } from "./withTruncation-D8W737TN.js";
2
+ import { w as n } from "./withTruncation-DoQriKuH.js";
3
3
  import { c as o } from "./create-recipe-context-D7FewUR4.js";
4
4
  const { withContext: s } = o({
5
5
  key: "heading"
@@ -9,4 +9,4 @@ const p = n(e);
9
9
  export {
10
10
  p as W
11
11
  };
12
- //# sourceMappingURL=heading.component-CUa8MRJt.js.map
12
+ //# sourceMappingURL=heading.component-BXcyhAEU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.component-CUa8MRJt.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/heading.js","../../src/components/Heading/heading.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"heading\"\n});\nconst Heading = withContext(\"h2\");\nconst HeadingPropsProvider = PropsProvider;\n\nexport { Heading, HeadingPropsProvider };\n","import React from \"react\";\nimport {\n Heading as CHeading,\n HeadingProps as CHeadingProps,\n} from \"@chakra-ui/react/typography\";\nimport { HeadingSize } from \"./heading.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\n\nexport interface HeadingProps extends WithTruncationProps, CHeadingProps {\n size?: HeadingSize;\n variant?: TypographyVariant;\n}\n\nconst Heading = ({ children, ...rest }: HeadingProps): React.JSX.Element => {\n return (\n <CHeading className=\"Heading\" data-testid=\"kibble-heading\" {...rest}>\n {children}\n </CHeading>\n );\n};\n\nHeading.displayName = \"Heading\";\n\nconst WrappedHeading = withTruncation(Heading);\n\nexport { WrappedHeading as Heading };\n"],"names":["withContext","createRecipeContext","Heading","children","rest","jsx","CHeading","WrappedHeading","withTruncation"],"mappings":";;;AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAUF,EAAY,IAAI,GCO1BE,IAAU,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAE5BC,gBAAAA,EAAA,IAACC,KAAS,WAAU,WAAU,eAAY,kBAAkB,GAAGF,GAC5D,UAAAD,GACH;AAIJD,EAAQ,cAAc;AAEhB,MAAAK,IAAiBC,EAAeN,CAAO;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"heading.component-BXcyhAEU.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/heading.js","../../src/components/Heading/heading.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"heading\"\n});\nconst Heading = withContext(\"h2\");\nconst HeadingPropsProvider = PropsProvider;\n\nexport { Heading, HeadingPropsProvider };\n","import React from \"react\";\nimport {\n Heading as CHeading,\n HeadingProps as CHeadingProps,\n} from \"@chakra-ui/react/typography\";\nimport { HeadingSize } from \"./heading.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\n\nexport interface HeadingProps extends WithTruncationProps, CHeadingProps {\n size?: HeadingSize;\n variant?: TypographyVariant;\n}\n\nconst Heading = ({ children, ...rest }: HeadingProps): React.JSX.Element => {\n return (\n <CHeading className=\"Heading\" data-testid=\"kibble-heading\" {...rest}>\n {children}\n </CHeading>\n );\n};\n\nHeading.displayName = \"Heading\";\n\nconst WrappedHeading = withTruncation(Heading);\n\nexport { WrappedHeading as Heading };\n"],"names":["withContext","createRecipeContext","Heading","children","rest","jsx","CHeading","WrappedHeading","withTruncation"],"mappings":";;;AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAUF,EAAY,IAAI,GCO1BE,IAAU,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAE5BC,gBAAAA,EAAA,IAACC,KAAS,WAAU,WAAU,eAAY,kBAAkB,GAAGF,GAC5D,UAAAD,GACH;AAIJD,EAAQ,cAAc;AAEhB,MAAAK,IAAiBC,EAAeN,CAAO;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),a=require("./withTruncation-nuzHzFsq.js"),s=require("./create-recipe-context-sESms8Eo.js"),{withContext:r}=s.createRecipeContext({key:"heading"}),c=r("h2"),e=({children:t,...n})=>i.jsxRuntimeExports.jsx(c,{className:"Heading","data-testid":"kibble-heading",...n,children:t});e.displayName="Heading";const d=a.withTruncation(e);exports.WrappedHeading=d;
2
- //# sourceMappingURL=heading.component-Cuqs0DsG.js.map
1
+ "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),a=require("./withTruncation-DPbMF-jg.js"),s=require("./create-recipe-context-sESms8Eo.js"),{withContext:r}=s.createRecipeContext({key:"heading"}),c=r("h2"),e=({children:t,...n})=>i.jsxRuntimeExports.jsx(c,{className:"Heading","data-testid":"kibble-heading",...n,children:t});e.displayName="Heading";const d=a.withTruncation(e);exports.WrappedHeading=d;
2
+ //# sourceMappingURL=heading.component-ZD_UVarx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.component-Cuqs0DsG.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/heading.js","../../src/components/Heading/heading.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"heading\"\n});\nconst Heading = withContext(\"h2\");\nconst HeadingPropsProvider = PropsProvider;\n\nexport { Heading, HeadingPropsProvider };\n","import React from \"react\";\nimport {\n Heading as CHeading,\n HeadingProps as CHeadingProps,\n} from \"@chakra-ui/react/typography\";\nimport { HeadingSize } from \"./heading.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\n\nexport interface HeadingProps extends WithTruncationProps, CHeadingProps {\n size?: HeadingSize;\n variant?: TypographyVariant;\n}\n\nconst Heading = ({ children, ...rest }: HeadingProps): React.JSX.Element => {\n return (\n <CHeading className=\"Heading\" data-testid=\"kibble-heading\" {...rest}>\n {children}\n </CHeading>\n );\n};\n\nHeading.displayName = \"Heading\";\n\nconst WrappedHeading = withTruncation(Heading);\n\nexport { WrappedHeading as Heading };\n"],"names":["withContext","createRecipeContext","Heading","children","rest","jsx","CHeading","WrappedHeading","withTruncation"],"mappings":"qJAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,SACP,CAAC,EACKC,EAAUF,EAAY,IAAI,ECO1BE,EAAU,CAAC,CAAE,SAAAC,EAAU,GAAGC,KAE5BC,EAAA,kBAAA,IAACC,GAAS,UAAU,UAAU,cAAY,iBAAkB,GAAGF,EAC5D,SAAAD,EACH,EAIJD,EAAQ,YAAc,UAEhB,MAAAK,EAAiBC,iBAAeN,CAAO","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"heading.component-ZD_UVarx.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/heading.js","../../src/components/Heading/heading.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"heading\"\n});\nconst Heading = withContext(\"h2\");\nconst HeadingPropsProvider = PropsProvider;\n\nexport { Heading, HeadingPropsProvider };\n","import React from \"react\";\nimport {\n Heading as CHeading,\n HeadingProps as CHeadingProps,\n} from \"@chakra-ui/react/typography\";\nimport { HeadingSize } from \"./heading.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\n\nexport interface HeadingProps extends WithTruncationProps, CHeadingProps {\n size?: HeadingSize;\n variant?: TypographyVariant;\n}\n\nconst Heading = ({ children, ...rest }: HeadingProps): React.JSX.Element => {\n return (\n <CHeading className=\"Heading\" data-testid=\"kibble-heading\" {...rest}>\n {children}\n </CHeading>\n );\n};\n\nHeading.displayName = \"Heading\";\n\nconst WrappedHeading = withTruncation(Heading);\n\nexport { WrappedHeading as Heading };\n"],"names":["withContext","createRecipeContext","Heading","children","rest","jsx","CHeading","WrappedHeading","withTruncation"],"mappings":"qJAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,SACP,CAAC,EACKC,EAAUF,EAAY,IAAI,ECO1BE,EAAU,CAAC,CAAE,SAAAC,EAAU,GAAGC,KAE5BC,EAAA,kBAAA,IAACC,GAAS,UAAU,UAAU,cAAY,iBAAkB,GAAGF,EAC5D,SAAAD,EACH,EAIJD,EAAQ,YAAc,UAEhB,MAAAK,EAAiBC,iBAAeN,CAAO","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index-BlGAWSIX.js");var g=new WeakMap,w=new WeakMap,x={},I=0,E=e=>e&&(e.host||E(e.parentNode)),A=(e,i)=>i.map(o=>{if(e.contains(o))return o;const t=E(o);return t&&e.contains(t)?t:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),C=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),P=(e,i)=>{const{parentNode:o,markerName:t,controlAttribute:s}=i,r=A(o,Array.isArray(e)?e:[e]);x[t]||(x[t]=new WeakMap);const a=x[t],d=[],h=new Set,c=new Set(r),l=u=>{!u||h.has(u)||(h.add(u),l(u.parentNode))};r.forEach(l);const p=u=>{!u||c.has(u)||Array.prototype.forEach.call(u.children,b=>{if(h.has(b))p(b);else try{if(C(b))return;const F=b.getAttribute(s)==="true",y=(g.get(b)||0)+1,T=(a.get(b)||0)+1;g.set(b,y),a.set(b,T),d.push(b),y===1&&F&&w.set(b,!0),T===1&&b.setAttribute(t,""),F||b.setAttribute(s,"true")}catch(v){console.error("[zag-js > ariaHidden] cannot operate on ",b,v)}})};return p(o),h.clear(),I++,()=>{d.forEach(u=>{const b=g.get(u)-1,v=a.get(u)-1;g.set(u,b),a.set(u,v),b||(w.has(u)||u.removeAttribute(s),w.delete(u)),v||u.removeAttribute(t)}),I--,I||(g=new WeakMap,g=new WeakMap,w=new WeakMap,x={})}},G=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,R=(e,i=G(e),o="data-aria-hidden")=>{if(i)return P(e,{parentNode:i,markerName:o,controlAttribute:"aria-hidden"})},B=e=>{const i=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(i)};function S(e,i={}){const{defer:o=!0}=i,t=o?B:r=>r(),s=[];return s.push(t(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&s.push(R(a))})),()=>{s.forEach(r=>r?.())}}var K=Object.defineProperty,M=(e,i,o)=>i in e?K(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,f=(e,i,o)=>M(e,typeof i!="symbol"?i+"":i,o),k={activateTrap(e,i){if(e.length>0){const t=e[e.length-1];t!==i&&t.pause()}const o=e.indexOf(i);o===-1||e.splice(o,1),e.push(i)},deactivateTrap(e,i){const o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},L=[],_=class{constructor(e,i){f(this,"trapStack"),f(this,"config"),f(this,"doc"),f(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),f(this,"listenerCleanups",[]),f(this,"handleFocus",t=>{const s=n.getEventTarget(t),r=this.findContainerIndex(s,t)>=0;if(r||n.isDocument(s))r&&(this.state.mostRecentlyFocusedNode=s);else{t.stopImmediatePropagation();let a,d=!0;if(this.state.mostRecentlyFocusedNode)if(n.getTabIndex(this.state.mostRecentlyFocusedNode)>0){const h=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[h];if(c.length>0){const l=c.findIndex(p=>p===this.state.mostRecentlyFocusedNode);l>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?l+1<c.length&&(a=c[l+1],d=!1):l-1>=0&&(a=c[l-1],d=!1))}}else this.state.containerGroups.some(h=>h.tabbableNodes.some(c=>n.getTabIndex(c)>0))||(d=!1);else d=!1;d&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),f(this,"handlePointerDown",t=>{const s=n.getEventTarget(t);if(!(this.findContainerIndex(s,t)>=0)){if(m(this.config.clickOutsideDeactivates,t)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}m(this.config.allowOutsideClick,t)||t.preventDefault()}}),f(this,"handleClick",t=>{const s=n.getEventTarget(t);this.findContainerIndex(s,t)>=0||m(this.config.clickOutsideDeactivates,t)||m(this.config.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}),f(this,"handleTabKey",t=>{if(this.config.isKeyForward(t)||this.config.isKeyBackward(t)){this.state.recentNavEvent=t;const s=this.config.isKeyBackward(t),r=this.findNextNavNode({event:t,isBackward:s});if(!r)return;N(t)&&t.preventDefault(),this.tryFocus(r)}}),f(this,"handleEscapeKey",t=>{W(t)&&m(this.config.escapeDeactivates,t)!==!1&&(t.preventDefault(),this.deactivate())}),f(this,"_mutationObserver"),f(this,"setupMutationObserver",()=>{const t=this.doc.defaultView||window;this._mutationObserver=new t.MutationObserver(s=>{s.some(a=>Array.from(a.removedNodes).some(h=>h===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),f(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(t=>{this._mutationObserver?.observe(t,{subtree:!0,childList:!0})})}),f(this,"getInitialFocusNode",()=>{let t=this.getNodeForOption("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!n.isFocusable(t))if(this.findContainerIndex(this.doc.activeElement)>=0)t=this.doc.activeElement;else{const s=this.state.tabbableGroups[0];t=s&&s.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else t===null&&(t=this.getNodeForOption("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t.isConnected||(t=this.getNodeForOption("fallbackFocus")),t}),f(this,"tryFocus",t=>{if(t!==!1&&t!==n.getActiveElement(this.doc)){if(!t||!t.focus){this.tryFocus(this.getInitialFocusNode());return}t.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=t,$(t)&&t.select()}}),f(this,"deactivate",t=>{if(!this.state.active)return this;const s={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...t};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),k.deactivateTrap(this.trapStack,this);const r=this.getOption(s,"onDeactivate"),a=this.getOption(s,"onPostDeactivate"),d=this.getOption(s,"checkCanReturnFocus"),h=this.getOption(s,"returnFocus","returnFocusOnDeactivate");r?.();const c=()=>{D(()=>{if(h){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(l)}a?.()})};if(h&&d){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return d(l).then(c,c),this}return c(),this}),f(this,"pause",t=>{if(this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onPause"),r=this.getOption(t,"onPostPause");return this.state.paused=!0,s?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"unpause",t=>{if(!this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onUnpause"),r=this.getOption(t,"onPostUnpause");return this.state.paused=!1,s?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"updateContainerElements",t=>(this.state.containers=Array.isArray(t)?t.filter(Boolean):[t].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),f(this,"getReturnFocusNode",t=>{const s=this.getNodeForOption("setReturnFocus",{params:[t]});return s||(s===!1?!1:t)}),f(this,"getOption",(t,s,r)=>t&&t[s]!==void 0?t[s]:this.config[r||s]),f(this,"getNodeForOption",(t,{hasFallback:s=!1,params:r=[]}={})=>{let a=this.config[t];if(typeof a=="function"&&(a=a(...r)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${t}\` was specified but was not a node, or did not return a node`)}let d=a;if(typeof a=="string"){try{d=this.doc.querySelector(a)}catch(h){throw new Error(`\`${t}\` appears to be an invalid selector; error="${h.message}"`)}if(!d&&!s)throw new Error(`\`${t}\` as selector refers to no known node`)}return d}),f(this,"findNextNavNode",t=>{const{event:s,isBackward:r=!1}=t,a=t.target||n.getEventTarget(s);this.updateTabbableNodes();let d=null;if(this.state.tabbableGroups.length>0){const h=this.findContainerIndex(a,s),c=h>=0?this.state.containerGroups[h]:void 0;if(h<0)r?d=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:d=this.state.tabbableGroups[0].firstTabbableNode;else if(r){let l=this.state.tabbableGroups.findIndex(({firstTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a,!1))&&(l=h),l>=0){const p=l===0?this.state.tabbableGroups.length-1:l-1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.lastTabbableNode:u.lastDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a,!1))}else{let l=this.state.tabbableGroups.findIndex(({lastTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a))&&(l=h),l>=0){const p=l===this.state.tabbableGroups.length-1?0:l+1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.firstTabbableNode:u.firstDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a))}}else d=this.getNodeForOption("fallbackFocus");return d}),this.trapStack=i.trapStack||L;const o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(t){return N(t)&&!t.shiftKey},isKeyBackward(t){return N(t)&&t.shiftKey},...i};this.doc=o.document||n.getDocument(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,i){const o=typeof i?.composedPath=="function"?i.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:s})=>t.contains(e)||o?.includes(t)||s.find(r=>r===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const i=n.getTabbables(e),o=n.getFocusables(e),t=i.length>0?i[0]:void 0,s=i.length>0?i[i.length-1]:void 0,r=o.find(c=>n.isTabbable(c)),a=o.slice().reverse().find(c=>n.isTabbable(c)),d=!!i.find(c=>n.getTabIndex(c)>0);function h(c,l=!0){const p=i.indexOf(c);return p<0?l?o.slice(o.indexOf(c)+1).find(u=>n.isTabbable(u)):o.slice(0,o.indexOf(c)).reverse().find(u=>n.isTabbable(u)):i[p+(l?1:-1)]}return{container:e,tabbableNodes:i,focusableNodes:o,posTabIndexesFound:d,firstTabbableNode:t,lastTabbableNode:s,firstDomTabbableNode:r,lastDomTabbableNode:a,nextTabbableNode:h}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return k.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?D(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(n.addDomEvent(this.doc,"focusin",this.handleFocus,!0),n.addDomEvent(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const i=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),t=this.getOption(e,"checkCanFocusTrap");t||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,i?.();const s=()=>{t&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return t?(t(this.state.containers.concat()).then(s,s),this):(s(),this)}},N=e=>e.key==="Tab",m=(e,...i)=>typeof e=="function"?e(...i):e,W=e=>!e.isComposing&&e.key==="Escape",D=e=>setTimeout(e,0),$=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function V(e,i={}){let o;const t=n.raf(()=>{const s=typeof e=="function"?e():e;if(s){o=new _(s,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:s,...i,document:n.getDocument(s)});try{o.activate()}catch{}}});return function(){o?.deactivate(),t()}}var O="data-scroll-lock";function H(e){const i=e.getBoundingClientRect().left;return Math.round(i)+e.scrollLeft?"paddingLeft":"paddingRight"}function U(e){const i=e??document,o=i.defaultView??window,{documentElement:t,body:s}=i;if(s.hasAttribute(O))return;s.setAttribute(O,"");const a=o.innerWidth-t.clientWidth,d=()=>n.setStyleProperty(t,"--scrollbar-width",`${a}px`),h=H(t),c=()=>n.setStyle(s,{overflow:"hidden",[h]:`${a}px`}),l=()=>{const{scrollX:u,scrollY:b,visualViewport:v}=o,F=v?.offsetLeft??0,y=v?.offsetTop??0,T=n.setStyle(s,{position:"fixed",overflow:"hidden",top:`${-(b-Math.floor(y))}px`,left:`${-(u-Math.floor(F))}px`,right:"0",[h]:`${a}px`});return()=>{T?.(),o.scrollTo({left:u,top:b,behavior:"instant"})}},p=[d(),n.isIos()?l():c()];return()=>{p.forEach(u=>u?.()),s.removeAttribute(O)}}exports.ariaHidden=S;exports.preventBodyScroll=U;exports.trapFocus=V;
2
- //# sourceMappingURL=index-DZGYG5M4.js.map
1
+ "use strict";const n=require("./index-CZ42b9rT.js");var g=new WeakMap,w=new WeakMap,x={},I=0,E=e=>e&&(e.host||E(e.parentNode)),A=(e,i)=>i.map(o=>{if(e.contains(o))return o;const t=E(o);return t&&e.contains(t)?t:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),C=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),P=(e,i)=>{const{parentNode:o,markerName:t,controlAttribute:s}=i,r=A(o,Array.isArray(e)?e:[e]);x[t]||(x[t]=new WeakMap);const a=x[t],d=[],h=new Set,c=new Set(r),l=u=>{!u||h.has(u)||(h.add(u),l(u.parentNode))};r.forEach(l);const p=u=>{!u||c.has(u)||Array.prototype.forEach.call(u.children,b=>{if(h.has(b))p(b);else try{if(C(b))return;const F=b.getAttribute(s)==="true",y=(g.get(b)||0)+1,T=(a.get(b)||0)+1;g.set(b,y),a.set(b,T),d.push(b),y===1&&F&&w.set(b,!0),T===1&&b.setAttribute(t,""),F||b.setAttribute(s,"true")}catch(v){console.error("[zag-js > ariaHidden] cannot operate on ",b,v)}})};return p(o),h.clear(),I++,()=>{d.forEach(u=>{const b=g.get(u)-1,v=a.get(u)-1;g.set(u,b),a.set(u,v),b||(w.has(u)||u.removeAttribute(s),w.delete(u)),v||u.removeAttribute(t)}),I--,I||(g=new WeakMap,g=new WeakMap,w=new WeakMap,x={})}},G=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,R=(e,i=G(e),o="data-aria-hidden")=>{if(i)return P(e,{parentNode:i,markerName:o,controlAttribute:"aria-hidden"})},B=e=>{const i=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(i)};function S(e,i={}){const{defer:o=!0}=i,t=o?B:r=>r(),s=[];return s.push(t(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&s.push(R(a))})),()=>{s.forEach(r=>r?.())}}var K=Object.defineProperty,M=(e,i,o)=>i in e?K(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,f=(e,i,o)=>M(e,typeof i!="symbol"?i+"":i,o),k={activateTrap(e,i){if(e.length>0){const t=e[e.length-1];t!==i&&t.pause()}const o=e.indexOf(i);o===-1||e.splice(o,1),e.push(i)},deactivateTrap(e,i){const o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},L=[],_=class{constructor(e,i){f(this,"trapStack"),f(this,"config"),f(this,"doc"),f(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),f(this,"listenerCleanups",[]),f(this,"handleFocus",t=>{const s=n.getEventTarget(t),r=this.findContainerIndex(s,t)>=0;if(r||n.isDocument(s))r&&(this.state.mostRecentlyFocusedNode=s);else{t.stopImmediatePropagation();let a,d=!0;if(this.state.mostRecentlyFocusedNode)if(n.getTabIndex(this.state.mostRecentlyFocusedNode)>0){const h=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[h];if(c.length>0){const l=c.findIndex(p=>p===this.state.mostRecentlyFocusedNode);l>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?l+1<c.length&&(a=c[l+1],d=!1):l-1>=0&&(a=c[l-1],d=!1))}}else this.state.containerGroups.some(h=>h.tabbableNodes.some(c=>n.getTabIndex(c)>0))||(d=!1);else d=!1;d&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),f(this,"handlePointerDown",t=>{const s=n.getEventTarget(t);if(!(this.findContainerIndex(s,t)>=0)){if(m(this.config.clickOutsideDeactivates,t)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}m(this.config.allowOutsideClick,t)||t.preventDefault()}}),f(this,"handleClick",t=>{const s=n.getEventTarget(t);this.findContainerIndex(s,t)>=0||m(this.config.clickOutsideDeactivates,t)||m(this.config.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}),f(this,"handleTabKey",t=>{if(this.config.isKeyForward(t)||this.config.isKeyBackward(t)){this.state.recentNavEvent=t;const s=this.config.isKeyBackward(t),r=this.findNextNavNode({event:t,isBackward:s});if(!r)return;N(t)&&t.preventDefault(),this.tryFocus(r)}}),f(this,"handleEscapeKey",t=>{W(t)&&m(this.config.escapeDeactivates,t)!==!1&&(t.preventDefault(),this.deactivate())}),f(this,"_mutationObserver"),f(this,"setupMutationObserver",()=>{const t=this.doc.defaultView||window;this._mutationObserver=new t.MutationObserver(s=>{s.some(a=>Array.from(a.removedNodes).some(h=>h===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),f(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(t=>{this._mutationObserver?.observe(t,{subtree:!0,childList:!0})})}),f(this,"getInitialFocusNode",()=>{let t=this.getNodeForOption("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!n.isFocusable(t))if(this.findContainerIndex(this.doc.activeElement)>=0)t=this.doc.activeElement;else{const s=this.state.tabbableGroups[0];t=s&&s.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else t===null&&(t=this.getNodeForOption("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t.isConnected||(t=this.getNodeForOption("fallbackFocus")),t}),f(this,"tryFocus",t=>{if(t!==!1&&t!==n.getActiveElement(this.doc)){if(!t||!t.focus){this.tryFocus(this.getInitialFocusNode());return}t.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=t,$(t)&&t.select()}}),f(this,"deactivate",t=>{if(!this.state.active)return this;const s={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...t};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),k.deactivateTrap(this.trapStack,this);const r=this.getOption(s,"onDeactivate"),a=this.getOption(s,"onPostDeactivate"),d=this.getOption(s,"checkCanReturnFocus"),h=this.getOption(s,"returnFocus","returnFocusOnDeactivate");r?.();const c=()=>{D(()=>{if(h){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(l)}a?.()})};if(h&&d){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return d(l).then(c,c),this}return c(),this}),f(this,"pause",t=>{if(this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onPause"),r=this.getOption(t,"onPostPause");return this.state.paused=!0,s?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"unpause",t=>{if(!this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onUnpause"),r=this.getOption(t,"onPostUnpause");return this.state.paused=!1,s?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"updateContainerElements",t=>(this.state.containers=Array.isArray(t)?t.filter(Boolean):[t].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),f(this,"getReturnFocusNode",t=>{const s=this.getNodeForOption("setReturnFocus",{params:[t]});return s||(s===!1?!1:t)}),f(this,"getOption",(t,s,r)=>t&&t[s]!==void 0?t[s]:this.config[r||s]),f(this,"getNodeForOption",(t,{hasFallback:s=!1,params:r=[]}={})=>{let a=this.config[t];if(typeof a=="function"&&(a=a(...r)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${t}\` was specified but was not a node, or did not return a node`)}let d=a;if(typeof a=="string"){try{d=this.doc.querySelector(a)}catch(h){throw new Error(`\`${t}\` appears to be an invalid selector; error="${h.message}"`)}if(!d&&!s)throw new Error(`\`${t}\` as selector refers to no known node`)}return d}),f(this,"findNextNavNode",t=>{const{event:s,isBackward:r=!1}=t,a=t.target||n.getEventTarget(s);this.updateTabbableNodes();let d=null;if(this.state.tabbableGroups.length>0){const h=this.findContainerIndex(a,s),c=h>=0?this.state.containerGroups[h]:void 0;if(h<0)r?d=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:d=this.state.tabbableGroups[0].firstTabbableNode;else if(r){let l=this.state.tabbableGroups.findIndex(({firstTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a,!1))&&(l=h),l>=0){const p=l===0?this.state.tabbableGroups.length-1:l-1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.lastTabbableNode:u.lastDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a,!1))}else{let l=this.state.tabbableGroups.findIndex(({lastTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a))&&(l=h),l>=0){const p=l===this.state.tabbableGroups.length-1?0:l+1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.firstTabbableNode:u.firstDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a))}}else d=this.getNodeForOption("fallbackFocus");return d}),this.trapStack=i.trapStack||L;const o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(t){return N(t)&&!t.shiftKey},isKeyBackward(t){return N(t)&&t.shiftKey},...i};this.doc=o.document||n.getDocument(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,i){const o=typeof i?.composedPath=="function"?i.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:s})=>t.contains(e)||o?.includes(t)||s.find(r=>r===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const i=n.getTabbables(e),o=n.getFocusables(e),t=i.length>0?i[0]:void 0,s=i.length>0?i[i.length-1]:void 0,r=o.find(c=>n.isTabbable(c)),a=o.slice().reverse().find(c=>n.isTabbable(c)),d=!!i.find(c=>n.getTabIndex(c)>0);function h(c,l=!0){const p=i.indexOf(c);return p<0?l?o.slice(o.indexOf(c)+1).find(u=>n.isTabbable(u)):o.slice(0,o.indexOf(c)).reverse().find(u=>n.isTabbable(u)):i[p+(l?1:-1)]}return{container:e,tabbableNodes:i,focusableNodes:o,posTabIndexesFound:d,firstTabbableNode:t,lastTabbableNode:s,firstDomTabbableNode:r,lastDomTabbableNode:a,nextTabbableNode:h}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return k.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?D(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(n.addDomEvent(this.doc,"focusin",this.handleFocus,!0),n.addDomEvent(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const i=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),t=this.getOption(e,"checkCanFocusTrap");t||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,i?.();const s=()=>{t&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return t?(t(this.state.containers.concat()).then(s,s),this):(s(),this)}},N=e=>e.key==="Tab",m=(e,...i)=>typeof e=="function"?e(...i):e,W=e=>!e.isComposing&&e.key==="Escape",D=e=>setTimeout(e,0),$=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function V(e,i={}){let o;const t=n.raf(()=>{const s=typeof e=="function"?e():e;if(s){o=new _(s,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:s,...i,document:n.getDocument(s)});try{o.activate()}catch{}}});return function(){o?.deactivate(),t()}}var O="data-scroll-lock";function H(e){const i=e.getBoundingClientRect().left;return Math.round(i)+e.scrollLeft?"paddingLeft":"paddingRight"}function U(e){const i=e??document,o=i.defaultView??window,{documentElement:t,body:s}=i;if(s.hasAttribute(O))return;s.setAttribute(O,"");const a=o.innerWidth-t.clientWidth,d=()=>n.setStyleProperty(t,"--scrollbar-width",`${a}px`),h=H(t),c=()=>n.setStyle(s,{overflow:"hidden",[h]:`${a}px`}),l=()=>{const{scrollX:u,scrollY:b,visualViewport:v}=o,F=v?.offsetLeft??0,y=v?.offsetTop??0,T=n.setStyle(s,{position:"fixed",overflow:"hidden",top:`${-(b-Math.floor(y))}px`,left:`${-(u-Math.floor(F))}px`,right:"0",[h]:`${a}px`});return()=>{T?.(),o.scrollTo({left:u,top:b,behavior:"instant"})}},p=[d(),n.isIos()?l():c()];return()=>{p.forEach(u=>u?.()),s.removeAttribute(O)}}exports.ariaHidden=S;exports.preventBodyScroll=U;exports.trapFocus=V;
2
+ //# sourceMappingURL=index-BBZxmcrY.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DZGYG5M4.js","sources":["../../node_modules/@zag-js/aria-hidden/dist/index.mjs","../../node_modules/@zag-js/focus-trap/dist/index.mjs","../../node_modules/@zag-js/remove-scroll/dist/index.mjs"],"sourcesContent":["// src/walk-tree-outside.ts\nvar counterMap = /* @__PURE__ */ new WeakMap();\nvar uncontrolledNodes = /* @__PURE__ */ new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));\nvar correctTargets = (parent, targets) => targets.map((target) => {\n if (parent.contains(target)) return target;\n const correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error(\"[zag-js > ariaHidden] target\", target, \"in not contained inside\", parent, \". Doing nothing\");\n return null;\n}).filter((x) => Boolean(x));\nvar isIgnoredNode = (node) => {\n if (node.localName === \"next-route-announcer\") return true;\n if (node.localName === \"script\") return true;\n if (node.hasAttribute(\"aria-live\")) return true;\n return node.matches(\"[data-live-announcer]\");\n};\nvar walkTreeOutside = (originalTarget, props) => {\n const { parentNode, markerName, controlAttribute} = props;\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());\n const markerCounter = markerMap[markerName];\n const hiddenNodes = [];\n const elementsToKeep = /* @__PURE__ */ new Set();\n const elementsToStop = new Set(targets);\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) return;\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, (node) => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n try {\n if (isIgnoredNode(node)) return;\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr === \"true\" ;\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, \"\");\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, \"true\" );\n }\n } catch (e) {\n console.error(\"[zag-js > ariaHidden] cannot operate on \", node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = /* @__PURE__ */ new WeakMap();\n counterMap = /* @__PURE__ */ new WeakMap();\n uncontrolledNodes = /* @__PURE__ */ new WeakMap();\n markerMap = {};\n }\n };\n};\n\n// src/aria-hidden.ts\nvar getParentNode = (originalTarget) => {\n const target = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return target.ownerDocument.body;\n};\nvar hideOthers = (originalTarget, parentNode = getParentNode(originalTarget), markerName = \"data-aria-hidden\") => {\n if (!parentNode) return;\n return walkTreeOutside(originalTarget, {\n parentNode,\n markerName,\n controlAttribute: \"aria-hidden\"});\n};\n\n// src/index.ts\nvar raf = (fn) => {\n const frameId = requestAnimationFrame(() => fn());\n return () => cancelAnimationFrame(frameId);\n};\nfunction ariaHidden(targetsOrFn, options = {}) {\n const { defer = true } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const targets = typeof targetsOrFn === \"function\" ? targetsOrFn() : targetsOrFn;\n const elements = targets.filter(Boolean);\n if (elements.length === 0) return;\n cleanups.push(hideOthers(elements));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { ariaHidden };\n","import { getDocument, getTabbables, getFocusables, isTabbable, getTabIndex, addDomEvent, raf, getEventTarget, isDocument, isFocusable, getActiveElement } from '@zag-js/dom-query';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\nvar activeFocusTraps = {\n activateTrap(trapStack, trap) {\n if (trapStack.length > 0) {\n const activeTrap = trapStack[trapStack.length - 1];\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex === -1) {\n trapStack.push(trap);\n } else {\n trapStack.splice(trapIndex, 1);\n trapStack.push(trap);\n }\n },\n deactivateTrap(trapStack, trap) {\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex !== -1) {\n trapStack.splice(trapIndex, 1);\n }\n if (trapStack.length > 0) {\n trapStack[trapStack.length - 1].unpause();\n }\n }\n};\nvar sharedTrapStack = [];\nvar FocusTrap = class {\n constructor(elements, options) {\n __publicField(this, \"trapStack\");\n __publicField(this, \"config\");\n __publicField(this, \"doc\");\n __publicField(this, \"state\", {\n containers: [],\n containerGroups: [],\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n delayInitialFocusTimer: void 0,\n recentNavEvent: void 0\n });\n __publicField(this, \"listenerCleanups\", []);\n __publicField(this, \"handleFocus\", (event) => {\n const target = getEventTarget(event);\n const targetContained = this.findContainerIndex(target, event) >= 0;\n if (targetContained || isDocument(target)) {\n if (targetContained) {\n this.state.mostRecentlyFocusedNode = target;\n }\n } else {\n event.stopImmediatePropagation();\n let nextNode;\n let navAcrossContainers = true;\n if (this.state.mostRecentlyFocusedNode) {\n if (getTabIndex(this.state.mostRecentlyFocusedNode) > 0) {\n const mruContainerIdx = this.findContainerIndex(this.state.mostRecentlyFocusedNode);\n const { tabbableNodes } = this.state.containerGroups[mruContainerIdx];\n if (tabbableNodes.length > 0) {\n const mruTabIdx = tabbableNodes.findIndex((node) => node === this.state.mostRecentlyFocusedNode);\n if (mruTabIdx >= 0) {\n if (this.config.isKeyForward(this.state.recentNavEvent)) {\n if (mruTabIdx + 1 < tabbableNodes.length) {\n nextNode = tabbableNodes[mruTabIdx + 1];\n navAcrossContainers = false;\n }\n } else {\n if (mruTabIdx - 1 >= 0) {\n nextNode = tabbableNodes[mruTabIdx - 1];\n navAcrossContainers = false;\n }\n }\n }\n }\n } else {\n if (!this.state.containerGroups.some((g) => g.tabbableNodes.some((n) => getTabIndex(n) > 0))) {\n navAcrossContainers = false;\n }\n }\n } else {\n navAcrossContainers = false;\n }\n if (navAcrossContainers) {\n nextNode = this.findNextNavNode({\n // move FROM the MRU node, not event-related node (which will be the node that is\n // outside the trap causing the focus escape we're trying to fix)\n target: this.state.mostRecentlyFocusedNode,\n isBackward: this.config.isKeyBackward(this.state.recentNavEvent)\n });\n }\n if (nextNode) {\n this.tryFocus(nextNode);\n } else {\n this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());\n }\n }\n this.state.recentNavEvent = void 0;\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n });\n __publicField(this, \"handleClick\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n __publicField(this, \"handleTabKey\", (event) => {\n if (this.config.isKeyForward(event) || this.config.isKeyBackward(event)) {\n this.state.recentNavEvent = event;\n const isBackward = this.config.isKeyBackward(event);\n const destinationNode = this.findNextNavNode({ event, isBackward });\n if (!destinationNode) return;\n if (isTabEvent(event)) {\n event.preventDefault();\n }\n this.tryFocus(destinationNode);\n }\n });\n __publicField(this, \"handleEscapeKey\", (event) => {\n if (isEscapeEvent(event) && valueOrHandler(this.config.escapeDeactivates, event) !== false) {\n event.preventDefault();\n this.deactivate();\n }\n });\n __publicField(this, \"_mutationObserver\");\n __publicField(this, \"setupMutationObserver\", () => {\n const win = this.doc.defaultView || window;\n this._mutationObserver = new win.MutationObserver((mutations) => {\n const isFocusedNodeRemoved = mutations.some((mutation) => {\n const removedNodes = Array.from(mutation.removedNodes);\n return removedNodes.some((node) => node === this.state.mostRecentlyFocusedNode);\n });\n if (isFocusedNodeRemoved) {\n this.tryFocus(this.getInitialFocusNode());\n }\n });\n });\n __publicField(this, \"updateObservedNodes\", () => {\n this._mutationObserver?.disconnect();\n if (this.state.active && !this.state.paused) {\n this.state.containers.map((container) => {\n this._mutationObserver?.observe(container, { subtree: true, childList: true });\n });\n }\n });\n __publicField(this, \"getInitialFocusNode\", () => {\n let node = this.getNodeForOption(\"initialFocus\", { hasFallback: true });\n if (node === false) {\n return false;\n }\n if (node === void 0 || node && !isFocusable(node)) {\n if (this.findContainerIndex(this.doc.activeElement) >= 0) {\n node = this.doc.activeElement;\n } else {\n const firstTabbableGroup = this.state.tabbableGroups[0];\n const firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n node = firstTabbableNode || this.getNodeForOption(\"fallbackFocus\");\n }\n } else if (node === null) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n if (!node) {\n throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n }\n if (!node.isConnected) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n return node;\n });\n __publicField(this, \"tryFocus\", (node) => {\n if (node === false) return;\n if (node === getActiveElement(this.doc)) return;\n if (!node || !node.focus) {\n this.tryFocus(this.getInitialFocusNode());\n return;\n }\n node.focus({ preventScroll: !!this.config.preventScroll });\n this.state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n });\n __publicField(this, \"deactivate\", (deactivateOptions) => {\n if (!this.state.active) return this;\n const options = {\n onDeactivate: this.config.onDeactivate,\n onPostDeactivate: this.config.onPostDeactivate,\n checkCanReturnFocus: this.config.checkCanReturnFocus,\n ...deactivateOptions\n };\n clearTimeout(this.state.delayInitialFocusTimer);\n this.state.delayInitialFocusTimer = void 0;\n this.removeListeners();\n this.state.active = false;\n this.state.paused = false;\n this.updateObservedNodes();\n activeFocusTraps.deactivateTrap(this.trapStack, this);\n const onDeactivate = this.getOption(options, \"onDeactivate\");\n const onPostDeactivate = this.getOption(options, \"onPostDeactivate\");\n const checkCanReturnFocus = this.getOption(options, \"checkCanReturnFocus\");\n const returnFocus = this.getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n onDeactivate?.();\n const finishDeactivation = () => {\n delay(() => {\n if (returnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n this.tryFocus(returnFocusNode);\n }\n onPostDeactivate?.();\n });\n };\n if (returnFocus && checkCanReturnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n checkCanReturnFocus(returnFocusNode).then(finishDeactivation, finishDeactivation);\n return this;\n }\n finishDeactivation();\n return this;\n });\n __publicField(this, \"pause\", (pauseOptions) => {\n if (this.state.paused || !this.state.active) {\n return this;\n }\n const onPause = this.getOption(pauseOptions, \"onPause\");\n const onPostPause = this.getOption(pauseOptions, \"onPostPause\");\n this.state.paused = true;\n onPause?.();\n this.removeListeners();\n this.updateObservedNodes();\n onPostPause?.();\n return this;\n });\n __publicField(this, \"unpause\", (unpauseOptions) => {\n if (!this.state.paused || !this.state.active) {\n return this;\n }\n const onUnpause = this.getOption(unpauseOptions, \"onUnpause\");\n const onPostUnpause = this.getOption(unpauseOptions, \"onPostUnpause\");\n this.state.paused = false;\n onUnpause?.();\n this.updateTabbableNodes();\n this.addListeners();\n this.updateObservedNodes();\n onPostUnpause?.();\n return this;\n });\n __publicField(this, \"updateContainerElements\", (containerElements) => {\n this.state.containers = Array.isArray(containerElements) ? containerElements.filter(Boolean) : [containerElements].filter(Boolean);\n if (this.state.active) {\n this.updateTabbableNodes();\n }\n this.updateObservedNodes();\n return this;\n });\n __publicField(this, \"getReturnFocusNode\", (previousActiveElement) => {\n const node = this.getNodeForOption(\"setReturnFocus\", {\n params: [previousActiveElement]\n });\n return node ? node : node === false ? false : previousActiveElement;\n });\n __publicField(this, \"getOption\", (configOverrideOptions, optionName, configOptionName) => {\n return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : (\n // @ts-expect-error\n this.config[configOptionName || optionName]\n );\n });\n __publicField(this, \"getNodeForOption\", (optionName, { hasFallback = false, params = [] } = {}) => {\n let optionValue = this.config[optionName];\n if (typeof optionValue === \"function\") optionValue = optionValue(...params);\n if (optionValue === true) optionValue = void 0;\n if (!optionValue) {\n if (optionValue === void 0 || optionValue === false) {\n return optionValue;\n }\n throw new Error(`\\`${optionName}\\` was specified but was not a node, or did not return a node`);\n }\n let node = optionValue;\n if (typeof optionValue === \"string\") {\n try {\n node = this.doc.querySelector(optionValue);\n } catch (err) {\n throw new Error(`\\`${optionName}\\` appears to be an invalid selector; error=\"${err.message}\"`);\n }\n if (!node) {\n if (!hasFallback) {\n throw new Error(`\\`${optionName}\\` as selector refers to no known node`);\n }\n }\n }\n return node;\n });\n __publicField(this, \"findNextNavNode\", (opts) => {\n const { event, isBackward = false } = opts;\n const target = opts.target || getEventTarget(event);\n this.updateTabbableNodes();\n let destinationNode = null;\n if (this.state.tabbableGroups.length > 0) {\n const containerIndex = this.findContainerIndex(target, event);\n const containerGroup = containerIndex >= 0 ? this.state.containerGroups[containerIndex] : void 0;\n if (containerIndex < 0) {\n if (isBackward) {\n destinationNode = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n destinationNode = this.state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (isBackward) {\n let startOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ firstTabbableNode }) => target === firstTabbableNode\n );\n if (startOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target, false))) {\n startOfGroupIndex = containerIndex;\n }\n if (startOfGroupIndex >= 0) {\n const destinationGroupIndex = startOfGroupIndex === 0 ? this.state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target, false);\n }\n } else {\n let lastOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ lastTabbableNode }) => target === lastTabbableNode\n );\n if (lastOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target))) {\n lastOfGroupIndex = containerIndex;\n }\n if (lastOfGroupIndex >= 0) {\n const destinationGroupIndex = lastOfGroupIndex === this.state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.firstTabbableNode : destinationGroup.firstDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target);\n }\n }\n } else {\n destinationNode = this.getNodeForOption(\"fallbackFocus\");\n }\n return destinationNode;\n });\n this.trapStack = options.trapStack || sharedTrapStack;\n const config = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true,\n isKeyForward(e) {\n return isTabEvent(e) && !e.shiftKey;\n },\n isKeyBackward(e) {\n return isTabEvent(e) && e.shiftKey;\n },\n ...options\n };\n this.doc = config.document || getDocument(Array.isArray(elements) ? elements[0] : elements);\n this.config = config;\n this.updateContainerElements(elements);\n this.setupMutationObserver();\n }\n get active() {\n return this.state.active;\n }\n get paused() {\n return this.state.paused;\n }\n findContainerIndex(element, event) {\n const composedPath = typeof event?.composedPath === \"function\" ? event.composedPath() : void 0;\n return this.state.containerGroups.findIndex(\n ({ container, tabbableNodes }) => container.contains(element) || composedPath?.includes(container) || tabbableNodes.find((node) => node === element)\n );\n }\n updateTabbableNodes() {\n this.state.containerGroups = this.state.containers.map((container) => {\n const tabbableNodes = getTabbables(container);\n const focusableNodes = getFocusables(container);\n const firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;\n const lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;\n const firstDomTabbableNode = focusableNodes.find((node) => isTabbable(node));\n const lastDomTabbableNode = focusableNodes.slice().reverse().find((node) => isTabbable(node));\n const posTabIndexesFound = !!tabbableNodes.find((node) => getTabIndex(node) > 0);\n function nextTabbableNode(node, forward = true) {\n const nodeIdx = tabbableNodes.indexOf(node);\n if (nodeIdx < 0) {\n if (forward) {\n return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find((el) => isTabbable(el));\n }\n return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find((el) => isTabbable(el));\n }\n return tabbableNodes[nodeIdx + (forward ? 1 : -1)];\n }\n return {\n container,\n tabbableNodes,\n focusableNodes,\n posTabIndexesFound,\n firstTabbableNode,\n lastTabbableNode,\n firstDomTabbableNode,\n lastDomTabbableNode,\n nextTabbableNode\n };\n });\n this.state.tabbableGroups = this.state.containerGroups.filter((group) => group.tabbableNodes.length > 0);\n if (this.state.tabbableGroups.length <= 0 && !this.getNodeForOption(\"fallbackFocus\")) {\n throw new Error(\n \"Your focus-trap must have at least one container with at least one tabbable node in it at all times\"\n );\n }\n if (this.state.containerGroups.find((g) => g.posTabIndexesFound) && this.state.containerGroups.length > 1) {\n throw new Error(\n \"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.\"\n );\n }\n }\n addListeners() {\n if (!this.state.active) return;\n activeFocusTraps.activateTrap(this.trapStack, this);\n this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? delay(() => {\n this.tryFocus(this.getInitialFocusNode());\n }) : this.tryFocus(this.getInitialFocusNode());\n this.listenerCleanups.push(\n addDomEvent(this.doc, \"focusin\", this.handleFocus, true),\n addDomEvent(this.doc, \"mousedown\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"touchstart\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"click\", this.handleClick, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleTabKey, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleEscapeKey)\n );\n return this;\n }\n removeListeners() {\n if (!this.state.active) return;\n this.listenerCleanups.forEach((cleanup) => cleanup());\n this.listenerCleanups = [];\n return this;\n }\n activate(activateOptions) {\n if (this.state.active) {\n return this;\n }\n const onActivate = this.getOption(activateOptions, \"onActivate\");\n const onPostActivate = this.getOption(activateOptions, \"onPostActivate\");\n const checkCanFocusTrap = this.getOption(activateOptions, \"checkCanFocusTrap\");\n if (!checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.state.active = true;\n this.state.paused = false;\n this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null;\n onActivate?.();\n const finishActivation = () => {\n if (checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.addListeners();\n this.updateObservedNodes();\n onPostActivate?.();\n };\n if (checkCanFocusTrap) {\n checkCanFocusTrap(this.state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n finishActivation();\n return this;\n }\n};\nvar isTabEvent = (event) => event.key === \"Tab\";\nvar valueOrHandler = (value, ...params) => typeof value === \"function\" ? value(...params) : value;\nvar isEscapeEvent = (event) => !event.isComposing && event.key === \"Escape\";\nvar delay = (fn) => setTimeout(fn, 0);\nvar isSelectableInput = (node) => node.localName === \"input\" && \"select\" in node && typeof node.select === \"function\";\n\n// src/index.ts\nfunction trapFocus(el, options = {}) {\n let trap;\n const cleanup = raf(() => {\n const contentEl = typeof el === \"function\" ? el() : el;\n if (!contentEl) return;\n trap = new FocusTrap(contentEl, {\n escapeDeactivates: false,\n allowOutsideClick: true,\n preventScroll: true,\n returnFocusOnDeactivate: true,\n delayInitialFocus: false,\n fallbackFocus: contentEl,\n ...options,\n document: getDocument(contentEl)\n });\n try {\n trap.activate();\n } catch {\n }\n });\n return function destroy() {\n trap?.deactivate();\n cleanup();\n };\n}\n\nexport { FocusTrap, trapFocus };\n","import { setStyleProperty, setStyle, isIos } from '@zag-js/dom-query';\n\n// src/index.ts\nvar LOCK_CLASSNAME = \"data-scroll-lock\";\nfunction getPaddingProperty(documentElement) {\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction preventBodyScroll(_document) {\n const doc = _document ?? document;\n const win = doc.defaultView ?? window;\n const { documentElement, body } = doc;\n const locked = body.hasAttribute(LOCK_CLASSNAME);\n if (locked) return;\n body.setAttribute(LOCK_CLASSNAME, \"\");\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setStyleProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setBodyStyle = () => setStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n const setBodyStyleIOS = () => {\n const { scrollX, scrollY, visualViewport } = win;\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = setStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle?.();\n win.scrollTo({ left: scrollX, top: scrollY, behavior: \"instant\" });\n };\n };\n const cleanups = [setScrollbarWidthProperty(), isIos() ? setBodyStyleIOS() : setBodyStyle()];\n return () => {\n cleanups.forEach((fn) => fn?.());\n body.removeAttribute(LOCK_CLASSNAME);\n };\n}\n\nexport { preventBodyScroll };\n"],"names":["counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","isIgnoredNode","walkTreeOutside","originalTarget","props","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","alreadyHidden","counterValue","markerValue","e","getParentNode","hideOthers","raf","fn","frameId","ariaHidden","targetsOrFn","options","defer","func","v","cleanups","elements","__defProp","__defNormalProp","obj","key","value","__publicField","activeFocusTraps","trapStack","trap","activeTrap","trapIndex","sharedTrapStack","FocusTrap","event","getEventTarget","targetContained","isDocument","nextNode","navAcrossContainers","getTabIndex","mruContainerIdx","tabbableNodes","mruTabIdx","g","n","valueOrHandler","isBackward","destinationNode","isTabEvent","isEscapeEvent","win","mutations","mutation","container","isFocusable","firstTabbableGroup","getActiveElement","isSelectableInput","deactivateOptions","onDeactivate","onPostDeactivate","checkCanReturnFocus","returnFocus","finishDeactivation","delay","returnFocusNode","pauseOptions","onPause","onPostPause","unpauseOptions","onUnpause","onPostUnpause","containerElements","previousActiveElement","configOverrideOptions","optionName","configOptionName","hasFallback","params","optionValue","err","opts","containerIndex","containerGroup","startOfGroupIndex","firstTabbableNode","isTabbable","destinationGroupIndex","destinationGroup","lastOfGroupIndex","lastTabbableNode","config","getDocument","element","composedPath","getTabbables","focusableNodes","getFocusables","firstDomTabbableNode","lastDomTabbableNode","posTabIndexesFound","nextTabbableNode","forward","nodeIdx","group","addDomEvent","cleanup","activateOptions","onActivate","onPostActivate","checkCanFocusTrap","finishActivation","trapFocus","contentEl","LOCK_CLASSNAME","getPaddingProperty","documentElement","documentLeft","preventBodyScroll","_document","doc","body","scrollbarWidth","setScrollbarWidthProperty","setStyleProperty","paddingProperty","setBodyStyle","setStyle","setBodyStyleIOS","scrollX","scrollY","visualViewport","offsetLeft","offsetTop","restoreStyle","isIos"],"mappings":"oDACA,IAAIA,EAA6B,IAAI,QACjCC,EAAoC,IAAI,QACxCC,EAAY,CAAE,EACdC,EAAY,EACZC,EAAcC,GAASA,IAASA,EAAK,MAAQD,EAAWC,EAAK,UAAU,GACvEC,EAAiB,CAACC,EAAQC,IAAYA,EAAQ,IAAKC,GAAW,CAChE,GAAIF,EAAO,SAASE,CAAM,EAAG,OAAOA,EACpC,MAAMC,EAAkBN,EAAWK,CAAM,EACzC,OAAIC,GAAmBH,EAAO,SAASG,CAAe,EAC7CA,GAET,QAAQ,MAAM,+BAAgCD,EAAQ,0BAA2BF,EAAQ,iBAAiB,EACnG,KACT,CAAC,EAAE,OAAQI,GAAM,EAAQA,CAAE,EACvBC,EAAiBP,GACfA,EAAK,YAAc,wBACnBA,EAAK,YAAc,UACnBA,EAAK,aAAa,WAAW,EAAU,GACpCA,EAAK,QAAQ,uBAAuB,EAEzCQ,EAAkB,CAACC,EAAgBC,IAAU,CAC/C,KAAM,CAAE,WAAAC,EAAY,WAAAC,EAAY,iBAAAC,CAAgB,EAAIH,EAC9CP,EAAUF,EAAeU,EAAY,MAAM,QAAQF,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EAC5GZ,EAAUe,CAAU,IAAMf,EAAUe,CAAU,EAAoB,IAAI,SACtE,MAAME,EAAgBjB,EAAUe,CAAU,EACpCG,EAAc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,aAAaP,EAAgB,EAAE,EACpC,MAAMQ,EAAiBxE,EAAI,WAAakE,EAAgB,YAClDO,EAA4B,IAAMC,EAAAA,iBAAiBR,EAAiB,oBAAqB,GAAGM,CAAc,IAAI,EAC9GG,EAAkBV,EAAmBC,CAAe,EACpDU,EAAe,IAAMC,EAAQ,SAACN,EAAM,CACxC,SAAU,SACV,CAACI,CAAe,EAAG,GAAGH,CAAc,IACxC,CAAG,EACKM,EAAkB,IAAM,CAC5B,KAAM,CAAE,QAAAC,EAAS,QAAAC,EAAS,eAAAC,CAAgB,EAAGjF,EACvCkF,EAAaD,GAAgB,YAAc,EAC3CE,EAAYF,GAAgB,WAAa,EACzCG,EAAeP,EAAQ,SAACN,EAAM,CAClC,SAAU,QACV,SAAU,SACV,IAAK,GAAG,EAAES,EAAU,KAAK,MAAMG,CAAS,EAAE,KAC1C,KAAM,GAAG,EAAEJ,EAAU,KAAK,MAAMG,CAAU,EAAE,KAC5C,MAAO,IACP,CAACP,CAAe,EAAG,GAAGH,CAAc,IAC1C,CAAK,EACD,MAAO,IAAM,CACXY,IAAgB,EAChBpF,EAAI,SAAS,CAAE,KAAM+E,EAAS,IAAKC,EAAS,SAAU,UAAW,CAClE,CACF,EACKhH,EAAW,CAACyG,EAA2B,EAAEY,EAAK,MAAA,EAAKP,EAAe,EAAKF,GAAc,EAC3F,MAAO,IAAM,CACX5G,EAAS,QAASR,GAAOA,IAAE,CAAI,EAC/B+G,EAAK,gBAAgBP,CAAc,CACpC,CACH","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index-BBZxmcrY.js","sources":["../../node_modules/@zag-js/aria-hidden/dist/index.mjs","../../node_modules/@zag-js/focus-trap/dist/index.mjs","../../node_modules/@zag-js/remove-scroll/dist/index.mjs"],"sourcesContent":["// src/walk-tree-outside.ts\nvar counterMap = /* @__PURE__ */ new WeakMap();\nvar uncontrolledNodes = /* @__PURE__ */ new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));\nvar correctTargets = (parent, targets) => targets.map((target) => {\n if (parent.contains(target)) return target;\n const correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error(\"[zag-js > ariaHidden] target\", target, \"in not contained inside\", parent, \". Doing nothing\");\n return null;\n}).filter((x) => Boolean(x));\nvar isIgnoredNode = (node) => {\n if (node.localName === \"next-route-announcer\") return true;\n if (node.localName === \"script\") return true;\n if (node.hasAttribute(\"aria-live\")) return true;\n return node.matches(\"[data-live-announcer]\");\n};\nvar walkTreeOutside = (originalTarget, props) => {\n const { parentNode, markerName, controlAttribute} = props;\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());\n const markerCounter = markerMap[markerName];\n const hiddenNodes = [];\n const elementsToKeep = /* @__PURE__ */ new Set();\n const elementsToStop = new Set(targets);\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) return;\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, (node) => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n try {\n if (isIgnoredNode(node)) return;\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr === \"true\" ;\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, \"\");\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, \"true\" );\n }\n } catch (e) {\n console.error(\"[zag-js > ariaHidden] cannot operate on \", node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = /* @__PURE__ */ new WeakMap();\n counterMap = /* @__PURE__ */ new WeakMap();\n uncontrolledNodes = /* @__PURE__ */ new WeakMap();\n markerMap = {};\n }\n };\n};\n\n// src/aria-hidden.ts\nvar getParentNode = (originalTarget) => {\n const target = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return target.ownerDocument.body;\n};\nvar hideOthers = (originalTarget, parentNode = getParentNode(originalTarget), markerName = \"data-aria-hidden\") => {\n if (!parentNode) return;\n return walkTreeOutside(originalTarget, {\n parentNode,\n markerName,\n controlAttribute: \"aria-hidden\"});\n};\n\n// src/index.ts\nvar raf = (fn) => {\n const frameId = requestAnimationFrame(() => fn());\n return () => cancelAnimationFrame(frameId);\n};\nfunction ariaHidden(targetsOrFn, options = {}) {\n const { defer = true } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const targets = typeof targetsOrFn === \"function\" ? targetsOrFn() : targetsOrFn;\n const elements = targets.filter(Boolean);\n if (elements.length === 0) return;\n cleanups.push(hideOthers(elements));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { ariaHidden };\n","import { getDocument, getTabbables, getFocusables, isTabbable, getTabIndex, addDomEvent, raf, getEventTarget, isDocument, isFocusable, getActiveElement } from '@zag-js/dom-query';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\nvar activeFocusTraps = {\n activateTrap(trapStack, trap) {\n if (trapStack.length > 0) {\n const activeTrap = trapStack[trapStack.length - 1];\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex === -1) {\n trapStack.push(trap);\n } else {\n trapStack.splice(trapIndex, 1);\n trapStack.push(trap);\n }\n },\n deactivateTrap(trapStack, trap) {\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex !== -1) {\n trapStack.splice(trapIndex, 1);\n }\n if (trapStack.length > 0) {\n trapStack[trapStack.length - 1].unpause();\n }\n }\n};\nvar sharedTrapStack = [];\nvar FocusTrap = class {\n constructor(elements, options) {\n __publicField(this, \"trapStack\");\n __publicField(this, \"config\");\n __publicField(this, \"doc\");\n __publicField(this, \"state\", {\n containers: [],\n containerGroups: [],\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n delayInitialFocusTimer: void 0,\n recentNavEvent: void 0\n });\n __publicField(this, \"listenerCleanups\", []);\n __publicField(this, \"handleFocus\", (event) => {\n const target = getEventTarget(event);\n const targetContained = this.findContainerIndex(target, event) >= 0;\n if (targetContained || isDocument(target)) {\n if (targetContained) {\n this.state.mostRecentlyFocusedNode = target;\n }\n } else {\n event.stopImmediatePropagation();\n let nextNode;\n let navAcrossContainers = true;\n if (this.state.mostRecentlyFocusedNode) {\n if (getTabIndex(this.state.mostRecentlyFocusedNode) > 0) {\n const mruContainerIdx = this.findContainerIndex(this.state.mostRecentlyFocusedNode);\n const { tabbableNodes } = this.state.containerGroups[mruContainerIdx];\n if (tabbableNodes.length > 0) {\n const mruTabIdx = tabbableNodes.findIndex((node) => node === this.state.mostRecentlyFocusedNode);\n if (mruTabIdx >= 0) {\n if (this.config.isKeyForward(this.state.recentNavEvent)) {\n if (mruTabIdx + 1 < tabbableNodes.length) {\n nextNode = tabbableNodes[mruTabIdx + 1];\n navAcrossContainers = false;\n }\n } else {\n if (mruTabIdx - 1 >= 0) {\n nextNode = tabbableNodes[mruTabIdx - 1];\n navAcrossContainers = false;\n }\n }\n }\n }\n } else {\n if (!this.state.containerGroups.some((g) => g.tabbableNodes.some((n) => getTabIndex(n) > 0))) {\n navAcrossContainers = false;\n }\n }\n } else {\n navAcrossContainers = false;\n }\n if (navAcrossContainers) {\n nextNode = this.findNextNavNode({\n // move FROM the MRU node, not event-related node (which will be the node that is\n // outside the trap causing the focus escape we're trying to fix)\n target: this.state.mostRecentlyFocusedNode,\n isBackward: this.config.isKeyBackward(this.state.recentNavEvent)\n });\n }\n if (nextNode) {\n this.tryFocus(nextNode);\n } else {\n this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());\n }\n }\n this.state.recentNavEvent = void 0;\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n });\n __publicField(this, \"handleClick\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n __publicField(this, \"handleTabKey\", (event) => {\n if (this.config.isKeyForward(event) || this.config.isKeyBackward(event)) {\n this.state.recentNavEvent = event;\n const isBackward = this.config.isKeyBackward(event);\n const destinationNode = this.findNextNavNode({ event, isBackward });\n if (!destinationNode) return;\n if (isTabEvent(event)) {\n event.preventDefault();\n }\n this.tryFocus(destinationNode);\n }\n });\n __publicField(this, \"handleEscapeKey\", (event) => {\n if (isEscapeEvent(event) && valueOrHandler(this.config.escapeDeactivates, event) !== false) {\n event.preventDefault();\n this.deactivate();\n }\n });\n __publicField(this, \"_mutationObserver\");\n __publicField(this, \"setupMutationObserver\", () => {\n const win = this.doc.defaultView || window;\n this._mutationObserver = new win.MutationObserver((mutations) => {\n const isFocusedNodeRemoved = mutations.some((mutation) => {\n const removedNodes = Array.from(mutation.removedNodes);\n return removedNodes.some((node) => node === this.state.mostRecentlyFocusedNode);\n });\n if (isFocusedNodeRemoved) {\n this.tryFocus(this.getInitialFocusNode());\n }\n });\n });\n __publicField(this, \"updateObservedNodes\", () => {\n this._mutationObserver?.disconnect();\n if (this.state.active && !this.state.paused) {\n this.state.containers.map((container) => {\n this._mutationObserver?.observe(container, { subtree: true, childList: true });\n });\n }\n });\n __publicField(this, \"getInitialFocusNode\", () => {\n let node = this.getNodeForOption(\"initialFocus\", { hasFallback: true });\n if (node === false) {\n return false;\n }\n if (node === void 0 || node && !isFocusable(node)) {\n if (this.findContainerIndex(this.doc.activeElement) >= 0) {\n node = this.doc.activeElement;\n } else {\n const firstTabbableGroup = this.state.tabbableGroups[0];\n const firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n node = firstTabbableNode || this.getNodeForOption(\"fallbackFocus\");\n }\n } else if (node === null) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n if (!node) {\n throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n }\n if (!node.isConnected) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n return node;\n });\n __publicField(this, \"tryFocus\", (node) => {\n if (node === false) return;\n if (node === getActiveElement(this.doc)) return;\n if (!node || !node.focus) {\n this.tryFocus(this.getInitialFocusNode());\n return;\n }\n node.focus({ preventScroll: !!this.config.preventScroll });\n this.state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n });\n __publicField(this, \"deactivate\", (deactivateOptions) => {\n if (!this.state.active) return this;\n const options = {\n onDeactivate: this.config.onDeactivate,\n onPostDeactivate: this.config.onPostDeactivate,\n checkCanReturnFocus: this.config.checkCanReturnFocus,\n ...deactivateOptions\n };\n clearTimeout(this.state.delayInitialFocusTimer);\n this.state.delayInitialFocusTimer = void 0;\n this.removeListeners();\n this.state.active = false;\n this.state.paused = false;\n this.updateObservedNodes();\n activeFocusTraps.deactivateTrap(this.trapStack, this);\n const onDeactivate = this.getOption(options, \"onDeactivate\");\n const onPostDeactivate = this.getOption(options, \"onPostDeactivate\");\n const checkCanReturnFocus = this.getOption(options, \"checkCanReturnFocus\");\n const returnFocus = this.getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n onDeactivate?.();\n const finishDeactivation = () => {\n delay(() => {\n if (returnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n this.tryFocus(returnFocusNode);\n }\n onPostDeactivate?.();\n });\n };\n if (returnFocus && checkCanReturnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n checkCanReturnFocus(returnFocusNode).then(finishDeactivation, finishDeactivation);\n return this;\n }\n finishDeactivation();\n return this;\n });\n __publicField(this, \"pause\", (pauseOptions) => {\n if (this.state.paused || !this.state.active) {\n return this;\n }\n const onPause = this.getOption(pauseOptions, \"onPause\");\n const onPostPause = this.getOption(pauseOptions, \"onPostPause\");\n this.state.paused = true;\n onPause?.();\n this.removeListeners();\n this.updateObservedNodes();\n onPostPause?.();\n return this;\n });\n __publicField(this, \"unpause\", (unpauseOptions) => {\n if (!this.state.paused || !this.state.active) {\n return this;\n }\n const onUnpause = this.getOption(unpauseOptions, \"onUnpause\");\n const onPostUnpause = this.getOption(unpauseOptions, \"onPostUnpause\");\n this.state.paused = false;\n onUnpause?.();\n this.updateTabbableNodes();\n this.addListeners();\n this.updateObservedNodes();\n onPostUnpause?.();\n return this;\n });\n __publicField(this, \"updateContainerElements\", (containerElements) => {\n this.state.containers = Array.isArray(containerElements) ? containerElements.filter(Boolean) : [containerElements].filter(Boolean);\n if (this.state.active) {\n this.updateTabbableNodes();\n }\n this.updateObservedNodes();\n return this;\n });\n __publicField(this, \"getReturnFocusNode\", (previousActiveElement) => {\n const node = this.getNodeForOption(\"setReturnFocus\", {\n params: [previousActiveElement]\n });\n return node ? node : node === false ? false : previousActiveElement;\n });\n __publicField(this, \"getOption\", (configOverrideOptions, optionName, configOptionName) => {\n return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : (\n // @ts-expect-error\n this.config[configOptionName || optionName]\n );\n });\n __publicField(this, \"getNodeForOption\", (optionName, { hasFallback = false, params = [] } = {}) => {\n let optionValue = this.config[optionName];\n if (typeof optionValue === \"function\") optionValue = optionValue(...params);\n if (optionValue === true) optionValue = void 0;\n if (!optionValue) {\n if (optionValue === void 0 || optionValue === false) {\n return optionValue;\n }\n throw new Error(`\\`${optionName}\\` was specified but was not a node, or did not return a node`);\n }\n let node = optionValue;\n if (typeof optionValue === \"string\") {\n try {\n node = this.doc.querySelector(optionValue);\n } catch (err) {\n throw new Error(`\\`${optionName}\\` appears to be an invalid selector; error=\"${err.message}\"`);\n }\n if (!node) {\n if (!hasFallback) {\n throw new Error(`\\`${optionName}\\` as selector refers to no known node`);\n }\n }\n }\n return node;\n });\n __publicField(this, \"findNextNavNode\", (opts) => {\n const { event, isBackward = false } = opts;\n const target = opts.target || getEventTarget(event);\n this.updateTabbableNodes();\n let destinationNode = null;\n if (this.state.tabbableGroups.length > 0) {\n const containerIndex = this.findContainerIndex(target, event);\n const containerGroup = containerIndex >= 0 ? this.state.containerGroups[containerIndex] : void 0;\n if (containerIndex < 0) {\n if (isBackward) {\n destinationNode = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n destinationNode = this.state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (isBackward) {\n let startOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ firstTabbableNode }) => target === firstTabbableNode\n );\n if (startOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target, false))) {\n startOfGroupIndex = containerIndex;\n }\n if (startOfGroupIndex >= 0) {\n const destinationGroupIndex = startOfGroupIndex === 0 ? this.state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target, false);\n }\n } else {\n let lastOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ lastTabbableNode }) => target === lastTabbableNode\n );\n if (lastOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target))) {\n lastOfGroupIndex = containerIndex;\n }\n if (lastOfGroupIndex >= 0) {\n const destinationGroupIndex = lastOfGroupIndex === this.state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.firstTabbableNode : destinationGroup.firstDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target);\n }\n }\n } else {\n destinationNode = this.getNodeForOption(\"fallbackFocus\");\n }\n return destinationNode;\n });\n this.trapStack = options.trapStack || sharedTrapStack;\n const config = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true,\n isKeyForward(e) {\n return isTabEvent(e) && !e.shiftKey;\n },\n isKeyBackward(e) {\n return isTabEvent(e) && e.shiftKey;\n },\n ...options\n };\n this.doc = config.document || getDocument(Array.isArray(elements) ? elements[0] : elements);\n this.config = config;\n this.updateContainerElements(elements);\n this.setupMutationObserver();\n }\n get active() {\n return this.state.active;\n }\n get paused() {\n return this.state.paused;\n }\n findContainerIndex(element, event) {\n const composedPath = typeof event?.composedPath === \"function\" ? event.composedPath() : void 0;\n return this.state.containerGroups.findIndex(\n ({ container, tabbableNodes }) => container.contains(element) || composedPath?.includes(container) || tabbableNodes.find((node) => node === element)\n );\n }\n updateTabbableNodes() {\n this.state.containerGroups = this.state.containers.map((container) => {\n const tabbableNodes = getTabbables(container);\n const focusableNodes = getFocusables(container);\n const firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;\n const lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;\n const firstDomTabbableNode = focusableNodes.find((node) => isTabbable(node));\n const lastDomTabbableNode = focusableNodes.slice().reverse().find((node) => isTabbable(node));\n const posTabIndexesFound = !!tabbableNodes.find((node) => getTabIndex(node) > 0);\n function nextTabbableNode(node, forward = true) {\n const nodeIdx = tabbableNodes.indexOf(node);\n if (nodeIdx < 0) {\n if (forward) {\n return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find((el) => isTabbable(el));\n }\n return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find((el) => isTabbable(el));\n }\n return tabbableNodes[nodeIdx + (forward ? 1 : -1)];\n }\n return {\n container,\n tabbableNodes,\n focusableNodes,\n posTabIndexesFound,\n firstTabbableNode,\n lastTabbableNode,\n firstDomTabbableNode,\n lastDomTabbableNode,\n nextTabbableNode\n };\n });\n this.state.tabbableGroups = this.state.containerGroups.filter((group) => group.tabbableNodes.length > 0);\n if (this.state.tabbableGroups.length <= 0 && !this.getNodeForOption(\"fallbackFocus\")) {\n throw new Error(\n \"Your focus-trap must have at least one container with at least one tabbable node in it at all times\"\n );\n }\n if (this.state.containerGroups.find((g) => g.posTabIndexesFound) && this.state.containerGroups.length > 1) {\n throw new Error(\n \"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.\"\n );\n }\n }\n addListeners() {\n if (!this.state.active) return;\n activeFocusTraps.activateTrap(this.trapStack, this);\n this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? delay(() => {\n this.tryFocus(this.getInitialFocusNode());\n }) : this.tryFocus(this.getInitialFocusNode());\n this.listenerCleanups.push(\n addDomEvent(this.doc, \"focusin\", this.handleFocus, true),\n addDomEvent(this.doc, \"mousedown\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"touchstart\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"click\", this.handleClick, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleTabKey, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleEscapeKey)\n );\n return this;\n }\n removeListeners() {\n if (!this.state.active) return;\n this.listenerCleanups.forEach((cleanup) => cleanup());\n this.listenerCleanups = [];\n return this;\n }\n activate(activateOptions) {\n if (this.state.active) {\n return this;\n }\n const onActivate = this.getOption(activateOptions, \"onActivate\");\n const onPostActivate = this.getOption(activateOptions, \"onPostActivate\");\n const checkCanFocusTrap = this.getOption(activateOptions, \"checkCanFocusTrap\");\n if (!checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.state.active = true;\n this.state.paused = false;\n this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null;\n onActivate?.();\n const finishActivation = () => {\n if (checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.addListeners();\n this.updateObservedNodes();\n onPostActivate?.();\n };\n if (checkCanFocusTrap) {\n checkCanFocusTrap(this.state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n finishActivation();\n return this;\n }\n};\nvar isTabEvent = (event) => event.key === \"Tab\";\nvar valueOrHandler = (value, ...params) => typeof value === \"function\" ? value(...params) : value;\nvar isEscapeEvent = (event) => !event.isComposing && event.key === \"Escape\";\nvar delay = (fn) => setTimeout(fn, 0);\nvar isSelectableInput = (node) => node.localName === \"input\" && \"select\" in node && typeof node.select === \"function\";\n\n// src/index.ts\nfunction trapFocus(el, options = {}) {\n let trap;\n const cleanup = raf(() => {\n const contentEl = typeof el === \"function\" ? el() : el;\n if (!contentEl) return;\n trap = new FocusTrap(contentEl, {\n escapeDeactivates: false,\n allowOutsideClick: true,\n preventScroll: true,\n returnFocusOnDeactivate: true,\n delayInitialFocus: false,\n fallbackFocus: contentEl,\n ...options,\n document: getDocument(contentEl)\n });\n try {\n trap.activate();\n } catch {\n }\n });\n return function destroy() {\n trap?.deactivate();\n cleanup();\n };\n}\n\nexport { FocusTrap, trapFocus };\n","import { setStyleProperty, setStyle, isIos } from '@zag-js/dom-query';\n\n// src/index.ts\nvar LOCK_CLASSNAME = \"data-scroll-lock\";\nfunction getPaddingProperty(documentElement) {\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction preventBodyScroll(_document) {\n const doc = _document ?? document;\n const win = doc.defaultView ?? window;\n const { documentElement, body } = doc;\n const locked = body.hasAttribute(LOCK_CLASSNAME);\n if (locked) return;\n body.setAttribute(LOCK_CLASSNAME, \"\");\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setStyleProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setBodyStyle = () => setStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n const setBodyStyleIOS = () => {\n const { scrollX, scrollY, visualViewport } = win;\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = setStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle?.();\n win.scrollTo({ left: scrollX, top: scrollY, behavior: \"instant\" });\n };\n };\n const cleanups = [setScrollbarWidthProperty(), isIos() ? setBodyStyleIOS() : setBodyStyle()];\n return () => {\n cleanups.forEach((fn) => fn?.());\n body.removeAttribute(LOCK_CLASSNAME);\n };\n}\n\nexport { preventBodyScroll };\n"],"names":["counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","isIgnoredNode","walkTreeOutside","originalTarget","props","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","alreadyHidden","counterValue","markerValue","e","getParentNode","hideOthers","raf","fn","frameId","ariaHidden","targetsOrFn","options","defer","func","v","cleanups","elements","__defProp","__defNormalProp","obj","key","value","__publicField","activeFocusTraps","trapStack","trap","activeTrap","trapIndex","sharedTrapStack","FocusTrap","event","getEventTarget","targetContained","isDocument","nextNode","navAcrossContainers","getTabIndex","mruContainerIdx","tabbableNodes","mruTabIdx","g","n","valueOrHandler","isBackward","destinationNode","isTabEvent","isEscapeEvent","win","mutations","mutation","container","isFocusable","firstTabbableGroup","getActiveElement","isSelectableInput","deactivateOptions","onDeactivate","onPostDeactivate","checkCanReturnFocus","returnFocus","finishDeactivation","delay","returnFocusNode","pauseOptions","onPause","onPostPause","unpauseOptions","onUnpause","onPostUnpause","containerElements","previousActiveElement","configOverrideOptions","optionName","configOptionName","hasFallback","params","optionValue","err","opts","containerIndex","containerGroup","startOfGroupIndex","firstTabbableNode","isTabbable","destinationGroupIndex","destinationGroup","lastOfGroupIndex","lastTabbableNode","config","getDocument","element","composedPath","getTabbables","focusableNodes","getFocusables","firstDomTabbableNode","lastDomTabbableNode","posTabIndexesFound","nextTabbableNode","forward","nodeIdx","group","addDomEvent","cleanup","activateOptions","onActivate","onPostActivate","checkCanFocusTrap","finishActivation","trapFocus","contentEl","LOCK_CLASSNAME","getPaddingProperty","documentElement","documentLeft","preventBodyScroll","_document","doc","body","scrollbarWidth","setScrollbarWidthProperty","setStyleProperty","paddingProperty","setBodyStyle","setStyle","setBodyStyleIOS","scrollX","scrollY","visualViewport","offsetLeft","offset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