@televet/kibble-ui 4.0.1 → 5.0.0-beta.hotfix.1
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/alert.types-BKSqs9qY.js +2 -0
- package/dist/chunks/alert.types-BKSqs9qY.js.map +1 -0
- package/dist/chunks/alert.types-C_ygg7fh.js +141 -0
- package/dist/chunks/alert.types-C_ygg7fh.js.map +1 -0
- package/dist/chunks/anatomy-BkGk10kB.js +2 -0
- package/dist/chunks/anatomy-BkGk10kB.js.map +1 -0
- package/dist/chunks/anatomy-zd4ecEFD.js +280 -0
- package/dist/chunks/anatomy-zd4ecEFD.js.map +1 -0
- package/dist/chunks/avatar.component-B1HGlwVW.js +2 -0
- package/dist/chunks/avatar.component-B1HGlwVW.js.map +1 -0
- package/dist/chunks/avatar.component-C-365mx3.js +404 -0
- package/dist/chunks/avatar.component-C-365mx3.js.map +1 -0
- package/dist/chunks/avatar.records-CxLCvZfG.js +2 -0
- package/dist/chunks/avatar.records-CxLCvZfG.js.map +1 -0
- package/dist/chunks/{index-Cv06PsSJ.js → avatar.records-EoZmO3VR.js} +21 -13
- package/dist/chunks/avatar.records-EoZmO3VR.js.map +1 -0
- package/dist/chunks/avatarGroup.component-B-ZOhj7i.js +75 -0
- package/dist/chunks/avatarGroup.component-B-ZOhj7i.js.map +1 -0
- package/dist/chunks/avatarGroup.component-CTBfGiSm.js +2 -0
- package/dist/chunks/avatarGroup.component-CTBfGiSm.js.map +1 -0
- package/dist/chunks/button.component-BO6oee_V.js +69 -0
- package/dist/chunks/button.component-BO6oee_V.js.map +1 -0
- package/dist/chunks/button.component-DjdgBXDC.js +2 -0
- package/dist/chunks/button.component-DjdgBXDC.js.map +1 -0
- package/dist/chunks/button.recipe-Bb0lptGi.js +613 -0
- package/dist/chunks/button.recipe-Bb0lptGi.js.map +1 -0
- package/dist/chunks/button.recipe-flk0XJTS.js +2 -0
- package/dist/chunks/button.recipe-flk0XJTS.js.map +1 -0
- package/dist/chunks/button.types-3lHElsln.js +2 -0
- package/dist/chunks/button.types-3lHElsln.js.map +1 -0
- package/dist/chunks/{button.types-BKXZNvN1.js → button.types-C9PpvmYR.js} +14 -9
- package/dist/chunks/button.types-C9PpvmYR.js.map +1 -0
- package/dist/chunks/buttonGroup.component-CowJsbr7.js +2 -0
- package/dist/chunks/buttonGroup.component-CowJsbr7.js.map +1 -0
- package/dist/chunks/buttonGroup.component-DUK2FgFn.js +70 -0
- package/dist/chunks/buttonGroup.component-DUK2FgFn.js.map +1 -0
- package/dist/chunks/calendar.component-CHIhplfO.js +18 -0
- package/dist/chunks/calendar.component-CHIhplfO.js.map +1 -0
- package/dist/chunks/calendar.component-tOoK1NrU.js +2 -0
- package/dist/chunks/calendar.component-tOoK1NrU.js.map +1 -0
- package/dist/chunks/card.component-B1AznjWF.js +55 -0
- package/dist/chunks/card.component-B1AznjWF.js.map +1 -0
- package/dist/chunks/card.component-BmBiYbMV.js +2 -0
- package/dist/chunks/card.component-BmBiYbMV.js.map +1 -0
- package/dist/chunks/center-Dmlzv1BW.js +20 -0
- package/dist/chunks/center-Dmlzv1BW.js.map +1 -0
- package/dist/chunks/center-kk61ArhQ.js +2 -0
- package/dist/chunks/center-kk61ArhQ.js.map +1 -0
- package/dist/chunks/characterCounter.component-CKDigkoD.js +2 -0
- package/dist/chunks/characterCounter.component-CKDigkoD.js.map +1 -0
- package/dist/chunks/characterCounter.component-Ch3P3GqC.js +82 -0
- package/dist/chunks/characterCounter.component-Ch3P3GqC.js.map +1 -0
- package/dist/chunks/{checkbox.anatomy-DC8fJdkY.js → checkbox.anatomy-BzZ0IkUF.js} +22 -22
- package/dist/chunks/{checkbox.anatomy-DC8fJdkY.js.map → checkbox.anatomy-BzZ0IkUF.js.map} +1 -1
- package/dist/chunks/{checkbox.anatomy-BNdLT4Qf.js → checkbox.anatomy-DM39E2Q9.js} +2 -2
- package/dist/chunks/{checkbox.anatomy-BNdLT4Qf.js.map → checkbox.anatomy-DM39E2Q9.js.map} +1 -1
- package/dist/chunks/checkbox.component-CiA3Z1zR.js +2 -0
- package/dist/chunks/{checkbox.component-DNOkXggb.js.map → checkbox.component-CiA3Z1zR.js.map} +1 -1
- package/dist/chunks/checkbox.component-DE35wBj-.js +269 -0
- package/dist/chunks/{checkbox.component-Dhjcu89D.js.map → checkbox.component-DE35wBj-.js.map} +1 -1
- package/dist/chunks/checkboxGroup.component-BGBd-roJ.js +2 -0
- package/dist/chunks/checkboxGroup.component-BGBd-roJ.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-CYwGlktu.js +53 -0
- package/dist/chunks/checkboxGroup.component-CYwGlktu.js.map +1 -0
- package/dist/chunks/{config-B3QABP1-.js → config-Djkl1N81.js} +4 -4
- package/dist/chunks/{config-B3QABP1-.js.map → config-Djkl1N81.js.map} +1 -1
- package/dist/chunks/conversationCard.component-BrDGshOG.js +2 -0
- package/dist/chunks/conversationCard.component-BrDGshOG.js.map +1 -0
- package/dist/chunks/conversationCard.component-CMdqD3yN.js +331 -0
- package/dist/chunks/conversationCard.component-CMdqD3yN.js.map +1 -0
- package/dist/chunks/{create-recipe-context-CrEKmpj8.js → create-recipe-context-DfQ-MTih.js} +9 -9
- package/dist/chunks/{create-recipe-context-CrEKmpj8.js.map → create-recipe-context-DfQ-MTih.js.map} +1 -1
- package/dist/chunks/create-slot-recipe-context-D_FXDJGp.js +104 -0
- package/dist/chunks/create-slot-recipe-context-D_FXDJGp.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-HXE1VazG.js +2 -0
- package/dist/chunks/create-slot-recipe-context-HXE1VazG.js.map +1 -0
- package/dist/chunks/datePicker.component-C6cD1_HR.js +2 -0
- package/dist/chunks/datePicker.component-C6cD1_HR.js.map +1 -0
- package/dist/chunks/datePicker.component-eHU7IZgC.js +166 -0
- package/dist/chunks/datePicker.component-eHU7IZgC.js.map +1 -0
- package/dist/chunks/datePicker.provider-BWHE-9FA.js +3009 -0
- package/dist/chunks/datePicker.provider-BWHE-9FA.js.map +1 -0
- package/dist/chunks/datePicker.provider-DgarjPPd.js +15 -0
- package/dist/chunks/datePicker.provider-DgarjPPd.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-Byjxg2lJ.js +317 -0
- package/dist/chunks/dateTimePicker.component-Byjxg2lJ.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-REz9iX4S.js +2 -0
- package/dist/chunks/dateTimePicker.component-REz9iX4S.js.map +1 -0
- package/dist/chunks/{dialog-C51vaoYf.js → dialog-B9jifvV4.js} +37 -36
- package/dist/chunks/{dialog-C51vaoYf.js.map → dialog-B9jifvV4.js.map} +1 -1
- package/dist/chunks/dialog-CZFwddWp.js +2 -0
- package/dist/chunks/{dialog-BPhjKQkb.js.map → dialog-CZFwddWp.js.map} +1 -1
- package/dist/chunks/divider.component-BX3zyB7O.js +2 -0
- package/dist/chunks/divider.component-BX3zyB7O.js.map +1 -0
- package/dist/chunks/divider.component-CFOh4Nw3.js +45 -0
- package/dist/chunks/divider.component-CFOh4Nw3.js.map +1 -0
- package/dist/chunks/divider.types-6MEkMNbx.js +7 -0
- package/dist/chunks/divider.types-6MEkMNbx.js.map +1 -0
- package/dist/chunks/divider.types-DBNcs0IR.js +2 -0
- package/dist/chunks/divider.types-DBNcs0IR.js.map +1 -0
- package/dist/chunks/{empty-BU2EAux9.js → empty-DNH84khx.js} +3 -3
- package/dist/chunks/{empty-BU2EAux9.js.map → empty-DNH84khx.js.map} +1 -1
- package/dist/chunks/field.anatomy-Bhj7Mlr7.js +2 -0
- package/dist/chunks/field.anatomy-Bhj7Mlr7.js.map +1 -0
- package/dist/chunks/field.anatomy-C37GEr2p.js +16 -0
- package/dist/chunks/field.anatomy-C37GEr2p.js.map +1 -0
- package/dist/chunks/{format-BRt-TIiQ.js → format-CK7Imh-5.js} +2 -2
- package/dist/chunks/{format-BRt-TIiQ.js.map → format-CK7Imh-5.js.map} +1 -1
- package/dist/chunks/{format-DgHM6wFr.js → format-CqTHHSak.js} +3 -1
- package/dist/chunks/{format-DgHM6wFr.js.map → format-CqTHHSak.js.map} +1 -1
- package/dist/chunks/grid-item-BmCSQ38y.js +78 -0
- package/dist/chunks/grid-item-BmCSQ38y.js.map +1 -0
- package/dist/chunks/grid-item-CH3dbZHL.js +2 -0
- package/dist/chunks/grid-item-CH3dbZHL.js.map +1 -0
- package/dist/chunks/heading.component-7ikcgDco.js +18 -0
- package/dist/chunks/heading.component-7ikcgDco.js.map +1 -0
- package/dist/chunks/heading.component-DMAQO_-m.js +2 -0
- package/dist/chunks/heading.component-DMAQO_-m.js.map +1 -0
- package/dist/chunks/{icon-button-5UcFiA_W.js → icon-button-CcZMCNUJ.js} +3 -3
- package/dist/chunks/{icon-button-5UcFiA_W.js.map → icon-button-CcZMCNUJ.js.map} +1 -1
- package/dist/chunks/icon.component-B1hr5lLa.js +2 -0
- package/dist/chunks/icon.component-B1hr5lLa.js.map +1 -0
- package/dist/chunks/icon.component-PV_nHBId.js +32 -0
- package/dist/chunks/icon.component-PV_nHBId.js.map +1 -0
- package/dist/chunks/{icons-DQ5FafZQ.js → icons-CoSqruIn.js} +5 -5
- package/dist/chunks/{icons-DQ5FafZQ.js.map → icons-CoSqruIn.js.map} +1 -1
- package/dist/chunks/index-B-OGBT0w.js +2 -0
- package/dist/chunks/{index-BEfEzWJx.js.map → index-B-OGBT0w.js.map} +1 -1
- package/dist/chunks/index-B3xJnxjd.js +371 -0
- package/dist/chunks/index-B3xJnxjd.js.map +1 -0
- package/dist/chunks/index-BFUdiDZp.js +2 -0
- package/dist/chunks/{index-2glJ2faJ.js.map → index-BFUdiDZp.js.map} +1 -1
- package/dist/chunks/{index-CVJXrcei.js → index-BGd_2-DY.js} +29 -27
- package/dist/chunks/{index-CVJXrcei.js.map → index-BGd_2-DY.js.map} +1 -1
- package/dist/chunks/index-BXv9lkZC.js +4 -0
- package/dist/chunks/index-BXv9lkZC.js.map +1 -0
- package/dist/chunks/index-BbZjRFzg.js +265 -0
- package/dist/chunks/index-BbZjRFzg.js.map +1 -0
- package/dist/chunks/{index-CYXurbh4.js → index-BgFImxxe.js} +27 -25
- package/dist/chunks/{index-CYXurbh4.js.map → index-BgFImxxe.js.map} +1 -1
- package/dist/chunks/index-BoulS5Zg.js +2 -0
- package/dist/chunks/index-BoulS5Zg.js.map +1 -0
- package/dist/chunks/index-BrJtqTzN.js +4115 -0
- package/dist/chunks/index-BrJtqTzN.js.map +1 -0
- package/dist/chunks/index-C9UYIjEB.js +1584 -0
- package/dist/chunks/index-C9UYIjEB.js.map +1 -0
- package/dist/chunks/index-CQURjLlA.js +3 -0
- package/dist/chunks/index-CQURjLlA.js.map +1 -0
- package/dist/chunks/{index-BXJJKHzT.js → index-CbVKVxMW.js} +54 -52
- package/dist/chunks/{index-BXJJKHzT.js.map → index-CbVKVxMW.js.map} +1 -1
- package/dist/chunks/{index-CWhDtS-n.js → index-Cxrrsmf-.js} +17 -16
- package/dist/chunks/{index-CWhDtS-n.js.map → index-Cxrrsmf-.js.map} +1 -1
- package/dist/chunks/{index-BZBgTxer.js → index-D0DKQnEK.js} +11 -11
- package/dist/chunks/{index-BZBgTxer.js.map → index-D0DKQnEK.js.map} +1 -1
- package/dist/chunks/index-D1RhzPVz.js +984 -0
- package/dist/chunks/index-D1RhzPVz.js.map +1 -0
- package/dist/chunks/index-D3Q0mQNf.js +325 -0
- package/dist/chunks/index-D3Q0mQNf.js.map +1 -0
- package/dist/chunks/index-D6HBfqAu.js +2 -0
- package/dist/chunks/index-D6HBfqAu.js.map +1 -0
- package/dist/chunks/index-D6c4fMjg.js +2 -0
- package/dist/chunks/index-D6c4fMjg.js.map +1 -0
- package/dist/chunks/{index-CfqoBQoP.js → index-D7QT9KIZ.js} +9 -9
- package/dist/chunks/{index-CfqoBQoP.js.map → index-D7QT9KIZ.js.map} +1 -1
- package/dist/chunks/{index-WYcfOUFA.js → index-DIszpWqO.js} +2 -2
- package/dist/chunks/{index-WYcfOUFA.js.map → index-DIszpWqO.js.map} +1 -1
- package/dist/chunks/{index-D0HCo_Ly.js → index-DLe40do7.js} +2 -2
- package/dist/chunks/{index-D0HCo_Ly.js.map → index-DLe40do7.js.map} +1 -1
- package/dist/chunks/index-DS4KlAkI.js +371 -0
- package/dist/chunks/index-DS4KlAkI.js.map +1 -0
- package/dist/chunks/{index-nNZWP0FQ.js → index-DTVestnf.js} +2 -2
- package/dist/chunks/{index-nNZWP0FQ.js.map → index-DTVestnf.js.map} +1 -1
- package/dist/chunks/index-DVyODQn6.js +8 -0
- package/dist/chunks/index-DVyODQn6.js.map +1 -0
- package/dist/chunks/index-D_vndwae.js +3 -0
- package/dist/chunks/index-D_vndwae.js.map +1 -0
- package/dist/chunks/index-DfzXSlq1.js +2477 -0
- package/dist/chunks/index-DfzXSlq1.js.map +1 -0
- package/dist/chunks/{index-BhSvtzbY.js → index-QVc_GVoE.js} +13 -13
- package/dist/chunks/{index-BhSvtzbY.js.map → index-QVc_GVoE.js.map} +1 -1
- package/dist/chunks/index-Ts8g8jZd.js +2 -0
- package/dist/chunks/index-Ts8g8jZd.js.map +1 -0
- package/dist/chunks/index-_913FPya.js +2 -0
- package/dist/chunks/{index-A_vmTNU7.js.map → index-_913FPya.js.map} +1 -1
- package/dist/chunks/index-fHSGm2nC.js +1044 -0
- package/dist/chunks/index-fHSGm2nC.js.map +1 -0
- package/dist/chunks/{index-eNFIsSpE.js → index-kpOEHtZZ.js} +2 -2
- package/dist/chunks/{index-eNFIsSpE.js.map → index-kpOEHtZZ.js.map} +1 -1
- package/dist/chunks/index-rSq6Bry6.js +2 -0
- package/dist/chunks/{index-DAI6_P9H.js.map → index-rSq6Bry6.js.map} +1 -1
- package/dist/chunks/{index-BhPrz8Zu.js → index-wV4hG2vI.js} +19 -19
- package/dist/chunks/{index-BhPrz8Zu.js.map → index-wV4hG2vI.js.map} +1 -1
- package/dist/chunks/index-yh2QitBe.js +2 -0
- package/dist/chunks/index-yh2QitBe.js.map +1 -0
- package/dist/chunks/input-group-CFelIL63.js +78 -0
- package/dist/chunks/input-group-CFelIL63.js.map +1 -0
- package/dist/chunks/input-group-DUdSDk4o.js +2 -0
- package/dist/chunks/input-group-DUdSDk4o.js.map +1 -0
- package/dist/chunks/isToday-BgNkHh5t.js +2 -0
- package/dist/chunks/isToday-BgNkHh5t.js.map +1 -0
- package/dist/chunks/isToday-iCYsPDMT.js +23 -0
- package/dist/chunks/isToday-iCYsPDMT.js.map +1 -0
- package/dist/chunks/link.component--URNKuK2.js +44 -0
- package/dist/chunks/link.component--URNKuK2.js.map +1 -0
- package/dist/chunks/link.component-_YXG8MDq.js +2 -0
- package/dist/chunks/link.component-_YXG8MDq.js.map +1 -0
- package/dist/chunks/{list-D22V_L58.js → list-DTRn3TmT.js} +2 -2
- package/dist/chunks/{list-D22V_L58.js.map → list-DTRn3TmT.js.map} +1 -1
- package/dist/chunks/{list-DwRM9eA_.js → list-v83ZN2MC.js} +2 -2
- package/dist/chunks/{list-DwRM9eA_.js.map → list-v83ZN2MC.js.map} +1 -1
- package/dist/chunks/logo.types-88a31xCx.js +2 -0
- package/dist/chunks/logo.types-88a31xCx.js.map +1 -0
- package/dist/chunks/logo.types-C5GwpHjM.js +51 -0
- package/dist/chunks/logo.types-C5GwpHjM.js.map +1 -0
- package/dist/chunks/menu.component-D4-4xRDj.js +2 -0
- package/dist/chunks/menu.component-D4-4xRDj.js.map +1 -0
- package/dist/chunks/menu.component-DwTen8Uv.js +704 -0
- package/dist/chunks/menu.component-DwTen8Uv.js.map +1 -0
- package/dist/chunks/modal.types-74os4Bqi.js +2 -0
- package/dist/chunks/modal.types-74os4Bqi.js.map +1 -0
- package/dist/chunks/modal.types-B0rK6xJy.js +115 -0
- package/dist/chunks/modal.types-B0rK6xJy.js.map +1 -0
- package/dist/chunks/{notificationCounter.component-Lu4_Owvr.js → notificationCounter.component-BexkISUl.js} +37 -18
- package/dist/chunks/notificationCounter.component-BexkISUl.js.map +1 -0
- package/dist/chunks/notificationCounter.component-DJpUXeXm.js +2 -0
- package/dist/chunks/notificationCounter.component-DJpUXeXm.js.map +1 -0
- package/dist/chunks/numberInput.component-DIABzNV6.js +2 -0
- package/dist/chunks/numberInput.component-DIABzNV6.js.map +1 -0
- package/dist/chunks/numberInput.component-RCwUUzmH.js +227 -0
- package/dist/chunks/numberInput.component-RCwUUzmH.js.map +1 -0
- package/dist/chunks/picture.component-BA2hgdZy.js +2 -0
- package/dist/chunks/picture.component-BA2hgdZy.js.map +1 -0
- package/dist/chunks/picture.component-DzdHIFN_.js +28 -0
- package/dist/chunks/picture.component-DzdHIFN_.js.map +1 -0
- package/dist/chunks/pinInput.types-BCzsoF9r.js +2 -0
- package/dist/chunks/{pinInput.types-Cqm1Px5l.js.map → pinInput.types-BCzsoF9r.js.map} +1 -1
- package/dist/chunks/pinInput.types-CcaAN6P2.js +155 -0
- package/dist/chunks/{pinInput.types-CcN0aX_i.js.map → pinInput.types-CcaAN6P2.js.map} +1 -1
- package/dist/chunks/popover-C7aj8Iwj.js +2 -0
- package/dist/chunks/popover-C7aj8Iwj.js.map +1 -0
- package/dist/chunks/popover-pd70xkY_.js +111 -0
- package/dist/chunks/popover-pd70xkY_.js.map +1 -0
- package/dist/chunks/popover-root-provider-CZDbUJ2K.js +2 -0
- package/dist/chunks/{popover-root-provider-ZB5BcrXn.js.map → popover-root-provider-CZDbUJ2K.js.map} +1 -1
- package/dist/chunks/popover-root-provider-DR0Iuda1.js +44 -0
- package/dist/chunks/{popover-root-provider-CkW1eCBQ.js.map → popover-root-provider-DR0Iuda1.js.map} +1 -1
- package/dist/chunks/popover.component-BBp_5m8e.js +2 -0
- package/dist/chunks/popover.component-BBp_5m8e.js.map +1 -0
- package/dist/chunks/popover.component-DEOUdSu3.js +220 -0
- package/dist/chunks/popover.component-DEOUdSu3.js.map +1 -0
- package/dist/chunks/popover.recipe-B9bkpDfc.js +126 -0
- package/dist/chunks/popover.recipe-B9bkpDfc.js.map +1 -0
- package/dist/chunks/popover.recipe-Czy8Aeft.js +2 -0
- package/dist/chunks/popover.recipe-Czy8Aeft.js.map +1 -0
- package/dist/chunks/popover.types-CQJj3uOX.js +7 -0
- package/dist/chunks/popover.types-CQJj3uOX.js.map +1 -0
- package/dist/chunks/popover.types-ChA9ccQ2.js +2 -0
- package/dist/chunks/popover.types-ChA9ccQ2.js.map +1 -0
- package/dist/chunks/progress-value-text-CFVhPKYk.js +2 -0
- package/dist/chunks/progress-value-text-CFVhPKYk.js.map +1 -0
- package/dist/chunks/progress-value-text-DZkUF2cO.js +58 -0
- package/dist/chunks/progress-value-text-DZkUF2cO.js.map +1 -0
- package/dist/chunks/radioGroup.types-C7A8mLMz.js +2 -0
- package/dist/chunks/radioGroup.types-C7A8mLMz.js.map +1 -0
- package/dist/chunks/radioGroup.types-DJ68ERdO.js +228 -0
- package/dist/chunks/radioGroup.types-DJ68ERdO.js.map +1 -0
- package/dist/chunks/radiomark-Cj0NEJeE.js +2 -0
- package/dist/chunks/radiomark-Cj0NEJeE.js.map +1 -0
- package/dist/chunks/radiomark-DdwVpBDT.js +22 -0
- package/dist/chunks/radiomark-DdwVpBDT.js.map +1 -0
- package/dist/chunks/radiomark.component-D_7wT5VA.js +11 -0
- package/dist/chunks/radiomark.component-D_7wT5VA.js.map +1 -0
- package/dist/chunks/radiomark.component-YJNr68s7.js +2 -0
- package/dist/chunks/radiomark.component-YJNr68s7.js.map +1 -0
- package/dist/chunks/rating-group-CfwdAW9a.js +133 -0
- package/dist/chunks/rating-group-CfwdAW9a.js.map +1 -0
- package/dist/chunks/rating-group-D8QA23q6.js +2 -0
- package/dist/chunks/rating-group-D8QA23q6.js.map +1 -0
- package/dist/chunks/rating.component-BsuGbcxP.js +2 -0
- package/dist/chunks/rating.component-BsuGbcxP.js.map +1 -0
- package/dist/chunks/rating.component-ChzcvUl6.js +70 -0
- package/dist/chunks/rating.component-ChzcvUl6.js.map +1 -0
- package/dist/chunks/ratingDots.component-CVjSZ9JJ.js +2 -0
- package/dist/chunks/ratingDots.component-CVjSZ9JJ.js.map +1 -0
- package/dist/chunks/ratingDots.component-D9WQGVcj.js +147 -0
- package/dist/chunks/ratingDots.component-D9WQGVcj.js.map +1 -0
- package/dist/chunks/{render-strategy-CfHUEDVm.js → render-strategy-kPh1pd2U.js} +2 -2
- package/dist/chunks/{render-strategy-CfHUEDVm.js.map → render-strategy-kPh1pd2U.js.map} +1 -1
- package/dist/chunks/{render-strategy-Dr73HbQf.js → render-strategy-munDZLwL.js} +2 -2
- package/dist/chunks/{render-strategy-Dr73HbQf.js.map → render-strategy-munDZLwL.js.map} +1 -1
- package/dist/chunks/select.component-B4mAPqzN.js +1099 -0
- package/dist/chunks/select.component-B4mAPqzN.js.map +1 -0
- package/dist/chunks/select.component-CCNxMGvb.js +2 -0
- package/dist/chunks/select.component-CCNxMGvb.js.map +1 -0
- package/dist/chunks/{sortableList.component-vxiA7bvr.js → sortableList.component-BlwtnxVj.js} +3 -3
- package/dist/chunks/{sortableList.component-vxiA7bvr.js.map → sortableList.component-BlwtnxVj.js.map} +1 -1
- package/dist/chunks/{sortableList.component-i4dJ9oHN.js → sortableList.component-XfURY7C2.js} +384 -379
- package/dist/chunks/{sortableList.component-i4dJ9oHN.js.map → sortableList.component-XfURY7C2.js.map} +1 -1
- package/dist/chunks/spinner-B9ytCKVs.js +8 -0
- package/dist/chunks/{spinner-C31ZWQmA.js.map → spinner-B9ytCKVs.js.map} +1 -1
- package/dist/chunks/{spinner.component-DPYj17HK.js → spinner.component-B3dkvoO9.js} +53 -45
- package/dist/chunks/spinner.component-B3dkvoO9.js.map +1 -0
- package/dist/chunks/spinner.component-DuW1_IWM.js +2 -0
- package/dist/chunks/spinner.component-DuW1_IWM.js.map +1 -0
- package/dist/chunks/styledAvatar.types-CcP-Vl9c.js +2 -0
- package/dist/chunks/styledAvatar.types-CcP-Vl9c.js.map +1 -0
- package/dist/chunks/styledAvatar.types-cR6PNPxA.js +69 -0
- package/dist/chunks/styledAvatar.types-cR6PNPxA.js.map +1 -0
- package/dist/chunks/swatch.types-AZLB8OWG.js +2 -0
- package/dist/chunks/swatch.types-AZLB8OWG.js.map +1 -0
- package/dist/chunks/{swatch.types-CXlghcLw.js → swatch.types-CkrkMi11.js} +21 -20
- package/dist/chunks/swatch.types-CkrkMi11.js.map +1 -0
- package/dist/chunks/switch.component-CgzCLoTB.js +2 -0
- package/dist/chunks/{switch.component-Cke7O8gk.js.map → switch.component-CgzCLoTB.js.map} +1 -1
- package/dist/chunks/switch.component-CpV7mnhR.js +155 -0
- package/dist/chunks/{switch.component-C88jBbo_.js.map → switch.component-CpV7mnhR.js.map} +1 -1
- package/dist/chunks/{tab.types-DCkus0y2.js → tab.types-DaJfFBvr.js} +136 -117
- package/dist/chunks/{tab.types-DCkus0y2.js.map → tab.types-DaJfFBvr.js.map} +1 -1
- package/dist/chunks/tab.types-DwPEP_5N.js +2 -0
- package/dist/chunks/{tab.types-DpmXyw5C.js.map → tab.types-DwPEP_5N.js.map} +1 -1
- package/dist/chunks/tag.component-B7V76XfM.js +84 -0
- package/dist/chunks/tag.component-B7V76XfM.js.map +1 -0
- package/dist/chunks/tag.component-C98Wf07v.js +2 -0
- package/dist/chunks/tag.component-C98Wf07v.js.map +1 -0
- package/dist/chunks/tagBlock.component-BGEvRu81.js +2 -0
- package/dist/chunks/tagBlock.component-BGEvRu81.js.map +1 -0
- package/dist/chunks/tagBlock.component-Cor6eakc.js +170 -0
- package/dist/chunks/tagBlock.component-Cor6eakc.js.map +1 -0
- package/dist/chunks/text.component-CdTyTFds.js +12 -0
- package/dist/chunks/text.component-CdTyTFds.js.map +1 -0
- package/dist/chunks/text.component-CeioUl0G.js +2 -0
- package/dist/chunks/text.component-CeioUl0G.js.map +1 -0
- package/dist/chunks/textInput.component-BC0Hi8R_.js +108 -0
- package/dist/chunks/textInput.component-BC0Hi8R_.js.map +1 -0
- package/dist/chunks/textInput.component-C1vwy6pL.js +2 -0
- package/dist/chunks/textInput.component-C1vwy6pL.js.map +1 -0
- package/dist/chunks/textarea.component-D15hA9Jb.js +2 -0
- package/dist/chunks/{textarea.component-Dk2IMKkr.js.map → textarea.component-D15hA9Jb.js.map} +1 -1
- package/dist/chunks/textarea.component-axjxiv82.js +96 -0
- package/dist/chunks/{textarea.component-BYexywy1.js.map → textarea.component-axjxiv82.js.map} +1 -1
- package/dist/chunks/{theme.provider-w_I9S10D.js → theme.provider-BD7qyu-B.js} +1405 -1339
- package/dist/chunks/theme.provider-BD7qyu-B.js.map +1 -0
- package/dist/chunks/theme.provider-DFwAy7tr.js +28 -0
- package/dist/chunks/theme.provider-DFwAy7tr.js.map +1 -0
- package/dist/chunks/timePicker.component-Cz2XxVL6.js +2 -0
- package/dist/chunks/timePicker.component-Cz2XxVL6.js.map +1 -0
- package/dist/chunks/timePicker.component-u34pHrzr.js +220 -0
- package/dist/chunks/timePicker.component-u34pHrzr.js.map +1 -0
- package/dist/chunks/timeRange.component-BiA1VWQ8.js +19 -0
- package/dist/chunks/timeRange.component-BiA1VWQ8.js.map +1 -0
- package/dist/chunks/timeRange.component-tU_nCTmS.js +2 -0
- package/dist/chunks/timeRange.component-tU_nCTmS.js.map +1 -0
- package/dist/chunks/timestamp.component-DBmc7D23.js +36 -0
- package/dist/chunks/timestamp.component-DBmc7D23.js.map +1 -0
- package/dist/chunks/timestamp.component-DYZHgaas.js +2 -0
- package/dist/chunks/timestamp.component-DYZHgaas.js.map +1 -0
- package/dist/chunks/toaster.records-CDSkoMuU.js +2 -0
- package/dist/chunks/{toaster.records-eCXbM85Z.js.map → toaster.records-CDSkoMuU.js.map} +1 -1
- package/dist/chunks/{toaster.records-oryzm5Go.js → toaster.records-Cb3hbtuY.js} +103 -102
- package/dist/chunks/{toaster.records-oryzm5Go.js.map → toaster.records-Cb3hbtuY.js.map} +1 -1
- package/dist/chunks/tooltip.component-BkFDi5yK.js +2 -0
- package/dist/chunks/{tooltip.component-CATpCSkf.js.map → tooltip.component-BkFDi5yK.js.map} +1 -1
- package/dist/chunks/{tooltip.component-mjdP7nPN.js → tooltip.component-C_NS-AoH.js} +126 -103
- package/dist/chunks/{tooltip.component-mjdP7nPN.js.map → tooltip.component-C_NS-AoH.js.map} +1 -1
- package/dist/chunks/{typography.records-CpYV1kns.js → typography.records-BEd2lI_g.js} +10 -22
- package/dist/chunks/typography.records-BEd2lI_g.js.map +1 -0
- package/dist/chunks/typography.records-Cg_lT1Z3.js +2 -0
- package/dist/chunks/typography.records-Cg_lT1Z3.js.map +1 -0
- package/dist/chunks/{use-field-context-BTxME29X.js → use-field-context-Cm29IQ7H.js} +2 -2
- package/dist/chunks/{use-field-context-BTxME29X.js.map → use-field-context-Cm29IQ7H.js.map} +1 -1
- package/dist/chunks/{use-field-context-RQeEcNpb.js → use-field-context-DrC9mrDd.js} +2 -2
- package/dist/chunks/{use-field-context-RQeEcNpb.js.map → use-field-context-DrC9mrDd.js.map} +1 -1
- package/dist/chunks/use-locale-context-Bw4Gg9Z0.js +738 -0
- package/dist/chunks/use-locale-context-Bw4Gg9Z0.js.map +1 -0
- package/dist/chunks/use-locale-context-ym21RUxU.js +22 -0
- package/dist/chunks/use-locale-context-ym21RUxU.js.map +1 -0
- package/dist/chunks/useIconTextSizeMap-BK-pUrQv.js.map +1 -1
- package/dist/chunks/useIconTextSizeMap-BXmABb54.js.map +1 -1
- package/dist/chunks/withFormControl-DePFf9SY.js +367 -0
- package/dist/chunks/withFormControl-DePFf9SY.js.map +1 -0
- package/dist/chunks/withFormControl-wZA87Sd4.js +2 -0
- package/dist/chunks/withFormControl-wZA87Sd4.js.map +1 -0
- package/dist/chunks/withTruncation-DE3FFPE7.js +2 -0
- package/dist/chunks/withTruncation-DE3FFPE7.js.map +1 -0
- package/dist/chunks/withTruncation-DTCfQ2yk.js +92 -0
- package/dist/chunks/withTruncation-DTCfQ2yk.js.map +1 -0
- package/dist/chunks/{wrap-CRNL4bE6.js → wrap-Cu5ZEseD.js} +2 -2
- package/dist/chunks/{wrap-CRNL4bE6.js.map → wrap-Cu5ZEseD.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +2 -2
- 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/Calendar/index.cjs +2 -0
- package/dist/cjs/components/Calendar/index.cjs.map +1 -0
- 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/DateTimePicker/index.cjs +2 -0
- package/dist/cjs/components/DateTimePicker/index.cjs.map +1 -0
- 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/generated/index.cjs.map +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/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/NumberInput/index.cjs +2 -0
- package/dist/cjs/components/NumberInput/index.cjs.map +1 -0
- 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/Progress/index.cjs +2 -0
- package/dist/cjs/components/Progress/index.cjs.map +1 -0
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/Radiomark/index.cjs +2 -0
- package/dist/cjs/components/Radiomark/index.cjs.map +1 -0
- package/dist/cjs/components/Rating/index.cjs +2 -0
- package/dist/cjs/components/Rating/index.cjs.map +1 -0
- 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/Toast/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs.map +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -1
- package/dist/cjs/hooks/useColorMode/index.cjs.map +1 -1
- package/dist/cjs/hooks/useColorModeValue/index.cjs.map +1 -1
- package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
- package/dist/esm/chakra/index.js +1682 -1997
- package/dist/esm/chakra/index.js.map +1 -1
- 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 +2 -2
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Calendar/index.js +5 -0
- package/dist/esm/components/Calendar/index.js.map +1 -0
- 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 +4 -3
- package/dist/esm/components/DatePicker/index.js.map +1 -1
- package/dist/esm/components/DateTimePicker/index.js +7 -0
- package/dist/esm/components/DateTimePicker/index.js.map +1 -0
- package/dist/esm/components/Divider/index.js +6 -5
- package/dist/esm/components/Divider/index.js.map +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/generated/index.js +556 -342
- package/dist/esm/components/Icon/generated/index.js.map +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/NumberInput/index.js +5 -0
- package/dist/esm/components/NumberInput/index.js.map +1 -0
- 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 +2 -2
- package/dist/esm/components/Progress/index.js +57 -0
- package/dist/esm/components/Progress/index.js.map +1 -0
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/Radiomark/index.js +5 -0
- package/dist/esm/components/Radiomark/index.js.map +1 -0
- package/dist/esm/components/Rating/index.js +5 -0
- package/dist/esm/components/Rating/index.js.map +1 -0
- 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/Toast/index.js +26 -23
- package/dist/esm/components/Toast/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +131 -117
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/hooks/useBreakpoint/index.js.map +1 -1
- package/dist/esm/hooks/useColorMode/index.js.map +1 -1
- package/dist/esm/hooks/useColorModeValue/index.js.map +1 -1
- package/dist/esm/hooks/useDeviceType/index.js.map +1 -1
- package/dist/esm/index.js +148 -134
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/semanticTokens/index.js +4 -4
- package/dist/esm/theme/semanticTokens/index.js.map +1 -1
- package/dist/types/chakra/index.d.ts +2 -4
- package/dist/types/components/Alert/alert.component.d.ts +28 -1
- package/dist/types/components/Alert/alert.recipe.d.ts +3 -2
- package/dist/types/components/Alert/components/AlertButton/alertButton.component.d.ts +12 -1
- package/dist/types/components/Avatar/avatar.component.d.ts +30 -2
- package/dist/types/components/Avatar/avatar.recipe.d.ts +3 -2
- package/dist/types/components/Avatar/avatar.records.d.ts +2 -0
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +9 -1
- package/dist/types/components/Avatar/components/AvatarRemoveButton/avatarRemoveButton.component.d.ts +15 -6
- package/dist/types/components/Avatar/components/AvatarTooltipTriggerWrapper/avatarTooltipTriggerWrapper.component.d.ts +2 -0
- package/dist/types/components/AvatarGroup/avatarGroup.component.d.ts +27 -3
- package/dist/types/components/Button/button.component.d.ts +14 -1
- package/dist/types/components/Button/button.recipe.d.ts +3 -1
- package/dist/types/components/Button/button.types.d.ts +2 -2
- package/dist/types/components/ButtonGroup/buttonGroup.component.d.ts +12 -1
- package/dist/types/components/Calendar/calendar.component.d.ts +19 -0
- package/dist/types/components/Calendar/index.d.ts +1 -0
- package/dist/types/components/Card/card.component.d.ts +41 -1
- package/dist/types/components/CharacterCounter/characterCounter.component.d.ts +9 -1
- package/dist/types/components/Checkbox/checkbox.component.d.ts +19 -2
- package/dist/types/components/Checkbox/checkbox.recipe.d.ts +3 -2
- package/dist/types/components/Checkbox/checkbox.types.d.ts +4 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/CheckboxGroup/checkboxGroup.component.d.ts +12 -2
- package/dist/types/components/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +11 -1
- package/dist/types/components/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +22 -1
- package/dist/types/components/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +8 -1
- package/dist/types/components/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +8 -1
- package/dist/types/components/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +12 -1
- package/dist/types/components/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +7 -1
- package/dist/types/components/ConversationCard/conversationCard.component.d.ts +29 -1
- package/dist/types/components/DatePicker/components/DatePickerCalendar/datePickerCalendar.component.d.ts +10 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.component.d.ts +11 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.recipe.d.ts +5 -4
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.types.d.ts +1 -1
- package/dist/types/components/DatePicker/components/DatePickerFooter/datePickerFooter.component.d.ts +9 -0
- package/dist/types/components/DatePicker/components/DatePickerHeader/datePickerHeader.component.d.ts +15 -1
- package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.component.d.ts +6 -1
- package/dist/types/components/DatePicker/components/DatePickerMonth/datePickerCalendarMonth.component.d.ts +11 -1
- package/dist/types/components/DatePicker/context/datePicker.context.d.ts +3 -0
- package/dist/types/components/DatePicker/context/datePicker.provider.d.ts +10 -1
- package/dist/types/components/DatePicker/datePicker.component.d.ts +25 -11
- package/dist/types/components/DatePicker/datePicker.types.d.ts +18 -0
- package/dist/types/components/DatePicker/hooks/useComputeCornerRoundingFlags.d.ts +10 -0
- package/dist/types/components/DatePicker/utils/getDayVariant.d.ts +12 -0
- package/dist/types/components/DateTimePicker/components/DateTimePickerCustomView/dateTimePickerCustomView.component.d.ts +7 -0
- package/dist/types/components/DateTimePicker/components/DateTimePickerQuickOptions/dateTimePickerQuickOptions.component.d.ts +14 -0
- package/dist/types/components/DateTimePicker/components/DateTimePickerRangeSelector/dateTimePickerRangeSelector.component.d.ts +10 -0
- package/dist/types/components/DateTimePicker/dateTimePicker.component.d.ts +33 -0
- package/dist/types/components/DateTimePicker/dateTimePicker.records.d.ts +8 -0
- package/dist/types/components/DateTimePicker/dateTimePicker.types.d.ts +11 -0
- package/dist/types/components/DateTimePicker/index.d.ts +2 -0
- package/dist/types/components/DateTimePicker/utils/quickOptions.d.ts +13 -0
- package/dist/types/components/Divider/divider.component.d.ts +7 -2
- package/dist/types/components/Heading/heading.component.d.ts +12 -0
- package/dist/types/components/Icon/generated/Backspace.d.ts +10 -0
- package/dist/types/components/Icon/generated/CaretLeft.d.ts +10 -0
- package/dist/types/components/Icon/generated/CheckList.d.ts +10 -0
- package/dist/types/components/Icon/generated/Globe.d.ts +10 -0
- package/dist/types/components/Icon/generated/InputAlt.d.ts +10 -0
- package/dist/types/components/Icon/generated/LightBulb.d.ts +10 -0
- package/dist/types/components/Icon/generated/SelectDropDown.d.ts +10 -0
- package/dist/types/components/Icon/generated/TextArea.d.ts +10 -0
- package/dist/types/components/Icon/generated/TextBlock.d.ts +10 -0
- package/dist/types/components/Icon/generated/index.d.ts +1 -1
- package/dist/types/components/Icon/icon.component.d.ts +10 -0
- package/dist/types/components/Link/components/LinkIcon/linkIcon.component.d.ts +7 -0
- package/dist/types/components/Link/link.component.d.ts +19 -0
- package/dist/types/components/Logo/logo.component.d.ts +14 -1
- package/dist/types/components/Menu/components/MenuButton/menuButton.component.d.ts +22 -0
- package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +34 -5
- package/dist/types/components/Menu/components/MenuList/menuList.types.d.ts +18 -0
- package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.component.d.ts +17 -0
- package/dist/types/components/Menu/index.d.ts +4 -0
- package/dist/types/components/Menu/menu.component.d.ts +22 -19
- package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
- package/dist/types/components/Menu/menu.types.d.ts +17 -0
- package/dist/types/components/Modal/components/ModalFooter/modalFooter.component.d.ts +24 -1
- package/dist/types/components/Modal/modal.component.d.ts +46 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +2 -2
- package/dist/types/components/NotificationCounter/notificationCounter.component.d.ts +19 -1
- package/dist/types/components/NotificationCounter/notificationCounter.records.d.ts +5 -0
- package/dist/types/components/NumberInput/index.d.ts +2 -0
- package/dist/types/components/NumberInput/numberInput.component.d.ts +40 -0
- package/dist/types/components/NumberInput/numberInput.recipe.d.ts +21 -0
- package/dist/types/components/NumberInput/numberInput.types.d.ts +4 -0
- package/dist/types/components/Picture/picture.component.d.ts +9 -1
- package/dist/types/components/PinInput/pinInput.component.d.ts +19 -1
- package/dist/types/components/PinInput/pinInput.recipe.d.ts +1 -1
- package/dist/types/components/Popover/components/PopoverFooter/popoverFooter.component.d.ts +26 -1
- package/dist/types/components/Popover/components/PopoverHeader/popoverHeader.component.d.ts +19 -1
- package/dist/types/components/Popover/popover.component.d.ts +45 -2
- package/dist/types/components/Popover/popover.recipe.d.ts +4 -3
- package/dist/types/components/Popover/popover.types.d.ts +1 -1
- package/dist/types/components/Progress/index.d.ts +2 -0
- package/dist/types/components/Progress/progress.component.d.ts +26 -0
- package/dist/types/components/Progress/progress.recipe.d.ts +38 -0
- package/dist/types/components/Progress/progress.types.d.ts +9 -0
- package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +15 -0
- package/dist/types/components/RadioGroup/radioGroup.component.d.ts +22 -2
- package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +4 -2
- package/dist/types/components/Radiomark/index.d.ts +1 -0
- package/dist/types/components/Radiomark/radiomark.component.d.ts +12 -0
- package/dist/types/components/Radiomark/radiomark.recipe.d.ts +2 -0
- package/dist/types/components/Rating/index.d.ts +1 -0
- package/dist/types/components/Rating/rating.component.d.ts +37 -0
- package/dist/types/components/Rating/rating.recipe.d.ts +10 -0
- package/dist/types/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +10 -1
- package/dist/types/components/RatingDots/ratingDots.component.d.ts +12 -0
- package/dist/types/components/Select/components/SelectItemContent/selectItemContent.component.d.ts +6 -0
- package/dist/types/components/Select/components/SelectTrigger/selectTrigger.component.d.ts +7 -2
- package/dist/types/components/Select/select.component.d.ts +53 -3
- package/dist/types/components/Select/select.types.d.ts +3 -0
- package/dist/types/components/SortableList/components/SortableListDragHandle/sortableListDragHandle.component.d.ts +1 -1
- package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.component.d.ts +13 -1
- package/dist/types/components/SortableList/sortableList.component.d.ts +13 -1
- package/dist/types/components/Spinner/spinner.component.d.ts +28 -2
- package/dist/types/components/Spinner/spinner.recipe.d.ts +16 -1
- package/dist/types/components/StyledAvatar/styledAvatar.component.d.ts +10 -1
- package/dist/types/components/StyledAvatar/styledAvatar.types.d.ts +1 -1
- package/dist/types/components/Swatch/swatch.component.d.ts +10 -1
- package/dist/types/components/Switch/switch.component.d.ts +15 -0
- package/dist/types/components/Switch/switch.recipe.d.ts +3 -2
- package/dist/types/components/Tabs/components/Tab/tab.component.d.ts +14 -1
- package/dist/types/components/Tabs/tabs.component.d.ts +17 -2
- package/dist/types/components/Tabs/tabs.recipe.d.ts +3 -2
- package/dist/types/components/Tag/tag.component.d.ts +31 -0
- package/dist/types/components/Tag/tag.recipe.d.ts +3 -2
- package/dist/types/components/TagBlock/tagBlock.component.d.ts +34 -1
- package/dist/types/components/Text/text.component.d.ts +13 -0
- package/dist/types/components/TextInput/textInput.component.d.ts +28 -0
- package/dist/types/components/Textarea/textarea.component.d.ts +13 -0
- package/dist/types/components/TimePicker/components/TimeList/timeList.component.d.ts +10 -1
- package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +9 -1
- package/dist/types/components/TimePicker/timePicker.component.d.ts +19 -1
- package/dist/types/components/TimeRange/timeRange.component.d.ts +12 -1
- package/dist/types/components/Timestamp/timestamp.component.d.ts +18 -1
- package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -1
- package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +6 -1
- package/dist/types/components/Toast/toast.component.d.ts +19 -1
- package/dist/types/components/Toast/toast.recipe.d.ts +3 -2
- package/dist/types/components/Toast/toast.types.d.ts +13 -0
- package/dist/types/components/Toast/useToast.d.ts +5 -0
- package/dist/types/components/Tooltip/tooltip.component.d.ts +26 -0
- package/dist/types/components/Tooltip/tooltip.recipe.d.ts +10 -1
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/hocs/withFormControl/withFormControl.d.ts +44 -0
- package/dist/types/hocs/withTruncation.d.ts +8 -0
- package/dist/types/hooks/useBreakpoint/index.d.ts +4 -0
- package/dist/types/hooks/useColorMode/index.d.ts +39 -0
- package/dist/types/hooks/useColorModeValue/index.d.ts +6 -0
- package/dist/types/hooks/useDeviceType/index.d.ts +4 -0
- package/dist/types/hooks/useIconTextSizeMap.d.ts +5 -0
- package/dist/types/shared/components/withVariantStory.d.ts +6 -0
- package/dist/types/shared/types/index.d.ts +1 -0
- package/dist/types/theme/providers/theme.provider.d.ts +1 -0
- package/dist/types/theme/recipes/List/list.recipe.d.ts +14 -0
- package/dist/types/theme/recipes/Table/table.recipe.d.ts +29 -0
- package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +91 -82
- package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +182 -164
- package/dist/types/theme/semanticTokens/semanticTokens.types.d.ts +4 -3
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +10 -10
- package/package.json +21 -18
- package/dist/chunks/alert.types-De_IDZNV.js +0 -2
- package/dist/chunks/alert.types-De_IDZNV.js.map +0 -1
- package/dist/chunks/alert.types-NkOwCG0-.js +0 -139
- package/dist/chunks/alert.types-NkOwCG0-.js.map +0 -1
- package/dist/chunks/avatar.component-CqFsGMt6.js +0 -2
- package/dist/chunks/avatar.component-CqFsGMt6.js.map +0 -1
- package/dist/chunks/avatar.component-lHszPWEi.js +0 -394
- package/dist/chunks/avatar.component-lHszPWEi.js.map +0 -1
- package/dist/chunks/avatarGroup.component-BPYIE5NT.js +0 -2
- package/dist/chunks/avatarGroup.component-BPYIE5NT.js.map +0 -1
- package/dist/chunks/avatarGroup.component-EFxRAKiJ.js +0 -67
- package/dist/chunks/avatarGroup.component-EFxRAKiJ.js.map +0 -1
- package/dist/chunks/button.component-BE20YKDd.js +0 -67
- package/dist/chunks/button.component-BE20YKDd.js.map +0 -1
- package/dist/chunks/button.component-DAv5WxDc.js +0 -2
- package/dist/chunks/button.component-DAv5WxDc.js.map +0 -1
- package/dist/chunks/button.recipe-7PSQJbyz.js +0 -2
- package/dist/chunks/button.recipe-7PSQJbyz.js.map +0 -1
- package/dist/chunks/button.recipe-ClmsjdZI.js +0 -910
- package/dist/chunks/button.recipe-ClmsjdZI.js.map +0 -1
- package/dist/chunks/button.types-BKXZNvN1.js.map +0 -1
- package/dist/chunks/button.types-Bl1awbi0.js +0 -2
- package/dist/chunks/button.types-Bl1awbi0.js.map +0 -1
- package/dist/chunks/buttonGroup.component-CQBXYOhq.js +0 -2
- package/dist/chunks/buttonGroup.component-CQBXYOhq.js.map +0 -1
- package/dist/chunks/buttonGroup.component-CheBkHw6.js +0 -68
- package/dist/chunks/buttonGroup.component-CheBkHw6.js.map +0 -1
- package/dist/chunks/card.component-BZxC19F_.js +0 -2
- package/dist/chunks/card.component-BZxC19F_.js.map +0 -1
- package/dist/chunks/card.component-DJcYzMX1.js +0 -58
- package/dist/chunks/card.component-DJcYzMX1.js.map +0 -1
- package/dist/chunks/characterCounter.component-C6ZwdIiA.js +0 -84
- package/dist/chunks/characterCounter.component-C6ZwdIiA.js.map +0 -1
- package/dist/chunks/characterCounter.component-D0ccCiBG.js +0 -2
- package/dist/chunks/characterCounter.component-D0ccCiBG.js.map +0 -1
- package/dist/chunks/checkbox.component-DNOkXggb.js +0 -260
- package/dist/chunks/checkbox.component-Dhjcu89D.js +0 -2
- package/dist/chunks/checkboxGroup.component-BNKJqMKi.js +0 -52
- package/dist/chunks/checkboxGroup.component-BNKJqMKi.js.map +0 -1
- package/dist/chunks/checkboxGroup.component-M-nvlAbK.js +0 -2
- package/dist/chunks/checkboxGroup.component-M-nvlAbK.js.map +0 -1
- package/dist/chunks/conversationCard.component-BRJbMpwH.js +0 -2
- package/dist/chunks/conversationCard.component-BRJbMpwH.js.map +0 -1
- package/dist/chunks/conversationCard.component-DmSuBQ4_.js +0 -330
- package/dist/chunks/conversationCard.component-DmSuBQ4_.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-CViypfwB.js +0 -2
- package/dist/chunks/create-slot-recipe-context-CViypfwB.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-CrlT_nGQ.js +0 -97
- package/dist/chunks/create-slot-recipe-context-CrlT_nGQ.js.map +0 -1
- package/dist/chunks/datePicker.component-BOsFZiDy.js +0 -15
- package/dist/chunks/datePicker.component-BOsFZiDy.js.map +0 -1
- package/dist/chunks/datePicker.component-Dzh4WccC.js +0 -3019
- package/dist/chunks/datePicker.component-Dzh4WccC.js.map +0 -1
- package/dist/chunks/dialog-BPhjKQkb.js +0 -2
- package/dist/chunks/divider.types-Dht8eAh4.js +0 -2
- package/dist/chunks/divider.types-Dht8eAh4.js.map +0 -1
- package/dist/chunks/divider.types-ZN_wlva7.js +0 -47
- package/dist/chunks/divider.types-ZN_wlva7.js.map +0 -1
- package/dist/chunks/grid-item-DPdTp_nI.js +0 -94
- package/dist/chunks/grid-item-DPdTp_nI.js.map +0 -1
- package/dist/chunks/grid-item-qnuioQmr.js +0 -2
- package/dist/chunks/grid-item-qnuioQmr.js.map +0 -1
- package/dist/chunks/heading.component-C_cdAGTd.js +0 -2
- package/dist/chunks/heading.component-C_cdAGTd.js.map +0 -1
- package/dist/chunks/heading.component-SiJnYLOw.js +0 -12
- package/dist/chunks/heading.component-SiJnYLOw.js.map +0 -1
- package/dist/chunks/icon.component-Bhnf2n1O.js +0 -2
- package/dist/chunks/icon.component-Bhnf2n1O.js.map +0 -1
- package/dist/chunks/icon.component-C5bgxAD2.js +0 -32
- package/dist/chunks/icon.component-C5bgxAD2.js.map +0 -1
- package/dist/chunks/index-2glJ2faJ.js +0 -2
- package/dist/chunks/index-7Jpijbq_.js +0 -3
- package/dist/chunks/index-7Jpijbq_.js.map +0 -1
- package/dist/chunks/index-A_vmTNU7.js +0 -2
- package/dist/chunks/index-BEfEzWJx.js +0 -2
- package/dist/chunks/index-Bm5QBNWR.js +0 -8190
- package/dist/chunks/index-Bm5QBNWR.js.map +0 -1
- package/dist/chunks/index-Cv06PsSJ.js.map +0 -1
- package/dist/chunks/index-DA90Dqf9.js +0 -1362
- package/dist/chunks/index-DA90Dqf9.js.map +0 -1
- package/dist/chunks/index-DAI6_P9H.js +0 -2
- package/dist/chunks/index-DMcwHRZ5.js +0 -11
- package/dist/chunks/index-DMcwHRZ5.js.map +0 -1
- package/dist/chunks/index-jnwdAJ25.js +0 -2
- package/dist/chunks/index-jnwdAJ25.js.map +0 -1
- package/dist/chunks/link.component-CvR5CbiT.js +0 -36
- package/dist/chunks/link.component-CvR5CbiT.js.map +0 -1
- package/dist/chunks/link.component-yUJIJbIP.js +0 -2
- package/dist/chunks/link.component-yUJIJbIP.js.map +0 -1
- package/dist/chunks/logo.types-DF4eLSR9.js +0 -45
- package/dist/chunks/logo.types-DF4eLSR9.js.map +0 -1
- package/dist/chunks/logo.types-Zt-yfFAQ.js +0 -2
- package/dist/chunks/logo.types-Zt-yfFAQ.js.map +0 -1
- package/dist/chunks/menu.component-DylZiPAE.js +0 -2
- package/dist/chunks/menu.component-DylZiPAE.js.map +0 -1
- package/dist/chunks/menu.component-xhHsHlGT.js +0 -599
- package/dist/chunks/menu.component-xhHsHlGT.js.map +0 -1
- package/dist/chunks/modal.types-CBos7aXO.js +0 -2
- package/dist/chunks/modal.types-CBos7aXO.js.map +0 -1
- package/dist/chunks/modal.types-CkQIOPTa.js +0 -95
- package/dist/chunks/modal.types-CkQIOPTa.js.map +0 -1
- package/dist/chunks/notificationCounter.component-Lu4_Owvr.js.map +0 -1
- package/dist/chunks/notificationCounter.component-gp2ULnY_.js +0 -2
- package/dist/chunks/notificationCounter.component-gp2ULnY_.js.map +0 -1
- package/dist/chunks/picture.component-CKK-SMvr.js +0 -22
- package/dist/chunks/picture.component-CKK-SMvr.js.map +0 -1
- package/dist/chunks/picture.component-CR6e0wRG.js +0 -2
- package/dist/chunks/picture.component-CR6e0wRG.js.map +0 -1
- package/dist/chunks/pinInput.types-CcN0aX_i.js +0 -145
- package/dist/chunks/pinInput.types-Cqm1Px5l.js +0 -2
- package/dist/chunks/popover-root-provider-CkW1eCBQ.js +0 -43
- package/dist/chunks/popover-root-provider-ZB5BcrXn.js +0 -2
- package/dist/chunks/popover.component-BjS13k9K.js +0 -2
- package/dist/chunks/popover.component-BjS13k9K.js.map +0 -1
- package/dist/chunks/popover.component-C4WKxh4d.js +0 -196
- package/dist/chunks/popover.component-C4WKxh4d.js.map +0 -1
- package/dist/chunks/popover.recipe-Bx25Jhgs.js +0 -2
- package/dist/chunks/popover.recipe-Bx25Jhgs.js.map +0 -1
- package/dist/chunks/popover.recipe-C2nbfvL6.js +0 -241
- package/dist/chunks/popover.recipe-C2nbfvL6.js.map +0 -1
- package/dist/chunks/popover.types-BF2KRf_I.js +0 -2
- package/dist/chunks/popover.types-BF2KRf_I.js.map +0 -1
- package/dist/chunks/popover.types-D1O-Ehsz.js +0 -7
- package/dist/chunks/popover.types-D1O-Ehsz.js.map +0 -1
- package/dist/chunks/radioGroup.types-CZA7RcAn.js +0 -2
- package/dist/chunks/radioGroup.types-CZA7RcAn.js.map +0 -1
- package/dist/chunks/radioGroup.types-Dld5lmgo.js +0 -231
- package/dist/chunks/radioGroup.types-Dld5lmgo.js.map +0 -1
- package/dist/chunks/ratingDots.component-DcrCudac.js +0 -2
- package/dist/chunks/ratingDots.component-DcrCudac.js.map +0 -1
- package/dist/chunks/ratingDots.component-G4GMWvFy.js +0 -138
- package/dist/chunks/ratingDots.component-G4GMWvFy.js.map +0 -1
- package/dist/chunks/select.component-BTWHWvZV.js +0 -1058
- package/dist/chunks/select.component-BTWHWvZV.js.map +0 -1
- package/dist/chunks/select.component-Dyc1yQPO.js +0 -2
- package/dist/chunks/select.component-Dyc1yQPO.js.map +0 -1
- package/dist/chunks/spinner-C31ZWQmA.js +0 -8
- package/dist/chunks/spinner.component-CVVOuFka.js +0 -2
- package/dist/chunks/spinner.component-CVVOuFka.js.map +0 -1
- package/dist/chunks/spinner.component-DPYj17HK.js.map +0 -1
- package/dist/chunks/styledAvatar.types-CMpyDxAM.js +0 -2
- package/dist/chunks/styledAvatar.types-CMpyDxAM.js.map +0 -1
- package/dist/chunks/styledAvatar.types-CS07Zk7c.js +0 -51
- package/dist/chunks/styledAvatar.types-CS07Zk7c.js.map +0 -1
- package/dist/chunks/swatch.types-CXlghcLw.js.map +0 -1
- package/dist/chunks/swatch.types-jaI0KFHU.js +0 -2
- package/dist/chunks/swatch.types-jaI0KFHU.js.map +0 -1
- package/dist/chunks/switch.component-C88jBbo_.js +0 -2
- package/dist/chunks/switch.component-Cke7O8gk.js +0 -154
- package/dist/chunks/tab.types-DpmXyw5C.js +0 -2
- package/dist/chunks/tag.component-79aRVI7u.js +0 -82
- package/dist/chunks/tag.component-79aRVI7u.js.map +0 -1
- package/dist/chunks/tag.component-CAWh9OYa.js +0 -2
- package/dist/chunks/tag.component-CAWh9OYa.js.map +0 -1
- package/dist/chunks/tagBlock.component-Dn7coOgp.js +0 -2
- package/dist/chunks/tagBlock.component-Dn7coOgp.js.map +0 -1
- package/dist/chunks/tagBlock.component-vLA90b5S.js +0 -169
- package/dist/chunks/tagBlock.component-vLA90b5S.js.map +0 -1
- package/dist/chunks/text.component-CHpMvCFa.js +0 -2
- package/dist/chunks/text.component-CHpMvCFa.js.map +0 -1
- package/dist/chunks/text.component-D9w-u_dB.js +0 -12
- package/dist/chunks/text.component-D9w-u_dB.js.map +0 -1
- package/dist/chunks/textInput.component-Dpxb2RI-.js +0 -169
- package/dist/chunks/textInput.component-Dpxb2RI-.js.map +0 -1
- package/dist/chunks/textInput.component-Dx_Ktcmr.js +0 -2
- package/dist/chunks/textInput.component-Dx_Ktcmr.js.map +0 -1
- package/dist/chunks/textarea.component-BYexywy1.js +0 -2
- package/dist/chunks/textarea.component-Dk2IMKkr.js +0 -79
- package/dist/chunks/theme.provider-XYBMZJTB.js +0 -28
- package/dist/chunks/theme.provider-XYBMZJTB.js.map +0 -1
- package/dist/chunks/theme.provider-w_I9S10D.js.map +0 -1
- package/dist/chunks/timePicker.component-Bbd3BOA6.js +0 -209
- package/dist/chunks/timePicker.component-Bbd3BOA6.js.map +0 -1
- package/dist/chunks/timePicker.component-DcNgUFGj.js +0 -2
- package/dist/chunks/timePicker.component-DcNgUFGj.js.map +0 -1
- package/dist/chunks/timeRange.component-BBhPc2LP.js +0 -18
- package/dist/chunks/timeRange.component-BBhPc2LP.js.map +0 -1
- package/dist/chunks/timeRange.component-Bb-xDHWT.js +0 -2
- package/dist/chunks/timeRange.component-Bb-xDHWT.js.map +0 -1
- package/dist/chunks/timestamp.component-CrY5t68x.js +0 -2
- package/dist/chunks/timestamp.component-CrY5t68x.js.map +0 -1
- package/dist/chunks/timestamp.component-m0FTjlAi.js +0 -51
- package/dist/chunks/timestamp.component-m0FTjlAi.js.map +0 -1
- package/dist/chunks/toaster.records-eCXbM85Z.js +0 -2
- package/dist/chunks/tooltip.component-CATpCSkf.js +0 -2
- package/dist/chunks/typography.records-CpYV1kns.js.map +0 -1
- package/dist/chunks/typography.records-Dbw3sz4i.js +0 -2
- package/dist/chunks/typography.records-Dbw3sz4i.js.map +0 -1
- package/dist/chunks/use-locale-context-CazVZ4Kg.js +0 -2315
- package/dist/chunks/use-locale-context-CazVZ4Kg.js.map +0 -1
- package/dist/chunks/use-locale-context-Dv7DQ_mn.js +0 -22
- package/dist/chunks/use-locale-context-Dv7DQ_mn.js.map +0 -1
- package/dist/chunks/use-slot-recipe-8liupslO.js +0 -2
- package/dist/chunks/use-slot-recipe-8liupslO.js.map +0 -1
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +0 -13
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +0 -1
- package/dist/chunks/withFormControl-BdiccBy5.js +0 -2
- package/dist/chunks/withFormControl-BdiccBy5.js.map +0 -1
- package/dist/chunks/withFormControl-CRXVopOk.js +0 -361
- package/dist/chunks/withFormControl-CRXVopOk.js.map +0 -1
- package/dist/chunks/withTruncation-C9XLf_j6.js +0 -67
- package/dist/chunks/withTruncation-C9XLf_j6.js.map +0 -1
- package/dist/chunks/withTruncation-Ddr3jvAO.js +0 -2
- package/dist/chunks/withTruncation-Ddr3jvAO.js.map +0 -1
- package/dist/types/components/Menu/components/MenuButton/menuButton.components.d.ts +0 -9
- package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.d.ts +0 -10
- package/dist/types/shared/utils/argTypes.d.ts +0 -6
|
@@ -0,0 +1,2477 @@
|
|
|
1
|
+
import { i as Y, b as U, d as he, s as Be, u as Kt, a as Yt, e as at } from "./factory-BQshv7_b.js";
|
|
2
|
+
import { w as H, m as Jt } from "./walk-object-CGvlZ5aQ.js";
|
|
3
|
+
import { m as ie, c as qt } from "./config-Djkl1N81.js";
|
|
4
|
+
import { o as ct } from "./omit-C-j4TrF5.js";
|
|
5
|
+
import { b as Se, e as lt, n as ut, r as Ee, z as _e, ak as Qt, K as Le, b2 as Zt, o as en, bb as ft } from "./index-fHSGm2nC.js";
|
|
6
|
+
import { c as dt } from "./use-locale-context-Bw4Gg9Z0.js";
|
|
7
|
+
function tn(e) {
|
|
8
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
|
+
}
|
|
10
|
+
var nn = "", on = nn.split(","), rn = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical", sn = rn.split(",").concat(on), an = new Map(sn.map((e) => [e, !0]));
|
|
11
|
+
function cn(e) {
|
|
12
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
13
|
+
return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]);
|
|
14
|
+
}
|
|
15
|
+
var ln = /&|@/, un = /* @__PURE__ */ cn((e) => an.has(e) || e.startsWith("--") || ln.test(e));
|
|
16
|
+
function pt(e, t) {
|
|
17
|
+
const n = {};
|
|
18
|
+
return H(
|
|
19
|
+
e,
|
|
20
|
+
(o, r) => {
|
|
21
|
+
o && (n[r.join(".")] = o.value);
|
|
22
|
+
},
|
|
23
|
+
{ stop: t }
|
|
24
|
+
), n;
|
|
25
|
+
}
|
|
26
|
+
var we, De;
|
|
27
|
+
function fn() {
|
|
28
|
+
if (De) return we;
|
|
29
|
+
De = 1, we = i, i.default = i, i.stable = f, i.stableStringify = f;
|
|
30
|
+
var e = "[...]", t = "[Circular]", n = [], o = [];
|
|
31
|
+
function r() {
|
|
32
|
+
return {
|
|
33
|
+
depthLimit: Number.MAX_SAFE_INTEGER,
|
|
34
|
+
edgesLimit: Number.MAX_SAFE_INTEGER
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function i(a, h, b, g) {
|
|
38
|
+
typeof g > "u" && (g = r()), c(a, "", 0, [], void 0, 0, g);
|
|
39
|
+
var k;
|
|
40
|
+
try {
|
|
41
|
+
o.length === 0 ? k = JSON.stringify(a, h, b) : k = JSON.stringify(a, d(h), b);
|
|
42
|
+
} catch {
|
|
43
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
44
|
+
} finally {
|
|
45
|
+
for (; n.length !== 0; ) {
|
|
46
|
+
var w = n.pop();
|
|
47
|
+
w.length === 4 ? Object.defineProperty(w[0], w[1], w[3]) : w[0][w[1]] = w[2];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return k;
|
|
51
|
+
}
|
|
52
|
+
function s(a, h, b, g) {
|
|
53
|
+
var k = Object.getOwnPropertyDescriptor(g, b);
|
|
54
|
+
k.get !== void 0 ? k.configurable ? (Object.defineProperty(g, b, { value: a }), n.push([g, b, h, k])) : o.push([h, b, a]) : (g[b] = a, n.push([g, b, h]));
|
|
55
|
+
}
|
|
56
|
+
function c(a, h, b, g, k, w, v) {
|
|
57
|
+
w += 1;
|
|
58
|
+
var y;
|
|
59
|
+
if (typeof a == "object" && a !== null) {
|
|
60
|
+
for (y = 0; y < g.length; y++)
|
|
61
|
+
if (g[y] === a) {
|
|
62
|
+
s(t, a, h, k);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (typeof v.depthLimit < "u" && w > v.depthLimit) {
|
|
66
|
+
s(e, a, h, k);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (typeof v.edgesLimit < "u" && b + 1 > v.edgesLimit) {
|
|
70
|
+
s(e, a, h, k);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (g.push(a), Array.isArray(a))
|
|
74
|
+
for (y = 0; y < a.length; y++)
|
|
75
|
+
c(a[y], y, y, g, a, w, v);
|
|
76
|
+
else {
|
|
77
|
+
var T = Object.keys(a);
|
|
78
|
+
for (y = 0; y < T.length; y++) {
|
|
79
|
+
var R = T[y];
|
|
80
|
+
c(a[R], R, y, g, a, w, v);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
g.pop();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function l(a, h) {
|
|
87
|
+
return a < h ? -1 : a > h ? 1 : 0;
|
|
88
|
+
}
|
|
89
|
+
function f(a, h, b, g) {
|
|
90
|
+
typeof g > "u" && (g = r());
|
|
91
|
+
var k = u(a, "", 0, [], void 0, 0, g) || a, w;
|
|
92
|
+
try {
|
|
93
|
+
o.length === 0 ? w = JSON.stringify(k, h, b) : w = JSON.stringify(k, d(h), b);
|
|
94
|
+
} catch {
|
|
95
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
96
|
+
} finally {
|
|
97
|
+
for (; n.length !== 0; ) {
|
|
98
|
+
var v = n.pop();
|
|
99
|
+
v.length === 4 ? Object.defineProperty(v[0], v[1], v[3]) : v[0][v[1]] = v[2];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return w;
|
|
103
|
+
}
|
|
104
|
+
function u(a, h, b, g, k, w, v) {
|
|
105
|
+
w += 1;
|
|
106
|
+
var y;
|
|
107
|
+
if (typeof a == "object" && a !== null) {
|
|
108
|
+
for (y = 0; y < g.length; y++)
|
|
109
|
+
if (g[y] === a) {
|
|
110
|
+
s(t, a, h, k);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
if (typeof a.toJSON == "function")
|
|
115
|
+
return;
|
|
116
|
+
} catch {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (typeof v.depthLimit < "u" && w > v.depthLimit) {
|
|
120
|
+
s(e, a, h, k);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (typeof v.edgesLimit < "u" && b + 1 > v.edgesLimit) {
|
|
124
|
+
s(e, a, h, k);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (g.push(a), Array.isArray(a))
|
|
128
|
+
for (y = 0; y < a.length; y++)
|
|
129
|
+
u(a[y], y, y, g, a, w, v);
|
|
130
|
+
else {
|
|
131
|
+
var T = {}, R = Object.keys(a).sort(l);
|
|
132
|
+
for (y = 0; y < R.length; y++) {
|
|
133
|
+
var W = R[y];
|
|
134
|
+
u(a[W], W, y, g, a, w, v), T[W] = a[W];
|
|
135
|
+
}
|
|
136
|
+
if (typeof k < "u")
|
|
137
|
+
n.push([k, h, a]), k[h] = T;
|
|
138
|
+
else
|
|
139
|
+
return T;
|
|
140
|
+
}
|
|
141
|
+
g.pop();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function d(a) {
|
|
145
|
+
return a = typeof a < "u" ? a : function(h, b) {
|
|
146
|
+
return b;
|
|
147
|
+
}, function(h, b) {
|
|
148
|
+
if (o.length > 0)
|
|
149
|
+
for (var g = 0; g < o.length; g++) {
|
|
150
|
+
var k = o[g];
|
|
151
|
+
if (k[1] === h && k[0] === b) {
|
|
152
|
+
b = k[2], o.splice(g, 1);
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return a.call(this, h, b);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return we;
|
|
160
|
+
}
|
|
161
|
+
var dn = fn();
|
|
162
|
+
const pn = /* @__PURE__ */ tn(dn), F = (e) => {
|
|
163
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
164
|
+
function n(...o) {
|
|
165
|
+
const r = o.map((i) => pn(i)).join("|");
|
|
166
|
+
return t[r] === void 0 && (t[r] = e(...o)), t[r];
|
|
167
|
+
}
|
|
168
|
+
return n;
|
|
169
|
+
}, mt = 16, me = "px", ze = "em", re = "rem";
|
|
170
|
+
function ht(e = "") {
|
|
171
|
+
const t = new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`), n = new RegExp(`${me}|${ze}|${re}`);
|
|
172
|
+
return e.match(
|
|
173
|
+
new RegExp(`${t.source}(${n.source})`)
|
|
174
|
+
)?.[1];
|
|
175
|
+
}
|
|
176
|
+
function gt(e = "") {
|
|
177
|
+
if (typeof e == "number")
|
|
178
|
+
return `${e}px`;
|
|
179
|
+
const t = ht(e);
|
|
180
|
+
if (!t || t === me)
|
|
181
|
+
return e;
|
|
182
|
+
if (t === ze || t === re)
|
|
183
|
+
return `${parseFloat(e) * mt}${me}`;
|
|
184
|
+
}
|
|
185
|
+
function bt(e = "") {
|
|
186
|
+
const t = ht(e);
|
|
187
|
+
if (!t || t === re)
|
|
188
|
+
return e;
|
|
189
|
+
if (t === ze)
|
|
190
|
+
return `${parseFloat(e)}${re}`;
|
|
191
|
+
if (t === me)
|
|
192
|
+
return `${parseFloat(e) / mt}${re}`;
|
|
193
|
+
}
|
|
194
|
+
const mn = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
195
|
+
function hn(e) {
|
|
196
|
+
const t = gn(e), n = Object.fromEntries(t);
|
|
197
|
+
function o(a) {
|
|
198
|
+
return n[a];
|
|
199
|
+
}
|
|
200
|
+
function r(a) {
|
|
201
|
+
return Q(o(a));
|
|
202
|
+
}
|
|
203
|
+
function i() {
|
|
204
|
+
const a = Object.keys(n), h = bn(a), b = a.flatMap((g) => {
|
|
205
|
+
const k = o(g), w = [
|
|
206
|
+
`${g}Down`,
|
|
207
|
+
Q({ max: de(k.min) })
|
|
208
|
+
], v = [g, Q({ min: k.min })], y = [`${g}Only`, r(g)];
|
|
209
|
+
return [v, y, w];
|
|
210
|
+
}).filter(([, g]) => g !== "").concat(
|
|
211
|
+
h.map(([g, k]) => {
|
|
212
|
+
const w = o(g), v = o(k);
|
|
213
|
+
return [
|
|
214
|
+
`${g}To${mn(k)}`,
|
|
215
|
+
Q({ min: w.min, max: de(v.min) })
|
|
216
|
+
];
|
|
217
|
+
})
|
|
218
|
+
);
|
|
219
|
+
return Object.fromEntries(b);
|
|
220
|
+
}
|
|
221
|
+
function s() {
|
|
222
|
+
const a = i();
|
|
223
|
+
return Object.fromEntries(Object.entries(a));
|
|
224
|
+
}
|
|
225
|
+
const c = s(), l = (a) => c[a];
|
|
226
|
+
function f() {
|
|
227
|
+
return ["base", ...Object.keys(n)];
|
|
228
|
+
}
|
|
229
|
+
function u(a) {
|
|
230
|
+
return Q({ min: o(a).min });
|
|
231
|
+
}
|
|
232
|
+
function d(a) {
|
|
233
|
+
return Q({ max: de(o(a).min) });
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
values: Object.values(n),
|
|
237
|
+
only: r,
|
|
238
|
+
keys: f,
|
|
239
|
+
conditions: c,
|
|
240
|
+
getCondition: l,
|
|
241
|
+
up: u,
|
|
242
|
+
down: d
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function de(e) {
|
|
246
|
+
const t = parseFloat(gt(e) ?? "") - 0.04;
|
|
247
|
+
return bt(`${t}px`);
|
|
248
|
+
}
|
|
249
|
+
function gn(e) {
|
|
250
|
+
return Object.entries(e).sort(([, n], [, o]) => parseInt(n, 10) < parseInt(o, 10) ? -1 : 1).map(([n, o], r, i) => {
|
|
251
|
+
let s = null;
|
|
252
|
+
return r <= i.length - 1 && (s = i[r + 1]?.[1]), s != null && (s = de(s)), [n, { name: n, min: bt(o), max: s }];
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function bn(e) {
|
|
256
|
+
const t = [];
|
|
257
|
+
return e.forEach((n, o) => {
|
|
258
|
+
let r = o;
|
|
259
|
+
r++;
|
|
260
|
+
let i = e[r];
|
|
261
|
+
for (; i; )
|
|
262
|
+
t.push([n, i]), r++, i = e[r];
|
|
263
|
+
}), t;
|
|
264
|
+
}
|
|
265
|
+
function Q({
|
|
266
|
+
min: e,
|
|
267
|
+
max: t
|
|
268
|
+
}) {
|
|
269
|
+
return e == null && t == null ? "" : [
|
|
270
|
+
"@media screen",
|
|
271
|
+
e && `(min-width: ${e})`,
|
|
272
|
+
t && `(max-width: ${t})`
|
|
273
|
+
].filter(Boolean).join(" and ");
|
|
274
|
+
}
|
|
275
|
+
const yn = (e, t) => Object.fromEntries(
|
|
276
|
+
Object.entries(e).map(([n, o]) => t(n, o))
|
|
277
|
+
), kn = (e) => {
|
|
278
|
+
const { breakpoints: t, conditions: n = {} } = e, o = yn(n, (u, d) => [`_${u}`, d]), r = Object.assign({}, o, t.conditions);
|
|
279
|
+
function i() {
|
|
280
|
+
return Object.keys(r);
|
|
281
|
+
}
|
|
282
|
+
function s(u) {
|
|
283
|
+
return i().includes(u) || /^@|&|&$/.test(u) || u.startsWith("_");
|
|
284
|
+
}
|
|
285
|
+
function c(u) {
|
|
286
|
+
return u.filter((d) => d !== "base").sort((d, a) => {
|
|
287
|
+
const h = s(d), b = s(a);
|
|
288
|
+
return h && !b ? 1 : !h && b ? -1 : 0;
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function l(u) {
|
|
292
|
+
return u.startsWith("@breakpoint") ? t.getCondition(u.replace("@breakpoint ", "")) : u;
|
|
293
|
+
}
|
|
294
|
+
function f(u) {
|
|
295
|
+
return Reflect.get(r, u) || u;
|
|
296
|
+
}
|
|
297
|
+
return {
|
|
298
|
+
keys: i,
|
|
299
|
+
sort: c,
|
|
300
|
+
has: s,
|
|
301
|
+
resolve: f,
|
|
302
|
+
breakpoints: t.keys(),
|
|
303
|
+
expandAtRule: l
|
|
304
|
+
};
|
|
305
|
+
}, yt = (e) => ({
|
|
306
|
+
minMax: new RegExp(
|
|
307
|
+
`(!?\\(\\s*min(-device-)?-${e})(.|
|
|
308
|
+
)+\\(\\s*max(-device)?-${e}`,
|
|
309
|
+
"i"
|
|
310
|
+
),
|
|
311
|
+
min: new RegExp(`\\(\\s*min(-device)?-${e}`, "i"),
|
|
312
|
+
maxMin: new RegExp(
|
|
313
|
+
`(!?\\(\\s*max(-device)?-${e})(.|
|
|
314
|
+
)+\\(\\s*min(-device)?-${e}`,
|
|
315
|
+
"i"
|
|
316
|
+
),
|
|
317
|
+
max: new RegExp(`\\(\\s*max(-device)?-${e}`, "i")
|
|
318
|
+
}), vn = yt("width"), xn = yt("height"), kt = (e) => ({
|
|
319
|
+
isMin: Ye(e.minMax, e.maxMin, e.min),
|
|
320
|
+
isMax: Ye(e.maxMin, e.minMax, e.max)
|
|
321
|
+
}), { isMin: Pe, isMax: Ue } = kt(vn), { isMin: Me, isMax: Ge } = kt(xn), Xe = /print/i, He = /^print$/i, Sn = /(-?\d*\.?\d+)(ch|em|ex|px|rem)/, En = /(\d)/, oe = Number.MAX_VALUE, wn = { ch: 8.8984375, em: 16, rem: 16, ex: 8.296875, px: 1 };
|
|
322
|
+
function Ke(e) {
|
|
323
|
+
const t = Sn.exec(e) || (Pe(e) || Me(e) ? En.exec(e) : null);
|
|
324
|
+
if (!t) return oe;
|
|
325
|
+
if (t[0] === "0") return 0;
|
|
326
|
+
const n = parseFloat(t[1]), o = t[2];
|
|
327
|
+
return n * (wn[o] || 1);
|
|
328
|
+
}
|
|
329
|
+
function Ye(e, t, n) {
|
|
330
|
+
return (o) => e.test(o) || !t.test(o) && n.test(o);
|
|
331
|
+
}
|
|
332
|
+
function Cn(e, t) {
|
|
333
|
+
const n = Xe.test(e), o = He.test(e), r = Xe.test(t), i = He.test(t);
|
|
334
|
+
return n && r ? !o && i ? 1 : o && !i ? -1 : e.localeCompare(t) : n ? 1 : r ? -1 : null;
|
|
335
|
+
}
|
|
336
|
+
const On = F((e, t) => {
|
|
337
|
+
const n = Cn(e, t);
|
|
338
|
+
if (n !== null) return n;
|
|
339
|
+
const o = Pe(e) || Me(e), r = Ue(e) || Ge(e), i = Pe(t) || Me(t), s = Ue(t) || Ge(t);
|
|
340
|
+
if (o && s) return -1;
|
|
341
|
+
if (r && i) return 1;
|
|
342
|
+
const c = Ke(e), l = Ke(t);
|
|
343
|
+
return c === oe && l === oe ? e.localeCompare(t) : c === oe ? 1 : l === oe ? -1 : c !== l ? c > l ? r ? -1 : 1 : r ? 1 : -1 : e.localeCompare(t);
|
|
344
|
+
});
|
|
345
|
+
function Je(e) {
|
|
346
|
+
return e.sort(([t], [n]) => On(t, n));
|
|
347
|
+
}
|
|
348
|
+
function vt(e) {
|
|
349
|
+
const t = [], n = [], o = {};
|
|
350
|
+
for (const [s, c] of Object.entries(e))
|
|
351
|
+
s.startsWith("@media") ? t.push([s, c]) : s.startsWith("@container") ? n.push([s, c]) : Y(c) ? o[s] = vt(c) : o[s] = c;
|
|
352
|
+
const r = Je(t), i = Je(n);
|
|
353
|
+
return {
|
|
354
|
+
...o,
|
|
355
|
+
...Object.fromEntries(r),
|
|
356
|
+
...Object.fromEntries(i)
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
const xt = /\s*!(important)?/i, Pn = (e) => U(e) ? xt.test(e) : !1, Mn = (e) => U(e) ? e.replace(xt, "").trim() : e;
|
|
360
|
+
function St(e) {
|
|
361
|
+
const { transform: t, conditions: n, normalize: o } = e, r = Tn(e);
|
|
362
|
+
return F(function(...s) {
|
|
363
|
+
const c = r(...s), l = o(c), f = /* @__PURE__ */ Object.create(null);
|
|
364
|
+
return H(l, (u, d) => {
|
|
365
|
+
const a = Pn(u);
|
|
366
|
+
if (u == null) return;
|
|
367
|
+
const [h, ...b] = n.sort(d).map(n.resolve);
|
|
368
|
+
a && (u = Mn(u));
|
|
369
|
+
let g = t(h, u) ?? /* @__PURE__ */ Object.create(null);
|
|
370
|
+
g = H(
|
|
371
|
+
g,
|
|
372
|
+
(k) => U(k) && a ? `${k} !important` : k,
|
|
373
|
+
{ getKey: (k) => n.expandAtRule(k) }
|
|
374
|
+
), Rn(f, b.flat(), g);
|
|
375
|
+
}), vt(f);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function Rn(e, t, n) {
|
|
379
|
+
let o = e;
|
|
380
|
+
for (const r of t)
|
|
381
|
+
r && (o[r] || (o[r] = /* @__PURE__ */ Object.create(null)), o = o[r]);
|
|
382
|
+
ie(o, n);
|
|
383
|
+
}
|
|
384
|
+
function An(...e) {
|
|
385
|
+
return e.filter(
|
|
386
|
+
(t) => Y(t) && Object.keys(he(t)).length > 0
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
function Tn(e) {
|
|
390
|
+
function t(n) {
|
|
391
|
+
const o = An(...n);
|
|
392
|
+
return o.length === 1 ? o : o.map((r) => e.normalize(r));
|
|
393
|
+
}
|
|
394
|
+
return F(function(...o) {
|
|
395
|
+
return ie({}, ...t(o));
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
const Et = (e) => ({
|
|
399
|
+
base: {},
|
|
400
|
+
variants: {},
|
|
401
|
+
defaultVariants: {},
|
|
402
|
+
compoundVariants: [],
|
|
403
|
+
...e
|
|
404
|
+
});
|
|
405
|
+
function In(e) {
|
|
406
|
+
const { css: t, conditions: n, normalize: o, layers: r } = e;
|
|
407
|
+
function i(c = {}) {
|
|
408
|
+
const { base: l, variants: f, defaultVariants: u, compoundVariants: d } = Et(c), a = St({
|
|
409
|
+
conditions: n,
|
|
410
|
+
normalize: o,
|
|
411
|
+
transform(v, y) {
|
|
412
|
+
return f[v]?.[y];
|
|
413
|
+
}
|
|
414
|
+
}), h = (v = {}) => {
|
|
415
|
+
const y = o({
|
|
416
|
+
...u,
|
|
417
|
+
...he(v)
|
|
418
|
+
});
|
|
419
|
+
let T = { ...l };
|
|
420
|
+
ie(T, a(y));
|
|
421
|
+
const R = s(
|
|
422
|
+
d,
|
|
423
|
+
y
|
|
424
|
+
);
|
|
425
|
+
return r.wrap("recipes", t(T, R));
|
|
426
|
+
}, b = Object.keys(f), g = (v) => {
|
|
427
|
+
const y = ct(v, ["recipe"]), [T, R] = Be(y, b);
|
|
428
|
+
return b.includes("colorPalette") || (T.colorPalette = v.colorPalette || u.colorPalette), b.includes("orientation") && (R.orientation = v.orientation), [T, R];
|
|
429
|
+
}, k = Object.fromEntries(
|
|
430
|
+
Object.entries(f).map(([v, y]) => [
|
|
431
|
+
v,
|
|
432
|
+
Object.keys(y)
|
|
433
|
+
])
|
|
434
|
+
);
|
|
435
|
+
return Object.assign((v) => t(h(v)), {
|
|
436
|
+
className: c.className,
|
|
437
|
+
__cva__: !0,
|
|
438
|
+
variantMap: k,
|
|
439
|
+
variantKeys: b,
|
|
440
|
+
raw: h,
|
|
441
|
+
config: c,
|
|
442
|
+
splitVariantProps: g,
|
|
443
|
+
merge(v) {
|
|
444
|
+
return i(Bn(e)(this, v));
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
function s(c, l) {
|
|
449
|
+
let f = {};
|
|
450
|
+
return c.forEach((u) => {
|
|
451
|
+
Object.entries(u).every(([a, h]) => a === "css" ? !0 : (Array.isArray(h) ? h : [h]).some((g) => l[a] === g)) && (f = t(f, u.css));
|
|
452
|
+
}), f;
|
|
453
|
+
}
|
|
454
|
+
return i;
|
|
455
|
+
}
|
|
456
|
+
function Bn(e) {
|
|
457
|
+
const { css: t } = e;
|
|
458
|
+
return function(o, r) {
|
|
459
|
+
const i = Et(r.config), s = Kt(o.variantKeys, Object.keys(r.variants)), c = t(o.base, i.base), l = Object.fromEntries(
|
|
460
|
+
s.map((a) => [
|
|
461
|
+
a,
|
|
462
|
+
t(o.config.variants[a], i.variants[a])
|
|
463
|
+
])
|
|
464
|
+
), f = ie(
|
|
465
|
+
o.config.defaultVariants,
|
|
466
|
+
i.defaultVariants
|
|
467
|
+
), u = [
|
|
468
|
+
...o.compoundVariants,
|
|
469
|
+
...i.compoundVariants
|
|
470
|
+
];
|
|
471
|
+
return {
|
|
472
|
+
className: Yt(o.className, r.className),
|
|
473
|
+
base: c,
|
|
474
|
+
variants: l,
|
|
475
|
+
defaultVariants: f,
|
|
476
|
+
compoundVariants: u
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
const zn = {
|
|
481
|
+
reset: "reset",
|
|
482
|
+
base: "base",
|
|
483
|
+
tokens: "tokens",
|
|
484
|
+
recipes: "recipes"
|
|
485
|
+
}, qe = {
|
|
486
|
+
reset: 0,
|
|
487
|
+
base: 1,
|
|
488
|
+
tokens: 2,
|
|
489
|
+
recipes: 3
|
|
490
|
+
};
|
|
491
|
+
function jn(e) {
|
|
492
|
+
const t = e.layers ?? zn, o = Object.values(t).sort((r, i) => qe[r] - qe[i]);
|
|
493
|
+
return {
|
|
494
|
+
names: o,
|
|
495
|
+
atRule: `@layer ${o.join(", ")};`,
|
|
496
|
+
wrap(r, i) {
|
|
497
|
+
return e.disableLayers ? i : { [`@layer ${t[r]}`]: i };
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
function Vn(e) {
|
|
502
|
+
const { utility: t, normalize: n } = e, { hasShorthand: o, resolveShorthand: r } = t;
|
|
503
|
+
return function(i) {
|
|
504
|
+
return H(i, n, {
|
|
505
|
+
stop: (s) => Array.isArray(s),
|
|
506
|
+
getKey: o ? r : void 0
|
|
507
|
+
});
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
function Nn(e) {
|
|
511
|
+
const { preflight: t } = e;
|
|
512
|
+
if (!t) return {};
|
|
513
|
+
const { scope: n = "", level: o = "parent" } = Y(t) ? t : {};
|
|
514
|
+
let r = "";
|
|
515
|
+
n && o === "parent" ? r = `${n} ` : n && o === "element" && (r = `&${n}`);
|
|
516
|
+
const i = {
|
|
517
|
+
"*": {
|
|
518
|
+
margin: "0px",
|
|
519
|
+
padding: "0px",
|
|
520
|
+
font: "inherit",
|
|
521
|
+
wordWrap: "break-word",
|
|
522
|
+
WebkitTapHighlightColor: "transparent"
|
|
523
|
+
},
|
|
524
|
+
"*, *::before, *::after, *::backdrop": {
|
|
525
|
+
boxSizing: "border-box",
|
|
526
|
+
borderWidth: "0px",
|
|
527
|
+
borderStyle: "solid",
|
|
528
|
+
borderColor: "var(--global-color-border, currentColor)"
|
|
529
|
+
},
|
|
530
|
+
hr: {
|
|
531
|
+
height: "0px",
|
|
532
|
+
color: "inherit",
|
|
533
|
+
borderTopWidth: "1px"
|
|
534
|
+
},
|
|
535
|
+
body: {
|
|
536
|
+
minHeight: "100dvh",
|
|
537
|
+
position: "relative"
|
|
538
|
+
},
|
|
539
|
+
img: {
|
|
540
|
+
borderStyle: "none"
|
|
541
|
+
},
|
|
542
|
+
"img, svg, video, canvas, audio, iframe, embed, object": {
|
|
543
|
+
display: "block",
|
|
544
|
+
verticalAlign: "middle"
|
|
545
|
+
},
|
|
546
|
+
iframe: { border: "none" },
|
|
547
|
+
"img, video": { maxWidth: "100%", height: "auto" },
|
|
548
|
+
"p, h1, h2, h3, h4, h5, h6": { overflowWrap: "break-word" },
|
|
549
|
+
"ol, ul": { listStyle: "none" },
|
|
550
|
+
"code, kbd, pre, samp": { fontSize: "1em" },
|
|
551
|
+
"button, [type='button'], [type='reset'], [type='submit']": {
|
|
552
|
+
WebkitAppearance: "button",
|
|
553
|
+
backgroundColor: "transparent",
|
|
554
|
+
backgroundImage: "none"
|
|
555
|
+
},
|
|
556
|
+
"button, input, optgroup, select, textarea": { color: "inherit" },
|
|
557
|
+
"button, select": { textTransform: "none" },
|
|
558
|
+
table: {
|
|
559
|
+
textIndent: "0px",
|
|
560
|
+
borderColor: "inherit",
|
|
561
|
+
borderCollapse: "collapse"
|
|
562
|
+
},
|
|
563
|
+
"*::placeholder": {
|
|
564
|
+
opacity: "unset",
|
|
565
|
+
color: "#9ca3af",
|
|
566
|
+
userSelect: "none"
|
|
567
|
+
},
|
|
568
|
+
textarea: {
|
|
569
|
+
resize: "vertical"
|
|
570
|
+
},
|
|
571
|
+
summary: {
|
|
572
|
+
display: "list-item"
|
|
573
|
+
},
|
|
574
|
+
small: {
|
|
575
|
+
fontSize: "80%"
|
|
576
|
+
},
|
|
577
|
+
"sub, sup": {
|
|
578
|
+
fontSize: "75%",
|
|
579
|
+
lineHeight: 0,
|
|
580
|
+
position: "relative",
|
|
581
|
+
verticalAlign: "baseline"
|
|
582
|
+
},
|
|
583
|
+
sub: {
|
|
584
|
+
bottom: "-0.25em"
|
|
585
|
+
},
|
|
586
|
+
sup: {
|
|
587
|
+
top: "-0.5em"
|
|
588
|
+
},
|
|
589
|
+
dialog: {
|
|
590
|
+
padding: "0px"
|
|
591
|
+
},
|
|
592
|
+
a: {
|
|
593
|
+
color: "inherit",
|
|
594
|
+
textDecoration: "inherit"
|
|
595
|
+
},
|
|
596
|
+
"abbr:where([title])": {
|
|
597
|
+
textDecoration: "underline dotted"
|
|
598
|
+
},
|
|
599
|
+
"b, strong": {
|
|
600
|
+
fontWeight: "bolder"
|
|
601
|
+
},
|
|
602
|
+
"code, kbd, samp, pre": {
|
|
603
|
+
fontSize: "1em",
|
|
604
|
+
"--font-mono-fallback": "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",
|
|
605
|
+
fontFamily: "var(--global-font-mono, var(--font-mono-fallback))"
|
|
606
|
+
},
|
|
607
|
+
'input[type="text"], input[type="email"], input[type="search"], input[type="password"]': {
|
|
608
|
+
WebkitAppearance: "none",
|
|
609
|
+
MozAppearance: "none"
|
|
610
|
+
},
|
|
611
|
+
"input[type='search']": {
|
|
612
|
+
WebkitAppearance: "textfield",
|
|
613
|
+
outlineOffset: "-2px"
|
|
614
|
+
},
|
|
615
|
+
"::-webkit-search-decoration, ::-webkit-search-cancel-button": {
|
|
616
|
+
WebkitAppearance: "none"
|
|
617
|
+
},
|
|
618
|
+
"::-webkit-file-upload-button": {
|
|
619
|
+
WebkitAppearance: "button",
|
|
620
|
+
font: "inherit"
|
|
621
|
+
},
|
|
622
|
+
'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button': {
|
|
623
|
+
height: "auto"
|
|
624
|
+
},
|
|
625
|
+
"input[type='number']": {
|
|
626
|
+
MozAppearance: "textfield"
|
|
627
|
+
},
|
|
628
|
+
":-moz-ui-invalid": {
|
|
629
|
+
boxShadow: "none"
|
|
630
|
+
},
|
|
631
|
+
":-moz-focusring": {
|
|
632
|
+
outline: "auto"
|
|
633
|
+
},
|
|
634
|
+
"[hidden]:where(:not([hidden='until-found']))": {
|
|
635
|
+
display: "none !important"
|
|
636
|
+
}
|
|
637
|
+
}, s = {
|
|
638
|
+
[n || "html"]: {
|
|
639
|
+
lineHeight: 1.5,
|
|
640
|
+
"--font-fallback": "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
641
|
+
WebkitTextSizeAdjust: "100%",
|
|
642
|
+
WebkitFontSmoothing: "antialiased",
|
|
643
|
+
MozOsxFontSmoothing: "grayscale",
|
|
644
|
+
textRendering: "optimizeLegibility",
|
|
645
|
+
touchAction: "manipulation",
|
|
646
|
+
MozTabSize: "4",
|
|
647
|
+
tabSize: "4",
|
|
648
|
+
fontFamily: "var(--global-font-body, var(--font-fallback))"
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
if (o === "element") {
|
|
652
|
+
const c = Object.entries(i).reduce((l, [f, u]) => (l[f] = { [r]: u }, l), {});
|
|
653
|
+
Object.assign(s, c);
|
|
654
|
+
} else r ? s[r] = i : Object.assign(s, i);
|
|
655
|
+
return s;
|
|
656
|
+
}
|
|
657
|
+
function $n(e) {
|
|
658
|
+
const { conditions: t, isValidProperty: n } = e;
|
|
659
|
+
return function(r) {
|
|
660
|
+
return H(r, (i) => i, {
|
|
661
|
+
getKey: (i, s) => Y(s) && !t.has(i) && !n(i) ? Fn(i).map((c) => "&" + c).join(", ") : i
|
|
662
|
+
});
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function Fn(e) {
|
|
666
|
+
const t = [];
|
|
667
|
+
let n = 0, o = "", r = !1;
|
|
668
|
+
for (let i = 0; i < e.length; i++) {
|
|
669
|
+
const s = e[i];
|
|
670
|
+
if (s === "\\" && !r) {
|
|
671
|
+
r = !0, o += s;
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
674
|
+
if (r) {
|
|
675
|
+
r = !1, o += s;
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
s === "(" ? n++ : s === ")" && n--, s === "," && n === 0 ? (t.push(o.trim()), o = "") : o += s;
|
|
679
|
+
}
|
|
680
|
+
return o && t.push(o.trim()), t;
|
|
681
|
+
}
|
|
682
|
+
const Wn = (e = {}) => {
|
|
683
|
+
const t = (r) => ({
|
|
684
|
+
base: e.base?.[r] ?? {},
|
|
685
|
+
variants: {},
|
|
686
|
+
defaultVariants: e.defaultVariants ?? {},
|
|
687
|
+
compoundVariants: e.compoundVariants ? _n(e.compoundVariants, r) : []
|
|
688
|
+
}), o = (e.slots ?? []).map((r) => [r, t(r)]);
|
|
689
|
+
for (const [r, i] of Object.entries(
|
|
690
|
+
e.variants ?? {}
|
|
691
|
+
))
|
|
692
|
+
for (const [s, c] of Object.entries(
|
|
693
|
+
i
|
|
694
|
+
))
|
|
695
|
+
o.forEach(([l, f]) => {
|
|
696
|
+
var u;
|
|
697
|
+
(u = f.variants)[r] ?? (u[r] = {}), f.variants[r][s] = c[l] ?? {};
|
|
698
|
+
});
|
|
699
|
+
return Object.fromEntries(o);
|
|
700
|
+
}, _n = (e, t) => e.filter((n) => n.css[t]).map((n) => ({
|
|
701
|
+
...n,
|
|
702
|
+
css: n.css[t]
|
|
703
|
+
}));
|
|
704
|
+
function Ln(e) {
|
|
705
|
+
const { cva: t } = e;
|
|
706
|
+
return function(o = {}) {
|
|
707
|
+
const r = Object.entries(Wn(o)).map(
|
|
708
|
+
([d, a]) => [d, t(a)]
|
|
709
|
+
);
|
|
710
|
+
function i(d) {
|
|
711
|
+
const a = r.map(([h, b]) => [h, b(d)]);
|
|
712
|
+
return Object.fromEntries(a);
|
|
713
|
+
}
|
|
714
|
+
const s = o.variants ?? {}, c = Object.keys(s);
|
|
715
|
+
function l(d) {
|
|
716
|
+
const a = ct(d, ["recipe"]), [h, b] = Be(a, c);
|
|
717
|
+
return c.includes("colorPalette") || (h.colorPalette = d.colorPalette || o.defaultVariants?.colorPalette), c.includes("orientation") && (b.orientation = d.orientation), [h, b];
|
|
718
|
+
}
|
|
719
|
+
const f = Object.fromEntries(
|
|
720
|
+
Object.entries(s).map(([d, a]) => [d, Object.keys(a)])
|
|
721
|
+
);
|
|
722
|
+
let u = {};
|
|
723
|
+
return o.className && (u = Object.fromEntries(
|
|
724
|
+
o.slots.map((d) => [
|
|
725
|
+
d,
|
|
726
|
+
`${o.className}__${d}`
|
|
727
|
+
])
|
|
728
|
+
)), Object.assign(i, {
|
|
729
|
+
variantMap: f,
|
|
730
|
+
variantKeys: c,
|
|
731
|
+
splitVariantProps: l,
|
|
732
|
+
classNameMap: u
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
const Dn = () => (e) => Array.from(new Set(e)), Un = /[^a-zA-Z0-9_\u0081-\uffff-]/g;
|
|
737
|
+
function Gn(e) {
|
|
738
|
+
return `${e}`.replace(Un, (t) => `\\${t}`);
|
|
739
|
+
}
|
|
740
|
+
const Xn = /[A-Z]/g;
|
|
741
|
+
function Hn(e) {
|
|
742
|
+
return e.replace(Xn, (t) => `-${t.toLowerCase()}`);
|
|
743
|
+
}
|
|
744
|
+
function Kn(e, t = {}) {
|
|
745
|
+
const { fallback: n = "", prefix: o = "" } = t, r = Hn(["-", o, Gn(e)].filter(Boolean).join("-"));
|
|
746
|
+
return {
|
|
747
|
+
var: r,
|
|
748
|
+
ref: `var(${r}${n ? `, ${n}` : ""})`
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
const Yn = /([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g, Jn = function(e, t) {
|
|
752
|
+
return t ? e === "\0" ? "�" : e === "-" && e.length === 1 ? "\\-" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) : "\\" + e;
|
|
753
|
+
}, wt = (e) => (e + "").replace(Yn, Jn), Ct = (e, t) => {
|
|
754
|
+
let n = "", o = 0, r = "char", i = "", s = "";
|
|
755
|
+
const c = [];
|
|
756
|
+
for (; o < e.length; ) {
|
|
757
|
+
const l = e[o];
|
|
758
|
+
if (l === "{") {
|
|
759
|
+
const u = e.indexOf("}", o);
|
|
760
|
+
if (u === -1)
|
|
761
|
+
break;
|
|
762
|
+
const d = e.slice(o + 1, u), a = t(d);
|
|
763
|
+
n += a ?? d, o = u + 1;
|
|
764
|
+
continue;
|
|
765
|
+
}
|
|
766
|
+
if (r === "token" && l === ",") {
|
|
767
|
+
e[o] === "" && o++, r = "fallback", c.push(r);
|
|
768
|
+
const u = t(i);
|
|
769
|
+
u?.endsWith(")") && (n += u.slice(0, -1)), i = "", s = "";
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
if (r === "fallback" && s + l === ", var(") {
|
|
773
|
+
const a = qn(e.slice(o + 1)) + o + 1, h = e.slice(o + 1, a);
|
|
774
|
+
if (a === -1)
|
|
775
|
+
break;
|
|
776
|
+
n += ", var(" + h + ")", o = a + 1, r = c.pop() ?? r, s = "";
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
if (r === "token" || r === "fallback") {
|
|
780
|
+
if (o++, l === ")") {
|
|
781
|
+
r = c.pop() ?? r ?? "char", s += l;
|
|
782
|
+
const u = i && (t(i) ?? wt(i));
|
|
783
|
+
if (s) {
|
|
784
|
+
if (s = s.slice(1).trim(), !s.startsWith("token(") && s.endsWith(")") && (s = s.slice(0, -1)), s.includes("token(")) {
|
|
785
|
+
const a = Ct(s, t);
|
|
786
|
+
a && (s = a.slice(0, -1));
|
|
787
|
+
} else if (s) {
|
|
788
|
+
const a = t(s);
|
|
789
|
+
a && (s = a);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
const d = n.at(-1);
|
|
793
|
+
s ? d?.trim() ? n += u.slice(0, -1) + (", " + s + ")") : n += s : n += u || ")", i = "", s = "", r = "char";
|
|
794
|
+
continue;
|
|
795
|
+
}
|
|
796
|
+
r === "token" && (i += l), r === "fallback" && (s += l);
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
const f = e.indexOf("token(", o);
|
|
800
|
+
if (f !== -1) {
|
|
801
|
+
const u = f + 6;
|
|
802
|
+
n += e.slice(o, f), o = u, r = "token", c.push(r);
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
n += l, o++;
|
|
806
|
+
}
|
|
807
|
+
return n;
|
|
808
|
+
}, qn = (e) => {
|
|
809
|
+
let t = 0;
|
|
810
|
+
const n = ["("];
|
|
811
|
+
for (; t < e.length; ) {
|
|
812
|
+
const o = e[t];
|
|
813
|
+
if (o === "(")
|
|
814
|
+
n.push(o);
|
|
815
|
+
else if (o === ")" && (n.pop(), n.length === 0))
|
|
816
|
+
return t;
|
|
817
|
+
t++;
|
|
818
|
+
}
|
|
819
|
+
return t;
|
|
820
|
+
};
|
|
821
|
+
function Ot(e) {
|
|
822
|
+
const t = {};
|
|
823
|
+
return e.forEach((n, o) => {
|
|
824
|
+
n instanceof Map ? t[o] = Object.fromEntries(n) : t[o] = n;
|
|
825
|
+
}), t;
|
|
826
|
+
}
|
|
827
|
+
const Pt = /({([^}]*)})/g, Qn = /[{}]/g, Zn = /\w+\.\w+/, Mt = (e) => {
|
|
828
|
+
if (!U(e)) return [];
|
|
829
|
+
const t = e.match(Pt);
|
|
830
|
+
return t ? t.map((n) => n.replace(Qn, "")).map((n) => n.trim()) : [];
|
|
831
|
+
}, eo = (e) => Pt.test(e);
|
|
832
|
+
function Rt(e) {
|
|
833
|
+
if (!e.extensions?.references)
|
|
834
|
+
return e.extensions?.cssVar?.ref ?? e.value;
|
|
835
|
+
const t = e.extensions.references ?? {};
|
|
836
|
+
return e.value = Object.keys(t).reduce((n, o) => {
|
|
837
|
+
const r = t[o];
|
|
838
|
+
if (r.extensions.conditions)
|
|
839
|
+
return n;
|
|
840
|
+
const i = Rt(r);
|
|
841
|
+
return n.replace(`{${o}}`, i);
|
|
842
|
+
}, e.value), delete e.extensions.references, e.value;
|
|
843
|
+
}
|
|
844
|
+
function At(e) {
|
|
845
|
+
return Y(e) && e.reference ? e.reference : String(e);
|
|
846
|
+
}
|
|
847
|
+
const ge = (e, ...t) => t.map(At).join(` ${e} `).replace(/calc/g, ""), Qe = (...e) => `calc(${ge("+", ...e)})`, Ze = (...e) => `calc(${ge("-", ...e)})`, Re = (...e) => `calc(${ge("*", ...e)})`, et = (...e) => `calc(${ge("/", ...e)})`, tt = (e) => {
|
|
848
|
+
const t = At(e);
|
|
849
|
+
return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Re(t, -1);
|
|
850
|
+
}, Z = Object.assign(
|
|
851
|
+
(e) => ({
|
|
852
|
+
add: (...t) => Z(Qe(e, ...t)),
|
|
853
|
+
subtract: (...t) => Z(Ze(e, ...t)),
|
|
854
|
+
multiply: (...t) => Z(Re(e, ...t)),
|
|
855
|
+
divide: (...t) => Z(et(e, ...t)),
|
|
856
|
+
negate: () => Z(tt(e)),
|
|
857
|
+
toString: () => e.toString()
|
|
858
|
+
}),
|
|
859
|
+
{
|
|
860
|
+
add: Qe,
|
|
861
|
+
subtract: Ze,
|
|
862
|
+
multiply: Re,
|
|
863
|
+
divide: et,
|
|
864
|
+
negate: tt
|
|
865
|
+
}
|
|
866
|
+
), to = {
|
|
867
|
+
enforce: "pre",
|
|
868
|
+
transform(e) {
|
|
869
|
+
const { prefix: t, allTokens: n, formatCssVar: o, formatTokenName: r, registerToken: i } = e;
|
|
870
|
+
n.filter(
|
|
871
|
+
({ extensions: c }) => c.category === "spacing"
|
|
872
|
+
).forEach((c) => {
|
|
873
|
+
const l = c.path.slice(), f = o(l, t);
|
|
874
|
+
if (U(c.value) && c.value === "0rem")
|
|
875
|
+
return;
|
|
876
|
+
const u = structuredClone(c);
|
|
877
|
+
Object.assign(u.extensions, {
|
|
878
|
+
negative: !0,
|
|
879
|
+
prop: `-${c.extensions.prop}`,
|
|
880
|
+
originalPath: l
|
|
881
|
+
}), u.value = Z.negate(f.ref);
|
|
882
|
+
const d = u.path[u.path.length - 1];
|
|
883
|
+
d != null && (u.path[u.path.length - 1] = `-${d}`), u.path && (u.name = r(u.path)), i(u);
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
}, no = /* @__PURE__ */ new Set([
|
|
887
|
+
"spacing",
|
|
888
|
+
"sizes",
|
|
889
|
+
"borderWidths",
|
|
890
|
+
"fontSizes",
|
|
891
|
+
"radii"
|
|
892
|
+
]), oo = {
|
|
893
|
+
enforce: "post",
|
|
894
|
+
transform(e) {
|
|
895
|
+
e.allTokens.filter((n) => no.has(n.extensions.category) && !n.extensions.negative).forEach((n) => {
|
|
896
|
+
Object.assign(n.extensions, {
|
|
897
|
+
pixelValue: gt(n.value)
|
|
898
|
+
});
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
}, ro = {
|
|
902
|
+
enforce: "post",
|
|
903
|
+
transform(e) {
|
|
904
|
+
const { allTokens: t, registerToken: n, formatTokenName: o } = e, r = t.filter(
|
|
905
|
+
({ extensions: c }) => c.category === "colors"
|
|
906
|
+
), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
907
|
+
r.forEach((c) => {
|
|
908
|
+
const { colorPalette: l } = c.extensions;
|
|
909
|
+
l && (l.keys.forEach((f) => {
|
|
910
|
+
i.set(o(f), f);
|
|
911
|
+
}), l.roots.forEach((f) => {
|
|
912
|
+
const u = o(f), d = s.get(u) || [];
|
|
913
|
+
if (d.push(c), s.set(u, d), c.extensions.default && f.length === 1) {
|
|
914
|
+
const a = l.keys[0]?.filter(Boolean);
|
|
915
|
+
if (!a.length) return;
|
|
916
|
+
const h = f.concat(a);
|
|
917
|
+
i.set(o(h), []);
|
|
918
|
+
}
|
|
919
|
+
}));
|
|
920
|
+
}), i.forEach((c) => {
|
|
921
|
+
const l = ["colors", "colorPalette", ...c].filter(Boolean), f = o(l), u = o(l.slice(1));
|
|
922
|
+
n({
|
|
923
|
+
name: f,
|
|
924
|
+
value: f,
|
|
925
|
+
originalValue: f,
|
|
926
|
+
path: l,
|
|
927
|
+
extensions: {
|
|
928
|
+
condition: "base",
|
|
929
|
+
originalPath: l,
|
|
930
|
+
category: "colors",
|
|
931
|
+
prop: u,
|
|
932
|
+
virtual: !0
|
|
933
|
+
}
|
|
934
|
+
}, "pre");
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
}, io = {
|
|
938
|
+
enforce: "post",
|
|
939
|
+
transform(e) {
|
|
940
|
+
e.allTokens = e.allTokens.filter(
|
|
941
|
+
(t) => t.value !== ""
|
|
942
|
+
);
|
|
943
|
+
}
|
|
944
|
+
}, so = [
|
|
945
|
+
to,
|
|
946
|
+
ro,
|
|
947
|
+
oo,
|
|
948
|
+
io
|
|
949
|
+
], ao = {
|
|
950
|
+
type: "extensions",
|
|
951
|
+
enforce: "pre",
|
|
952
|
+
name: "tokens/css-var",
|
|
953
|
+
transform(e, t) {
|
|
954
|
+
const { prefix: n, formatCssVar: o } = t, { negative: r, originalPath: i } = e.extensions, s = r ? i : e.path;
|
|
955
|
+
return {
|
|
956
|
+
cssVar: o(s.filter(Boolean), n)
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
}, co = {
|
|
960
|
+
enforce: "post",
|
|
961
|
+
type: "value",
|
|
962
|
+
name: "tokens/conditionals",
|
|
963
|
+
transform(e, t) {
|
|
964
|
+
const { prefix: n, formatCssVar: o } = t, r = Mt(e.value);
|
|
965
|
+
return r.length && r.forEach((i) => {
|
|
966
|
+
const s = o(i.split("."), n);
|
|
967
|
+
e.value = e.value.replace(`{${s.ref}}`, s);
|
|
968
|
+
}), e.value;
|
|
969
|
+
}
|
|
970
|
+
}, lo = {
|
|
971
|
+
type: "extensions",
|
|
972
|
+
enforce: "pre",
|
|
973
|
+
name: "tokens/colors/colorPalette",
|
|
974
|
+
match(e) {
|
|
975
|
+
return e.extensions.category === "colors" && !e.extensions.virtual;
|
|
976
|
+
},
|
|
977
|
+
transform(e, t) {
|
|
978
|
+
let n = e.path.slice();
|
|
979
|
+
if (n.pop(), n.shift(), n.length === 0) {
|
|
980
|
+
const c = [...e.path];
|
|
981
|
+
c.shift(), n = c;
|
|
982
|
+
}
|
|
983
|
+
if (n.length === 0)
|
|
984
|
+
return {};
|
|
985
|
+
const o = n.reduce((c, l, f, u) => {
|
|
986
|
+
const d = u.slice(0, f + 1);
|
|
987
|
+
return c.push(d), c;
|
|
988
|
+
}, []), r = n[0], i = t.formatTokenName(n), s = e.path.slice(e.path.indexOf(r) + 1).reduce((c, l, f, u) => (c.push(u.slice(f)), c), []);
|
|
989
|
+
return s.length === 0 && s.push([""]), {
|
|
990
|
+
colorPalette: { value: i, roots: o, keys: s }
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
}, uo = [
|
|
994
|
+
ao,
|
|
995
|
+
co,
|
|
996
|
+
lo
|
|
997
|
+
], nt = (e) => Y(e) && Object.prototype.hasOwnProperty.call(e, "value");
|
|
998
|
+
function fo(e) {
|
|
999
|
+
return e ? {
|
|
1000
|
+
breakpoints: Jt(e, (t) => ({ value: t })),
|
|
1001
|
+
sizes: Object.fromEntries(
|
|
1002
|
+
Object.entries(e).map(([t, n]) => [
|
|
1003
|
+
`breakpoint-${t}`,
|
|
1004
|
+
{ value: n }
|
|
1005
|
+
])
|
|
1006
|
+
)
|
|
1007
|
+
} : { breakpoints: {}, sizes: {} };
|
|
1008
|
+
}
|
|
1009
|
+
function po(e) {
|
|
1010
|
+
const {
|
|
1011
|
+
prefix: t = "",
|
|
1012
|
+
tokens: n = {},
|
|
1013
|
+
semanticTokens: o = {},
|
|
1014
|
+
breakpoints: r = {}
|
|
1015
|
+
} = e, i = (m) => m.join("."), s = (m, p) => Kn(m.join("-"), { prefix: p }), c = [], l = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), k = [];
|
|
1016
|
+
function w(m, p) {
|
|
1017
|
+
c.push(m), l.set(m.name, m), p && g.forEach((O) => {
|
|
1018
|
+
O.enforce === p && A(O, m);
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
const v = fo(r), y = he({
|
|
1022
|
+
...n,
|
|
1023
|
+
breakpoints: v.breakpoints,
|
|
1024
|
+
sizes: {
|
|
1025
|
+
...n.sizes,
|
|
1026
|
+
...v.sizes
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
function T() {
|
|
1030
|
+
H(
|
|
1031
|
+
y,
|
|
1032
|
+
(m, p) => {
|
|
1033
|
+
const O = p.includes("DEFAULT");
|
|
1034
|
+
p = ot(p);
|
|
1035
|
+
const P = p[0], I = i(p), z = U(m) ? { value: m } : m, _ = {
|
|
1036
|
+
value: z.value,
|
|
1037
|
+
originalValue: z.value,
|
|
1038
|
+
name: I,
|
|
1039
|
+
path: p,
|
|
1040
|
+
extensions: {
|
|
1041
|
+
condition: "base",
|
|
1042
|
+
originalPath: p,
|
|
1043
|
+
category: P,
|
|
1044
|
+
prop: i(p.slice(1))
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
O && (_.extensions.default = !0), w(_);
|
|
1048
|
+
},
|
|
1049
|
+
{ stop: nt }
|
|
1050
|
+
), H(
|
|
1051
|
+
o,
|
|
1052
|
+
(m, p) => {
|
|
1053
|
+
const O = p.includes("DEFAULT");
|
|
1054
|
+
p = Tt(ot(p));
|
|
1055
|
+
const P = p[0], I = i(p), z = U(m.value) ? { value: { base: m.value } } : m, _ = {
|
|
1056
|
+
value: z.value.base || "",
|
|
1057
|
+
originalValue: z.value.base || "",
|
|
1058
|
+
name: I,
|
|
1059
|
+
path: p,
|
|
1060
|
+
extensions: {
|
|
1061
|
+
originalPath: p,
|
|
1062
|
+
category: P,
|
|
1063
|
+
conditions: z.value,
|
|
1064
|
+
condition: "base",
|
|
1065
|
+
prop: i(p.slice(1))
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
O && (_.extensions.default = !0), w(_);
|
|
1069
|
+
},
|
|
1070
|
+
{ stop: nt }
|
|
1071
|
+
);
|
|
1072
|
+
}
|
|
1073
|
+
function R(m) {
|
|
1074
|
+
return l.get(m);
|
|
1075
|
+
}
|
|
1076
|
+
function W(m) {
|
|
1077
|
+
const { condition: p } = m.extensions;
|
|
1078
|
+
p && (f.has(p) || f.set(p, /* @__PURE__ */ new Set()), f.get(p).add(m));
|
|
1079
|
+
}
|
|
1080
|
+
function J(m) {
|
|
1081
|
+
const { category: p, prop: O } = m.extensions;
|
|
1082
|
+
p && (b.has(p) || b.set(p, /* @__PURE__ */ new Map()), b.get(p).set(O, m));
|
|
1083
|
+
}
|
|
1084
|
+
function S(m) {
|
|
1085
|
+
const { condition: p, negative: O, virtual: P, cssVar: I } = m.extensions;
|
|
1086
|
+
O || P || !p || !I || (u.has(p) || u.set(p, /* @__PURE__ */ new Map()), u.get(p).set(I.var, m.value));
|
|
1087
|
+
}
|
|
1088
|
+
function x(m) {
|
|
1089
|
+
const { category: p, prop: O, cssVar: P, negative: I } = m.extensions;
|
|
1090
|
+
if (!p) return;
|
|
1091
|
+
h.has(p) || h.set(p, /* @__PURE__ */ new Map());
|
|
1092
|
+
const z = I ? m.extensions.conditions ? m.originalValue : m.value : P.ref;
|
|
1093
|
+
h.get(p).set(O, z), a.set([p, O].join("."), z);
|
|
1094
|
+
}
|
|
1095
|
+
function C(m) {
|
|
1096
|
+
const { colorPalette: p, virtual: O, default: P } = m.extensions;
|
|
1097
|
+
!p || O || p.roots.forEach((I) => {
|
|
1098
|
+
const z = i(I);
|
|
1099
|
+
d.has(z) || d.set(z, /* @__PURE__ */ new Map());
|
|
1100
|
+
const _ = ho(
|
|
1101
|
+
[...m.path],
|
|
1102
|
+
[...I]
|
|
1103
|
+
), ae = i(_), ve = R(ae);
|
|
1104
|
+
if (!ve || !ve.extensions.cssVar) return;
|
|
1105
|
+
const { var: Gt } = ve.extensions.cssVar;
|
|
1106
|
+
if (d.get(z).set(Gt, m.extensions.cssVar.ref), P && I.length === 1) {
|
|
1107
|
+
const Xt = i(["colors", "colorPalette"]), $e = R(Xt);
|
|
1108
|
+
if (!$e) return;
|
|
1109
|
+
const Ht = i(m.path), Fe = R(Ht);
|
|
1110
|
+
if (!Fe) return;
|
|
1111
|
+
const We = p.keys[0]?.filter(Boolean);
|
|
1112
|
+
if (!We.length) return;
|
|
1113
|
+
const xe = i(I.concat(We));
|
|
1114
|
+
d.has(xe) || d.set(xe, /* @__PURE__ */ new Map()), d.get(xe).set(
|
|
1115
|
+
$e.extensions.cssVar.var,
|
|
1116
|
+
Fe.extensions.cssVar.ref
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
let B = {};
|
|
1122
|
+
function M() {
|
|
1123
|
+
c.forEach((m) => {
|
|
1124
|
+
W(m), J(m), S(m), x(m), C(m);
|
|
1125
|
+
}), B = Ot(h);
|
|
1126
|
+
}
|
|
1127
|
+
const V = (m, p) => {
|
|
1128
|
+
if (!m || typeof m != "string") return { invalid: !0, value: m };
|
|
1129
|
+
const [O, P] = m.split("/");
|
|
1130
|
+
if (!O || !P)
|
|
1131
|
+
return { invalid: !0, value: O };
|
|
1132
|
+
const I = p(O), z = R(`opacity.${P}`)?.value;
|
|
1133
|
+
if (!z && isNaN(Number(P)))
|
|
1134
|
+
return { invalid: !0, value: O };
|
|
1135
|
+
const _ = z ? Number(z) * 100 + "%" : `${P}%`, ae = I ?? O;
|
|
1136
|
+
return {
|
|
1137
|
+
invalid: !1,
|
|
1138
|
+
color: ae,
|
|
1139
|
+
value: `color-mix(in srgb, ${ae} ${_}, transparent)`
|
|
1140
|
+
};
|
|
1141
|
+
}, G = F((m, p) => a.get(m) ?? p), se = F((m) => B[m] || null), be = F((m) => Ct(m, (p) => {
|
|
1142
|
+
if (!p) return;
|
|
1143
|
+
if (p.includes("/")) {
|
|
1144
|
+
const P = V(p, (I) => G(I));
|
|
1145
|
+
if (P.invalid)
|
|
1146
|
+
throw new Error("Invalid color mix at " + p + ": " + P.value);
|
|
1147
|
+
return P.value;
|
|
1148
|
+
}
|
|
1149
|
+
const O = G(p);
|
|
1150
|
+
return O || (Zn.test(p) ? wt(p) : p);
|
|
1151
|
+
})), ee = {
|
|
1152
|
+
prefix: t,
|
|
1153
|
+
allTokens: c,
|
|
1154
|
+
tokenMap: l,
|
|
1155
|
+
registerToken: w,
|
|
1156
|
+
getByName: R,
|
|
1157
|
+
formatTokenName: i,
|
|
1158
|
+
formatCssVar: s,
|
|
1159
|
+
flatMap: a,
|
|
1160
|
+
cssVarMap: u,
|
|
1161
|
+
categoryMap: b,
|
|
1162
|
+
colorPaletteMap: d,
|
|
1163
|
+
getVar: G,
|
|
1164
|
+
getCategoryValues: se,
|
|
1165
|
+
expandReferenceInValue: be
|
|
1166
|
+
};
|
|
1167
|
+
function ye(...m) {
|
|
1168
|
+
m.forEach((p) => {
|
|
1169
|
+
g.set(p.name, p);
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
function E(...m) {
|
|
1173
|
+
k.push(...m);
|
|
1174
|
+
}
|
|
1175
|
+
function A(m, p) {
|
|
1176
|
+
if (p.extensions.references || at(m.match) && !m.match(p)) return;
|
|
1177
|
+
const P = ((I) => m.transform(I, ee))(p);
|
|
1178
|
+
switch (!0) {
|
|
1179
|
+
case m.type === "extensions":
|
|
1180
|
+
Object.assign(p.extensions, P);
|
|
1181
|
+
break;
|
|
1182
|
+
case m.type === "value":
|
|
1183
|
+
p.value = P;
|
|
1184
|
+
break;
|
|
1185
|
+
default:
|
|
1186
|
+
p[m.type] = P;
|
|
1187
|
+
break;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
function $(m) {
|
|
1191
|
+
k.forEach((p) => {
|
|
1192
|
+
p.enforce === m && p.transform(ee);
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
function N(m) {
|
|
1196
|
+
g.forEach((p) => {
|
|
1197
|
+
p.enforce === m && c.forEach((O) => {
|
|
1198
|
+
A(p, O);
|
|
1199
|
+
});
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
function X() {
|
|
1203
|
+
c.forEach((m) => {
|
|
1204
|
+
const p = mo(m);
|
|
1205
|
+
!p || p.length === 0 || p.forEach((O) => {
|
|
1206
|
+
w(O);
|
|
1207
|
+
});
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
function te(m) {
|
|
1211
|
+
return Mt(m).map((O) => R(O)).filter(Boolean);
|
|
1212
|
+
}
|
|
1213
|
+
function q() {
|
|
1214
|
+
c.forEach((m) => {
|
|
1215
|
+
if (!eo(m.value)) return;
|
|
1216
|
+
const p = te(m.value);
|
|
1217
|
+
m.extensions.references = p.reduce((O, P) => (O[P.name] = P, O), {});
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
function ke() {
|
|
1221
|
+
c.forEach((m) => {
|
|
1222
|
+
Rt(m);
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
function Ut() {
|
|
1226
|
+
$("pre"), N("pre"), X(), q(), ke(), $("post"), N("post"), M();
|
|
1227
|
+
}
|
|
1228
|
+
return T(), ye(...uo), E(...so), Ut(), ee;
|
|
1229
|
+
}
|
|
1230
|
+
function ot(e) {
|
|
1231
|
+
return e[0] === "DEFAULT" ? e : e.filter((t) => t !== "DEFAULT");
|
|
1232
|
+
}
|
|
1233
|
+
function Tt(e) {
|
|
1234
|
+
return e.filter((t) => t !== "base");
|
|
1235
|
+
}
|
|
1236
|
+
function mo(e) {
|
|
1237
|
+
if (!e.extensions.conditions) return;
|
|
1238
|
+
const { conditions: t } = e.extensions, n = [];
|
|
1239
|
+
return H(t, (o, r) => {
|
|
1240
|
+
const i = Tt(r);
|
|
1241
|
+
if (!i.length) return;
|
|
1242
|
+
const s = structuredClone(e);
|
|
1243
|
+
s.value = o, s.extensions.condition = i.join(":"), n.push(s);
|
|
1244
|
+
}), n;
|
|
1245
|
+
}
|
|
1246
|
+
function ho(e, t) {
|
|
1247
|
+
const n = e.findIndex(
|
|
1248
|
+
(o, r) => t.every(
|
|
1249
|
+
(i, s) => e[r + s] === i
|
|
1250
|
+
)
|
|
1251
|
+
);
|
|
1252
|
+
return n === -1 || (e.splice(n, t.length), e.splice(n, 0, "colorPalette")), e;
|
|
1253
|
+
}
|
|
1254
|
+
Dn()([
|
|
1255
|
+
"aspectRatios",
|
|
1256
|
+
"zIndex",
|
|
1257
|
+
"opacity",
|
|
1258
|
+
"colors",
|
|
1259
|
+
"fonts",
|
|
1260
|
+
"fontSizes",
|
|
1261
|
+
"fontWeights",
|
|
1262
|
+
"lineHeights",
|
|
1263
|
+
"letterSpacings",
|
|
1264
|
+
"sizes",
|
|
1265
|
+
"shadows",
|
|
1266
|
+
"spacing",
|
|
1267
|
+
"radii",
|
|
1268
|
+
"cursor",
|
|
1269
|
+
"borders",
|
|
1270
|
+
"borderWidths",
|
|
1271
|
+
"borderStyles",
|
|
1272
|
+
"durations",
|
|
1273
|
+
"easings",
|
|
1274
|
+
"animations",
|
|
1275
|
+
"blurs",
|
|
1276
|
+
"gradients",
|
|
1277
|
+
"breakpoints",
|
|
1278
|
+
"assets"
|
|
1279
|
+
]);
|
|
1280
|
+
const go = (e, t) => {
|
|
1281
|
+
if (!e || typeof e != "string")
|
|
1282
|
+
return { invalid: !0, value: e };
|
|
1283
|
+
const [n, o] = e.split("/");
|
|
1284
|
+
if (!n || !o || n === "currentBg")
|
|
1285
|
+
return { invalid: !0, value: n };
|
|
1286
|
+
const r = t(`colors.${n}`), i = t.raw(`opacity.${o}`)?.value;
|
|
1287
|
+
if (!i && isNaN(Number(o)))
|
|
1288
|
+
return { invalid: !0, value: n };
|
|
1289
|
+
const s = i ? Number(i) * 100 + "%" : `${o}%`, c = r ?? n;
|
|
1290
|
+
return {
|
|
1291
|
+
invalid: !1,
|
|
1292
|
+
color: c,
|
|
1293
|
+
value: `color-mix(in srgb, ${c} ${s}, transparent)`
|
|
1294
|
+
};
|
|
1295
|
+
}, Zo = (e) => (t, n) => {
|
|
1296
|
+
const o = n.utils.colorMix(t);
|
|
1297
|
+
if (o.invalid) return { [e]: t };
|
|
1298
|
+
const r = "--mix-" + e;
|
|
1299
|
+
return {
|
|
1300
|
+
[r]: o.value,
|
|
1301
|
+
[e]: `var(${r}, ${o.color})`
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
function bo(e) {
|
|
1305
|
+
return Object.fromEntries(
|
|
1306
|
+
Object.entries(e).map(([t, n]) => [t, n])
|
|
1307
|
+
);
|
|
1308
|
+
}
|
|
1309
|
+
function yo(e) {
|
|
1310
|
+
const t = bo(e.config), n = e.tokens, o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
1311
|
+
function i(S, x) {
|
|
1312
|
+
t[S] = x, s(S, x);
|
|
1313
|
+
}
|
|
1314
|
+
const s = (S, x) => {
|
|
1315
|
+
const C = g(x);
|
|
1316
|
+
C && (r.set(S, C), d(S, x));
|
|
1317
|
+
}, c = () => {
|
|
1318
|
+
for (const [S, x] of Object.entries(t))
|
|
1319
|
+
x && s(S, x);
|
|
1320
|
+
}, l = () => {
|
|
1321
|
+
for (const [S, x] of Object.entries(t)) {
|
|
1322
|
+
const { shorthand: C } = x ?? {};
|
|
1323
|
+
if (!C) continue;
|
|
1324
|
+
(Array.isArray(C) ? C : [C]).forEach((M) => o.set(M, S));
|
|
1325
|
+
}
|
|
1326
|
+
}, f = () => {
|
|
1327
|
+
const S = Ot(n.colorPaletteMap);
|
|
1328
|
+
i("colorPalette", {
|
|
1329
|
+
values: Object.keys(S),
|
|
1330
|
+
transform: F((x) => S[x])
|
|
1331
|
+
});
|
|
1332
|
+
}, u = /* @__PURE__ */ new Map(), d = (S, x) => {
|
|
1333
|
+
if (!x) return;
|
|
1334
|
+
const C = g(x, (M) => `type:Tokens["${M}"]`);
|
|
1335
|
+
if (typeof C == "object" && C.type) {
|
|
1336
|
+
u.set(S, /* @__PURE__ */ new Set([`type:${C.type}`]));
|
|
1337
|
+
return;
|
|
1338
|
+
}
|
|
1339
|
+
if (C) {
|
|
1340
|
+
const M = new Set(Object.keys(C));
|
|
1341
|
+
u.set(S, M);
|
|
1342
|
+
}
|
|
1343
|
+
const B = u.get(S) ?? /* @__PURE__ */ new Set();
|
|
1344
|
+
x.property && u.set(S, B.add(`CssProperties["${x.property}"]`));
|
|
1345
|
+
}, a = () => {
|
|
1346
|
+
for (const [S, x] of Object.entries(t))
|
|
1347
|
+
x && d(S, x);
|
|
1348
|
+
}, h = (S, x) => {
|
|
1349
|
+
const C = u.get(S) ?? /* @__PURE__ */ new Set();
|
|
1350
|
+
u.set(S, /* @__PURE__ */ new Set([...C, ...x]));
|
|
1351
|
+
}, b = () => {
|
|
1352
|
+
const S = /* @__PURE__ */ new Map();
|
|
1353
|
+
for (const [x, C] of u.entries()) {
|
|
1354
|
+
if (C.size === 0) {
|
|
1355
|
+
S.set(x, ["string"]);
|
|
1356
|
+
continue;
|
|
1357
|
+
}
|
|
1358
|
+
const B = Array.from(C).map((M) => M.startsWith("CssProperties") ? M : M.startsWith("type:") ? M.replace("type:", "") : JSON.stringify(M));
|
|
1359
|
+
S.set(x, B);
|
|
1360
|
+
}
|
|
1361
|
+
return S;
|
|
1362
|
+
}, g = (S, x) => {
|
|
1363
|
+
const { values: C } = S, B = (M) => {
|
|
1364
|
+
const V = x?.(M);
|
|
1365
|
+
return V ? { [V]: V } : void 0;
|
|
1366
|
+
};
|
|
1367
|
+
return U(C) ? B?.(C) ?? n.getCategoryValues(C) ?? {} : Array.isArray(C) ? C.reduce((M, V) => (M[V] = V, M), {}) : at(C) ? C(x ? B : n.getCategoryValues) : C;
|
|
1368
|
+
}, k = F((S, x) => ({
|
|
1369
|
+
[S]: S.startsWith("--") ? n.getVar(x, x) : x
|
|
1370
|
+
})), w = Object.assign(n.getVar, {
|
|
1371
|
+
raw: (S) => n.getByName(S)
|
|
1372
|
+
}), v = F((S, x) => {
|
|
1373
|
+
const C = R(S);
|
|
1374
|
+
U(x) && !x.includes("_EMO_") && (x = n.expandReferenceInValue(x));
|
|
1375
|
+
const B = t[C];
|
|
1376
|
+
if (!B)
|
|
1377
|
+
return k(C, x);
|
|
1378
|
+
const M = r.get(C)?.[x];
|
|
1379
|
+
if (!B.transform)
|
|
1380
|
+
return k(S, M ?? x);
|
|
1381
|
+
const V = (G) => go(G, w);
|
|
1382
|
+
return B.transform(M ?? x, {
|
|
1383
|
+
raw: x,
|
|
1384
|
+
token: w,
|
|
1385
|
+
utils: { colorMix: V }
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
function y() {
|
|
1389
|
+
l(), f(), c(), a();
|
|
1390
|
+
}
|
|
1391
|
+
y();
|
|
1392
|
+
const T = o.size > 0, R = F((S) => o.get(S) ?? S);
|
|
1393
|
+
return {
|
|
1394
|
+
keys: () => [...Array.from(o.keys()), ...Object.keys(t)],
|
|
1395
|
+
hasShorthand: T,
|
|
1396
|
+
transform: v,
|
|
1397
|
+
shorthands: o,
|
|
1398
|
+
resolveShorthand: R,
|
|
1399
|
+
register: i,
|
|
1400
|
+
getTypes: b,
|
|
1401
|
+
addPropertyType: h
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
const j = {};
|
|
1405
|
+
function er(...e) {
|
|
1406
|
+
const t = qt(...e), {
|
|
1407
|
+
theme: n = {},
|
|
1408
|
+
utilities: o = {},
|
|
1409
|
+
globalCss: r = {},
|
|
1410
|
+
cssVarsRoot: i = ":where(:root, :host)",
|
|
1411
|
+
cssVarsPrefix: s = "chakra",
|
|
1412
|
+
preflight: c
|
|
1413
|
+
} = t, l = jn(t), f = po({
|
|
1414
|
+
breakpoints: n.breakpoints,
|
|
1415
|
+
tokens: n.tokens,
|
|
1416
|
+
semanticTokens: n.semanticTokens,
|
|
1417
|
+
prefix: s
|
|
1418
|
+
}), u = hn(n.breakpoints ?? j), d = kn({
|
|
1419
|
+
conditions: t.conditions ?? j,
|
|
1420
|
+
breakpoints: u
|
|
1421
|
+
}), a = yo({
|
|
1422
|
+
config: o,
|
|
1423
|
+
tokens: f
|
|
1424
|
+
});
|
|
1425
|
+
function h() {
|
|
1426
|
+
const { textStyles: E, layerStyles: A, animationStyles: $ } = n, N = he({
|
|
1427
|
+
textStyle: E,
|
|
1428
|
+
layerStyle: A,
|
|
1429
|
+
animationStyle: $
|
|
1430
|
+
});
|
|
1431
|
+
for (const [X, te] of Object.entries(N)) {
|
|
1432
|
+
const q = pt(te ?? j, It);
|
|
1433
|
+
a.register(X, {
|
|
1434
|
+
values: Object.keys(q),
|
|
1435
|
+
transform(ke) {
|
|
1436
|
+
return y(q[ke]);
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
h(), a.addPropertyType(
|
|
1442
|
+
"animationName",
|
|
1443
|
+
Object.keys(n.keyframes ?? j)
|
|
1444
|
+
);
|
|
1445
|
+
const b = /* @__PURE__ */ new Set(["css", ...a.keys(), ...d.keys()]), g = F(
|
|
1446
|
+
(E) => b.has(E) || un(E)
|
|
1447
|
+
), k = (E) => Array.isArray(E) ? E.reduce((A, $, N) => {
|
|
1448
|
+
const X = d.breakpoints[N];
|
|
1449
|
+
return $ != null && (A[X] = $), A;
|
|
1450
|
+
}, {}) : E, w = Vn({
|
|
1451
|
+
utility: a,
|
|
1452
|
+
normalize: k
|
|
1453
|
+
}), v = $n({
|
|
1454
|
+
conditions: d,
|
|
1455
|
+
isValidProperty: g
|
|
1456
|
+
}), y = St({
|
|
1457
|
+
transform: a.transform,
|
|
1458
|
+
conditions: d,
|
|
1459
|
+
normalize: w
|
|
1460
|
+
}), T = In({
|
|
1461
|
+
css: y,
|
|
1462
|
+
conditions: d,
|
|
1463
|
+
normalize: w,
|
|
1464
|
+
layers: l
|
|
1465
|
+
}), R = Ln({ cva: T });
|
|
1466
|
+
function W() {
|
|
1467
|
+
const E = {};
|
|
1468
|
+
for (const [A, $] of f.cssVarMap.entries()) {
|
|
1469
|
+
const N = Object.fromEntries($);
|
|
1470
|
+
if (Object.keys(N).length === 0) continue;
|
|
1471
|
+
const X = A === "base" ? i : d.resolve(A), te = X.startsWith("@"), q = y(
|
|
1472
|
+
v({
|
|
1473
|
+
[X]: te ? { [i]: N } : N
|
|
1474
|
+
})
|
|
1475
|
+
);
|
|
1476
|
+
ie(E, q);
|
|
1477
|
+
}
|
|
1478
|
+
return l.wrap("tokens", E);
|
|
1479
|
+
}
|
|
1480
|
+
function J() {
|
|
1481
|
+
const E = Object.fromEntries(
|
|
1482
|
+
Object.entries(n.keyframes ?? j).map(([$, N]) => [
|
|
1483
|
+
`@keyframes ${$}`,
|
|
1484
|
+
N
|
|
1485
|
+
])
|
|
1486
|
+
), A = Object.assign({}, E, y(v(r)));
|
|
1487
|
+
return l.wrap("base", A);
|
|
1488
|
+
}
|
|
1489
|
+
function S(E) {
|
|
1490
|
+
return Be(E, g);
|
|
1491
|
+
}
|
|
1492
|
+
function x() {
|
|
1493
|
+
const E = Nn({ preflight: c });
|
|
1494
|
+
return l.wrap("reset", E);
|
|
1495
|
+
}
|
|
1496
|
+
const C = ko(f), B = (E, A) => C.get(E)?.value || A;
|
|
1497
|
+
B.var = (E, A) => C.get(E)?.variable || A;
|
|
1498
|
+
function M(E, A) {
|
|
1499
|
+
return n.recipes?.[E] ?? A;
|
|
1500
|
+
}
|
|
1501
|
+
function V(E, A) {
|
|
1502
|
+
return n.slotRecipes?.[E] ?? A;
|
|
1503
|
+
}
|
|
1504
|
+
function G(E) {
|
|
1505
|
+
return Object.hasOwnProperty.call(n.recipes ?? j, E);
|
|
1506
|
+
}
|
|
1507
|
+
function se(E) {
|
|
1508
|
+
return Object.hasOwnProperty.call(n.slotRecipes ?? j, E);
|
|
1509
|
+
}
|
|
1510
|
+
function be(E) {
|
|
1511
|
+
return G(E) || se(E);
|
|
1512
|
+
}
|
|
1513
|
+
const ee = [x(), J(), W()], ye = {
|
|
1514
|
+
layerStyles: Ce(n.layerStyles ?? j),
|
|
1515
|
+
textStyles: Ce(n.textStyles ?? j),
|
|
1516
|
+
animationStyles: Ce(n.animationStyles ?? j),
|
|
1517
|
+
tokens: rt(
|
|
1518
|
+
f,
|
|
1519
|
+
Object.keys(n.tokens ?? j),
|
|
1520
|
+
(E, A) => !E.extensions.conditions && !A.includes("colorPalette")
|
|
1521
|
+
),
|
|
1522
|
+
semanticTokens: rt(
|
|
1523
|
+
f,
|
|
1524
|
+
Object.keys(n.semanticTokens ?? j),
|
|
1525
|
+
(E) => !!E.extensions.conditions
|
|
1526
|
+
),
|
|
1527
|
+
keyframes: it(n.keyframes ?? j),
|
|
1528
|
+
breakpoints: it(n.breakpoints ?? j)
|
|
1529
|
+
};
|
|
1530
|
+
return {
|
|
1531
|
+
$$chakra: !0,
|
|
1532
|
+
_config: t,
|
|
1533
|
+
_global: ee,
|
|
1534
|
+
breakpoints: u,
|
|
1535
|
+
tokens: f,
|
|
1536
|
+
conditions: d,
|
|
1537
|
+
utility: a,
|
|
1538
|
+
token: B,
|
|
1539
|
+
properties: b,
|
|
1540
|
+
layers: l,
|
|
1541
|
+
isValidProperty: g,
|
|
1542
|
+
splitCssProps: S,
|
|
1543
|
+
normalizeValue: k,
|
|
1544
|
+
getTokenCss: W,
|
|
1545
|
+
getGlobalCss: J,
|
|
1546
|
+
getPreflightCss: x,
|
|
1547
|
+
css: y,
|
|
1548
|
+
cva: T,
|
|
1549
|
+
sva: R,
|
|
1550
|
+
getRecipe: M,
|
|
1551
|
+
getSlotRecipe: V,
|
|
1552
|
+
hasRecipe: be,
|
|
1553
|
+
isRecipe: G,
|
|
1554
|
+
isSlotRecipe: se,
|
|
1555
|
+
query: ye
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
function ko(e) {
|
|
1559
|
+
const t = /* @__PURE__ */ new Map();
|
|
1560
|
+
return e.allTokens.forEach((n) => {
|
|
1561
|
+
const { cssVar: o, virtual: r, conditions: i } = n.extensions, s = i || r ? o.ref : n.value;
|
|
1562
|
+
t.set(n.name, { value: s, variable: o.ref });
|
|
1563
|
+
}), t;
|
|
1564
|
+
}
|
|
1565
|
+
const It = (e) => Y(e) && "value" in e, Ce = (e) => ({
|
|
1566
|
+
list() {
|
|
1567
|
+
return Object.keys(pt(e, It));
|
|
1568
|
+
},
|
|
1569
|
+
search(t) {
|
|
1570
|
+
return this.list().filter((n) => n.includes(t));
|
|
1571
|
+
}
|
|
1572
|
+
}), rt = (e, t, n) => ({
|
|
1573
|
+
categoryKeys: t,
|
|
1574
|
+
list(o) {
|
|
1575
|
+
return Array.from(e.categoryMap.get(o)?.entries() ?? []).reduce(
|
|
1576
|
+
(r, [i, s]) => (n(s, i) && r.push(i), r),
|
|
1577
|
+
[]
|
|
1578
|
+
);
|
|
1579
|
+
},
|
|
1580
|
+
search(o, r) {
|
|
1581
|
+
return this.list(o).filter((i) => i.includes(r));
|
|
1582
|
+
}
|
|
1583
|
+
}), it = (e) => ({
|
|
1584
|
+
list() {
|
|
1585
|
+
return Object.keys(e);
|
|
1586
|
+
},
|
|
1587
|
+
search(t) {
|
|
1588
|
+
return this.list().filter((n) => n.includes(t));
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
1591
|
+
var vo = lt("collapsible").parts("root", "trigger", "content", "indicator"), ce = vo.build(), xo = (e) => e.ids?.root ?? `collapsible:${e.id}`, Ae = (e) => e.ids?.content ?? `collapsible:${e.id}:content`, So = (e) => e.ids?.trigger ?? `collapsible:${e.id}:trigger`, le = (e) => e.getById(Ae(e));
|
|
1592
|
+
function tr(e, t) {
|
|
1593
|
+
const { state: n, send: o, context: r, scope: i, prop: s } = e, c = n.matches("open") || n.matches("closing"), l = n.matches("open"), { width: f, height: u } = r.get("size"), d = !!s("disabled"), a = !r.get("initial") && l, h = "ltr";
|
|
1594
|
+
return {
|
|
1595
|
+
disabled: d,
|
|
1596
|
+
visible: c,
|
|
1597
|
+
open: l,
|
|
1598
|
+
measureSize() {
|
|
1599
|
+
o({ type: "size.measure" });
|
|
1600
|
+
},
|
|
1601
|
+
setOpen(b) {
|
|
1602
|
+
n.matches("open") !== b && o({ type: b ? "open" : "close" });
|
|
1603
|
+
},
|
|
1604
|
+
getRootProps() {
|
|
1605
|
+
return t.element({
|
|
1606
|
+
...ce.root.attrs,
|
|
1607
|
+
"data-state": l ? "open" : "closed",
|
|
1608
|
+
dir: h,
|
|
1609
|
+
id: xo(i)
|
|
1610
|
+
});
|
|
1611
|
+
},
|
|
1612
|
+
getContentProps() {
|
|
1613
|
+
return t.element({
|
|
1614
|
+
...ce.content.attrs,
|
|
1615
|
+
"data-collapsible": "",
|
|
1616
|
+
"data-state": a ? void 0 : l ? "open" : "closed",
|
|
1617
|
+
id: Ae(i),
|
|
1618
|
+
"data-disabled": Se(d),
|
|
1619
|
+
hidden: !c,
|
|
1620
|
+
style: {
|
|
1621
|
+
"--height": u != null ? `${u}px` : void 0,
|
|
1622
|
+
"--width": f != null ? `${f}px` : void 0
|
|
1623
|
+
}
|
|
1624
|
+
});
|
|
1625
|
+
},
|
|
1626
|
+
getTriggerProps() {
|
|
1627
|
+
return t.element({
|
|
1628
|
+
...ce.trigger.attrs,
|
|
1629
|
+
id: So(i),
|
|
1630
|
+
dir: h,
|
|
1631
|
+
type: "button",
|
|
1632
|
+
"data-state": l ? "open" : "closed",
|
|
1633
|
+
"data-disabled": Se(d),
|
|
1634
|
+
"aria-controls": Ae(i),
|
|
1635
|
+
"aria-expanded": c || !1,
|
|
1636
|
+
onClick(b) {
|
|
1637
|
+
b.defaultPrevented || d || o({ type: l ? "close" : "open" });
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
},
|
|
1641
|
+
getIndicatorProps() {
|
|
1642
|
+
return t.element({
|
|
1643
|
+
...ce.indicator.attrs,
|
|
1644
|
+
dir: h,
|
|
1645
|
+
"data-state": l ? "open" : "closed",
|
|
1646
|
+
"data-disabled": Se(d)
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
var nr = ut({
|
|
1652
|
+
initialState({ prop: e }) {
|
|
1653
|
+
return e("open") || e("defaultOpen") ? "open" : "closed";
|
|
1654
|
+
},
|
|
1655
|
+
context({ bindable: e }) {
|
|
1656
|
+
return {
|
|
1657
|
+
size: e(() => ({
|
|
1658
|
+
defaultValue: { height: 0, width: 0 },
|
|
1659
|
+
sync: !0
|
|
1660
|
+
})),
|
|
1661
|
+
initial: e(() => ({
|
|
1662
|
+
defaultValue: !1
|
|
1663
|
+
}))
|
|
1664
|
+
};
|
|
1665
|
+
},
|
|
1666
|
+
refs() {
|
|
1667
|
+
return {
|
|
1668
|
+
cleanup: void 0,
|
|
1669
|
+
stylesRef: void 0
|
|
1670
|
+
};
|
|
1671
|
+
},
|
|
1672
|
+
watch({ track: e, prop: t, action: n }) {
|
|
1673
|
+
e([() => t("open")], () => {
|
|
1674
|
+
n(["setInitial", "computeSize", "toggleVisibility"]);
|
|
1675
|
+
});
|
|
1676
|
+
},
|
|
1677
|
+
exit: ["clearInitial", "cleanupNode"],
|
|
1678
|
+
states: {
|
|
1679
|
+
closed: {
|
|
1680
|
+
on: {
|
|
1681
|
+
"controlled.open": {
|
|
1682
|
+
target: "open"
|
|
1683
|
+
},
|
|
1684
|
+
open: [
|
|
1685
|
+
{
|
|
1686
|
+
guard: "isOpenControlled",
|
|
1687
|
+
actions: ["invokeOnOpen"]
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
target: "open",
|
|
1691
|
+
actions: ["setInitial", "computeSize", "invokeOnOpen"]
|
|
1692
|
+
}
|
|
1693
|
+
]
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
closing: {
|
|
1697
|
+
effects: ["trackExitAnimation"],
|
|
1698
|
+
on: {
|
|
1699
|
+
"controlled.close": {
|
|
1700
|
+
target: "closed"
|
|
1701
|
+
},
|
|
1702
|
+
"controlled.open": {
|
|
1703
|
+
target: "open"
|
|
1704
|
+
},
|
|
1705
|
+
open: [
|
|
1706
|
+
{
|
|
1707
|
+
guard: "isOpenControlled",
|
|
1708
|
+
actions: ["invokeOnOpen"]
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
target: "open",
|
|
1712
|
+
actions: ["setInitial", "invokeOnOpen"]
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
close: [
|
|
1716
|
+
{
|
|
1717
|
+
guard: "isOpenControlled",
|
|
1718
|
+
actions: ["invokeOnExitComplete"]
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
target: "closed",
|
|
1722
|
+
actions: ["setInitial", "computeSize", "invokeOnExitComplete"]
|
|
1723
|
+
}
|
|
1724
|
+
],
|
|
1725
|
+
"animation.end": {
|
|
1726
|
+
target: "closed",
|
|
1727
|
+
actions: ["invokeOnExitComplete", "clearInitial"]
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
open: {
|
|
1732
|
+
effects: ["trackEnterAnimation"],
|
|
1733
|
+
on: {
|
|
1734
|
+
"controlled.close": {
|
|
1735
|
+
target: "closing"
|
|
1736
|
+
},
|
|
1737
|
+
close: [
|
|
1738
|
+
{
|
|
1739
|
+
guard: "isOpenControlled",
|
|
1740
|
+
actions: ["invokeOnClose"]
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
target: "closing",
|
|
1744
|
+
actions: ["setInitial", "computeSize", "invokeOnClose"]
|
|
1745
|
+
}
|
|
1746
|
+
],
|
|
1747
|
+
"size.measure": {
|
|
1748
|
+
actions: ["measureSize"]
|
|
1749
|
+
},
|
|
1750
|
+
"animation.end": {
|
|
1751
|
+
actions: ["clearInitial"]
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
implementations: {
|
|
1757
|
+
guards: {
|
|
1758
|
+
isOpenControlled: ({ prop: e }) => e("open") != null
|
|
1759
|
+
},
|
|
1760
|
+
effects: {
|
|
1761
|
+
trackEnterAnimation: ({ send: e, scope: t }) => {
|
|
1762
|
+
let n;
|
|
1763
|
+
const o = Ee(() => {
|
|
1764
|
+
const r = le(t);
|
|
1765
|
+
if (!r) return;
|
|
1766
|
+
const i = _e(r).animationName;
|
|
1767
|
+
if (!i || i === "none") {
|
|
1768
|
+
e({ type: "animation.end" });
|
|
1769
|
+
return;
|
|
1770
|
+
}
|
|
1771
|
+
const c = (l) => {
|
|
1772
|
+
Le(l) === r && e({ type: "animation.end" });
|
|
1773
|
+
};
|
|
1774
|
+
r.addEventListener("animationend", c), n = () => {
|
|
1775
|
+
r.removeEventListener("animationend", c);
|
|
1776
|
+
};
|
|
1777
|
+
});
|
|
1778
|
+
return () => {
|
|
1779
|
+
o(), n?.();
|
|
1780
|
+
};
|
|
1781
|
+
},
|
|
1782
|
+
trackExitAnimation: ({ send: e, scope: t }) => {
|
|
1783
|
+
let n;
|
|
1784
|
+
const o = Ee(() => {
|
|
1785
|
+
const r = le(t);
|
|
1786
|
+
if (!r) return;
|
|
1787
|
+
const i = _e(r).animationName;
|
|
1788
|
+
if (!i || i === "none") {
|
|
1789
|
+
e({ type: "animation.end" });
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1792
|
+
const c = (f) => {
|
|
1793
|
+
Le(f) === r && e({ type: "animation.end" });
|
|
1794
|
+
};
|
|
1795
|
+
r.addEventListener("animationend", c);
|
|
1796
|
+
const l = Qt(r, {
|
|
1797
|
+
animationFillMode: "forwards"
|
|
1798
|
+
});
|
|
1799
|
+
n = () => {
|
|
1800
|
+
r.removeEventListener("animationend", c), Zt(() => l());
|
|
1801
|
+
};
|
|
1802
|
+
});
|
|
1803
|
+
return () => {
|
|
1804
|
+
o(), n?.();
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
actions: {
|
|
1809
|
+
setInitial: ({ context: e, flush: t }) => {
|
|
1810
|
+
t(() => {
|
|
1811
|
+
e.set("initial", !0);
|
|
1812
|
+
});
|
|
1813
|
+
},
|
|
1814
|
+
clearInitial: ({ context: e }) => {
|
|
1815
|
+
e.set("initial", !1);
|
|
1816
|
+
},
|
|
1817
|
+
cleanupNode: ({ refs: e }) => {
|
|
1818
|
+
e.set("stylesRef", null);
|
|
1819
|
+
},
|
|
1820
|
+
measureSize: ({ context: e, scope: t }) => {
|
|
1821
|
+
const n = le(t);
|
|
1822
|
+
if (!n) return;
|
|
1823
|
+
const { height: o, width: r } = n.getBoundingClientRect();
|
|
1824
|
+
e.set("size", { height: o, width: r });
|
|
1825
|
+
},
|
|
1826
|
+
computeSize: ({ refs: e, scope: t, context: n }) => {
|
|
1827
|
+
e.get("cleanup")?.();
|
|
1828
|
+
const o = Ee(() => {
|
|
1829
|
+
const r = le(t);
|
|
1830
|
+
if (!r) return;
|
|
1831
|
+
const i = r.hidden;
|
|
1832
|
+
r.style.animationName = "none", r.style.animationDuration = "0s", r.hidden = !1;
|
|
1833
|
+
const s = r.getBoundingClientRect();
|
|
1834
|
+
n.set("size", { height: s.height, width: s.width }), n.get("initial") && (r.style.animationName = "", r.style.animationDuration = ""), r.hidden = i;
|
|
1835
|
+
});
|
|
1836
|
+
e.set("cleanup", o);
|
|
1837
|
+
},
|
|
1838
|
+
invokeOnOpen: ({ prop: e }) => {
|
|
1839
|
+
e("onOpenChange")?.({ open: !0 });
|
|
1840
|
+
},
|
|
1841
|
+
invokeOnClose: ({ prop: e }) => {
|
|
1842
|
+
e("onOpenChange")?.({ open: !1 });
|
|
1843
|
+
},
|
|
1844
|
+
invokeOnExitComplete: ({ prop: e }) => {
|
|
1845
|
+
e("onExitComplete")?.();
|
|
1846
|
+
},
|
|
1847
|
+
toggleVisibility: ({ prop: e, send: t }) => {
|
|
1848
|
+
t({ type: e("open") ? "controlled.open" : "controlled.close" });
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
});
|
|
1853
|
+
dt()([
|
|
1854
|
+
"dir",
|
|
1855
|
+
"disabled",
|
|
1856
|
+
"getRootNode",
|
|
1857
|
+
"id",
|
|
1858
|
+
"ids",
|
|
1859
|
+
"onExitComplete",
|
|
1860
|
+
"onOpenChange",
|
|
1861
|
+
"defaultOpen",
|
|
1862
|
+
"open"
|
|
1863
|
+
]);
|
|
1864
|
+
var K = /* @__PURE__ */ ((e) => (e[e.Border = -1] = "Border", e[e.Data = 0] = "Data", e[e.Function = 1] = "Function", e[e.Position = 2] = "Position", e[e.Timing = 3] = "Timing", e[e.Alignment = 4] = "Alignment", e))(K || {}), Eo = Object.defineProperty, wo = (e, t, n) => t in e ? Eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ue = (e, t, n) => (wo(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1865
|
+
const Co = [0, 1], Bt = [1, 0], zt = [2, 3], jt = [3, 2], Oo = {
|
|
1866
|
+
L: Co,
|
|
1867
|
+
M: Bt,
|
|
1868
|
+
Q: zt,
|
|
1869
|
+
H: jt
|
|
1870
|
+
}, Po = /^[0-9]*$/, Mo = /^[A-Z0-9 $%*+.\/:-]*$/, Oe = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:", je = 1, Ve = 40, st = 3, Ro = 3, fe = 40, Ao = 10, Vt = [
|
|
1871
|
+
// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
1872
|
+
// 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
|
|
1873
|
+
[-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
|
|
1874
|
+
// Low
|
|
1875
|
+
[-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],
|
|
1876
|
+
// Medium
|
|
1877
|
+
[-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
|
|
1878
|
+
// Quartile
|
|
1879
|
+
[-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]
|
|
1880
|
+
// High
|
|
1881
|
+
], Nt = [
|
|
1882
|
+
// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
1883
|
+
// 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
|
|
1884
|
+
[-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],
|
|
1885
|
+
// Low
|
|
1886
|
+
[-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],
|
|
1887
|
+
// Medium
|
|
1888
|
+
[-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],
|
|
1889
|
+
// Quartile
|
|
1890
|
+
[-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]
|
|
1891
|
+
// High
|
|
1892
|
+
];
|
|
1893
|
+
class To {
|
|
1894
|
+
/* -- Constructor (low level) and fields -- */
|
|
1895
|
+
// Creates a new QR Code with the given version number,
|
|
1896
|
+
// error correction level, data codeword bytes, and mask number.
|
|
1897
|
+
// This is a low-level API that most users should not use directly.
|
|
1898
|
+
// A mid-level API is the encodeSegments() function.
|
|
1899
|
+
constructor(t, n, o, r) {
|
|
1900
|
+
if (this.version = t, this.ecc = n, ue(this, "size"), ue(this, "mask"), ue(this, "modules", []), ue(this, "types", []), t < je || t > Ve)
|
|
1901
|
+
throw new RangeError("Version value out of range");
|
|
1902
|
+
if (r < -1 || r > 7)
|
|
1903
|
+
throw new RangeError("Mask value out of range");
|
|
1904
|
+
this.size = t * 4 + 17;
|
|
1905
|
+
const i = Array.from({ length: this.size }, () => !1);
|
|
1906
|
+
for (let c = 0; c < this.size; c++)
|
|
1907
|
+
this.modules.push(i.slice()), this.types.push(i.map(() => 0));
|
|
1908
|
+
this.drawFunctionPatterns();
|
|
1909
|
+
const s = this.addEccAndInterleave(o);
|
|
1910
|
+
if (this.drawCodewords(s), r === -1) {
|
|
1911
|
+
let c = 1e9;
|
|
1912
|
+
for (let l = 0; l < 8; l++) {
|
|
1913
|
+
this.applyMask(l), this.drawFormatBits(l);
|
|
1914
|
+
const f = this.getPenaltyScore();
|
|
1915
|
+
f < c && (r = l, c = f), this.applyMask(l);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
this.mask = r, this.applyMask(r), this.drawFormatBits(r);
|
|
1919
|
+
}
|
|
1920
|
+
/* -- Accessor methods -- */
|
|
1921
|
+
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
1922
|
+
// for light or true for dark. The top left corner has the coordinates (x=0, y=0).
|
|
1923
|
+
// If the given coordinates are out of bounds, then false (light) is returned.
|
|
1924
|
+
getModule(t, n) {
|
|
1925
|
+
return t >= 0 && t < this.size && n >= 0 && n < this.size && this.modules[n][t];
|
|
1926
|
+
}
|
|
1927
|
+
/* -- Private helper methods for constructor: Drawing function modules -- */
|
|
1928
|
+
// Reads this object's version field, and draws and marks all function modules.
|
|
1929
|
+
drawFunctionPatterns() {
|
|
1930
|
+
for (let o = 0; o < this.size; o++)
|
|
1931
|
+
this.setFunctionModule(6, o, o % 2 === 0, K.Timing), this.setFunctionModule(o, 6, o % 2 === 0, K.Timing);
|
|
1932
|
+
this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4);
|
|
1933
|
+
const t = this.getAlignmentPatternPositions(), n = t.length;
|
|
1934
|
+
for (let o = 0; o < n; o++)
|
|
1935
|
+
for (let r = 0; r < n; r++)
|
|
1936
|
+
o === 0 && r === 0 || o === 0 && r === n - 1 || o === n - 1 && r === 0 || this.drawAlignmentPattern(t[o], t[r]);
|
|
1937
|
+
this.drawFormatBits(0), this.drawVersion();
|
|
1938
|
+
}
|
|
1939
|
+
// Draws two copies of the format bits (with its own error correction code)
|
|
1940
|
+
// based on the given mask and this object's error correction level field.
|
|
1941
|
+
drawFormatBits(t) {
|
|
1942
|
+
const n = this.ecc[1] << 3 | t;
|
|
1943
|
+
let o = n;
|
|
1944
|
+
for (let i = 0; i < 10; i++)
|
|
1945
|
+
o = o << 1 ^ (o >>> 9) * 1335;
|
|
1946
|
+
const r = (n << 10 | o) ^ 21522;
|
|
1947
|
+
for (let i = 0; i <= 5; i++)
|
|
1948
|
+
this.setFunctionModule(8, i, L(r, i));
|
|
1949
|
+
this.setFunctionModule(8, 7, L(r, 6)), this.setFunctionModule(8, 8, L(r, 7)), this.setFunctionModule(7, 8, L(r, 8));
|
|
1950
|
+
for (let i = 9; i < 15; i++)
|
|
1951
|
+
this.setFunctionModule(14 - i, 8, L(r, i));
|
|
1952
|
+
for (let i = 0; i < 8; i++)
|
|
1953
|
+
this.setFunctionModule(this.size - 1 - i, 8, L(r, i));
|
|
1954
|
+
for (let i = 8; i < 15; i++)
|
|
1955
|
+
this.setFunctionModule(8, this.size - 15 + i, L(r, i));
|
|
1956
|
+
this.setFunctionModule(8, this.size - 8, !0);
|
|
1957
|
+
}
|
|
1958
|
+
// Draws two copies of the version bits (with its own error correction code),
|
|
1959
|
+
// based on this object's version field, iff 7 <= version <= 40.
|
|
1960
|
+
drawVersion() {
|
|
1961
|
+
if (this.version < 7)
|
|
1962
|
+
return;
|
|
1963
|
+
let t = this.version;
|
|
1964
|
+
for (let o = 0; o < 12; o++)
|
|
1965
|
+
t = t << 1 ^ (t >>> 11) * 7973;
|
|
1966
|
+
const n = this.version << 12 | t;
|
|
1967
|
+
for (let o = 0; o < 18; o++) {
|
|
1968
|
+
const r = L(n, o), i = this.size - 11 + o % 3, s = Math.floor(o / 3);
|
|
1969
|
+
this.setFunctionModule(i, s, r), this.setFunctionModule(s, i, r);
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
// Draws a 9*9 finder pattern including the border separator,
|
|
1973
|
+
// with the center module at (x, y). Modules can be out of bounds.
|
|
1974
|
+
drawFinderPattern(t, n) {
|
|
1975
|
+
for (let o = -4; o <= 4; o++)
|
|
1976
|
+
for (let r = -4; r <= 4; r++) {
|
|
1977
|
+
const i = Math.max(Math.abs(r), Math.abs(o)), s = t + r, c = n + o;
|
|
1978
|
+
s >= 0 && s < this.size && c >= 0 && c < this.size && this.setFunctionModule(s, c, i !== 2 && i !== 4, K.Position);
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
// Draws a 5*5 alignment pattern, with the center module
|
|
1982
|
+
// at (x, y). All modules must be in bounds.
|
|
1983
|
+
drawAlignmentPattern(t, n) {
|
|
1984
|
+
for (let o = -2; o <= 2; o++)
|
|
1985
|
+
for (let r = -2; r <= 2; r++)
|
|
1986
|
+
this.setFunctionModule(
|
|
1987
|
+
t + r,
|
|
1988
|
+
n + o,
|
|
1989
|
+
Math.max(Math.abs(r), Math.abs(o)) !== 1,
|
|
1990
|
+
K.Alignment
|
|
1991
|
+
);
|
|
1992
|
+
}
|
|
1993
|
+
// Sets the color of a module and marks it as a function module.
|
|
1994
|
+
// Only used by the constructor. Coordinates must be in bounds.
|
|
1995
|
+
setFunctionModule(t, n, o, r = K.Function) {
|
|
1996
|
+
this.modules[n][t] = o, this.types[n][t] = r;
|
|
1997
|
+
}
|
|
1998
|
+
/* -- Private helper methods for constructor: Codewords and masking -- */
|
|
1999
|
+
// Returns a new byte string representing the given data with the appropriate error correction
|
|
2000
|
+
// codewords appended to it, based on this object's version and error correction level.
|
|
2001
|
+
addEccAndInterleave(t) {
|
|
2002
|
+
const n = this.version, o = this.ecc;
|
|
2003
|
+
if (t.length !== pe(n, o))
|
|
2004
|
+
throw new RangeError("Invalid argument");
|
|
2005
|
+
const r = Nt[o[0]][n], i = Vt[o[0]][n], s = Math.floor(Te(n) / 8), c = r - s % r, l = Math.floor(s / r), f = [], u = Wo(i);
|
|
2006
|
+
for (let a = 0, h = 0; a < r; a++) {
|
|
2007
|
+
const b = t.slice(h, h + l - i + (a < c ? 0 : 1));
|
|
2008
|
+
h += b.length;
|
|
2009
|
+
const g = _o(b, u);
|
|
2010
|
+
a < c && b.push(0), f.push(b.concat(g));
|
|
2011
|
+
}
|
|
2012
|
+
const d = [];
|
|
2013
|
+
for (let a = 0; a < f[0].length; a++)
|
|
2014
|
+
f.forEach((h, b) => {
|
|
2015
|
+
(a !== l - i || b >= c) && d.push(h[a]);
|
|
2016
|
+
});
|
|
2017
|
+
return d;
|
|
2018
|
+
}
|
|
2019
|
+
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
2020
|
+
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
2021
|
+
drawCodewords(t) {
|
|
2022
|
+
if (t.length !== Math.floor(Te(this.version) / 8))
|
|
2023
|
+
throw new RangeError("Invalid argument");
|
|
2024
|
+
let n = 0;
|
|
2025
|
+
for (let o = this.size - 1; o >= 1; o -= 2) {
|
|
2026
|
+
o === 6 && (o = 5);
|
|
2027
|
+
for (let r = 0; r < this.size; r++)
|
|
2028
|
+
for (let i = 0; i < 2; i++) {
|
|
2029
|
+
const s = o - i, l = (o + 1 & 2) === 0 ? this.size - 1 - r : r;
|
|
2030
|
+
!this.types[l][s] && n < t.length * 8 && (this.modules[l][s] = L(t[n >>> 3], 7 - (n & 7)), n++);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
// XORs the codeword modules in this QR Code with the given mask pattern.
|
|
2035
|
+
// The function modules must be marked and the codeword bits must be drawn
|
|
2036
|
+
// before masking. Due to the arithmetic of XOR, calling applyMask() with
|
|
2037
|
+
// the same mask value a second time will undo the mask. A final well-formed
|
|
2038
|
+
// QR Code needs exactly one (not zero, two, etc.) mask applied.
|
|
2039
|
+
applyMask(t) {
|
|
2040
|
+
if (t < 0 || t > 7)
|
|
2041
|
+
throw new RangeError("Mask value out of range");
|
|
2042
|
+
for (let n = 0; n < this.size; n++)
|
|
2043
|
+
for (let o = 0; o < this.size; o++) {
|
|
2044
|
+
let r;
|
|
2045
|
+
switch (t) {
|
|
2046
|
+
case 0:
|
|
2047
|
+
r = (o + n) % 2 === 0;
|
|
2048
|
+
break;
|
|
2049
|
+
case 1:
|
|
2050
|
+
r = n % 2 === 0;
|
|
2051
|
+
break;
|
|
2052
|
+
case 2:
|
|
2053
|
+
r = o % 3 === 0;
|
|
2054
|
+
break;
|
|
2055
|
+
case 3:
|
|
2056
|
+
r = (o + n) % 3 === 0;
|
|
2057
|
+
break;
|
|
2058
|
+
case 4:
|
|
2059
|
+
r = (Math.floor(o / 3) + Math.floor(n / 2)) % 2 === 0;
|
|
2060
|
+
break;
|
|
2061
|
+
case 5:
|
|
2062
|
+
r = o * n % 2 + o * n % 3 === 0;
|
|
2063
|
+
break;
|
|
2064
|
+
case 6:
|
|
2065
|
+
r = (o * n % 2 + o * n % 3) % 2 === 0;
|
|
2066
|
+
break;
|
|
2067
|
+
case 7:
|
|
2068
|
+
r = ((o + n) % 2 + o * n % 3) % 2 === 0;
|
|
2069
|
+
break;
|
|
2070
|
+
default:
|
|
2071
|
+
throw new Error("Unreachable");
|
|
2072
|
+
}
|
|
2073
|
+
!this.types[n][o] && r && (this.modules[n][o] = !this.modules[n][o]);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
// Calculates and returns the penalty score based on state of this QR Code's current modules.
|
|
2077
|
+
// This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
|
|
2078
|
+
getPenaltyScore() {
|
|
2079
|
+
let t = 0;
|
|
2080
|
+
for (let i = 0; i < this.size; i++) {
|
|
2081
|
+
let s = !1, c = 0;
|
|
2082
|
+
const l = [0, 0, 0, 0, 0, 0, 0];
|
|
2083
|
+
for (let f = 0; f < this.size; f++)
|
|
2084
|
+
this.modules[i][f] === s ? (c++, c === 5 ? t += st : c > 5 && t++) : (this.finderPenaltyAddHistory(c, l), s || (t += this.finderPenaltyCountPatterns(l) * fe), s = this.modules[i][f], c = 1);
|
|
2085
|
+
t += this.finderPenaltyTerminateAndCount(s, c, l) * fe;
|
|
2086
|
+
}
|
|
2087
|
+
for (let i = 0; i < this.size; i++) {
|
|
2088
|
+
let s = !1, c = 0;
|
|
2089
|
+
const l = [0, 0, 0, 0, 0, 0, 0];
|
|
2090
|
+
for (let f = 0; f < this.size; f++)
|
|
2091
|
+
this.modules[f][i] === s ? (c++, c === 5 ? t += st : c > 5 && t++) : (this.finderPenaltyAddHistory(c, l), s || (t += this.finderPenaltyCountPatterns(l) * fe), s = this.modules[f][i], c = 1);
|
|
2092
|
+
t += this.finderPenaltyTerminateAndCount(s, c, l) * fe;
|
|
2093
|
+
}
|
|
2094
|
+
for (let i = 0; i < this.size - 1; i++)
|
|
2095
|
+
for (let s = 0; s < this.size - 1; s++) {
|
|
2096
|
+
const c = this.modules[i][s];
|
|
2097
|
+
c === this.modules[i][s + 1] && c === this.modules[i + 1][s] && c === this.modules[i + 1][s + 1] && (t += Ro);
|
|
2098
|
+
}
|
|
2099
|
+
let n = 0;
|
|
2100
|
+
for (const i of this.modules)
|
|
2101
|
+
n = i.reduce((s, c) => s + (c ? 1 : 0), n);
|
|
2102
|
+
const o = this.size * this.size, r = Math.ceil(Math.abs(n * 20 - o * 10) / o) - 1;
|
|
2103
|
+
return t += r * Ao, t;
|
|
2104
|
+
}
|
|
2105
|
+
/* -- Private helper functions -- */
|
|
2106
|
+
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
2107
|
+
// Each position is in the range [0,177), and are used on both the x and y axes.
|
|
2108
|
+
// This could be implemented as lookup table of 40 variable-length lists of integers.
|
|
2109
|
+
getAlignmentPatternPositions() {
|
|
2110
|
+
if (this.version === 1)
|
|
2111
|
+
return [];
|
|
2112
|
+
{
|
|
2113
|
+
const t = Math.floor(this.version / 7) + 2, n = this.version === 32 ? 26 : Math.ceil((this.version * 4 + 4) / (t * 2 - 2)) * 2, o = [6];
|
|
2114
|
+
for (let r = this.size - 7; o.length < t; r -= n)
|
|
2115
|
+
o.splice(1, 0, r);
|
|
2116
|
+
return o;
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
// Can only be called immediately after a light run is added, and
|
|
2120
|
+
// returns either 0, 1, or 2. A helper function for getPenaltyScore().
|
|
2121
|
+
finderPenaltyCountPatterns(t) {
|
|
2122
|
+
const n = t[1], o = n > 0 && t[2] === n && t[3] === n * 3 && t[4] === n && t[5] === n;
|
|
2123
|
+
return (o && t[0] >= n * 4 && t[6] >= n ? 1 : 0) + (o && t[6] >= n * 4 && t[0] >= n ? 1 : 0);
|
|
2124
|
+
}
|
|
2125
|
+
// Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
|
|
2126
|
+
finderPenaltyTerminateAndCount(t, n, o) {
|
|
2127
|
+
return t && (this.finderPenaltyAddHistory(n, o), n = 0), n += this.size, this.finderPenaltyAddHistory(n, o), this.finderPenaltyCountPatterns(o);
|
|
2128
|
+
}
|
|
2129
|
+
// Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
|
|
2130
|
+
finderPenaltyAddHistory(t, n) {
|
|
2131
|
+
n[0] === 0 && (t += this.size), n.pop(), n.unshift(t);
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
function D(e, t, n) {
|
|
2135
|
+
if (t < 0 || t > 31 || e >>> t)
|
|
2136
|
+
throw new RangeError("Value out of range");
|
|
2137
|
+
for (let o = t - 1; o >= 0; o--)
|
|
2138
|
+
n.push(e >>> o & 1);
|
|
2139
|
+
}
|
|
2140
|
+
function L(e, t) {
|
|
2141
|
+
return (e >>> t & 1) !== 0;
|
|
2142
|
+
}
|
|
2143
|
+
class Ne {
|
|
2144
|
+
// Creates a new QR Code segment with the given attributes and data.
|
|
2145
|
+
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
2146
|
+
// but the constraint isn't checked. The given bit buffer is cloned and stored.
|
|
2147
|
+
constructor(t, n, o) {
|
|
2148
|
+
if (this.mode = t, this.numChars = n, this.bitData = o, n < 0)
|
|
2149
|
+
throw new RangeError("Invalid argument");
|
|
2150
|
+
this.bitData = o.slice();
|
|
2151
|
+
}
|
|
2152
|
+
/* -- Methods -- */
|
|
2153
|
+
// Returns a new copy of the data bits of this segment.
|
|
2154
|
+
getData() {
|
|
2155
|
+
return this.bitData.slice();
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
const Io = [1, 10, 12, 14], Bo = [2, 9, 11, 13], zo = [4, 8, 16, 16];
|
|
2159
|
+
function $t(e, t) {
|
|
2160
|
+
return e[Math.floor((t + 7) / 17) + 1];
|
|
2161
|
+
}
|
|
2162
|
+
function Ft(e) {
|
|
2163
|
+
const t = [];
|
|
2164
|
+
for (const n of e)
|
|
2165
|
+
D(n, 8, t);
|
|
2166
|
+
return new Ne(zo, e.length, t);
|
|
2167
|
+
}
|
|
2168
|
+
function jo(e) {
|
|
2169
|
+
if (!Wt(e))
|
|
2170
|
+
throw new RangeError("String contains non-numeric characters");
|
|
2171
|
+
const t = [];
|
|
2172
|
+
for (let n = 0; n < e.length; ) {
|
|
2173
|
+
const o = Math.min(e.length - n, 3);
|
|
2174
|
+
D(Number.parseInt(e.substring(n, n + o), 10), o * 3 + 1, t), n += o;
|
|
2175
|
+
}
|
|
2176
|
+
return new Ne(Io, e.length, t);
|
|
2177
|
+
}
|
|
2178
|
+
function Vo(e) {
|
|
2179
|
+
if (!_t(e))
|
|
2180
|
+
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
2181
|
+
const t = [];
|
|
2182
|
+
let n;
|
|
2183
|
+
for (n = 0; n + 2 <= e.length; n += 2) {
|
|
2184
|
+
let o = Oe.indexOf(e.charAt(n)) * 45;
|
|
2185
|
+
o += Oe.indexOf(e.charAt(n + 1)), D(o, 11, t);
|
|
2186
|
+
}
|
|
2187
|
+
return n < e.length && D(Oe.indexOf(e.charAt(n)), 6, t), new Ne(Bo, e.length, t);
|
|
2188
|
+
}
|
|
2189
|
+
function No(e) {
|
|
2190
|
+
return e === "" ? [] : Wt(e) ? [jo(e)] : _t(e) ? [Vo(e)] : [Ft(Fo(e))];
|
|
2191
|
+
}
|
|
2192
|
+
function Wt(e) {
|
|
2193
|
+
return Po.test(e);
|
|
2194
|
+
}
|
|
2195
|
+
function _t(e) {
|
|
2196
|
+
return Mo.test(e);
|
|
2197
|
+
}
|
|
2198
|
+
function $o(e, t) {
|
|
2199
|
+
let n = 0;
|
|
2200
|
+
for (const o of e) {
|
|
2201
|
+
const r = $t(o.mode, t);
|
|
2202
|
+
if (o.numChars >= 1 << r)
|
|
2203
|
+
return Number.POSITIVE_INFINITY;
|
|
2204
|
+
n += 4 + r + o.bitData.length;
|
|
2205
|
+
}
|
|
2206
|
+
return n;
|
|
2207
|
+
}
|
|
2208
|
+
function Fo(e) {
|
|
2209
|
+
e = encodeURI(e);
|
|
2210
|
+
const t = [];
|
|
2211
|
+
for (let n = 0; n < e.length; n++)
|
|
2212
|
+
e.charAt(n) !== "%" ? t.push(e.charCodeAt(n)) : (t.push(Number.parseInt(e.substring(n + 1, n + 3), 16)), n += 2);
|
|
2213
|
+
return t;
|
|
2214
|
+
}
|
|
2215
|
+
function Te(e) {
|
|
2216
|
+
if (e < je || e > Ve)
|
|
2217
|
+
throw new RangeError("Version number out of range");
|
|
2218
|
+
let t = (16 * e + 128) * e + 64;
|
|
2219
|
+
if (e >= 2) {
|
|
2220
|
+
const n = Math.floor(e / 7) + 2;
|
|
2221
|
+
t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
|
|
2222
|
+
}
|
|
2223
|
+
return t;
|
|
2224
|
+
}
|
|
2225
|
+
function pe(e, t) {
|
|
2226
|
+
return Math.floor(Te(e) / 8) - Vt[t[0]][e] * Nt[t[0]][e];
|
|
2227
|
+
}
|
|
2228
|
+
function Wo(e) {
|
|
2229
|
+
if (e < 1 || e > 255)
|
|
2230
|
+
throw new RangeError("Degree out of range");
|
|
2231
|
+
const t = [];
|
|
2232
|
+
for (let o = 0; o < e - 1; o++)
|
|
2233
|
+
t.push(0);
|
|
2234
|
+
t.push(1);
|
|
2235
|
+
let n = 1;
|
|
2236
|
+
for (let o = 0; o < e; o++) {
|
|
2237
|
+
for (let r = 0; r < t.length; r++)
|
|
2238
|
+
t[r] = Ie(t[r], n), r + 1 < t.length && (t[r] ^= t[r + 1]);
|
|
2239
|
+
n = Ie(n, 2);
|
|
2240
|
+
}
|
|
2241
|
+
return t;
|
|
2242
|
+
}
|
|
2243
|
+
function _o(e, t) {
|
|
2244
|
+
const n = t.map((o) => 0);
|
|
2245
|
+
for (const o of e) {
|
|
2246
|
+
const r = o ^ n.shift();
|
|
2247
|
+
n.push(0), t.forEach((i, s) => n[s] ^= Ie(i, r));
|
|
2248
|
+
}
|
|
2249
|
+
return n;
|
|
2250
|
+
}
|
|
2251
|
+
function Ie(e, t) {
|
|
2252
|
+
if (e >>> 8 || t >>> 8)
|
|
2253
|
+
throw new RangeError("Byte out of range");
|
|
2254
|
+
let n = 0;
|
|
2255
|
+
for (let o = 7; o >= 0; o--)
|
|
2256
|
+
n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> o & 1) * e;
|
|
2257
|
+
return n;
|
|
2258
|
+
}
|
|
2259
|
+
function Lo(e, t, n = 1, o = 40, r = -1, i = !0) {
|
|
2260
|
+
if (!(je <= n && n <= o && o <= Ve) || r < -1 || r > 7)
|
|
2261
|
+
throw new RangeError("Invalid value");
|
|
2262
|
+
let s, c;
|
|
2263
|
+
for (s = n; ; s++) {
|
|
2264
|
+
const d = pe(s, t) * 8, a = $o(e, s);
|
|
2265
|
+
if (a <= d) {
|
|
2266
|
+
c = a;
|
|
2267
|
+
break;
|
|
2268
|
+
}
|
|
2269
|
+
if (s >= o)
|
|
2270
|
+
throw new RangeError("Data too long");
|
|
2271
|
+
}
|
|
2272
|
+
for (const d of [Bt, zt, jt])
|
|
2273
|
+
i && c <= pe(s, d) * 8 && (t = d);
|
|
2274
|
+
const l = [];
|
|
2275
|
+
for (const d of e) {
|
|
2276
|
+
D(d.mode[0], 4, l), D(d.numChars, $t(d.mode, s), l);
|
|
2277
|
+
for (const a of d.getData())
|
|
2278
|
+
l.push(a);
|
|
2279
|
+
}
|
|
2280
|
+
const f = pe(s, t) * 8;
|
|
2281
|
+
D(0, Math.min(4, f - l.length), l), D(0, (8 - l.length % 8) % 8, l);
|
|
2282
|
+
for (let d = 236; l.length < f; d ^= 253)
|
|
2283
|
+
D(d, 8, l);
|
|
2284
|
+
const u = Array.from({ length: Math.ceil(l.length / 8) }, () => 0);
|
|
2285
|
+
return l.forEach((d, a) => u[a >>> 3] |= d << 7 - (a & 7)), new To(s, t, u, r);
|
|
2286
|
+
}
|
|
2287
|
+
function Do(e, t) {
|
|
2288
|
+
const {
|
|
2289
|
+
ecc: n = "L",
|
|
2290
|
+
boostEcc: o = !1,
|
|
2291
|
+
minVersion: r = 1,
|
|
2292
|
+
maxVersion: i = 40,
|
|
2293
|
+
maskPattern: s = -1,
|
|
2294
|
+
border: c = 1
|
|
2295
|
+
} = t || {}, l = typeof e == "string" ? No(e) : Array.isArray(e) ? [Ft(e)] : void 0;
|
|
2296
|
+
if (!l)
|
|
2297
|
+
throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);
|
|
2298
|
+
const f = Lo(
|
|
2299
|
+
l,
|
|
2300
|
+
Oo[n],
|
|
2301
|
+
r,
|
|
2302
|
+
i,
|
|
2303
|
+
s,
|
|
2304
|
+
o
|
|
2305
|
+
), u = Uo({
|
|
2306
|
+
version: f.version,
|
|
2307
|
+
maskPattern: f.mask,
|
|
2308
|
+
size: f.size,
|
|
2309
|
+
data: f.modules,
|
|
2310
|
+
types: f.types
|
|
2311
|
+
}, c);
|
|
2312
|
+
return t?.invert && (u.data = u.data.map((d) => d.map((a) => !a))), t?.onEncoded?.(u), u;
|
|
2313
|
+
}
|
|
2314
|
+
function Uo(e, t = 1) {
|
|
2315
|
+
if (!t)
|
|
2316
|
+
return e;
|
|
2317
|
+
const { size: n } = e, o = n + t * 2;
|
|
2318
|
+
e.size = o, e.data.forEach((i) => {
|
|
2319
|
+
for (let s = 0; s < t; s++)
|
|
2320
|
+
i.unshift(!1), i.push(!1);
|
|
2321
|
+
});
|
|
2322
|
+
for (let i = 0; i < t; i++)
|
|
2323
|
+
e.data.unshift(Array.from({ length: o }, (s) => !1)), e.data.push(Array.from({ length: o }, (s) => !1));
|
|
2324
|
+
const r = K.Border;
|
|
2325
|
+
e.types.forEach((i) => {
|
|
2326
|
+
for (let s = 0; s < t; s++)
|
|
2327
|
+
i.unshift(r), i.push(r);
|
|
2328
|
+
});
|
|
2329
|
+
for (let i = 0; i < t; i++)
|
|
2330
|
+
e.types.unshift(Array.from({ length: o }, (s) => r)), e.types.push(Array.from({ length: o }, (s) => r));
|
|
2331
|
+
return e;
|
|
2332
|
+
}
|
|
2333
|
+
var Go = lt("qr-code").parts("root", "frame", "pattern", "overlay", "downloadTrigger"), ne = Go.build(), Xo = (e) => e.ids?.root ?? `qrcode:${e.id}:root`, Lt = (e) => e.ids?.frame ?? `qrcode:${e.id}:frame`, Dt = (e) => e.getById(Lt(e));
|
|
2334
|
+
function or(e, t) {
|
|
2335
|
+
const { context: n, computed: o, send: r, scope: i, prop: s } = e, c = o("encoded"), l = s("pixelSize"), f = c.size * l, u = c.size * l, d = [];
|
|
2336
|
+
for (let a = 0; a < c.size; a++)
|
|
2337
|
+
for (let h = 0; h < c.size; h++) {
|
|
2338
|
+
const b = h * l, g = a * l;
|
|
2339
|
+
c.data[a][h] && d.push(`M${b},${g}h${l}v${l}h-${l}z`);
|
|
2340
|
+
}
|
|
2341
|
+
return {
|
|
2342
|
+
value: n.get("value"),
|
|
2343
|
+
setValue(a) {
|
|
2344
|
+
r({ type: "VALUE.SET", value: a });
|
|
2345
|
+
},
|
|
2346
|
+
getDataUrl(a, h) {
|
|
2347
|
+
const b = Dt(i);
|
|
2348
|
+
return ft(b, { type: a, quality: h });
|
|
2349
|
+
},
|
|
2350
|
+
getRootProps() {
|
|
2351
|
+
return t.element({
|
|
2352
|
+
id: Xo(i),
|
|
2353
|
+
...ne.root.attrs,
|
|
2354
|
+
style: {
|
|
2355
|
+
"--qrcode-pixel-size": `${l}px`,
|
|
2356
|
+
"--qrcode-width": `${u}px`,
|
|
2357
|
+
"--qrcode-height": `${f}px`,
|
|
2358
|
+
position: "relative"
|
|
2359
|
+
}
|
|
2360
|
+
});
|
|
2361
|
+
},
|
|
2362
|
+
getFrameProps() {
|
|
2363
|
+
return t.svg({
|
|
2364
|
+
id: Lt(i),
|
|
2365
|
+
...ne.frame.attrs,
|
|
2366
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2367
|
+
viewBox: `0 0 ${u} ${f}`
|
|
2368
|
+
});
|
|
2369
|
+
},
|
|
2370
|
+
getPatternProps() {
|
|
2371
|
+
return t.path({
|
|
2372
|
+
d: d.join(""),
|
|
2373
|
+
...ne.pattern.attrs
|
|
2374
|
+
});
|
|
2375
|
+
},
|
|
2376
|
+
getOverlayProps() {
|
|
2377
|
+
return t.element({
|
|
2378
|
+
...ne.overlay.attrs,
|
|
2379
|
+
style: {
|
|
2380
|
+
position: "absolute",
|
|
2381
|
+
top: "50%",
|
|
2382
|
+
left: "50%",
|
|
2383
|
+
translate: "-50% -50%"
|
|
2384
|
+
}
|
|
2385
|
+
});
|
|
2386
|
+
},
|
|
2387
|
+
getDownloadTriggerProps(a) {
|
|
2388
|
+
return t.button({
|
|
2389
|
+
type: "button",
|
|
2390
|
+
...ne.downloadTrigger.attrs,
|
|
2391
|
+
onClick(h) {
|
|
2392
|
+
h.defaultPrevented || r({ type: "DOWNLOAD_TRIGGER.CLICK", ...a });
|
|
2393
|
+
}
|
|
2394
|
+
});
|
|
2395
|
+
}
|
|
2396
|
+
};
|
|
2397
|
+
}
|
|
2398
|
+
var rr = ut({
|
|
2399
|
+
props({ props: e }) {
|
|
2400
|
+
return {
|
|
2401
|
+
defaultValue: "",
|
|
2402
|
+
pixelSize: 10,
|
|
2403
|
+
...e
|
|
2404
|
+
};
|
|
2405
|
+
},
|
|
2406
|
+
initialState() {
|
|
2407
|
+
return "idle";
|
|
2408
|
+
},
|
|
2409
|
+
context({ prop: e, bindable: t }) {
|
|
2410
|
+
return {
|
|
2411
|
+
value: t(() => ({
|
|
2412
|
+
value: e("value"),
|
|
2413
|
+
defaultValue: e("defaultValue"),
|
|
2414
|
+
onChange(n) {
|
|
2415
|
+
e("onValueChange")?.({ value: n });
|
|
2416
|
+
}
|
|
2417
|
+
}))
|
|
2418
|
+
};
|
|
2419
|
+
},
|
|
2420
|
+
computed: {
|
|
2421
|
+
encoded: en(
|
|
2422
|
+
({ context: e, prop: t }) => [e.get("value"), t("encoding")],
|
|
2423
|
+
(e, t) => Do(e, t)
|
|
2424
|
+
)
|
|
2425
|
+
},
|
|
2426
|
+
states: {
|
|
2427
|
+
idle: {
|
|
2428
|
+
on: {
|
|
2429
|
+
"VALUE.SET": {
|
|
2430
|
+
actions: ["setValue"]
|
|
2431
|
+
},
|
|
2432
|
+
"DOWNLOAD_TRIGGER.CLICK": {
|
|
2433
|
+
actions: ["downloadQrCode"]
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
implementations: {
|
|
2439
|
+
actions: {
|
|
2440
|
+
setValue({ context: e, event: t }) {
|
|
2441
|
+
e.set("value", t.value);
|
|
2442
|
+
},
|
|
2443
|
+
downloadQrCode({ event: e, scope: t }) {
|
|
2444
|
+
const { mimeType: n, quality: o, fileName: r } = e, i = Dt(t), s = t.getDoc();
|
|
2445
|
+
ft(i, { type: n, quality: o }).then((c) => {
|
|
2446
|
+
const l = s.createElement("a");
|
|
2447
|
+
l.href = c, l.rel = "noopener", l.download = r, l.click(), setTimeout(() => {
|
|
2448
|
+
l.remove();
|
|
2449
|
+
}, 0);
|
|
2450
|
+
});
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
});
|
|
2455
|
+
dt()([
|
|
2456
|
+
"ids",
|
|
2457
|
+
"defaultValue",
|
|
2458
|
+
"value",
|
|
2459
|
+
"id",
|
|
2460
|
+
"encoding",
|
|
2461
|
+
"dir",
|
|
2462
|
+
"getRootNode",
|
|
2463
|
+
"onValueChange",
|
|
2464
|
+
"pixelSize"
|
|
2465
|
+
]);
|
|
2466
|
+
export {
|
|
2467
|
+
Kn as a,
|
|
2468
|
+
vo as b,
|
|
2469
|
+
Zo as c,
|
|
2470
|
+
Go as d,
|
|
2471
|
+
er as e,
|
|
2472
|
+
tr as f,
|
|
2473
|
+
rr as g,
|
|
2474
|
+
or as h,
|
|
2475
|
+
nr as m
|
|
2476
|
+
};
|
|
2477
|
+
//# sourceMappingURL=index-DfzXSlq1.js.map
|