@televet/kibble-ui 4.0.0-beta.35 → 4.0.0-beta.37
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.
- package/dist/chunks/{IconLogo-DedIxFq7.js → IconLogo-C4aZqkn1.js} +2 -2
- package/dist/chunks/{IconLogo-DedIxFq7.js.map → IconLogo-C4aZqkn1.js.map} +1 -1
- package/dist/chunks/alert.component-BPTwogSX.js +2 -0
- package/dist/chunks/{alert.component-CcCt-bb5.js.map → alert.component-BPTwogSX.js.map} +1 -1
- package/dist/chunks/{alert.component-Dk33kIVc.js → alert.component-BT9Gn6Iw.js} +10 -10
- package/dist/chunks/{alert.component-Dk33kIVc.js.map → alert.component-BT9Gn6Iw.js.map} +1 -1
- package/dist/chunks/{avatar.component-Bj-v-tJK.js → avatar.component-B0LsaXtv.js} +12 -12
- package/dist/chunks/{avatar.component-Bj-v-tJK.js.map → avatar.component-B0LsaXtv.js.map} +1 -1
- package/dist/chunks/avatar.component-DLmlAmdJ.js +2 -0
- package/dist/chunks/{avatar.component-LWnRY2X6.js.map → avatar.component-DLmlAmdJ.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-Onosz6A9.js → avatarGroup.component-DHbejH6-.js} +2 -2
- package/dist/chunks/{avatarGroup.component-Onosz6A9.js.map → avatarGroup.component-DHbejH6-.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-DEDlMSqD.js → avatarGroup.component-DYQjXpw6.js} +2 -2
- package/dist/chunks/{avatarGroup.component-DEDlMSqD.js.map → avatarGroup.component-DYQjXpw6.js.map} +1 -1
- package/dist/chunks/box-CRddum0T.js +7 -0
- package/dist/chunks/{box-DQTWVrl0.js.map → box-CRddum0T.js.map} +1 -1
- package/dist/chunks/box-CqeORXNj.js +2 -0
- package/dist/chunks/{box-DiiiZkF4.js.map → box-CqeORXNj.js.map} +1 -1
- package/dist/chunks/{button.component-BZHMvNis.js → button.component-CXYCe9wy.js} +3 -3
- package/dist/chunks/{button.component-BZHMvNis.js.map → button.component-CXYCe9wy.js.map} +1 -1
- package/dist/chunks/{button.component-DrvTYE-F.js → button.component-Dkq2R93W.js} +2 -2
- package/dist/chunks/{button.component-DrvTYE-F.js.map → button.component-Dkq2R93W.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-DoNMqghO.js → buttonGroup.component-BLdNoPbq.js} +6 -6
- package/dist/chunks/{buttonGroup.component-DoNMqghO.js.map → buttonGroup.component-BLdNoPbq.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CmMPEPEN.js → buttonGroup.component-CEL4pdRB.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CmMPEPEN.js.map → buttonGroup.component-CEL4pdRB.js.map} +1 -1
- package/dist/chunks/{card.component-BdHsWz_5.js → card.component-BmmzlLYn.js} +2 -2
- package/dist/chunks/{card.component-BdHsWz_5.js.map → card.component-BmmzlLYn.js.map} +1 -1
- package/dist/chunks/{card.component-Ds2Q5-dv.js → card.component-uqvWzK_0.js} +2 -2
- package/dist/chunks/{card.component-Ds2Q5-dv.js.map → card.component-uqvWzK_0.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-OMu4axLo.js → characterCounter.component-CZASTylb.js} +2 -2
- package/dist/chunks/{characterCounter.component-OMu4axLo.js.map → characterCounter.component-CZASTylb.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-2pxq0nJ_.js → characterCounter.component-Dvz2OZQP.js} +5 -5
- package/dist/chunks/{characterCounter.component-2pxq0nJ_.js.map → characterCounter.component-Dvz2OZQP.js.map} +1 -1
- package/dist/chunks/{checkbox.component-6unW8bGD.js → checkbox.component-E4vMCQbq.js} +7 -7
- package/dist/chunks/{checkbox.component-6unW8bGD.js.map → checkbox.component-E4vMCQbq.js.map} +1 -1
- package/dist/chunks/checkbox.component-VWcYJiRf.js +2 -0
- package/dist/chunks/{checkbox.component-CN7VT6Kl.js.map → checkbox.component-VWcYJiRf.js.map} +1 -1
- package/dist/chunks/{checkbox.records-1df_6uAA.js → checkbox.records-B8iY0zdQ.js} +2 -2
- package/dist/chunks/{checkbox.records-1df_6uAA.js.map → checkbox.records-B8iY0zdQ.js.map} +1 -1
- package/dist/chunks/{checkbox.records-BEJe1isy.js → checkbox.records-C-c1IoWp.js} +2 -2
- package/dist/chunks/{checkbox.records-BEJe1isy.js.map → checkbox.records-C-c1IoWp.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-BJ12z-XW.js → checkboxGroup.component-DAtqZ54e.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-BJ12z-XW.js.map → checkboxGroup.component-DAtqZ54e.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-Dbc4R5pg.js → checkboxGroup.component-SABwFfW_.js} +4 -4
- package/dist/chunks/{checkboxGroup.component-Dbc4R5pg.js.map → checkboxGroup.component-SABwFfW_.js.map} +1 -1
- package/dist/chunks/{config-CWIRw37z.js → config-CrnIcxSC.js} +2 -2
- package/dist/chunks/{config-CWIRw37z.js.map → config-CrnIcxSC.js.map} +1 -1
- package/dist/chunks/{config-Bka1LOUG.js → config-fNC832hN.js} +2 -2
- package/dist/chunks/{config-Bka1LOUG.js.map → config-fNC832hN.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-D0iB6mGd.js → conversationCard.component-BtiP2oUj.js} +17 -17
- package/dist/chunks/{conversationCard.component-D0iB6mGd.js.map → conversationCard.component-BtiP2oUj.js.map} +1 -1
- package/dist/chunks/{conversationCard.component--lfMn8rH.js → conversationCard.component-D16i-VxT.js} +2 -2
- package/dist/chunks/{conversationCard.component--lfMn8rH.js.map → conversationCard.component-D16i-VxT.js.map} +1 -1
- package/dist/chunks/{create-recipe-context-yj-_0pxV.js → create-recipe-context-Bim5jFE2.js} +2 -2
- package/dist/chunks/{create-recipe-context-yj-_0pxV.js.map → create-recipe-context-Bim5jFE2.js.map} +1 -1
- package/dist/chunks/{create-recipe-context-ei7-Fhjc.js → create-recipe-context-CA3qYjga.js} +3 -3
- package/dist/chunks/{create-recipe-context-ei7-Fhjc.js.map → create-recipe-context-CA3qYjga.js.map} +1 -1
- package/dist/chunks/{create-slot-recipe-context-B6kmgvsX.js → create-slot-recipe-context-CGmjOuOh.js} +3 -3
- package/dist/chunks/{create-slot-recipe-context-B6kmgvsX.js.map → create-slot-recipe-context-CGmjOuOh.js.map} +1 -1
- package/dist/chunks/{create-slot-recipe-context-CNbTdeS5.js → create-slot-recipe-context-CgQA10Yw.js} +2 -2
- package/dist/chunks/{create-slot-recipe-context-CNbTdeS5.js.map → create-slot-recipe-context-CgQA10Yw.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DOq_pEln.js → datePicker.component-CFK8KuwT.js} +2 -2
- package/dist/chunks/{datePicker.component-DOq_pEln.js.map → datePicker.component-CFK8KuwT.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BjPLm6FH.js → datePicker.component-CgXA_g6P.js} +13 -13
- package/dist/chunks/{datePicker.component-BjPLm6FH.js.map → datePicker.component-CgXA_g6P.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-tzkv77T4.js → dialog-trigger-B6YOjSvA.js} +2 -2
- package/dist/chunks/{dialog-trigger-tzkv77T4.js.map → dialog-trigger-B6YOjSvA.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-CUC9-uYl.js → dialog-trigger-be7-Tznq.js} +2 -2
- package/dist/chunks/{dialog-trigger-CUC9-uYl.js.map → dialog-trigger-be7-Tznq.js.map} +1 -1
- package/dist/chunks/{divider.types-Cum_pC7q.js → divider.types-040bKgyZ.js} +2 -2
- package/dist/chunks/{divider.types-Cum_pC7q.js.map → divider.types-040bKgyZ.js.map} +1 -1
- package/dist/chunks/{divider.types-CVrYEuME.js → divider.types-DwqIRd94.js} +3 -3
- package/dist/chunks/{divider.types-CVrYEuME.js.map → divider.types-DwqIRd94.js.map} +1 -1
- package/dist/chunks/{factory-D5ooFDGK.js → factory-D_LOlWjz.js} +181 -181
- package/dist/chunks/{factory-D5ooFDGK.js.map → factory-D_LOlWjz.js.map} +1 -1
- package/dist/chunks/factory-DiRBd_Ei.js +17 -0
- package/dist/chunks/{factory-Djhmhla9.js.map → factory-DiRBd_Ei.js.map} +1 -1
- package/dist/chunks/{flex-D2YmHSRL.js → flex-9MBe_Izs.js} +2 -2
- package/dist/chunks/{flex-D2YmHSRL.js.map → flex-9MBe_Izs.js.map} +1 -1
- package/dist/chunks/{flex-CoWH4MWg.js → flex-BpxJvA4z.js} +2 -2
- package/dist/chunks/{flex-CoWH4MWg.js.map → flex-BpxJvA4z.js.map} +1 -1
- package/dist/chunks/{float-D0XppGHj.js → float-D5FLe8D9.js} +2 -2
- package/dist/chunks/{float-D0XppGHj.js.map → float-D5FLe8D9.js.map} +1 -1
- package/dist/chunks/{float-3sTEdNja.js → float-DltoW_Zq.js} +3 -3
- package/dist/chunks/{float-3sTEdNja.js.map → float-DltoW_Zq.js.map} +1 -1
- package/dist/chunks/{grid-item-CUvFlFUM.js → grid-item-Bh8eyURv.js} +2 -2
- package/dist/chunks/{grid-item-CUvFlFUM.js.map → grid-item-Bh8eyURv.js.map} +1 -1
- package/dist/chunks/{grid-item-Demhr3R8.js → grid-item-CtE_AYi_.js} +3 -3
- package/dist/chunks/{grid-item-Demhr3R8.js.map → grid-item-CtE_AYi_.js.map} +1 -1
- package/dist/chunks/{group-CyV6CH8n.js → group-B-T5mM5H.js} +2 -2
- package/dist/chunks/{group-CyV6CH8n.js.map → group-B-T5mM5H.js.map} +1 -1
- package/dist/chunks/{group-gT4uiUTj.js → group-C1RHA5D4.js} +2 -2
- package/dist/chunks/{group-gT4uiUTj.js.map → group-C1RHA5D4.js.map} +1 -1
- package/dist/chunks/{h-stack-DWIPFE4q.js → h-stack-BNJKAmfP.js} +2 -2
- package/dist/chunks/{h-stack-DWIPFE4q.js.map → h-stack-BNJKAmfP.js.map} +1 -1
- package/dist/chunks/h-stack-CS7rfLzY.js +2 -0
- package/dist/chunks/{h-stack-DS6_Nmps.js.map → h-stack-CS7rfLzY.js.map} +1 -1
- package/dist/chunks/{heading.component-WidNm4DU.js → heading.component-C0os9XQl.js} +3 -3
- package/dist/chunks/{heading.component-WidNm4DU.js.map → heading.component-C0os9XQl.js.map} +1 -1
- package/dist/chunks/heading.component-DPQ3Ldev.js +2 -0
- package/dist/chunks/{heading.component-CVtGEEgj.js.map → heading.component-DPQ3Ldev.js.map} +1 -1
- package/dist/chunks/{icon-button-BhUHtq9f.js → icon-button-C2UFU-Ne.js} +4 -4
- package/dist/chunks/{icon-button-BhUHtq9f.js.map → icon-button-C2UFU-Ne.js.map} +1 -1
- package/dist/chunks/icon-button-DTNVQ6ie.js +2 -0
- package/dist/chunks/{icon-button-BoeNBxVE.js.map → icon-button-DTNVQ6ie.js.map} +1 -1
- package/dist/chunks/{icon.component-CqMlCLYe.js → icon.component-2UIkFQec.js} +2 -2
- package/dist/chunks/{icon.component-CqMlCLYe.js.map → icon.component-2UIkFQec.js.map} +1 -1
- package/dist/chunks/{icon.component-RnXzLy9Z.js → icon.component-Bak20DHK.js} +2 -2
- package/dist/chunks/{icon.component-RnXzLy9Z.js.map → icon.component-Bak20DHK.js.map} +1 -1
- package/dist/chunks/{icons-6idzI9fr.js → icons-DV9YYLlJ.js} +2 -2
- package/dist/chunks/{icons-6idzI9fr.js.map → icons-DV9YYLlJ.js.map} +1 -1
- package/dist/chunks/{icons-DsfswYKK.js → icons-mKvEgUrt.js} +2 -2
- package/dist/chunks/{icons-DsfswYKK.js.map → icons-mKvEgUrt.js.map} +1 -1
- package/dist/chunks/{index-CItwlE2r.js → index-7Wm53w71.js} +2 -2
- package/dist/chunks/{index-CItwlE2r.js.map → index-7Wm53w71.js.map} +1 -1
- package/dist/chunks/{index-Cl4DH-b8.js → index-BDnnTdaJ.js} +2 -2
- package/dist/chunks/{index-Cl4DH-b8.js.map → index-BDnnTdaJ.js.map} +1 -1
- package/dist/chunks/{index-D1m6YWQg.js → index-BYf7SZUC.js} +2 -2
- package/dist/chunks/{index-D1m6YWQg.js.map → index-BYf7SZUC.js.map} +1 -1
- package/dist/chunks/{index-JaYE81Ru.js → index-COoMV9Mh.js} +2 -2
- package/dist/chunks/{index-JaYE81Ru.js.map → index-COoMV9Mh.js.map} +1 -1
- package/dist/chunks/{index-bAktJOSP.js → index-CZz7hHWb.js} +2 -2
- package/dist/chunks/{index-bAktJOSP.js.map → index-CZz7hHWb.js.map} +1 -1
- package/dist/chunks/{index-Dg2ABT8y.js → index-CkYZf9Pm.js} +2 -2
- package/dist/chunks/{index-Dg2ABT8y.js.map → index-CkYZf9Pm.js.map} +1 -1
- package/dist/chunks/{index-DQxjSq1v.js → index-Cn3XQQvx.js} +2 -2
- package/dist/chunks/{index-DQxjSq1v.js.map → index-Cn3XQQvx.js.map} +1 -1
- package/dist/chunks/index-DD49WSSW.js +2 -0
- package/dist/chunks/index-DD49WSSW.js.map +1 -0
- package/dist/chunks/index-DZ4rwOqN.js +2 -0
- package/dist/chunks/{index-naFRmuBR.js.map → index-DZ4rwOqN.js.map} +1 -1
- package/dist/chunks/{index-BStpE8Il.js → index-DyfLgoV3.js} +2 -2
- package/dist/chunks/{index-BStpE8Il.js.map → index-DyfLgoV3.js.map} +1 -1
- package/dist/chunks/{index-DgM7zI46.js → index-MlhL0PDC.js} +2 -2
- package/dist/chunks/{index-DgM7zI46.js.map → index-MlhL0PDC.js.map} +1 -1
- package/dist/chunks/{index-Cv1W043o.js → index-UWtj4ULm.js} +2 -2
- package/dist/chunks/{index-Cv1W043o.js.map → index-UWtj4ULm.js.map} +1 -1
- package/dist/chunks/{index-CNSw8O4Z.js → index-ZaGEDS_0.js} +2 -2
- package/dist/chunks/{index-CNSw8O4Z.js.map → index-ZaGEDS_0.js.map} +1 -1
- package/dist/chunks/{jsx-runtime-CITbqOLs.js → jsx-runtime-BjDatQAs.js} +5 -5
- package/dist/chunks/{jsx-runtime-CITbqOLs.js.map → jsx-runtime-BjDatQAs.js.map} +1 -1
- package/dist/chunks/{link.component-DfPzeeWK.js → link.component-Bc4wkkNV.js} +2 -2
- package/dist/chunks/{link.component-DfPzeeWK.js.map → link.component-Bc4wkkNV.js.map} +1 -1
- package/dist/chunks/{link.component-B0NnnoNo.js → link.component-DpZFgqBD.js} +5 -5
- package/dist/chunks/{link.component-B0NnnoNo.js.map → link.component-DpZFgqBD.js.map} +1 -1
- package/dist/chunks/{list-CBFKkZsk.js → list-6xuavQ8j.js} +2 -2
- package/dist/chunks/{list-CBFKkZsk.js.map → list-6xuavQ8j.js.map} +1 -1
- package/dist/chunks/{list-AkEh0-z3.js → list-btYImTmv.js} +2 -2
- package/dist/chunks/{list-AkEh0-z3.js.map → list-btYImTmv.js.map} +1 -1
- package/dist/chunks/{logo.types-DWfVoh84.js → logo.types-CNiIncF7.js} +2 -2
- package/dist/chunks/{logo.types-DWfVoh84.js.map → logo.types-CNiIncF7.js.map} +1 -1
- package/dist/chunks/{logo.types-Di-vcqft.js → logo.types-_82dfqCq.js} +4 -4
- package/dist/chunks/{logo.types-Di-vcqft.js.map → logo.types-_82dfqCq.js.map} +1 -1
- package/dist/chunks/{menu.component-D7YIaf-Z.js → menu.component-6ReZTkw3.js} +11 -11
- package/dist/chunks/{menu.component-D7YIaf-Z.js.map → menu.component-6ReZTkw3.js.map} +1 -1
- package/dist/chunks/menu.component-M23lpQYR.js +2 -0
- package/dist/chunks/{menu.component-CVq3JuDQ.js.map → menu.component-M23lpQYR.js.map} +1 -1
- package/dist/chunks/{modal.types-BqYvHMJ1.js → modal.types-C-ULroqw.js} +2 -2
- package/dist/chunks/{modal.types-BqYvHMJ1.js.map → modal.types-C-ULroqw.js.map} +1 -1
- package/dist/chunks/{modal.types-hd4zRySC.js → modal.types-Cz1sgSf1.js} +7 -7
- package/dist/chunks/{modal.types-hd4zRySC.js.map → modal.types-Cz1sgSf1.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-C1kj4Fks.js → notificationCounter.component-lX_ARuii.js} +2 -2
- package/dist/chunks/{notificationCounter.component-C1kj4Fks.js.map → notificationCounter.component-lX_ARuii.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-DucbUl3J.js → notificationCounter.component-nPsm5edj.js} +5 -5
- package/dist/chunks/{notificationCounter.component-DucbUl3J.js.map → notificationCounter.component-nPsm5edj.js.map} +1 -1
- package/dist/chunks/{picture.component-CcTQIBLG.js → picture.component-CRe72g3B.js} +2 -2
- package/dist/chunks/{picture.component-CcTQIBLG.js.map → picture.component-CRe72g3B.js.map} +1 -1
- package/dist/chunks/{picture.component-CFur6bma.js → picture.component-DietrSe9.js} +2 -2
- package/dist/chunks/{picture.component-CFur6bma.js.map → picture.component-DietrSe9.js.map} +1 -1
- package/dist/chunks/{pinInput.types-htAlsWUJ.js → pinInput.types-BEUtBvMe.js} +3 -3
- package/dist/chunks/{pinInput.types-htAlsWUJ.js.map → pinInput.types-BEUtBvMe.js.map} +1 -1
- package/dist/chunks/pinInput.types-DyQpSyoi.js +2 -0
- package/dist/chunks/{pinInput.types-BkZoddhj.js.map → pinInput.types-DyQpSyoi.js.map} +1 -1
- package/dist/chunks/{popover-NyXIgDrR.js → popover-B0kRlAi2.js} +2 -2
- package/dist/chunks/{popover-NyXIgDrR.js.map → popover-B0kRlAi2.js.map} +1 -1
- package/dist/chunks/{popover-DK1Q0GmC.js → popover-B8hI3TjN.js} +2 -2
- package/dist/chunks/{popover-DK1Q0GmC.js.map → popover-B8hI3TjN.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-DL0Y6XoH.js → popover-root-provider-DAMDDAHQ.js} +2 -2
- package/dist/chunks/{popover-root-provider-DL0Y6XoH.js.map → popover-root-provider-DAMDDAHQ.js.map} +1 -1
- package/dist/chunks/{popover.component-Di7A2mlT.js → popover.component-CrVJG5hl.js} +11 -11
- package/dist/chunks/{popover.component-Di7A2mlT.js.map → popover.component-CrVJG5hl.js.map} +1 -1
- package/dist/chunks/popover.component-IX7vhT9Q.js +2 -0
- package/dist/chunks/{popover.component-BU4ZYtgB.js.map → popover.component-IX7vhT9Q.js.map} +1 -1
- package/dist/chunks/{popover.recipe-C7mfFIuD.js → popover.recipe-CXB-bizi.js} +2 -2
- package/dist/chunks/{popover.recipe-C7mfFIuD.js.map → popover.recipe-CXB-bizi.js.map} +1 -1
- package/dist/chunks/{popover.recipe-CFioNlNO.js → popover.recipe-DhCa6zgx.js} +2 -2
- package/dist/chunks/{popover.recipe-CFioNlNO.js.map → popover.recipe-DhCa6zgx.js.map} +1 -1
- package/dist/chunks/{radio.records-HAh4TB8-.js → radio.records-CgQh4PvA.js} +2 -2
- package/dist/chunks/{radio.records-HAh4TB8-.js.map → radio.records-CgQh4PvA.js.map} +1 -1
- package/dist/chunks/{radio.records-BvaGc_dX.js → radio.records-Ds_h4yC0.js} +2 -2
- package/dist/chunks/{radio.records-BvaGc_dX.js.map → radio.records-Ds_h4yC0.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-Cdtgrekb.js → radioGroup.component-B3IbjBoh.js} +10 -10
- package/dist/chunks/{radioGroup.component-Cdtgrekb.js.map → radioGroup.component-B3IbjBoh.js.map} +1 -1
- package/dist/chunks/radioGroup.component-baegzOcU.js +2 -0
- package/dist/chunks/{radioGroup.component-AnXOfN3A.js.map → radioGroup.component-baegzOcU.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-wYh_RTGd.js → ratingDots.component-BOP9ddLk.js} +2 -2
- package/dist/chunks/{ratingDots.component-wYh_RTGd.js.map → ratingDots.component-BOP9ddLk.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-B-VtkikB.js → ratingDots.component-CDJNTlyt.js} +7 -7
- package/dist/chunks/{ratingDots.component-B-VtkikB.js.map → ratingDots.component-CDJNTlyt.js.map} +1 -1
- package/dist/chunks/{render-strategy-8uyKZcWI.js → render-strategy-BmWbSgqh.js} +2 -2
- package/dist/chunks/{render-strategy-8uyKZcWI.js.map → render-strategy-BmWbSgqh.js.map} +1 -1
- package/dist/chunks/select.component-D5Kx0C6H.js +2 -0
- package/dist/chunks/{select.component-CtCEglbM.js.map → select.component-D5Kx0C6H.js.map} +1 -1
- package/dist/chunks/{select.component-C9FC4hZN.js → select.component-kIMBGVX-.js} +9 -9
- package/dist/chunks/{select.component-C9FC4hZN.js.map → select.component-kIMBGVX-.js.map} +1 -1
- package/dist/chunks/sortableList.component-CMdzXRvM.js +6 -0
- package/dist/chunks/{sortableList.component-Dft-FiMn.js.map → sortableList.component-CMdzXRvM.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BpkFj8Wt.js → sortableList.component-DWCeI27G.js} +5 -5
- package/dist/chunks/{sortableList.component-BpkFj8Wt.js.map → sortableList.component-DWCeI27G.js.map} +1 -1
- package/dist/chunks/spinner-BVmsGoNz.js +2 -0
- package/dist/chunks/{spinner-B981BEf0.js.map → spinner-BVmsGoNz.js.map} +1 -1
- package/dist/chunks/spinner-CIj_D6mc.js +8 -0
- package/dist/chunks/{spinner-DUSVCecp.js.map → spinner-CIj_D6mc.js.map} +1 -1
- package/dist/chunks/{spinner.component-BmT7fUg9.js → spinner.component-B0EkS0nN.js} +6 -6
- package/dist/chunks/{spinner.component-BmT7fUg9.js.map → spinner.component-B0EkS0nN.js.map} +1 -1
- package/dist/chunks/{spinner.component-DPS-cIcA.js → spinner.component-DbjX00Oz.js} +2 -2
- package/dist/chunks/{spinner.component-DPS-cIcA.js.map → spinner.component-DbjX00Oz.js.map} +1 -1
- package/dist/chunks/{stack-DXGLsM8c.js → stack-CJxtLLO5.js} +2 -2
- package/dist/chunks/{stack-DXGLsM8c.js.map → stack-CJxtLLO5.js.map} +1 -1
- package/dist/chunks/{stack-BNCEW5sJ.js → stack-DCiVNls4.js} +3 -3
- package/dist/chunks/{stack-BNCEW5sJ.js.map → stack-DCiVNls4.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-CI0j01cH.js → styledAvatar.types-D-EtAZDF.js} +2 -2
- package/dist/chunks/{styledAvatar.types-CI0j01cH.js.map → styledAvatar.types-D-EtAZDF.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-CRb1HJCU.js → styledAvatar.types-Dq0B2lvO.js} +2 -2
- package/dist/chunks/{styledAvatar.types-CRb1HJCU.js.map → styledAvatar.types-Dq0B2lvO.js.map} +1 -1
- package/dist/chunks/{swatch.types-BtgRLAO2.js → swatch.types-BaLvcOgk.js} +2 -2
- package/dist/chunks/{swatch.types-BtgRLAO2.js.map → swatch.types-BaLvcOgk.js.map} +1 -1
- package/dist/chunks/{swatch.types-DMM5zh_t.js → swatch.types-yT5psqUR.js} +4 -4
- package/dist/chunks/{swatch.types-DMM5zh_t.js.map → swatch.types-yT5psqUR.js.map} +1 -1
- package/dist/chunks/switch.component-Ok2ZZQth.js +2 -0
- package/dist/chunks/{switch.component-Do0X7LJD.js.map → switch.component-Ok2ZZQth.js.map} +1 -1
- package/dist/chunks/{switch.component-Dl4g9R68.js → switch.component-w_hI7PDT.js} +5 -5
- package/dist/chunks/{switch.component-Dl4g9R68.js.map → switch.component-w_hI7PDT.js.map} +1 -1
- package/dist/chunks/{tabs.component-D1aPBr6M.js → tabs.component-BWVporfj.js} +5 -5
- package/dist/chunks/{tabs.component-D1aPBr6M.js.map → tabs.component-BWVporfj.js.map} +1 -1
- package/dist/chunks/{tabs.component-ISxMfB67.js → tabs.component-CD-aAuwS.js} +2 -2
- package/dist/chunks/{tabs.component-ISxMfB67.js.map → tabs.component-CD-aAuwS.js.map} +1 -1
- package/dist/chunks/{tag.component-BdVdchYv.js → tag.component-B3HqTQv9.js} +3 -3
- package/dist/chunks/{tag.component-BdVdchYv.js.map → tag.component-B3HqTQv9.js.map} +1 -1
- package/dist/chunks/{tag.component-Mi7eMQDk.js → tag.component-CG0GhLTW.js} +2 -2
- package/dist/chunks/{tag.component-Mi7eMQDk.js.map → tag.component-CG0GhLTW.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-BQRdsHPH.js → tagBlock.component-C4Jhgu0X.js} +10 -10
- package/dist/chunks/{tagBlock.component-BQRdsHPH.js.map → tagBlock.component-C4Jhgu0X.js.map} +1 -1
- package/dist/chunks/tagBlock.component-DVZRmYDw.js +2 -0
- package/dist/chunks/{tagBlock.component-Dj3iPVJy.js.map → tagBlock.component-DVZRmYDw.js.map} +1 -1
- package/dist/chunks/text.component-CjHMwskV.js +2 -0
- package/dist/chunks/{text.component-uDfPjmx6.js.map → text.component-CjHMwskV.js.map} +1 -1
- package/dist/chunks/{text.component-ymbS_dRE.js → text.component-DCAWfY65.js} +3 -3
- package/dist/chunks/{text.component-ymbS_dRE.js.map → text.component-DCAWfY65.js.map} +1 -1
- package/dist/chunks/{textInput.component-DfqkWsJX.js → textInput.component-B5-xa_yC.js} +9 -9
- package/dist/chunks/{textInput.component-DfqkWsJX.js.map → textInput.component-B5-xa_yC.js.map} +1 -1
- package/dist/chunks/textInput.component-BMSwF3Ae.js +2 -0
- package/dist/chunks/{textInput.component-CEF55yJj.js.map → textInput.component-BMSwF3Ae.js.map} +1 -1
- package/dist/chunks/{textarea.component-1B3U7E2O.js → textarea.component-1qoZ-mMp.js} +5 -5
- package/dist/chunks/{textarea.component-1B3U7E2O.js.map → textarea.component-1qoZ-mMp.js.map} +1 -1
- package/dist/chunks/textarea.component-L3bZoiXW.js +2 -0
- package/dist/chunks/{textarea.component-BVGFuIZC.js.map → textarea.component-L3bZoiXW.js.map} +1 -1
- package/dist/chunks/{theme.provider-BM3qjfO8.js → theme.provider-Cjzvgcq8.js} +4 -4
- package/dist/chunks/{theme.provider-BM3qjfO8.js.map → theme.provider-Cjzvgcq8.js.map} +1 -1
- package/dist/chunks/{theme.provider-B2ycPYcf.js → theme.provider-Ds0i6KF4.js} +586 -586
- package/dist/chunks/{theme.provider-B2ycPYcf.js.map → theme.provider-Ds0i6KF4.js.map} +1 -1
- package/dist/chunks/{timePicker.component-oN8iujB5.js → timePicker.component-CAAoFSZg.js} +2 -2
- package/dist/chunks/{timePicker.component-oN8iujB5.js.map → timePicker.component-CAAoFSZg.js.map} +1 -1
- package/dist/chunks/{timePicker.component-C7i3U49Y.js → timePicker.component-CImRXa-g.js} +8 -8
- package/dist/chunks/{timePicker.component-C7i3U49Y.js.map → timePicker.component-CImRXa-g.js.map} +1 -1
- package/dist/chunks/{timeRange.component-BApcir-7.js → timeRange.component-DNwdaf7m.js} +4 -4
- package/dist/chunks/{timeRange.component-BApcir-7.js.map → timeRange.component-DNwdaf7m.js.map} +1 -1
- package/dist/chunks/{timeRange.component-XZD-d3X-.js → timeRange.component-DXrBO0Id.js} +2 -2
- package/dist/chunks/{timeRange.component-XZD-d3X-.js.map → timeRange.component-DXrBO0Id.js.map} +1 -1
- package/dist/chunks/{timestamp.component-DJZzpqBC.js → timestamp.component-BACJfaKw.js} +2 -2
- package/dist/chunks/{timestamp.component-DJZzpqBC.js.map → timestamp.component-BACJfaKw.js.map} +1 -1
- package/dist/chunks/{timestamp.component-25Br-GCm.js → timestamp.component-Db-MbDMR.js} +3 -3
- package/dist/chunks/{timestamp.component-25Br-GCm.js.map → timestamp.component-Db-MbDMR.js.map} +1 -1
- package/dist/chunks/{tooltip.component-Cf_csr_d.js → tooltip.component-BPbl810g.js} +2 -2
- package/dist/chunks/{tooltip.component-Cf_csr_d.js.map → tooltip.component-BPbl810g.js.map} +1 -1
- package/dist/chunks/{tooltip.component-CVPBpD3Z.js → tooltip.component-JCzaFEUu.js} +2 -2
- package/dist/chunks/{tooltip.component-CVPBpD3Z.js.map → tooltip.component-JCzaFEUu.js.map} +1 -1
- package/dist/chunks/{use-field-context-BPsEZCN4.js → use-field-context--wBJQY1R.js} +2 -2
- package/dist/chunks/{use-field-context-BPsEZCN4.js.map → use-field-context--wBJQY1R.js.map} +1 -1
- package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
- package/dist/chunks/{use-locale-context-Cc4BhWV1.js.map → use-locale-context-BdqHZ8L8.js.map} +1 -1
- package/dist/chunks/{use-recipe-D7cwXEim.js → use-recipe-CJD8nmAh.js} +2 -2
- package/dist/chunks/{use-recipe-D7cwXEim.js.map → use-recipe-CJD8nmAh.js.map} +1 -1
- package/dist/chunks/use-recipe-e5vdQ3Ca.js +2 -0
- package/dist/chunks/{use-recipe-CkP1U6f2.js.map → use-recipe-e5vdQ3Ca.js.map} +1 -1
- package/dist/chunks/use-slot-recipe-BEyHP-Lh.js +2 -0
- package/dist/chunks/{use-slot-recipe-ClRnqDPf.js.map → use-slot-recipe-BEyHP-Lh.js.map} +1 -1
- package/dist/chunks/{use-slot-recipe-Bz5VPIbz.js → use-slot-recipe-CB5G_UZD.js} +2 -2
- package/dist/chunks/{use-slot-recipe-Bz5VPIbz.js.map → use-slot-recipe-CB5G_UZD.js.map} +1 -1
- package/dist/chunks/{v-stack-C_EMZ8cL.js → v-stack-DOm7QQkt.js} +2 -2
- package/dist/chunks/{v-stack-C_EMZ8cL.js.map → v-stack-DOm7QQkt.js.map} +1 -1
- package/dist/chunks/v-stack-wxICnH9w.js +2 -0
- package/dist/chunks/{v-stack-By2b5ZVX.js.map → v-stack-wxICnH9w.js.map} +1 -1
- package/dist/chunks/{walk-object-CwdvmBuz.js → walk-object-EkQnf0pF.js} +2 -2
- package/dist/chunks/{walk-object-CwdvmBuz.js.map → walk-object-EkQnf0pF.js.map} +1 -1
- package/dist/chunks/{walk-object-BQcbPtPs.js → walk-object-FYEyC1q9.js} +2 -2
- package/dist/chunks/{walk-object-BQcbPtPs.js.map → walk-object-FYEyC1q9.js.map} +1 -1
- package/dist/chunks/withFormControl-BHuqR52U.js +2 -0
- package/dist/chunks/{withFormControl-CUnCiP8H.js.map → withFormControl-BHuqR52U.js.map} +1 -1
- package/dist/chunks/{withFormControl-DoBnTeb9.js → withFormControl-D7wJfVjb.js} +7 -7
- package/dist/chunks/{withFormControl-DoBnTeb9.js.map → withFormControl-D7wJfVjb.js.map} +1 -1
- package/dist/chunks/{withTruncation-iFpoL9YV.js → withTruncation-B9ffIwF7.js} +3 -3
- package/dist/chunks/{withTruncation-iFpoL9YV.js.map → withTruncation-B9ffIwF7.js.map} +1 -1
- package/dist/chunks/{withTruncation-CzqmBekU.js → withTruncation-D04zq8uV.js} +2 -2
- package/dist/chunks/{withTruncation-CzqmBekU.js.map → withTruncation-D04zq8uV.js.map} +1 -1
- package/dist/chunks/{wrap-CdWJy79S.js → wrap-B06zjN2U.js} +2 -2
- package/dist/chunks/{wrap-CdWJy79S.js.map → wrap-B06zjN2U.js.map} +1 -1
- package/dist/chunks/{wrap-DwAuTaha.js → wrap-DQfXAuZ8.js} +3 -3
- package/dist/chunks/{wrap-DwAuTaha.js.map → wrap-DQfXAuZ8.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/chakra/index.cjs.map +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/Button/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/Card/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Divider/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs +1 -1
- package/dist/cjs/components/Icon/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Logo/generated/index.cjs +1 -1
- package/dist/cjs/components/Logo/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
- package/dist/cjs/components/Picture/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Swatch/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/Tag/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/hocs/index.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +21 -21
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/Button/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Card/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Divider/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/Picture/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Swatch/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/Tag/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +40 -40
- package/dist/esm/hocs/index.js +1 -1
- package/dist/esm/index.js +42 -42
- package/dist/esm/theme/index.js +1 -1
- package/package.json +2 -1
- package/dist/chunks/alert.component-CcCt-bb5.js +0 -2
- package/dist/chunks/avatar.component-LWnRY2X6.js +0 -2
- package/dist/chunks/box-DQTWVrl0.js +0 -7
- package/dist/chunks/box-DiiiZkF4.js +0 -2
- package/dist/chunks/checkbox.component-CN7VT6Kl.js +0 -2
- package/dist/chunks/factory-Djhmhla9.js +0 -17
- package/dist/chunks/h-stack-DS6_Nmps.js +0 -2
- package/dist/chunks/heading.component-CVtGEEgj.js +0 -2
- package/dist/chunks/icon-button-BoeNBxVE.js +0 -2
- package/dist/chunks/index-CsjrqSSN.js +0 -2
- package/dist/chunks/index-CsjrqSSN.js.map +0 -1
- package/dist/chunks/index-naFRmuBR.js +0 -2
- package/dist/chunks/menu.component-CVq3JuDQ.js +0 -2
- package/dist/chunks/pinInput.types-BkZoddhj.js +0 -2
- package/dist/chunks/popover.component-BU4ZYtgB.js +0 -2
- package/dist/chunks/radioGroup.component-AnXOfN3A.js +0 -2
- package/dist/chunks/select.component-CtCEglbM.js +0 -2
- package/dist/chunks/sortableList.component-Dft-FiMn.js +0 -6
- package/dist/chunks/spinner-B981BEf0.js +0 -2
- package/dist/chunks/spinner-DUSVCecp.js +0 -8
- package/dist/chunks/switch.component-Do0X7LJD.js +0 -2
- package/dist/chunks/tagBlock.component-Dj3iPVJy.js +0 -2
- package/dist/chunks/text.component-uDfPjmx6.js +0 -2
- package/dist/chunks/textInput.component-CEF55yJj.js +0 -2
- package/dist/chunks/textarea.component-BVGFuIZC.js +0 -2
- package/dist/chunks/use-locale-context-Cc4BhWV1.js +0 -22
- package/dist/chunks/use-recipe-CkP1U6f2.js +0 -2
- package/dist/chunks/use-slot-recipe-ClRnqDPf.js +0 -2
- package/dist/chunks/v-stack-By2b5ZVX.js +0 -2
- package/dist/chunks/withFormControl-CUnCiP8H.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-CITbqOLs.js"),E=require("./withFormControl-CUnCiP8H.js"),p=require("react"),g=require("./card.component-BdHsWz_5.js"),P=require("./radio.records-HAh4TB8-.js"),W=require("./text.component-uDfPjmx6.js"),F=require("./create-slot-recipe-context-CNbTdeS5.js"),k=require("./attr-BMs6szZx.js"),H=require("./empty-B5_AO6Pg.js"),M=require("./factory-Djhmhla9.js"),V=require("./use-recipe-CkP1U6f2.js"),i=require("./use-locale-context-Cc4BhWV1.js"),m=require("./index-CZ42b9rT.js"),Y=require("./buttonGroup.component-CmMPEPEN.js"),B=require("./stack-DXGLsM8c.js"),[b,G]=i.createContext({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),[O,D]=i.createContext({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[J,I]=i.createContext({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),y=p.forwardRef((e,o)=>{const[r,s]=i.createSplitProps()(e,["value","disabled","invalid"]),a=G(),d=m.mergeProps(a.getItemProps(r),s),n=a.getItemState(r);return t.jsxRuntimeExports.jsx(O,{value:n,children:t.jsxRuntimeExports.jsx(J,{value:r,children:t.jsxRuntimeExports.jsx(i.ark.label,{...d,ref:o})})})});y.displayName="RadioGroupItem";const K=e=>e.children(D()),v=p.forwardRef((e,o)=>{const r=G(),s=I(),a=m.mergeProps(r.getItemControlProps(s),e);return t.jsxRuntimeExports.jsx(i.ark.div,{...a,ref:o})});v.displayName="RadioGroupItemControl";const N=p.forwardRef((e,o)=>{const r=G(),s=I(),a=m.mergeProps(r.getItemHiddenInputProps(s),e);return t.jsxRuntimeExports.jsx(i.ark.input,{...a,ref:o})});N.displayName="RadioGroupItemHiddenInput";const w=p.forwardRef((e,o)=>{const r=G(),s=I(),a=m.mergeProps(r.getItemTextProps(s),e);return t.jsxRuntimeExports.jsx(i.ark.span,{...a,ref:o})});w.displayName="RadioGroupItemText";const q=p.forwardRef((e,o)=>{const r=G(),s=m.mergeProps(r.getLabelProps(),e);return t.jsxRuntimeExports.jsx(i.ark.label,{...s,ref:o})});q.displayName="RadioGroupLabel";const Q=e=>{const o=p.useId(),{getRootNode:r}=i.useEnvironmentContext(),{dir:s}=i.useLocaleContext(),a={id:o,dir:s,getRootNode:r,...e},d=i.useMachine(P.machine,a);return P.connect(d,i.normalizeProps)},S=p.forwardRef((e,o)=>{const[r,s]=i.createSplitProps()(e,["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"]),a=Q(r),d=m.mergeProps(a.getRootProps(),s);return t.jsxRuntimeExports.jsx(b,{value:a,children:t.jsxRuntimeExports.jsx(i.ark.div,{...d,ref:o})})});S.displayName="RadioGroupRoot";const _=p.forwardRef((e,o)=>{const[{value:r},s]=i.createSplitProps()(e,["value"]),a=m.mergeProps(r.getRootProps(),s);return t.jsxRuntimeExports.jsx(b,{value:r,children:t.jsxRuntimeExports.jsx(i.ark.div,{...a,ref:o})})});_.displayName="RadioGroupRootProvider";const U=p.forwardRef(function(o,r){const s=V.useRecipe({key:"radiomark",recipe:o.recipe}),[a,d]=s.splitVariantProps(o),{checked:n,disabled:c,unstyled:x,children:l,...R}=d,j=x?H.EMPTY_STYLES:s(a),h={ref:r,"data-checked":k.dataAttr(n),"data-disabled":k.dataAttr(c),...R,css:[j,o.css]};return t.jsxRuntimeExports.jsx(M.chakra.span,{...h,children:n&&t.jsxRuntimeExports.jsx("span",{className:"dot"})})}),{withProvider:T,withContext:f,useStyles:X}=F.createSlotRecipeContext({key:"radioGroup"});T(_,"root",{forwardAsChild:!0});const Z=T(S,"root",{forwardAsChild:!0});f(q,"label",{forwardAsChild:!0});const z=f(y,"item",{forwardAsChild:!0}),ee=f(w,"itemText",{forwardAsChild:!0});f(v,"itemControl",{forwardAsChild:!0});const oe=p.forwardRef(function(o,r){const s=X();return t.jsxRuntimeExports.jsx(K,{children:a=>t.jsxRuntimeExports.jsx(v,{asChild:!0,children:t.jsxRuntimeExports.jsx(U,{ref:r,unstyled:!0,...o,checked:a.checked,disabled:a.disabled,css:[s.itemControl,o.css]})})})}),te=N,re=E.withFormControl(({children:e,checked:o=!1,disabled:r=!1,invalid:s=!1,onContrast:a=!1,radioRef:d,size:n="md",withCard:c=!1,...x})=>{const l=c?R=>{const j=(P.RadioSizeMap[n]+P.RadioTextSpacing[n]+g.CardPaddingMap[n])*4;return t.jsxRuntimeExports.jsx(g.Card,{className:"Radio__Card","data-testid":"kibble-radio-card",...!r&&{interactive:!0,invalid:s,active:!!o},onContrast:a,size:n,fullWidth:!0,display:"flex",...typeof e=="string"&&{alignItems:"center"},width:"inherit",pr:`${j}px`,children:R.children})}:p.Fragment;return t.jsxRuntimeExports.jsx(z,{className:"Radio","data-testid":"kibble-radio",invalid:s,disabled:r,ref:d,...x,children:t.jsxRuntimeExports.jsxs(l,{children:[t.jsxRuntimeExports.jsx(te,{className:"Radio__Input","data-testid":"kibble-radio-input"}),t.jsxRuntimeExports.jsx(oe,{className:"Radio__Indicator","data-testid":"kibble-radio-indicator"}),e&&t.jsxRuntimeExports.jsx(ee,{className:"Radio__Text","data-testid":"kibble-radio-label",...c&&typeof e!="string"&&{mt:"-3px"},children:typeof e=="string"?t.jsxRuntimeExports.jsx(W.WrappedText,{size:n,children:e}):e})]})})}),A=p.forwardRef((e,o)=>t.jsxRuntimeExports.jsx(re,{radioRef:o,...e}));A.displayName="Radio";const $=({radios:e,defaultValue:o,direction:r="column",disabled:s,invalid:a,onContrast:d,onChange:n,size:c="md",radioType:x="default",value:l,gap:R=2,...j})=>{const h=d?"onContrast":"default";return t.jsxRuntimeExports.jsxs(Z,{className:"RadioGroup","data-testid":"kibble-radio-group",disabled:s,defaultValue:o,value:l,onValueChange:({value:u})=>n?.(u),size:c,variant:h,...j,children:[x==="default"&&t.jsxRuntimeExports.jsx(B.Stack,{gap:R,direction:r,children:e.map((u,C)=>t.jsxRuntimeExports.jsx(A,{invalid:a,disabled:s,checked:o===u.value||l===u.value,size:c,...u},`radio-${C}`))}),x==="buttons"&&t.jsxRuntimeExports.jsx(Y.ButtonGroup,{onContrast:d,variant:"secondarySubtle",size:c,buttons:e.map((u,C)=>{const L=o===u.value||l===u.value;return{key:`button-radio-${C}`,children:u.children,active:L,disabled:s,onClick:()=>n?.(u.value)}})})]})};$.displayName="CheckboxGroup";const se=E.withFormControl($);exports.WrappedRadioGroup=se;
|
|
2
|
-
//# sourceMappingURL=radioGroup.component-AnXOfN3A.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-CITbqOLs.js"),l=require("react"),M=require("./withFormControl-CUnCiP8H.js"),B=require("./icon.component-RnXzLy9Z.js"),J=require("./button.component-DrvTYE-F.js"),f=require("./text.component-uDfPjmx6.js"),K=require("./spinner.component-DPS-cIcA.js"),c=require("./use-locale-context-Cc4BhWV1.js"),Q=require("./create-slot-recipe-context-CNbTdeS5.js"),R=require("./icons-DsfswYKK.js"),C=require("./use-field-context-BPsEZCN4.js"),p=require("./index-CZ42b9rT.js"),S=require("./index-Cl4DH-b8.js"),h=require("./flex-CoWH4MWg.js"),U=t=>new S.ListCollection(t),[v,d]=c.createContext({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),E=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getClearTriggerProps(),t);return e.jsxRuntimeExports.jsx(c.ark.button,{...s,ref:n})});E.displayName="SelectClearTrigger";const I=l.forwardRef((t,n)=>{const r=d(),s=c.usePresenceContext(),o=p.mergeProps(r.getContentProps(),s.getPresenceProps(),t);return s.unmounted?null:e.jsxRuntimeExports.jsx(c.ark.div,{...o,ref:c.composeRefs(s.ref,n)})});I.displayName="SelectContent";const w=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getControlProps(),t);return e.jsxRuntimeExports.jsx(c.ark.div,{...s,ref:n})});w.displayName="SelectControl";const b=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getHiddenSelectProps(),t),o=r.value.length===0,i=C.useFieldContext();return e.jsxRuntimeExports.jsxs(c.ark.select,{"aria-describedby":i?.ariaDescribedby,...s,ref:n,children:[o&&e.jsxRuntimeExports.jsx("option",{value:""}),r.collection.items.map((a,x)=>e.jsxRuntimeExports.jsx("option",{value:r.collection.getItemValue(a)??"",disabled:r.collection.getItemDisabled(a),children:r.collection.stringifyItem(a)},x))]})});b.displayName="SelectHiddenSelect";const y=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getIndicatorProps(),t);return e.jsxRuntimeExports.jsx(c.ark.div,{...s,ref:n})});y.displayName="SelectIndicator";const[X,ge]=c.createContext({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[Y,N]=c.createContext({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),T=l.forwardRef((t,n)=>{const[r,s]=c.createSplitProps()(t,["item","persistFocus"]),o=d(),i=p.mergeProps(o.getItemProps(r),s),a=o.getItemState(r);return e.jsxRuntimeExports.jsx(Y,{value:r,children:e.jsxRuntimeExports.jsx(X,{value:a,children:e.jsxRuntimeExports.jsx(c.ark.div,{...i,ref:n})})})});T.displayName="SelectItem";const[Z,z]=c.createContext({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),k=l.forwardRef((t,n)=>{const r=l.useId(),[s,o]=c.createSplitProps()(t,["id"]),i={id:r,...s},a=d(),x=p.mergeProps(a.getItemGroupProps(i),o);return e.jsxRuntimeExports.jsx(Z,{value:i,children:e.jsxRuntimeExports.jsx(c.ark.div,{...x,ref:n})})});k.displayName="SelectItemGroup";const G=l.forwardRef((t,n)=>{const r=d(),s=z(),o=p.mergeProps(r.getItemGroupLabelProps({htmlFor:s.id}),t);return e.jsxRuntimeExports.jsx(c.ark.div,{...o,ref:n})});G.displayName="SelectItemGroupLabel";const q=l.forwardRef((t,n)=>{const r=d(),s=N(),o=p.mergeProps(r.getItemIndicatorProps(s),t);return e.jsxRuntimeExports.jsx(c.ark.div,{...o,ref:n})});q.displayName="SelectItemIndicator";const A=l.forwardRef((t,n)=>{const r=d(),s=N(),o=p.mergeProps(r.getItemTextProps(s),t);return e.jsxRuntimeExports.jsx(c.ark.span,{...o,ref:n})});A.displayName="SelectItemText";const F=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getLabelProps(),t);return e.jsxRuntimeExports.jsx(c.ark.label,{...s,ref:n})});F.displayName="SelectLabel";const V=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getPositionerProps(),t);return c.usePresenceContext().unmounted?null:e.jsxRuntimeExports.jsx(c.ark.div,{...s,ref:n})});V.displayName="SelectPositioner";const ee=t=>{const n=l.useId(),{dir:r}=c.useLocaleContext(),{getRootNode:s}=c.useEnvironmentContext(),o=C.useFieldContext(),i={id:n,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:r,getRootNode:s,...t},a=c.useMachine(S.machine,i);return S.connect(a,c.normalizeProps)},te=(t,n)=>{const[r,s]=c.splitPresenceProps(t),[o,i]=c.createSplitProps()(s,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),a=ee(o),x=c.usePresence(p.mergeProps({present:a.open},r)),j=p.mergeProps(a.getRootProps(),i);return e.jsxRuntimeExports.jsx(v,{value:a,children:e.jsxRuntimeExports.jsx(c.PresenceProvider,{value:x,children:e.jsxRuntimeExports.jsx(c.ark.div,{...j,ref:n})})})},re=l.forwardRef(te),se=(t,n)=>{const[r,s]=c.splitPresenceProps(t),[{value:o},i]=c.createSplitProps()(s,["value"]),a=c.usePresence(p.mergeProps({present:o.open},r)),x=p.mergeProps(o.getRootProps(),i);return e.jsxRuntimeExports.jsx(v,{value:o,children:e.jsxRuntimeExports.jsx(c.PresenceProvider,{value:a,children:e.jsxRuntimeExports.jsx(c.ark.div,{...x,ref:n})})})},oe=l.forwardRef(se),$=l.forwardRef((t,n)=>{const r=d(),s=p.mergeProps(r.getTriggerProps(),t);return e.jsxRuntimeExports.jsx(c.ark.button,{...s,ref:n})});$.displayName="SelectTrigger";const L=l.forwardRef((t,n)=>{const{children:r,placeholder:s,...o}=t,i=d(),a=p.mergeProps(i.getValueTextProps(),o);return e.jsxRuntimeExports.jsx(c.ark.span,{...a,ref:n,children:r||i.valueAsString||s})});L.displayName="SelectValueText";const{withProvider:O,withContext:u}=Q.createSlotRecipeContext({key:"select"});O(oe,"root",{forwardAsChild:!0});const ne=O(re,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),ce=u($,"trigger",{forwardAsChild:!0}),le=u(V,"positioner",{forwardAsChild:!0}),ie=u(I,"content",{forwardAsChild:!0}),ae=u(L,"valueText",{forwardAsChild:!0}),pe=u(E,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(R.CloseIcon,{boxSize:"1em"})}});u(k,"itemGroup",{forwardAsChild:!0});u(G,"itemGroupLabel",{forwardAsChild:!0});const de=u(T,"item",{forwardAsChild:!0});u(A,"itemText",{forwardAsChild:!0});u(q,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(R.CheckIcon,{})}});const ue=u("div","indicatorGroup");u(y,"indicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(R.ChevronDownIcon,{})}});const xe=u(w,"control",{forwardAsChild:!0});u(F,"label",{forwardAsChild:!0});const me=b,H=({item:t,onContrast:n,shouldTruncateText:r,size:s})=>e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[t.leftElement,typeof t.label=="string"?e.jsxRuntimeExports.jsx(f.WrappedText,{size:s,truncated:r,variant:t.variant||(n?"onContrast":"default"),children:t.label}):t.label]}),Pe=({placeholder:t="",placeholderElement:n,...r})=>{const s=d(),o=l.useMemo(()=>s.selectedItems[0],[s]);return e.jsxRuntimeExports.jsxs(ce,{children:[!o&&n,e.jsxRuntimeExports.jsx(ae,{placeholder:t,children:o&&e.jsxRuntimeExports.jsx(H,{item:o,...r})})]})},je=M.withFormControl(({clearable:t,placeholderElement:n,emptyPlaceholder:r="No options available",loading:s,onContrast:o,options:i,placeholder:a="",selectRef:x,shouldTruncateText:j,size:P="md",...D})=>{const W=o?"onContrast":"default",g=l.useMemo(()=>U({items:i??[],itemToString:m=>typeof m.label=="string"?m.label:m.valueText||"",itemToValue:m=>m.value}),[i]);return e.jsxRuntimeExports.jsxs(ne,{className:"Select","data-testid":"kibble-select",collection:g,size:P,variant:W,...D,children:[e.jsxRuntimeExports.jsx(me,{ref:x}),e.jsxRuntimeExports.jsxs(xe,{children:[e.jsxRuntimeExports.jsx(Pe,{placeholder:a,placeholderElement:n,onContrast:!!o,shouldTruncateText:!!j,size:P}),e.jsxRuntimeExports.jsxs(ue,{children:[t&&e.jsxRuntimeExports.jsx(pe,{asChild:!0,children:e.jsxRuntimeExports.jsx(J.Button,{iconName:"close",onContrast:o,size:P==="lg"?"sm":"xs",variant:"ghostNeutral"})}),e.jsxRuntimeExports.jsx(B.Icon,{name:"chevronDown",size:P,variant:o?"onContrast":"default"})]})]}),e.jsxRuntimeExports.jsx(c.Portal,{children:e.jsxRuntimeExports.jsx(le,{children:e.jsxRuntimeExports.jsx(ie,{children:s?e.jsxRuntimeExports.jsx(h.Flex,{w:"100%",justifyContent:"center",py:3,children:e.jsxRuntimeExports.jsx(K.Spinner,{variant:o?"brandOnContrast":"brand",size:P})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:g.items.length?g.items.map(m=>e.jsxRuntimeExports.jsx(de,{item:m,children:e.jsxRuntimeExports.jsx(H,{item:m,onContrast:!!o,shouldTruncateText:!!j,size:P})},m.value)):e.jsxRuntimeExports.jsx(h.Flex,{w:"100%",justifyContent:"center",py:3,children:e.jsxRuntimeExports.jsx(f.WrappedText,{size:"sm",variant:o?"subtleOnContrast":"subtle",children:r})})})})})})]})}),_=l.forwardRef((t,n)=>e.jsxRuntimeExports.jsx(je,{selectRef:n,...t}));_.displayName="Select";exports.WrappedSelect=_;
|
|
2
|
-
//# sourceMappingURL=select.component-CtCEglbM.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";const U=require("./jsx-runtime-CITbqOLs.js"),s=require("react"),Ne=require("./use-locale-context-Cc4BhWV1.js"),Tn=require("./button.component-DrvTYE-F.js"),Ln=require("./text.component-uDfPjmx6.js"),kn=require("./flex-CoWH4MWg.js"),Jt=require("./list-AkEh0-z3.js");function jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function mt(e){return"nodeType"in e}function j(e){var t,n;return e?xe(e)?e:mt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function yt(e){const{Document:t}=j(e);return e instanceof t}function Be(e){return xe(e)?!1:e instanceof j(e).HTMLElement}function Gt(e){return e instanceof j(e).SVGElement}function we(e){return e?xe(e)?e.document:mt(e)?yt(e)?e:Be(e)||Gt(e)?e.ownerDocument:document:document:document}const H=nt?s.useLayoutEffect:s.useEffect;function rt(e){const t=s.useRef(e);return H(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Pn(){const e=s.useRef(null),t=s.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=s.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function je(e,t){t===void 0&&(t=[e]);const n=s.useRef(e);return H(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=s.useRef();return s.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Je(e){const t=rt(e),n=s.useRef(null),r=s.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Ge(e){const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current}let dt={};function Xe(e,t){return s.useMemo(()=>{if(t)return t;const n=dt[e]==null?0:dt[e]+1;return dt[e]=n,e+"-"+n},[e,t])}function Qt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const l=Object.entries(a);for(const[c,u]of l){const f=i[c];f!=null&&(i[c]=f+e*u)}return i},{...t})}}const ye=Qt(1),Pe=Qt(-1);function zn(e){return"clientX"in e&&"clientY"in e}function ot(e){if(!e)return!1;const{KeyboardEvent:t}=j(e.target);return t&&e instanceof t}function Bn(e){if(!e)return!1;const{TouchEvent:t}=j(e.target);return t&&e instanceof t}function Qe(e){if(Bn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return zn(e)?{x:e.clientX,y:e.clientY}:null}const de=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[de.Translate.toString(e),de.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),jt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Fn(e){return e.matches(jt)?e:e.querySelector(jt)}const Xn={display:"none"};function $n(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:Xn},n)}function Yn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return s.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Kn(){const[e,t]=s.useState("");return{announce:s.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Zt=s.createContext(null);function Un(e){const t=s.useContext(Zt);s.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Wn(){const[e]=s.useState(()=>new Set),t=s.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[s.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var l;return(l=a[o])==null?void 0:l.call(a,i)})},[e]),t]}const qn={draggable:`
|
|
2
|
-
To pick up a draggable item, press the space bar.
|
|
3
|
-
While dragging, use the arrow keys to move the item.
|
|
4
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
5
|
-
`},Hn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Vn(e){let{announcements:t=Hn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=qn}=e;const{announce:i,announcement:a}=Kn(),l=Xe("DndLiveRegion"),[c,u]=s.useState(!1);if(s.useEffect(()=>{u(!0)},[]),Un(s.useMemo(()=>({onDragStart(d){let{active:h}=d;i(t.onDragStart({active:h}))},onDragMove(d){let{active:h,over:g}=d;t.onDragMove&&i(t.onDragMove({active:h,over:g}))},onDragOver(d){let{active:h,over:g}=d;i(t.onDragOver({active:h,over:g}))},onDragEnd(d){let{active:h,over:g}=d;i(t.onDragEnd({active:h,over:g}))},onDragCancel(d){let{active:h,over:g}=d;i(t.onDragCancel({active:h,over:g}))}}),[i,t])),!c)return null;const f=s.createElement(s.Fragment,null,s.createElement($n,{id:r,value:o.draggable}),s.createElement(Yn,{id:l,announcement:a}));return n?Ne.reactDomExports.createPortal(f,n):f}var N;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(N||(N={}));function Ze(){}function Pt(e,t){return s.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function _n(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const V=Object.freeze({x:0,y:0});function Jn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Gn(e,t){const n=Qe(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Qn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Zn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function zt(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function en(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const er=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=zt(t),i=[];for(const a of r){const{id:l}=a,c=n.get(l);if(c){const u=zt(c),f=o.reduce((h,g,w)=>h+Jn(u[w],g),0),d=Number((f/4).toFixed(4));i.push({id:l,data:{droppableContainer:a,value:d}})}}return i.sort(Qn)};function tr(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const c=t.width*t.height,u=e.width*e.height,f=a*l,d=f/(c+u-f);return Number(d.toFixed(4))}return 0}const nr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,l=n.get(a);if(l){const c=tr(l,t);c>0&&o.push({id:a,data:{droppableContainer:i,value:c}})}}return o.sort(Zn)};function rr(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function tn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:V}function or(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>({...a,top:a.top+e*l.y,bottom:a.bottom+e*l.y,left:a.left+e*l.x,right:a.right+e*l.x}),{...n})}}const ir=or(1);function nn(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function sr(e,t,n){const r=nn(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),u=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c}}const ar={ignoreTransform:!1};function De(e,t){t===void 0&&(t=ar);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=j(e).getComputedStyle(e);u&&(n=sr(n,u,f))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function Bt(e){return De(e,{ignoreTransform:!0})}function lr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function cr(e,t){return t===void 0&&(t=j(e).getComputedStyle(e)),t.position==="fixed"}function ur(e,t){t===void 0&&(t=j(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function it(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(yt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Be(o)||Gt(o)||n.includes(o))return n;const i=j(e).getComputedStyle(o);return o!==e&&ur(o,i)&&n.push(o),cr(o,i)?n:r(o.parentNode)}return e?r(e):n}function rn(e){const[t]=it(e,1);return t??null}function ft(e){return!nt||!e?null:xe(e)?e:mt(e)?yt(e)||e===we(e).scrollingElement?window:Be(e)?e:null:null}function on(e){return xe(e)?e.scrollX:e.scrollLeft}function sn(e){return xe(e)?e.scrollY:e.scrollTop}function vt(e){return{x:on(e),y:sn(e)}}var T;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(T||(T={}));function an(e){return!nt||!e?!1:e===document.scrollingElement}function ln(e){const t={x:0,y:0},n=an(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:l,maxScroll:r,minScroll:t}}const dr={x:.2,y:.2};function fr(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=dr);const{isTop:u,isBottom:f,isLeft:d,isRight:h}=ln(e),g={x:0,y:0},w={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+v.height?(g.y=T.Backward,w.y=r*Math.abs((t.top+v.height-i)/v.height)):!f&&c>=t.bottom-v.height&&(g.y=T.Forward,w.y=r*Math.abs((t.bottom-v.height-c)/v.height)),!h&&l>=t.right-v.width?(g.x=T.Forward,w.x=r*Math.abs((t.right-v.width-l)/v.width)):!d&&a<=t.left+v.width&&(g.x=T.Backward,w.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:g,speed:w}}function gr(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function cn(e){return e.reduce((t,n)=>ye(t,vt(n)),V)}function hr(e){return e.reduce((t,n)=>t+on(n),0)}function vr(e){return e.reduce((t,n)=>t+sn(n),0)}function un(e,t){if(t===void 0&&(t=De),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);rn(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const pr=[["x",["left","right"],hr],["y",["top","bottom"],vr]];class xt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=it(n),o=cn(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of pr)for(const c of a)Object.defineProperty(this,c,{get:()=>{const u=l(r),f=o[i]-u;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Te{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function br(e){const{EventTarget:t}=j(e);return e instanceof t?e:we(e)}function gt(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var K;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(K||(K={}));function Ft(e){e.preventDefault()}function mr(e){e.stopPropagation()}var C;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(C||(C={}));const dn={start:[C.Space,C.Enter],cancel:[C.Esc],end:[C.Space,C.Enter,C.Tab]},yr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case C.Right:return{...n,x:n.x+25};case C.Left:return{...n,x:n.x-25};case C.Down:return{...n,y:n.y+25};case C.Up:return{...n,y:n.y-25}}};class wt{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Te(we(n)),this.windowListeners=new Te(j(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(K.Resize,this.handleCancel),this.windowListeners.add(K.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(K.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&un(r),n(V)}handleKeyDown(t){if(ot(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=dn,coordinateGetter:a=yr,scrollBehavior:l="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:V;this.referenceCoordinates||(this.referenceCoordinates=f);const d=a(t,{active:n,context:r.current,currentCoordinates:f});if(d){const h=Pe(d,f),g={x:0,y:0},{scrollableAncestors:w}=r.current;for(const v of w){const p=t.code,{isTop:m,isRight:y,isLeft:b,isBottom:S,maxScroll:R,minScroll:E}=ln(v),x=gr(v),D={x:Math.min(p===C.Right?x.right-x.width/2:x.right,Math.max(p===C.Right?x.left:x.left+x.width/2,d.x)),y:Math.min(p===C.Down?x.bottom-x.height/2:x.bottom,Math.max(p===C.Down?x.top:x.top+x.height/2,d.y))},M=p===C.Right&&!y||p===C.Left&&!b,O=p===C.Down&&!S||p===C.Up&&!m;if(M&&D.x!==d.x){const I=v.scrollLeft+h.x,W=p===C.Right&&I<=R.x||p===C.Left&&I>=E.x;if(W&&!h.y){v.scrollTo({left:I,behavior:l});return}W?g.x=v.scrollLeft-I:g.x=p===C.Right?v.scrollLeft-R.x:v.scrollLeft-E.x,g.x&&v.scrollBy({left:-g.x,behavior:l});break}else if(O&&D.y!==d.y){const I=v.scrollTop+h.y,W=p===C.Down&&I<=R.y||p===C.Up&&I>=E.y;if(W&&!h.x){v.scrollTo({top:I,behavior:l});return}W?g.y=v.scrollTop-I:g.y=p===C.Down?v.scrollTop-R.y:v.scrollTop-E.y,g.y&&v.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,ye(Pe(d,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}wt.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=dn,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const l=i.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Xt(e){return!!(e&&"distance"in e)}function $t(e){return!!(e&&"delay"in e)}class Dt{constructor(t,n,r){var o;r===void 0&&(r=br(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=we(a),this.documentListeners=new Te(this.document),this.listeners=new Te(r),this.windowListeners=new Te(j(a)),this.initialCoordinates=(o=Qe(i))!=null?o:V,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(K.Resize,this.handleCancel),this.windowListeners.add(K.DragStart,Ft),this.windowListeners.add(K.VisibilityChange,this.handleCancel),this.windowListeners.add(K.ContextMenu,Ft),this.documentListeners.add(K.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if($t(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Xt(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(K.Click,mr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(K.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!o)return;const c=(n=Qe(t))!=null?n:V,u=Pe(o,c);if(!r&&l){if(Xt(l)){if(l.tolerance!=null&>(u,l.tolerance))return this.handleCancel();if(gt(u,l.distance))return this.handleStart()}if($t(l)&>(u,l.tolerance))return this.handleCancel();this.handlePending(l,u);return}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===C.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const xr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ct extends Dt{constructor(t){const{event:n}=t,r=we(n.target);super(t,xr,r)}}Ct.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const wr={move:{name:"mousemove"},end:{name:"mouseup"}};var pt;(function(e){e[e.RightClick=2]="RightClick"})(pt||(pt={}));class Dr extends Dt{constructor(t){super(t,wr,we(t.event.target))}}Dr.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===pt.RightClick?!1:(r?.({event:n}),!0)}}];const ht={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Cr extends Dt{constructor(t){super(t,ht)}static setup(){return window.addEventListener(ht.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ht.move.name,t)};function t(){}}}Cr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var Le;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Le||(Le={}));var et;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(et||(et={}));function Sr(e){let{acceleration:t,activator:n=Le.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:l=et.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:h}=e;const g=Er({delta:d,disabled:!i}),[w,v]=Pn(),p=s.useRef({x:0,y:0}),m=s.useRef({x:0,y:0}),y=s.useMemo(()=>{switch(n){case Le.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Le.DraggableRect:return o}},[n,o,c]),b=s.useRef(null),S=s.useCallback(()=>{const E=b.current;if(!E)return;const x=p.current.x*m.current.x,D=p.current.y*m.current.y;E.scrollBy(x,D)},[]),R=s.useMemo(()=>l===et.TreeOrder?[...u].reverse():u,[l,u]);s.useEffect(()=>{if(!i||!u.length||!y){v();return}for(const E of R){if(r?.(E)===!1)continue;const x=u.indexOf(E),D=f[x];if(!D)continue;const{direction:M,speed:O}=fr(E,D,y,t,h);for(const I of["x","y"])g[I][M[I]]||(O[I]=0,M[I]=0);if(O.x>0||O.y>0){v(),b.current=E,w(S,a),p.current=O,m.current=M;return}}p.current={x:0,y:0},m.current={x:0,y:0},v()},[t,S,r,v,i,a,JSON.stringify(y),JSON.stringify(g),w,u,R,f,JSON.stringify(h)])}const Rr={x:{[T.Backward]:!1,[T.Forward]:!1},y:{[T.Backward]:!1,[T.Forward]:!1}};function Er(e){let{delta:t,disabled:n}=e;const r=Ge(t);return Fe(o=>{if(n||!r||!o)return Rr;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[T.Backward]:o.x[T.Backward]||i.x===-1,[T.Forward]:o.x[T.Forward]||i.x===1},y:{[T.Backward]:o.y[T.Backward]||i.y===-1,[T.Forward]:o.y[T.Forward]||i.y===1}}},[n,t,r])}function Ar(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fe(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Ir(e,t){return s.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var ze;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ze||(ze={}));var bt;(function(e){e.Optimized="optimized"})(bt||(bt={}));const Yt=new Map;function Mr(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=s.useState(null),{frequency:l,measure:c,strategy:u}=o,f=s.useRef(e),d=p(),h=je(d),g=s.useCallback(function(m){m===void 0&&(m=[]),!h.current&&a(y=>y===null?m:y.concat(m.filter(b=>!y.includes(b))))},[h]),w=s.useRef(null),v=Fe(m=>{if(d&&!n)return Yt;if(!m||m===Yt||f.current!==e||i!=null){const y=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){y.set(b.id,b.rect.current);continue}const S=b.node.current,R=S?new xt(c(S),S):null;b.rect.current=R,R&&y.set(b.id,R)}return y}return m},[e,i,n,d,c]);return s.useEffect(()=>{f.current=e},[e]),s.useEffect(()=>{d||g()},[n,d]),s.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),s.useEffect(()=>{d||typeof l!="number"||w.current!==null||(w.current=setTimeout(()=>{g(),w.current=null},l))},[l,d,g,...r]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:i!=null};function p(){switch(u){case ze.Always:return!1;case ze.BeforeDragging:return n;default:return!n}}}function St(e,t){return Fe(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Or(e,t){return St(e,t)}function Nr(e){let{callback:t,disabled:n}=e;const r=rt(t),o=s.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return s.useEffect(()=>()=>o?.disconnect(),[o]),o}function st(e){let{callback:t,disabled:n}=e;const r=rt(t),o=s.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return s.useEffect(()=>()=>o?.disconnect(),[o]),o}function Tr(e){return new xt(De(e),e)}function Kt(e,t,n){t===void 0&&(t=Tr);const[r,o]=s.useState(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const f=t(e);return JSON.stringify(c)===JSON.stringify(f)?c:f})}const a=Nr({callback(c){if(e)for(const u of c){const{type:f,target:d}=u;if(f==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),l=st({callback:i});return H(()=>{i(),e?(l?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),a?.disconnect())},[e]),r}function Lr(e){const t=St(e);return tn(e,t)}const Ut=[];function kr(e){const t=s.useRef(e),n=Fe(r=>e?r&&r!==Ut&&e&&t.current&&e.parentNode===t.current.parentNode?r:it(e):Ut,[e]);return s.useEffect(()=>{t.current=e},[e]),n}function jr(e){const[t,n]=s.useState(null),r=s.useRef(e),o=s.useCallback(i=>{const a=ft(i.target);a&&n(l=>l?(l.set(a,vt(a)),new Map(l)):null)},[]);return s.useEffect(()=>{const i=r.current;if(e!==i){a(i);const l=e.map(c=>{const u=ft(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,vt(u)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=e}return()=>{a(e),a(i)};function a(l){l.forEach(c=>{const u=ft(c);u?.removeEventListener("scroll",o)})}},[o,e]),s.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>ye(i,a),V):cn(e):V,[e,t])}function Wt(e,t){t===void 0&&(t=[]);const n=s.useRef(null);return s.useEffect(()=>{n.current=null},t),s.useEffect(()=>{const r=e!==V;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Pe(e,n.current):V}function Pr(e){s.useEffect(()=>{if(!nt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function zr(e,t){return s.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function fn(e){return s.useMemo(()=>e?lr(e):null,[e])}const qt=[];function Br(e,t){t===void 0&&(t=De);const[n]=e,r=fn(n?j(n):null),[o,i]=s.useState(qt);function a(){i(()=>e.length?e.map(c=>an(c)?r:new xt(t(c),c)):qt)}const l=st({callback:a});return H(()=>{l?.disconnect(),a(),e.forEach(c=>l?.observe(c))},[e]),o}function gn(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Be(t)?t:e}function Fr(e){let{measure:t}=e;const[n,r]=s.useState(null),o=s.useCallback(u=>{for(const{target:f}of u)if(Be(f)){r(d=>{const h=t(f);return d?{...d,width:h.width,height:h.height}:h});break}},[t]),i=st({callback:o}),a=s.useCallback(u=>{const f=gn(u);i?.disconnect(),f&&i?.observe(f),r(f?t(f):null)},[t,i]),[l,c]=Je(a);return s.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const Xr=[{sensor:Ct,options:{}},{sensor:wt,options:{}}],$r={current:{}},_e={draggable:{measure:Bt},droppable:{measure:Bt,strategy:ze.WhileDragging,frequency:bt.Optimized},dragOverlay:{measure:De}};class ke extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Yr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ke,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ze},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_e,measureDroppableContainers:Ze,windowRect:null,measuringScheduled:!1},hn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ze,draggableNodes:new Map,over:null,measureDroppableContainers:Ze},$e=s.createContext(hn),vn=s.createContext(Yr);function Kr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ke}}}function Ur(e,t){switch(t.type){case N.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case N.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case N.DragEnd:case N.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case N.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ke(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case N.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new ke(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case N.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new ke(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Wr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=s.useContext($e),i=Ge(r),a=Ge(n?.id);return s.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!ot(i)||document.activeElement===i.target)return;const l=o.get(a);if(!l)return;const{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[c.current,u.current]){if(!f)continue;const d=Fn(f);if(d){d.focus();break}}})}},[r,t,o,a,i]),null}function pn(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function qr(e){return s.useMemo(()=>({draggable:{..._e.draggable,...e?.draggable},droppable:{..._e.droppable,...e?.droppable},dragOverlay:{..._e.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Hr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=s.useRef(!1),{x:a,y:l}=typeof o=="boolean"?{x:o,y:o}:o;H(()=>{if(!a&&!l||!t){i.current=!1;return}if(i.current||!r)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const f=n(u),d=tn(f,r);if(a||(d.x=0),l||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const h=rn(u);h&&h.scrollBy({top:d.y,left:d.x})}},[t,a,l,r,n])}const at=s.createContext({...V,scaleX:1,scaleY:1});var ue;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ue||(ue={}));const Vr=s.memo(function(t){var n,r,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:u,sensors:f=Xr,collisionDetection:d=nr,measuring:h,modifiers:g,...w}=t;const v=s.useReducer(Ur,void 0,Kr),[p,m]=v,[y,b]=Wn(),[S,R]=s.useState(ue.Uninitialized),E=S===ue.Initialized,{draggable:{active:x,nodes:D,translate:M},droppable:{containers:O}}=p,I=x!=null?D.get(x):null,W=s.useRef({initial:null,translated:null}),q=s.useMemo(()=>{var k;return x!=null?{id:x,data:(k=I?.data)!=null?k:$r,rect:W}:null},[x,I]),_=s.useRef(null),[Ce,Ye]=s.useState(null),[z,Ke]=s.useState(null),Z=je(w,Object.values(w)),Se=Xe("DndDescribedBy",a),Ue=s.useMemo(()=>O.getEnabled(),[O]),P=qr(h),{droppableRects:ee,measureDroppableContainers:fe,measuringScheduled:Re}=Mr(Ue,{dragging:E,dependencies:[M.x,M.y],config:P.droppable}),$=Ar(D,x),We=s.useMemo(()=>z?Qe(z):null,[z]),oe=Nn(),te=Or($,P.draggable.measure);Hr({activeNode:x!=null?D.get(x):null,config:oe.layoutShiftCompensation,initialRect:te,measure:P.draggable.measure});const A=Kt($,P.draggable.measure,te),Ee=Kt($?$.parentElement:null),J=s.useRef({activatorEvent:null,active:null,activeNode:$,collisionRect:null,collisions:null,droppableRects:ee,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=O.getNodeFor((n=J.current.over)==null?void 0:n.id),ne=Fr({measure:P.dragOverlay.measure}),he=(r=ne.nodeRef.current)!=null?r:$,ve=E?(o=ne.rect)!=null?o:A:null,At=!!(ne.nodeRef.current&&ne.rect),It=Lr(At?null:A),lt=fn(he?j(he):null),ie=kr(E?ge??$:null),qe=Br(ie),He=pn(g,{transform:{x:M.x-It.x,y:M.y-It.y,scaleX:1,scaleY:1},activatorEvent:z,active:q,activeNodeRect:A,containerNodeRect:Ee,draggingNodeRect:ve,over:J.current.over,overlayNodeRect:ne.rect,scrollableAncestors:ie,scrollableAncestorRects:qe,windowRect:lt}),Mt=We?ye(We,M):null,Ot=jr(ie),Sn=Wt(Ot),Rn=Wt(Ot,[A]),pe=ye(He,Sn),be=ve?ir(ve,He):null,Ae=q&&be?d({active:q,collisionRect:be,droppableRects:ee,droppableContainers:Ue,pointerCoordinates:Mt}):null,Nt=en(Ae,"id"),[se,Tt]=s.useState(null),En=At?He:ye(He,Rn),An=rr(En,(i=se?.rect)!=null?i:null,A),ct=s.useRef(null),Lt=s.useCallback((k,B)=>{let{sensor:F,options:ae}=B;if(_.current==null)return;const Y=D.get(_.current);if(!Y)return;const X=k.nativeEvent,G=new F({active:_.current,activeNode:Y,event:X,options:ae,context:J,onAbort(L){if(!D.get(L))return;const{onDragAbort:Q}=Z.current,re={id:L};Q?.(re),y({type:"onDragAbort",event:re})},onPending(L,le,Q,re){if(!D.get(L))return;const{onDragPending:Me}=Z.current,ce={id:L,constraint:le,initialCoordinates:Q,offset:re};Me?.(ce),y({type:"onDragPending",event:ce})},onStart(L){const le=_.current;if(le==null)return;const Q=D.get(le);if(!Q)return;const{onDragStart:re}=Z.current,Ie={activatorEvent:X,active:{id:le,data:Q.data,rect:W}};Ne.reactDomExports.unstable_batchedUpdates(()=>{re?.(Ie),R(ue.Initializing),m({type:N.DragStart,initialCoordinates:L,active:le}),y({type:"onDragStart",event:Ie}),Ye(ct.current),Ke(X)})},onMove(L){m({type:N.DragMove,coordinates:L})},onEnd:me(N.DragEnd),onCancel:me(N.DragCancel)});ct.current=G;function me(L){return async function(){const{active:Q,collisions:re,over:Ie,scrollAdjustedTranslate:Me}=J.current;let ce=null;if(Q&&Me){const{cancelDrop:Oe}=Z.current;ce={activatorEvent:X,active:Q,collisions:re,delta:Me,over:Ie},L===N.DragEnd&&typeof Oe=="function"&&await Promise.resolve(Oe(ce))&&(L=N.DragCancel)}_.current=null,Ne.reactDomExports.unstable_batchedUpdates(()=>{m({type:L}),R(ue.Uninitialized),Tt(null),Ye(null),Ke(null),ct.current=null;const Oe=L===N.DragEnd?"onDragEnd":"onDragCancel";if(ce){const ut=Z.current[Oe];ut?.(ce),y({type:Oe,event:ce})}})}}},[D]),In=s.useCallback((k,B)=>(F,ae)=>{const Y=F.nativeEvent,X=D.get(ae);if(_.current!==null||!X||Y.dndKit||Y.defaultPrevented)return;const G={active:X};k(F,B.options,G)===!0&&(Y.dndKit={capturedBy:B.sensor},_.current=ae,Lt(F,B))},[D,Lt]),kt=Ir(f,In);Pr(f),H(()=>{A&&S===ue.Initializing&&R(ue.Initialized)},[A,S]),s.useEffect(()=>{const{onDragMove:k}=Z.current,{active:B,activatorEvent:F,collisions:ae,over:Y}=J.current;if(!B||!F)return;const X={active:B,activatorEvent:F,collisions:ae,delta:{x:pe.x,y:pe.y},over:Y};Ne.reactDomExports.unstable_batchedUpdates(()=>{k?.(X),y({type:"onDragMove",event:X})})},[pe.x,pe.y]),s.useEffect(()=>{const{active:k,activatorEvent:B,collisions:F,droppableContainers:ae,scrollAdjustedTranslate:Y}=J.current;if(!k||_.current==null||!B||!Y)return;const{onDragOver:X}=Z.current,G=ae.get(Nt),me=G&&G.rect.current?{id:G.id,rect:G.rect.current,data:G.data,disabled:G.disabled}:null,L={active:k,activatorEvent:B,collisions:F,delta:{x:Y.x,y:Y.y},over:me};Ne.reactDomExports.unstable_batchedUpdates(()=>{Tt(me),X?.(L),y({type:"onDragOver",event:L})})},[Nt]),H(()=>{J.current={activatorEvent:z,active:q,activeNode:$,collisionRect:be,collisions:Ae,droppableRects:ee,draggableNodes:D,draggingNode:he,draggingNodeRect:ve,droppableContainers:O,over:se,scrollableAncestors:ie,scrollAdjustedTranslate:pe},W.current={initial:ve,translated:be}},[q,$,Ae,be,D,he,ve,ee,O,se,ie,pe]),Sr({...oe,delta:M,draggingRect:be,pointerCoordinates:Mt,scrollableAncestors:ie,scrollableAncestorRects:qe});const Mn=s.useMemo(()=>({active:q,activeNode:$,activeNodeRect:A,activatorEvent:z,collisions:Ae,containerNodeRect:Ee,dragOverlay:ne,draggableNodes:D,droppableContainers:O,droppableRects:ee,over:se,measureDroppableContainers:fe,scrollableAncestors:ie,scrollableAncestorRects:qe,measuringConfiguration:P,measuringScheduled:Re,windowRect:lt}),[q,$,A,z,Ae,Ee,ne,D,O,ee,se,fe,ie,qe,P,Re,lt]),On=s.useMemo(()=>({activatorEvent:z,activators:kt,active:q,activeNodeRect:A,ariaDescribedById:{draggable:Se},dispatch:m,draggableNodes:D,over:se,measureDroppableContainers:fe}),[z,kt,q,A,m,Se,D,se,fe]);return s.createElement(Zt.Provider,{value:b},s.createElement($e.Provider,{value:On},s.createElement(vn.Provider,{value:Mn},s.createElement(at.Provider,{value:An},u)),s.createElement(Wr,{disabled:l?.restoreFocus===!1})),s.createElement(Vn,{...l,hiddenTextDescribedById:Se}));function Nn(){const k=Ce?.autoScrollEnabled===!1,B=typeof c=="object"?c.enabled===!1:c===!1,F=E&&!k&&!B;return typeof c=="object"?{...c,enabled:F}:{enabled:F}}}),_r=s.createContext(null),Ht="button",Jr="Draggable";function Gr(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Xe(Jr),{activators:a,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:h}=s.useContext($e),{role:g=Ht,roleDescription:w="draggable",tabIndex:v=0}=o??{},p=c?.id===t,m=s.useContext(p?at:_r),[y,b]=Je(),[S,R]=Je(),E=zr(a,t),x=je(n);H(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:S,data:x}),()=>{const M=d.get(t);M&&M.key===i&&d.delete(t)}),[d,t]);const D=s.useMemo(()=>({role:g,tabIndex:v,"aria-disabled":r,"aria-pressed":p&&g===Ht?!0:void 0,"aria-roledescription":w,"aria-describedby":f.draggable}),[r,g,v,p,w,f.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:D,isDragging:p,listeners:r?void 0:E,node:y,over:h,setNodeRef:b,setActivatorNodeRef:R,transform:m}}function Rt(){return s.useContext(vn)}const Qr="Droppable",Zr={timeout:25};function eo(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Xe(Qr),{active:a,dispatch:l,over:c,measureDroppableContainers:u}=s.useContext($e),f=s.useRef({disabled:n}),d=s.useRef(!1),h=s.useRef(null),g=s.useRef(null),{disabled:w,updateMeasurementsFor:v,timeout:p}={...Zr,...o},m=je(v??r),y=s.useCallback(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(m.current)?m.current:[m.current]),g.current=null},p)},[p]),b=st({callback:y,disabled:w||!a}),S=s.useCallback((D,M)=>{b&&(M&&(b.unobserve(M),d.current=!1),D&&b.observe(D))},[b]),[R,E]=Je(S),x=je(t);return s.useEffect(()=>{!b||!R.current||(b.disconnect(),d.current=!1,b.observe(R.current))},[R,b]),s.useEffect(()=>(l({type:N.RegisterDroppable,element:{id:r,key:i,disabled:n,node:R,rect:h,data:x}}),()=>l({type:N.UnregisterDroppable,key:i,id:r})),[r]),s.useEffect(()=>{n!==f.current.disabled&&(l({type:N.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)},[r,i,n,l]),{active:a,rect:h,isOver:c?.id===r,node:R,over:c,setNodeRef:E}}function to(e){let{animation:t,children:n}=e;const[r,o]=s.useState(null),[i,a]=s.useState(null),l=Ge(n);return!n&&!r&&l&&o(l),H(()=>{if(!i)return;const c=r?.key,u=r?.props.id;if(c==null||u==null){o(null);return}Promise.resolve(t(u,i)).then(()=>{o(null)})},[t,r,i]),s.createElement(s.Fragment,null,n,r?s.cloneElement(r,{ref:a}):null)}const no={x:0,y:0,scaleX:1,scaleY:1};function ro(e){let{children:t}=e;return s.createElement($e.Provider,{value:hn},s.createElement(at.Provider,{value:no},t))}const oo={position:"fixed",touchAction:"none"},io=e=>ot(e)?"transform 250ms ease":void 0,so=s.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:i,className:a,rect:l,style:c,transform:u,transition:f=io}=e;if(!l)return null;const d=o?u:{...u,scaleX:1,scaleY:1},h={...oo,width:l.width,height:l.height,top:l.top,left:l.left,transform:de.Transform.toString(d),transformOrigin:o&&r?Gn(r,l):void 0,transition:typeof f=="function"?f(r):f,...c};return s.createElement(n,{className:a,style:h,ref:t},i)}),bn=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(i!=null&&i.active)for(const[l,c]of Object.entries(i.active))c!==void 0&&(o[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,c));if(i!=null&&i.dragOverlay)for(const[l,c]of Object.entries(i.dragOverlay))c!==void 0&&r.node.style.setProperty(l,c);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[c,u]of Object.entries(o))n.node.style.setProperty(c,u);a!=null&&a.active&&n.node.classList.remove(a.active)}},ao=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:de.Transform.toString(t)},{transform:de.Transform.toString(n)}]},lo={duration:250,easing:"ease",keyframes:ao,sideEffects:bn({styles:{active:{opacity:"0"}}})};function co(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return rt((i,a)=>{if(t===null)return;const l=n.get(i);if(!l)return;const c=l.node.current;if(!c)return;const u=gn(a);if(!u)return;const{transform:f}=j(a).getComputedStyle(a),d=nn(f);if(!d)return;const h=typeof t=="function"?t:uo(t);return un(c,o.draggable.measure),h({active:{id:i,data:l.data,node:c,rect:o.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})})}function uo(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...lo,...e};return i=>{let{active:a,dragOverlay:l,transform:c,...u}=i;if(!t)return;const f={x:l.rect.left-a.rect.left,y:l.rect.top-a.rect.top},d={scaleX:c.scaleX!==1?a.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?a.rect.height*c.scaleY/l.rect.height:1},h={x:c.x-f.x,y:c.y-f.y,...d},g=o({...u,active:a,dragOverlay:l,transform:{initial:c,final:h}}),[w]=g,v=g[g.length-1];if(JSON.stringify(w)===JSON.stringify(v))return;const p=r?.({active:a,dragOverlay:l,...u}),m=l.node.animate(g,{duration:t,easing:n,fill:"forwards"});return new Promise(y=>{m.onfinish=()=>{p?.(),y()}})}}let Vt=0;function fo(e){return s.useMemo(()=>{if(e!=null)return Vt++,Vt},[e])}const go=s.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:i,modifiers:a,wrapperElement:l="div",className:c,zIndex:u=999}=e;const{activatorEvent:f,active:d,activeNodeRect:h,containerNodeRect:g,draggableNodes:w,droppableContainers:v,dragOverlay:p,over:m,measuringConfiguration:y,scrollableAncestors:b,scrollableAncestorRects:S,windowRect:R}=Rt(),E=s.useContext(at),x=fo(d?.id),D=pn(a,{activatorEvent:f,active:d,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:p.rect,over:m,overlayNodeRect:p.rect,scrollableAncestors:b,scrollableAncestorRects:S,transform:E,windowRect:R}),M=St(h),O=co({config:r,draggableNodes:w,droppableContainers:v,measuringConfiguration:y}),I=M?p.setRef:void 0;return s.createElement(ro,null,s.createElement(to,{animation:O},d&&x?s.createElement(so,{key:x,id:d.id,ref:I,as:l,activatorEvent:f,adjustScale:t,className:c,transition:i,rect:M,style:{zIndex:u,...o},transform:D},n):null))});function Et(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function ho(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Ve(e){return e!==null&&e>=0}function vo(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function po(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const mn=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Et(t,r,n),a=t[o],l=i[o];return!l||!a?null:{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}},yn="Sortable",xn=s.createContext({activeIndex:-1,containerId:yn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:mn,disabled:{draggable:!1,droppable:!1}});function bo(e){let{children:t,id:n,items:r,strategy:o=mn,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:f}=Rt(),d=Xe(yn,n),h=l.rect!==null,g=s.useMemo(()=>r.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),w=a!=null,v=a?g.indexOf(a.id):-1,p=u?g.indexOf(u.id):-1,m=s.useRef(g),y=!vo(g,m.current),b=p!==-1&&v===-1||y,S=po(i);H(()=>{y&&w&&f(g)},[y,g,w,f]),s.useEffect(()=>{m.current=g},[g]);const R=s.useMemo(()=>({activeIndex:v,containerId:d,disabled:S,disableTransforms:b,items:g,overIndex:p,useDragOverlay:h,sortedRects:ho(g,c),strategy:o}),[v,d,S.draggable,S.droppable,b,g,p,c,h,o]);return s.createElement(xn.Provider,{value:R},t)}const mo=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Et(n,r,o).indexOf(t)},yo=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!r||l!==i&&o===a?!1:n?!0:a!==o&&t===c},xo={duration:200,easing:"ease"},wn="transform",wo=de.Transition.toString({property:wn,duration:0,easing:"linear"}),Do={roleDescription:"sortable"};function Co(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=s.useState(null),l=s.useRef(n);return H(()=>{if(!t&&n!==l.current&&r.current){const c=o.current;if(c){const u=De(r.current,{ignoreTransform:!0}),f={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(f.x||f.y)&&a(f)}}n!==l.current&&(l.current=n)},[t,n,r,o]),s.useEffect(()=>{i&&a(null)},[i]),i}function So(e){let{animateLayoutChanges:t=yo,attributes:n,disabled:r,data:o,getNewIndex:i=mo,id:a,strategy:l,resizeObserverConfig:c,transition:u=xo}=e;const{items:f,containerId:d,activeIndex:h,disabled:g,disableTransforms:w,sortedRects:v,overIndex:p,useDragOverlay:m,strategy:y}=s.useContext(xn),b=Ro(r,g),S=f.indexOf(a),R=s.useMemo(()=>({sortable:{containerId:d,index:S,items:f},...o}),[d,o,S,f]),E=s.useMemo(()=>f.slice(f.indexOf(a)),[f,a]),{rect:x,node:D,isOver:M,setNodeRef:O}=eo({id:a,data:R,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:I,activatorEvent:W,activeNodeRect:q,attributes:_,setNodeRef:Ce,listeners:Ye,isDragging:z,over:Ke,setActivatorNodeRef:Z,transform:Se}=Gr({id:a,data:R,attributes:{...Do,...n},disabled:b.draggable}),Ue=jn(O,Ce),P=!!I,ee=P&&!w&&Ve(h)&&Ve(p),fe=!m&&z,Re=fe&&ee?Se:null,We=ee?Re??(l??y)({rects:v,activeNodeRect:q,activeIndex:h,overIndex:p,index:S}):null,oe=Ve(h)&&Ve(p)?i({id:a,items:f,activeIndex:h,overIndex:p}):S,te=I?.id,A=s.useRef({activeId:te,items:f,newIndex:oe,containerId:d}),Ee=f!==A.current.items,J=t({active:I,containerId:d,isDragging:z,isSorting:P,id:a,index:S,items:f,newIndex:A.current.newIndex,previousItems:A.current.items,previousContainerId:A.current.containerId,transition:u,wasDragging:A.current.activeId!=null}),ge=Co({disabled:!J,index:S,node:D,rect:x});return s.useEffect(()=>{P&&A.current.newIndex!==oe&&(A.current.newIndex=oe),d!==A.current.containerId&&(A.current.containerId=d),f!==A.current.items&&(A.current.items=f)},[P,oe,d,f]),s.useEffect(()=>{if(te===A.current.activeId)return;if(te!=null&&A.current.activeId==null){A.current.activeId=te;return}const he=setTimeout(()=>{A.current.activeId=te},50);return()=>clearTimeout(he)},[te]),{active:I,activeIndex:h,attributes:_,data:R,rect:x,index:S,newIndex:oe,items:f,isOver:M,isSorting:P,isDragging:z,listeners:Ye,node:D,overIndex:p,over:Ke,setNodeRef:Ue,setActivatorNodeRef:Z,setDroppableNodeRef:O,setDraggableNodeRef:Ce,transform:ge??We,transition:ne()};function ne(){if(ge||Ee&&A.current.newIndex===S)return wo;if(!(fe&&!ot(W)||!u)&&(P||J))return de.Transition.toString({...u,property:wn})}}function Ro(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function tt(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Eo=[C.Down,C.Right,C.Up,C.Left],Ao=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(Eo.includes(e.code)){if(e.preventDefault(),!n||!r)return;const c=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const h=o.get(d.id);if(h)switch(e.code){case C.Down:r.top<h.top&&c.push(d);break;case C.Up:r.top>h.top&&c.push(d);break;case C.Left:r.left>h.left&&c.push(d);break;case C.Right:r.left<h.left&&c.push(d);break}});const u=er({collisionRect:r,droppableRects:o,droppableContainers:c});let f=en(u,"id");if(f===a?.id&&u.length>1&&(f=u[1].id),f!=null){const d=i.get(n.id),h=i.get(f),g=h?o.get(h.id):null,w=h?.node.current;if(w&&g&&d&&h){const p=it(w).some((E,x)=>l[x]!==E),m=Dn(d,h),y=Io(d,h),b=p||!m?{x:0,y:0}:{x:y?r.width-g.width:0,y:y?r.height-g.height:0},S={x:g.left,y:g.top};return b.x&&b.y?S:Pe(S,b)}}}};function Dn(e,t){return!tt(e)||!tt(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Io(e,t){return!tt(e)||!tt(t)||!Dn(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const Cn=s.createContext({attributes:void 0,listeners:void 0,ref(){}}),Mo=({...e})=>{const{attributes:t,listeners:n,ref:r}=s.useContext(Cn),o=Rt();return U.jsxRuntimeExports.jsx(Tn.Button,{className:"SortableList__DragHandle","data-testid":"kibble-sortable-list-drag-handle",ref:r,cursor:o.activatorEvent?"grabbing":"grab",iconName:"grid",size:"sm",variant:"ghostNeutral",...t,...n,...e})},_t=({content:e,hideHandle:t,id:n,itemProps:r})=>{const{attributes:o,isDragging:i,listeners:a,setNodeRef:l,setActivatorNodeRef:c,transform:u,transition:f}=So({id:n}),d=s.useMemo(()=>({attributes:o,listeners:a,ref:c}),[o,a,c]);return U.jsxRuntimeExports.jsx(Cn.Provider,{value:d,children:U.jsxRuntimeExports.jsx(Jt.ListItem,{className:"SortableList__Item","data-testid":"kibble-sortable-list-item",ref:l,...r,listStyleType:"none",...i&&{opacity:.4},transition:f,transform:de.Translate.toString(u),children:U.jsxRuntimeExports.jsxs(kn.Flex,{alignItems:"center",gap:2,width:"100%",children:[!t&&U.jsxRuntimeExports.jsx(Mo,{}),typeof e=="string"?U.jsxRuntimeExports.jsx(Ln.WrappedText,{size:"sm",children:e}):e]})})})},Oo=({hideHandle:e=!1,items:t,itemsProps:n,onChange:r,...o})=>{const[i,a]=s.useState(null),l=s.useMemo(()=>t.find(u=>u.id===i?.id),[i,t]),c=_n(Pt(Ct),Pt(wt,{coordinateGetter:Ao}));return U.jsxRuntimeExports.jsx(Vr,{sensors:c,onDragStart:({active:u})=>{a(u)},onDragEnd:({active:u,over:f})=>{if(f&&u.id!==f?.id){const d=t.findIndex(({id:g})=>g===u.id),h=t.findIndex(({id:g})=>g===f.id);r(Et(t,d,h))}a(null)},onDragCancel:()=>a(null),children:U.jsxRuntimeExports.jsx(bo,{items:t,children:U.jsxRuntimeExports.jsxs(Jt.ListRoot,{className:"SortableList","data-testid":"kibble-sortable-list",gap:2,...o,children:[t.map(u=>U.jsxRuntimeExports.jsx(_t,{...u,itemProps:n,hideHandle:e},u.id)),l&&U.jsxRuntimeExports.jsx(go,{dropAnimation:No,children:U.jsxRuntimeExports.jsx(_t,{...l,itemProps:n,hideHandle:e})})]})})})},No={sideEffects:bn({styles:{active:{opacity:"0.4"}}})};exports.SortableList=Oo;
|
|
6
|
-
//# sourceMappingURL=sortableList.component-Dft-FiMn.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-CITbqOLs.js"),c=require("react"),y=require("./withFormControl-CUnCiP8H.js"),w=require("./attr-BMs6szZx.js"),E=require("./create-slot-recipe-context-CNbTdeS5.js"),m=require("./factory-Djhmhla9.js"),n=require("./use-locale-context-Cc4BhWV1.js"),S=require("./use-field-context-BPsEZCN4.js"),l=require("./index-CZ42b9rT.js"),x=require("./index-CItwlE2r.js"),[f,u]=n.createContext({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),R=c.forwardRef((r,t)=>{const e=u(),s=l.mergeProps(e.getControlProps(),r);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:t})});R.displayName="SwitchControl";const j=c.forwardRef((r,t)=>{const e=u(),s=l.mergeProps(e.getHiddenInputProps(),r),o=S.useFieldContext();return i.jsxRuntimeExports.jsx(n.ark.input,{"aria-describedby":o?.ariaDescribedby,...s,ref:t})});j.displayName="SwitchHiddenInput";const C=c.forwardRef((r,t)=>{const e=u(),s=l.mergeProps(e.getLabelProps(),r);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:t})});C.displayName="SwitchLabel";const q=r=>{const t=c.useId(),{getRootNode:e}=n.useEnvironmentContext(),{dir:s}=n.useLocaleContext(),o=S.useFieldContext(),a={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:s,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:e,...r},d=n.useMachine(x.machine,a);return x.connect(d,n.normalizeProps)},b=c.forwardRef((r,t)=>{const[e,s]=n.createSplitProps()(r,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=q(e),a=l.mergeProps(o.getRootProps(),s);return i.jsxRuntimeExports.jsx(f,{value:o,children:i.jsxRuntimeExports.jsx(n.ark.label,{...a,ref:t})})});b.displayName="SwitchRoot";const P=c.forwardRef((r,t)=>{const[{value:e},s]=n.createSplitProps()(r,["value"]),o=l.mergeProps(e.getRootProps(),s);return i.jsxRuntimeExports.jsx(f,{value:e,children:i.jsxRuntimeExports.jsx(n.ark.label,{...o,ref:t})})});P.displayName="SwitchRootProvider";const k=c.forwardRef((r,t)=>{const e=u(),s=l.mergeProps(e.getThumbProps(),r);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:t})});k.displayName="SwitchThumb";const{withProvider:g,withContext:p,useStyles:N}=E.createSlotRecipeContext({key:"switch"});g(P,"root",{forwardAsChild:!0});const I=g(b,"root",{forwardAsChild:!0}),A=p(C,"label",{forwardAsChild:!0}),L=p(k,"thumb",{forwardAsChild:!0}),$=p(R,"control",{forwardAsChild:!0,defaultProps:{children:i.jsxRuntimeExports.jsx(L,{})}});c.forwardRef(function(t,e){const s=u(),o=N(),{fallback:a,children:d,...h}=t;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:e,"data-checked":w.dataAttr(s.checked),...h,css:[o.indicator,t.css],children:s.checked?d:a})});c.forwardRef(function(t,e){const s=u(),{fallback:o,children:a,...d}=t;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:e,"data-checked":w.dataAttr(s.checked),...d,children:s.checked?a:o})});const F=j,T=y.withFormControl(({children:r,indeterminate:t=!1,onContrast:e,label:s,size:o="md",switchRef:a,...d})=>{const h=c.useMemo(()=>t?e?"indeterminateOnContrast":"indeterminate":e?"onContrast":"default",[t,e]);return i.jsxRuntimeExports.jsxs(I,{className:"Switch","data-testid":"kibble-switch",ref:a,size:o,variant:h,...d,children:[i.jsxRuntimeExports.jsx(F,{className:"Switch_Input","data-testid":"kibble-switch-input"}),i.jsxRuntimeExports.jsx($,{className:"Switch_Control","data-testid":"kibble-switch-control"}),!!r&&i.jsxRuntimeExports.jsx(A,{children:r})]})}),v=c.forwardRef((r,t)=>i.jsxRuntimeExports.jsx(T,{switchRef:t,...r}));v.displayName="Switch";exports.WrappedSwitch=v;
|
|
2
|
-
//# sourceMappingURL=switch.component-Do0X7LJD.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-CITbqOLs.js"),u=require("react"),k=require("./button.component-DrvTYE-F.js"),C=require("./heading.component-CVtGEEgj.js"),E=require("./menu.component-CVq3JuDQ.js"),T=require("./spinner.component-DPS-cIcA.js"),N=require("./tag.component-Mi7eMQDk.js"),h=require("./text.component-uDfPjmx6.js"),r=require("./box-DiiiZkF4.js"),l=require("./flex-CoWH4MWg.js"),v=require("./h-stack-DS6_Nmps.js");var i=(a=>(a.Inactive="Inactive",a.Deleted="Deleted",a))(i||{});const q={size:"sm",variant:"secondarySubtle",iconName:"plus",text:"Add",hideCaret:!0},w=({title:a,menuProps:d,tags:s,canBeDeleted:f=!1,onClearAll:B,onRemoveTag:c,onDelete:_,hasError:b=!1,errorText:R="This field contains an error",displayTagsInGroups:x,loading:p=!1})=>{const m=u.useCallback(n=>{c&&c(n,s)},[c,s]),j=u.useMemo(()=>{if(!x)return[];const n={};for(const t of s){const o=t.groupLabel||"-";n[o]||(n[o]=[]),n[o].push(t)}return Object.entries(n).map(([t,o])=>({groupLabel:t,tags:o}))},[s,x]),g=u.useCallback(n=>n.map(t=>{const o=t.label.includes(i.Inactive)||t.label.includes(i.Deleted);return e.jsxRuntimeExports.jsx(N.Tag,{className:"TagBlock__Tag","data-testid":"kibble-tag-block-tag",mr:1,mb:1,label:t.label,onClose:()=>m(t.value),closeButtonDisplay:"always",fontWeight:"normal",color:o?"text.placeholder":"text",size:"md"},t.value)}),[m]);return e.jsxRuntimeExports.jsxs(r.Box,{className:"TagBlock","data-testid":"kibble-tag-block",position:"relative",mb:3,py:2,pl:4,pr:2,bg:"background.subtle",borderRadius:"lg",boxShadow:b?"0 0 0 2px var(--chakra-colors-border-danger)":"",border:"1px",borderColor:"border",overflow:p?"hidden":void 0,children:[e.jsxRuntimeExports.jsxs(l.Flex,{className:"TagBlock__ButtonContainer","data-testid":"kibble-tag-block-button-container",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsxs(v.HStack,{gap:1,minH:10,children:[a&&e.jsxRuntimeExports.jsx(h.WrappedText,{className:"TagBlock__Title",mr:2,fontWeight:"bold",children:a}),e.jsxRuntimeExports.jsx(E.Menu,{"data-testid":"kibble-tag-block-menu",...d,buttonProps:d?.buttonProps||q}),e.jsxRuntimeExports.jsx(k.Button,{className:"TagBlock__Button--ClearAll","data-testid":"kibble-tag-block-clear-all-button",size:"sm",iconName:"arrowCircle",variant:"ghostNeutral",onClick:B,disabled:s.length<=0,children:"Clear All"})]}),f&&e.jsxRuntimeExports.jsx(r.Box,{children:e.jsxRuntimeExports.jsx(k.Button,{className:"TagBlock__Button--Delete","data-testid":"kibble-tag-block-delete-button",iconName:"trashcan",variant:"ghostNeutral",onClick:_,justifySelf:"flex-end"})})]}),!!s.length&&e.jsxRuntimeExports.jsx(l.Flex,{className:"TagBlock__TagContainer","data-testid":"kibble-tag-block-tag-container",mt:2,pb:1,alignContent:"space-between",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start",children:x&&j.length?e.jsxRuntimeExports.jsx(l.Flex,{direction:"column",children:j.map(({groupLabel:n,tags:t})=>e.jsxRuntimeExports.jsxs(r.Box,{mb:2,children:[e.jsxRuntimeExports.jsx(r.Box,{className:"TagBlock__GroupTitle","data-testid":"kibble-tag-block-group-title",children:e.jsxRuntimeExports.jsx(C.WrappedHeading,{size:"xs",pb:2,children:n})}),e.jsxRuntimeExports.jsx(l.Flex,{alignContent:"space-between",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start",children:g(t)})]},n))}):g(s)}),p&&e.jsxRuntimeExports.jsx(T.Spinner,{fullScreen:!0}),b&&e.jsxRuntimeExports.jsx(h.WrappedText,{className:"TagBlock__Error","data-testid":"kibble-tag-block-error",mt:2,size:"xs",as:"p",variant:"danger",children:R})]})};exports.TagBlock=w;exports.TagDisabledState=i;
|
|
2
|
-
//# sourceMappingURL=tagBlock.component-Dj3iPVJy.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-CITbqOLs.js"),i=require("./withTruncation-CzqmBekU.js"),r=require("./create-recipe-context-yj-_0pxV.js"),{withContext:c}=r.createRecipeContext({key:"text"}),x=c("p"),t=({children:e,...n})=>s.jsxRuntimeExports.jsx(x,{className:"Text","data-testid":"kibble-text",...n,children:e});t.displayName="Text";const o=i.withTruncation(t);exports.WrappedText=o;
|
|
2
|
-
//# sourceMappingURL=text.component-uDfPjmx6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-CITbqOLs.js"),c=require("react"),P=require("./withFormControl-CUnCiP8H.js"),b=require("./button.component-DrvTYE-F.js"),_=require("./characterCounter.component-OMu4axLo.js"),T=require("./box-DiiiZkF4.js"),k=require("./empty-B5_AO6Pg.js"),I=require("./factory-Djhmhla9.js"),w=require("./use-recipe-CkP1U6f2.js"),A=require("./group-gT4uiUTj.js"),v=require("./create-recipe-context-yj-_0pxV.js"),N=require("./use-locale-context-Cc4BhWV1.js"),S=require("./use-field-context-BPsEZCN4.js"),F=require("./index-CZ42b9rT.js"),C=c.forwardRef((s,n)=>{const e=S.useFieldContext(),r=F.mergeProps(e?.getInputProps(),s);return t.jsxRuntimeExports.jsx(N.ark.input,{...r,ref:n})});C.displayName="FieldInput";const{withContext:B}=v.createRecipeContext({key:"input"}),G=B(C),R=c.forwardRef(function({unstyled:n,...e},r){const u=w.useRecipe({key:"inputAddon",recipe:e.recipe}),[i,a]=u.splitVariantProps(e),o=n?k.EMPTY_SLOT_STYLES:u(i);return t.jsxRuntimeExports.jsx(I.chakra.div,{ref:r,...a,css:[o,e.css]})}),E=I.chakra("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),z=c.forwardRef(function(n,e){const{startElement:r,startElementProps:u,endElement:i,endElementProps:a,startAddon:o,startAddonProps:m,endAddon:d,endAddonProps:x,children:l,startOffset:p="0px",endOffset:h="0px",...f}=n,j=c.Children.only(l),q=!!(o||d);return t.jsxRuntimeExports.jsxs(A.Group,{width:"full",ref:e,attached:q,skip:y=>y.type===E,...f,children:[o&&t.jsxRuntimeExports.jsx(R,{...m,children:o}),r&&t.jsxRuntimeExports.jsx(E,{pointerEvents:"none",...u,children:r}),c.cloneElement(j,{...r&&{ps:`calc(var(--input-height) - ${p})`},...i&&{pe:`calc(var(--input-height) - ${h})`},...l.props}),i&&t.jsxRuntimeExports.jsx(E,{placement:"end",...a,children:i}),d&&t.jsxRuntimeExports.jsx(R,{...x,children:d})]})}),L={sm:"xs",md:"sm",lg:"md"},M=P.withFormControl(({charLimit:s=void 0,clearable:n=!1,disabled:e=!1,inputRef:r,invalid:u,leftAddon:i,leftElement:a,onClear:o,onContrast:m,rightAddon:d,rightElement:x,size:l="md",value:p,...h})=>{const f=()=>{o&&o(p||"")};n&&p&&!e&&(x=t.jsxRuntimeExports.jsx(b.Button,{className:"TextInput__ClearButton","data-testid":"kibble-text-input-clear-button",size:L[l],variant:"ghostNeutral",onClick:f,iconName:"close"}));const j=c.useMemo(()=>p?.toString()?.length||0,[p]);return t.jsxRuntimeExports.jsxs(T.Box,{className:"TextInput__Wrapper",position:"relative",w:"100%",children:[t.jsxRuntimeExports.jsx(z,{className:"TextInput__InputGroup","data-testid":"kibble-text-input-group",startElement:a,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:x,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:i,endAddon:d,children:t.jsxRuntimeExports.jsx(G,{"data-testid":"kibble-text-input",className:"TextInput",ref:r,value:p,size:l,disabled:e,...u&&{"aria-invalid":!0},variant:m?"onContrast":"default",...h})}),!!s&&t.jsxRuntimeExports.jsx(_.CharacterCounter,{withLimit:!0,limit:s,currentCount:j})]})}),g=c.forwardRef((s,n)=>t.jsxRuntimeExports.jsx(M,{inputRef:n,...s}));g.displayName="TextInput";exports.WrappedTextInput=g;
|
|
2
|
-
//# sourceMappingURL=textInput.component-CEF55yJj.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./jsx-runtime-CITbqOLs.js"),u=require("react"),h=require("./withFormControl-CUnCiP8H.js"),v=require("./characterCounter.component-OMu4axLo.js"),g=require("./flex-CoWH4MWg.js"),w=require("./create-recipe-context-yj-_0pxV.js"),p=require("./index-CZ42b9rT.js"),l=require("./use-locale-context-Cc4BhWV1.js"),b=require("./use-field-context-BPsEZCN4.js");var C=e=>{if(!e)return;const t=p.getComputedStyle(e),o=p.getWindow(e),s=p.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let i;t.boxSizing==="content-box"?i=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):i=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&i>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),i=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${i}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),r()}});const d=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});d.observe(e);const x=new o.MutationObserver(()=>r());return x.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),s.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),s.fonts?.removeEventListener("loadingdone",r),d.disconnect(),x.disconnect()}};const m=u.forwardRef((e,t)=>{const{autoresize:o,...s}=e,r=u.useRef(null),n=b.useFieldContext(),a=p.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},s);return u.useEffect(()=>{if(o)return C(r.current)},[o]),c.jsxRuntimeExports.jsx(l.ark.textarea,{...a,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:F}=w.createRecipeContext({key:"textarea"}),R=F(m),y=h.withFormControl(({charLimit:e=void 0,invalid:t,onContrast:o,resize:s="none",textareaRef:r,value:n,...a})=>{const d=o?"onContrast":"default",x=u.useMemo(()=>n?.toString()?.length||0,[n]);return c.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[c.jsxRuntimeExports.jsx(R,{className:"Textarea","data-testid":"kibble-textarea",resize:s,variant:d,value:n,...t&&{"aria-invalid":!0},...a,ref:r}),!!e&&c.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:x})]})}),f=u.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(y,{textareaRef:t,...e}));f.displayName="Textarea";exports.WrappedTextArea=f;
|
|
2
|
-
//# sourceMappingURL=textarea.component-BVGFuIZC.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";const le=require("./jsx-runtime-CITbqOLs.js"),w=require("./index-CZ42b9rT.js"),S=require("react");var ue={exports:{}},D={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-dom.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Me;function ut(){if(Me)return D;Me=1;var e=S;function t(u){var s="https://react.dev/errors/"+u;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)s+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(u,s,g){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:a==null?null:""+a,children:u,containerInfo:s,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(u,s){if(u==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}return D.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,D.createPortal=function(u,s){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error(t(299));return c(u,s,null,g)},D.flushSync=function(u){var s=l.T,g=n.p;try{if(l.T=null,n.p=2,u)return u()}finally{l.T=s,n.p=g,n.d.f()}},D.preconnect=function(u,s){typeof u=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,n.d.C(u,s))},D.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},D.preinit=function(u,s){if(typeof u=="string"&&s&&typeof s.as=="string"){var g=s.as,a=f(g,s.crossOrigin),i=typeof s.integrity=="string"?s.integrity:void 0,d=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;g==="style"?n.d.S(u,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:d}):g==="script"&&n.d.X(u,{crossOrigin:a,integrity:i,fetchPriority:d,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},D.preinitModule=function(u,s){if(typeof u=="string")if(typeof s=="object"&&s!==null){if(s.as==null||s.as==="script"){var g=f(s.as,s.crossOrigin);n.d.M(u,{crossOrigin:g,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})}}else s==null&&n.d.M(u)},D.preload=function(u,s){if(typeof u=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){var g=s.as,a=f(g,s.crossOrigin);n.d.L(u,g,{crossOrigin:a,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},D.preloadModule=function(u,s){if(typeof u=="string")if(s){var g=f(s.as,s.crossOrigin);n.d.m(u,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:g,integrity:typeof s.integrity=="string"?s.integrity:void 0})}else n.d.m(u)},D.requestFormReset=function(u){n.d.r(u)},D.unstable_batchedUpdates=function(u,s){return u(s)},D.useFormState=function(u,s,g){return l.H.useFormState(u,s,g)},D.useFormStatus=function(){return l.H.useHostTransitionStatus()},D.version="19.1.0",D}var M={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Le;function ft(){return Le||(Le=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(a){return""+a}function r(a,i,d){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(m);var p=!1}catch{p=!0}return p&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object"),t(m)),{$$typeof:s,key:m==null?null:""+m,children:a,containerInfo:i,implementation:d}}function n(a,i){if(a==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}function o(a){return a===null?"`null`":a===void 0?"`undefined`":a===""?"an empty string":'something with type "'+typeof a+'"'}function c(a){return a===null?"`null`":a===void 0?"`undefined`":a===""?"an empty string":typeof a=="string"?JSON.stringify(a):typeof a=="number"?"`"+a+"`":'something with type "'+typeof a+'"'}function l(){var a=g.H;return a===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
18
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
-
2. You might be breaking the Rules of Hooks
|
|
20
|
-
3. You might have more than one copy of React in the same app
|
|
21
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=S,u={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},s=Symbol.for("react.portal"),g=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),M.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,M.createPortal=function(a,i){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error("Target container is not a DOM element.");return r(a,i,null,d)},M.flushSync=function(a){var i=g.T,d=u.p;try{if(g.T=null,u.p=2,a)return a()}finally{g.T=i,u.p=d,u.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},M.preconnect=function(a,i){typeof a=="string"&&a?i!=null&&typeof i!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",c(i)):i!=null&&typeof i.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(i.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(a)),typeof a=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,u.d.C(a,i))},M.prefetchDNS=function(a){if(typeof a!="string"||!a)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(a));else if(1<arguments.length){var i=arguments[1];typeof i=="object"&&i.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(i)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",c(i))}typeof a=="string"&&u.d.D(a)},M.preinit=function(a,i){if(typeof a=="string"&&a?i==null||typeof i!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",c(i)):i.as!=="style"&&i.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',c(i.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(a)),typeof a=="string"&&i&&typeof i.as=="string"){var d=i.as,m=n(d,i.crossOrigin),p=typeof i.integrity=="string"?i.integrity:void 0,y=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;d==="style"?u.d.S(a,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:m,integrity:p,fetchPriority:y}):d==="script"&&u.d.X(a,{crossOrigin:m,integrity:p,fetchPriority:y,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},M.preinitModule=function(a,i){var d="";if(typeof a=="string"&&a||(d+=" The `href` argument encountered was "+o(a)+"."),i!==void 0&&typeof i!="object"?d+=" The `options` argument encountered was "+o(i)+".":i&&"as"in i&&i.as!=="script"&&(d+=" The `as` option encountered was "+c(i.as)+"."),d)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",d);else switch(d=i&&typeof i.as=="string"?i.as:"script",d){case"script":break;default:d=c(d),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',d,a)}typeof a=="string"&&(typeof i=="object"&&i!==null?(i.as==null||i.as==="script")&&(d=n(i.as,i.crossOrigin),u.d.M(a,{crossOrigin:d,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})):i==null&&u.d.M(a))},M.preload=function(a,i){var d="";if(typeof a=="string"&&a||(d+=" The `href` argument encountered was "+o(a)+"."),i==null||typeof i!="object"?d+=" The `options` argument encountered was "+o(i)+".":typeof i.as=="string"&&i.as||(d+=" The `as` option encountered was "+o(i.as)+"."),d&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',d),typeof a=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){d=i.as;var m=n(d,i.crossOrigin);u.d.L(a,d,{crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},M.preloadModule=function(a,i){var d="";typeof a=="string"&&a||(d+=" The `href` argument encountered was "+o(a)+"."),i!==void 0&&typeof i!="object"?d+=" The `options` argument encountered was "+o(i)+".":i&&"as"in i&&typeof i.as!="string"&&(d+=" The `as` option encountered was "+o(i.as)+"."),d&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',d),typeof a=="string"&&(i?(d=n(i.as,i.crossOrigin),u.d.m(a,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:d,integrity:typeof i.integrity=="string"?i.integrity:void 0})):u.d.m(a))},M.requestFormReset=function(a){u.d.r(a)},M.unstable_batchedUpdates=function(a,i){return a(i)},M.useFormState=function(a,i,d){return l().useFormState(a,i,d)},M.useFormStatus=function(){return l().useHostTransitionStatus()},M.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),M}var ke;function dt(){if(ke)return ue.exports;ke=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),ue.exports=ut()):ue.exports=ft(),ue.exports}var ce=dt();function gt(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function he(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:c,defaultValue:l}=e,f=S.createContext(l);f.displayName=t;function u(){const s=S.useContext(f);if(!s&&r){const g=new Error(c??gt(n,o));throw g.name="ContextError",Error.captureStackTrace?.(g,u),g}return s}return[f.Provider,u,f]}const[jn,Be]=he({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),mt=e=>{const{children:t,disabled:r}=e,[n,o]=S.useState(e.container?.current),c=S.useSyncExternalStore(yt,()=>!1,()=>!0),{getRootNode:l}=Be();if(S.useEffect(()=>{o(()=>e.container?.current)},[e.container]),c||r)return le.jsxRuntimeExports.jsx(le.jsxRuntimeExports.Fragment,{children:t});const f=n??pt(l);return le.jsxRuntimeExports.jsx(le.jsxRuntimeExports.Fragment,{children:S.Children.map(t,u=>ce.createPortal(u,f))})},pt=e=>{const t=e?.(),r=t.getRootNode();return w.isShadowRoot(r)?r:w.getDocument(t).body},yt=()=>()=>{};function ht(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var qe=()=>e=>Array.from(new Set(e)),Ye=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function ge(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,c]=S.useState(n),l=e().value!==void 0,f=S.useRef(o);f.current=l?e().value:o;const u=S.useRef(f.current);Ye(()=>{u.current=f.current},[o,e().value]);const s=a=>{const i=u.current,d=w.isFunction(a)?a(i):a;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:d,prev:i}),l||c(d),r(d,i)||e().onChange?.(d,i)};function g(){return l?e().value:o}return{initial:n,ref:f,get:g,set(a){(e().sync?ce.flushSync:w.identity)(()=>s(a))},invoke(a,i){e().onChange?.(a,i)},hash(a){return e().hash?.(a)??String(a)}}}ge.cleanup=e=>{S.useEffect(()=>e,[])};ge.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function vt(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var xt=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Ge(e,t={}){const r=S.useMemo(()=>{const{id:h,ids:x,getRootNode:T}=t;return w.createScope({id:h,ids:x,getRootNode:T})},[t]),n=(...h)=>{e.debug&&console.log(...h)},o=e.props?.({props:w.compact(t),scope:r})??t,c=wt(o),l=e.context?.({prop:c,bindable:ge,scope:r,flush:Ve,getContext(){return u},getComputed(){return E},getRefs(){return p}}),f=Ke(l),u={get(h){return f.current?.[h].ref.current},set(h,x){f.current?.[h].set(x)},initial(h){return f.current?.[h].initial},hash(h){const x=f.current?.[h].get();return f.current?.[h].hash(x)}},s=S.useRef(new Map),g=S.useRef(null),a=S.useRef(null),i=S.useRef({type:""}),d=()=>({...i.current,current(){return i.current},previous(){return a.current}}),m=()=>({...P,matches(...h){return h.includes(P.ref.current)},hasTag(h){return!!e.states[P.ref.current]?.tags?.includes(h)}}),p=vt(e.refs?.({prop:c,context:u})??{}),y=()=>({state:m(),context:u,event:d(),prop:c,send:k,action:v,guard:O,track:xt,refs:p,computed:E,flush:Ve,scope:r,choose:A}),v=h=>{const x=w.isFunction(h)?h(y()):h;if(!x)return;const T=x.map(R=>{const _=e.implementations?.actions?.[R];return _||w.warn(`[zag-js] No implementation found for action "${JSON.stringify(R)}"`),_});for(const R of T)R?.(y())},O=h=>w.isFunction(h)?h(y()):e.implementations?.guards?.[h](y()),b=h=>{const x=w.isFunction(h)?h(y()):h;if(!x)return;const T=x.map(_=>{const C=e.implementations?.effects?.[_];return C||w.warn(`[zag-js] No implementation found for effect "${JSON.stringify(_)}"`),C}),R=[];for(const _ of T){const C=_?.(y());C&&R.push(C)}return()=>R.forEach(_=>_?.())},A=h=>w.toArray(h).find(x=>{let T=!x.guard;return w.isString(x.guard)?T=!!O(x.guard):w.isFunction(x.guard)&&(T=x.guard(y())),T}),E=h=>{w.ensure(e.computed,()=>"[zag-js] No computed object found on machine");const x=e.computed[h];return x({context:u,event:d(),prop:c,refs:p,scope:r,computed:E})},P=ge(()=>({defaultValue:e.initialState({prop:c}),onChange(h,x){x&&(s.current.get(x)?.(),s.current.delete(x)),x&&v(e.states[x]?.exit),v(g.current?.actions);const T=b(e.states[h]?.effects);if(T&&s.current.set(h,T),x===w.INIT_STATE){v(e.entry);const R=b(e.effects);R&&s.current.set(w.INIT_STATE,R)}v(e.states[h]?.entry)}})),N=S.useRef(void 0),L=S.useRef(w.MachineStatus.NotStarted);Ye(()=>{queueMicrotask(()=>{const T=L.current===w.MachineStatus.Started;L.current=w.MachineStatus.Started,n(T?"rehydrating...":"initializing...");const R=N.current??P.initial;P.invoke(R,T?P.get():w.INIT_STATE)});const h=s.current,x=P.ref.current;return()=>{n("unmounting..."),N.current=x,L.current=w.MachineStatus.Stopped,h.forEach(T=>T?.()),s.current=new Map,g.current=null,queueMicrotask(()=>{v(e.exit)})}},[]);const $=()=>"ref"in P?P.ref.current:P.get(),k=h=>{queueMicrotask(()=>{if(L.current!==w.MachineStatus.Started)return;a.current=i.current,i.current=h,n("send",h);let x=$();const T=e.states[x].on?.[h.type]??e.on?.[h.type],R=A(T);if(!R)return;g.current=R;const _=R.target??x;n("transition",R);const C=_!==x;C?ce.flushSync(()=>P.set(_)):R.reenter&&!C?P.invoke(x,x):v(R.actions??[])})};return e.watch?.(y()),{state:m(),send:k,context:u,prop:c,scope:r,refs:p,computed:E,event:d(),getStatus:()=>L.current}}function Ke(e){const t=S.useRef(e);return t.current=e,t}function wt(e){const t=Ke(e);return function(n){return t.current[n]}}function Ve(e){queueMicrotask(()=>{ce.flushSync(()=>e())})}var Ot=ht(e=>e);function Xe(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function bt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Oe=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:c,...l}=r;if(!o)return S.createElement(e,{...l,ref:n},c);const f=S.Children.only(c);if(!S.isValidElement(f))return null;const u=bt(f);return S.cloneElement(f,{...w.mergeProps(l,f.props),ref:n?Xe(n,u):u})}));return t.displayName=e.displayName||e.name,t},St=()=>{const e=new Map;return new Proxy(Oe,{apply(t,r,n){return Oe(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Oe(n)),e.get(n)}})},Rt=St(),[Et,At]=he({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Je=()=>(e,t)=>t.reduce((r,n)=>{const[o,c]=r,l=n;return c[l]!==void 0&&(o[l]=c[l]),delete c[l],[o,c]},[{},{...e}]),Tt=e=>Je()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Pt(e,t){const{state:r,send:n,context:o}=e,c=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:c,setNode(l){l&&n({type:"NODE.SET",node:l})},unmount(){n({type:"UNMOUNT"})}}}var _t=w.createMachine({props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",w.getComputedStyle(t.node))},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const c=t.get("node");if(!o&&c?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});w.raf(()=>{const l=fe(t.get("styles"));e.set("unmountAnimationName",l),l==="none"||l===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{w.raf(()=>{e.set("prevAnimationName",fe(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=f=>{(f.composedPath?.()?.[0]??f.target)===n&&e.set("prevAnimationName",fe(t.get("styles")))},c=f=>{const u=fe(t.get("styles"));w.getEventTarget(f)===n&&u===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",c),n.addEventListener("animationend",c);const l=w.setStyle(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",c),n.removeEventListener("animationend",c),w.nextTick(()=>l())}}}}});function fe(e){return e?.animationName||"none"}qe()(["onExitComplete","present","immediate"]);function Qe(e,t={}){const{sync:r=!1}=t,n=Nt(e);return S.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function Nt(e){const t=S.useRef(e);return t.current=e,t}const Ct=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...c}=e,l=S.useRef(!1),f={...c,present:n,onExitComplete:Qe(e.onExitComplete)},u=Ge(_t,f),s=Pt(u);s.present&&(l.current=!0);const g=!s.present&&!l.current&&t||r&&!s.present&&l.current,a=()=>({"data-state":s.skip&&o?void 0:n?"open":"closed",hidden:!s.present});return{ref:s.setNode,getPresenceProps:a,present:s.present,unmounted:g}},Dt=["top","right","bottom","left"],J=Math.min,V=Math.max,me=Math.round,de=Math.floor,W=e=>({x:e,y:e}),Mt={left:"right",right:"left",bottom:"top",top:"bottom"},Lt={start:"end",end:"start"};function Se(e,t,r){return V(e,J(t,r))}function G(e,t){return typeof e=="function"?e(t):e}function K(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function Ae(e){return e==="x"?"y":"x"}function Te(e){return e==="y"?"height":"width"}function j(e){return["top","bottom"].includes(K(e))?"y":"x"}function Pe(e){return Ae(j(e))}function kt(e,t,r){r===void 0&&(r=!1);const n=ne(e),o=Pe(e),c=Te(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=pe(l)),[l,pe(l)]}function Vt(e){const t=pe(e);return[Re(e),t,Re(t)]}function Re(e){return e.replace(/start|end/g,t=>Lt[t])}function Ht(e,t,r){const n=["left","right"],o=["right","left"],c=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?c:l;default:return[]}}function $t(e,t,r,n){const o=ne(e);let c=Ht(K(e),r==="start",n);return o&&(c=c.map(l=>l+"-"+o),t&&(c=c.concat(c.map(Re)))),c}function pe(e){return e.replace(/left|right|bottom|top/g,t=>Mt[t])}function zt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ze(e){return typeof e!="number"?zt(e):{top:e,right:e,bottom:e,left:e}}function ye(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function He(e,t,r){let{reference:n,floating:o}=e;const c=j(t),l=Pe(t),f=Te(l),u=K(t),s=c==="y",g=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,i=n[f]/2-o[f]/2;let d;switch(u){case"top":d={x:g,y:n.y-o.height};break;case"bottom":d={x:g,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:a};break;case"left":d={x:n.x-o.width,y:a};break;default:d={x:n.x,y:n.y}}switch(ne(t)){case"start":d[l]-=i*(r&&s?-1:1);break;case"end":d[l]+=i*(r&&s?-1:1);break}return d}const Ft=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:c=[],platform:l}=r,f=c.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:a}=He(s,n,u),i=n,d={},m=0;for(let p=0;p<f.length;p++){const{name:y,fn:v}=f[p],{x:O,y:b,data:A,reset:E}=await v({x:g,y:a,initialPlacement:n,placement:i,strategy:o,middlewareData:d,rects:s,platform:l,elements:{reference:e,floating:t}});g=O??g,a=b??a,d={...d,[y]:{...d[y],...A}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(i=E.placement),E.rects&&(s=E.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:g,y:a}=He(s,i,u)),p=-1)}return{x:g,y:a,placement:i,strategy:o,middlewareData:d}};async function ie(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:c,rects:l,elements:f,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:g="viewport",elementContext:a="floating",altBoundary:i=!1,padding:d=0}=G(t,e),m=Ze(d),y=f[i?a==="floating"?"reference":"floating":a],v=ye(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(y)))==null||r?y:y.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:s,rootBoundary:g,strategy:u})),O=a==="floating"?{x:n,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),A=await(c.isElement==null?void 0:c.isElement(b))?await(c.getScale==null?void 0:c.getScale(b))||{x:1,y:1}:{x:1,y:1},E=ye(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:b,strategy:u}):O);return{top:(v.top-E.top+m.top)/A.y,bottom:(E.bottom-v.bottom+m.bottom)/A.y,left:(v.left-E.left+m.left)/A.x,right:(E.right-v.right+m.right)/A.x}}const Ut=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:c,platform:l,elements:f,middlewareData:u}=t,{element:s,padding:g=0}=G(e,t)||{};if(s==null)return{};const a=Ze(g),i={x:r,y:n},d=Pe(o),m=Te(d),p=await l.getDimensions(s),y=d==="y",v=y?"top":"left",O=y?"bottom":"right",b=y?"clientHeight":"clientWidth",A=c.reference[m]+c.reference[d]-i[d]-c.floating[m],E=i[d]-c.reference[d],P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s));let N=P?P[b]:0;(!N||!await(l.isElement==null?void 0:l.isElement(P)))&&(N=f.floating[b]||c.floating[m]);const L=A/2-E/2,$=N/2-p[m]/2-1,k=J(a[v],$),h=J(a[O],$),x=k,T=N-p[m]-h,R=N/2-p[m]/2+L,_=Se(x,R,T),C=!u.arrow&&ne(o)!=null&&R!==_&&c.reference[m]/2-(R<x?k:h)-p[m]/2<0,z=C?R<x?R-x:R-T:0;return{[d]:i[d]+z,data:{[d]:_,centerOffset:R-_-z,...C&&{alignmentOffset:z}},reset:C}}}),It=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:c,rects:l,initialPlacement:f,platform:u,elements:s}=t,{mainAxis:g=!0,crossAxis:a=!0,fallbackPlacements:i,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=G(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const v=K(o),O=j(f),b=K(f)===f,A=await(u.isRTL==null?void 0:u.isRTL(s.floating)),E=i||(b||!p?[pe(f)]:Vt(f)),P=m!=="none";!i&&P&&E.push(...$t(f,p,m,A));const N=[f,...E],L=await ie(t,y),$=[];let k=((n=c.flip)==null?void 0:n.overflows)||[];if(g&&$.push(L[v]),a){const R=kt(o,l,A);$.push(L[R[0]],L[R[1]])}if(k=[...k,{placement:o,overflows:$}],!$.every(R=>R<=0)){var h,x;const R=(((h=c.flip)==null?void 0:h.index)||0)+1,_=N[R];if(_&&(!(a==="alignment"?O!==j(_):!1)||k.every(F=>F.overflows[0]>0&&j(F.placement)===O)))return{data:{index:R,overflows:k},reset:{placement:_}};let C=(x=k.filter(z=>z.overflows[0]<=0).sort((z,F)=>z.overflows[1]-F.overflows[1])[0])==null?void 0:x.placement;if(!C)switch(d){case"bestFit":{var T;const z=(T=k.filter(F=>{if(P){const X=j(F.placement);return X===O||X==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(X=>X>0).reduce((X,lt)=>X+lt,0)]).sort((F,X)=>F[1]-X[1])[0])==null?void 0:T[0];z&&(C=z);break}case"initialPlacement":C=f;break}if(o!==C)return{reset:{placement:C}}}return{}}}};function $e(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ze(e){return Dt.some(t=>e[t]>=0)}const jt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=G(e,t);switch(n){case"referenceHidden":{const c=await ie(t,{...o,elementContext:"reference"}),l=$e(c,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ze(l)}}}case"escaped":{const c=await ie(t,{...o,altBoundary:!0}),l=$e(c,r.floating);return{data:{escapedOffsets:l,escaped:ze(l)}}}default:return{}}}}};async function Wt(e,t){const{placement:r,platform:n,elements:o}=e,c=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=K(r),f=ne(r),u=j(r)==="y",s=["left","top"].includes(l)?-1:1,g=c&&u?-1:1,a=G(t,e);let{mainAxis:i,crossAxis:d,alignmentAxis:m}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return f&&typeof m=="number"&&(d=f==="end"?m*-1:m),u?{x:d*g,y:i*s}:{x:i*s,y:d*g}}const Bt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:c,placement:l,middlewareData:f}=t,u=await Wt(t,e);return l===((r=f.offset)==null?void 0:r.placement)&&(n=f.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:c+u.y,data:{...u,placement:l}}}}},qt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:c=!0,crossAxis:l=!1,limiter:f={fn:y=>{let{x:v,y:O}=y;return{x:v,y:O}}},...u}=G(e,t),s={x:r,y:n},g=await ie(t,u),a=j(K(o)),i=Ae(a);let d=s[i],m=s[a];if(c){const y=i==="y"?"top":"left",v=i==="y"?"bottom":"right",O=d+g[y],b=d-g[v];d=Se(O,d,b)}if(l){const y=a==="y"?"top":"left",v=a==="y"?"bottom":"right",O=m+g[y],b=m-g[v];m=Se(O,m,b)}const p=f.fn({...t,[i]:d,[a]:m});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[i]:c,[a]:l}}}}}},Yt=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:s=!0}=G(e,t),g={x:r,y:n},a=j(o),i=Ae(a);let d=g[i],m=g[a];const p=G(f,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=i==="y"?"height":"width",A=c.reference[i]-c.floating[b]+y.mainAxis,E=c.reference[i]+c.reference[b]-y.mainAxis;d<A?d=A:d>E&&(d=E)}if(s){var v,O;const b=i==="y"?"width":"height",A=["top","left"].includes(K(o)),E=c.reference[a]-c.floating[b]+(A&&((v=l.offset)==null?void 0:v[a])||0)+(A?0:y.crossAxis),P=c.reference[a]+c.reference[b]+(A?0:((O=l.offset)==null?void 0:O[a])||0)-(A?y.crossAxis:0);m<E?m=E:m>P&&(m=P)}return{[i]:d,[a]:m}}}},Gt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:c,platform:l,elements:f}=t,{apply:u=()=>{},...s}=G(e,t),g=await ie(t,s),a=K(o),i=ne(o),d=j(o)==="y",{width:m,height:p}=c.floating;let y,v;a==="top"||a==="bottom"?(y=a,v=i===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(v=a,y=i==="end"?"top":"bottom");const O=p-g.top-g.bottom,b=m-g.left-g.right,A=J(p-g[y],O),E=J(m-g[v],b),P=!t.middlewareData.shift;let N=A,L=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(L=b),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=O),P&&!i){const k=V(g.left,0),h=V(g.right,0),x=V(g.top,0),T=V(g.bottom,0);d?L=m-2*(k!==0||h!==0?k+h:V(g.left,g.right)):N=p-2*(x!==0||T!==0?x+T:V(g.top,g.bottom))}await u({...t,availableWidth:L,availableHeight:N});const $=await l.getDimensions(f.floating);return m!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function ve(){return typeof window<"u"}function re(e){return et(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(et(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function et(e){return ve()?e instanceof Node||e instanceof H(e).Node:!1}function U(e){return ve()?e instanceof Element||e instanceof H(e).Element:!1}function B(e){return ve()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Fe(e){return!ve()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function ae(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Kt(e){return["table","td","th"].includes(re(e))}function xe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _e(e){const t=Ne(),r=U(e)?I(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Xt(e){let t=Q(e);for(;B(t)&&!te(t);){if(_e(t))return t;if(xe(t))return null;t=Q(t)}return null}function Ne(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function te(e){return["html","body","#document"].includes(re(e))}function I(e){return H(e).getComputedStyle(e)}function we(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fe(e)&&e.host||q(e);return Fe(t)?t.host:t}function tt(e){const t=Q(e);return te(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&ae(t)?t:tt(t)}function se(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=tt(e),c=o===((n=e.ownerDocument)==null?void 0:n.body),l=H(o);if(c){const f=Ee(l);return t.concat(l,l.visualViewport||[],ae(o)?o:[],f&&r?se(f):[])}return t.concat(o,se(o,[],r))}function Ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nt(e){const t=I(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=B(e),c=o?e.offsetWidth:r,l=o?e.offsetHeight:n,f=me(r)!==c||me(n)!==l;return f&&(r=c,n=l),{width:r,height:n,$:f}}function Ce(e){return U(e)?e:e.contextElement}function ee(e){const t=Ce(e);if(!B(t))return W(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:c}=nt(t);let l=(c?me(r.width):r.width)/n,f=(c?me(r.height):r.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const Jt=W(0);function rt(e){const t=H(e);return!Ne()||!t.visualViewport?Jt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qt(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==H(e)?!1:t}function Z(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),c=Ce(e);let l=W(1);t&&(n?U(n)&&(l=ee(n)):l=ee(e));const f=Qt(c,r,n)?rt(c):W(0);let u=(o.left+f.x)/l.x,s=(o.top+f.y)/l.y,g=o.width/l.x,a=o.height/l.y;if(c){const i=H(c),d=n&&U(n)?H(n):n;let m=i,p=Ee(m);for(;p&&n&&d!==m;){const y=ee(p),v=p.getBoundingClientRect(),O=I(p),b=v.left+(p.clientLeft+parseFloat(O.paddingLeft))*y.x,A=v.top+(p.clientTop+parseFloat(O.paddingTop))*y.y;u*=y.x,s*=y.y,g*=y.x,a*=y.y,u+=b,s+=A,m=H(p),p=Ee(m)}}return ye({width:g,height:a,x:u,y:s})}function De(e,t){const r=we(e).scrollLeft;return t?t.left+r:Z(q(e)).left+r}function ot(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:De(e,n)),c=n.top+t.scrollTop;return{x:o,y:c}}function Zt(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const c=o==="fixed",l=q(n),f=t?xe(t.floating):!1;if(n===l||f&&c)return r;let u={scrollLeft:0,scrollTop:0},s=W(1);const g=W(0),a=B(n);if((a||!a&&!c)&&((re(n)!=="body"||ae(l))&&(u=we(n)),B(n))){const d=Z(n);s=ee(n),g.x=d.x+n.clientLeft,g.y=d.y+n.clientTop}const i=l&&!a&&!c?ot(l,u,!0):W(0);return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-u.scrollLeft*s.x+g.x+i.x,y:r.y*s.y-u.scrollTop*s.y+g.y+i.y}}function en(e){return Array.from(e.getClientRects())}function tn(e){const t=q(e),r=we(e),n=e.ownerDocument.body,o=V(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),c=V(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+De(e);const f=-r.scrollTop;return I(n).direction==="rtl"&&(l+=V(t.clientWidth,n.clientWidth)-o),{width:o,height:c,x:l,y:f}}function nn(e,t){const r=H(e),n=q(e),o=r.visualViewport;let c=n.clientWidth,l=n.clientHeight,f=0,u=0;if(o){c=o.width,l=o.height;const s=Ne();(!s||s&&t==="fixed")&&(f=o.offsetLeft,u=o.offsetTop)}return{width:c,height:l,x:f,y:u}}function rn(e,t){const r=Z(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,c=B(e)?ee(e):W(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,u=o*c.x,s=n*c.y;return{width:l,height:f,x:u,y:s}}function Ue(e,t,r){let n;if(t==="viewport")n=nn(e,r);else if(t==="document")n=tn(q(e));else if(U(t))n=rn(t,r);else{const o=rt(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ye(n)}function it(e,t){const r=Q(e);return r===t||!U(r)||te(r)?!1:I(r).position==="fixed"||it(r,t)}function on(e,t){const r=t.get(e);if(r)return r;let n=se(e,[],!1).filter(f=>U(f)&&re(f)!=="body"),o=null;const c=I(e).position==="fixed";let l=c?Q(e):e;for(;U(l)&&!te(l);){const f=I(l),u=_e(l);!u&&f.position==="fixed"&&(o=null),(c?!u&&!o:!u&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ae(l)&&!u&&it(e,l))?n=n.filter(g=>g!==l):o=f,l=Q(l)}return t.set(e,n),n}function sn(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?xe(t)?[]:on(t,this._c):[].concat(r),n],f=l[0],u=l.reduce((s,g)=>{const a=Ue(t,g,o);return s.top=V(a.top,s.top),s.right=J(a.right,s.right),s.bottom=J(a.bottom,s.bottom),s.left=V(a.left,s.left),s},Ue(t,f,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function cn(e){const{width:t,height:r}=nt(e);return{width:t,height:r}}function an(e,t,r){const n=B(t),o=q(t),c=r==="fixed",l=Z(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const u=W(0);if(n||!n&&!c)if((re(t)!=="body"||ae(o))&&(f=we(t)),n){const i=Z(t,!0,c,t);u.x=i.x+t.clientLeft,u.y=i.y+t.clientTop}else o&&(u.x=De(o));const s=o&&!n&&!c?ot(o,f):W(0),g=l.left+f.scrollLeft-u.x-s.x,a=l.top+f.scrollTop-u.y-s.y;return{x:g,y:a,width:l.width,height:l.height}}function be(e){return I(e).position==="static"}function Ie(e,t){if(!B(e)||I(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return q(e)===r&&(r=r.ownerDocument.body),r}function st(e,t){const r=H(e);if(xe(e))return r;if(!B(e)){let o=Q(e);for(;o&&!te(o);){if(U(o)&&!be(o))return o;o=Q(o)}return r}let n=Ie(e,t);for(;n&&Kt(n)&&be(n);)n=Ie(n,t);return n&&te(n)&&be(n)&&!_e(n)?r:n||Xt(e)||r}const ln=async function(e){const t=this.getOffsetParent||st,r=this.getDimensions,n=await r(e.floating);return{reference:an(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function un(e){return I(e).direction==="rtl"}const fn={convertOffsetParentRelativeRectToViewportRelativeRect:Zt,getDocumentElement:q,getClippingRect:sn,getOffsetParent:st,getElementRects:ln,getClientRects:en,getDimensions:cn,getScale:ee,isElement:U,isRTL:un};function ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dn(e,t){let r=null,n;const o=q(e);function c(){var f;clearTimeout(n),(f=r)==null||f.disconnect(),r=null}function l(f,u){f===void 0&&(f=!1),u===void 0&&(u=1),c();const s=e.getBoundingClientRect(),{left:g,top:a,width:i,height:d}=s;if(f||t(),!i||!d)return;const m=de(a),p=de(o.clientWidth-(g+i)),y=de(o.clientHeight-(a+d)),v=de(g),b={rootMargin:-m+"px "+-p+"px "+-y+"px "+-v+"px",threshold:V(0,J(1,u))||1};let A=!0;function E(P){const N=P[0].intersectionRatio;if(N!==u){if(!A)return l();N?l(!1,N):n=setTimeout(()=>{l(!1,1e-7)},1e3)}N===1&&!ct(s,e.getBoundingClientRect())&&l(),A=!1}try{r=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,b)}r.observe(e)}return l(!0),c}function gn(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,s=Ce(e),g=o||c?[...s?se(s):[],...se(t)]:[];g.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),c&&v.addEventListener("resize",r)});const a=s&&f?dn(s,r):null;let i=-1,d=null;l&&(d=new ResizeObserver(v=>{let[O]=v;O&&O.target===s&&d&&(d.unobserve(t),cancelAnimationFrame(i),i=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(t)})),r()}),s&&!u&&d.observe(s),d.observe(t));let m,p=u?Z(e):null;u&&y();function y(){const v=Z(e);p&&!ct(p,v)&&r(),p=v,m=requestAnimationFrame(y)}return r(),()=>{var v;g.forEach(O=>{o&&O.removeEventListener("scroll",r),c&&O.removeEventListener("resize",r)}),a?.(),(v=d)==null||v.disconnect(),d=null,u&&cancelAnimationFrame(m)}}const mn=Bt,pn=qt,yn=It,hn=Gt,vn=jt,xn=Ut,wn=Yt,On=(e,t,r)=>{const n=new Map,o={platform:fn,...r},c={...o.platform,_c:n};return Ft(e,t,{...o,platform:c})};function je(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function bn(e){if(!e)return je();const{x:t,y:r,width:n,height:o}=e;return je(t,r,n,o)}function Sn(e,t){return{contextElement:w.isHTMLElement(e)?e:void 0,getBoundingClientRect:()=>{const r=e,n=t?.(r);return n||!r?bn(n):r.getBoundingClientRect()}}}var oe=e=>({variable:e,reference:`var(${e})`}),Y={arrowSize:oe("--arrow-size"),arrowSizeHalf:oe("--arrow-size-half"),arrowBg:oe("--arrow-background"),transformOrigin:oe("--transform-origin"),arrowOffset:oe("--arrow-offset")},Rn=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),En={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:r}){const{arrow:n}=r,o=Rn(n)[e],{floating:c}=t;return c.style.setProperty(Y.transformOrigin.variable,o),{data:{transformOrigin:o}}}},An={name:"rects",fn({rects:e}){return{data:e}}},Tn=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[c]:`calc(100% + ${Y.arrowOffset.reference})`}),{}}}};function Pn(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function _n(e){return e.split("-")[0]}var Nn={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function We(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function at(e){return w.runIfFn(e.boundary)}function Cn(e,t){if(e)return xn({element:e,padding:t.arrowPadding})}function Dn(e,t){if(!w.isNull(t.offset??t.gutter))return mn(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,c=typeof o=="number"?o+n:o??n,{hasAlign:l}=Pn(r),f=l?void 0:t.shift,u=t.offset?.crossAxis??f;return w.compact({crossAxis:u,mainAxis:c,alignmentAxis:t.shift})})}function Mn(e){if(e.flip)return yn({boundary:at(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Ln(e){if(!(!e.slide&&!e.overlap))return pn({boundary:at(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:wn()})}function kn(e){return hn({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const c=t.floating,l=Math.round(r.reference.width);o=Math.floor(o),n=Math.floor(n),c.style.setProperty("--reference-width",`${l}px`),c.style.setProperty("--available-width",`${o}px`),c.style.setProperty("--available-height",`${n}px`)}})}function Vn(e){if(e.hideWhenDetached)return vn({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}function Hn(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function $n(e,t,r={}){const n=Sn(e,r.getAnchorRect);if(!t||!n)return;const o=Object.assign({},Nn,r),c=t.querySelector("[data-part=arrow]"),l=[Dn(c,o),Mn(o),Ln(o),Cn(c,o),Tn(c),En,kn(o),Vn(o),An],{placement:f,strategy:u,onComplete:s,onPositioned:g}=o,a=async()=>{if(!n||!t)return;const p=await On(n,t,{placement:f,middleware:l,strategy:u});s?.(p),g?.({placed:!0});const y=w.getWindow(t),v=We(y,p.x),O=We(y,p.y);t.style.setProperty("--x",`${v}px`),t.style.setProperty("--y",`${O}px`),o.hideWhenDetached&&(p.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const b=t.firstElementChild;if(b){const A=w.getComputedStyle(b);t.style.setProperty("--z-index",A.zIndex)}},i=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:a}),g?.({placed:!0})):await a()},d=Hn(o.listeners),m=o.listeners?gn(n,t,i,d):w.noop;return i(),()=>{m?.(),g?.({placed:!1})}}function zn(e,t,r={}){const{defer:n,...o}=r,c=n?w.raf:f=>f(),l=[];return l.push(c(()=>{const f=typeof e=="function"?e():e,u=typeof t=="function"?t():t;l.push($n(f,u,o))})),()=>{l.forEach(f=>f?.())}}var Fn={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Un(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:Y.arrowSize.reference,height:Y.arrowSize.reference,[Y.arrowSizeHalf.variable]:`calc(${Y.arrowSize.reference} / 2)`,[Y.arrowOffset.variable]:`calc(${Y.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Fn[t.split("-")[0]]:void 0,background:Y.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}const[Wn,In]=he({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});exports.Portal=mt;exports.PresenceProvider=Et;exports.ark=Rt;exports.composeRefs=Xe;exports.createContext=he;exports.createProps=qe;exports.createSplitProps=Je;exports.getPlacement=zn;exports.getPlacementSide=_n;exports.getPlacementStyles=Un;exports.normalizeProps=Ot;exports.reactDomExports=ce;exports.splitPresenceProps=Tt;exports.useEnvironmentContext=Be;exports.useEvent=Qe;exports.useLocaleContext=In;exports.useMachine=Ge;exports.usePresence=Ct;exports.usePresenceContext=At;
|
|
22
|
-
//# sourceMappingURL=use-locale-context-Cc4BhWV1.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("react"),n=require("./factory-Djhmhla9.js");function o(t){const{key:e,recipe:r}=t,c=n.useChakraContext();return u.useMemo(()=>{const s=r||(e!=null?c.getRecipe(e):{});return c.cva(structuredClone(s))},[e,r,c])}exports.useRecipe=o;
|
|
2
|
-
//# sourceMappingURL=use-recipe-CkP1U6f2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react"),u=require("./factory-Djhmhla9.js");function n(c){const{key:e,recipe:r}=c,t=u.useChakraContext();return o.useMemo(()=>{const s=r||(e!=null?t.getSlotRecipe(e):{});return t.sva(structuredClone(s))},[e,r,t])}exports.useSlotRecipe=n;
|
|
2
|
-
//# sourceMappingURL=use-slot-recipe-ClRnqDPf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-CITbqOLs.js"),r=require("react"),n=require("./stack-DXGLsM8c.js"),s=r.forwardRef(function(t,c){return e.jsxRuntimeExports.jsx(n.Stack,{align:"center",...t,direction:"column",ref:c})});exports.VStack=s;
|
|
2
|
-
//# sourceMappingURL=v-stack-By2b5ZVX.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-CITbqOLs.js"),Z=require("./text.component-uDfPjmx6.js"),h=require("./typography.records-DZdHSCkY.js"),G=require("./icon.component-RnXzLy9Z.js"),M=require("./flex-CoWH4MWg.js"),o=require("react"),T=require("./factory-Djhmhla9.js"),J=require("./create-slot-recipe-context-CNbTdeS5.js"),K=require("./create-recipe-context-yj-_0pxV.js"),P=require("./use-field-context-BPsEZCN4.js"),F=require("./use-locale-context-Cc4BhWV1.js"),l=require("./index-CZ42b9rT.js");function Q(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,e.get?e:{enumerable:!0,get:()=>s[r]})}}return t.default=s,Object.freeze(t)}const U=Q(o),k=o.forwardRef((s,t)=>{const r=P.useFieldContext(),e=l.mergeProps(r.getErrorTextProps(),s);return r?.invalid?i.jsxRuntimeExports.jsx(F.ark.span,{...e,ref:t}):null});k.displayName="FieldErrorText";const H=o.forwardRef((s,t)=>{const r=P.useFieldContext(),e=l.mergeProps(r?.getHelperTextProps(),s);return i.jsxRuntimeExports.jsx(F.ark.span,{...e,ref:t})});H.displayName="FieldHelperText";const L=o.forwardRef((s,t)=>{const r=P.useFieldContext(),e=l.mergeProps(r?.getLabelProps(),s);return i.jsxRuntimeExports.jsx(F.ark.label,{...e,ref:t})});L.displayName="FieldLabel";const V=typeof window<"u"?o.useLayoutEffect:o.useEffect,[pe,X]=F.createContext({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),Y=(s={})=>{const t=X(),{ids:r,disabled:e=!!t?.disabled,invalid:a=!1,readOnly:n=!1,required:d=!1}=s,[c,g]=o.useState(!1),[b,y]=o.useState(!1),u=s.id??o.useId(),p=o.useRef(null),C=r?.control??`field::${u}`,x=r?.errorText??`field::${u}::error-text`,m=r?.helperText??`field::${u}::helper-text`,R=r?.label??`field::${u}::label`;V(()=>{const j=p.current;if(!j)return;const q=l.getWindow(j),A=q.document,_=()=>{g(!!A.getElementById(x)),y(!!A.getElementById(m))};_();const S=new q.MutationObserver(_);return S.observe(j,{childList:!0,subtree:!0}),()=>S.disconnect()},[x,m]);const E=o.useMemo(()=>{const j=[];return c&&a&&j.push(x),b&&j.push(m),j.join(" ")||void 0},[a,x,m,c,b]),w=o.useMemo(()=>()=>({...h.parts.root.attrs,id:C,ref:p,role:"group","data-disabled":l.dataAttr(e),"data-invalid":l.dataAttr(a),"data-readonly":l.dataAttr(n)}),[e,a,n,C]),N=o.useMemo(()=>()=>({...h.parts.label.attrs,id:R,"data-disabled":l.dataAttr(e),"data-invalid":l.dataAttr(a),"data-readonly":l.dataAttr(n),htmlFor:u}),[e,a,n,u,R]),f=o.useMemo(()=>()=>({"aria-describedby":E,"aria-invalid":l.ariaAttr(a),"data-invalid":l.dataAttr(a),"data-required":l.dataAttr(d),"data-readonly":l.dataAttr(n),id:u,required:d,disabled:e,readOnly:n}),[E,a,d,n,u,e]),v=o.useMemo(()=>()=>({...f(),...h.parts.input.attrs}),[f]),$=o.useMemo(()=>()=>({...f(),...h.parts.textarea.attrs}),[f]),D=o.useMemo(()=>()=>({...f(),...h.parts.select.attrs}),[f]),z=o.useMemo(()=>()=>({id:m,...h.parts.helperText.attrs,"data-disabled":l.dataAttr(e)}),[e,m]),B=o.useMemo(()=>()=>({id:x,...h.parts.errorText.attrs,"aria-live":"polite"}),[x]),W=o.useMemo(()=>()=>({"aria-hidden":!0,...h.parts.requiredIndicator.attrs}),[]);return{ariaDescribedby:E,ids:{root:C,control:u,label:R,errorText:x,helperText:m},refs:{rootRef:p},disabled:e,invalid:a,readOnly:n,required:d,getLabelProps:N,getRootProps:w,getInputProps:v,getTextareaProps:$,getSelectProps:D,getHelperTextProps:z,getErrorTextProps:B,getRequiredIndicatorProps:W}},O=o.forwardRef((s,t)=>{const[r,e]=F.createSplitProps()(s,["id","ids","disabled","invalid","readOnly","required"]),a=Y(r),n=l.mergeProps(a.getRootProps(),e);return i.jsxRuntimeExports.jsx(P.FieldProvider,{value:a,children:i.jsxRuntimeExports.jsx(F.ark.div,{...n,ref:F.composeRefs(t,a.refs.rootRef)})})});O.displayName="FieldRoot";const{useRecipeResult:ee}=K.createRecipeContext({key:"icon"}),te=U.forwardRef(function(t,r){const{styles:e,className:a,props:n}=ee({asChild:!t.as,...t});return i.jsxRuntimeExports.jsx(T.chakra.svg,{ref:r,focusable:!1,"aria-hidden":"true",...n,css:[e,t.css],className:T.cx(a,t.className)})});function re(s){const{viewBox:t="0 0 24 24",d:r,displayName:e,defaultProps:a={}}=s,n=o.Children.toArray(s.path),d=o.forwardRef((c,g)=>i.jsxRuntimeExports.jsx(te,{ref:g,asChild:!1,viewBox:t,...a,...c,children:n.length?n:i.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:r})}));return d.displayName=e,d}const{withProvider:se,withContext:I,useStyles:oe,useClassNames:ae}=J.createSlotRecipeContext({key:"field"}),ne=se(O,"root",{forwardAsChild:!0}),ie=I(L,"label",{forwardAsChild:!0}),le=I(H,"helperText",{forwardAsChild:!0}),de=I(k,"errorText",{forwardAsChild:!0});re({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"});const ce=o.forwardRef(function(t,r){const{fallback:e,children:a="*",...n}=t,d=P.useFieldContext(),c=ae(),g=oe();return d?.required?i.jsxRuntimeExports.jsx(T.chakra.span,{ref:r,"aria-hidden":"true",...n,className:T.cx(c.requiredIndicator,t.className),css:[g.requiredIndicator,t.css],children:a}):e}),ue={sm:10,md:12,lg:14},xe=s=>{const t=({disabled:r=!1,errorText:e="Field is invalid",formControlStyle:a,helperText:n,inlineField:d=!1,invalid:c=!1,invalidIconColor:g="warning",label:b,labelPosition:y="start",labelStyle:u,onContrast:p=!1,readOnly:C=!1,required:x=!1,showRequiredElement:m=!1,size:R="md",useInvalidIcon:E=!1,useInvalidText:w=!0,...N})=>{const f=i.jsxRuntimeExports.jsxs(ie,{className:"FormControl__Label",color:p?"text.contrast":"text",fontSize:h.fontSizes[R],...u,onClick:v=>{v.stopPropagation()},children:[b,m&&i.jsxRuntimeExports.jsx(ce,{className:"FormControl__RequiredIndicator",color:p?"text.danger.contrast":"text.danger",...!x&&{fallback:i.jsxRuntimeExports.jsxs(Z.WrappedText,{variant:p?"subtleOnContrast":"subtle",fontSize:ue[R],children:[" ","(Optional)"]})}})]});return i.jsxRuntimeExports.jsxs(ne,{className:"FormControl group",disabled:r,invalid:c,readOnly:C,required:x,width:"auto",...a,children:[i.jsxRuntimeExports.jsxs(M.Flex,{className:"FormControl__Container",flexDirection:d?"row":"column",w:d?"max-content":"100%",gap:2,children:[b&&y==="start"&&f,i.jsxRuntimeExports.jsxs(M.Flex,{className:"FormControl__Content",alignItems:"center",gap:2,w:d?"max-content":"100%",children:[i.jsxRuntimeExports.jsx(s,{disabled:r,invalid:c,onContrast:p,readOnly:C,required:x,size:R,...N}),E&&c&&i.jsxRuntimeExports.jsx(G.Icon,{className:"FormControl__InvalidIcon",name:"warningSign",variant:g,size:R})]}),b&&y==="end"&&f]}),w&&c&&i.jsxRuntimeExports.jsx(de,{className:"FormControl__ErrorText",fontSize:"xs",color:p?"text.danger.contrast":"text.danger",children:e}),n&&i.jsxRuntimeExports.jsx(le,{className:"FormControl__HelperText",fontSize:"xs",color:p?"text.subtle.contrast":"text.subtle",children:n})]})};return t.displayName=`withFormControl(${s.displayName||s.name}`,t};exports.withFormControl=xe;
|
|
2
|
-
//# sourceMappingURL=withFormControl-CUnCiP8H.js.map
|