@televet/kibble-ui 4.0.0-beta.66 → 4.0.0-beta.67

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 (367) hide show
  1. package/dist/chunks/{alert.types-DYf5xFEG.js → alert.types-B7BlPX2-.js} +10 -11
  2. package/dist/chunks/{alert.types-DYf5xFEG.js.map → alert.types-B7BlPX2-.js.map} +1 -1
  3. package/dist/chunks/alert.types-BsvcbTZD.js +2 -0
  4. package/dist/chunks/{alert.types-DbqCOYr5.js.map → alert.types-BsvcbTZD.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-Bk8VVA0l.js → avatar.component-CB5m8zha.js} +22 -22
  6. package/dist/chunks/{avatar.component-Bk8VVA0l.js.map → avatar.component-CB5m8zha.js.map} +1 -1
  7. package/dist/chunks/avatar.component-RKtP3MZt.js +2 -0
  8. package/dist/chunks/{avatar.component-TAfT1LM1.js.map → avatar.component-RKtP3MZt.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-CZnhQOWy.js → avatarGroup.component-CKFjjo2R.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-CZnhQOWy.js.map → avatarGroup.component-CKFjjo2R.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-BGF4gl5d.js → avatarGroup.component-CjBeAxHZ.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-BGF4gl5d.js.map → avatarGroup.component-CjBeAxHZ.js.map} +1 -1
  13. package/dist/chunks/{button.component-Dd9AfGox.js → button.component-BQA_MGYQ.js} +2 -2
  14. package/dist/chunks/{button.component-Dd9AfGox.js.map → button.component-BQA_MGYQ.js.map} +1 -1
  15. package/dist/chunks/{button.component-BpF3MzbZ.js → button.component-DahLrK9h.js} +3 -3
  16. package/dist/chunks/{button.component-BpF3MzbZ.js.map → button.component-DahLrK9h.js.map} +1 -1
  17. package/dist/chunks/{buttonGroup.component-CGxtwaQg.js → buttonGroup.component-BI44nuxH.js} +2 -2
  18. package/dist/chunks/{buttonGroup.component-CGxtwaQg.js.map → buttonGroup.component-BI44nuxH.js.map} +1 -1
  19. package/dist/chunks/{buttonGroup.component-IGM-yn-V.js → buttonGroup.component-UKmJh2zn.js} +5 -5
  20. package/dist/chunks/{buttonGroup.component-IGM-yn-V.js.map → buttonGroup.component-UKmJh2zn.js.map} +1 -1
  21. package/dist/chunks/characterCounter.component-B8efVNy4.js +2 -0
  22. package/dist/chunks/{characterCounter.component-WOgGxKRq.js.map → characterCounter.component-B8efVNy4.js.map} +1 -1
  23. package/dist/chunks/{characterCounter.component-CWDjnYNU.js → characterCounter.component-xgc8P1mp.js} +3 -3
  24. package/dist/chunks/{characterCounter.component-CWDjnYNU.js.map → characterCounter.component-xgc8P1mp.js.map} +1 -1
  25. package/dist/chunks/{checkbox.component-B6-MOy86.js → checkbox.component-5GtlYTnJ.js} +13 -13
  26. package/dist/chunks/{checkbox.component-B6-MOy86.js.map → checkbox.component-5GtlYTnJ.js.map} +1 -1
  27. package/dist/chunks/checkbox.component-DO9NDbmM.js +2 -0
  28. package/dist/chunks/{checkbox.component-nkydue0g.js.map → checkbox.component-DO9NDbmM.js.map} +1 -1
  29. package/dist/chunks/{checkbox.records-BtLBaHBy.js → checkbox.records-69wNHjsY.js} +16 -16
  30. package/dist/chunks/{checkbox.records-BtLBaHBy.js.map → checkbox.records-69wNHjsY.js.map} +1 -1
  31. package/dist/chunks/{checkbox.records-wbkLltak.js → checkbox.records-D7NUtCRR.js} +2 -2
  32. package/dist/chunks/{checkbox.records-wbkLltak.js.map → checkbox.records-D7NUtCRR.js.map} +1 -1
  33. package/dist/chunks/{checkboxGroup.component-B1HL2vbn.js → checkboxGroup.component-C1sPgVro.js} +2 -2
  34. package/dist/chunks/{checkboxGroup.component-B1HL2vbn.js.map → checkboxGroup.component-C1sPgVro.js.map} +1 -1
  35. package/dist/chunks/{checkboxGroup.component-DCg4fRL0.js → checkboxGroup.component-Dq3jCGDU.js} +3 -3
  36. package/dist/chunks/{checkboxGroup.component-DCg4fRL0.js.map → checkboxGroup.component-Dq3jCGDU.js.map} +1 -1
  37. package/dist/chunks/{config-B1FINd7s.js → config-DlTdf-Yt.js} +3 -3
  38. package/dist/chunks/{config-B1FINd7s.js.map → config-DlTdf-Yt.js.map} +1 -1
  39. package/dist/chunks/{conversationCard.component-Uv0-JSnX.js → conversationCard.component-LpR5eSru.js} +13 -14
  40. package/dist/chunks/{conversationCard.component-Uv0-JSnX.js.map → conversationCard.component-LpR5eSru.js.map} +1 -1
  41. package/dist/chunks/conversationCard.component-qWYvoxVn.js +2 -0
  42. package/dist/chunks/{conversationCard.component-2jO70XtY.js.map → conversationCard.component-qWYvoxVn.js.map} +1 -1
  43. package/dist/chunks/datePicker.component-CLR0tErm.js +15 -0
  44. package/dist/chunks/{datePicker.component-CM8TIMiW.js.map → datePicker.component-CLR0tErm.js.map} +1 -1
  45. package/dist/chunks/{datePicker.component-DeOquWMk.js → datePicker.component-DVR8Ech4.js} +85 -87
  46. package/dist/chunks/{datePicker.component-DeOquWMk.js.map → datePicker.component-DVR8Ech4.js.map} +1 -1
  47. package/dist/chunks/{dialog-trigger-D2uDgMJr.js → dialog-trigger-C6rpz6Do.js} +5 -5
  48. package/dist/chunks/{dialog-trigger-D2uDgMJr.js.map → dialog-trigger-C6rpz6Do.js.map} +1 -1
  49. package/dist/chunks/{dialog-trigger-BCeZGpGO.js → dialog-trigger-JNnMRY13.js} +2 -2
  50. package/dist/chunks/{dialog-trigger-BCeZGpGO.js.map → dialog-trigger-JNnMRY13.js.map} +1 -1
  51. package/dist/chunks/{group-DPCVolOl.js → group-DKypflCt.js} +2 -2
  52. package/dist/chunks/{group-DPCVolOl.js.map → group-DKypflCt.js.map} +1 -1
  53. package/dist/chunks/group-Dv1hO5IW.js +2 -0
  54. package/dist/chunks/{group-Cv7AQw1b.js.map → group-Dv1hO5IW.js.map} +1 -1
  55. package/dist/chunks/heading.component-DkT5GYvU.js +2 -0
  56. package/dist/chunks/heading.component-DkT5GYvU.js.map +1 -0
  57. package/dist/chunks/heading.component-d5jKnwm5.js +976 -0
  58. package/dist/chunks/heading.component-d5jKnwm5.js.map +1 -0
  59. package/dist/chunks/icon-button-BTDZq0Tr.js +121 -0
  60. package/dist/chunks/icon-button-BTDZq0Tr.js.map +1 -0
  61. package/dist/chunks/icon-button-khcu437F.js +2 -0
  62. package/dist/chunks/icon-button-khcu437F.js.map +1 -0
  63. package/dist/chunks/{typography-Cqrokog3.js → icon.component-D84o075X.js} +43 -6
  64. package/dist/chunks/icon.component-D84o075X.js.map +1 -0
  65. package/dist/chunks/icon.component-DjiNNeqF.js +2 -0
  66. package/dist/chunks/icon.component-DjiNNeqF.js.map +1 -0
  67. package/dist/chunks/{index-CZPHIn6T.js → index-B9cDqm2a.js} +3 -3
  68. package/dist/chunks/{index-CZPHIn6T.js.map → index-B9cDqm2a.js.map} +1 -1
  69. package/dist/chunks/{index-BmcSWiFh.js → index-BDCLWoQU.js} +2 -2
  70. package/dist/chunks/{index-BmcSWiFh.js.map → index-BDCLWoQU.js.map} +1 -1
  71. package/dist/chunks/{index-WyVSig7F.js → index-BIjZoyJk.js} +4 -4
  72. package/dist/chunks/{index-WyVSig7F.js.map → index-BIjZoyJk.js.map} +1 -1
  73. package/dist/chunks/{index-D5Dscg8T.js → index-BL1VW2oK.js} +11 -11
  74. package/dist/chunks/{index-D5Dscg8T.js.map → index-BL1VW2oK.js.map} +1 -1
  75. package/dist/chunks/{index-CEYJbpt4.js → index-BiyIeWSg.js} +2 -2
  76. package/dist/chunks/{index-CEYJbpt4.js.map → index-BiyIeWSg.js.map} +1 -1
  77. package/dist/chunks/{index-Dx94WMw1.js → index-Bn03tQNC.js} +31 -31
  78. package/dist/chunks/{index-Dx94WMw1.js.map → index-Bn03tQNC.js.map} +1 -1
  79. package/dist/chunks/{index-hGlTuPbK.js → index-BpKhRg2I.js} +2 -2
  80. package/dist/chunks/{index-hGlTuPbK.js.map → index-BpKhRg2I.js.map} +1 -1
  81. package/dist/chunks/{index-C323eOJV.js → index-Cb49D-ky.js} +122 -122
  82. package/dist/chunks/{index-C323eOJV.js.map → index-Cb49D-ky.js.map} +1 -1
  83. package/dist/chunks/{index-DMSZTX7A.js → index-Ciu8P7c-.js} +11 -11
  84. package/dist/chunks/{index-DMSZTX7A.js.map → index-Ciu8P7c-.js.map} +1 -1
  85. package/dist/chunks/{index-5cRW642o.js → index-CmVbgcH8.js} +2 -2
  86. package/dist/chunks/{index-5cRW642o.js.map → index-CmVbgcH8.js.map} +1 -1
  87. package/dist/chunks/{index-Cuu1x05z.js → index-CxHMu1In.js} +14 -15
  88. package/dist/chunks/{index-Cuu1x05z.js.map → index-CxHMu1In.js.map} +1 -1
  89. package/dist/chunks/index-CzzrUbmu.js +2 -0
  90. package/dist/chunks/{index-CFnNmQf0.js.map → index-CzzrUbmu.js.map} +1 -1
  91. package/dist/chunks/{index-CedYIQt5.js → index-DFbSzgk8.js} +2 -2
  92. package/dist/chunks/{index-CedYIQt5.js.map → index-DFbSzgk8.js.map} +1 -1
  93. package/dist/chunks/{index-Cqwkg1hU.js → index-DRABh-Lp.js} +3 -3
  94. package/dist/chunks/{index-Cqwkg1hU.js.map → index-DRABh-Lp.js.map} +1 -1
  95. package/dist/chunks/{index-BfD9Ne2e.js → index-DeprNCOL.js} +2 -2
  96. package/dist/chunks/{index-BfD9Ne2e.js.map → index-DeprNCOL.js.map} +1 -1
  97. package/dist/chunks/{index-Dq91nN6-.js → index-YfA5zlSf.js} +5 -5
  98. package/dist/chunks/{index-Dq91nN6-.js.map → index-YfA5zlSf.js.map} +1 -1
  99. package/dist/chunks/{link.component-CCFg-LIe.js → link.component-BQJI6gPi.js} +2 -2
  100. package/dist/chunks/{link.component-CCFg-LIe.js.map → link.component-BQJI6gPi.js.map} +1 -1
  101. package/dist/chunks/{link.component-DprieyUG.js → link.component-Cs05IsXP.js} +2 -2
  102. package/dist/chunks/{link.component-DprieyUG.js.map → link.component-Cs05IsXP.js.map} +1 -1
  103. package/dist/chunks/{logo.types-CXQsathd.js → logo.types-By8TqyNf.js} +2 -2
  104. package/dist/chunks/{logo.types-CXQsathd.js.map → logo.types-By8TqyNf.js.map} +1 -1
  105. package/dist/chunks/menu.component-BgAx3SsR.js +2 -0
  106. package/dist/chunks/{menu.component-DllVICUa.js.map → menu.component-BgAx3SsR.js.map} +1 -1
  107. package/dist/chunks/{menu.component-BKY1dybr.js → menu.component-CAr2xdZY.js} +10 -10
  108. package/dist/chunks/{menu.component-BKY1dybr.js.map → menu.component-CAr2xdZY.js.map} +1 -1
  109. package/dist/chunks/{modal.types-CRH5aJ0U.js → modal.types-B7PDc2GJ.js} +5 -5
  110. package/dist/chunks/{modal.types-CRH5aJ0U.js.map → modal.types-B7PDc2GJ.js.map} +1 -1
  111. package/dist/chunks/{modal.types-Bsq-uLZ0.js → modal.types-CtHJAyfq.js} +2 -2
  112. package/dist/chunks/{modal.types-Bsq-uLZ0.js.map → modal.types-CtHJAyfq.js.map} +1 -1
  113. package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js → notificationCounter.component-Bei8mHSZ.js} +2 -2
  114. package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
  115. package/dist/chunks/{pinInput.types-B-BknmcG.js → pinInput.types-TfkrphC7.js} +15 -15
  116. package/dist/chunks/{pinInput.types-B-BknmcG.js.map → pinInput.types-TfkrphC7.js.map} +1 -1
  117. package/dist/chunks/{pinInput.types-tJTQQJxe.js → pinInput.types-a0_2OLBO.js} +2 -2
  118. package/dist/chunks/{pinInput.types-tJTQQJxe.js.map → pinInput.types-a0_2OLBO.js.map} +1 -1
  119. package/dist/chunks/portal-CtkZ5xTm.js +3087 -0
  120. package/dist/chunks/portal-CtkZ5xTm.js.map +1 -0
  121. package/dist/chunks/portal-kmAjRmaV.js +22 -0
  122. package/dist/chunks/portal-kmAjRmaV.js.map +1 -0
  123. package/dist/chunks/{radio.records-CzNYznSb.js → radio.records-DBS_lqNe.js} +15 -15
  124. package/dist/chunks/{radio.records-CzNYznSb.js.map → radio.records-DBS_lqNe.js.map} +1 -1
  125. package/dist/chunks/{radio.records-CEgwvLIL.js → radio.records-zKzNxtns.js} +2 -2
  126. package/dist/chunks/{radio.records-CEgwvLIL.js.map → radio.records-zKzNxtns.js.map} +1 -1
  127. package/dist/chunks/{radioGroup.component-DEPDXEhQ.js → radioGroup.component-DBLLIgCZ.js} +13 -13
  128. package/dist/chunks/{radioGroup.component-DEPDXEhQ.js.map → radioGroup.component-DBLLIgCZ.js.map} +1 -1
  129. package/dist/chunks/radioGroup.component-fpo_KMOY.js +2 -0
  130. package/dist/chunks/{radioGroup.component-DAGmgDZ2.js.map → radioGroup.component-fpo_KMOY.js.map} +1 -1
  131. package/dist/chunks/{ratingDots.component-C32gNAmO.js → ratingDots.component-DG2nCpxT.js} +6 -6
  132. package/dist/chunks/{ratingDots.component-C32gNAmO.js.map → ratingDots.component-DG2nCpxT.js.map} +1 -1
  133. package/dist/chunks/ratingDots.component-DJEDUD_9.js +2 -0
  134. package/dist/chunks/{ratingDots.component-BB7vPYdN.js.map → ratingDots.component-DJEDUD_9.js.map} +1 -1
  135. package/dist/chunks/{render-strategy-CdSSbgPU.js → render-strategy-C80bGq2n.js} +2 -2
  136. package/dist/chunks/{render-strategy-CdSSbgPU.js.map → render-strategy-C80bGq2n.js.map} +1 -1
  137. package/dist/chunks/{render-strategy-ql9Qx5Cz.js → render-strategy-DN75XQJB.js} +2 -2
  138. package/dist/chunks/{render-strategy-ql9Qx5Cz.js.map → render-strategy-DN75XQJB.js.map} +1 -1
  139. package/dist/chunks/select.component-Bmop2_tX.js +2 -0
  140. package/dist/chunks/{select.component-BtBJUTF2.js.map → select.component-Bmop2_tX.js.map} +1 -1
  141. package/dist/chunks/{select.component-DfkLDyYt.js → select.component-DyXwbDeO.js} +11 -11
  142. package/dist/chunks/{select.component-DfkLDyYt.js.map → select.component-DyXwbDeO.js.map} +1 -1
  143. package/dist/chunks/{sortableList.component-B88NRcwx.js → sortableList.component-CbZAQrKl.js} +4 -4
  144. package/dist/chunks/{sortableList.component-B88NRcwx.js.map → sortableList.component-CbZAQrKl.js.map} +1 -1
  145. package/dist/chunks/{sortableList.component-B0lnVMXW.js → sortableList.component-b2t_K7ho.js} +3 -3
  146. package/dist/chunks/{sortableList.component-B0lnVMXW.js.map → sortableList.component-b2t_K7ho.js.map} +1 -1
  147. package/dist/chunks/{spinner.component-DWh3YuBJ.js → spinner.component-B1vU-FCd.js} +5 -5
  148. package/dist/chunks/{spinner.component-DWh3YuBJ.js.map → spinner.component-B1vU-FCd.js.map} +1 -1
  149. package/dist/chunks/spinner.component-CjQb7JjK.js +2 -0
  150. package/dist/chunks/{spinner.component-DVjwuOVs.js.map → spinner.component-CjQb7JjK.js.map} +1 -1
  151. package/dist/chunks/{styledAvatar.types-ClVT0QDd.js → styledAvatar.types-D8VWyELN.js} +2 -2
  152. package/dist/chunks/{styledAvatar.types-ClVT0QDd.js.map → styledAvatar.types-D8VWyELN.js.map} +1 -1
  153. package/dist/chunks/{styledAvatar.types-DamSY23W.js → styledAvatar.types-DstfmllC.js} +2 -2
  154. package/dist/chunks/{styledAvatar.types-DamSY23W.js.map → styledAvatar.types-DstfmllC.js.map} +1 -1
  155. package/dist/chunks/{swatch.types-B8OSJZ-a.js → swatch.types-DbgA3RWc.js} +2 -2
  156. package/dist/chunks/{swatch.types-B8OSJZ-a.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
  157. package/dist/chunks/switch.component-ARZzuYrq.js +2 -0
  158. package/dist/chunks/{switch.component-DjbXfvMa.js.map → switch.component-ARZzuYrq.js.map} +1 -1
  159. package/dist/chunks/{switch.component-BEkYEUKY.js → switch.component-DO9fxk_-.js} +17 -17
  160. package/dist/chunks/{switch.component-BEkYEUKY.js.map → switch.component-DO9fxk_-.js.map} +1 -1
  161. package/dist/chunks/{tabs.component-Bmg0kB-p.js → tabs.component-BWTDtLWN.js} +36 -36
  162. package/dist/chunks/{tabs.component-Bmg0kB-p.js.map → tabs.component-BWTDtLWN.js.map} +1 -1
  163. package/dist/chunks/{tabs.component-Bn_7bf0X.js → tabs.component-DRpNF8p-.js} +2 -2
  164. package/dist/chunks/{tabs.component-Bn_7bf0X.js.map → tabs.component-DRpNF8p-.js.map} +1 -1
  165. package/dist/chunks/tagBlock.component-Bahf1v33.js +2 -0
  166. package/dist/chunks/{tagBlock.component-x3oh7uht.js.map → tagBlock.component-Bahf1v33.js.map} +1 -1
  167. package/dist/chunks/{tagBlock.component-3ypfB6tz.js → tagBlock.component-C3BrjwNJ.js} +16 -17
  168. package/dist/chunks/{tagBlock.component-3ypfB6tz.js.map → tagBlock.component-C3BrjwNJ.js.map} +1 -1
  169. package/dist/chunks/{textInput.component-B1--78Mp.js → textInput.component-DDo9eUvp.js} +2 -2
  170. package/dist/chunks/{textInput.component-B1--78Mp.js.map → textInput.component-DDo9eUvp.js.map} +1 -1
  171. package/dist/chunks/{textInput.component-D9Dl8cP3.js → textInput.component-LPGbDHwZ.js} +8 -8
  172. package/dist/chunks/{textInput.component-D9Dl8cP3.js.map → textInput.component-LPGbDHwZ.js.map} +1 -1
  173. package/dist/chunks/{textarea.component-BxC5lB4t.js → textarea.component-5Ou5g_MJ.js} +2 -2
  174. package/dist/chunks/{textarea.component-BxC5lB4t.js.map → textarea.component-5Ou5g_MJ.js.map} +1 -1
  175. package/dist/chunks/{textarea.component-DZXDIbZg.js → textarea.component-ClYqhTJX.js} +13 -13
  176. package/dist/chunks/{textarea.component-DZXDIbZg.js.map → textarea.component-ClYqhTJX.js.map} +1 -1
  177. package/dist/chunks/theme.provider-DWJTtjw5.js +26 -0
  178. package/dist/chunks/{theme.provider-CpxxMiXd.js.map → theme.provider-DWJTtjw5.js.map} +1 -1
  179. package/dist/chunks/{theme.provider-DmGvaymX.js → theme.provider-vZgSb-q5.js} +268 -271
  180. package/dist/chunks/{theme.provider-DmGvaymX.js.map → theme.provider-vZgSb-q5.js.map} +1 -1
  181. package/dist/chunks/{timePicker.component-DnFPWIcy.js → timePicker.component-AgnrqtFu.js} +5 -5
  182. package/dist/chunks/{timePicker.component-DnFPWIcy.js.map → timePicker.component-AgnrqtFu.js.map} +1 -1
  183. package/dist/chunks/{timePicker.component-F9o8MNWu.js → timePicker.component-Bx0fHgrN.js} +2 -2
  184. package/dist/chunks/{timePicker.component-F9o8MNWu.js.map → timePicker.component-Bx0fHgrN.js.map} +1 -1
  185. package/dist/chunks/{timeRange.component-Bj-9ynHS.js → timeRange.component-B3Nv-nLB.js} +2 -2
  186. package/dist/chunks/{timeRange.component-Bj-9ynHS.js.map → timeRange.component-B3Nv-nLB.js.map} +1 -1
  187. package/dist/chunks/{timeRange.component-Bh2FiRi8.js → timeRange.component-C14RiUcS.js} +2 -2
  188. package/dist/chunks/{timeRange.component-Bh2FiRi8.js.map → timeRange.component-C14RiUcS.js.map} +1 -1
  189. package/dist/chunks/timestamp.component-DEx0cUkA.js +2 -0
  190. package/dist/chunks/{timestamp.component-CfjeVkJs.js.map → timestamp.component-DEx0cUkA.js.map} +1 -1
  191. package/dist/chunks/{timestamp.component-BKr4dkxB.js → timestamp.component-Kxi_bKp1.js} +2 -2
  192. package/dist/chunks/{timestamp.component-BKr4dkxB.js.map → timestamp.component-Kxi_bKp1.js.map} +1 -1
  193. package/dist/chunks/{toaster.records-Cf8bpHo8.js → toaster.records-CKeu_PyD.js} +2 -2
  194. package/dist/chunks/{toaster.records-Cf8bpHo8.js.map → toaster.records-CKeu_PyD.js.map} +1 -1
  195. package/dist/chunks/{typography.records-Xg59taw9.js → typography.records-XkUlmiSk.js} +2 -2
  196. package/dist/chunks/{typography.records-Xg59taw9.js.map → typography.records-XkUlmiSk.js.map} +1 -1
  197. package/dist/chunks/{use-field-context-C4IwmN39.js → use-field-context-1gfMkjvo.js} +2 -2
  198. package/dist/chunks/{use-field-context-C4IwmN39.js.map → use-field-context-1gfMkjvo.js.map} +1 -1
  199. package/dist/chunks/{use-field-context-xBX4EpFz.js → use-field-context-DnTe9gdc.js} +2 -2
  200. package/dist/chunks/{use-field-context-xBX4EpFz.js.map → use-field-context-DnTe9gdc.js.map} +1 -1
  201. package/dist/chunks/{withFormControl-KA9fAHrR.js → withFormControl-DfqMqkSU.js} +42 -42
  202. package/dist/chunks/{withFormControl-KA9fAHrR.js.map → withFormControl-DfqMqkSU.js.map} +1 -1
  203. package/dist/chunks/withFormControl-kyGjRFza.js +2 -0
  204. package/dist/chunks/{withFormControl-BHjeRAfg.js.map → withFormControl-kyGjRFza.js.map} +1 -1
  205. package/dist/chunks/{wrap-CYgSj8wY.js → wrap-B8tBNeBY.js} +2 -2
  206. package/dist/chunks/{wrap-CYgSj8wY.js.map → wrap-B8tBNeBY.js.map} +1 -1
  207. package/dist/cjs/chakra/index.cjs +1 -1
  208. package/dist/cjs/chakra/index.cjs.map +1 -1
  209. package/dist/cjs/components/Alert/index.cjs +1 -1
  210. package/dist/cjs/components/Avatar/index.cjs +1 -1
  211. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  212. package/dist/cjs/components/Button/index.cjs +1 -1
  213. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  214. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  215. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  216. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  217. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  218. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  219. package/dist/cjs/components/Heading/index.cjs +1 -1
  220. package/dist/cjs/components/Icon/index.cjs +1 -1
  221. package/dist/cjs/components/Link/index.cjs +1 -1
  222. package/dist/cjs/components/Menu/index.cjs +1 -1
  223. package/dist/cjs/components/Modal/index.cjs +1 -1
  224. package/dist/cjs/components/PinInput/index.cjs +1 -1
  225. package/dist/cjs/components/Popover/index.cjs +1 -1
  226. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  227. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  228. package/dist/cjs/components/Select/index.cjs +1 -1
  229. package/dist/cjs/components/SortableList/index.cjs +1 -1
  230. package/dist/cjs/components/Spinner/index.cjs +1 -1
  231. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  232. package/dist/cjs/components/Switch/index.cjs +1 -1
  233. package/dist/cjs/components/Tabs/index.cjs +1 -1
  234. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  235. package/dist/cjs/components/Text/index.cjs +1 -1
  236. package/dist/cjs/components/TextInput/index.cjs +1 -1
  237. package/dist/cjs/components/Textarea/index.cjs +1 -1
  238. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  239. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  240. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  241. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  242. package/dist/cjs/components/index.cjs +1 -1
  243. package/dist/cjs/index.cjs +1 -1
  244. package/dist/cjs/theme/index.cjs +1 -1
  245. package/dist/esm/chakra/index.js +196 -197
  246. package/dist/esm/chakra/index.js.map +1 -1
  247. package/dist/esm/components/Alert/index.js +1 -1
  248. package/dist/esm/components/Avatar/index.js +1 -1
  249. package/dist/esm/components/AvatarGroup/index.js +1 -1
  250. package/dist/esm/components/Button/index.js +1 -1
  251. package/dist/esm/components/ButtonGroup/index.js +1 -1
  252. package/dist/esm/components/CharacterCounter/index.js +1 -1
  253. package/dist/esm/components/Checkbox/index.js +1 -1
  254. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  255. package/dist/esm/components/ConversationCard/index.js +1 -1
  256. package/dist/esm/components/DatePicker/index.js +1 -1
  257. package/dist/esm/components/Heading/index.js +1 -1
  258. package/dist/esm/components/Icon/index.js +1 -1
  259. package/dist/esm/components/Link/index.js +1 -1
  260. package/dist/esm/components/Logo/index.js +1 -1
  261. package/dist/esm/components/Menu/index.js +1 -1
  262. package/dist/esm/components/Modal/index.js +1 -1
  263. package/dist/esm/components/NotificationCounter/index.js +1 -1
  264. package/dist/esm/components/PinInput/index.js +1 -1
  265. package/dist/esm/components/Popover/index.js +1 -1
  266. package/dist/esm/components/RadioGroup/index.js +1 -1
  267. package/dist/esm/components/RatingDots/index.js +1 -1
  268. package/dist/esm/components/Select/index.js +1 -1
  269. package/dist/esm/components/SortableList/index.js +1 -1
  270. package/dist/esm/components/Spinner/index.js +1 -1
  271. package/dist/esm/components/StyledAvatar/index.js +1 -1
  272. package/dist/esm/components/Swatch/index.js +1 -1
  273. package/dist/esm/components/Switch/index.js +1 -1
  274. package/dist/esm/components/Tabs/index.js +1 -1
  275. package/dist/esm/components/TagBlock/index.js +1 -1
  276. package/dist/esm/components/Text/index.js +2 -2
  277. package/dist/esm/components/TextInput/index.js +1 -1
  278. package/dist/esm/components/Textarea/index.js +1 -1
  279. package/dist/esm/components/TimePicker/index.js +1 -1
  280. package/dist/esm/components/TimeRange/index.js +1 -1
  281. package/dist/esm/components/Timestamp/index.js +1 -1
  282. package/dist/esm/components/Toast/index.js +1 -1
  283. package/dist/esm/components/Tooltip/index.js +1 -1
  284. package/dist/esm/components/index.js +89 -91
  285. package/dist/esm/components/index.js.map +1 -1
  286. package/dist/esm/index.js +111 -113
  287. package/dist/esm/index.js.map +1 -1
  288. package/dist/esm/theme/index.js +1 -1
  289. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  290. package/dist/types/components/Tooltip/tooltip.component.d.ts +1 -1
  291. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +6 -6
  292. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
  293. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +6 -6
  294. package/package.json +1 -1
  295. package/dist/chunks/alert.types-DbqCOYr5.js +0 -2
  296. package/dist/chunks/attr-BMs6szZx.js +0 -2
  297. package/dist/chunks/attr-BMs6szZx.js.map +0 -1
  298. package/dist/chunks/attr-sm10PXOd.js +0 -5
  299. package/dist/chunks/attr-sm10PXOd.js.map +0 -1
  300. package/dist/chunks/avatar.component-TAfT1LM1.js +0 -2
  301. package/dist/chunks/characterCounter.component-WOgGxKRq.js +0 -2
  302. package/dist/chunks/checkbox.component-nkydue0g.js +0 -2
  303. package/dist/chunks/conversationCard.component-2jO70XtY.js +0 -2
  304. package/dist/chunks/datePicker.component-CM8TIMiW.js +0 -15
  305. package/dist/chunks/group-Cv7AQw1b.js +0 -2
  306. package/dist/chunks/heading.component-Bu1JbEVn.js +0 -12
  307. package/dist/chunks/heading.component-Bu1JbEVn.js.map +0 -1
  308. package/dist/chunks/heading.component-wD7BkQLG.js +0 -2
  309. package/dist/chunks/heading.component-wD7BkQLG.js.map +0 -1
  310. package/dist/chunks/icon-button-DTZOklQ9.js +0 -119
  311. package/dist/chunks/icon-button-DTZOklQ9.js.map +0 -1
  312. package/dist/chunks/icon-button-DtjZ-SdQ.js +0 -2
  313. package/dist/chunks/icon-button-DtjZ-SdQ.js.map +0 -1
  314. package/dist/chunks/icon.component-C0e0UGBw.js +0 -2
  315. package/dist/chunks/icon.component-C0e0UGBw.js.map +0 -1
  316. package/dist/chunks/icon.component-DGNCL1Yc.js +0 -42
  317. package/dist/chunks/icon.component-DGNCL1Yc.js.map +0 -1
  318. package/dist/chunks/index-B4fjIWcA.js +0 -2
  319. package/dist/chunks/index-B4fjIWcA.js.map +0 -1
  320. package/dist/chunks/index-CBh9RZVL.js +0 -375
  321. package/dist/chunks/index-CBh9RZVL.js.map +0 -1
  322. package/dist/chunks/index-CFnNmQf0.js +0 -2
  323. package/dist/chunks/index-DZGYG5M4.js +0 -2
  324. package/dist/chunks/index-DZGYG5M4.js.map +0 -1
  325. package/dist/chunks/index-f4Ba8Pq7.js +0 -389
  326. package/dist/chunks/index-f4Ba8Pq7.js.map +0 -1
  327. package/dist/chunks/menu.component-DllVICUa.js +0 -2
  328. package/dist/chunks/popover-D0QoPsrG.js +0 -110
  329. package/dist/chunks/popover-D0QoPsrG.js.map +0 -1
  330. package/dist/chunks/popover-DPEovmxh.js +0 -2
  331. package/dist/chunks/popover-DPEovmxh.js.map +0 -1
  332. package/dist/chunks/popover-root-provider-BYJE5I-P.js +0 -2
  333. package/dist/chunks/popover-root-provider-BYJE5I-P.js.map +0 -1
  334. package/dist/chunks/popover-root-provider-Dt02njg5.js +0 -43
  335. package/dist/chunks/popover-root-provider-Dt02njg5.js.map +0 -1
  336. package/dist/chunks/popover.component-CLMQkEDo.js +0 -2
  337. package/dist/chunks/popover.component-CLMQkEDo.js.map +0 -1
  338. package/dist/chunks/popover.component-MbM0Ajnr.js +0 -264
  339. package/dist/chunks/popover.component-MbM0Ajnr.js.map +0 -1
  340. package/dist/chunks/popover.recipe-BLsWPsAa.js +0 -124
  341. package/dist/chunks/popover.recipe-BLsWPsAa.js.map +0 -1
  342. package/dist/chunks/popover.recipe-av5Jdn1r.js +0 -2
  343. package/dist/chunks/popover.recipe-av5Jdn1r.js.map +0 -1
  344. package/dist/chunks/portal-D2KZrSzZ.js +0 -2301
  345. package/dist/chunks/portal-D2KZrSzZ.js.map +0 -1
  346. package/dist/chunks/portal-TWtD47zg.js +0 -22
  347. package/dist/chunks/portal-TWtD47zg.js.map +0 -1
  348. package/dist/chunks/radioGroup.component-DAGmgDZ2.js +0 -2
  349. package/dist/chunks/ratingDots.component-BB7vPYdN.js +0 -2
  350. package/dist/chunks/select.component-BtBJUTF2.js +0 -2
  351. package/dist/chunks/spinner-BWqSIW6m.js +0 -8
  352. package/dist/chunks/spinner-BWqSIW6m.js.map +0 -1
  353. package/dist/chunks/spinner-BnpL14kK.js +0 -2
  354. package/dist/chunks/spinner-BnpL14kK.js.map +0 -1
  355. package/dist/chunks/spinner.component-DVjwuOVs.js +0 -2
  356. package/dist/chunks/switch.component-DjbXfvMa.js +0 -2
  357. package/dist/chunks/tagBlock.component-x3oh7uht.js +0 -2
  358. package/dist/chunks/theme.provider-CpxxMiXd.js +0 -26
  359. package/dist/chunks/timestamp.component-CfjeVkJs.js +0 -2
  360. package/dist/chunks/typography-Cqrokog3.js.map +0 -1
  361. package/dist/chunks/typography-CtiaGoJG.js +0 -2
  362. package/dist/chunks/typography-CtiaGoJG.js.map +0 -1
  363. package/dist/chunks/withFormControl-BHjeRAfg.js +0 -2
  364. package/dist/chunks/withTruncation-CQUQzrTa.js +0 -561
  365. package/dist/chunks/withTruncation-CQUQzrTa.js.map +0 -1
  366. package/dist/chunks/withTruncation-DguVvIAI.js +0 -2
  367. package/dist/chunks/withTruncation-DguVvIAI.js.map +0 -1
@@ -1,375 +0,0 @@
1
- import { c as D, r as m, p as k, t as S, b as L, d as N, i as B, g as C } from "./index-C323eOJV.js";
2
- import { g as I, d as G, b as R } from "./portal-D2KZrSzZ.js";
3
- import { t as x, p as A, a as $ } from "./index-f4Ba8Pq7.js";
4
- var V = L("popover").parts(
5
- "arrow",
6
- "arrowTip",
7
- "anchor",
8
- "trigger",
9
- "indicator",
10
- "positioner",
11
- "content",
12
- "title",
13
- "description",
14
- "closeTrigger"
15
- ), d = V.build(), T = (e) => e.ids?.anchor ?? `popover:${e.id}:anchor`, b = (e) => e.ids?.trigger ?? `popover:${e.id}:trigger`, E = (e) => e.ids?.content ?? `popover:${e.id}:content`, h = (e) => e.ids?.positioner ?? `popover:${e.id}:popper`, K = (e) => e.ids?.arrow ?? `popover:${e.id}:arrow`, v = (e) => e.ids?.title ?? `popover:${e.id}:title`, f = (e) => e.ids?.description ?? `popover:${e.id}:desc`, j = (e) => e.ids?.closeTrigger ?? `popover:${e.id}:close`, y = (e) => e.getById(T(e)), u = (e) => e.getById(b(e)), p = (e) => e.getById(E(e)), F = (e) => e.getById(h(e)), H = (e) => e.getById(v(e)), M = (e) => e.getById(f(e));
16
- function Q(e, t) {
17
- const { state: n, context: s, send: a, computed: r, prop: o, scope: l } = e, c = n.matches("open"), g = s.get("currentPlacement"), w = r("currentPortalled"), P = s.get("renderedElements"), O = G({
18
- ...o("positioning"),
19
- placement: g
20
- });
21
- return {
22
- portalled: w,
23
- open: c,
24
- setOpen(i) {
25
- n.matches("open") !== i && a({ type: i ? "OPEN" : "CLOSE" });
26
- },
27
- reposition(i = {}) {
28
- a({ type: "POSITIONING.SET", options: i });
29
- },
30
- getArrowProps() {
31
- return t.element({
32
- id: K(l),
33
- ...d.arrow.attrs,
34
- dir: o("dir"),
35
- style: O.arrow
36
- });
37
- },
38
- getArrowTipProps() {
39
- return t.element({
40
- ...d.arrowTip.attrs,
41
- dir: o("dir"),
42
- style: O.arrowTip
43
- });
44
- },
45
- getAnchorProps() {
46
- return t.element({
47
- ...d.anchor.attrs,
48
- dir: o("dir"),
49
- id: T(l)
50
- });
51
- },
52
- getTriggerProps() {
53
- return t.button({
54
- ...d.trigger.attrs,
55
- dir: o("dir"),
56
- type: "button",
57
- "data-placement": g,
58
- id: b(l),
59
- "aria-haspopup": "dialog",
60
- "aria-expanded": c,
61
- "data-state": c ? "open" : "closed",
62
- "aria-controls": E(l),
63
- onPointerDown(i) {
64
- B() && i.currentTarget.focus();
65
- },
66
- onClick(i) {
67
- i.defaultPrevented || a({ type: "TOGGLE" });
68
- },
69
- onBlur(i) {
70
- a({ type: "TRIGGER_BLUR", target: i.relatedTarget });
71
- }
72
- });
73
- },
74
- getIndicatorProps() {
75
- return t.element({
76
- ...d.indicator.attrs,
77
- dir: o("dir"),
78
- "data-state": c ? "open" : "closed"
79
- });
80
- },
81
- getPositionerProps() {
82
- return t.element({
83
- id: h(l),
84
- ...d.positioner.attrs,
85
- dir: o("dir"),
86
- style: O.floating
87
- });
88
- },
89
- getContentProps() {
90
- return t.element({
91
- ...d.content.attrs,
92
- dir: o("dir"),
93
- id: E(l),
94
- tabIndex: -1,
95
- role: "dialog",
96
- hidden: !c,
97
- "data-state": c ? "open" : "closed",
98
- "data-expanded": N(c),
99
- "aria-labelledby": P.title ? v(l) : void 0,
100
- "aria-describedby": P.description ? f(l) : void 0,
101
- "data-placement": g
102
- });
103
- },
104
- getTitleProps() {
105
- return t.element({
106
- ...d.title.attrs,
107
- id: v(l),
108
- dir: o("dir")
109
- });
110
- },
111
- getDescriptionProps() {
112
- return t.element({
113
- ...d.description.attrs,
114
- id: f(l),
115
- dir: o("dir")
116
- });
117
- },
118
- getCloseTriggerProps() {
119
- return t.button({
120
- ...d.closeTrigger.attrs,
121
- dir: o("dir"),
122
- id: j(l),
123
- type: "button",
124
- "aria-label": "close",
125
- onClick(i) {
126
- i.defaultPrevented || (i.stopPropagation(), a({ type: "CLOSE" }));
127
- }
128
- });
129
- }
130
- };
131
- }
132
- var W = D({
133
- props({ props: e }) {
134
- return {
135
- closeOnInteractOutside: !0,
136
- closeOnEscape: !0,
137
- autoFocus: !0,
138
- modal: !1,
139
- portalled: !0,
140
- ...e,
141
- positioning: {
142
- placement: "bottom",
143
- ...e.positioning
144
- }
145
- };
146
- },
147
- initialState({ prop: e }) {
148
- return e("open") || e("defaultOpen") ? "open" : "closed";
149
- },
150
- context({ bindable: e }) {
151
- return {
152
- currentPlacement: e(() => ({
153
- defaultValue: void 0
154
- })),
155
- renderedElements: e(() => ({
156
- defaultValue: { title: !0, description: !0 }
157
- }))
158
- };
159
- },
160
- computed: {
161
- currentPortalled: ({ prop: e }) => !!e("modal") || !!e("portalled")
162
- },
163
- watch({ track: e, prop: t, action: n }) {
164
- e([() => t("open")], () => {
165
- n(["toggleVisibility"]);
166
- });
167
- },
168
- entry: ["checkRenderedElements"],
169
- states: {
170
- closed: {
171
- on: {
172
- "CONTROLLED.OPEN": {
173
- target: "open",
174
- actions: ["setInitialFocus"]
175
- },
176
- TOGGLE: [
177
- {
178
- guard: "isOpenControlled",
179
- actions: ["invokeOnOpen"]
180
- },
181
- {
182
- target: "open",
183
- actions: ["invokeOnOpen", "setInitialFocus"]
184
- }
185
- ],
186
- OPEN: [
187
- {
188
- guard: "isOpenControlled",
189
- actions: ["invokeOnOpen"]
190
- },
191
- {
192
- target: "open",
193
- actions: ["invokeOnOpen", "setInitialFocus"]
194
- }
195
- ]
196
- }
197
- },
198
- open: {
199
- effects: [
200
- "trapFocus",
201
- "preventScroll",
202
- "hideContentBelow",
203
- "trackPositioning",
204
- "trackDismissableElement",
205
- "proxyTabFocus"
206
- ],
207
- on: {
208
- "CONTROLLED.CLOSE": {
209
- target: "closed",
210
- actions: ["setFinalFocus"]
211
- },
212
- CLOSE: [
213
- {
214
- guard: "isOpenControlled",
215
- actions: ["invokeOnClose"]
216
- },
217
- {
218
- target: "closed",
219
- actions: ["invokeOnClose", "setFinalFocus"]
220
- }
221
- ],
222
- TOGGLE: [
223
- {
224
- guard: "isOpenControlled",
225
- actions: ["invokeOnClose"]
226
- },
227
- {
228
- target: "closed",
229
- actions: ["invokeOnClose"]
230
- }
231
- ],
232
- "POSITIONING.SET": {
233
- actions: ["reposition"]
234
- }
235
- }
236
- }
237
- },
238
- implementations: {
239
- guards: {
240
- isOpenControlled: ({ prop: e }) => e("open") != null
241
- },
242
- effects: {
243
- trackPositioning({ context: e, prop: t, scope: n }) {
244
- e.set("currentPlacement", t("positioning").placement);
245
- const s = y(n) ?? u(n);
246
- return I(s, () => F(n), {
247
- ...t("positioning"),
248
- defer: !0,
249
- onComplete(r) {
250
- e.set("currentPlacement", r.placement);
251
- }
252
- });
253
- },
254
- trackDismissableElement({ send: e, prop: t, scope: n }) {
255
- const s = () => p(n);
256
- let a = !0;
257
- return S(s, {
258
- pointerBlocking: t("modal"),
259
- exclude: u(n),
260
- defer: !0,
261
- onEscapeKeyDown(r) {
262
- t("onEscapeKeyDown")?.(r), !t("closeOnEscape") && r.preventDefault();
263
- },
264
- onInteractOutside(r) {
265
- t("onInteractOutside")?.(r), !r.defaultPrevented && (a = !(r.detail.focusable || r.detail.contextmenu), t("closeOnInteractOutside") || r.preventDefault());
266
- },
267
- onPointerDownOutside: t("onPointerDownOutside"),
268
- onFocusOutside: t("onFocusOutside"),
269
- persistentElements: t("persistentElements"),
270
- onDismiss() {
271
- e({ type: "CLOSE", src: "interact-outside", restoreFocus: a });
272
- }
273
- });
274
- },
275
- proxyTabFocus({ prop: e, scope: t }) {
276
- return e("modal") || !e("portalled") ? void 0 : k(() => p(t), {
277
- triggerElement: u(t),
278
- defer: !0,
279
- onFocus(s) {
280
- s.focus({ preventScroll: !0 });
281
- }
282
- });
283
- },
284
- hideContentBelow({ prop: e, scope: t }) {
285
- return e("modal") ? $(() => [p(t), u(t)], { defer: !0 }) : void 0;
286
- },
287
- preventScroll({ prop: e, scope: t }) {
288
- if (e("modal"))
289
- return A(t.getDoc());
290
- },
291
- trapFocus({ prop: e, scope: t }) {
292
- return e("modal") ? x(() => p(t), {
293
- initialFocus: () => C({
294
- root: p(t),
295
- getInitialEl: e("initialFocusEl"),
296
- enabled: e("autoFocus")
297
- })
298
- }) : void 0;
299
- }
300
- },
301
- actions: {
302
- reposition({ event: e, prop: t, scope: n, context: s }) {
303
- const a = y(n) ?? u(n);
304
- I(a, () => F(n), {
305
- ...t("positioning"),
306
- ...e.options,
307
- defer: !0,
308
- listeners: !1,
309
- onComplete(o) {
310
- s.set("currentPlacement", o.placement);
311
- }
312
- });
313
- },
314
- checkRenderedElements({ context: e, scope: t }) {
315
- m(() => {
316
- Object.assign(e.get("renderedElements"), {
317
- title: !!H(t),
318
- description: !!M(t)
319
- });
320
- });
321
- },
322
- setInitialFocus({ prop: e, scope: t }) {
323
- e("modal") || m(() => {
324
- C({
325
- root: p(t),
326
- getInitialEl: e("initialFocusEl"),
327
- enabled: e("autoFocus")
328
- })?.focus({ preventScroll: !0 });
329
- });
330
- },
331
- setFinalFocus({ event: e, scope: t }) {
332
- const n = e.restoreFocus ?? e.previousEvent?.restoreFocus;
333
- n != null && !n || m(() => {
334
- u(t)?.focus({ preventScroll: !0 });
335
- });
336
- },
337
- invokeOnOpen({ prop: e }) {
338
- e("onOpenChange")?.({ open: !0 });
339
- },
340
- invokeOnClose({ prop: e }) {
341
- e("onOpenChange")?.({ open: !1 });
342
- },
343
- toggleVisibility({ event: e, send: t, prop: n }) {
344
- t({ type: n("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: e });
345
- }
346
- }
347
- }
348
- });
349
- R()([
350
- "autoFocus",
351
- "closeOnEscape",
352
- "closeOnInteractOutside",
353
- "dir",
354
- "getRootNode",
355
- "id",
356
- "ids",
357
- "initialFocusEl",
358
- "modal",
359
- "onEscapeKeyDown",
360
- "onFocusOutside",
361
- "onInteractOutside",
362
- "onOpenChange",
363
- "onPointerDownOutside",
364
- "defaultOpen",
365
- "open",
366
- "persistentElements",
367
- "portalled",
368
- "positioning"
369
- ]);
370
- export {
371
- V as a,
372
- Q as c,
373
- W as m
374
- };
375
- //# sourceMappingURL=index-CBh9RZVL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CBh9RZVL.js","sources":["../../node_modules/@zag-js/popover/dist/index.mjs"],"sourcesContent":["import { createAnatomy } from '@zag-js/anatomy';\nimport { raf, getInitialFocus, proxyTabFocus, dataAttr, isSafari } from '@zag-js/dom-query';\nimport { getPlacement, getPlacementStyles } from '@zag-js/popper';\nimport { ariaHidden } from '@zag-js/aria-hidden';\nimport { createMachine } from '@zag-js/core';\nimport { trackDismissableElement } from '@zag-js/dismissable';\nimport { trapFocus } from '@zag-js/focus-trap';\nimport { preventBodyScroll } from '@zag-js/remove-scroll';\nimport { createProps } from '@zag-js/types';\nimport { createSplitProps } from '@zag-js/utils';\n\n// src/popover.anatomy.ts\nvar anatomy = createAnatomy(\"popover\").parts(\n \"arrow\",\n \"arrowTip\",\n \"anchor\",\n \"trigger\",\n \"indicator\",\n \"positioner\",\n \"content\",\n \"title\",\n \"description\",\n \"closeTrigger\"\n);\nvar parts = anatomy.build();\nvar getAnchorId = (scope) => scope.ids?.anchor ?? `popover:${scope.id}:anchor`;\nvar getTriggerId = (scope) => scope.ids?.trigger ?? `popover:${scope.id}:trigger`;\nvar getContentId = (scope) => scope.ids?.content ?? `popover:${scope.id}:content`;\nvar getPositionerId = (scope) => scope.ids?.positioner ?? `popover:${scope.id}:popper`;\nvar getArrowId = (scope) => scope.ids?.arrow ?? `popover:${scope.id}:arrow`;\nvar getTitleId = (scope) => scope.ids?.title ?? `popover:${scope.id}:title`;\nvar getDescriptionId = (scope) => scope.ids?.description ?? `popover:${scope.id}:desc`;\nvar getCloseTriggerId = (scope) => scope.ids?.closeTrigger ?? `popover:${scope.id}:close`;\nvar getAnchorEl = (scope) => scope.getById(getAnchorId(scope));\nvar getTriggerEl = (scope) => scope.getById(getTriggerId(scope));\nvar getContentEl = (scope) => scope.getById(getContentId(scope));\nvar getPositionerEl = (scope) => scope.getById(getPositionerId(scope));\nvar getTitleEl = (scope) => scope.getById(getTitleId(scope));\nvar getDescriptionEl = (scope) => scope.getById(getDescriptionId(scope));\n\n// src/popover.connect.ts\nfunction connect(service, normalize) {\n const { state, context, send, computed, prop, scope } = service;\n const open = state.matches(\"open\");\n const currentPlacement = context.get(\"currentPlacement\");\n const portalled = computed(\"currentPortalled\");\n const rendered = context.get(\"renderedElements\");\n const popperStyles = getPlacementStyles({\n ...prop(\"positioning\"),\n placement: currentPlacement\n });\n return {\n portalled,\n open,\n setOpen(nextOpen) {\n const open2 = state.matches(\"open\");\n if (open2 === nextOpen) return;\n send({ type: nextOpen ? \"OPEN\" : \"CLOSE\" });\n },\n reposition(options = {}) {\n send({ type: \"POSITIONING.SET\", options });\n },\n getArrowProps() {\n return normalize.element({\n id: getArrowId(scope),\n ...parts.arrow.attrs,\n dir: prop(\"dir\"),\n style: popperStyles.arrow\n });\n },\n getArrowTipProps() {\n return normalize.element({\n ...parts.arrowTip.attrs,\n dir: prop(\"dir\"),\n style: popperStyles.arrowTip\n });\n },\n getAnchorProps() {\n return normalize.element({\n ...parts.anchor.attrs,\n dir: prop(\"dir\"),\n id: getAnchorId(scope)\n });\n },\n getTriggerProps() {\n return normalize.button({\n ...parts.trigger.attrs,\n dir: prop(\"dir\"),\n type: \"button\",\n \"data-placement\": currentPlacement,\n id: getTriggerId(scope),\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"aria-controls\": getContentId(scope),\n onPointerDown(event) {\n if (isSafari()) {\n event.currentTarget.focus();\n }\n },\n onClick(event) {\n if (event.defaultPrevented) return;\n send({ type: \"TOGGLE\" });\n },\n onBlur(event) {\n send({ type: \"TRIGGER_BLUR\", target: event.relatedTarget });\n }\n });\n },\n getIndicatorProps() {\n return normalize.element({\n ...parts.indicator.attrs,\n dir: prop(\"dir\"),\n \"data-state\": open ? \"open\" : \"closed\"\n });\n },\n getPositionerProps() {\n return normalize.element({\n id: getPositionerId(scope),\n ...parts.positioner.attrs,\n dir: prop(\"dir\"),\n style: popperStyles.floating\n });\n },\n getContentProps() {\n return normalize.element({\n ...parts.content.attrs,\n dir: prop(\"dir\"),\n id: getContentId(scope),\n tabIndex: -1,\n role: \"dialog\",\n hidden: !open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-expanded\": dataAttr(open),\n \"aria-labelledby\": rendered.title ? getTitleId(scope) : void 0,\n \"aria-describedby\": rendered.description ? getDescriptionId(scope) : void 0,\n \"data-placement\": currentPlacement\n });\n },\n getTitleProps() {\n return normalize.element({\n ...parts.title.attrs,\n id: getTitleId(scope),\n dir: prop(\"dir\")\n });\n },\n getDescriptionProps() {\n return normalize.element({\n ...parts.description.attrs,\n id: getDescriptionId(scope),\n dir: prop(\"dir\")\n });\n },\n getCloseTriggerProps() {\n return normalize.button({\n ...parts.closeTrigger.attrs,\n dir: prop(\"dir\"),\n id: getCloseTriggerId(scope),\n type: \"button\",\n \"aria-label\": \"close\",\n onClick(event) {\n if (event.defaultPrevented) return;\n event.stopPropagation();\n send({ type: \"CLOSE\" });\n }\n });\n }\n };\n}\nvar machine = createMachine({\n props({ props: props2 }) {\n return {\n closeOnInteractOutside: true,\n closeOnEscape: true,\n autoFocus: true,\n modal: false,\n portalled: true,\n ...props2,\n positioning: {\n placement: \"bottom\",\n ...props2.positioning\n }\n };\n },\n initialState({ prop }) {\n const open = prop(\"open\") || prop(\"defaultOpen\");\n return open ? \"open\" : \"closed\";\n },\n context({ bindable }) {\n return {\n currentPlacement: bindable(() => ({\n defaultValue: void 0\n })),\n renderedElements: bindable(() => ({\n defaultValue: { title: true, description: true }\n }))\n };\n },\n computed: {\n currentPortalled: ({ prop }) => !!prop(\"modal\") || !!prop(\"portalled\")\n },\n watch({ track, prop, action }) {\n track([() => prop(\"open\")], () => {\n action([\"toggleVisibility\"]);\n });\n },\n entry: [\"checkRenderedElements\"],\n states: {\n closed: {\n on: {\n \"CONTROLLED.OPEN\": {\n target: \"open\",\n actions: [\"setInitialFocus\"]\n },\n TOGGLE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnOpen\"]\n },\n {\n target: \"open\",\n actions: [\"invokeOnOpen\", \"setInitialFocus\"]\n }\n ],\n OPEN: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnOpen\"]\n },\n {\n target: \"open\",\n actions: [\"invokeOnOpen\", \"setInitialFocus\"]\n }\n ]\n }\n },\n open: {\n effects: [\n \"trapFocus\",\n \"preventScroll\",\n \"hideContentBelow\",\n \"trackPositioning\",\n \"trackDismissableElement\",\n \"proxyTabFocus\"\n ],\n on: {\n \"CONTROLLED.CLOSE\": {\n target: \"closed\",\n actions: [\"setFinalFocus\"]\n },\n CLOSE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"closed\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n TOGGLE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"closed\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"POSITIONING.SET\": {\n actions: [\"reposition\"]\n }\n }\n }\n },\n implementations: {\n guards: {\n isOpenControlled: ({ prop }) => prop(\"open\") != void 0\n },\n effects: {\n trackPositioning({ context, prop, scope }) {\n context.set(\"currentPlacement\", prop(\"positioning\").placement);\n const anchorEl = getAnchorEl(scope) ?? getTriggerEl(scope);\n const getPositionerEl2 = () => getPositionerEl(scope);\n return getPlacement(anchorEl, getPositionerEl2, {\n ...prop(\"positioning\"),\n defer: true,\n onComplete(data) {\n context.set(\"currentPlacement\", data.placement);\n }\n });\n },\n trackDismissableElement({ send, prop, scope }) {\n const getContentEl2 = () => getContentEl(scope);\n let restoreFocus = true;\n return trackDismissableElement(getContentEl2, {\n pointerBlocking: prop(\"modal\"),\n exclude: getTriggerEl(scope),\n defer: true,\n onEscapeKeyDown(event) {\n prop(\"onEscapeKeyDown\")?.(event);\n if (prop(\"closeOnEscape\")) return;\n event.preventDefault();\n },\n onInteractOutside(event) {\n prop(\"onInteractOutside\")?.(event);\n if (event.defaultPrevented) return;\n restoreFocus = !(event.detail.focusable || event.detail.contextmenu);\n if (!prop(\"closeOnInteractOutside\")) {\n event.preventDefault();\n }\n },\n onPointerDownOutside: prop(\"onPointerDownOutside\"),\n onFocusOutside: prop(\"onFocusOutside\"),\n persistentElements: prop(\"persistentElements\"),\n onDismiss() {\n send({ type: \"CLOSE\", src: \"interact-outside\", restoreFocus });\n }\n });\n },\n proxyTabFocus({ prop, scope }) {\n if (prop(\"modal\") || !prop(\"portalled\")) return;\n const getContentEl2 = () => getContentEl(scope);\n return proxyTabFocus(getContentEl2, {\n triggerElement: getTriggerEl(scope),\n defer: true,\n onFocus(el) {\n el.focus({ preventScroll: true });\n }\n });\n },\n hideContentBelow({ prop, scope }) {\n if (!prop(\"modal\")) return;\n const getElements = () => [getContentEl(scope), getTriggerEl(scope)];\n return ariaHidden(getElements, { defer: true });\n },\n preventScroll({ prop, scope }) {\n if (!prop(\"modal\")) return;\n return preventBodyScroll(scope.getDoc());\n },\n trapFocus({ prop, scope }) {\n if (!prop(\"modal\")) return;\n const contentEl = () => getContentEl(scope);\n return trapFocus(contentEl, {\n initialFocus: () => getInitialFocus({\n root: getContentEl(scope),\n getInitialEl: prop(\"initialFocusEl\"),\n enabled: prop(\"autoFocus\")\n })\n });\n }\n },\n actions: {\n reposition({ event, prop, scope, context }) {\n const anchorEl = getAnchorEl(scope) ?? getTriggerEl(scope);\n const getPositionerEl2 = () => getPositionerEl(scope);\n getPlacement(anchorEl, getPositionerEl2, {\n ...prop(\"positioning\"),\n ...event.options,\n defer: true,\n listeners: false,\n onComplete(data) {\n context.set(\"currentPlacement\", data.placement);\n }\n });\n },\n checkRenderedElements({ context, scope }) {\n raf(() => {\n Object.assign(context.get(\"renderedElements\"), {\n title: !!getTitleEl(scope),\n description: !!getDescriptionEl(scope)\n });\n });\n },\n setInitialFocus({ prop, scope }) {\n if (prop(\"modal\")) return;\n raf(() => {\n const element = getInitialFocus({\n root: getContentEl(scope),\n getInitialEl: prop(\"initialFocusEl\"),\n enabled: prop(\"autoFocus\")\n });\n element?.focus({ preventScroll: true });\n });\n },\n setFinalFocus({ event, scope }) {\n const restoreFocus = event.restoreFocus ?? event.previousEvent?.restoreFocus;\n if (restoreFocus != null && !restoreFocus) return;\n raf(() => {\n const element = getTriggerEl(scope);\n element?.focus({ preventScroll: true });\n });\n },\n invokeOnOpen({ prop }) {\n prop(\"onOpenChange\")?.({ open: true });\n },\n invokeOnClose({ prop }) {\n prop(\"onOpenChange\")?.({ open: false });\n },\n toggleVisibility({ event, send, prop }) {\n send({ type: prop(\"open\") ? \"CONTROLLED.OPEN\" : \"CONTROLLED.CLOSE\", previousEvent: event });\n }\n }\n }\n});\nvar props = createProps()([\n \"autoFocus\",\n \"closeOnEscape\",\n \"closeOnInteractOutside\",\n \"dir\",\n \"getRootNode\",\n \"id\",\n \"ids\",\n \"initialFocusEl\",\n \"modal\",\n \"onEscapeKeyDown\",\n \"onFocusOutside\",\n \"onInteractOutside\",\n \"onOpenChange\",\n \"onPointerDownOutside\",\n \"defaultOpen\",\n \"open\",\n \"persistentElements\",\n \"portalled\",\n \"positioning\"\n]);\nvar splitProps = createSplitProps(props);\n\nexport { anatomy, connect, machine, props, splitProps };\n"],"names":["anatomy","createAnatomy","parts","getAnchorId","scope","getTriggerId","getContentId","getPositionerId","getArrowId","getTitleId","getDescriptionId","getCloseTriggerId","getAnchorEl","getTriggerEl","getContentEl","getPositionerEl","getTitleEl","getDescriptionEl","connect","service","normalize","state","context","send","computed","prop","open","currentPlacement","portalled","rendered","popperStyles","getPlacementStyles","nextOpen","options","event","isSafari","dataAttr","machine","createMachine","props2","bindable","track","action","anchorEl","getPlacement","data","getContentEl2","restoreFocus","trackDismissableElement","proxyTabFocus","el","ariaHidden","preventBodyScroll","trapFocus","getInitialFocus","raf","createProps"],"mappings":";;;AAYG,IAACA,IAAUC,EAAc,SAAS,EAAE;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAQF,EAAQ,MAAO,GACvBG,IAAc,CAACC,MAAUA,EAAM,KAAK,UAAU,WAAWA,EAAM,EAAE,WACjEC,IAAe,CAACD,MAAUA,EAAM,KAAK,WAAW,WAAWA,EAAM,EAAE,YACnEE,IAAe,CAACF,MAAUA,EAAM,KAAK,WAAW,WAAWA,EAAM,EAAE,YACnEG,IAAkB,CAACH,MAAUA,EAAM,KAAK,cAAc,WAAWA,EAAM,EAAE,WACzEI,IAAa,CAACJ,MAAUA,EAAM,KAAK,SAAS,WAAWA,EAAM,EAAE,UAC/DK,IAAa,CAACL,MAAUA,EAAM,KAAK,SAAS,WAAWA,EAAM,EAAE,UAC/DM,IAAmB,CAACN,MAAUA,EAAM,KAAK,eAAe,WAAWA,EAAM,EAAE,SAC3EO,IAAoB,CAACP,MAAUA,EAAM,KAAK,gBAAgB,WAAWA,EAAM,EAAE,UAC7EQ,IAAc,CAACR,MAAUA,EAAM,QAAQD,EAAYC,CAAK,CAAC,GACzDS,IAAe,CAACT,MAAUA,EAAM,QAAQC,EAAaD,CAAK,CAAC,GAC3DU,IAAe,CAACV,MAAUA,EAAM,QAAQE,EAAaF,CAAK,CAAC,GAC3DW,IAAkB,CAACX,MAAUA,EAAM,QAAQG,EAAgBH,CAAK,CAAC,GACjEY,IAAa,CAACZ,MAAUA,EAAM,QAAQK,EAAWL,CAAK,CAAC,GACvDa,IAAmB,CAACb,MAAUA,EAAM,QAAQ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AAW;AAAA,UACrC,CAAW,GACQ,MAAM,EAAE,eAAe,GAAI,CAAE;AAAA,QAChD,CAAS;AAAA,MACF;AAAA,MACD,cAAc,EAAE,OAAAS,GAAO,OAAA9B,KAAS;AAC9B,cAAM2C,IAAeb,EAAM,gBAAgBA,EAAM,eAAe;AAChE,QAAIa,KAAgB,QAAQ,CAACA,KAC7BQ,EAAI,MAAM;AAER,UADgB1C,EAAaT,CAAK,GACzB,MAAM,EAAE,eAAe,GAAI,CAAE;AAAA,QAChD,CAAS;AAAA,MACF;AAAA,MACD,aAAa,EAAE,MAAAqB,KAAQ;AACrB,QAAAA,EAAK,cAAc,IAAI,EAAE,MAAM,GAAI,CAAE;AAAA,MACtC;AAAA,MACD,cAAc,EAAE,MAAAA,KAAQ;AACtB,QAAAA,EAAK,cAAc,IAAI,EAAE,MAAM,GAAK,CAAE;AAAA,MACvC;AAAA,MACD,iBAAiB,EAAE,OAAAS,GAAO,MAAAX,GAAM,MAAAE,EAAI,GAAI;AACtC,QAAAF,EAAK,EAAE,MAAME,EAAK,MAAM,IAAI,oBAAoB,oBAAoB,eAAeS,GAAO;AAAA,MAClG;AAAA,IACA;AAAA,EACA;AACA,CAAC;AACWsB,IAAc;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const c=require("./index-BlGAWSIX.js"),g=require("./index-DZGYG5M4.js"),I=require("./portal-TWtD47zg.js");var C=c.createAnatomy("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),l=C.build(),y=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,m=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,p=e=>e.ids?.content??`dialog:${e.id}:content`,f=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,O=e=>e.ids?.title??`dialog:${e.id}:title`,E=e=>e.ids?.description??`dialog:${e.id}:description`,k=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,u=e=>e.getById(p(e)),b=e=>e.getById(y(e)),D=e=>e.getById(m(e)),P=e=>e.getById(f(e)),F=e=>e.getById(O(e)),T=e=>e.getById(E(e)),L=e=>e.getById(k(e));function h(e,t){const{state:n,send:i,context:s,prop:a,scope:r}=e,v=a("aria-label"),d=n.matches("open");return{open:d,setOpen(o){n.matches("open")!==o&&i({type:o?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...l.trigger.attrs,dir:a("dir"),id:f(r),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":p(r),onClick(o){o.defaultPrevented||i({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...l.backdrop.attrs,dir:a("dir"),hidden:!d,id:m(r),"data-state":d?"open":"closed"})},getPositionerProps(){return t.element({...l.positioner.attrs,dir:a("dir"),id:y(r),style:{pointerEvents:d?void 0:"none"}})},getContentProps(){const o=s.get("rendered");return t.element({...l.content.attrs,dir:a("dir"),role:a("role"),hidden:!d,id:p(r),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":v||void 0,"aria-labelledby":v||!o.title?void 0:O(r),"aria-describedby":o.description?E(r):void 0})},getTitleProps(){return t.element({...l.title.attrs,dir:a("dir"),id:O(r)})},getDescriptionProps(){return t.element({...l.description.attrs,dir:a("dir"),id:E(r)})},getCloseTriggerProps(){return t.button({...l.closeTrigger.attrs,dir:a("dir"),id:k(r),type:"button",onClick(o){o.defaultPrevented||(o.stopPropagation(),i({type:"CLOSE"}))}})}}}var S=c.createMachine({props({props:e,scope:t}){const n=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n?()=>L(t):void 0,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){const i=()=>u(e);return c.trackDismissableElement(i,{defer:!0,pointerBlocking:n("modal"),exclude:[P(e)],onInteractOutside(s){n("onInteractOutside")?.(s),n("closeOnInteractOutside")||s.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onEscapeKeyDown(s){n("onEscapeKeyDown")?.(s),n("closeOnEscape")||s.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return g.preventBodyScroll(e.getDoc())},trapFocus({scope:e,prop:t}){if(!t("trapFocus")||!t("modal"))return;const n=()=>u(e);return g.trapFocus(n,{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:i=>t("finalFocusEl")?.()??i})},hideContentBelow({scope:e,prop:t}){if(!t("modal"))return;const n=()=>[u(e)];return g.ariaHidden(n,{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){c.raf(()=>{e.set("rendered",{title:!!F(t),description:!!T(t)})})},syncZIndex({scope:e}){c.raf(()=>{const t=u(e);if(!t)return;const n=c.getComputedStyle(t);[b(e),D(e)].forEach(s=>{s?.style.setProperty("--z-index",n.zIndex)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}});I.createProps()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);exports.anatomy=C;exports.connect=h;exports.machine=S;
2
- //# sourceMappingURL=index-CFnNmQf0.js.map
@@ -1,2 +0,0 @@
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 +0,0 @@
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,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