From 19e38ff18ea24b343d2e01f743da4582452b9620 Mon Sep 17 00:00:00 2001 From: benfurber Date: Wed, 20 Nov 2024 10:50:56 +0000 Subject: [PATCH] deploy: 8e2a5bcfd1af59689c487be8c5c853a960ab9273 --- ...s1uyVhA.js => ArticleCallToAction.stories-CyBMWgBU.js} | 2 +- ...{BlockedRoute-K9n5NNTD.js => BlockedRoute-CNa7wecH.js} | 2 +- ...ories-C_bO7t8y.js => BlockedRoute.stories-Vy0K_Uol.js} | 2 +- .../{Breadcrumbs-fIZcmrbj.js => Breadcrumbs-CJmuaguM.js} | 2 +- ...tories-COKopDR9.js => Breadcrumbs.stories-Diul89SN.js} | 2 +- .../assets/{Button-B7QBvkxh.js => Button-1qf_V-Zv.js} | 2 +- ...ton.stories-AePka3C6.js => Button.stories-CCY7feTg.js} | 2 +- storybook-static/assets/ButtonIcon-BjD0tDRb.js | 1 - storybook-static/assets/ButtonIcon-DLFqXCZb.js | 1 + ...stories-Bw_O1uDc.js => ButtonIcon.stories-BJDeg0db.js} | 2 +- ...wReplies-CiHAfYgx.js => ButtonShowReplies-nddYmg0q.js} | 2 +- ...-C3EqgxbV.js => ButtonShowReplies.stories-CgDeRJwG.js} | 2 +- storybook-static/assets/CardList-CsrRuU_s.js | 1 - storybook-static/assets/CardList-DYV48TQx.js | 1 + ...t.stories-BYuMAzGH.js => CardList.stories-D4Z07zME.js} | 2 +- ...{CardListItem-DkByzG5-.js => CardListItem-DfmpNeu7.js} | 2 +- ...ories-CgMsIoLa.js => CardListItem.stories-gbx8qE1D.js} | 2 +- storybook-static/assets/CardProfile-BoQoQZcw.js | 1 + storybook-static/assets/CardProfile-DhE0xdXm.js | 1 - ...or-6VNJS4EI-C8_EVnsw.js => Color-6VNJS4EI-DHGDfq5k.js} | 2 +- .../{CommentItem-DIZh1yYT.js => CommentItem-DZgP41nA.js} | 2 +- ...tories-BchdvzaI.js => CommentItem.stories-C9dYD4oG.js} | 2 +- .../{CommentList-Al_JOVpj.js => CommentList-DhPqgHRE.js} | 2 +- ...tories-dpJrRWR4.js => CommentList.stories-C5Ot4zWr.js} | 2 +- ...{ConfirmModal-DGUUT3uo.js => ConfirmModal-BcXyrr5V.js} | 2 +- ...ories---wCALSZ.js => ConfirmModal.stories-DB7ywUan.js} | 2 +- ...atistics-Clvo6xNg.js => ContentStatistics-CzRzqwNB.js} | 2 +- ...-BJCIsX0t.js => ContentStatistics.stories-DC7TU1WW.js} | 2 +- ...reateComment-ButSCGtD.js => CreateComment-C20B3Odi.js} | 2 +- ...ries-D-uk7yfj.js => CreateComment.stories-CU78S9AB.js} | 2 +- .../{CreateReply-ByN4QqWr.js => CreateReply-2Azc7a5m.js} | 2 +- ...tories-DSNYS6iM.js => CreateReply.stories-CxH52BhY.js} | 2 +- .../{DailyMotion-DLX2GjDR.js => DailyMotion-DTkupcsa.js} | 2 +- ...tainer-CmOO164Y.js => DiscussionContainer-yXJCotUg.js} | 2 +- ...wFx5ZIz.js => DiscussionContainer.stories-B3LOe7IO.js} | 2 +- ...ARDV-DnPKK__Y.js => DocsRenderer-NNNQARDV-C89jQal3.js} | 2 +- ...ionRequest-0J0Ydxwt.js => DonationRequest-DuTXC9D9.js} | 2 +- ...es-qLdqat5A.js => DonationRequest.stories-DCE7Ietr.js} | 2 +- ...Modal-BNxPzf8m.js => DonationRequestModal-Gqs-htQ0.js} | 2 +- ...O2izOz.js => DonationRequestModal.stories-LHfLELJL.js} | 2 +- storybook-static/assets/DownloadButton-C_Yd3Qr5.js | 1 - storybook-static/assets/DownloadButton-DzIURGFB.js | 1 + ...ies-BYGgC8R9.js => DownloadButton.stories-CJvBcDAD.js} | 2 +- ...ticFile-BGuyYeyj.js => DownloadStaticFile-BxfNeVDS.js} | 2 +- ...CEulzWP_.js => DownloadStaticFile.stories-CQNa0s65.js} | 2 +- ...sk-DqdQCDXv.js => DownloadWithDonationAsk-CLFhEu2Q.js} | 2 +- ..._K3.js => DownloadWithDonationAsk.stories-DHkmMxdv.js} | 2 +- .../{EditComment-DY_6Q1TM.js => EditComment-CS1dAl1Z.js} | 2 +- ...tories-6IcvQ8ab.js => EditComment.stories-d1wxRZnz.js} | 2 +- ...ories-CgVBGAmq.js => ExternalLink.stories-CAAKEnpi.js} | 2 +- .../assets/{Facebook-7Psi_5Xu.js => Facebook-DHDup0b1.js} | 2 +- .../{FilePlayer-IDHGcVTO.js => FilePlayer-Bw1_o_Ji.js} | 2 +- ...{FollowButton-gF1fEo3D.js => FollowButton-BpOrSPUK.js} | 2 +- ...ories-C1pCGpXR.js => FollowButton.stories-A-hMvqvI.js} | 2 +- .../assets/{Icon-BoVZOGVD.js => Icon-DVJa_328.js} | 4 ++-- ...VZOGVD.js.LICENSE.txt => Icon-DVJa_328.js.LICENSE.txt} | 0 ...{Icon.stories-CoRdUHHd.js => Icon.stories-kW3Qr2Pe.js} | 2 +- storybook-static/assets/IconCountWithTooltip-BgxPFEPA.js | 1 - storybook-static/assets/IconCountWithTooltip-D45XZbVQ.js | 1 + ..._j__4h.js => IconCountWithTooltip.stories-CxOTS8ux.js} | 2 +- .../{ImageCrop-DCgV90x1.js => ImageCrop-B_XHY1rW.js} | 2 +- ....stories-DUOLW0ZZ.js => ImageCrop.stories-C7egeEfo.js} | 2 +- ...{ImageGallery-DnFzFe7P.js => ImageGallery-_6WaFG1J.js} | 4 ++-- ...s.LICENSE.txt => ImageGallery-_6WaFG1J.js.LICENSE.txt} | 0 ...ories-hoGxeDiU.js => ImageGallery.stories-DwQZOi3v.js} | 2 +- .../assets/{Kaltura-Cf8iZ543.js => Kaltura-Bp138jKL.js} | 2 +- ...apFilterList-DcOr19-7.js => MapFilterList-rj326Ijs.js} | 2 +- ...ries-DjB66tPY.js => MapFilterList.stories-BvuYvNVD.js} | 2 +- ...6FSqZf.js => MapFilterProfileTypeCardList-BMZcIHDF.js} | 2 +- ...s => MapFilterProfileTypeCardList.stories-ddXeBtnb.js} | 2 +- ...n.client-B3vCTPau.js => MapWithPin.client-mWMy-bbS.js} | 2 +- ...stories-DNVx4Jgl.js => MapWithPin.stories-CaxCdYiS.js} | 2 +- .../{MemberBadge-DaB6gu8F.js => MemberBadge-BFCUvfGJ.js} | 2 +- ...tories-B-XQRmwd.js => MemberBadge.stories-r5ugHWuk.js} | 2 +- .../assets/{Mixcloud-C6D_TjsQ.js => Mixcloud-CgY3HQKy.js} | 2 +- .../assets/{Mux-4lpop726.js => Mux-DyKgiBGA.js} | 2 +- ...ationItem-BEQLiIOf.js => NotificationItem-ClPYRcjY.js} | 2 +- ...s-D0cQuM9z.js => NotificationItem.stories-CRhKj1SS.js} | 2 +- ...ationList-B57zIKMs.js => NotificationList-DEA9ZS2i.js} | 2 +- ...s-C5TXwp-D.js => NotificationList.stories-jjQpxF3_.js} | 2 +- ...{OsmGeocoding-Dk6lLoXi.js => OsmGeocoding-DOGggMqw.js} | 2 +- ...ories-DLF8SCAE.js => OsmGeocoding.stories-B7Vey5pH.js} | 2 +- storybook-static/assets/PinProfile-DUk9-hW8.js | 1 + storybook-static/assets/PinProfile-KRvjF2gX.js | 1 - ...stories-YjPwi2qf.js => PinProfile.stories-MVsTcDzE.js} | 2 +- storybook-static/assets/ProfileLink-BNudREw6.js | 1 + storybook-static/assets/ProfileLink-Bn1AIGdm.js | 1 - ...tories-DJ8teJjL.js => ProfileLink.stories-BLDd-sr2.js} | 2 +- ...iew-DHGZ1VKA.js => ResearchEditorOverview-TBcr6efP.js} | 2 +- ...g5Q6.js => ResearchEditorOverview.stories-CZQg78Pu.js} | 2 +- .../{SearchField-BEwe93wL.js => SearchField-Cykq-dlt.js} | 2 +- ...tories-CWzhmEu1.js => SearchField.stories-rsn2p4Oo.js} | 2 +- ...rapper-CUpe9h_U.js => SettingsFormWrapper-DAzZ8D8d.js} | 2 +- ...kp1IMvh.js => SettingsFormWrapper.stories-PpNf0hMD.js} | 2 +- .../{SiteFooter-BzW_8Cd0.js => SiteFooter-CL9myLOY.js} | 8 ++++---- ...stories-CHXKX6kl.js => SiteFooter.stories-C8FebAdX.js} | 2 +- .../{SoundCloud-CnZaMkF4.js => SoundCloud-DsED7oBZ.js} | 2 +- .../{Streamable-B__-bKin.js => Streamable-LmIOlNYG.js} | 2 +- .../assets/{Twitch-54Zpgi3h.js => Twitch-DEs2hxsl.js} | 2 +- ...tsButton-UfP_hPRY.js => UsefulStatsButton-B0X13EYo.js} | 2 +- ...-CwmlSmjo.js => UsefulStatsButton.stories-DHC8wQh4.js} | 2 +- ...6L0mc.js => UserEngagementWrapper.stories-DA0oRB91.js} | 2 +- ...rStatistics-CUtZqp73.js => UserStatistics-C-3yC6TP.js} | 2 +- ...ies-Cpgfq9Tw.js => UserStatistics.stories-DCkpMQ6U.js} | 2 +- .../{VideoPlayer-Dmkl06KS.js => VideoPlayer-Dilqd3c4.js} | 2 +- ...tories-Cr3502l-.js => VideoPlayer.stories-BhUETI7L.js} | 2 +- .../assets/{Vidyard-Qn3cK7yU.js => Vidyard-Daq3mBEL.js} | 2 +- .../assets/{Vimeo-CZSqdWwA.js => Vimeo-BbCa-Lsd.js} | 2 +- .../assets/{Wistia-CYLWvkU0.js => Wistia-aari2ZbT.js} | 2 +- ...HNWJZ-DYG6ob1x.js => WithTooltip-V3YHNWJZ-DanSchpU.js} | 2 +- .../assets/{YouTube-CNSKMxNM.js => YouTube-CvLwurcl.js} | 2 +- ...WP5E3XI-CarBMRH9.js => formatter-SWP5E3XI-C6ixPNGK.js} | 2 +- .../assets/{iframe-BRhzNi2b.js => iframe-JYjbkGI-.js} | 2 +- .../assets/{index-HxeQ2bN6.js => index-BYSxpCNe.js} | 8 ++++---- ...Q2bN6.js.LICENSE.txt => index-BYSxpCNe.js.LICENSE.txt} | 0 .../assets/{preview-CABdhu2q.js => preview-C7NQYlOa.js} | 2 +- ...WoEhMjQR.js => syntaxhighlighter-MJWPISIS-76l64ZtK.js} | 2 +- .../assets/{welcome-BRtPITXs.js => welcome-CZk4nvlI.js} | 2 +- storybook-static/iframe.html | 2 +- storybook-static/project.json | 2 +- 120 files changed, 118 insertions(+), 118 deletions(-) rename storybook-static/assets/{ArticleCallToAction.stories-Ds1uyVhA.js => ArticleCallToAction.stories-CyBMWgBU.js} (92%) rename storybook-static/assets/{BlockedRoute-K9n5NNTD.js => BlockedRoute-CNa7wecH.js} (93%) rename storybook-static/assets/{BlockedRoute.stories-C_bO7t8y.js => BlockedRoute.stories-Vy0K_Uol.js} (88%) rename storybook-static/assets/{Breadcrumbs-fIZcmrbj.js => Breadcrumbs-CJmuaguM.js} (96%) rename storybook-static/assets/{Breadcrumbs.stories-COKopDR9.js => Breadcrumbs.stories-Diul89SN.js} (89%) rename storybook-static/assets/{Button-B7QBvkxh.js => Button-1qf_V-Zv.js} (55%) rename storybook-static/assets/{Button.stories-AePka3C6.js => Button.stories-CCY7feTg.js} (99%) delete mode 100644 storybook-static/assets/ButtonIcon-BjD0tDRb.js create mode 100644 storybook-static/assets/ButtonIcon-DLFqXCZb.js rename storybook-static/assets/{ButtonIcon.stories-Bw_O1uDc.js => ButtonIcon.stories-BJDeg0db.js} (87%) rename storybook-static/assets/{ButtonShowReplies-CiHAfYgx.js => ButtonShowReplies-nddYmg0q.js} (93%) rename storybook-static/assets/{ButtonShowReplies.stories-C3EqgxbV.js => ButtonShowReplies.stories-CgDeRJwG.js} (94%) delete mode 100644 storybook-static/assets/CardList-CsrRuU_s.js create mode 100644 storybook-static/assets/CardList-DYV48TQx.js rename storybook-static/assets/{CardList.stories-BYuMAzGH.js => CardList.stories-D4Z07zME.js} (88%) rename storybook-static/assets/{CardListItem-DkByzG5-.js => CardListItem-DfmpNeu7.js} (77%) rename storybook-static/assets/{CardListItem.stories-CgMsIoLa.js => CardListItem.stories-gbx8qE1D.js} (95%) create mode 100644 storybook-static/assets/CardProfile-BoQoQZcw.js delete mode 100644 storybook-static/assets/CardProfile-DhE0xdXm.js rename storybook-static/assets/{Color-6VNJS4EI-C8_EVnsw.js => Color-6VNJS4EI-DHGDfq5k.js} (99%) rename storybook-static/assets/{CommentItem-DIZh1yYT.js => CommentItem-DZgP41nA.js} (65%) rename storybook-static/assets/{CommentItem.stories-BchdvzaI.js => CommentItem.stories-C9dYD4oG.js} (97%) rename storybook-static/assets/{CommentList-Al_JOVpj.js => CommentList-DhPqgHRE.js} (84%) rename storybook-static/assets/{CommentList.stories-dpJrRWR4.js => CommentList.stories-C5Ot4zWr.js} (92%) rename storybook-static/assets/{ConfirmModal-DGUUT3uo.js => ConfirmModal-BcXyrr5V.js} (96%) rename storybook-static/assets/{ConfirmModal.stories---wCALSZ.js => ConfirmModal.stories-DB7ywUan.js} (90%) rename storybook-static/assets/{ContentStatistics-Clvo6xNg.js => ContentStatistics-CzRzqwNB.js} (90%) rename storybook-static/assets/{ContentStatistics.stories-BJCIsX0t.js => ContentStatistics.stories-DC7TU1WW.js} (91%) rename storybook-static/assets/{CreateComment-ButSCGtD.js => CreateComment-C20B3Odi.js} (93%) rename storybook-static/assets/{CreateComment.stories-D-uk7yfj.js => CreateComment.stories-CU78S9AB.js} (98%) rename storybook-static/assets/{CreateReply-ByN4QqWr.js => CreateReply-2Azc7a5m.js} (79%) rename storybook-static/assets/{CreateReply.stories-DSNYS6iM.js => CreateReply.stories-CxH52BhY.js} (94%) rename storybook-static/assets/{DailyMotion-DLX2GjDR.js => DailyMotion-DTkupcsa.js} (97%) rename storybook-static/assets/{DiscussionContainer-CmOO164Y.js => DiscussionContainer-yXJCotUg.js} (89%) rename storybook-static/assets/{DiscussionContainer.stories-BwFx5ZIz.js => DiscussionContainer.stories-B3LOe7IO.js} (90%) rename storybook-static/assets/{DocsRenderer-NNNQARDV-DnPKK__Y.js => DocsRenderer-NNNQARDV-C89jQal3.js} (75%) rename storybook-static/assets/{DonationRequest-0J0Ydxwt.js => DonationRequest-DuTXC9D9.js} (97%) rename storybook-static/assets/{DonationRequest.stories-qLdqat5A.js => DonationRequest.stories-DCE7Ietr.js} (93%) rename storybook-static/assets/{DonationRequestModal-BNxPzf8m.js => DonationRequestModal-Gqs-htQ0.js} (94%) rename storybook-static/assets/{DonationRequestModal.stories-CrO2izOz.js => DonationRequestModal.stories-LHfLELJL.js} (94%) delete mode 100644 storybook-static/assets/DownloadButton-C_Yd3Qr5.js create mode 100644 storybook-static/assets/DownloadButton-DzIURGFB.js rename storybook-static/assets/{DownloadButton.stories-BYGgC8R9.js => DownloadButton.stories-CJvBcDAD.js} (91%) rename storybook-static/assets/{DownloadStaticFile-BGuyYeyj.js => DownloadStaticFile-BxfNeVDS.js} (94%) rename storybook-static/assets/{DownloadStaticFile.stories-CEulzWP_.js => DownloadStaticFile.stories-CQNa0s65.js} (92%) rename storybook-static/assets/{DownloadWithDonationAsk-DqdQCDXv.js => DownloadWithDonationAsk-CLFhEu2Q.js} (77%) rename storybook-static/assets/{DownloadWithDonationAsk.stories-HWN8n_K3.js => DownloadWithDonationAsk.stories-DHkmMxdv.js} (82%) rename storybook-static/assets/{EditComment-DY_6Q1TM.js => EditComment-CS1dAl1Z.js} (99%) rename storybook-static/assets/{EditComment.stories-6IcvQ8ab.js => EditComment.stories-d1wxRZnz.js} (89%) rename storybook-static/assets/{ExternalLink.stories-CgVBGAmq.js => ExternalLink.stories-CAAKEnpi.js} (64%) rename storybook-static/assets/{Facebook-7Psi_5Xu.js => Facebook-DHDup0b1.js} (98%) rename storybook-static/assets/{FilePlayer-IDHGcVTO.js => FilePlayer-Bw1_o_Ji.js} (99%) rename storybook-static/assets/{FollowButton-gF1fEo3D.js => FollowButton-BpOrSPUK.js} (95%) rename storybook-static/assets/{FollowButton.stories-C1pCGpXR.js => FollowButton.stories-A-hMvqvI.js} (93%) rename storybook-static/assets/{Icon-BoVZOGVD.js => Icon-DVJa_328.js} (98%) rename storybook-static/assets/{Icon-BoVZOGVD.js.LICENSE.txt => Icon-DVJa_328.js.LICENSE.txt} (100%) rename storybook-static/assets/{Icon.stories-CoRdUHHd.js => Icon.stories-kW3Qr2Pe.js} (97%) delete mode 100644 storybook-static/assets/IconCountWithTooltip-BgxPFEPA.js create mode 100644 storybook-static/assets/IconCountWithTooltip-D45XZbVQ.js rename storybook-static/assets/{IconCountWithTooltip.stories-B1_j__4h.js => IconCountWithTooltip.stories-CxOTS8ux.js} (89%) rename storybook-static/assets/{ImageCrop-DCgV90x1.js => ImageCrop-B_XHY1rW.js} (99%) rename storybook-static/assets/{ImageCrop.stories-DUOLW0ZZ.js => ImageCrop.stories-C7egeEfo.js} (92%) rename storybook-static/assets/{ImageGallery-DnFzFe7P.js => ImageGallery-_6WaFG1J.js} (98%) rename storybook-static/assets/{ImageGallery-DnFzFe7P.js.LICENSE.txt => ImageGallery-_6WaFG1J.js.LICENSE.txt} (100%) rename storybook-static/assets/{ImageGallery.stories-hoGxeDiU.js => ImageGallery.stories-DwQZOi3v.js} (95%) rename storybook-static/assets/{Kaltura-Cf8iZ543.js => Kaltura-Bp138jKL.js} (97%) rename storybook-static/assets/{MapFilterList-DcOr19-7.js => MapFilterList-rj326Ijs.js} (96%) rename storybook-static/assets/{MapFilterList.stories-DjB66tPY.js => MapFilterList.stories-BvuYvNVD.js} (89%) rename storybook-static/assets/{MapFilterProfileTypeCardList-1X6FSqZf.js => MapFilterProfileTypeCardList-BMZcIHDF.js} (94%) rename storybook-static/assets/{MapFilterProfileTypeCardList.stories-BDbtqf_F.js => MapFilterProfileTypeCardList.stories-ddXeBtnb.js} (95%) rename storybook-static/assets/{MapWithPin.client-B3vCTPau.js => MapWithPin.client-mWMy-bbS.js} (96%) rename storybook-static/assets/{MapWithPin.stories-DNVx4Jgl.js => MapWithPin.stories-CaxCdYiS.js} (74%) rename storybook-static/assets/{MemberBadge-DaB6gu8F.js => MemberBadge-BFCUvfGJ.js} (95%) rename storybook-static/assets/{MemberBadge.stories-B-XQRmwd.js => MemberBadge.stories-r5ugHWuk.js} (98%) rename storybook-static/assets/{Mixcloud-C6D_TjsQ.js => Mixcloud-CgY3HQKy.js} (97%) rename storybook-static/assets/{Mux-4lpop726.js => Mux-DyKgiBGA.js} (96%) rename storybook-static/assets/{NotificationItem-BEQLiIOf.js => NotificationItem-ClPYRcjY.js} (96%) rename storybook-static/assets/{NotificationItem.stories-D0cQuM9z.js => NotificationItem.stories-CRhKj1SS.js} (93%) rename storybook-static/assets/{NotificationList-B57zIKMs.js => NotificationList-DEA9ZS2i.js} (92%) rename storybook-static/assets/{NotificationList.stories-C5TXwp-D.js => NotificationList.stories-jjQpxF3_.js} (92%) rename storybook-static/assets/{OsmGeocoding-Dk6lLoXi.js => OsmGeocoding-DOGggMqw.js} (98%) rename storybook-static/assets/{OsmGeocoding.stories-DLF8SCAE.js => OsmGeocoding.stories-B7Vey5pH.js} (97%) create mode 100644 storybook-static/assets/PinProfile-DUk9-hW8.js delete mode 100644 storybook-static/assets/PinProfile-KRvjF2gX.js rename storybook-static/assets/{PinProfile.stories-YjPwi2qf.js => PinProfile.stories-MVsTcDzE.js} (90%) create mode 100644 storybook-static/assets/ProfileLink-BNudREw6.js delete mode 100644 storybook-static/assets/ProfileLink-Bn1AIGdm.js rename storybook-static/assets/{ProfileLink.stories-DJ8teJjL.js => ProfileLink.stories-BLDd-sr2.js} (96%) rename storybook-static/assets/{ResearchEditorOverview-DHGZ1VKA.js => ResearchEditorOverview-TBcr6efP.js} (97%) rename storybook-static/assets/{ResearchEditorOverview.stories-BLK3g5Q6.js => ResearchEditorOverview.stories-CZQg78Pu.js} (92%) rename storybook-static/assets/{SearchField-BEwe93wL.js => SearchField-Cykq-dlt.js} (96%) rename storybook-static/assets/{SearchField.stories-CWzhmEu1.js => SearchField.stories-rsn2p4Oo.js} (90%) rename storybook-static/assets/{SettingsFormWrapper-CUpe9h_U.js => SettingsFormWrapper-DAzZ8D8d.js} (98%) rename storybook-static/assets/{SettingsFormWrapper.stories-Dkp1IMvh.js => SettingsFormWrapper.stories-PpNf0hMD.js} (96%) rename storybook-static/assets/{SiteFooter-BzW_8Cd0.js => SiteFooter-CL9myLOY.js} (88%) rename storybook-static/assets/{SiteFooter.stories-CHXKX6kl.js => SiteFooter.stories-C8FebAdX.js} (87%) rename storybook-static/assets/{SoundCloud-CnZaMkF4.js => SoundCloud-DsED7oBZ.js} (97%) rename storybook-static/assets/{Streamable-B__-bKin.js => Streamable-LmIOlNYG.js} (97%) rename storybook-static/assets/{Twitch-54Zpgi3h.js => Twitch-DEs2hxsl.js} (97%) rename storybook-static/assets/{UsefulStatsButton-UfP_hPRY.js => UsefulStatsButton-B0X13EYo.js} (96%) rename storybook-static/assets/{UsefulStatsButton.stories-CwmlSmjo.js => UsefulStatsButton.stories-DHC8wQh4.js} (96%) rename storybook-static/assets/{UserEngagementWrapper.stories-Dc56L0mc.js => UserEngagementWrapper.stories-DA0oRB91.js} (62%) rename storybook-static/assets/{UserStatistics-CUtZqp73.js => UserStatistics-C-3yC6TP.js} (99%) rename storybook-static/assets/{UserStatistics.stories-Cpgfq9Tw.js => UserStatistics.stories-DCkpMQ6U.js} (90%) rename storybook-static/assets/{VideoPlayer-Dmkl06KS.js => VideoPlayer-Dilqd3c4.js} (94%) rename storybook-static/assets/{VideoPlayer.stories-Cr3502l-.js => VideoPlayer.stories-BhUETI7L.js} (89%) rename storybook-static/assets/{Vidyard-Qn3cK7yU.js => Vidyard-Daq3mBEL.js} (97%) rename storybook-static/assets/{Vimeo-CZSqdWwA.js => Vimeo-BbCa-Lsd.js} (98%) rename storybook-static/assets/{Wistia-CYLWvkU0.js => Wistia-aari2ZbT.js} (98%) rename storybook-static/assets/{WithTooltip-V3YHNWJZ-DYG6ob1x.js => WithTooltip-V3YHNWJZ-DanSchpU.js} (76%) rename storybook-static/assets/{YouTube-CNSKMxNM.js => YouTube-CvLwurcl.js} (95%) rename storybook-static/assets/{formatter-SWP5E3XI-CarBMRH9.js => formatter-SWP5E3XI-C6ixPNGK.js} (99%) rename storybook-static/assets/{iframe-BRhzNi2b.js => iframe-JYjbkGI-.js} (70%) rename storybook-static/assets/{index-HxeQ2bN6.js => index-BYSxpCNe.js} (99%) rename storybook-static/assets/{index-HxeQ2bN6.js.LICENSE.txt => index-BYSxpCNe.js.LICENSE.txt} (100%) rename storybook-static/assets/{preview-CABdhu2q.js => preview-C7NQYlOa.js} (67%) rename storybook-static/assets/{syntaxhighlighter-MJWPISIS-WoEhMjQR.js => syntaxhighlighter-MJWPISIS-76l64ZtK.js} (77%) rename storybook-static/assets/{welcome-BRtPITXs.js => welcome-CZk4nvlI.js} (95%) diff --git a/storybook-static/assets/ArticleCallToAction.stories-Ds1uyVhA.js b/storybook-static/assets/ArticleCallToAction.stories-CyBMWgBU.js similarity index 92% rename from storybook-static/assets/ArticleCallToAction.stories-Ds1uyVhA.js rename to storybook-static/assets/ArticleCallToAction.stories-CyBMWgBU.js index 1d0937ea84..f6b189bc9c 100644 --- a/storybook-static/assets/ArticleCallToAction.stories-Ds1uyVhA.js +++ b/storybook-static/assets/ArticleCallToAction.stories-CyBMWgBU.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{y as o}from"./index-D_kXk1yT.js";import{B as l}from"./Button-B7QBvkxh.js";import{LoggedOutWithCount as T}from"./UsefulStatsButton.stories-CwmlSmjo.js";import{A as r}from"./ArticleCallToAction-CcvC77dL.js";import"./index-BP8_t0zE.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./UsefulStatsButton-UfP_hPRY.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./index-BXxqJQdV.js";import"./Username-jnUEp1hu.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";const X={title:"Layout/ArticleCallToAction",component:r},n=()=>e.jsxs(r,{author:t(),children:[e.jsx(l,{sx:{fontSize:2},children:"Leave a comment"}),e.jsx(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})]}),i=()=>e.jsx(r,{author:t(),children:e.jsx(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})}),a=()=>e.jsx(r,{author:t(),contributors:[{countryCode:o.address.countryCode(),userName:o.internet.userName(),isVerified:o.datatype.boolean(),isSupporter:o.datatype.boolean()}],children:e.jsx(l,{children:"Action"})}),t=()=>({countryCode:o.address.countryCode(),userName:o.internet.userName(),isVerified:o.datatype.boolean(),isSupporter:o.datatype.boolean()}),s=()=>e.jsx(r,{author:t(),contributors:o.helpers.uniqueArray(t,Math.floor(10*Math.random())),children:e.jsx(l,{children:"Action"})});var c,u,m,d,p,A,f,C,h,U,k,g;n.parameters={...n.parameters,docs:{...null==(c=n.parameters)?void 0:c.docs,source:{originalSource:"() => \n \n {\n throw new Error('Function not implemented.');\n }} />\n ",...null==(m=null==(u=n.parameters)?void 0:u.docs)?void 0:m.source}}},i.parameters={...i.parameters,docs:{...null==(d=i.parameters)?void 0:d.docs,source:{originalSource:"() => \n {\n throw new Error('Function not implemented.');\n }} />\n ",...null==(A=null==(p=i.parameters)?void 0:p.docs)?void 0:A.source}}},a.parameters={...a.parameters,docs:{...null==(f=a.parameters)?void 0:f.docs,source:{originalSource:"() => \n \n ",...null==(h=null==(C=a.parameters)?void 0:C.docs)?void 0:h.source}}},s.parameters={...s.parameters,docs:{...null==(U=s.parameters)?void 0:U.docs,source:{originalSource:"() => \n \n ",...null==(g=null==(k=s.parameters)?void 0:k.docs)?void 0:g.source}}};const Y=["ArticleCallToActionCommentAndUseful","ArticleCallToActionUseful","ArticleCallToActionSingleContributor","ArticleCallToActionMultipleContributors"];export{n as ArticleCallToActionCommentAndUseful,s as ArticleCallToActionMultipleContributors,a as ArticleCallToActionSingleContributor,i as ArticleCallToActionUseful,Y as __namedExportsOrder,X as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{y as o}from"./index-D_kXk1yT.js";import{B as l}from"./Button-1qf_V-Zv.js";import{LoggedOutWithCount as T}from"./UsefulStatsButton.stories-DHC8wQh4.js";import{A as r}from"./ArticleCallToAction-CcvC77dL.js";import"./index-BP8_t0zE.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./UsefulStatsButton-B0X13EYo.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./index-BXxqJQdV.js";import"./Username-jnUEp1hu.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";const X={title:"Layout/ArticleCallToAction",component:r},n=()=>e.jsxs(r,{author:t(),children:[e.jsx(l,{sx:{fontSize:2},children:"Leave a comment"}),e.jsx(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})]}),i=()=>e.jsx(r,{author:t(),children:e.jsx(T,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:0,onUsefulClick:function(){throw new Error("Function not implemented.")}})}),a=()=>e.jsx(r,{author:t(),contributors:[{countryCode:o.address.countryCode(),userName:o.internet.userName(),isVerified:o.datatype.boolean(),isSupporter:o.datatype.boolean()}],children:e.jsx(l,{children:"Action"})}),t=()=>({countryCode:o.address.countryCode(),userName:o.internet.userName(),isVerified:o.datatype.boolean(),isSupporter:o.datatype.boolean()}),s=()=>e.jsx(r,{author:t(),contributors:o.helpers.uniqueArray(t,Math.floor(10*Math.random())),children:e.jsx(l,{children:"Action"})});var c,u,m,d,p,A,f,C,h,U,k,g;n.parameters={...n.parameters,docs:{...null==(c=n.parameters)?void 0:c.docs,source:{originalSource:"() => \n \n {\n throw new Error('Function not implemented.');\n }} />\n ",...null==(m=null==(u=n.parameters)?void 0:u.docs)?void 0:m.source}}},i.parameters={...i.parameters,docs:{...null==(d=i.parameters)?void 0:d.docs,source:{originalSource:"() => \n {\n throw new Error('Function not implemented.');\n }} />\n ",...null==(A=null==(p=i.parameters)?void 0:p.docs)?void 0:A.source}}},a.parameters={...a.parameters,docs:{...null==(f=a.parameters)?void 0:f.docs,source:{originalSource:"() => \n \n ",...null==(h=null==(C=a.parameters)?void 0:C.docs)?void 0:h.source}}},s.parameters={...s.parameters,docs:{...null==(U=s.parameters)?void 0:U.docs,source:{originalSource:"() => \n \n ",...null==(g=null==(k=s.parameters)?void 0:k.docs)?void 0:g.source}}};const Y=["ArticleCallToActionCommentAndUseful","ArticleCallToActionUseful","ArticleCallToActionSingleContributor","ArticleCallToActionMultipleContributors"];export{n as ArticleCallToActionCommentAndUseful,s as ArticleCallToActionMultipleContributors,a as ArticleCallToActionSingleContributor,i as ArticleCallToActionUseful,Y as __namedExportsOrder,X as default}; \ No newline at end of file diff --git a/storybook-static/assets/BlockedRoute-K9n5NNTD.js b/storybook-static/assets/BlockedRoute-CNa7wecH.js similarity index 93% rename from storybook-static/assets/BlockedRoute-K9n5NNTD.js rename to storybook-static/assets/BlockedRoute-CNa7wecH.js index 870e6b69e7..98087733a1 100644 --- a/storybook-static/assets/BlockedRoute-K9n5NNTD.js +++ b/storybook-static/assets/BlockedRoute-CNa7wecH.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as n}from"./Button-B7QBvkxh.js";import{I as c}from"./InternalLink-CtyTe3gy.js";import{F as o,T as a,a as s}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=t=>{const r=t.redirectLabel||"Back to home",i=t.redirectUrl||"/";return e.jsxs(o,{sx:{justifyContent:"center",flexDirection:"column",mt:8},"data-cy":"BlockedRoute",children:[e.jsx(a,{sx:{width:"100%",textAlign:"center"},children:t.children}),e.jsx(s,{sx:{textAlign:"center",mt:2},children:e.jsx(c,{to:i,children:e.jsx(n,{type:"button",variant:"subtle",small:!0,children:r})})})]})};try{r.displayName="BlockedRoute",r.__docgenInfo={description:"",displayName:"BlockedRoute",props:{redirectUrl:{defaultValue:null,description:"",name:"redirectUrl",required:!1,type:{name:"string"}},redirectLabel:{defaultValue:null,description:"",name:"redirectLabel",required:!1,type:{name:"string"}}}}}catch{}export{r as B}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as n}from"./Button-1qf_V-Zv.js";import{I as c}from"./InternalLink-CtyTe3gy.js";import{F as o,T as a,a as s}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=t=>{const r=t.redirectLabel||"Back to home",i=t.redirectUrl||"/";return e.jsxs(o,{sx:{justifyContent:"center",flexDirection:"column",mt:8},"data-cy":"BlockedRoute",children:[e.jsx(a,{sx:{width:"100%",textAlign:"center"},children:t.children}),e.jsx(s,{sx:{textAlign:"center",mt:2},children:e.jsx(c,{to:i,children:e.jsx(n,{type:"button",variant:"subtle",small:!0,children:r})})})]})};try{r.displayName="BlockedRoute",r.__docgenInfo={description:"",displayName:"BlockedRoute",props:{redirectUrl:{defaultValue:null,description:"",name:"redirectUrl",required:!1,type:{name:"string"}},redirectLabel:{defaultValue:null,description:"",name:"redirectLabel",required:!1,type:{name:"string"}}}}}catch{}export{r as B}; \ No newline at end of file diff --git a/storybook-static/assets/BlockedRoute.stories-C_bO7t8y.js b/storybook-static/assets/BlockedRoute.stories-Vy0K_Uol.js similarity index 88% rename from storybook-static/assets/BlockedRoute.stories-C_bO7t8y.js rename to storybook-static/assets/BlockedRoute.stories-Vy0K_Uol.js index 73d6e62205..35cd0a9c0c 100644 --- a/storybook-static/assets/BlockedRoute.stories-C_bO7t8y.js +++ b/storybook-static/assets/BlockedRoute.stories-Vy0K_Uol.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-CexXSJP5.js";import{y as l}from"./index-D_kXk1yT.js";import{B as o}from"./BlockedRoute-K9n5NNTD.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const S={title:"Layout/BlockedRoute",component:o},e=()=>p.jsx(o,{children:l.lorem.sentences(2)}),r=()=>p.jsx(o,{redirectLabel:"A custom call to action",redirectUrl:"/another-url",children:l.lorem.sentences(2)});var t,s,c,m,a,i;e.parameters={...e.parameters,docs:{...null==(t=e.parameters)?void 0:t.docs,source:{originalSource:"() => {faker.lorem.sentences(2)}",...null==(c=null==(s=e.parameters)?void 0:s.docs)?void 0:c.source}}},r.parameters={...r.parameters,docs:{...null==(m=r.parameters)?void 0:m.docs,source:{originalSource:'() => \n {faker.lorem.sentences(2)}\n ',...null==(i=null==(a=r.parameters)?void 0:a.docs)?void 0:i.source}}};const U=["Default","OverrideButton"];export{e as Default,r as OverrideButton,U as __namedExportsOrder,S as default}; \ No newline at end of file +import{j as p}from"./jsx-runtime-CexXSJP5.js";import{y as l}from"./index-D_kXk1yT.js";import{B as o}from"./BlockedRoute-CNa7wecH.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const S={title:"Layout/BlockedRoute",component:o},e=()=>p.jsx(o,{children:l.lorem.sentences(2)}),r=()=>p.jsx(o,{redirectLabel:"A custom call to action",redirectUrl:"/another-url",children:l.lorem.sentences(2)});var t,s,c,m,a,i;e.parameters={...e.parameters,docs:{...null==(t=e.parameters)?void 0:t.docs,source:{originalSource:"() => {faker.lorem.sentences(2)}",...null==(c=null==(s=e.parameters)?void 0:s.docs)?void 0:c.source}}},r.parameters={...r.parameters,docs:{...null==(m=r.parameters)?void 0:m.docs,source:{originalSource:'() => \n {faker.lorem.sentences(2)}\n ',...null==(i=null==(a=r.parameters)?void 0:a.docs)?void 0:i.source}}};const U=["Default","OverrideButton"];export{e as Default,r as OverrideButton,U as __namedExportsOrder,S as default}; \ No newline at end of file diff --git a/storybook-static/assets/Breadcrumbs-fIZcmrbj.js b/storybook-static/assets/Breadcrumbs-CJmuaguM.js similarity index 96% rename from storybook-static/assets/Breadcrumbs-fIZcmrbj.js rename to storybook-static/assets/Breadcrumbs-CJmuaguM.js index c06c6b1a96..39e69cbeac 100644 --- a/storybook-static/assets/Breadcrumbs-fIZcmrbj.js +++ b/storybook-static/assets/Breadcrumbs-CJmuaguM.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{I as l}from"./Icon-BoVZOGVD.js";import{B as s}from"./Button-B7QBvkxh.js";import{L as c}from"./components-CutHIkdx.js";import{a as m,T as p,F as o}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=({text:e,link:t})=>t?r.jsx(c,{to:t,children:r.jsx(s,{type:"button",variant:"breadcrumb",children:e})}):r.jsx(s,{type:"button",variant:"breadcrumb",children:e}),n=({text:e,link:t,isLast:s})=>r.jsx(m,{style:{display:"inline-flex",marginRight:"3px"},"data-testid":"breadcrumbsItem","data-cy":"breadcrumbsItem",children:s?r.jsx(p,{sx:{display:"block",color:"black",fontSize:15,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:[100,"100%"]},children:e}):r.jsx(u,{link:t,text:e})});try{n.displayName="BreadcrumbItem",n.__docgenInfo={description:"",displayName:"BreadcrumbItem",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},link:{defaultValue:null,description:"",name:"link",required:!1,type:{name:"string"}},isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}}}}}catch{}const d=({steps:e})=>r.jsx(o,{sx:{marginLeft:-1,marginTop:[2,2,7],marginBottom:2,padding:0,alignItems:"center"},children:e.map(((t,s)=>{const a=s===e.length-1;return r.jsxs(o,{sx:{alignItems:"center"},children:[r.jsx(n,{text:t.text,link:t.link,isLast:a}),!a&&r.jsx(l,{glyph:"chevron-right",color:"black",marginRight:"8px","data-testid":"breadcrumbsChevron"})]},s)}))});try{d.displayName="Breadcrumbs",d.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{steps:{defaultValue:null,description:"",name:"steps",required:!0,type:{name:"Step[]"}}}}}catch{}export{d as B}; \ No newline at end of file +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{I as l}from"./Icon-DVJa_328.js";import{B as s}from"./Button-1qf_V-Zv.js";import{L as c}from"./components-CutHIkdx.js";import{a as m,T as p,F as o}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=({text:e,link:t})=>t?r.jsx(c,{to:t,children:r.jsx(s,{type:"button",variant:"breadcrumb",children:e})}):r.jsx(s,{type:"button",variant:"breadcrumb",children:e}),n=({text:e,link:t,isLast:s})=>r.jsx(m,{style:{display:"inline-flex",marginRight:"3px"},"data-testid":"breadcrumbsItem","data-cy":"breadcrumbsItem",children:s?r.jsx(p,{sx:{display:"block",color:"black",fontSize:15,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:[100,"100%"]},children:e}):r.jsx(u,{link:t,text:e})});try{n.displayName="BreadcrumbItem",n.__docgenInfo={description:"",displayName:"BreadcrumbItem",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},link:{defaultValue:null,description:"",name:"link",required:!1,type:{name:"string"}},isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}}}}}catch{}const d=({steps:e})=>r.jsx(o,{sx:{marginLeft:-1,marginTop:[2,2,7],marginBottom:2,padding:0,alignItems:"center"},children:e.map(((t,s)=>{const a=s===e.length-1;return r.jsxs(o,{sx:{alignItems:"center"},children:[r.jsx(n,{text:t.text,link:t.link,isLast:a}),!a&&r.jsx(l,{glyph:"chevron-right",color:"black",marginRight:"8px","data-testid":"breadcrumbsChevron"})]},s)}))});try{d.displayName="Breadcrumbs",d.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{steps:{defaultValue:null,description:"",name:"steps",required:!0,type:{name:"Step[]"}}}}}catch{}export{d as B}; \ No newline at end of file diff --git a/storybook-static/assets/Breadcrumbs.stories-COKopDR9.js b/storybook-static/assets/Breadcrumbs.stories-Diul89SN.js similarity index 89% rename from storybook-static/assets/Breadcrumbs.stories-COKopDR9.js rename to storybook-static/assets/Breadcrumbs.stories-Diul89SN.js index e40fb7adba..ca2a5390b9 100644 --- a/storybook-static/assets/Breadcrumbs.stories-COKopDR9.js +++ b/storybook-static/assets/Breadcrumbs.stories-Diul89SN.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-CexXSJP5.js";import{B as r}from"./Breadcrumbs-fIZcmrbj.js";import"./index-BP8_t0zE.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Button-B7QBvkxh.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const D={title:"Layout/Breadcrumbs",component:r},t=()=>p.jsx(r,{steps:[{text:"Question",link:"/questions"},{text:"Category",link:"/questions?category=Category"},{text:"Are we real?"}]}),e=()=>p.jsx(r,{steps:[{text:"Question",link:"/questions"},{text:"Are we real?"}]});var o,s,a,i,n,m;t.parameters={...t.parameters,docs:{...null==(o=t.parameters)?void 0:o.docs,source:{originalSource:"() => ",...null==(a=null==(s=t.parameters)?void 0:s.docs)?void 0:a.source}}},e.parameters={...e.parameters,docs:{...null==(i=e.parameters)?void 0:i.docs,source:{originalSource:"() => ",...null==(m=null==(n=e.parameters)?void 0:n.docs)?void 0:m.source}}};const E=["Default","NoCategory"];export{t as Default,e as NoCategory,E as __namedExportsOrder,D as default}; \ No newline at end of file +import{j as p}from"./jsx-runtime-CexXSJP5.js";import{B as r}from"./Breadcrumbs-CJmuaguM.js";import"./index-BP8_t0zE.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Button-1qf_V-Zv.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const D={title:"Layout/Breadcrumbs",component:r},t=()=>p.jsx(r,{steps:[{text:"Question",link:"/questions"},{text:"Category",link:"/questions?category=Category"},{text:"Are we real?"}]}),e=()=>p.jsx(r,{steps:[{text:"Question",link:"/questions"},{text:"Are we real?"}]});var o,s,a,i,n,m;t.parameters={...t.parameters,docs:{...null==(o=t.parameters)?void 0:o.docs,source:{originalSource:"() => ",...null==(a=null==(s=t.parameters)?void 0:s.docs)?void 0:a.source}}},e.parameters={...e.parameters,docs:{...null==(i=e.parameters)?void 0:i.docs,source:{originalSource:"() => ",...null==(m=null==(n=e.parameters)?void 0:n.docs)?void 0:m.source}}};const E=["Default","NoCategory"];export{t as Default,e as NoCategory,E as __namedExportsOrder,D as default}; \ No newline at end of file diff --git a/storybook-static/assets/Button-B7QBvkxh.js b/storybook-static/assets/Button-1qf_V-Zv.js similarity index 55% rename from storybook-static/assets/Button-B7QBvkxh.js rename to storybook-static/assets/Button-1qf_V-Zv.js index 94c92ddeb9..1120ac1f88 100644 --- a/storybook-static/assets/Button-B7QBvkxh.js +++ b/storybook-static/assets/Button-1qf_V-Zv.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{I as i}from"./Icon-BoVZOGVD.js";import{B as c,F as v,T as s}from"./theme-ui-components.esm-DCiJ1mMX.js";const u={small:{px:2,py:1,pl:7,fontSize:1,height:"2rem"},default:{px:3,pl:9},large:{px:4,py:3,pl:10,fontSize:4,height:"3.5rem"}};function o(e,l){if(!u[`${e}`]&&!l)return{};if(!u[`${e}`]&&l)return{px:3,pl:9};const a={...u[`${e}`]};return l||delete a.pl,a}function d(e){return"large"===e?1.25:1}function p(e,l){const a={...e};return l.forEach((e=>{a[e]&&delete a[e]})),a}const r=e=>{var l;const[a]=Object.keys(e).filter((e=>Object.prototype.hasOwnProperty.call(u,e)));return t.jsxs(c,{...p(e,["small","large","showIconOnly","iconColor"]),sx:{...o(a,!!e.icon),...e.showIconOnly?{pr:0}:{},...e.sx},children:[e.icon&&t.jsx(v,{"aria-hidden":!0,sx:{position:"absolute",top:0,left:0,height:"100%",flexDirection:"column",justifyContent:"center",alignItems:"center",px:(null==(l=o(a,!!e.icon))?void 0:l.px)||0,boxSizing:"border-box",fontSize:0,maxWidth:"100%",lineHeight:0,transform:`translateY(-1px) scale(${d(a)})`,pointerEvents:"none"},children:t.jsx(i,{glyph:e.icon,color:e.iconColor})}),t.jsx(s,{sx:{...e.showIconOnly?{clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}:{}},children:e.children})]})};try{r.displayName="Button",r.__docgenInfo={description:"",displayName:"Button",props:{icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"map"'},{value:'"menu"'},{value:'"search"'},{value:'"time"'},{value:'"filter"'},{value:'"image"'},{value:'"view"'},{value:'"email"'},{value:'"step"'},{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"volunteer"'},{value:'"website"'},{value:'"globe"'},{value:'"gps-location"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},large:{defaultValue:null,description:"",name:"large",required:!1,type:{name:"boolean"}},showIconOnly:{defaultValue:null,description:"",name:"showIconOnly",required:!1,type:{name:"boolean"}},iconColor:{defaultValue:null,description:"",name:"iconColor",required:!1,type:{name:"string"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLButtonElement | null) => void) | RefObject | null"}}}}}catch{}export{r as B}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{I as i}from"./Icon-DVJa_328.js";import{B as c,F as v,T as s}from"./theme-ui-components.esm-DCiJ1mMX.js";const u={small:{px:2,py:1,pl:7,fontSize:1,height:"2rem"},default:{px:3,pl:9},large:{px:4,py:3,pl:10,fontSize:4,height:"3.5rem"}};function o(e,l){if(!u[`${e}`]&&!l)return{};if(!u[`${e}`]&&l)return{px:3,pl:9};const a={...u[`${e}`]};return l||delete a.pl,a}function d(e){return"large"===e?1.25:1}function p(e,l){const a={...e};return l.forEach((e=>{a[e]&&delete a[e]})),a}const r=e=>{var l;const[a]=Object.keys(e).filter((e=>Object.prototype.hasOwnProperty.call(u,e)));return t.jsxs(c,{...p(e,["small","large","showIconOnly","iconColor"]),sx:{...o(a,!!e.icon),...e.showIconOnly?{pr:0}:{},...e.sx},children:[e.icon&&t.jsx(v,{"aria-hidden":!0,sx:{position:"absolute",top:0,left:0,height:"100%",flexDirection:"column",justifyContent:"center",alignItems:"center",px:(null==(l=o(a,!!e.icon))?void 0:l.px)||0,boxSizing:"border-box",fontSize:0,maxWidth:"100%",lineHeight:0,transform:`translateY(-1px) scale(${d(a)})`,pointerEvents:"none"},children:t.jsx(i,{glyph:e.icon,color:e.iconColor})}),t.jsx(s,{sx:{...e.showIconOnly?{clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}:{}},children:e.children})]})};try{r.displayName="Button",r.__docgenInfo={description:"",displayName:"Button",props:{icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"filter"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"image"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"map"'},{value:'"menu"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"step"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"time"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"view"'},{value:'"volunteer"'},{value:'"website"'},{value:'"search"'},{value:'"globe"'},{value:'"gps-location"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},large:{defaultValue:null,description:"",name:"large",required:!1,type:{name:"boolean"}},showIconOnly:{defaultValue:null,description:"",name:"showIconOnly",required:!1,type:{name:"boolean"}},iconColor:{defaultValue:null,description:"",name:"iconColor",required:!1,type:{name:"string"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLButtonElement | null) => void) | RefObject | null"}}}}}catch{}export{r as B}; \ No newline at end of file diff --git a/storybook-static/assets/Button.stories-AePka3C6.js b/storybook-static/assets/Button.stories-CCY7feTg.js similarity index 99% rename from storybook-static/assets/Button.stories-AePka3C6.js rename to storybook-static/assets/Button.stories-CCY7feTg.js index 1be9a12a35..75ed2fa739 100644 --- a/storybook-static/assets/Button.stories-AePka3C6.js +++ b/storybook-static/assets/Button.stories-CCY7feTg.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{g as Y}from"./Icon-BoVZOGVD.js";import{B as t}from"./Button-B7QBvkxh.js";import"./index-BP8_t0zE.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const me={title:"Components/Button",component:t},a=[{small:!0,label:"Small"},{label:"Default"},{large:!0,label:"Large"}],o=()=>e.jsx(t,{children:"Button Text"}),s=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{disabled:!0,children:"Disabled"}),e.jsx(t,{icon:"delete",disabled:!0,children:"Disabled"})]}),i=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"primary",children:"Primary"}),e.jsx(t,{icon:"delete",variant:"primary",children:"Primary"}),a.map(((n,r)=>e.jsx(t,{variant:"primary",...n,children:n.label},r)))]}),c=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"secondary",children:"Secondary"}),e.jsx(t,{icon:"delete",variant:"secondary",children:"Secondary"}),a.map(((n,r)=>e.jsx(t,{variant:"secondary",...n,children:n.label},r)))]}),l=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"destructive",children:"Destructive"}),e.jsx(t,{icon:"delete",variant:"destructive",children:"Destructive"}),a.map(((n,r)=>e.jsx(t,{variant:"destructive",...n,children:n.label},r)))]}),u=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"subtle",children:"Subtle"}),e.jsx(t,{variant:"subtle",icon:"account-circle",children:"Subtle"}),a.map(((n,r)=>e.jsx(t,{variant:"subtle",...n,children:n.label},r)))]}),d=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outline",children:"Outline"}),e.jsx(t,{variant:"outline",icon:"account-circle",children:"Outline"}),a.map(((n,r)=>e.jsx(t,{variant:"outline",...n,children:n.label},r)))]}),m=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{small:!0,children:"Small Button"}),e.jsx(t,{small:!0,icon:"delete",children:"Small Button with Icon"})]}),p=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{large:!0,children:"Large Button"}),e.jsx(t,{large:!0,icon:"delete",children:"Large Button with Icon"})]}),B=()=>e.jsx(e.Fragment,{children:e.jsx(t,{large:!0,icon:"delete",showIconOnly:!0,children:"Icon Button with hidden text"})}),v=()=>e.jsx(e.Fragment,{children:a.map((n=>["primary","secondary","outline"].map((r=>Object.keys(Y).map(((a,o)=>e.jsxs(t,{icon:a,...n,variant:r,children:[n.label," with Icon"]},o)))))))});var h,y,x,g,b,j,S,k,O,I,D,w,F,z,L,P,f,_,E,T,C,R,q,A,G,H,J,K,M,N,Q,U,V;o.parameters={...o.parameters,docs:{...null==(h=o.parameters)?void 0:h.docs,source:{originalSource:"() => ",...null==(x=null==(y=o.parameters)?void 0:y.docs)?void 0:x.source}}},s.parameters={...s.parameters,docs:{...null==(g=s.parameters)?void 0:g.docs,source:{originalSource:'() => <>\n \n \n ',...null==(j=null==(b=s.parameters)?void 0:b.docs)?void 0:j.source}}},i.parameters={...i.parameters,docs:{...null==(S=i.parameters)?void 0:S.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(O=null==(k=i.parameters)?void 0:k.docs)?void 0:O.source}}},c.parameters={...c.parameters,docs:{...null==(I=c.parameters)?void 0:I.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(w=null==(D=c.parameters)?void 0:D.docs)?void 0:w.source}}},l.parameters={...l.parameters,docs:{...null==(F=l.parameters)?void 0:F.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(L=null==(z=l.parameters)?void 0:z.docs)?void 0:L.source}}},u.parameters={...u.parameters,docs:{...null==(P=u.parameters)?void 0:P.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(_=null==(f=u.parameters)?void 0:f.docs)?void 0:_.source}}},d.parameters={...d.parameters,docs:{...null==(E=d.parameters)?void 0:E.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(C=null==(T=d.parameters)?void 0:T.docs)?void 0:C.source}}},m.parameters={...m.parameters,docs:{...null==(R=m.parameters)?void 0:R.docs,source:{originalSource:'() => <>\n \n \n ',...null==(A=null==(q=m.parameters)?void 0:q.docs)?void 0:A.source}}},p.parameters={...p.parameters,docs:{...null==(G=p.parameters)?void 0:G.docs,source:{originalSource:'() => <>\n \n \n ',...null==(J=null==(H=p.parameters)?void 0:H.docs)?void 0:J.source}}},B.parameters={...B.parameters,docs:{...null==(K=B.parameters)?void 0:K.docs,source:{originalSource:'() => <>\n \n ',...null==(N=null==(M=B.parameters)?void 0:M.docs)?void 0:N.source}}},v.parameters={...v.parameters,docs:{...null==(Q=v.parameters)?void 0:Q.docs,source:{originalSource:"() => <>\n {sizeOptions.map(size => ['primary', 'secondary', 'outline'].map(variant => Object.keys(glyphs).map((glyph: any, key) => )))}\n ",...null==(V=null==(U=v.parameters)?void 0:U.docs)?void 0:V.source}}};const pe=["Basic","Disabled","Primary","Secondary","Destructive","Subtle","Outline","Small","Large","IconOnly","Icons"];export{o as Basic,l as Destructive,s as Disabled,B as IconOnly,v as Icons,p as Large,d as Outline,i as Primary,c as Secondary,m as Small,u as Subtle,pe as __namedExportsOrder,me as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{g as Y}from"./Icon-DVJa_328.js";import{B as t}from"./Button-1qf_V-Zv.js";import"./index-BP8_t0zE.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const me={title:"Components/Button",component:t},a=[{small:!0,label:"Small"},{label:"Default"},{large:!0,label:"Large"}],o=()=>e.jsx(t,{children:"Button Text"}),s=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{disabled:!0,children:"Disabled"}),e.jsx(t,{icon:"delete",disabled:!0,children:"Disabled"})]}),i=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"primary",children:"Primary"}),e.jsx(t,{icon:"delete",variant:"primary",children:"Primary"}),a.map(((n,r)=>e.jsx(t,{variant:"primary",...n,children:n.label},r)))]}),c=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"secondary",children:"Secondary"}),e.jsx(t,{icon:"delete",variant:"secondary",children:"Secondary"}),a.map(((n,r)=>e.jsx(t,{variant:"secondary",...n,children:n.label},r)))]}),l=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"destructive",children:"Destructive"}),e.jsx(t,{icon:"delete",variant:"destructive",children:"Destructive"}),a.map(((n,r)=>e.jsx(t,{variant:"destructive",...n,children:n.label},r)))]}),u=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"subtle",children:"Subtle"}),e.jsx(t,{variant:"subtle",icon:"account-circle",children:"Subtle"}),a.map(((n,r)=>e.jsx(t,{variant:"subtle",...n,children:n.label},r)))]}),d=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outline",children:"Outline"}),e.jsx(t,{variant:"outline",icon:"account-circle",children:"Outline"}),a.map(((n,r)=>e.jsx(t,{variant:"outline",...n,children:n.label},r)))]}),m=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{small:!0,children:"Small Button"}),e.jsx(t,{small:!0,icon:"delete",children:"Small Button with Icon"})]}),p=()=>e.jsxs(e.Fragment,{children:[e.jsx(t,{large:!0,children:"Large Button"}),e.jsx(t,{large:!0,icon:"delete",children:"Large Button with Icon"})]}),B=()=>e.jsx(e.Fragment,{children:e.jsx(t,{large:!0,icon:"delete",showIconOnly:!0,children:"Icon Button with hidden text"})}),v=()=>e.jsx(e.Fragment,{children:a.map((n=>["primary","secondary","outline"].map((r=>Object.keys(Y).map(((a,o)=>e.jsxs(t,{icon:a,...n,variant:r,children:[n.label," with Icon"]},o)))))))});var h,y,x,g,b,j,S,k,O,I,D,w,F,z,L,P,f,_,E,T,C,R,q,A,G,H,J,K,M,N,Q,U,V;o.parameters={...o.parameters,docs:{...null==(h=o.parameters)?void 0:h.docs,source:{originalSource:"() => ",...null==(x=null==(y=o.parameters)?void 0:y.docs)?void 0:x.source}}},s.parameters={...s.parameters,docs:{...null==(g=s.parameters)?void 0:g.docs,source:{originalSource:'() => <>\n \n \n ',...null==(j=null==(b=s.parameters)?void 0:b.docs)?void 0:j.source}}},i.parameters={...i.parameters,docs:{...null==(S=i.parameters)?void 0:S.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(O=null==(k=i.parameters)?void 0:k.docs)?void 0:O.source}}},c.parameters={...c.parameters,docs:{...null==(I=c.parameters)?void 0:I.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(w=null==(D=c.parameters)?void 0:D.docs)?void 0:w.source}}},l.parameters={...l.parameters,docs:{...null==(F=l.parameters)?void 0:F.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(L=null==(z=l.parameters)?void 0:z.docs)?void 0:L.source}}},u.parameters={...u.parameters,docs:{...null==(P=u.parameters)?void 0:P.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(_=null==(f=u.parameters)?void 0:f.docs)?void 0:_.source}}},d.parameters={...d.parameters,docs:{...null==(E=d.parameters)?void 0:E.docs,source:{originalSource:"() => <>\n \n \n {sizeOptions.map((v, k) => )}\n ",...null==(C=null==(T=d.parameters)?void 0:T.docs)?void 0:C.source}}},m.parameters={...m.parameters,docs:{...null==(R=m.parameters)?void 0:R.docs,source:{originalSource:'() => <>\n \n \n ',...null==(A=null==(q=m.parameters)?void 0:q.docs)?void 0:A.source}}},p.parameters={...p.parameters,docs:{...null==(G=p.parameters)?void 0:G.docs,source:{originalSource:'() => <>\n \n \n ',...null==(J=null==(H=p.parameters)?void 0:H.docs)?void 0:J.source}}},B.parameters={...B.parameters,docs:{...null==(K=B.parameters)?void 0:K.docs,source:{originalSource:'() => <>\n \n ',...null==(N=null==(M=B.parameters)?void 0:M.docs)?void 0:N.source}}},v.parameters={...v.parameters,docs:{...null==(Q=v.parameters)?void 0:Q.docs,source:{originalSource:"() => <>\n {sizeOptions.map(size => ['primary', 'secondary', 'outline'].map(variant => Object.keys(glyphs).map((glyph: any, key) => )))}\n ",...null==(V=null==(U=v.parameters)?void 0:U.docs)?void 0:V.source}}};const pe=["Basic","Disabled","Primary","Secondary","Destructive","Subtle","Outline","Small","Large","IconOnly","Icons"];export{o as Basic,l as Destructive,s as Disabled,B as IconOnly,v as Icons,p as Large,d as Outline,i as Primary,c as Secondary,m as Small,u as Subtle,pe as __namedExportsOrder,me as default}; \ No newline at end of file diff --git a/storybook-static/assets/ButtonIcon-BjD0tDRb.js b/storybook-static/assets/ButtonIcon-BjD0tDRb.js deleted file mode 100644 index 789a35b114..0000000000 --- a/storybook-static/assets/ButtonIcon-BjD0tDRb.js +++ /dev/null @@ -1 +0,0 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{I as u}from"./Icon-BoVZOGVD.js";import{B as v}from"./theme-ui-components.esm-DCiJ1mMX.js";const l=e=>a.jsx(v,{...e,sx:{background:"white",borderRadius:99,padding:1,...e.sx},children:a.jsx(u,{glyph:e.icon,size:18})});try{l.displayName="ButtonIcon",l.__docgenInfo={description:"",displayName:"ButtonIcon",props:{icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"map"'},{value:'"menu"'},{value:'"search"'},{value:'"time"'},{value:'"filter"'},{value:'"image"'},{value:'"view"'},{value:'"email"'},{value:'"step"'},{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"volunteer"'},{value:'"website"'},{value:'"globe"'},{value:'"gps-location"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{l as B}; \ No newline at end of file diff --git a/storybook-static/assets/ButtonIcon-DLFqXCZb.js b/storybook-static/assets/ButtonIcon-DLFqXCZb.js new file mode 100644 index 0000000000..46651814df --- /dev/null +++ b/storybook-static/assets/ButtonIcon-DLFqXCZb.js @@ -0,0 +1 @@ +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{I as u}from"./Icon-DVJa_328.js";import{B as v}from"./theme-ui-components.esm-DCiJ1mMX.js";const l=e=>a.jsx(v,{...e,sx:{background:"white",borderRadius:99,padding:1,...e.sx},children:a.jsx(u,{glyph:e.icon,size:18})});try{l.displayName="ButtonIcon",l.__docgenInfo={description:"",displayName:"ButtonIcon",props:{icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"filter"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"image"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"map"'},{value:'"menu"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"step"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"time"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"view"'},{value:'"volunteer"'},{value:'"website"'},{value:'"search"'},{value:'"globe"'},{value:'"gps-location"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{l as B}; \ No newline at end of file diff --git a/storybook-static/assets/ButtonIcon.stories-Bw_O1uDc.js b/storybook-static/assets/ButtonIcon.stories-BJDeg0db.js similarity index 87% rename from storybook-static/assets/ButtonIcon.stories-Bw_O1uDc.js rename to storybook-static/assets/ButtonIcon.stories-BJDeg0db.js index 207388cf71..127681caf7 100644 --- a/storybook-static/assets/ButtonIcon.stories-Bw_O1uDc.js +++ b/storybook-static/assets/ButtonIcon.stories-BJDeg0db.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as e}from"./ButtonIcon-BjD0tDRb.js";import"./index-BP8_t0zE.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const h={title:"Map/ButtonIcon",component:e},o=()=>i.jsx(e,{icon:"close"});var t,r,s;o.parameters={...o.parameters,docs:{...null==(t=o.parameters)?void 0:t.docs,source:{originalSource:'() => ',...null==(s=null==(r=o.parameters)?void 0:r.docs)?void 0:s.source}}};const C=["WithClose"];export{o as WithClose,C as __namedExportsOrder,h as default}; \ No newline at end of file +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as e}from"./ButtonIcon-DLFqXCZb.js";import"./index-BP8_t0zE.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const h={title:"Map/ButtonIcon",component:e},o=()=>i.jsx(e,{icon:"close"});var t,r,s;o.parameters={...o.parameters,docs:{...null==(t=o.parameters)?void 0:t.docs,source:{originalSource:'() => ',...null==(s=null==(r=o.parameters)?void 0:r.docs)?void 0:s.source}}};const C=["WithClose"];export{o as WithClose,C as __namedExportsOrder,h as default}; \ No newline at end of file diff --git a/storybook-static/assets/ButtonShowReplies-CiHAfYgx.js b/storybook-static/assets/ButtonShowReplies-nddYmg0q.js similarity index 93% rename from storybook-static/assets/ButtonShowReplies-CiHAfYgx.js rename to storybook-static/assets/ButtonShowReplies-nddYmg0q.js index 628ef953ba..f56ecf4f38 100644 --- a/storybook-static/assets/ButtonShowReplies-CiHAfYgx.js +++ b/storybook-static/assets/ButtonShowReplies-nddYmg0q.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-CexXSJP5.js";import{B as a}from"./Button-B7QBvkxh.js";import{n as u}from"./DiscussionTitle-Dhry4tok.js";const s=e=>{const{isShowReplies:s,replies:i,setIsShowReplies:t}=e,l=u(i),o=s?"chevron-up":"chevron-down",r=l?s?`Hide ${l} ${1===l?"reply":"replies"}`:`Show ${l} ${1===l?"reply":"replies"}`:s?"Hide":"Reply";return p.jsx(a,{type:"button","data-cy":"show-replies","data-testid":"show-replies",icon:o,onClick:t,sx:{alignSelf:"flex-start"},variant:"subtle",small:!0,children:r})};try{s.displayName="ButtonShowReplies",s.__docgenInfo={description:"",displayName:"ButtonShowReplies",props:{isShowReplies:{defaultValue:null,description:"",name:"isShowReplies",required:!0,type:{name:"boolean"}},replies:{defaultValue:null,description:"",name:"replies",required:!0,type:{name:"IComment[]"}},setIsShowReplies:{defaultValue:null,description:"",name:"setIsShowReplies",required:!0,type:{name:"() => void"}}}}}catch{}export{s as B}; \ No newline at end of file +import{j as p}from"./jsx-runtime-CexXSJP5.js";import{B as a}from"./Button-1qf_V-Zv.js";import{n as u}from"./DiscussionTitle-Dhry4tok.js";const s=e=>{const{isShowReplies:s,replies:i,setIsShowReplies:t}=e,l=u(i),o=s?"chevron-up":"chevron-down",r=l?s?`Hide ${l} ${1===l?"reply":"replies"}`:`Show ${l} ${1===l?"reply":"replies"}`:s?"Hide":"Reply";return p.jsx(a,{type:"button","data-cy":"show-replies","data-testid":"show-replies",icon:o,onClick:t,sx:{alignSelf:"flex-start"},variant:"subtle",small:!0,children:r})};try{s.displayName="ButtonShowReplies",s.__docgenInfo={description:"",displayName:"ButtonShowReplies",props:{isShowReplies:{defaultValue:null,description:"",name:"isShowReplies",required:!0,type:{name:"boolean"}},replies:{defaultValue:null,description:"",name:"replies",required:!0,type:{name:"IComment[]"}},setIsShowReplies:{defaultValue:null,description:"",name:"setIsShowReplies",required:!0,type:{name:"() => void"}}}}}catch{}export{s as B}; \ No newline at end of file diff --git a/storybook-static/assets/ButtonShowReplies.stories-C3EqgxbV.js b/storybook-static/assets/ButtonShowReplies.stories-CgDeRJwG.js similarity index 94% rename from storybook-static/assets/ButtonShowReplies.stories-C3EqgxbV.js rename to storybook-static/assets/ButtonShowReplies.stories-CgDeRJwG.js index 991c6c2d72..c2edaf49c5 100644 --- a/storybook-static/assets/ButtonShowReplies.stories-C3EqgxbV.js +++ b/storybook-static/assets/ButtonShowReplies.stories-CgDeRJwG.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as k}from"./index-BP8_t0zE.js";import{c as a}from"./utils-BRZF2j4e.js";import{B as s}from"./ButtonShowReplies-CiHAfYgx.js";import"./index-D_kXk1yT.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./DiscussionTitle-Dhry4tok.js";const Q={title:"Components/ButtonShowReplies",component:s},r=()=>{const[e,r]=k.useState(!1),i=a(7);return o.jsx(s,{replies:i,isShowReplies:e,setIsShowReplies:()=>r(!e)})},t=()=>{const e=a(6);return o.jsx(s,{isShowReplies:!0,replies:e,setIsShowReplies:()=>null})},i=()=>{const e=a(1);return o.jsx(s,{isShowReplies:!1,replies:e,setIsShowReplies:()=>null})},p=()=>o.jsx(s,{isShowReplies:!1,replies:[],setIsShowReplies:()=>null}),l=()=>{const e=a(1);return o.jsx(s,{isShowReplies:!1,replies:e,setIsShowReplies:()=>null})};var n,m,c,u,S,R,h,w,d,f,I,x,B,C,g;r.parameters={...r.parameters,docs:{...null==(n=r.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const [isShowReplies, setIsShowReplies] = useState(false);\n const replies = createFakeComments(7);\n return setIsShowReplies(!isShowReplies)} />;\n}",...null==(c=null==(m=r.parameters)?void 0:m.docs)?void 0:c.source}}},t.parameters={...t.parameters,docs:{...null==(u=t.parameters)?void 0:u.docs,source:{originalSource:"() => {\n const replies = createFakeComments(6);\n return null} />;\n}",...null==(R=null==(S=t.parameters)?void 0:S.docs)?void 0:R.source}}},i.parameters={...i.parameters,docs:{...null==(h=i.parameters)?void 0:h.docs,source:{originalSource:"() => {\n const replies = createFakeComments(1);\n return null} />;\n}",...null==(d=null==(w=i.parameters)?void 0:w.docs)?void 0:d.source}}},p.parameters={...p.parameters,docs:{...null==(f=p.parameters)?void 0:f.docs,source:{originalSource:"() => {\n return null} />;\n}",...null==(x=null==(I=p.parameters)?void 0:I.docs)?void 0:x.source}}},l.parameters={...l.parameters,docs:{...null==(B=l.parameters)?void 0:B.docs,source:{originalSource:"() => {\n const replies = createFakeComments(1);\n return null} />;\n}",...null==(g=null==(C=l.parameters)?void 0:C.docs)?void 0:g.source}}};const T=["Default","RepliesShowing","OneReply","NoReplies","NoCreatorName"];export{r as Default,l as NoCreatorName,p as NoReplies,i as OneReply,t as RepliesShowing,T as __namedExportsOrder,Q as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as k}from"./index-BP8_t0zE.js";import{c as a}from"./utils-BRZF2j4e.js";import{B as s}from"./ButtonShowReplies-nddYmg0q.js";import"./index-D_kXk1yT.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./DiscussionTitle-Dhry4tok.js";const Q={title:"Components/ButtonShowReplies",component:s},r=()=>{const[e,r]=k.useState(!1),i=a(7);return o.jsx(s,{replies:i,isShowReplies:e,setIsShowReplies:()=>r(!e)})},t=()=>{const e=a(6);return o.jsx(s,{isShowReplies:!0,replies:e,setIsShowReplies:()=>null})},i=()=>{const e=a(1);return o.jsx(s,{isShowReplies:!1,replies:e,setIsShowReplies:()=>null})},p=()=>o.jsx(s,{isShowReplies:!1,replies:[],setIsShowReplies:()=>null}),l=()=>{const e=a(1);return o.jsx(s,{isShowReplies:!1,replies:e,setIsShowReplies:()=>null})};var n,m,c,u,S,R,h,w,d,f,I,x,B,C,g;r.parameters={...r.parameters,docs:{...null==(n=r.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const [isShowReplies, setIsShowReplies] = useState(false);\n const replies = createFakeComments(7);\n return setIsShowReplies(!isShowReplies)} />;\n}",...null==(c=null==(m=r.parameters)?void 0:m.docs)?void 0:c.source}}},t.parameters={...t.parameters,docs:{...null==(u=t.parameters)?void 0:u.docs,source:{originalSource:"() => {\n const replies = createFakeComments(6);\n return null} />;\n}",...null==(R=null==(S=t.parameters)?void 0:S.docs)?void 0:R.source}}},i.parameters={...i.parameters,docs:{...null==(h=i.parameters)?void 0:h.docs,source:{originalSource:"() => {\n const replies = createFakeComments(1);\n return null} />;\n}",...null==(d=null==(w=i.parameters)?void 0:w.docs)?void 0:d.source}}},p.parameters={...p.parameters,docs:{...null==(f=p.parameters)?void 0:f.docs,source:{originalSource:"() => {\n return null} />;\n}",...null==(x=null==(I=p.parameters)?void 0:I.docs)?void 0:x.source}}},l.parameters={...l.parameters,docs:{...null==(B=l.parameters)?void 0:B.docs,source:{originalSource:"() => {\n const replies = createFakeComments(1);\n return null} />;\n}",...null==(g=null==(C=l.parameters)?void 0:C.docs)?void 0:g.source}}};const T=["Default","RepliesShowing","OneReply","NoReplies","NoCreatorName"];export{r as Default,l as NoCreatorName,p as NoReplies,i as OneReply,t as RepliesShowing,T as __namedExportsOrder,Q as default}; \ No newline at end of file diff --git a/storybook-static/assets/CardList-CsrRuU_s.js b/storybook-static/assets/CardList-CsrRuU_s.js deleted file mode 100644 index babc18944b..0000000000 --- a/storybook-static/assets/CardList-CsrRuU_s.js +++ /dev/null @@ -1 +0,0 @@ -import{j as u}from"./jsx-runtime-CexXSJP5.js";import{a as c,r as y}from"./index-BP8_t0zE.js";import{C as M}from"./CardListItem-DkByzG5-.js";import{I as P}from"./Icon-BoVZOGVD.js";import{L as O}from"./Loader-DmqUoSY8.js";import{F as v,T as _}from"./theme-ui-components.esm-DCiJ1mMX.js";function g(){return g=Object.assign||function(t){for(var e=1;e0?n[t[0]]:T;return t.forEach((function(t){t{const{columnsCountBreakPoints:e,dataCy:n,filteredList:r,list:o}=t,i=(null===r?o:r).sort(((t,e)=>{var n,r;return Date.parse((null==(n=e.creator)?void 0:n._lastActive)||"0")-Date.parse((null==(r=t.creator)?void 0:r._lastActive)||"0")})).map((t=>u.jsx(M,{item:t},t._id))),s=0===i.length,a=o,l=`${i.length} result${1==i.length?"":"s"} in view`;return u.jsxs(v,{"data-cy":`CardList-${n}`,sx:{flexDirection:"column",gap:2,padding:2},children:[!a&&u.jsx(O,{}),a&&u.jsxs(u.Fragment,{children:[u.jsxs(v,{sx:{justifyContent:"space-between",paddingX:2,paddingTop:2,fontSize:2},children:[u.jsx(_,{"data-cy":"list-results",children:l}),u.jsxs(v,{sx:{alignItems:"center",gap:1},children:[u.jsx(_,{children:" Most recently active"}),u.jsx(P,{glyph:"arrow-full-down"})]})]}),s&&b,!s&&u.jsx(L,{columnsCountBreakPoints:e||{600:1,1100:2,1600:3},children:u.jsx(x,{children:i})})]})]})};try{w.displayName="CardList",w.__docgenInfo={description:"",displayName:"CardList",props:{columnsCountBreakPoints:{defaultValue:null,description:"",name:"columnsCountBreakPoints",required:!1,type:{name:"{ [key: number]: number; }"}},dataCy:{defaultValue:null,description:"",name:"dataCy",required:!0,type:{name:"string"}},filteredList:{defaultValue:null,description:"",name:"filteredList",required:!0,type:{name:"IMapPin[] | null"}},list:{defaultValue:null,description:"",name:"list",required:!0,type:{name:"IMapPin[]"}}}}}catch{}export{w as C}; \ No newline at end of file diff --git a/storybook-static/assets/CardList-DYV48TQx.js b/storybook-static/assets/CardList-DYV48TQx.js new file mode 100644 index 0000000000..805706ceb5 --- /dev/null +++ b/storybook-static/assets/CardList-DYV48TQx.js @@ -0,0 +1 @@ +import{j as u}from"./jsx-runtime-CexXSJP5.js";import{a as c,r as y}from"./index-BP8_t0zE.js";import{C as M}from"./CardListItem-DfmpNeu7.js";import{I as P}from"./Icon-DVJa_328.js";import{L as O}from"./Loader-DmqUoSY8.js";import{F as v,T as _}from"./theme-ui-components.esm-DCiJ1mMX.js";function g(){return g=Object.assign||function(e){for(var t=1;t0?n[e[0]]:T;return e.forEach((function(e){e{const{columnsCountBreakPoints:t,dataCy:n,filteredList:r,list:o}=e,i=(null===r?o:r).sort(((e,t)=>{var n,r;return Date.parse((null==(n=t.creator)?void 0:n._lastActive)||"0")-Date.parse((null==(r=e.creator)?void 0:r._lastActive)||"0")})).map((e=>u.jsx(M,{item:e},e._id))),s=0===i.length,a=o,l=`${i.length} result${1==i.length?"":"s"} in view`;return u.jsxs(v,{"data-cy":`CardList-${n}`,sx:{flexDirection:"column",gap:2,padding:2},children:[!a&&u.jsx(O,{}),a&&u.jsxs(u.Fragment,{children:[u.jsxs(v,{sx:{justifyContent:"space-between",paddingX:2,paddingTop:2,fontSize:2},children:[u.jsx(_,{"data-cy":"list-results",children:l}),u.jsxs(v,{sx:{alignItems:"center",gap:1},children:[u.jsx(_,{children:" Most recently active"}),u.jsx(P,{glyph:"arrow-full-down"})]})]}),s&&b,!s&&u.jsx(L,{columnsCountBreakPoints:t||{600:1,1100:2,1600:3},children:u.jsx(x,{children:i})})]})]})};try{w.displayName="CardList",w.__docgenInfo={description:"",displayName:"CardList",props:{columnsCountBreakPoints:{defaultValue:null,description:"",name:"columnsCountBreakPoints",required:!1,type:{name:"{ [key: number]: number; }"}},dataCy:{defaultValue:null,description:"",name:"dataCy",required:!0,type:{name:"string"}},filteredList:{defaultValue:null,description:"",name:"filteredList",required:!0,type:{name:"IMapPin[] | null"}},list:{defaultValue:null,description:"",name:"list",required:!0,type:{name:"IMapPin[]"}}}}}catch{}export{w as C}; \ No newline at end of file diff --git a/storybook-static/assets/CardList.stories-BYuMAzGH.js b/storybook-static/assets/CardList.stories-D4Z07zME.js similarity index 88% rename from storybook-static/assets/CardList.stories-BYuMAzGH.js rename to storybook-static/assets/CardList.stories-D4Z07zME.js index 6d2eb51b20..76a52ee5af 100644 --- a/storybook-static/assets/CardList.stories-BYuMAzGH.js +++ b/storybook-static/assets/CardList.stories-D4Z07zME.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{C as s}from"./CardList-CsrRuU_s.js";import"./index-BP8_t0zE.js";import"./CardListItem-DkByzG5-.js";import"./CardButton-UFEWOkeB.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-DhE0xdXm.js";import"./Category-BRVyiaSI.js";import"./MemberBadge-DaB6gu8F.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./ProfileTagsList-C85jWzjp.js";import"./Icon-BoVZOGVD.js";import"./icon-arrow-down-CJeToCJe.js";import"./Loader-DmqUoSY8.js";const N={title:"Map/CardList",component:s},t=[{_deleted:!1,_id:"first-one",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0}},{_deleted:!1,_id:"second-one",type:"collection-point",moderation:"accepted",verified:!1,location:{lat:10,lng:-38}},{_deleted:!1,_id:"third",type:"member",moderation:"accepted",verified:!1,location:{lat:102,lng:30}},{_deleted:!1,_id:"4th",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:73}}],e=()=>o.jsx(s,{dataCy:"stories",list:t,filteredList:null}),r=()=>{const e=[t[0],t[2]];return o.jsx(s,{dataCy:"stories",list:t,filteredList:e})},i=()=>o.jsx(s,{dataCy:"stories",list:t,filteredList:[]});var a,l,d,m,p,n,c,f,u;e.parameters={...e.parameters,docs:{...null==(a=e.parameters)?void 0:a.docs,source:{originalSource:'() => {\n return ;\n}',...null==(d=null==(l=e.parameters)?void 0:l.docs)?void 0:d.source}}},r.parameters={...r.parameters,docs:{...null==(m=r.parameters)?void 0:m.docs,source:{originalSource:'() => {\n const filteredList = [allItems[0], allItems[2]];\n return ;\n}',...null==(n=null==(p=r.parameters)?void 0:p.docs)?void 0:n.source}}},i.parameters={...i.parameters,docs:{...null==(c=i.parameters)?void 0:c.docs,source:{originalSource:'() => {\n return ;\n}',...null==(u=null==(f=i.parameters)?void 0:f.docs)?void 0:u.source}}};const P=["Default","FiltedDisplay","WhenFiltedDisplayIsZero"];export{e as Default,r as FiltedDisplay,i as WhenFiltedDisplayIsZero,P as __namedExportsOrder,N as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{C as s}from"./CardList-DYV48TQx.js";import"./index-BP8_t0zE.js";import"./CardListItem-DfmpNeu7.js";import"./CardButton-UFEWOkeB.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-BoQoQZcw.js";import"./Category-BRVyiaSI.js";import"./MemberBadge-BFCUvfGJ.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./ProfileTagsList-C85jWzjp.js";import"./Icon-DVJa_328.js";import"./icon-arrow-down-CJeToCJe.js";import"./Loader-DmqUoSY8.js";const N={title:"Map/CardList",component:s},t=[{_deleted:!1,_id:"first-one",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0}},{_deleted:!1,_id:"second-one",type:"collection-point",moderation:"accepted",verified:!1,location:{lat:10,lng:-38}},{_deleted:!1,_id:"third",type:"member",moderation:"accepted",verified:!1,location:{lat:102,lng:30}},{_deleted:!1,_id:"4th",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:73}}],e=()=>o.jsx(s,{dataCy:"stories",list:t,filteredList:null}),r=()=>{const e=[t[0],t[2]];return o.jsx(s,{dataCy:"stories",list:t,filteredList:e})},i=()=>o.jsx(s,{dataCy:"stories",list:t,filteredList:[]});var a,l,d,m,p,n,c,f,u;e.parameters={...e.parameters,docs:{...null==(a=e.parameters)?void 0:a.docs,source:{originalSource:'() => {\n return ;\n}',...null==(d=null==(l=e.parameters)?void 0:l.docs)?void 0:d.source}}},r.parameters={...r.parameters,docs:{...null==(m=r.parameters)?void 0:m.docs,source:{originalSource:'() => {\n const filteredList = [allItems[0], allItems[2]];\n return ;\n}',...null==(n=null==(p=r.parameters)?void 0:p.docs)?void 0:n.source}}},i.parameters={...i.parameters,docs:{...null==(c=i.parameters)?void 0:c.docs,source:{originalSource:'() => {\n return ;\n}',...null==(u=null==(f=i.parameters)?void 0:f.docs)?void 0:u.source}}};const P=["Default","FiltedDisplay","WhenFiltedDisplayIsZero"];export{e as Default,r as FiltedDisplay,i as WhenFiltedDisplayIsZero,P as __namedExportsOrder,N as default}; \ No newline at end of file diff --git a/storybook-static/assets/CardListItem-DkByzG5-.js b/storybook-static/assets/CardListItem-DfmpNeu7.js similarity index 77% rename from storybook-static/assets/CardListItem-DkByzG5-.js rename to storybook-static/assets/CardListItem-DfmpNeu7.js index e8e24eb877..236376ac34 100644 --- a/storybook-static/assets/CardListItem-DkByzG5-.js +++ b/storybook-static/assets/CardListItem-DfmpNeu7.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{C as a}from"./CardButton-UFEWOkeB.js";import{C as i}from"./CardProfile-DhE0xdXm.js";import{I as d}from"./InternalLink-CtyTe3gy.js";const e=({item:e})=>t.jsx(d,{"data-cy":"CardListItem","data-testid":"CardListItem",to:`/u/${e._id}`,sx:{borderRadius:2,padding:2},children:t.jsx(a,{children:t.jsx(i,{item:e})})});try{e.displayName="CardListItem",e.__docgenInfo={description:"",displayName:"CardListItem",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}}}}}catch{}export{e as C}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{C as a}from"./CardButton-UFEWOkeB.js";import{C as i}from"./CardProfile-BoQoQZcw.js";import{I as d}from"./InternalLink-CtyTe3gy.js";const e=({item:e})=>t.jsx(d,{"data-cy":"CardListItem","data-testid":"CardListItem",to:`/u/${e._id}`,sx:{borderRadius:2,padding:2},children:t.jsx(a,{children:t.jsx(i,{item:e})})});try{e.displayName="CardListItem",e.__docgenInfo={description:"",displayName:"CardListItem",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}}}}}catch{}export{e as C}; \ No newline at end of file diff --git a/storybook-static/assets/CardListItem.stories-CgMsIoLa.js b/storybook-static/assets/CardListItem.stories-gbx8qE1D.js similarity index 95% rename from storybook-static/assets/CardListItem.stories-CgMsIoLa.js rename to storybook-static/assets/CardListItem.stories-gbx8qE1D.js index 071cb06cfd..662d96ec4b 100644 --- a/storybook-static/assets/CardListItem.stories-CgMsIoLa.js +++ b/storybook-static/assets/CardListItem.stories-gbx8qE1D.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{y}from"./index-D_kXk1yT.js";import{C as i}from"./CardListItem-DkByzG5-.js";import"./index-BP8_t0zE.js";import"./CardButton-UFEWOkeB.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-DhE0xdXm.js";import"./Category-BRVyiaSI.js";import"./MemberBadge-DaB6gu8F.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./ProfileTagsList-C85jWzjp.js";const G={title:"Map/CardListItem",component:i},r=()=>{const t={_deleted:!1,_id:"not-selected-onload",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0},creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:y.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return e.jsx("div",{style:{width:"500px"},children:e.jsx(i,{item:t})})},a=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!1,profileType:"workspace",workspaceType:"Sheetpress"}}})}),o=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",type:"member",location:{lat:0,lng:0},moderation:"accepted",verified:!1}})});var n,s,m,d,l,p,c,u,f;r.parameters={...r.parameters,docs:{...null==(n=r.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n moderation: 'accepted' as IModerationStatus,\n verified: false,\n location: {\n lat: 0,\n lng: 0\n },\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
\n \n
;\n}",...null==(m=null==(s=r.parameters)?void 0:s.docs)?void 0:m.source}}},a.parameters={...a.parameters,docs:{...null==(d=a.parameters)?void 0:d.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: false,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
\n \n
;\n}",...null==(p=null==(l=a.parameters)?void 0:l.docs)?void 0:p.source}}},o.parameters={...o.parameters,docs:{...null==(c=o.parameters)?void 0:c.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n verified: false\n };\n return
\n \n
;\n}",...null==(f=null==(u=o.parameters)?void 0:u.docs)?void 0:f.source}}};const H=["DefaultMember","DefaultSpace","DefaultFallback"];export{o as DefaultFallback,r as DefaultMember,a as DefaultSpace,H as __namedExportsOrder,G as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{y}from"./index-D_kXk1yT.js";import{C as i}from"./CardListItem-DfmpNeu7.js";import"./index-BP8_t0zE.js";import"./CardButton-UFEWOkeB.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./CardProfile-BoQoQZcw.js";import"./Category-BRVyiaSI.js";import"./MemberBadge-BFCUvfGJ.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./ProfileTagsList-C85jWzjp.js";const G={title:"Map/CardListItem",component:i},r=()=>{const t={_deleted:!1,_id:"not-selected-onload",type:"member",moderation:"accepted",verified:!1,location:{lat:0,lng:0},creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:y.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return e.jsx("div",{style:{width:"500px"},children:e.jsx(i,{item:t})})},a=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!1,profileType:"workspace",workspaceType:"Sheetpress"}}})}),o=()=>e.jsx("div",{style:{width:"500px"},children:e.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",type:"member",location:{lat:0,lng:0},moderation:"accepted",verified:!1}})});var n,s,m,d,l,p,c,u,f;r.parameters={...r.parameters,docs:{...null==(n=r.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n moderation: 'accepted' as IModerationStatus,\n verified: false,\n location: {\n lat: 0,\n lng: 0\n },\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
\n \n
;\n}",...null==(m=null==(s=r.parameters)?void 0:s.docs)?void 0:m.source}}},a.parameters={...a.parameters,docs:{...null==(d=a.parameters)?void 0:d.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: false,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
\n \n
;\n}",...null==(p=null==(l=a.parameters)?void 0:l.docs)?void 0:p.source}}},o.parameters={...o.parameters,docs:{...null==(c=o.parameters)?void 0:c.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n type: 'member' as ProfileTypeName,\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n verified: false\n };\n return
\n \n
;\n}",...null==(f=null==(u=o.parameters)?void 0:u.docs)?void 0:f.source}}};const H=["DefaultMember","DefaultSpace","DefaultFallback"];export{o as DefaultFallback,r as DefaultMember,a as DefaultSpace,H as __namedExportsOrder,G as default}; \ No newline at end of file diff --git a/storybook-static/assets/CardProfile-BoQoQZcw.js b/storybook-static/assets/CardProfile-BoQoQZcw.js new file mode 100644 index 0000000000..27e787c6c5 --- /dev/null +++ b/storybook-static/assets/CardProfile-BoQoQZcw.js @@ -0,0 +1 @@ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{C as g}from"./Category-BRVyiaSI.js";import{M as c}from"./MemberBadge-BFCUvfGJ.js";import{U as f}from"./Username-jnUEp1hu.js";import{F as i,a as j,g as C,I as b,T as I}from"./theme-ui-components.esm-DCiJ1mMX.js";import{P as h}from"./ProfileTagsList-C85jWzjp.js";const p=({item:s,isLink:r})=>{const{_id:t,subType:a,type:n}=s;return e.jsxs(i,{sx:{padding:2,gap:2},children:[e.jsx(c,{profileType:n,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:2},children:[e.jsx(f,{user:{userName:t},sx:{alignSelf:"flex-start"},isLink:r}),a&&e.jsx(g,{category:{label:a},sx:{border:"1px solid #0087B6",backgroundColor:"#ECFAFF",color:"#0087B6"}}),"member"===n&&e.jsx(g,{category:{label:"Wants to get started"},sx:{border:"1px solid #A72E5A",backgroundColor:"#F7C7D9",color:"#A72E5A"}})]})]})};try{p.displayName="CardDetailsFallback",p.__docgenInfo={description:"",displayName:"CardDetailsFallback",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const x=({creator:s,isLink:r})=>{const{_id:t,badges:a,countryCode:n,profileType:o,tags:l,userImage:p}=s;return e.jsxs(i,{sx:{gap:2,justifyContent:"center",alignItems:"center",padding:2,alignContent:"stretch"},children:[p&&e.jsx(j,{sx:{aspectRatio:1,width:"60px",height:"60px"},children:e.jsxs(i,{sx:{alignContent:"flex-start",justifyContent:"flex-end",flexWrap:"wrap"},children:[e.jsx(C,{src:p,sx:{width:"60px",height:"60px",objectFit:"cover"},loading:"lazy"}),e.jsx(c,{profileType:o,size:22,sx:{transform:"translateY(-22px)"}})]})}),!p&&e.jsx(c,{profileType:o,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:1,flex:1},children:[e.jsx(f,{user:{userName:t,countryCode:n,isSupporter:(null==a?void 0:a.supporter)||!1,isVerified:(null==a?void 0:a.verified)||!1},sx:{alignSelf:"flex-start"},isLink:r}),l&&e.jsx(h,{tags:l})]})]})};try{x.displayName="CardDetailsMemberProfile",x.__docgenInfo={description:"",displayName:"CardDetailsMemberProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const u=({creator:s,isLink:r})=>{const{_id:t,about:a,badges:n,countryCode:o,coverImage:l,profileType:p,tags:d}=s,x=!!(a&&a.length>80)&&a.slice(0,78)+"...";return e.jsxs(i,{sx:{flexDirection:"column",width:"100%"},children:[l&&e.jsxs(e.Fragment,{children:[e.jsx(i,{sx:{aspectRatio:16/6,overflow:"hidden"},children:e.jsx(b,{src:l,sx:{aspectRatio:16/6,alignSelf:"stretch",objectFit:"cover"},loading:"lazy"})}),e.jsx(j,{sx:{position:"relative",height:0,top:"-20px",width:"100%"},children:e.jsx(c,{profileType:p,size:40,sx:{float:"right",marginX:2}})})]}),e.jsxs(i,{sx:{alignItems:"flex-start",flexDirection:"column",gap:1,padding:2},children:[e.jsxs(i,{sx:{gap:2},children:[!l&&e.jsx(c,{profileType:p,size:30}),e.jsx(f,{user:{userName:t,countryCode:o,isVerified:(null==n?void 0:n.verified)||!1,isSupporter:(null==n?void 0:n.supporter)||!1},sx:{alignSelf:"flex-start"},isLink:r})]}),d&&e.jsx(h,{tags:d}),a&&e.jsx(I,{variant:"quiet",sx:{fontSize:2},children:x||a})]})]})};try{u.displayName="CardDetailsSpaceProfile",u.__docgenInfo={description:"",displayName:"CardDetailsSpaceProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const y=({item:s,isLink:r=!1})=>{const{creator:t}=s,a="member"===(null==t?void 0:t.profileType);return e.jsxs(i,{sx:{alignItems:"stretch",alignContent:"stretch"},children:[a&&e.jsx(x,{creator:t,isLink:r}),!a&&t&&e.jsx(u,{creator:t,isLink:r}),!t&&e.jsx(p,{item:s,isLink:r})]})};try{y.displayName="CardProfile",y.__docgenInfo={description:"",displayName:"CardProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:{value:"false"},description:"",name:"isLink",required:!1,type:{name:"boolean"}}}}}catch{}export{y as C}; \ No newline at end of file diff --git a/storybook-static/assets/CardProfile-DhE0xdXm.js b/storybook-static/assets/CardProfile-DhE0xdXm.js deleted file mode 100644 index c50d091884..0000000000 --- a/storybook-static/assets/CardProfile-DhE0xdXm.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{C as g}from"./Category-BRVyiaSI.js";import{M as c}from"./MemberBadge-DaB6gu8F.js";import{U as f}from"./Username-jnUEp1hu.js";import{F as i,a as y,g as C,I as b,T as I}from"./theme-ui-components.esm-DCiJ1mMX.js";import{P as h}from"./ProfileTagsList-C85jWzjp.js";const d=({item:s,isLink:r})=>{const{_id:t,subType:a,type:n}=s;return e.jsxs(i,{sx:{padding:2,gap:2},children:[e.jsx(c,{profileType:n,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:2},children:[e.jsx(f,{user:{userName:t},sx:{alignSelf:"flex-start"},isLink:r}),a&&e.jsx(g,{category:{label:a},sx:{border:"1px solid #0087B6",backgroundColor:"#ECFAFF",color:"#0087B6"}}),"member"===n&&e.jsx(g,{category:{label:"Wants to get started"},sx:{border:"1px solid #A72E5A",backgroundColor:"#F7C7D9",color:"#A72E5A"}})]})]})};try{d.displayName="CardDetailsFallback",d.__docgenInfo={description:"",displayName:"CardDetailsFallback",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const x=({creator:s,isLink:r})=>{const{_id:t,badges:a,countryCode:n,profileType:o,tags:l,userImage:d}=s;return e.jsxs(i,{sx:{gap:2,justifyContent:"center",alignItems:"center",padding:2,alignContent:"stretch"},children:[d&&e.jsx(y,{sx:{aspectRatio:1,width:"60px",height:"60px"},children:e.jsxs(i,{sx:{alignContent:"flex-start",justifyContent:"flex-end",flexWrap:"wrap"},children:[e.jsx(C,{src:d,sx:{width:"60px",height:"60px",objectFit:"cover"}}),e.jsx(c,{profileType:o,size:22,sx:{transform:"translateY(-22px)"}})]})}),!d&&e.jsx(c,{profileType:o,size:50}),e.jsxs(i,{sx:{flexDirection:"column",gap:1,flex:1},children:[e.jsx(f,{user:{userName:t,countryCode:n,isSupporter:(null==a?void 0:a.supporter)||!1,isVerified:(null==a?void 0:a.verified)||!1},sx:{alignSelf:"flex-start"},isLink:r}),l&&e.jsx(h,{tags:l})]})]})};try{x.displayName="CardDetailsMemberProfile",x.__docgenInfo={description:"",displayName:"CardDetailsMemberProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const u=({creator:s,isLink:r})=>{const{_id:t,about:a,badges:n,countryCode:o,coverImage:l,profileType:d,tags:p}=s,x=!!(a&&a.length>80)&&a.slice(0,78)+"...";return e.jsxs(i,{sx:{flexDirection:"column",width:"100%"},children:[l&&e.jsxs(e.Fragment,{children:[e.jsx(i,{sx:{aspectRatio:16/6,overflow:"hidden"},children:e.jsx(b,{src:l,sx:{aspectRatio:16/6,alignSelf:"stretch",objectFit:"cover"}})}),e.jsx(y,{sx:{position:"relative",height:0,top:"-20px",width:"100%"},children:e.jsx(c,{profileType:d,size:40,sx:{float:"right",marginX:2}})})]}),e.jsxs(i,{sx:{alignItems:"flex-start",flexDirection:"column",gap:1,padding:2},children:[e.jsxs(i,{sx:{gap:2},children:[!l&&e.jsx(c,{profileType:d,size:30}),e.jsx(f,{user:{userName:t,countryCode:o,isVerified:(null==n?void 0:n.verified)||!1,isSupporter:(null==n?void 0:n.supporter)||!1},sx:{alignSelf:"flex-start"},isLink:r})]}),p&&e.jsx(h,{tags:p}),a&&e.jsx(I,{variant:"quiet",sx:{fontSize:2},children:x||a})]})]})};try{u.displayName="CardDetailsSpaceProfile",u.__docgenInfo={description:"",displayName:"CardDetailsSpaceProfile",props:{creator:{defaultValue:null,description:"",name:"creator",required:!0,type:{name:"IProfileCreator"}},isLink:{defaultValue:null,description:"",name:"isLink",required:!0,type:{name:"boolean"}}}}}catch{}const j=({item:s,isLink:r=!1})=>{const{creator:t}=s,a="member"===(null==t?void 0:t.profileType);return e.jsxs(i,{sx:{alignItems:"stretch",alignContent:"stretch"},children:[a&&e.jsx(x,{creator:t,isLink:r}),!a&&t&&e.jsx(u,{creator:t,isLink:r}),!t&&e.jsx(d,{item:s,isLink:r})]})};try{j.displayName="CardProfile",j.__docgenInfo={description:"",displayName:"CardProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},isLink:{defaultValue:{value:"false"},description:"",name:"isLink",required:!1,type:{name:"boolean"}}}}}catch{}export{j as C}; \ No newline at end of file diff --git a/storybook-static/assets/Color-6VNJS4EI-C8_EVnsw.js b/storybook-static/assets/Color-6VNJS4EI-DHGDfq5k.js similarity index 99% rename from storybook-static/assets/Color-6VNJS4EI-C8_EVnsw.js rename to storybook-static/assets/Color-6VNJS4EI-DHGDfq5k.js index 9ebbeb8421..ff568046c0 100644 --- a/storybook-static/assets/Color-6VNJS4EI-C8_EVnsw.js +++ b/storybook-static/assets/Color-6VNJS4EI-DHGDfq5k.js @@ -1 +1 @@ -import{n as M,e as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-HxeQ2bN6.js";import{a as h,r as b,g as fe}from"./index-BP8_t0zE.js";import{_ as Oe,i as J,a as Ie}from"./index-EEBIeVPD.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}function K(e){var t=b.useRef(e),r=b.useRef((function(e){t.current&&t.current(e)}));return t.current=e,r.current}var S=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e0:e.buttons>0)&&a.current?o(ne(a.current,e,u.current)):r(!1)},t=function(){return r(!1)};function r(r){var n=i.current,o=V(a.current),l=r?o.addEventListener:o.removeEventListener;l(n?"touchmove":"mousemove",e),l(n?"touchend":"mouseup",t)}return[function(e){var t,n=e.nativeEvent,l=a.current;if(l&&(re(n),t=n,(!i.current||j(t))&&l)){if(j(n)){i.current=!0;var s=n.changedTouches||[];s.length&&(u.current=s[0].identifier)}l.focus(),o(ne(l,n,u.current)),r(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},r]}),[l,o]),c=s[0],f=s[1],d=s[2];return b.useEffect((function(){return d}),[d]),h.createElement("div",$({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:a,onKeyDown:f,tabIndex:0,role:"slider"}))})),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,r=e.left,n=e.top,a=void 0===n?.5:n,o=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return void 0===t&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:y(e.h),s:y(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:y(a/2),a:y(n,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),l=n*(1-r),u=n*(1-(t-o)*r),i=n*(1-(1-t+o)*r),s=o%6;return{r:y(255*[n,u,l,l,i,n][s]),g:y(255*[i,n,n,u,l,l][s]),b:y(255*[l,l,i,n,n,u][s]),a:y(a,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?H(y(255*a)):"";return"#"+H(t)+H(r)+H(n)+o},ge=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),l=o-Math.min(t,r,n),u=l?o===t?(r-n)/l:o===r?2+(n-t)/l:4+(t-r)/l:0;return{h:y(60*(u<0?u+6:u)),s:y(o?l/o*100:0),v:y(o/255*100),a:a}},me=h.memo((function(e){var t=e.hue,r=e.onChange,n=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:n},h.createElement(Z,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:S(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))})),be=h.memo((function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:n},h.createElement(Z,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:S(t.s+100*e.left,0,100),v:S(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))})),ve=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,r){var n=K(r),a=b.useState((function(){return e.toHsva(t)})),o=a[0],l=a[1],u=b.useRef({color:t,hsva:o});b.useEffect((function(){if(!e.equal(t,u.current.color)){var r=e.toHsva(t);u.current={hsva:r,color:t},l(r)}}),[t,e]),b.useEffect((function(){var t;ve(o,u.current.hsva)||e.equal(t=e.fromHsva(o),u.current.color)||(u.current={hsva:o,color:t},n(t))}),[o,e,n]);var i=b.useCallback((function(e){l((function(t){return Object.assign({},t,e)}))}),[]);return[o,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!oe.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',oe.set(t,r);var n=Be();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}}),[])},We=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},r,{a:0}))+", "+q(Object.assign({},r,{a:1}))+")"},o=z(["react-colorful__alpha",t]),l=y(100*r.a);return h.createElement("div",{className:o},h.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),h.createElement(Z,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:S(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:r.a,color:q(r)})))},we=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c}),h.createElement(Ke,{hsva:s,onChange:c,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=o-a;let u,i;o===a?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(60*u,360),u<0&&(u+=360);const s=(a+o)/2;return i=o===a?0:s<=.5?l/(o+a):l/(2-o-a),[u,100*i,100*s]},u.rgb.hsv=function(e){let t,r,n,a,o;const l=e[0]/255,u=e[1]/255,i=e[2]/255,s=Math.max(l,u,i),c=s-Math.min(l,u,i),h=function(e){return(s-e)/6/c+.5};return 0===c?(a=0,o=0):(o=c/s,t=h(l),r=h(u),n=h(i),l===s?a=n-r:u===s?a=1/3+t-n:i===s&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*s]},u.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=u.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*o,100*n]},u.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let r,n=1/0;for(const a of Object.keys(F)){const t=Je(e,F[a]);t.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},u.rgb.lab=function(e){const t=u.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(r-n),200*(n-a)]},u.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,o,l;if(0===r)return l=255*n,[l,l,l];a=n<.5?n*(1+r):n+r-n*r;const u=2*n-a,i=[0,0,0];for(let s=0;s<3;s++)o=t+1/3*-(s-1),o<0&&o++,o>1&&o--,l=6*o<1?u+6*(a-u)*o:2*o<1?a:3*o<2?u+(a-u)*(2/3-o)*6:u,i[s]=255*l;return i},u.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;return[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},u.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),u=255*n*(1-r*o),i=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,i,l];case 1:return[u,n,l];case 2:return[l,n,i];case 3:return[l,u,n];case 4:return[i,l,n];case 5:return[n,l,u]}},u.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,l;l=(2-r)*n;const u=(2-r)*a;return o=r*a,o/=u<=1?u:2-u,o=o||0,l/=2,[t,100*o,100*l]},u.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let o;a>1&&(r/=a,n/=a);const l=Math.floor(6*t),u=1-n;o=6*t-l,1&l&&(o=1-o);const i=r+o*(u-r);let s,c,h;switch(l){default:case 6:case 0:s=u,c=i,h=r;break;case 1:s=i,c=u,h=r;break;case 2:s=r,c=u,h=i;break;case 3:s=r,c=i,h=u;break;case 4:s=i,c=r,h=u;break;case 5:s=u,c=r,h=i}return[255*s,255*c,255*h]},u.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},u.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,o,l;return a=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},u.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},u.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const a=r**3,o=t**3,l=n**3;return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},u.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360);return[t,Math.sqrt(r*r+n*n),a]},u.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},u.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let o=null===t?u.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let l=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(l+=60),l},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},u.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},u.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},u.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),l=a-o;let u,i;return u=l<1?o/(1-l):0,i=l<=0?0:a===t?(r-n)/l%6:a===r?2+(n-t)/l:4+(t-r)/l,i/=6,i%=1,[360*i,100*l,100*u]},u.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},u.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const a=[0,0,0],o=t%1*6,l=o%1,u=1-l;let i=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},u.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},u.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let r=t.length,n=0;n1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,a=0;a{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach((r=>{const n=t[r];O[e][r]=st(n),O[e][r].raw=at(n)}))}));var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if("number"==typeof e)return e;if(yt(e))return se;if(ae(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ae(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pt(e);var r=wt.test(e);return r||kt.test(e)?_t(e.slice(2),r?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,r){var n,a,o,l,u,i,s=0,c=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError($t);function d(t){var r=n,o=a;return n=a=void 0,s=t,l=e.apply(o,r)}function g(e){var r=e-i;return void 0===i||r>=t||r<0||h&&e-s>=o}function b(){var e=D();if(g(e))return v(e);u=setTimeout(b,function(e){var r=t-(e-i);return h?Ot(r,o-(e-s)):r}(e))}function v(e){return u=void 0,f&&n?d(e):(n=a=void 0,l)}function p(){var e=D(),r=g(e);if(n=arguments,a=this,i=e,r){if(void 0===u)return function(e){return s=e,u=setTimeout(b,t),c?d(e):l}(i);if(h)return clearTimeout(u),u=setTimeout(b,t),d(i)}return void 0===u&&(u=setTimeout(b,t)),l}return t=le(t)||0,Ct(r)&&(c=!!r.leading,o=(h="maxWait"in r)?Nt(le(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),p.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=i=a=u=void 0},p.flush=function(){return void 0===u?l:v(D())},p}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError(jt);return Tt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Rt(e,t,{leading:n,maxWait:t,trailing:a})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)((({theme:e})=>({fontFamily:e.typography.fonts.base}))),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div((({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius}))),Dt='url(\'data:image/svg+xml;charset=utf-8,\')',ie=({value:e,active:t,onClick:r,style:n,...a})=>{let o=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...a,active:t,onClick:r,style:{...n,backgroundImage:o}})},Kt=M(Ce.Input)((({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base}))),Vt=M($e)((({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color}))),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=null==e?void 0:e.match(At);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.rgb.hsl([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([r,n,a]),colorSpace:"rgb",rgb:e,hsl:`hsla(${l}, ${u}%, ${i}%, ${o})`,hex:`#${w.rgb.hex([r,n,a]).toLowerCase()}`}}if(Ut.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.hsl.rgb([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([r,n,a]),colorSpace:"hsl",rgb:`rgba(${l}, ${u}, ${i}, ${o})`,hsl:e,hex:`#${w.hsl.hex([r,n,a]).toLowerCase()}`}}let r=e.replace("#",""),n=w.keyword.rgb(r)||w.hex.rgb(r),a=w.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:Y.test(e)&&(o=`#${r}`),o.startsWith("#"))t=Y.test(o);else try{w.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:w.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},Qt=(e,t,r)=>{if(!e||null==t||!t.valid)return L[r];if("hex"!==r)return(null==t?void 0:t[r])||L[r];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let n=t.hex.match(Yt);if(!n)return Y.test(t.hex)?t.hex:L.hex;let[a,o,l]=n[1].split("");return`#${a}${a}${o}${o}${l}${l}`},Zt=(e,t)=>{let[r,n]=b.useState(e||""),[a,o]=b.useState((()=>I(r))),[l,u]=b.useState((null==a?void 0:a.colorSpace)||"hex");b.useEffect((()=>{let t=e||"",r=I(t);n(t),o(r),u((null==r?void 0:r.colorSpace)||"hex")}),[e]);let i=b.useMemo((()=>Qt(r,a,l).toLowerCase()),[r,a,l]),s=b.useCallback((e=>{let r=I(e),a=(null==r?void 0:r.value)||e||"";n(a),""===a&&(o(void 0),t(void 0)),r&&(o(r),u(r.colorSpace),t(r.value))}),[t]),c=b.useCallback((()=>{let e=P.indexOf(l)+1;e>=P.length&&(e=0),u(P[e]);let r=(null==a?void 0:a[P[e]])||"";n(r),t(r)}),[a,l,t]);return{value:r,realValue:i,updateValue:s,color:a,colorSpace:l,cycleColorSpace:c}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,r)=>{let[n,a]=b.useState(null!=t&&t.valid?[t]:[]);b.useEffect((()=>{void 0===t&&a([])}),[t]);let o=b.useMemo((()=>(e||[]).map((e=>"string"==typeof e?I(e):e.title?{...I(e.color),keyword:e.title}:I(e.color))).concat(n).filter(Boolean).slice(-27)),[e,n]),l=b.useCallback((e=>{null!=e&&e.valid&&(o.some((t=>W(t[r])===W(e[r])))||a((t=>t.concat(e))))}),[r,o]);return{presets:o,addPreset:l}},tn=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:l=!1})=>{let u=b.useCallback(Ht(r,200),[r]),{value:i,realValue:s,updateValue:c,color:f,colorSpace:d,cycleColorSpace:g}=Zt(t,u),{presets:v,addPreset:p}=en(o,f,d),m=Jt[d];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:l,closeOnOutsideClick:!0,onVisibleChange:()=>p(f),tooltip:h.createElement(qt,null,h.createElement(m,{color:"transparent"===s?"#000000":s,onChange:c,onFocus:n,onBlur:a}),v.length>0&&h.createElement(Wt,null,v.map(((e,t)=>h.createElement(ue,{key:`${e.value}-${t}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:e.keyword||e.value})},h.createElement(ie,{value:e[d],active:f&&W(e[d])===W(f[d]),onClick:()=>c(e.value)}))))))},h.createElement(ie,{value:s,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:e=>c(e.target.value),onFocus:e=>e.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:g}):null)},bn=tn;export{tn as ColorControl,bn as default}; \ No newline at end of file +import{n as M,e as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-BYSxpCNe.js";import{a as h,r as b,g as fe}from"./index-BP8_t0zE.js";import{_ as Oe,i as J,a as Ie}from"./index-EEBIeVPD.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}function K(e){var t=b.useRef(e),r=b.useRef((function(e){t.current&&t.current(e)}));return t.current=e,r.current}var S=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e0:e.buttons>0)&&a.current?o(ne(a.current,e,u.current)):r(!1)},t=function(){return r(!1)};function r(r){var n=i.current,o=V(a.current),l=r?o.addEventListener:o.removeEventListener;l(n?"touchmove":"mousemove",e),l(n?"touchend":"mouseup",t)}return[function(e){var t,n=e.nativeEvent,l=a.current;if(l&&(re(n),t=n,(!i.current||j(t))&&l)){if(j(n)){i.current=!0;var s=n.changedTouches||[];s.length&&(u.current=s[0].identifier)}l.focus(),o(ne(l,n,u.current)),r(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},r]}),[l,o]),c=s[0],f=s[1],d=s[2];return b.useEffect((function(){return d}),[d]),h.createElement("div",$({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:a,onKeyDown:f,tabIndex:0,role:"slider"}))})),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,r=e.left,n=e.top,a=void 0===n?.5:n,o=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return void 0===t&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:y(e.h),s:y(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:y(a/2),a:y(n,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),l=n*(1-r),u=n*(1-(t-o)*r),i=n*(1-(1-t+o)*r),s=o%6;return{r:y(255*[n,u,l,l,i,n][s]),g:y(255*[i,n,n,u,l,l][s]),b:y(255*[l,l,i,n,n,u][s]),a:y(a,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?H(y(255*a)):"";return"#"+H(t)+H(r)+H(n)+o},ge=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),l=o-Math.min(t,r,n),u=l?o===t?(r-n)/l:o===r?2+(n-t)/l:4+(t-r)/l:0;return{h:y(60*(u<0?u+6:u)),s:y(o?l/o*100:0),v:y(o/255*100),a:a}},me=h.memo((function(e){var t=e.hue,r=e.onChange,n=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:n},h.createElement(Z,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:S(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))})),be=h.memo((function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:n},h.createElement(Z,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:S(t.s+100*e.left,0,100),v:S(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))})),ve=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,r){var n=K(r),a=b.useState((function(){return e.toHsva(t)})),o=a[0],l=a[1],u=b.useRef({color:t,hsva:o});b.useEffect((function(){if(!e.equal(t,u.current.color)){var r=e.toHsva(t);u.current={hsva:r,color:t},l(r)}}),[t,e]),b.useEffect((function(){var t;ve(o,u.current.hsva)||e.equal(t=e.fromHsva(o),u.current.color)||(u.current={hsva:o,color:t},n(t))}),[o,e,n]);var i=b.useCallback((function(e){l((function(t){return Object.assign({},t,e)}))}),[]);return[o,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!oe.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',oe.set(t,r);var n=Be();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}}),[])},We=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},r,{a:0}))+", "+q(Object.assign({},r,{a:1}))+")"},o=z(["react-colorful__alpha",t]),l=y(100*r.a);return h.createElement("div",{className:o},h.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),h.createElement(Z,{onMove:function(e){n({a:e.left})},onKey:function(e){n({a:S(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:r.a,color:q(r)})))},we=function(e){var t=e.className,r=e.colorModel,n=e.color,a=void 0===n?r.defaultColor:n,o=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),u=b.useRef(null);xe(u);var i=ye(r,a,o),s=i[0],c=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},l,{ref:u,className:f}),h.createElement(be,{hsva:s,onChange:c}),h.createElement(me,{hue:s.h,onChange:c}),h.createElement(Ke,{hsva:s,onChange:c,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=o-a;let u,i;o===a?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(60*u,360),u<0&&(u+=360);const s=(a+o)/2;return i=o===a?0:s<=.5?l/(o+a):l/(2-o-a),[u,100*i,100*s]},u.rgb.hsv=function(e){let t,r,n,a,o;const l=e[0]/255,u=e[1]/255,i=e[2]/255,s=Math.max(l,u,i),c=s-Math.min(l,u,i),h=function(e){return(s-e)/6/c+.5};return 0===c?(a=0,o=0):(o=c/s,t=h(l),r=h(u),n=h(i),l===s?a=n-r:u===s?a=1/3+t-n:i===s&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*s]},u.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=u.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*o,100*n]},u.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let r,n=1/0;for(const a of Object.keys(F)){const t=Je(e,F[a]);t.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},u.rgb.lab=function(e){const t=u.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(r-n),200*(n-a)]},u.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,o,l;if(0===r)return l=255*n,[l,l,l];a=n<.5?n*(1+r):n+r-n*r;const u=2*n-a,i=[0,0,0];for(let s=0;s<3;s++)o=t+1/3*-(s-1),o<0&&o++,o>1&&o--,l=6*o<1?u+6*(a-u)*o:2*o<1?a:3*o<2?u+(a-u)*(2/3-o)*6:u,i[s]=255*l;return i},u.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;return[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},u.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),u=255*n*(1-r*o),i=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,i,l];case 1:return[u,n,l];case 2:return[l,n,i];case 3:return[l,u,n];case 4:return[i,l,n];case 5:return[n,l,u]}},u.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,l;l=(2-r)*n;const u=(2-r)*a;return o=r*a,o/=u<=1?u:2-u,o=o||0,l/=2,[t,100*o,100*l]},u.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let o;a>1&&(r/=a,n/=a);const l=Math.floor(6*t),u=1-n;o=6*t-l,1&l&&(o=1-o);const i=r+o*(u-r);let s,c,h;switch(l){default:case 6:case 0:s=u,c=i,h=r;break;case 1:s=i,c=u,h=r;break;case 2:s=r,c=u,h=i;break;case 3:s=r,c=i,h=u;break;case 4:s=i,c=r,h=u;break;case 5:s=u,c=r,h=i}return[255*s,255*c,255*h]},u.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},u.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,o,l;return a=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},u.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},u.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const a=r**3,o=t**3,l=n**3;return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},u.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360);return[t,Math.sqrt(r*r+n*n),a]},u.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},u.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let o=null===t?u.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let l=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(l+=60),l},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},u.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},u.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},u.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),l=a-o;let u,i;return u=l<1?o/(1-l):0,i=l<=0?0:a===t?(r-n)/l%6:a===r?2+(n-t)/l:4+(t-r)/l,i/=6,i%=1,[360*i,100*l,100*u]},u.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},u.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const a=[0,0,0],o=t%1*6,l=o%1,u=1-l;let i=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},u.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},u.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let r=t.length,n=0;n1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,a=0;a{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach((r=>{const n=t[r];O[e][r]=st(n),O[e][r].raw=at(n)}))}));var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if("number"==typeof e)return e;if(yt(e))return se;if(ae(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ae(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pt(e);var r=wt.test(e);return r||kt.test(e)?_t(e.slice(2),r?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,r){var n,a,o,l,u,i,s=0,c=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError($t);function d(t){var r=n,o=a;return n=a=void 0,s=t,l=e.apply(o,r)}function g(e){var r=e-i;return void 0===i||r>=t||r<0||h&&e-s>=o}function b(){var e=D();if(g(e))return v(e);u=setTimeout(b,function(e){var r=t-(e-i);return h?Ot(r,o-(e-s)):r}(e))}function v(e){return u=void 0,f&&n?d(e):(n=a=void 0,l)}function p(){var e=D(),r=g(e);if(n=arguments,a=this,i=e,r){if(void 0===u)return function(e){return s=e,u=setTimeout(b,t),c?d(e):l}(i);if(h)return clearTimeout(u),u=setTimeout(b,t),d(i)}return void 0===u&&(u=setTimeout(b,t)),l}return t=le(t)||0,Ct(r)&&(c=!!r.leading,o=(h="maxWait"in r)?Nt(le(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),p.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=i=a=u=void 0},p.flush=function(){return void 0===u?l:v(D())},p}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError(jt);return Tt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Rt(e,t,{leading:n,maxWait:t,trailing:a})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)((({theme:e})=>({fontFamily:e.typography.fonts.base}))),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div((({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius}))),Dt='url(\'data:image/svg+xml;charset=utf-8,\')',ie=({value:e,active:t,onClick:r,style:n,...a})=>{let o=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...a,active:t,onClick:r,style:{...n,backgroundImage:o}})},Kt=M(Ce.Input)((({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base}))),Vt=M($e)((({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color}))),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=null==e?void 0:e.match(At);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.rgb.hsl([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([r,n,a]),colorSpace:"rgb",rgb:e,hsl:`hsla(${l}, ${u}%, ${i}%, ${o})`,hex:`#${w.rgb.hex([r,n,a]).toLowerCase()}`}}if(Ut.test(e)){let[r,n,a,o]=ce(e),[l,u,i]=w.hsl.rgb([r,n,a])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([r,n,a]),colorSpace:"hsl",rgb:`rgba(${l}, ${u}, ${i}, ${o})`,hsl:e,hex:`#${w.hsl.hex([r,n,a]).toLowerCase()}`}}let r=e.replace("#",""),n=w.keyword.rgb(r)||w.hex.rgb(r),a=w.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:Y.test(e)&&(o=`#${r}`),o.startsWith("#"))t=Y.test(o);else try{w.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:w.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},Qt=(e,t,r)=>{if(!e||null==t||!t.valid)return L[r];if("hex"!==r)return(null==t?void 0:t[r])||L[r];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let n=t.hex.match(Yt);if(!n)return Y.test(t.hex)?t.hex:L.hex;let[a,o,l]=n[1].split("");return`#${a}${a}${o}${o}${l}${l}`},Zt=(e,t)=>{let[r,n]=b.useState(e||""),[a,o]=b.useState((()=>I(r))),[l,u]=b.useState((null==a?void 0:a.colorSpace)||"hex");b.useEffect((()=>{let t=e||"",r=I(t);n(t),o(r),u((null==r?void 0:r.colorSpace)||"hex")}),[e]);let i=b.useMemo((()=>Qt(r,a,l).toLowerCase()),[r,a,l]),s=b.useCallback((e=>{let r=I(e),a=(null==r?void 0:r.value)||e||"";n(a),""===a&&(o(void 0),t(void 0)),r&&(o(r),u(r.colorSpace),t(r.value))}),[t]),c=b.useCallback((()=>{let e=P.indexOf(l)+1;e>=P.length&&(e=0),u(P[e]);let r=(null==a?void 0:a[P[e]])||"";n(r),t(r)}),[a,l,t]);return{value:r,realValue:i,updateValue:s,color:a,colorSpace:l,cycleColorSpace:c}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,r)=>{let[n,a]=b.useState(null!=t&&t.valid?[t]:[]);b.useEffect((()=>{void 0===t&&a([])}),[t]);let o=b.useMemo((()=>(e||[]).map((e=>"string"==typeof e?I(e):e.title?{...I(e.color),keyword:e.title}:I(e.color))).concat(n).filter(Boolean).slice(-27)),[e,n]),l=b.useCallback((e=>{null!=e&&e.valid&&(o.some((t=>W(t[r])===W(e[r])))||a((t=>t.concat(e))))}),[r,o]);return{presets:o,addPreset:l}},tn=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:l=!1})=>{let u=b.useCallback(Ht(r,200),[r]),{value:i,realValue:s,updateValue:c,color:f,colorSpace:d,cycleColorSpace:g}=Zt(t,u),{presets:v,addPreset:p}=en(o,f,d),m=Jt[d];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:l,closeOnOutsideClick:!0,onVisibleChange:()=>p(f),tooltip:h.createElement(qt,null,h.createElement(m,{color:"transparent"===s?"#000000":s,onChange:c,onFocus:n,onBlur:a}),v.length>0&&h.createElement(Wt,null,v.map(((e,t)=>h.createElement(ue,{key:`${e.value}-${t}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:e.keyword||e.value})},h.createElement(ie,{value:e[d],active:f&&W(e[d])===W(f[d]),onClick:()=>c(e.value)}))))))},h.createElement(ie,{value:s,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:e=>c(e.target.value),onFocus:e=>e.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:g}):null)},bn=tn;export{tn as ColorControl,bn as default}; \ No newline at end of file diff --git a/storybook-static/assets/CommentItem-DIZh1yYT.js b/storybook-static/assets/CommentItem-DZgP41nA.js similarity index 65% rename from storybook-static/assets/CommentItem-DIZh1yYT.js rename to storybook-static/assets/CommentItem-DZgP41nA.js index cea2d1488b..8d8bee0225 100644 --- a/storybook-static/assets/CommentItem-DIZh1yYT.js +++ b/storybook-static/assets/CommentItem-DZgP41nA.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as o}from"./index-BP8_t0zE.js";import{B as j}from"./Button-B7QBvkxh.js";import{C as O}from"./ConfirmModal-DGUUT3uo.js";import{D as $}from"./DisplayDate-8pUkm3CJ.js";import{E as U}from"./EditComment-DY_6Q1TM.js";import{L as F}from"./LinkifyText-CTcW0PSE.js";import{M as L}from"./Modal-CNp0gEVS.js";import{U as P}from"./Username-jnUEp1hu.js";import{F as t,a as C,T as c,g as G}from"./theme-ui-components.esm-DCiJ1mMX.js";const z=""+new URL("default_member-BrNDumk0.svg",import.meta.url).href,W=129,J="The original comment got deleted",E=a=>{const n=o.createRef(),[r,i]=o.useState(!1),[s,m]=o.useState(!1),[d,l]=o.useState(0),[p,u]=o.useState(!1),{comment:x,handleDelete:h,handleEditRequest:f,handleEdit:y,isReply:g}=a,{text:w,creatorName:E,creatorCountry:b,creatorImage:D,isUserVerified:v,isUserSupporter:S,isEditable:I,_created:B,_edited:k,_id:R,_deleted:T}=x,_={userName:E,countryCode:b,isVerified:!!v,isSupporter:!!S},q=p?"max-content":"128px",V=g?"ReplyItem":"CommentItem";o.useEffect((()=>{n.current&&l(n.current.scrollHeight)}),[n]);return e.jsxs(t,{id:`comment:${R}`,"data-cy":I?`Own${V}`:V,sx:{flexDirection:"column"},children:[e.jsxs(t,{sx:{gap:2},children:[T&&e.jsx(C,{sx:{marginBottom:2},"data-cy":"deletedComment",children:e.jsxs(c,{sx:{color:"grey"},children:["[",J,"]"]})}),!T&&e.jsxs(t,{sx:{gap:2,flexGrow:1},children:[e.jsx(C,{"data-cy":"commentAvatar","data-testid":"commentAvatar",children:e.jsx(G,{"data-cy":"commentAvatarImage",src:D??z,sx:{objectFit:"cover",width:["30px","50px"],height:["30px","50px"]},alt:E?`Avatar of ${E}`:"Avatar of comment author"})}),e.jsxs(t,{sx:{flexDirection:"column",flex:1},children:[e.jsxs(t,{sx:{flexWrap:"wrap",justifyContent:"space-between",flexDirection:["column","row"],gap:2},children:[e.jsxs(t,{sx:{alignItems:"baseline",gap:2,flexDirection:"row"},children:[e.jsx(P,{user:_}),e.jsxs(c,{sx:{fontSize:1,color:"darkGrey"},children:[k&&"Edited ",e.jsx($,{date:k||B})]})]}),I&&e.jsxs(t,{sx:{alignItems:"flex-end",gap:2,paddingBottom:2},children:[e.jsx(j,{type:"button","data-cy":`${V}: edit button`,variant:"subtle",small:!0,icon:"edit",onClick:()=>(e=>{if(f)return f(e),i(!0)})(R),children:"edit"}),e.jsx(j,{type:"button","data-cy":`${V}: delete button`,variant:"subtle",small:!0,icon:"delete",onClick:()=>m(!0),children:"delete"})]})]}),e.jsx(c,{"data-cy":"comment-text","data-testid":"commentText",sx:{fontFamily:"body",lineHeight:1.3,maxHeight:q,overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word",marginTop:1,marginBottom:2},ref:n,children:e.jsx(F,{children:w})}),d>W&&e.jsx("a",{onClick:()=>{u(!p)},style:{color:"gray",cursor:"pointer"},children:p?"Show less":"Show more"})]})]})]}),e.jsx(L,{width:600,isOpen:r,children:e.jsx(U,{comment:w,handleSubmit:async e=>{await y(R,e),i(!1)},handleCancel:()=>i(!1),isReply:g})}),e.jsx(O,{isOpen:s,message:"Are you sure you want to delete this comment?",confirmButtonText:"Delete",handleCancel:()=>m(!1),handleConfirm:async()=>{h&&await h(R),m(!1)}})]})};try{E.displayName="CommentItem",E.__docgenInfo={description:"",displayName:"CommentItem",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"IComment"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!1,type:{name:"((commentId: string) => Promise)"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(commentId: string, newCommentText: string) => void"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!1,type:{name:"((commentId: string) => Promise)"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!0,type:{name:"boolean"}}}}}catch{}export{E as C}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as o}from"./index-BP8_t0zE.js";import{B as j}from"./Button-1qf_V-Zv.js";import{C as O}from"./ConfirmModal-BcXyrr5V.js";import{D as $}from"./DisplayDate-8pUkm3CJ.js";import{E as U}from"./EditComment-CS1dAl1Z.js";import{L as F}from"./LinkifyText-CTcW0PSE.js";import{M as L}from"./Modal-CNp0gEVS.js";import{U as P}from"./Username-jnUEp1hu.js";import{F as t,a as C,T as c,g as G}from"./theme-ui-components.esm-DCiJ1mMX.js";const z=""+new URL("default_member-BrNDumk0.svg",import.meta.url).href,W=129,J="The original comment got deleted",E=a=>{const n=o.createRef(),[r,i]=o.useState(!1),[s,m]=o.useState(!1),[d,l]=o.useState(0),[p,u]=o.useState(!1),{comment:x,handleDelete:h,handleEditRequest:f,handleEdit:y,isReply:g}=a,{text:w,creatorName:E,creatorCountry:b,creatorImage:S,isUserVerified:v,isUserSupporter:D,isEditable:I,_created:B,_edited:R,_id:V,_deleted:k}=x,q={userName:E,countryCode:b,isVerified:!!v,isSupporter:!!D},_=p?"max-content":"128px",T=g?"ReplyItem":"CommentItem";o.useEffect((()=>{n.current&&l(n.current.scrollHeight)}),[n]);return e.jsxs(t,{id:`comment:${V}`,"data-cy":I?`Own${T}`:T,sx:{flexDirection:"column"},children:[e.jsxs(t,{sx:{gap:2},children:[k&&e.jsx(C,{sx:{marginBottom:2},"data-cy":"deletedComment",children:e.jsxs(c,{sx:{color:"grey"},children:["[",J,"]"]})}),!k&&e.jsxs(t,{sx:{gap:2,flexGrow:1},children:[e.jsx(C,{"data-cy":"commentAvatar","data-testid":"commentAvatar",children:e.jsx(G,{"data-cy":"commentAvatarImage",src:S??z,sx:{objectFit:"cover",width:["30px","50px"],height:["30px","50px"]},alt:E?`Avatar of ${E}`:"Avatar of comment author"})}),e.jsxs(t,{sx:{flexDirection:"column",flex:1},children:[e.jsxs(t,{sx:{flexWrap:"wrap",justifyContent:"space-between",flexDirection:["column","row"],gap:2},children:[e.jsxs(t,{sx:{alignItems:"baseline",gap:2,flexDirection:"row"},children:[e.jsx(P,{user:q}),e.jsxs(c,{sx:{fontSize:1,color:"darkGrey"},children:[R&&"Edited ",e.jsx($,{date:R||B})]})]}),I&&e.jsxs(t,{sx:{alignItems:"flex-end",gap:2,paddingBottom:2},children:[e.jsx(j,{type:"button","data-cy":`${T}: edit button`,variant:"subtle",small:!0,icon:"edit",onClick:()=>(e=>{if(f)return f(e),i(!0)})(V),children:"edit"}),e.jsx(j,{type:"button","data-cy":`${T}: delete button`,variant:"subtle",small:!0,icon:"delete",onClick:()=>m(!0),children:"delete"})]})]}),e.jsx(c,{"data-cy":"comment-text","data-testid":"commentText",sx:{fontFamily:"body",lineHeight:1.3,maxHeight:_,overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word",marginTop:1,marginBottom:2},ref:n,children:e.jsx(F,{children:w})}),d>W&&e.jsx("a",{onClick:()=>{u(!p)},style:{color:"gray",cursor:"pointer"},children:p?"Show less":"Show more"})]})]})]}),e.jsx(L,{width:600,isOpen:r,children:e.jsx(U,{comment:w,handleSubmit:async e=>{await y(V,e),i(!1)},handleCancel:()=>i(!1),isReply:g})}),e.jsx(O,{isOpen:s,message:"Are you sure you want to delete this comment?",confirmButtonText:"Delete",handleCancel:()=>m(!1),handleConfirm:async()=>{h&&await h(V),m(!1)}})]})};try{E.displayName="CommentItem",E.__docgenInfo={description:"",displayName:"CommentItem",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"IComment"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!1,type:{name:"((commentId: string) => Promise)"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(commentId: string, newCommentText: string) => void"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!1,type:{name:"((commentId: string) => Promise)"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!0,type:{name:"boolean"}}}}}catch{}export{E as C}; \ No newline at end of file diff --git a/storybook-static/assets/CommentItem.stories-BchdvzaI.js b/storybook-static/assets/CommentItem.stories-C9dYD4oG.js similarity index 97% rename from storybook-static/assets/CommentItem.stories-BchdvzaI.js rename to storybook-static/assets/CommentItem.stories-C9dYD4oG.js index d76f5a799d..f3625e2c75 100644 --- a/storybook-static/assets/CommentItem.stories-BchdvzaI.js +++ b/storybook-static/assets/CommentItem.stories-C9dYD4oG.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{f as s}from"./utils-BRZF2j4e.js";import{C as t}from"./CommentItem-DIZh1yYT.js";import"./index-BP8_t0zE.js";import"./index-D_kXk1yT.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ConfirmModal-DGUUT3uo.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-8pUkm3CJ.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DY_6Q1TM.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";import"./LinkifyText-CTcW0PSE.js";import"./ExternalLink-CHmx7fZ7.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BXxqJQdV.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";const pe={title:"Discussions/CommentItem",component:t},a=()=>{},u=()=>{const e=s({creatorImage:void 0});return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},r=()=>{const e=s();return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},m=()=>{const e=s({isEditable:!0});return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},n=()=>{const e=s({_edited:(new Date).toISOString()});return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},o=()=>{const e=s({text:"Ut dignissim, odio a cursus pretium, erat ex dictum quam, a eleifend augue mauris vel metus. Suspendisse pellentesque, elit efficitur rutrum maximus, arcu enim congue ipsum, vel aliquam ipsum urna quis tellus. Mauris at imperdiet nisi. Integer at neque ex. Nullam vel ipsum sodales, porttitor nulla vitae, tincidunt est. Pellentesque vitae lectus arcu. Integer dapibus rutrum facilisis. Nullam tincidunt quam at arcu interdum, vitae egestas libero vehicula. Morbi metus tortor, dapibus id finibus ac, egestas quis leo. Phasellus scelerisque suscipit mauris sed rhoncus. In quis ultricies ipsum. Integer vitae iaculis risus, sit amet elementum augue. Pellentesque vitae sagittis erat, eget consectetur lorem.\n\nUt pharetra molestie quam id dictum. In molestie, arcu sit amet faucibus pulvinar, eros erat egestas leo, at molestie nunc velit a arcu. Aliquam erat volutpat. Vivamus vehicula mi sit amet nibh auctor efficitur. Duis fermentum sem et nibh facilisis, ut tincidunt sem commodo. Nullam ornare ex a elementum accumsan. Etiam a neque ut lacus suscipit blandit. Maecenas id tortor velit.\n\nInterdum et malesuada fames ac ante ipsum primis in faucibus. Nam ut commodo tellus. Maecenas at leo metus. Vivamus ullamcorper ex purus, volutpat auctor nunc lobortis a. Integer sit amet ornare nisi, sed ultrices enim. Pellentesque ut aliquam urna, eu fringilla ante. Nullam dui nibh, feugiat id vestibulum nec, efficitur a lorem. In vitae pellentesque tellus. Pellentesque sed odio iaculis, imperdiet turpis at, aliquam ex. Praesent iaculis bibendum nibh, vel egestas turpis ultrices ac. Praesent tincidunt libero sed gravida ornare. Aliquam vehicula risus ut molestie suscipit. Nunc erat odio, venenatis nec posuere in, placerat eget massa. Sed in ultrices ex, vel egestas quam. Integer lectus magna, ornare at nisl sed, convallis euismod enim. Cras pretium commodo arcu non bibendum.\n\nNullam dictum lectus felis. Duis vitae lacus vitae nisl aliquet faucibus. Integer neque lacus, dignissim sed mi et, dignissim luctus metus. Cras sollicitudin vestibulum leo, ac ultrices sapien bibendum ac. Phasellus lobortis aliquam libero eu volutpat. Donec vitae rutrum tellus. Fusce vel ante ipsum. Suspendisse mollis tempus porta. Sed a orci tempor, rhoncus tortor eu, sodales justo."});return i.jsx(t,{comment:e,handleEdit:a,isReply:!0})},l=()=>{const e=s({text:"Ut dignissim, odio a cursus pretium. https://example.com"});return i.jsx(t,{comment:e,handleEdit:a,isReply:!0})};var c,d,p,v,g,f,b,q,h,x,I,E,C,S,P,N,R,y;u.parameters={...u.parameters,docs:{...null==(c=u.parameters)?void 0:c.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n creatorImage: undefined\n });\n return ;\n}",...null==(p=null==(d=u.parameters)?void 0:d.docs)?void 0:p.source}}},r.parameters={...r.parameters,docs:{...null==(v=r.parameters)?void 0:v.docs,source:{originalSource:"() => {\n const comment = fakeComment();\n return ;\n}",...null==(f=null==(g=r.parameters)?void 0:g.docs)?void 0:f.source}}},m.parameters={...m.parameters,docs:{...null==(b=m.parameters)?void 0:b.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n isEditable: true\n });\n return ;\n}",...null==(h=null==(q=m.parameters)?void 0:q.docs)?void 0:h.source}}},n.parameters={...n.parameters,docs:{...null==(x=n.parameters)?void 0:x.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n _edited: new Date().toISOString()\n });\n return ;\n}",...null==(E=null==(I=n.parameters)?void 0:I.docs)?void 0:E.source}}},o.parameters={...o.parameters,docs:{...null==(C=o.parameters)?void 0:C.docs,source:{originalSource:"() => {\n const text = `Ut dignissim, odio a cursus pretium, erat ex dictum quam, a eleifend augue mauris vel metus. Suspendisse pellentesque, elit efficitur rutrum maximus, arcu enim congue ipsum, vel aliquam ipsum urna quis tellus. Mauris at imperdiet nisi. Integer at neque ex. Nullam vel ipsum sodales, porttitor nulla vitae, tincidunt est. Pellentesque vitae lectus arcu. Integer dapibus rutrum facilisis. Nullam tincidunt quam at arcu interdum, vitae egestas libero vehicula. Morbi metus tortor, dapibus id finibus ac, egestas quis leo. Phasellus scelerisque suscipit mauris sed rhoncus. In quis ultricies ipsum. Integer vitae iaculis risus, sit amet elementum augue. Pellentesque vitae sagittis erat, eget consectetur lorem.\\n\\nUt pharetra molestie quam id dictum. In molestie, arcu sit amet faucibus pulvinar, eros erat egestas leo, at molestie nunc velit a arcu. Aliquam erat volutpat. Vivamus vehicula mi sit amet nibh auctor efficitur. Duis fermentum sem et nibh facilisis, ut tincidunt sem commodo. Nullam ornare ex a elementum accumsan. Etiam a neque ut lacus suscipit blandit. Maecenas id tortor velit.\\n\\nInterdum et malesuada fames ac ante ipsum primis in faucibus. Nam ut commodo tellus. Maecenas at leo metus. Vivamus ullamcorper ex purus, volutpat auctor nunc lobortis a. Integer sit amet ornare nisi, sed ultrices enim. Pellentesque ut aliquam urna, eu fringilla ante. Nullam dui nibh, feugiat id vestibulum nec, efficitur a lorem. In vitae pellentesque tellus. Pellentesque sed odio iaculis, imperdiet turpis at, aliquam ex. Praesent iaculis bibendum nibh, vel egestas turpis ultrices ac. Praesent tincidunt libero sed gravida ornare. Aliquam vehicula risus ut molestie suscipit. Nunc erat odio, venenatis nec posuere in, placerat eget massa. Sed in ultrices ex, vel egestas quam. Integer lectus magna, ornare at nisl sed, convallis euismod enim. Cras pretium commodo arcu non bibendum.\\n\\nNullam dictum lectus felis. Duis vitae lacus vitae nisl aliquet faucibus. Integer neque lacus, dignissim sed mi et, dignissim luctus metus. Cras sollicitudin vestibulum leo, ac ultrices sapien bibendum ac. Phasellus lobortis aliquam libero eu volutpat. Donec vitae rutrum tellus. Fusce vel ante ipsum. Suspendisse mollis tempus porta. Sed a orci tempor, rhoncus tortor eu, sodales justo.`;\n const comment = fakeComment({\n text\n });\n return ;\n}",...null==(P=null==(S=o.parameters)?void 0:S.docs)?void 0:P.source}}},l.parameters={...l.parameters,docs:{...null==(N=l.parameters)?void 0:N.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n text: `Ut dignissim, odio a cursus pretium. https://example.com`\n });\n return ;\n}",...null==(y=null==(R=l.parameters)?void 0:R.docs)?void 0:y.source}}};const ve=["Default","WithoutAvatar","Editable","Edited","LongText","ShortTextWithLink"];export{u as Default,m as Editable,n as Edited,o as LongText,l as ShortTextWithLink,r as WithoutAvatar,ve as __namedExportsOrder,pe as default}; \ No newline at end of file +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{f as s}from"./utils-BRZF2j4e.js";import{C as t}from"./CommentItem-DZgP41nA.js";import"./index-BP8_t0zE.js";import"./index-D_kXk1yT.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ConfirmModal-BcXyrr5V.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-8pUkm3CJ.js";import"./typeof-QjJsDpFa.js";import"./EditComment-CS1dAl1Z.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";import"./LinkifyText-CTcW0PSE.js";import"./ExternalLink-CHmx7fZ7.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BXxqJQdV.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";const pe={title:"Discussions/CommentItem",component:t},a=()=>{},u=()=>{const e=s({creatorImage:void 0});return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},r=()=>{const e=s();return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},m=()=>{const e=s({isEditable:!0});return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},n=()=>{const e=s({_edited:(new Date).toISOString()});return i.jsx(t,{comment:e,handleEdit:a,isReply:!1})},o=()=>{const e=s({text:"Ut dignissim, odio a cursus pretium, erat ex dictum quam, a eleifend augue mauris vel metus. Suspendisse pellentesque, elit efficitur rutrum maximus, arcu enim congue ipsum, vel aliquam ipsum urna quis tellus. Mauris at imperdiet nisi. Integer at neque ex. Nullam vel ipsum sodales, porttitor nulla vitae, tincidunt est. Pellentesque vitae lectus arcu. Integer dapibus rutrum facilisis. Nullam tincidunt quam at arcu interdum, vitae egestas libero vehicula. Morbi metus tortor, dapibus id finibus ac, egestas quis leo. Phasellus scelerisque suscipit mauris sed rhoncus. In quis ultricies ipsum. Integer vitae iaculis risus, sit amet elementum augue. Pellentesque vitae sagittis erat, eget consectetur lorem.\n\nUt pharetra molestie quam id dictum. In molestie, arcu sit amet faucibus pulvinar, eros erat egestas leo, at molestie nunc velit a arcu. Aliquam erat volutpat. Vivamus vehicula mi sit amet nibh auctor efficitur. Duis fermentum sem et nibh facilisis, ut tincidunt sem commodo. Nullam ornare ex a elementum accumsan. Etiam a neque ut lacus suscipit blandit. Maecenas id tortor velit.\n\nInterdum et malesuada fames ac ante ipsum primis in faucibus. Nam ut commodo tellus. Maecenas at leo metus. Vivamus ullamcorper ex purus, volutpat auctor nunc lobortis a. Integer sit amet ornare nisi, sed ultrices enim. Pellentesque ut aliquam urna, eu fringilla ante. Nullam dui nibh, feugiat id vestibulum nec, efficitur a lorem. In vitae pellentesque tellus. Pellentesque sed odio iaculis, imperdiet turpis at, aliquam ex. Praesent iaculis bibendum nibh, vel egestas turpis ultrices ac. Praesent tincidunt libero sed gravida ornare. Aliquam vehicula risus ut molestie suscipit. Nunc erat odio, venenatis nec posuere in, placerat eget massa. Sed in ultrices ex, vel egestas quam. Integer lectus magna, ornare at nisl sed, convallis euismod enim. Cras pretium commodo arcu non bibendum.\n\nNullam dictum lectus felis. Duis vitae lacus vitae nisl aliquet faucibus. Integer neque lacus, dignissim sed mi et, dignissim luctus metus. Cras sollicitudin vestibulum leo, ac ultrices sapien bibendum ac. Phasellus lobortis aliquam libero eu volutpat. Donec vitae rutrum tellus. Fusce vel ante ipsum. Suspendisse mollis tempus porta. Sed a orci tempor, rhoncus tortor eu, sodales justo."});return i.jsx(t,{comment:e,handleEdit:a,isReply:!0})},l=()=>{const e=s({text:"Ut dignissim, odio a cursus pretium. https://example.com"});return i.jsx(t,{comment:e,handleEdit:a,isReply:!0})};var c,d,p,v,g,f,b,q,h,x,I,E,C,S,P,N,R,y;u.parameters={...u.parameters,docs:{...null==(c=u.parameters)?void 0:c.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n creatorImage: undefined\n });\n return ;\n}",...null==(p=null==(d=u.parameters)?void 0:d.docs)?void 0:p.source}}},r.parameters={...r.parameters,docs:{...null==(v=r.parameters)?void 0:v.docs,source:{originalSource:"() => {\n const comment = fakeComment();\n return ;\n}",...null==(f=null==(g=r.parameters)?void 0:g.docs)?void 0:f.source}}},m.parameters={...m.parameters,docs:{...null==(b=m.parameters)?void 0:b.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n isEditable: true\n });\n return ;\n}",...null==(h=null==(q=m.parameters)?void 0:q.docs)?void 0:h.source}}},n.parameters={...n.parameters,docs:{...null==(x=n.parameters)?void 0:x.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n _edited: new Date().toISOString()\n });\n return ;\n}",...null==(E=null==(I=n.parameters)?void 0:I.docs)?void 0:E.source}}},o.parameters={...o.parameters,docs:{...null==(C=o.parameters)?void 0:C.docs,source:{originalSource:"() => {\n const text = `Ut dignissim, odio a cursus pretium, erat ex dictum quam, a eleifend augue mauris vel metus. Suspendisse pellentesque, elit efficitur rutrum maximus, arcu enim congue ipsum, vel aliquam ipsum urna quis tellus. Mauris at imperdiet nisi. Integer at neque ex. Nullam vel ipsum sodales, porttitor nulla vitae, tincidunt est. Pellentesque vitae lectus arcu. Integer dapibus rutrum facilisis. Nullam tincidunt quam at arcu interdum, vitae egestas libero vehicula. Morbi metus tortor, dapibus id finibus ac, egestas quis leo. Phasellus scelerisque suscipit mauris sed rhoncus. In quis ultricies ipsum. Integer vitae iaculis risus, sit amet elementum augue. Pellentesque vitae sagittis erat, eget consectetur lorem.\\n\\nUt pharetra molestie quam id dictum. In molestie, arcu sit amet faucibus pulvinar, eros erat egestas leo, at molestie nunc velit a arcu. Aliquam erat volutpat. Vivamus vehicula mi sit amet nibh auctor efficitur. Duis fermentum sem et nibh facilisis, ut tincidunt sem commodo. Nullam ornare ex a elementum accumsan. Etiam a neque ut lacus suscipit blandit. Maecenas id tortor velit.\\n\\nInterdum et malesuada fames ac ante ipsum primis in faucibus. Nam ut commodo tellus. Maecenas at leo metus. Vivamus ullamcorper ex purus, volutpat auctor nunc lobortis a. Integer sit amet ornare nisi, sed ultrices enim. Pellentesque ut aliquam urna, eu fringilla ante. Nullam dui nibh, feugiat id vestibulum nec, efficitur a lorem. In vitae pellentesque tellus. Pellentesque sed odio iaculis, imperdiet turpis at, aliquam ex. Praesent iaculis bibendum nibh, vel egestas turpis ultrices ac. Praesent tincidunt libero sed gravida ornare. Aliquam vehicula risus ut molestie suscipit. Nunc erat odio, venenatis nec posuere in, placerat eget massa. Sed in ultrices ex, vel egestas quam. Integer lectus magna, ornare at nisl sed, convallis euismod enim. Cras pretium commodo arcu non bibendum.\\n\\nNullam dictum lectus felis. Duis vitae lacus vitae nisl aliquet faucibus. Integer neque lacus, dignissim sed mi et, dignissim luctus metus. Cras sollicitudin vestibulum leo, ac ultrices sapien bibendum ac. Phasellus lobortis aliquam libero eu volutpat. Donec vitae rutrum tellus. Fusce vel ante ipsum. Suspendisse mollis tempus porta. Sed a orci tempor, rhoncus tortor eu, sodales justo.`;\n const comment = fakeComment({\n text\n });\n return ;\n}",...null==(P=null==(S=o.parameters)?void 0:S.docs)?void 0:P.source}}},l.parameters={...l.parameters,docs:{...null==(N=l.parameters)?void 0:N.docs,source:{originalSource:"() => {\n const comment = fakeComment({\n text: `Ut dignissim, odio a cursus pretium. https://example.com`\n });\n return ;\n}",...null==(y=null==(R=l.parameters)?void 0:R.docs)?void 0:y.source}}};const ve=["Default","WithoutAvatar","Editable","Edited","LongText","ShortTextWithLink"];export{u as Default,m as Editable,n as Edited,o as LongText,l as ShortTextWithLink,r as WithoutAvatar,ve as __namedExportsOrder,pe as default}; \ No newline at end of file diff --git a/storybook-static/assets/CommentList-Al_JOVpj.js b/storybook-static/assets/CommentList-DhPqgHRE.js similarity index 84% rename from storybook-static/assets/CommentList-Al_JOVpj.js rename to storybook-static/assets/CommentList-DhPqgHRE.js index 42380629e8..6e4642df47 100644 --- a/storybook-static/assets/CommentList-Al_JOVpj.js +++ b/storybook-static/assets/CommentList-DhPqgHRE.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as q}from"./index-BP8_t0zE.js";import{B as E}from"./Button-B7QBvkxh.js";import{B as j}from"./ButtonShowReplies-CiHAfYgx.js";import{C as L}from"./CommentItem-DIZh1yYT.js";import{C as v}from"./CreateReply-ByN4QqWr.js";import{n as S}from"./DiscussionTitle-Dhry4tok.js";import{I as w}from"./Icon-BoVZOGVD.js";import{F as R,a as _}from"./theme-ui-components.esm-DCiJ1mMX.js";const V=10,I=n=>{const[t,i]=q.useState(!1),{comment:l,handleDelete:o,handleEditRequest:s,handleEdit:d,supportReplies:a,isLoggedIn:m,isReplies:r,maxLength:u,onSubmitReply:p}=n,{_id:c,_deleted:h,replies:g}=l,y=()=>e.jsx(j,{isShowReplies:t,replies:g||[],setIsShowReplies:()=>i(!t)});return!h||g&&0!==S(g)?e.jsxs(_,{sx:{backgroundColor:"white",borderRadius:1,padding:r?0:2},children:[e.jsx(L,{comment:l,handleEditRequest:s,handleDelete:o,handleEdit:d,isReply:!!r}),a&&!t&&y(),a&&t?e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"row"},children:[g&&e.jsx(_,{sx:{paddingTop:1,paddingRight:2},children:e.jsx(w,{glyph:"arrow-curved-bottom-right"})}),e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"column",flex:1},children:[e.jsx(b,{comments:g||[],handleDelete:o,handleEdit:d,handleEditRequest:s,isLoggedIn:m,isReplies:!0,maxLength:u,supportReplies:!1}),!h&&(()=>{if(p)return e.jsx(v,{commentId:c,isLoggedIn:m,maxLength:u,onSubmit:p})})(),y()]})]}):null]}):null},b=n=>{const{comments:t,handleDelete:i,handleEdit:l,handleEditRequest:o,highlightedCommentId:s,isLoggedIn:d,isReplies:a,maxLength:m,onMoreComments:r,onSubmitReply:u,supportReplies:p=!1}=n,[c,h]=q.useState(1),g=c*V;return q.useEffect((()=>{if(!s)return;const e=t.findIndex((e=>s.includes(e._id)));e>=0&&(h(Math.floor(e/V)+1),(e=>{setTimeout((()=>{var n;null==(n=document.getElementById(`comment:${e}`))||n.scrollIntoView({behavior:"smooth",block:"start"})}),0)})(s))}),[s,t]),e.jsxs(R,{sx:{gap:2,flexDirection:"column"},children:[t&&t.slice(0,g).map((n=>e.jsx(_,{"data-testid":"CommentList: item",sx:{border:""+(s===n._id?"2px dashed black":"none"),borderRadius:1},children:e.jsx(I,{comment:n,handleEditRequest:o,handleDelete:i,handleEdit:l,isLoggedIn:d,isReplies:a,maxLength:m,onSubmitReply:u,supportReplies:p})},n._id))),t&&t.length>g&&e.jsx(R,{children:e.jsx(E,{type:"button",sx:{margin:"0 auto"},variant:"outline","data-cy":"show-more-comments",onClick:()=>{r&&r(),h(c+1)},children:"show more comments"})})]})};try{I.displayName="CommentContainer",I.__docgenInfo={description:"",displayName:"CommentContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"IComment"}},handleCommentReply:{defaultValue:null,description:"",name:"handleCommentReply",required:!1,type:{name:"((commentId: string | null) => void)"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!0,type:{name:"boolean"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}try{b.displayName="CommentList",b.__docgenInfo={description:"",displayName:"CommentList",props:{supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!1,type:{name:"(() => void)"}},setCommentBeingRepliedTo:{defaultValue:null,description:"",name:"setCommentBeingRepliedTo",required:!1,type:{name:"((commentId: string | null) => void)"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}export{b as C}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as q}from"./index-BP8_t0zE.js";import{B as E}from"./Button-1qf_V-Zv.js";import{B as j}from"./ButtonShowReplies-nddYmg0q.js";import{C as L}from"./CommentItem-DZgP41nA.js";import{C as v}from"./CreateReply-2Azc7a5m.js";import{n as S}from"./DiscussionTitle-Dhry4tok.js";import{I as w}from"./Icon-DVJa_328.js";import{F as R,a as _}from"./theme-ui-components.esm-DCiJ1mMX.js";const V=10,I=n=>{const[t,i]=q.useState(!1),{comment:l,handleDelete:o,handleEditRequest:d,handleEdit:s,supportReplies:a,isLoggedIn:m,isReplies:r,maxLength:u,onSubmitReply:p}=n,{_id:c,_deleted:h,replies:g}=l,y=()=>e.jsx(j,{isShowReplies:t,replies:g||[],setIsShowReplies:()=>i(!t)});return!h||g&&0!==S(g)?e.jsxs(_,{sx:{backgroundColor:"white",borderRadius:1,padding:r?0:2},children:[e.jsx(L,{comment:l,handleEditRequest:d,handleDelete:o,handleEdit:s,isReply:!!r}),a&&!t&&y(),a&&t?e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"row"},children:[g&&e.jsx(_,{sx:{paddingTop:1,paddingRight:2},children:e.jsx(w,{glyph:"arrow-curved-bottom-right"})}),e.jsxs(R,{sx:{alignItems:"stretch",flexDirection:"column",flex:1},children:[e.jsx(b,{comments:g||[],handleDelete:o,handleEdit:s,handleEditRequest:d,isLoggedIn:m,isReplies:!0,maxLength:u,supportReplies:!1}),!h&&(()=>{if(p)return e.jsx(v,{commentId:c,isLoggedIn:m,maxLength:u,onSubmit:p})})(),y()]})]}):null]}):null},b=n=>{const{comments:t,handleDelete:i,handleEdit:l,handleEditRequest:o,highlightedCommentId:d,isLoggedIn:s,isReplies:a,maxLength:m,onMoreComments:r,onSubmitReply:u,supportReplies:p=!1}=n,[c,h]=q.useState(1),g=c*V;return q.useEffect((()=>{if(!d)return;const e=t.findIndex((e=>d.includes(e._id)));e>=0&&(h(Math.floor(e/V)+1),(e=>{setTimeout((()=>{var n;null==(n=document.getElementById(`comment:${e}`))||n.scrollIntoView({behavior:"smooth",block:"start"})}),0)})(d))}),[d,t]),e.jsxs(R,{sx:{gap:2,flexDirection:"column"},children:[t&&t.slice(0,g).map((n=>e.jsx(_,{"data-testid":"CommentList: item",sx:{border:""+(d===n._id?"2px dashed black":"none"),borderRadius:1},children:e.jsx(I,{comment:n,handleEditRequest:o,handleDelete:i,handleEdit:l,isLoggedIn:s,isReplies:a,maxLength:m,onSubmitReply:u,supportReplies:p})},n._id))),t&&t.length>g&&e.jsx(R,{children:e.jsx(E,{type:"button",sx:{margin:"0 auto"},variant:"outline","data-cy":"show-more-comments",onClick:()=>{r&&r(),h(c+1)},children:"show more comments"})})]})};try{I.displayName="CommentContainer",I.__docgenInfo={description:"",displayName:"CommentContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"IComment"}},handleCommentReply:{defaultValue:null,description:"",name:"handleCommentReply",required:!1,type:{name:"((commentId: string | null) => void)"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!0,type:{name:"boolean"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}try{b.displayName="CommentList",b.__docgenInfo={description:"",displayName:"CommentList",props:{supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!1,type:{name:"(() => void)"}},setCommentBeingRepliedTo:{defaultValue:null,description:"",name:"setCommentBeingRepliedTo",required:!1,type:{name:"((commentId: string | null) => void)"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isReplies:{defaultValue:null,description:"",name:"isReplies",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!1,type:{name:"((_id: string, reply: string) => Promise)"}}}}}catch{}export{b as C}; \ No newline at end of file diff --git a/storybook-static/assets/CommentList.stories-dpJrRWR4.js b/storybook-static/assets/CommentList.stories-C5Ot4zWr.js similarity index 92% rename from storybook-static/assets/CommentList.stories-dpJrRWR4.js rename to storybook-static/assets/CommentList.stories-C5Ot4zWr.js index e8af47ffbd..e17c993c2c 100644 --- a/storybook-static/assets/CommentList.stories-dpJrRWR4.js +++ b/storybook-static/assets/CommentList.stories-C5Ot4zWr.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{c as p,f as e}from"./utils-BRZF2j4e.js";import{C as o}from"./CommentList-Al_JOVpj.js";import"./index-BP8_t0zE.js";import"./index-D_kXk1yT.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonShowReplies-CiHAfYgx.js";import"./DiscussionTitle-Dhry4tok.js";import"./CommentItem-DIZh1yYT.js";import"./ConfirmModal-DGUUT3uo.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-8pUkm3CJ.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DY_6Q1TM.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";import"./LinkifyText-CTcW0PSE.js";import"./ExternalLink-CHmx7fZ7.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BXxqJQdV.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./CreateReply-ByN4QqWr.js";import"./CreateComment-ButSCGtD.js";import"./MemberBadge-DaB6gu8F.js";const Pe={title:"Discussions/CommentList",component:o},m=()=>s.jsx(o,{comments:p(2),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),r=()=>s.jsx(o,{comments:p(20),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),i=()=>{const t=[e({replies:[e(),e()]}),e({creatorImage:"https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840",replies:[e({creatorImage:"https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4"})],_deleted:!0}),e({replies:[e()]}),e()];return s.jsx(o,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>Promise.resolve(),onSubmitReply:()=>Promise.resolve()})},n=()=>{const t=[e({replies:[e(),e()]}),e(),e()];return s.jsx(o,{supportReplies:!0,comments:t,isLoggedIn:!0,isReplies:!1,maxLength:800,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},a=()=>{const t=[e({replies:[e({replies:[e()]})]})];return s.jsx(o,{supportReplies:!0,isLoggedIn:!0,isReplies:!1,maxLength:800,comments:t,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},d=p(20,{isEditable:!1}),l=()=>s.jsx(o,{comments:d,highlightedCommentId:d[d.length-2]._id,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null});var c,h,u,g,C,v,f,P,R,L,E,x,k,I,M,D,q,b;m.parameters={...m.parameters,docs:{...null==(c=m.parameters)?void 0:c.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(u=null==(h=m.parameters)?void 0:h.docs)?void 0:u.source}}},r.parameters={...r.parameters,docs:{...null==(g=r.parameters)?void 0:g.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(v=null==(C=r.parameters)?void 0:C.docs)?void 0:v.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment({\n creatorImage: 'https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840',\n replies: [fakeComment({\n creatorImage: 'https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4'\n })],\n _deleted: true\n }), fakeComment({\n replies: [fakeComment()]\n }), fakeComment()];\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => Promise.resolve()} onSubmitReply={() => Promise.resolve()} />;\n}",...null==(R=null==(P=i.parameters)?void 0:P.docs)?void 0:R.source}}},n.parameters={...n.parameters,docs:{...null==(L=n.parameters)?void 0:L.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment(), fakeComment()];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(x=null==(E=n.parameters)?void 0:E.docs)?void 0:x.source}}},a.parameters={...a.parameters,docs:{...null==(k=a.parameters)?void 0:k.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment({\n replies: [fakeComment()]\n })]\n })];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(M=null==(I=a.parameters)?void 0:I.docs)?void 0:M.source}}},l.parameters={...l.parameters,docs:{...null==(D=l.parameters)?void 0:D.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(b=null==(q=l.parameters)?void 0:q.docs)?void 0:b.source}}};const Re=["Default","Expandable","WithNestedComments","WithNestedCommentsAndReplies","WithNestedCommentsAndRepliesMaxDepthTwo","Highlighted"];export{m as Default,r as Expandable,l as Highlighted,i as WithNestedComments,n as WithNestedCommentsAndReplies,a as WithNestedCommentsAndRepliesMaxDepthTwo,Re as __namedExportsOrder,Pe as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{c as p,f as e}from"./utils-BRZF2j4e.js";import{C as o}from"./CommentList-DhPqgHRE.js";import"./index-BP8_t0zE.js";import"./index-D_kXk1yT.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonShowReplies-nddYmg0q.js";import"./DiscussionTitle-Dhry4tok.js";import"./CommentItem-DZgP41nA.js";import"./ConfirmModal-BcXyrr5V.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-8pUkm3CJ.js";import"./typeof-QjJsDpFa.js";import"./EditComment-CS1dAl1Z.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";import"./LinkifyText-CTcW0PSE.js";import"./ExternalLink-CHmx7fZ7.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BXxqJQdV.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./CreateReply-2Azc7a5m.js";import"./CreateComment-C20B3Odi.js";import"./MemberBadge-BFCUvfGJ.js";const Pe={title:"Discussions/CommentList",component:o},m=()=>s.jsx(o,{comments:p(2),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),r=()=>s.jsx(o,{comments:p(20),handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null}),i=()=>{const t=[e({replies:[e(),e()]}),e({creatorImage:"https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840",replies:[e({creatorImage:"https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4"})],_deleted:!0}),e({replies:[e()]}),e()];return s.jsx(o,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>Promise.resolve(),onSubmitReply:()=>Promise.resolve()})},n=()=>{const t=[e({replies:[e(),e()]}),e(),e()];return s.jsx(o,{supportReplies:!0,comments:t,isLoggedIn:!0,isReplies:!1,maxLength:800,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},a=()=>{const t=[e({replies:[e({replies:[e()]})]})];return s.jsx(o,{supportReplies:!0,isLoggedIn:!0,isReplies:!1,maxLength:800,comments:t,setCommentBeingRepliedTo:()=>{},handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),onMoreComments:()=>Promise.resolve()})},d=p(20,{isEditable:!1}),l=()=>s.jsx(o,{comments:d,highlightedCommentId:d[d.length-2]._id,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),isLoggedIn:!0,isReplies:!1,maxLength:1e3,onMoreComments:()=>null});var c,h,u,g,C,v,f,P,R,L,E,x,k,I,M,D,q,b;m.parameters={...m.parameters,docs:{...null==(c=m.parameters)?void 0:c.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(u=null==(h=m.parameters)?void 0:h.docs)?void 0:u.source}}},r.parameters={...r.parameters,docs:{...null==(g=r.parameters)?void 0:g.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(v=null==(C=r.parameters)?void 0:C.docs)?void 0:v.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment({\n creatorImage: 'https://oacpppprod-1fa0a.kxcdn.com/o/uploads%2Fhowtos%2FsEHCqVHlBmMRG8TG0CGN%2FToasteOvenMod-18cd7fc9c38.jpg?alt=media&token=1dd11c48-151a-49cc-9287-443f96a10840',\n replies: [fakeComment({\n creatorImage: 'https://avatars.githubusercontent.com/u/16688508?s=80&u=7332d9d2a953c33179b428d2ee804bfc80a06f5d&v=4'\n })],\n _deleted: true\n }), fakeComment({\n replies: [fakeComment()]\n }), fakeComment()];\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => Promise.resolve()} onSubmitReply={() => Promise.resolve()} />;\n}",...null==(R=null==(P=i.parameters)?void 0:P.docs)?void 0:R.source}}},n.parameters={...n.parameters,docs:{...null==(L=n.parameters)?void 0:L.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment(), fakeComment()]\n }), fakeComment(), fakeComment()];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(x=null==(E=n.parameters)?void 0:E.docs)?void 0:x.source}}},a.parameters={...a.parameters,docs:{...null==(k=a.parameters)?void 0:k.docs,source:{originalSource:"() => {\n const comments = [fakeComment({\n replies: [fakeComment({\n replies: [fakeComment()]\n })]\n })];\n return {}} handleDelete={() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} onMoreComments={() => Promise.resolve()} />;\n}",...null==(M=null==(I=a.parameters)?void 0:I.docs)?void 0:M.source}}},l.parameters={...l.parameters,docs:{...null==(D=l.parameters)?void 0:D.docs,source:{originalSource:"() => Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} isLoggedIn={true} isReplies={false} maxLength={1000} onMoreComments={() => null} />",...null==(b=null==(q=l.parameters)?void 0:q.docs)?void 0:b.source}}};const Re=["Default","Expandable","WithNestedComments","WithNestedCommentsAndReplies","WithNestedCommentsAndRepliesMaxDepthTwo","Highlighted"];export{m as Default,r as Expandable,l as Highlighted,i as WithNestedComments,n as WithNestedCommentsAndReplies,a as WithNestedCommentsAndRepliesMaxDepthTwo,Re as __namedExportsOrder,Pe as default}; \ No newline at end of file diff --git a/storybook-static/assets/ConfirmModal-DGUUT3uo.js b/storybook-static/assets/ConfirmModal-BcXyrr5V.js similarity index 96% rename from storybook-static/assets/ConfirmModal-DGUUT3uo.js rename to storybook-static/assets/ConfirmModal-BcXyrr5V.js index ed8edab7b7..2ed362ff3d 100644 --- a/storybook-static/assets/ConfirmModal-DGUUT3uo.js +++ b/storybook-static/assets/ConfirmModal-BcXyrr5V.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as t}from"./Button-B7QBvkxh.js";import{M as m}from"./Modal-CNp0gEVS.js";import{F as i,T as u}from"./theme-ui-components.esm-DCiJ1mMX.js";const l=e=>{const{message:a,confirmButtonText:l,isOpen:o,width:r}=e;return n.jsx(m,{onDidDismiss:()=>null==e?void 0:e.handleCancel,isOpen:o,width:r,children:n.jsxs(i,{"data-cy":"Confirm.modal: Modal",sx:{alignItems:"flex-start",flexDirection:"column",padding:1,gap:2,justifyContent:"flex-start"},children:[n.jsx(u,{sx:{alignSelf:"stretch",fontWeight:"bold"},children:a}),n.jsxs(i,{sx:{gap:2,flexWrap:"wrap"},children:[n.jsx(t,{type:"button",variant:"outline","data-cy":"Confirm.modal: Cancel",onClick:()=>null==e?void 0:e.handleCancel(),children:"Cancel"}),n.jsx(t,{type:"button","aria-label":`Confirm ${l} action`,"data-cy":"Confirm.modal: Confirm",variant:"outline",onClick:()=>null==e?void 0:e.handleConfirm(),children:l})]})]})})};try{l.displayName="ConfirmModal",l.__docgenInfo={description:"",displayName:"ConfirmModal",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string"}},confirmButtonText:{defaultValue:null,description:"",name:"confirmButtonText",required:!0,type:{name:"string"}},isOpen:{defaultValue:null,description:"",name:"isOpen",required:!0,type:{name:"boolean"}},handleCancel:{defaultValue:null,description:"",name:"handleCancel",required:!0,type:{name:"() => void"}},handleConfirm:{defaultValue:null,description:"",name:"handleConfirm",required:!0,type:{name:"() => void"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"number"}}}}}catch{}export{l as C}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as t}from"./Button-1qf_V-Zv.js";import{M as m}from"./Modal-CNp0gEVS.js";import{F as i,T as u}from"./theme-ui-components.esm-DCiJ1mMX.js";const l=e=>{const{message:a,confirmButtonText:l,isOpen:o,width:r}=e;return n.jsx(m,{onDidDismiss:()=>null==e?void 0:e.handleCancel,isOpen:o,width:r,children:n.jsxs(i,{"data-cy":"Confirm.modal: Modal",sx:{alignItems:"flex-start",flexDirection:"column",padding:1,gap:2,justifyContent:"flex-start"},children:[n.jsx(u,{sx:{alignSelf:"stretch",fontWeight:"bold"},children:a}),n.jsxs(i,{sx:{gap:2,flexWrap:"wrap"},children:[n.jsx(t,{type:"button",variant:"outline","data-cy":"Confirm.modal: Cancel",onClick:()=>null==e?void 0:e.handleCancel(),children:"Cancel"}),n.jsx(t,{type:"button","aria-label":`Confirm ${l} action`,"data-cy":"Confirm.modal: Confirm",variant:"outline",onClick:()=>null==e?void 0:e.handleConfirm(),children:l})]})]})})};try{l.displayName="ConfirmModal",l.__docgenInfo={description:"",displayName:"ConfirmModal",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string"}},confirmButtonText:{defaultValue:null,description:"",name:"confirmButtonText",required:!0,type:{name:"string"}},isOpen:{defaultValue:null,description:"",name:"isOpen",required:!0,type:{name:"boolean"}},handleCancel:{defaultValue:null,description:"",name:"handleCancel",required:!0,type:{name:"() => void"}},handleConfirm:{defaultValue:null,description:"",name:"handleConfirm",required:!0,type:{name:"() => void"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"number"}}}}}catch{}export{l as C}; \ No newline at end of file diff --git a/storybook-static/assets/ConfirmModal.stories---wCALSZ.js b/storybook-static/assets/ConfirmModal.stories-DB7ywUan.js similarity index 90% rename from storybook-static/assets/ConfirmModal.stories---wCALSZ.js rename to storybook-static/assets/ConfirmModal.stories-DB7ywUan.js index 5a8c46bb1b..d02e6cd40c 100644 --- a/storybook-static/assets/ConfirmModal.stories---wCALSZ.js +++ b/storybook-static/assets/ConfirmModal.stories-DB7ywUan.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{C as m}from"./ConfirmModal-DGUUT3uo.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";const _={title:"Layout/ConfirmModal",component:m},o=()=>i.jsx(m,{message:"Are you sure you want to delete this item?",confirmButtonText:"Delete",isOpen:!0,handleCancel:()=>null,handleConfirm:()=>null});var t,e,r;o.parameters={...o.parameters,docs:{...null==(t=o.parameters)?void 0:t.docs,source:{originalSource:'() => null} handleConfirm={() => null} />',...null==(r=null==(e=o.parameters)?void 0:e.docs)?void 0:r.source}}};const w=["Default"];export{o as Default,w as __namedExportsOrder,_ as default}; \ No newline at end of file +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{C as m}from"./ConfirmModal-BcXyrr5V.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";const _={title:"Layout/ConfirmModal",component:m},o=()=>i.jsx(m,{message:"Are you sure you want to delete this item?",confirmButtonText:"Delete",isOpen:!0,handleCancel:()=>null,handleConfirm:()=>null});var t,e,r;o.parameters={...o.parameters,docs:{...null==(t=o.parameters)?void 0:t.docs,source:{originalSource:'() => null} handleConfirm={() => null} />',...null==(r=null==(e=o.parameters)?void 0:e.docs)?void 0:r.source}}};const w=["Default"];export{o as Default,w as __namedExportsOrder,_ as default}; \ No newline at end of file diff --git a/storybook-static/assets/ContentStatistics-Clvo6xNg.js b/storybook-static/assets/ContentStatistics-CzRzqwNB.js similarity index 90% rename from storybook-static/assets/ContentStatistics-Clvo6xNg.js rename to storybook-static/assets/ContentStatistics-CzRzqwNB.js index 8d5b7268c6..98c6936821 100644 --- a/storybook-static/assets/ContentStatistics-Clvo6xNg.js +++ b/storybook-static/assets/ContentStatistics-CzRzqwNB.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as p}from"./index-BP8_t0zE.js";import{B as x}from"./Button-B7QBvkxh.js";import{I as m}from"./Icon-BoVZOGVD.js";import{F as s,T as i}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=e=>{const[n,o]=p.useState(!1);return t.jsxs(s,{"data-cy":"ContentStatistics",py:1,sx:{alignItems:["flex-start","center","center"],justifyContent:"center",gap:2,flexDirection:["column","row","row"],pl:[2,0,0]},children:[t.jsxs(s,{sx:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",display:["flex","none","none"],width:"100%",pr:2,pl:2},onClick:()=>{o(!n)},children:[t.jsx(i,{sx:{fontSize:"13px"},children:n?"":"More Information"}),t.jsx(x,{type:"button",variant:"subtle",showIconOnly:!0,icon:n?"chevron-up":"chevron-down",small:!0,sx:{bg:"white",borderWidth:"0px","&:hover":{bg:"white"},"&:active":{bg:"white"}}})]}),e.statistics.map(((e,o)=>t.jsxs(s,{px:2,py:1,mb:1,sx:{alignItems:"center",fontSize:"1",display:[n?"flex":"none","flex","flex"]},children:[t.jsx(m,{glyph:e.icon,mr:1,size:"sm",opacity:"0.5"}),t.jsx(i,{children:e.label})]},o)))]})};try{r.displayName="ContentStatistics",r.__docgenInfo={description:"",displayName:"ContentStatistics",props:{statistics:{defaultValue:null,description:"",name:"statistics",required:!0,type:{name:"{ icon: availableGlyphs; label: string; }[]"}}}}}catch{}export{r as C}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as p}from"./index-BP8_t0zE.js";import{B as x}from"./Button-1qf_V-Zv.js";import{I as m}from"./Icon-DVJa_328.js";import{F as s,T as i}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=e=>{const[n,o]=p.useState(!1);return t.jsxs(s,{"data-cy":"ContentStatistics",py:1,sx:{alignItems:["flex-start","center","center"],justifyContent:"center",gap:2,flexDirection:["column","row","row"],pl:[2,0,0]},children:[t.jsxs(s,{sx:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",display:["flex","none","none"],width:"100%",pr:2,pl:2},onClick:()=>{o(!n)},children:[t.jsx(i,{sx:{fontSize:"13px"},children:n?"":"More Information"}),t.jsx(x,{type:"button",variant:"subtle",showIconOnly:!0,icon:n?"chevron-up":"chevron-down",small:!0,sx:{bg:"white",borderWidth:"0px","&:hover":{bg:"white"},"&:active":{bg:"white"}}})]}),e.statistics.map(((e,o)=>t.jsxs(s,{px:2,py:1,mb:1,sx:{alignItems:"center",fontSize:"1",display:[n?"flex":"none","flex","flex"]},children:[t.jsx(m,{glyph:e.icon,mr:1,size:"sm",opacity:"0.5"}),t.jsx(i,{children:e.label})]},o)))]})};try{r.displayName="ContentStatistics",r.__docgenInfo={description:"",displayName:"ContentStatistics",props:{statistics:{defaultValue:null,description:"",name:"statistics",required:!0,type:{name:"{ icon: availableGlyphs; label: string; }[]"}}}}}catch{}export{r as C}; \ No newline at end of file diff --git a/storybook-static/assets/ContentStatistics.stories-BJCIsX0t.js b/storybook-static/assets/ContentStatistics.stories-DC7TU1WW.js similarity index 91% rename from storybook-static/assets/ContentStatistics.stories-BJCIsX0t.js rename to storybook-static/assets/ContentStatistics.stories-DC7TU1WW.js index 2475184a5d..751d802e7e 100644 --- a/storybook-static/assets/ContentStatistics.stories-BJCIsX0t.js +++ b/storybook-static/assets/ContentStatistics.stories-DC7TU1WW.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-CexXSJP5.js";import{y as t}from"./index-D_kXk1yT.js";import{C as n}from"./ContentStatistics-Clvo6xNg.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const D={title:"Layout/ContentStatistics",component:n},e=()=>l.jsx(n,{statistics:[{icon:"view",label:`${t.datatype.number()} views`},{icon:"star",label:`${t.datatype.number()} useful`},{icon:"comment",label:`${t.datatype.number()} comments`},{icon:"update",label:`${t.datatype.number()} steps`}]}),a=()=>l.jsx(n,{statistics:[{icon:"view",label:"1 view"},{icon:"star",label:"1 useful"},{icon:"comment",label:"1 comment"},{icon:"update",label:"1 step"}]});var o,s,i,r,m,c;e.parameters={...e.parameters,docs:{...null==(o=e.parameters)?void 0:o.docs,source:{originalSource:"() => ",...null==(i=null==(s=e.parameters)?void 0:s.docs)?void 0:i.source}}},a.parameters={...a.parameters,docs:{...null==(r=a.parameters)?void 0:r.docs,source:{originalSource:"() => ",...null==(c=null==(m=a.parameters)?void 0:m.docs)?void 0:c.source}}};const E=["Default","SingleCount"];export{e as Default,a as SingleCount,E as __namedExportsOrder,D as default}; \ No newline at end of file +import{j as l}from"./jsx-runtime-CexXSJP5.js";import{y as t}from"./index-D_kXk1yT.js";import{C as n}from"./ContentStatistics-CzRzqwNB.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const D={title:"Layout/ContentStatistics",component:n},e=()=>l.jsx(n,{statistics:[{icon:"view",label:`${t.datatype.number()} views`},{icon:"star",label:`${t.datatype.number()} useful`},{icon:"comment",label:`${t.datatype.number()} comments`},{icon:"update",label:`${t.datatype.number()} steps`}]}),a=()=>l.jsx(n,{statistics:[{icon:"view",label:"1 view"},{icon:"star",label:"1 useful"},{icon:"comment",label:"1 comment"},{icon:"update",label:"1 step"}]});var o,s,i,r,m,c;e.parameters={...e.parameters,docs:{...null==(o=e.parameters)?void 0:o.docs,source:{originalSource:"() => ",...null==(i=null==(s=e.parameters)?void 0:s.docs)?void 0:i.source}}},a.parameters={...a.parameters,docs:{...null==(r=a.parameters)?void 0:r.docs,source:{originalSource:"() => ",...null==(c=null==(m=a.parameters)?void 0:m.docs)?void 0:c.source}}};const E=["Default","SingleCount"];export{e as Default,a as SingleCount,E as __namedExportsOrder,D as default}; \ No newline at end of file diff --git a/storybook-static/assets/CreateComment-ButSCGtD.js b/storybook-static/assets/CreateComment-C20B3Odi.js similarity index 93% rename from storybook-static/assets/CreateComment-ButSCGtD.js rename to storybook-static/assets/CreateComment-C20B3Odi.js index e36bdd065f..bcec12b6bb 100644 --- a/storybook-static/assets/CreateComment-ButSCGtD.js +++ b/storybook-static/assets/CreateComment-C20B3Odi.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{M as x}from"./MemberBadge-DaB6gu8F.js";import{L as h}from"./components-CutHIkdx.js";import{F as o,a as l,b as y,T as c,B as L}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=n=>{const{comment:a,isLoggedIn:r,isReply:t,maxLength:i,onSubmit:s,isLoading:m}=n,d=n.userProfileType||"member",u=n.placeholder||"Leave your questions or feedback...",p=n.buttonLabel??"Leave a comment",g=e=>{n.onChange&&(null==n||n.onChange(e))};return e.jsxs(o,{sx:{flexDirection:"column",gap:3},children:[e.jsxs(o,{"data-target":"create-comment-container",children:[e.jsx(l,{sx:{lineHeight:0,marginTop:2,display:["none","block"]},children:e.jsx(x,{profileType:d,useLowDetailVersion:!0})}),e.jsx(l,{sx:{display:"block",background:"white",flexGrow:1,marginLeft:[2,5],borderRadius:1,position:"relative","&:before":{content:'""',position:"absolute",borderWidth:"1em 1em",borderStyle:"solid",borderColor:"transparent white transparent transparent",margin:"1em -2em"}},children:r?e.jsxs(e.Fragment,{children:[e.jsx(y,{value:a,maxLength:i,onChange:e=>{g&&g(e.target.value)},"aria-label":"Comment","data-cy":t?"reply-form":"comments-form",placeholder:u,sx:{background:"none",resize:"vertical",padding:3,"&:focus":{borderColor:"transparent"}}}),e.jsxs(c,{sx:{fontSize:2,position:"absolute",right:0,bottom:-5,pointerEvents:"none",padding:1},children:[a.length,"/",i]})]}):e.jsx(v,{})})]}),e.jsx(o,{sx:{alignSelf:"flex-end"},children:e.jsx(L,{"data-cy":t?"reply-submit":"comment-submit",disabled:!a.trim()||!r||m,variant:"primary",onClick:()=>{m||s(a)},sx:{marginTop:r?3:0},children:m?"Loading...":p})})]})},v=()=>e.jsx(l,{sx:{padding:[3,4]},children:e.jsxs(c,{"data-cy":"comments-login-prompt",children:["Hi there!"," ",e.jsx(h,{to:"/sign-in",style:{textDecoration:"underline",color:"inherit"},children:"Login"})," ","to leave a comment"]})});try{u.displayName="CreateComment",u.__docgenInfo={description:"",displayName:"CreateComment",props:{maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!1,type:{name:"boolean"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(value: string) => void"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: string) => void"}},comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},userProfileType:{defaultValue:null,description:"",name:"userProfileType",required:!1,type:{name:"enum",value:[{value:'"member"'},{value:'"space"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},buttonLabel:{defaultValue:null,description:"",name:"buttonLabel",required:!1,type:{name:"string"}}}}}catch{}export{u as C}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{M as x}from"./MemberBadge-BFCUvfGJ.js";import{L as h}from"./components-CutHIkdx.js";import{F as o,a as l,b as y,T as c,B as L}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=n=>{const{comment:a,isLoggedIn:r,isReply:t,maxLength:i,onSubmit:s,isLoading:m}=n,d=n.userProfileType||"member",u=n.placeholder||"Leave your questions or feedback...",p=n.buttonLabel??"Leave a comment",g=e=>{n.onChange&&(null==n||n.onChange(e))};return e.jsxs(o,{sx:{flexDirection:"column",gap:3},children:[e.jsxs(o,{"data-target":"create-comment-container",children:[e.jsx(l,{sx:{lineHeight:0,marginTop:2,display:["none","block"]},children:e.jsx(x,{profileType:d,useLowDetailVersion:!0})}),e.jsx(l,{sx:{display:"block",background:"white",flexGrow:1,marginLeft:[2,5],borderRadius:1,position:"relative","&:before":{content:'""',position:"absolute",borderWidth:"1em 1em",borderStyle:"solid",borderColor:"transparent white transparent transparent",margin:"1em -2em"}},children:r?e.jsxs(e.Fragment,{children:[e.jsx(y,{value:a,maxLength:i,onChange:e=>{g&&g(e.target.value)},"aria-label":"Comment","data-cy":t?"reply-form":"comments-form",placeholder:u,sx:{background:"none",resize:"vertical",padding:3,"&:focus":{borderColor:"transparent"}}}),e.jsxs(c,{sx:{fontSize:2,position:"absolute",right:0,bottom:-5,pointerEvents:"none",padding:1},children:[a.length,"/",i]})]}):e.jsx(v,{})})]}),e.jsx(o,{sx:{alignSelf:"flex-end"},children:e.jsx(L,{"data-cy":t?"reply-submit":"comment-submit",disabled:!a.trim()||!r||m,variant:"primary",onClick:()=>{m||s(a)},sx:{marginTop:r?3:0},children:m?"Loading...":p})})]})},v=()=>e.jsx(l,{sx:{padding:[3,4]},children:e.jsxs(c,{"data-cy":"comments-login-prompt",children:["Hi there!"," ",e.jsx(h,{to:"/sign-in",style:{textDecoration:"underline",color:"inherit"},children:"Login"})," ","to leave a comment"]})});try{u.displayName="CreateComment",u.__docgenInfo={description:"",displayName:"CreateComment",props:{maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!1,type:{name:"boolean"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(value: string) => void"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: string) => void"}},comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},userProfileType:{defaultValue:null,description:"",name:"userProfileType",required:!1,type:{name:"enum",value:[{value:'"space"'},{value:'"member"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},buttonLabel:{defaultValue:null,description:"",name:"buttonLabel",required:!1,type:{name:"string"}}}}}catch{}export{u as C}; \ No newline at end of file diff --git a/storybook-static/assets/CreateComment.stories-D-uk7yfj.js b/storybook-static/assets/CreateComment.stories-CU78S9AB.js similarity index 98% rename from storybook-static/assets/CreateComment.stories-D-uk7yfj.js rename to storybook-static/assets/CreateComment.stories-CU78S9AB.js index 103f9315f2..b9fa4d751b 100644 --- a/storybook-static/assets/CreateComment.stories-D-uk7yfj.js +++ b/storybook-static/assets/CreateComment.stories-CU78S9AB.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-CexXSJP5.js";import{r as a}from"./index-BP8_t0zE.js";import{C as s}from"./CreateComment-ButSCGtD.js";import"./MemberBadge-DaB6gu8F.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const _={title:"Discussions/CreateComment",component:s},i=()=>{const[e,t]=a.useState("");return m.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:1e3,isLoggedIn:!0})},n=()=>{const[e,t]=a.useState("");return m.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:123,isLoggedIn:!1})},o=()=>{const[e,t]=a.useState("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.");return m.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})},u=()=>{const[e,t]=a.useState("");return m.jsx(s,{comment:e,placeholder:"Custom placeholder",onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})};var r,l,c,d,p,g,f,C,b,h,v,S;i.parameters={...i.parameters,docs:{...null==(r=i.parameters)?void 0:r.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={1000} isLoggedIn={true} />;\n}",...null==(c=null==(l=i.parameters)?void 0:l.docs)?void 0:c.source}}},n.parameters={...n.parameters,docs:{...null==(d=n.parameters)?void 0:d.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={123} isLoggedIn={false} />;\n}",...null==(g=null==(p=n.parameters)?void 0:p.docs)?void 0:g.source}}},o.parameters={...o.parameters,docs:{...null==(f=o.parameters)?void 0:f.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.`);\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(b=null==(C=o.parameters)?void 0:C.docs)?void 0:b.source}}},u.parameters={...u.parameters,docs:{...null==(h=u.parameters)?void 0:h.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(\'\');\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(S=null==(v=u.parameters)?void 0:v.docs)?void 0:S.source}}};const A=["Default","LoggedOut","WithLongComment","WithCustomPlaceholder"];export{i as Default,n as LoggedOut,u as WithCustomPlaceholder,o as WithLongComment,A as __namedExportsOrder,_ as default}; \ No newline at end of file +import{j as m}from"./jsx-runtime-CexXSJP5.js";import{r as a}from"./index-BP8_t0zE.js";import{C as s}from"./CreateComment-C20B3Odi.js";import"./MemberBadge-BFCUvfGJ.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const _={title:"Discussions/CreateComment",component:s},i=()=>{const[e,t]=a.useState("");return m.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:1e3,isLoggedIn:!0})},n=()=>{const[e,t]=a.useState("");return m.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:123,isLoggedIn:!1})},o=()=>{const[e,t]=a.useState("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.");return m.jsx(s,{comment:e,onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})},u=()=>{const[e,t]=a.useState("");return m.jsx(s,{comment:e,placeholder:"Custom placeholder",onChange:t,onSubmit:()=>null,userProfileType:"member",maxLength:12300,isLoggedIn:!0})};var r,l,c,d,p,g,f,C,b,h,v,S;i.parameters={...i.parameters,docs:{...null==(r=i.parameters)?void 0:r.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={1000} isLoggedIn={true} />;\n}",...null==(c=null==(l=i.parameters)?void 0:l.docs)?void 0:c.source}}},n.parameters={...n.parameters,docs:{...null==(d=n.parameters)?void 0:d.docs,source:{originalSource:"() => {\n const [comment, setComment] = useState('');\n return null} userProfileType=\"member\" maxLength={123} isLoggedIn={false} />;\n}",...null==(g=null==(p=n.parameters)?void 0:p.docs)?void 0:g.source}}},o.parameters={...o.parameters,docs:{...null==(f=o.parameters)?void 0:f.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales sodales nunc, ut pharetra magna. Nulla malesuada sodales finibus. In condimentum nulla et nunc convallis, ac interdum turpis convallis. Praesent nec ipsum et lacus rhoncus facilisis id ac enim. Nunc cursus facilisis libero non blandit. Maecenas in mauris vel odio sollicitudin rutrum. Sed suscipit fermentum mi, nec faucibus urna mattis quis. In euismod mi ut lorem imperdiet semper.\n\nVestibulum mi felis, blandit ut mollis sed, consequat et massa. Vivamus vitae sem mattis, scelerisque odio ac, convallis lectus. Duis arcu velit, euismod et leo eget, iaculis molestie est. Phasellus facilisis in metus id sodales. Integer vestibulum interdum euismod. Fusce in lectus non lorem accumsan condimentum a non enim. Quisque porta fermentum facilisis.\n\nDonec ut tristique sapien. Morbi consectetur, elit sit amet molestie fringilla, eros odio rutrum est, sed dictum tortor massa et mi. Donec nec justo lorem. Suspendisse potenti. Proin molestie dolor sed ipsum porta sollicitudin eget quis mauris. Integer quis nisl magna. Vivamus convallis nunc ac mauris interdum tempor. Nullam elit velit, sollicitudin et porttitor sit amet, ultricies a sem. Mauris erat orci, sodales eget enim a, semper porta enim. Integer at mi molestie enim consectetur laoreet. Mauris diam ligula, lobortis nec tortor eget, pulvinar finibus dolor. Fusce ac tincidunt leo. Pellentesque elementum, tellus a feugiat commodo, leo risus ornare nulla, ut interdum justo dolor non turpis. Aliquam semper tortor quis nunc posuere tincidunt.\n\nDonec dapibus leo quis sagittis fringilla. Phasellus ut imperdiet sapien. Nullam posuere elementum odio, a condimentum velit. Integer diam lacus, iaculis eu faucibus eu, iaculis ac eros. Suspendisse accumsan accumsan congue. Vivamus feugiat mi quis massa convallis, sed vestibulum elit volutpat. Suspendisse in elit arcu. Cras fermentum condimentum odio, et ultrices urna auctor et. Ut orci metus, sagittis sit amet sollicitudin in, sagittis sed metus.`);\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(b=null==(C=o.parameters)?void 0:C.docs)?void 0:b.source}}},u.parameters={...u.parameters,docs:{...null==(h=u.parameters)?void 0:h.docs,source:{originalSource:'() => {\n const [comment, setComment] = useState(\'\');\n return null} userProfileType="member" maxLength={12300} isLoggedIn={true} />;\n}',...null==(S=null==(v=u.parameters)?void 0:v.docs)?void 0:S.source}}};const A=["Default","LoggedOut","WithLongComment","WithCustomPlaceholder"];export{i as Default,n as LoggedOut,u as WithCustomPlaceholder,o as WithLongComment,A as __namedExportsOrder,_ as default}; \ No newline at end of file diff --git a/storybook-static/assets/CreateReply-ByN4QqWr.js b/storybook-static/assets/CreateReply-2Azc7a5m.js similarity index 79% rename from storybook-static/assets/CreateReply-ByN4QqWr.js rename to storybook-static/assets/CreateReply-2Azc7a5m.js index 59306a5582..592b730c7b 100644 --- a/storybook-static/assets/CreateReply-ByN4QqWr.js +++ b/storybook-static/assets/CreateReply-2Azc7a5m.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r}from"./index-BP8_t0zE.js";import{C as f}from"./CreateComment-ButSCGtD.js";import{a as b,A as x}from"./theme-ui-components.esm-DCiJ1mMX.js";const i=e=>{const[n,a]=r.useState(""),[i,m]=r.useState(!1),[o,s]=r.useState(!1),{commentId:l,isLoggedIn:d,maxLength:u,onSubmit:p}=e;return t.jsxs(b,{sx:{background:"softblue",borderRadius:2,marginBottom:3,padding:3},children:[t.jsx(f,{maxLength:u,comment:n,onChange:e=>a(e),onSubmit:async()=>{m(!0);try{await p(l,n),a(""),m(!1)}catch{m(!1),s(!0)}},isLoggedIn:d,isLoading:i,isReply:!0,buttonLabel:"Leave a reply"}),o?t.jsx(x,{variant:"failure",sx:{mt:3},children:"Unable to leave a comment at this time. Please try again later."}):null]})};try{i.displayName="CreateReply",i.__docgenInfo={description:"",displayName:"CreateReply",props:{commentId:{defaultValue:null,description:"",name:"commentId",required:!0,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(_id: string, reply: string) => Promise"}}}}}catch{}export{i as C}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r}from"./index-BP8_t0zE.js";import{C as f}from"./CreateComment-C20B3Odi.js";import{a as b,A as x}from"./theme-ui-components.esm-DCiJ1mMX.js";const i=e=>{const[n,a]=r.useState(""),[i,m]=r.useState(!1),[o,s]=r.useState(!1),{commentId:d,isLoggedIn:l,maxLength:u,onSubmit:p}=e;return t.jsxs(b,{sx:{background:"softblue",borderRadius:2,marginBottom:3,padding:3},children:[t.jsx(f,{maxLength:u,comment:n,onChange:e=>a(e),onSubmit:async()=>{m(!0);try{await p(d,n),a(""),m(!1)}catch{m(!1),s(!0)}},isLoggedIn:l,isLoading:i,isReply:!0,buttonLabel:"Leave a reply"}),o?t.jsx(x,{variant:"failure",sx:{mt:3},children:"Unable to leave a comment at this time. Please try again later."}):null]})};try{i.displayName="CreateReply",i.__docgenInfo={description:"",displayName:"CreateReply",props:{commentId:{defaultValue:null,description:"",name:"commentId",required:!0,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(_id: string, reply: string) => Promise"}}}}}catch{}export{i as C}; \ No newline at end of file diff --git a/storybook-static/assets/CreateReply.stories-DSNYS6iM.js b/storybook-static/assets/CreateReply.stories-CxH52BhY.js similarity index 94% rename from storybook-static/assets/CreateReply.stories-DSNYS6iM.js rename to storybook-static/assets/CreateReply.stories-CxH52BhY.js index fa2f0f59f0..a0f1c222e3 100644 --- a/storybook-static/assets/CreateReply.stories-DSNYS6iM.js +++ b/storybook-static/assets/CreateReply.stories-CxH52BhY.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{C as t}from"./CreateReply-ByN4QqWr.js";import"./index-BP8_t0zE.js";import"./CreateComment-ButSCGtD.js";import"./MemberBadge-DaB6gu8F.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const w={title:"Discussions/CreateReply",component:t},e=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!1,maxLength:75,onSubmit:()=>Promise.resolve()}),r=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:()=>Promise.resolve()}),o=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:async()=>Promise.reject(new Error("Error!"))});var m,n,a,i,p,c,u,g,d;e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(a=null==(n=e.parameters)?void 0:n.docs)?void 0:a.source}}},r.parameters={...r.parameters,docs:{...null==(i=r.parameters)?void 0:i.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(c=null==(p=r.parameters)?void 0:p.docs)?void 0:c.source}}},o.parameters={...o.parameters,docs:{...null==(u=o.parameters)?void 0:u.docs,source:{originalSource:"() => {\n return {\n return Promise.reject(new Error('Error!'));\n }} />;\n}",...null==(d=null==(g=o.parameters)?void 0:g.docs)?void 0:d.source}}};const W=["Default","LoggedIn","LoggedInWithError"];export{e as Default,r as LoggedIn,o as LoggedInWithError,W as __namedExportsOrder,w as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{C as t}from"./CreateReply-2Azc7a5m.js";import"./index-BP8_t0zE.js";import"./CreateComment-C20B3Odi.js";import"./MemberBadge-BFCUvfGJ.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const w={title:"Discussions/CreateReply",component:t},e=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!1,maxLength:75,onSubmit:()=>Promise.resolve()}),r=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:()=>Promise.resolve()}),o=()=>s.jsx(t,{commentId:"23543bh",isLoggedIn:!0,maxLength:1e3,onSubmit:async()=>Promise.reject(new Error("Error!"))});var m,n,a,i,p,c,u,g,d;e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(a=null==(n=e.parameters)?void 0:n.docs)?void 0:a.source}}},r.parameters={...r.parameters,docs:{...null==(i=r.parameters)?void 0:i.docs,source:{originalSource:"() => {\n return Promise.resolve()} />;\n}",...null==(c=null==(p=r.parameters)?void 0:p.docs)?void 0:c.source}}},o.parameters={...o.parameters,docs:{...null==(u=o.parameters)?void 0:u.docs,source:{originalSource:"() => {\n return {\n return Promise.reject(new Error('Error!'));\n }} />;\n}",...null==(d=null==(g=o.parameters)?void 0:g.docs)?void 0:d.source}}};const W=["Default","LoggedIn","LoggedInWithError"];export{e as Default,r as LoggedIn,o as LoggedInWithError,W as __namedExportsOrder,w as default}; \ No newline at end of file diff --git a/storybook-static/assets/DailyMotion-DLX2GjDR.js b/storybook-static/assets/DailyMotion-DTkupcsa.js similarity index 97% rename from storybook-static/assets/DailyMotion-DLX2GjDR.js rename to storybook-static/assets/DailyMotion-DTkupcsa.js index 03b1ee01ad..a2430b6ba4 100644 --- a/storybook-static/assets/DailyMotion-DLX2GjDR.js +++ b/storybook-static/assets/DailyMotion-DTkupcsa.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-BP8_t0zE.js";import{u as D,p as O}from"./VideoPlayer-Dmkl06KS.js";function b(e,t){for(var r=0;rn[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of S(t))!T.call(e,o)&&o!==r&&s(e,o,{get:()=>t[o],enumerable:!(n=w(t,o))||n.enumerable});return e},L=(e,t,r)=>(r=null!=e?M(j(e)):{},h(e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),C=e=>h(s({},"__esModule",{value:!0}),e),n=(e,t,r)=>(E(e,"symbol"!=typeof t?t+"":t,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const N="https://api.dmcdn.net/all.js",x="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),n(this,"unmute",(()=>{this.callPlayer("setMuted",!1)})),n(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:t,config:r,onError:n,playing:o}=this.props,[,a]=e.match(f.MATCH_URL_DAILYMOTION);this.player?this.player.load(a,{start:(0,l.parseStartTime)(e),autoplay:o}):(0,l.getSDK)(N,x,K,(e=>e.player)).then((o=>{if(!this.container)return;const s=o.player;this.player=new s(this.container,{width:"100%",height:"100%",video:a,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...r.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:e=>n(e)}})}),n)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion"),n(p,"canPlay",f.canPlay.dailymotion),n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; \ No newline at end of file +import{g as P,r as v}from"./index-BP8_t0zE.js";import{u as D,p as O}from"./VideoPlayer-Dilqd3c4.js";function b(e,t){for(var r=0;rn[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of S(t))!T.call(e,o)&&o!==r&&s(e,o,{get:()=>t[o],enumerable:!(n=w(t,o))||n.enumerable});return e},L=(e,t,r)=>(r=null!=e?M(j(e)):{},h(e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),C=e=>h(s({},"__esModule",{value:!0}),e),n=(e,t,r)=>(E(e,"symbol"!=typeof t?t+"":t,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const N="https://api.dmcdn.net/all.js",x="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),n(this,"unmute",(()=>{this.callPlayer("setMuted",!1)})),n(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:t,config:r,onError:n,playing:o}=this.props,[,a]=e.match(f.MATCH_URL_DAILYMOTION);this.player?this.player.load(a,{start:(0,l.parseStartTime)(e),autoplay:o}):(0,l.getSDK)(N,x,K,(e=>e.player)).then((o=>{if(!this.container)return;const s=o.player;this.player=new s(this.container,{width:"100%",height:"100%",video:a,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...r.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:e=>n(e)}})}),n)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion"),n(p,"canPlay",f.canPlay.dailymotion),n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; \ No newline at end of file diff --git a/storybook-static/assets/DiscussionContainer-CmOO164Y.js b/storybook-static/assets/DiscussionContainer-yXJCotUg.js similarity index 89% rename from storybook-static/assets/DiscussionContainer-CmOO164Y.js rename to storybook-static/assets/DiscussionContainer-yXJCotUg.js index bf93d20a6a..5ea53cd12b 100644 --- a/storybook-static/assets/DiscussionContainer-CmOO164Y.js +++ b/storybook-static/assets/DiscussionContainer-yXJCotUg.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{C as I}from"./CommentList-Al_JOVpj.js";import{C as _}from"./CreateComment-ButSCGtD.js";import{D}from"./DiscussionTitle-Dhry4tok.js";import{F as d}from"./theme-ui-components.esm-DCiJ1mMX.js";const S=e=>{const n=[],t={};for(const i of e)if(t[i._id]=i,i.parentCommentId){const e=t[i.parentCommentId];if(!e)continue;e.replies||(e.replies=[]),e.replies.push(i)}for(const i of e)i.parentCommentId||n.push(i);return n},p=e=>{const{comment:n,comments:t,handleDelete:i,handleEdit:m,handleEditRequest:s,onSubmitReply:l,highlightedCommentId:r,maxLength:a,onChange:p,onMoreComments:c,onSubmit:g,isLoggedIn:h,isSubmitting:f,supportReplies:C=!1}=e,[y,b]=u.useState(null),q=u.useMemo((()=>S(t)),[t]);return o.jsxs(d,{sx:{flexDirection:"column",gap:2},children:[o.jsx(D,{comments:t}),o.jsx(I,{supportReplies:C,comments:q,handleDelete:i,handleEdit:m,handleEditRequest:s,highlightedCommentId:r,isLoggedIn:h,isReplies:!1,maxLength:a,onMoreComments:c,onSubmitReply:l,setCommentBeingRepliedTo:e=>{b(e!==y?e:null)}}),o.jsx(d,{sx:{alignItems:"stretch",background:"softblue",borderRadius:2,flexDirection:"column",padding:3},children:o.jsx(_,{isLoading:f,maxLength:a,comment:n,onChange:p,onSubmit:g,isLoggedIn:h})})]})};try{p.displayName="DiscussionContainer",p.__docgenInfo={description:"",displayName:"DiscussionContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(comment: string) => void"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(comment: string) => void"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!0,type:{name:"(_id: string, reply: string) => Promise"}},isSubmitting:{defaultValue:null,description:"",name:"isSubmitting",required:!0,type:{name:"boolean"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}}}}}catch{}export{p as D}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{C as I}from"./CommentList-DhPqgHRE.js";import{C as _}from"./CreateComment-C20B3Odi.js";import{D}from"./DiscussionTitle-Dhry4tok.js";import{F as d}from"./theme-ui-components.esm-DCiJ1mMX.js";const S=e=>{const n=[],t={};for(const i of e)if(t[i._id]=i,i.parentCommentId){const e=t[i.parentCommentId];if(!e)continue;e.replies||(e.replies=[]),e.replies.push(i)}for(const i of e)i.parentCommentId||n.push(i);return n},p=e=>{const{comment:n,comments:t,handleDelete:i,handleEdit:m,handleEditRequest:s,onSubmitReply:l,highlightedCommentId:r,maxLength:a,onChange:p,onMoreComments:c,onSubmit:g,isLoggedIn:h,isSubmitting:f,supportReplies:C=!1}=e,[y,q]=u.useState(null),b=u.useMemo((()=>S(t)),[t]);return o.jsxs(d,{sx:{flexDirection:"column",gap:2},children:[o.jsx(D,{comments:t}),o.jsx(I,{supportReplies:C,comments:b,handleDelete:i,handleEdit:m,handleEditRequest:s,highlightedCommentId:r,isLoggedIn:h,isReplies:!1,maxLength:a,onMoreComments:c,onSubmitReply:l,setCommentBeingRepliedTo:e=>{q(e!==y?e:null)}}),o.jsx(d,{sx:{alignItems:"stretch",background:"softblue",borderRadius:2,flexDirection:"column",padding:3},children:o.jsx(_,{isLoading:f,maxLength:a,comment:n,onChange:p,onSubmit:g,isLoggedIn:h})})]})};try{p.displayName="DiscussionContainer",p.__docgenInfo={description:"",displayName:"DiscussionContainer",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},comments:{defaultValue:null,description:"",name:"comments",required:!0,type:{name:"IComment[]"}},handleDelete:{defaultValue:null,description:"",name:"handleDelete",required:!0,type:{name:"(_id: string) => Promise"}},handleEdit:{defaultValue:null,description:"",name:"handleEdit",required:!0,type:{name:"(_id: string, comment: string) => Promise"}},handleEditRequest:{defaultValue:null,description:"",name:"handleEditRequest",required:!0,type:{name:"() => Promise"}},highlightedCommentId:{defaultValue:null,description:"",name:"highlightedCommentId",required:!1,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!0,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(comment: string) => void"}},onMoreComments:{defaultValue:null,description:"",name:"onMoreComments",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(comment: string) => void"}},onSubmitReply:{defaultValue:null,description:"",name:"onSubmitReply",required:!0,type:{name:"(_id: string, reply: string) => Promise"}},isSubmitting:{defaultValue:null,description:"",name:"isSubmitting",required:!0,type:{name:"boolean"}},supportReplies:{defaultValue:null,description:"",name:"supportReplies",required:!1,type:{name:"boolean"}}}}}catch{}export{p as D}; \ No newline at end of file diff --git a/storybook-static/assets/DiscussionContainer.stories-BwFx5ZIz.js b/storybook-static/assets/DiscussionContainer.stories-B3LOe7IO.js similarity index 90% rename from storybook-static/assets/DiscussionContainer.stories-BwFx5ZIz.js rename to storybook-static/assets/DiscussionContainer.stories-B3LOe7IO.js index 48614dbd3b..5dae7d593e 100644 --- a/storybook-static/assets/DiscussionContainer.stories-BwFx5ZIz.js +++ b/storybook-static/assets/DiscussionContainer.stories-B3LOe7IO.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{c as a}from"./utils-BRZF2j4e.js";import{D as e}from"./DiscussionContainer-CmOO164Y.js";import"./index-D_kXk1yT.js";import"./CommentList-Al_JOVpj.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonShowReplies-CiHAfYgx.js";import"./DiscussionTitle-Dhry4tok.js";import"./CommentItem-DIZh1yYT.js";import"./ConfirmModal-DGUUT3uo.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-8pUkm3CJ.js";import"./typeof-QjJsDpFa.js";import"./EditComment-DY_6Q1TM.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";import"./LinkifyText-CTcW0PSE.js";import"./ExternalLink-CHmx7fZ7.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BXxqJQdV.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./CreateReply-ByN4QqWr.js";import"./CreateComment-ButSCGtD.js";import"./MemberBadge-DaB6gu8F.js";const fe={title:"Discussions/DiscussionContainer",component:e},I=a(3),q=a(15),s={render:()=>n.jsx(e,{comment:"",comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},m={render:()=>n.jsx(e,{comments:[],handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:"",onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},r={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},i={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:q,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},l={render:()=>{const[o,s]=u.useState(""),t=a(3);return t[0].replies=a(2),n.jsx(e,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,isLoggedIn:!0,isSubmitting:!1,onSubmitReply:async(e,o)=>alert(`reply to commentId: ${e} with comment: ${o}`)})}};var d,p,g,h,C,S,v,P,b,f,E,R,x,D,L;s.parameters={...s.parameters,docs:{...null==(d=s.parameters)?void 0:d.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(g=null==(p=s.parameters)?void 0:p.docs)?void 0:g.source}}},m.parameters={...m.parameters,docs:{...null==(h=m.parameters)?void 0:h.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={''} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(S=null==(C=m.parameters)?void 0:C.docs)?void 0:S.source}}},r.parameters={...r.parameters,docs:{...null==(v=r.parameters)?void 0:v.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(b=null==(P=r.parameters)?void 0:P.docs)?void 0:b.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(R=null==(E=i.parameters)?void 0:E.docs)?void 0:R.source}}},l.parameters={...l.parameters,docs:{...null==(x=l.parameters)?void 0:x.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n const fakeComments = createFakeComments(3);\n fakeComments[0].replies = createFakeComments(2);\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} isLoggedIn={true} isSubmitting={false} onSubmitReply={async (commentId, comment) => alert(`reply to commentId: ${commentId} with comment: ${comment}`)} />;\n }\n}",...null==(L=null==(D=l.parameters)?void 0:D.docs)?void 0:L.source}}};const Ee=["Default","NoComments","LoggedIn","Expandable","WithReplies"];export{s as Default,i as Expandable,r as LoggedIn,m as NoComments,l as WithReplies,Ee as __namedExportsOrder,fe as default}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{c as a}from"./utils-BRZF2j4e.js";import{D as e}from"./DiscussionContainer-yXJCotUg.js";import"./index-D_kXk1yT.js";import"./CommentList-DhPqgHRE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonShowReplies-nddYmg0q.js";import"./DiscussionTitle-Dhry4tok.js";import"./CommentItem-DZgP41nA.js";import"./ConfirmModal-BcXyrr5V.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DisplayDate-8pUkm3CJ.js";import"./typeof-QjJsDpFa.js";import"./EditComment-CS1dAl1Z.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";import"./LinkifyText-CTcW0PSE.js";import"./ExternalLink-CHmx7fZ7.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BXxqJQdV.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./CreateReply-2Azc7a5m.js";import"./CreateComment-C20B3Odi.js";import"./MemberBadge-BFCUvfGJ.js";const fe={title:"Discussions/DiscussionContainer",component:e},I=a(3),q=a(15),s={render:()=>n.jsx(e,{comment:"",comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},m={render:()=>n.jsx(e,{comments:[],handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:"",onChange:()=>null,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!1})},r={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:I,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},i={render:()=>{const[o,s]=u.useState("");return n.jsx(e,{comments:q,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,onSubmitReply:()=>Promise.resolve(),isSubmitting:!1,isLoggedIn:!0})}},l={render:()=>{const[o,s]=u.useState(""),t=a(3);return t[0].replies=a(2),n.jsx(e,{supportReplies:!0,comments:t,handleDelete:()=>Promise.resolve(),handleEditRequest:()=>Promise.resolve(),handleEdit:()=>Promise.resolve(),maxLength:1e3,comment:o,onChange:s,onMoreComments:()=>null,onSubmit:()=>null,isLoggedIn:!0,isSubmitting:!1,onSubmitReply:async(e,o)=>alert(`reply to commentId: ${e} with comment: ${o}`)})}};var d,p,g,h,C,S,v,P,b,f,E,R,x,D,L;s.parameters={...s.parameters,docs:{...null==(d=s.parameters)?void 0:d.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(g=null==(p=s.parameters)?void 0:p.docs)?void 0:g.source}}},m.parameters={...m.parameters,docs:{...null==(h=m.parameters)?void 0:h.docs,source:{originalSource:"{\n render: () => {\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={''} onChange={() => null} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={false} />;\n }\n}",...null==(S=null==(C=m.parameters)?void 0:C.docs)?void 0:S.source}}},r.parameters={...r.parameters,docs:{...null==(v=r.parameters)?void 0:v.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(b=null==(P=r.parameters)?void 0:P.docs)?void 0:b.source}}},i.parameters={...i.parameters,docs:{...null==(f=i.parameters)?void 0:f.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} onSubmitReply={() => Promise.resolve()} isSubmitting={false} isLoggedIn={true} />;\n }\n}",...null==(R=null==(E=i.parameters)?void 0:E.docs)?void 0:R.source}}},l.parameters={...l.parameters,docs:{...null==(x=l.parameters)?void 0:x.docs,source:{originalSource:"{\n render: () => {\n const [comment, setComment] = useState('');\n const fakeComments = createFakeComments(3);\n fakeComments[0].replies = createFakeComments(2);\n return Promise.resolve()} handleEditRequest={() => Promise.resolve()} handleEdit={() => Promise.resolve()} maxLength={1000} comment={comment} onChange={setComment} onMoreComments={() => null} onSubmit={() => null} isLoggedIn={true} isSubmitting={false} onSubmitReply={async (commentId, comment) => alert(`reply to commentId: ${commentId} with comment: ${comment}`)} />;\n }\n}",...null==(L=null==(D=l.parameters)?void 0:D.docs)?void 0:L.source}}};const Ee=["Default","NoComments","LoggedIn","Expandable","WithReplies"];export{s as Default,i as Expandable,r as LoggedIn,m as NoComments,l as WithReplies,Ee as __namedExportsOrder,fe as default}; \ No newline at end of file diff --git a/storybook-static/assets/DocsRenderer-NNNQARDV-DnPKK__Y.js b/storybook-static/assets/DocsRenderer-NNNQARDV-C89jQal3.js similarity index 75% rename from storybook-static/assets/DocsRenderer-NNNQARDV-DnPKK__Y.js rename to storybook-static/assets/DocsRenderer-NNNQARDV-C89jQal3.js index 469a6560a6..eb800b00fd 100644 --- a/storybook-static/assets/DocsRenderer-NNNQARDV-DnPKK__Y.js +++ b/storybook-static/assets/DocsRenderer-NNNQARDV-C89jQal3.js @@ -1 +1 @@ -const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./index-gbZvCw43.js","./index-BP8_t0zE.js"]))=>e.map((e=>r[e]));import{_ as p}from"./iframe-BRhzNi2b.js";import{a as e,r as c}from"./index-BP8_t0zE.js";import{r as u,u as l}from"./react-18-Bze0iTLm.js";import{C as h,A as E,H as d,D as x}from"./index-HxeQ2bN6.js";import"../sb-preview/runtime.js";import"./index-BBRV8eG_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";var D={code:h,a:E,...d},_=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},k=class{constructor(){this.render=async(t,r,s)=>{let o={...D,...null==r?void 0:r.components},i=x;return new Promise(((n,a)=>{p((async()=>{const{MDXProvider:e}=await import("./index-gbZvCw43.js");return{MDXProvider:e}}),__vite__mapDeps([0,1]),import.meta.url).then((({MDXProvider:n})=>u(e.createElement(_,{showException:a,key:Math.random()},e.createElement(n,{components:o},e.createElement(i,{context:t,docsParameter:r}))),s))).then((()=>n()))}))},this.unmount=e=>{l(e)}}};export{k as DocsRenderer,D as defaultComponents}; \ No newline at end of file +const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./index-gbZvCw43.js","./index-BP8_t0zE.js"]))=>e.map((e=>r[e]));import{_ as p}from"./iframe-JYjbkGI-.js";import{a as e,r as c}from"./index-BP8_t0zE.js";import{r as u,u as l}from"./react-18-Bze0iTLm.js";import{C as h,A as E,H as d,D as x}from"./index-BYSxpCNe.js";import"../sb-preview/runtime.js";import"./index-BBRV8eG_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";var D={code:h,a:E,...d},_=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},k=class{constructor(){this.render=async(t,r,s)=>{let o={...D,...null==r?void 0:r.components},n=x;return new Promise(((i,a)=>{p((async()=>{const{MDXProvider:e}=await import("./index-gbZvCw43.js");return{MDXProvider:e}}),__vite__mapDeps([0,1]),import.meta.url).then((({MDXProvider:i})=>u(e.createElement(_,{showException:a,key:Math.random()},e.createElement(i,{components:o},e.createElement(n,{context:t,docsParameter:r}))),s))).then((()=>i()))}))},this.unmount=e=>{l(e)}}};export{k as DocsRenderer,D as defaultComponents}; \ No newline at end of file diff --git a/storybook-static/assets/DonationRequest-0J0Ydxwt.js b/storybook-static/assets/DonationRequest-DuTXC9D9.js similarity index 97% rename from storybook-static/assets/DonationRequest-0J0Ydxwt.js rename to storybook-static/assets/DonationRequest-DuTXC9D9.js index 6ff984f4fc..2eefd2ae35 100644 --- a/storybook-static/assets/DonationRequest-0J0Ydxwt.js +++ b/storybook-static/assets/DonationRequest-DuTXC9D9.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as p}from"./Button-B7QBvkxh.js";import{E as x}from"./ExternalLink-CHmx7fZ7.js";import{C as m,F as t,c as f,T as a}from"./theme-ui-components.esm-DCiJ1mMX.js";const h="https://donorbox.org/embed/onearmy?a=b",o="Support our work",g="Thank you for helping to make this possible",y="Download",i=n=>{const{body:i,callback:r,iframeSrc:s,imageURL:d,link:l}=n,c={allowpaymentrequest:"allowpaymentrequest",allow:"payment","data-donorbox-id":"DonorBox-f2","data-testid":"donationRequestIframe",frameBorder:"0",name:"donorbox",seamless:!0,src:s||h};return e.jsxs(e.Fragment,{children:[e.jsxs(m,{sx:{overflowY:"auto",scrollbarWidth:"thin",borderRadius:"4px 4px 0 0"},"data-cy":"DonationRequest","data-testid":"DonationRequest",children:[e.jsx("script",{src:"https://donorbox.org/widget.js","data-paypalexpress":"false"}),e.jsxs(t,{sx:{flexDirection:["column","row"]},children:[e.jsxs(t,{sx:{flexDirection:"column",flex:1},children:[d&&e.jsx(t,{sx:{display:["none","inline"]},children:e.jsx(f,{loading:"lazy",ratio:16/9,src:d,alt:o,"data-testid":"donationRequestImage"})}),e.jsxs(a,{sx:{padding:[2,4,6]},children:[e.jsx(a,{as:"h1",children:o}),e.jsx("p",{children:i}),e.jsx("p",{children:g})]})]}),e.jsx(t,{sx:{borderLeft:[0,"2px solid"],minHeight:"542px",width:["100%","350px","400px"]},children:e.jsx("iframe",{...c,loading:"lazy",style:{border:"0",overflow:"scroll",width:"100%"}})})]})]}),e.jsx(t,{sx:{backgroundColor:"offWhite",borderRadius:"0 0 4px 4px",flexDirection:["column","row"],padding:2,gap:2,justifyContent:"flex-end",alignItems:"center"},children:e.jsx(x,{href:l,onClick:r,"data-cy":"DonationRequestSkip","data-testid":"DonationRequestSkip",children:e.jsx(p,{children:y})})})]})};try{i.displayName="DonationRequest",i.__docgenInfo={description:"",displayName:"DonationRequest",props:{body:{defaultValue:null,description:"",name:"body",required:!0,type:{name:"string | undefined"}},callback:{defaultValue:null,description:"",name:"callback",required:!0,type:{name:"() => void"}},iframeSrc:{defaultValue:null,description:"",name:"iframeSrc",required:!0,type:{name:"string | undefined"}},imageURL:{defaultValue:null,description:"",name:"imageURL",required:!0,type:{name:"string | undefined"}},link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}}}}}catch{}export{i as D}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as p}from"./Button-1qf_V-Zv.js";import{E as x}from"./ExternalLink-CHmx7fZ7.js";import{C as m,F as t,c as f,T as a}from"./theme-ui-components.esm-DCiJ1mMX.js";const h="https://donorbox.org/embed/onearmy?a=b",o="Support our work",g="Thank you for helping to make this possible",y="Download",i=n=>{const{body:i,callback:r,iframeSrc:s,imageURL:d,link:l}=n,c={allowpaymentrequest:"allowpaymentrequest",allow:"payment","data-donorbox-id":"DonorBox-f2","data-testid":"donationRequestIframe",frameBorder:"0",name:"donorbox",seamless:!0,src:s||h};return e.jsxs(e.Fragment,{children:[e.jsxs(m,{sx:{overflowY:"auto",scrollbarWidth:"thin",borderRadius:"4px 4px 0 0"},"data-cy":"DonationRequest","data-testid":"DonationRequest",children:[e.jsx("script",{src:"https://donorbox.org/widget.js","data-paypalexpress":"false"}),e.jsxs(t,{sx:{flexDirection:["column","row"]},children:[e.jsxs(t,{sx:{flexDirection:"column",flex:1},children:[d&&e.jsx(t,{sx:{display:["none","inline"]},children:e.jsx(f,{loading:"lazy",ratio:16/9,src:d,alt:o,"data-testid":"donationRequestImage"})}),e.jsxs(a,{sx:{padding:[2,4,6]},children:[e.jsx(a,{as:"h1",children:o}),e.jsx("p",{children:i}),e.jsx("p",{children:g})]})]}),e.jsx(t,{sx:{borderLeft:[0,"2px solid"],minHeight:"542px",width:["100%","350px","400px"]},children:e.jsx("iframe",{...c,loading:"lazy",style:{border:"0",overflow:"scroll",width:"100%"}})})]})]}),e.jsx(t,{sx:{backgroundColor:"offWhite",borderRadius:"0 0 4px 4px",flexDirection:["column","row"],padding:2,gap:2,justifyContent:"flex-end",alignItems:"center"},children:e.jsx(x,{href:l,onClick:r,"data-cy":"DonationRequestSkip","data-testid":"DonationRequestSkip",children:e.jsx(p,{children:y})})})]})};try{i.displayName="DonationRequest",i.__docgenInfo={description:"",displayName:"DonationRequest",props:{body:{defaultValue:null,description:"",name:"body",required:!0,type:{name:"string | undefined"}},callback:{defaultValue:null,description:"",name:"callback",required:!0,type:{name:"() => void"}},iframeSrc:{defaultValue:null,description:"",name:"iframeSrc",required:!0,type:{name:"string | undefined"}},imageURL:{defaultValue:null,description:"",name:"imageURL",required:!0,type:{name:"string | undefined"}},link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}}}}}catch{}export{i as D}; \ No newline at end of file diff --git a/storybook-static/assets/DonationRequest.stories-qLdqat5A.js b/storybook-static/assets/DonationRequest.stories-DCE7Ietr.js similarity index 93% rename from storybook-static/assets/DonationRequest.stories-qLdqat5A.js rename to storybook-static/assets/DonationRequest.stories-DCE7Ietr.js index ac7cff7cf5..9607e41dcf 100644 --- a/storybook-static/assets/DonationRequest.stories-qLdqat5A.js +++ b/storybook-static/assets/DonationRequest.stories-DCE7Ietr.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{D as n}from"./DonationRequest-0J0Ydxwt.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";const D={title:"Components/DonationRequest",component:n},o=()=>t.jsx("div",{style:{maxWidth:"1000px"},children:t.jsx(n,{body:"All of the content here is free. Your donation supports this library of Open Source recycling knowledge. Making it possible for everyone in the world to use it and start recycling.",callback:()=>{},iframeSrc:"https://donorbox.org/embed/ppcpdonor?language=en",imageURL:"https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9",link:"https://bbc.co.uk/"})});var e,r,i;o.parameters={...o.parameters,docs:{...null==(e=o.parameters)?void 0:e.docs,source:{originalSource:'() =>
\n {}} iframeSrc="https://donorbox.org/embed/ppcpdonor?language=en" imageURL="https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9" link="https://bbc.co.uk/" />\n
',...null==(i=null==(r=o.parameters)?void 0:r.docs)?void 0:i.source}}};const R=["Default"];export{o as Default,R as __namedExportsOrder,D as default}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{D as n}from"./DonationRequest-DuTXC9D9.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";const D={title:"Components/DonationRequest",component:n},o=()=>t.jsx("div",{style:{maxWidth:"1000px"},children:t.jsx(n,{body:"All of the content here is free. Your donation supports this library of Open Source recycling knowledge. Making it possible for everyone in the world to use it and start recycling.",callback:()=>{},iframeSrc:"https://donorbox.org/embed/ppcpdonor?language=en",imageURL:"https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9",link:"https://bbc.co.uk/"})});var e,r,i;o.parameters={...o.parameters,docs:{...null==(e=o.parameters)?void 0:e.docs,source:{originalSource:'() =>
\n {}} iframeSrc="https://donorbox.org/embed/ppcpdonor?language=en" imageURL="https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9" link="https://bbc.co.uk/" />\n
',...null==(i=null==(r=o.parameters)?void 0:r.docs)?void 0:i.source}}};const R=["Default"];export{o as Default,R as __namedExportsOrder,D as default}; \ No newline at end of file diff --git a/storybook-static/assets/DonationRequestModal-BNxPzf8m.js b/storybook-static/assets/DonationRequestModal-Gqs-htQ0.js similarity index 94% rename from storybook-static/assets/DonationRequestModal-BNxPzf8m.js rename to storybook-static/assets/DonationRequestModal-Gqs-htQ0.js index c56692b440..2a3980818e 100644 --- a/storybook-static/assets/DonationRequestModal-BNxPzf8m.js +++ b/storybook-static/assets/DonationRequestModal-Gqs-htQ0.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{D as m}from"./DonationRequest-0J0Ydxwt.js";import{M as p}from"./Modal-CNp0gEVS.js";const i=e=>{const{body:i,callback:a,iframeSrc:r,imageURL:d,isOpen:t,link:l,onDidDismiss:s}=e;return n.jsx(p,{onDidDismiss:s,isOpen:t,sx:{width:["500px","750px","1050px"],minWidth:"350px",border:"0 !important",background:"none !important"},children:n.jsx(m,{body:i,callback:a,iframeSrc:r,link:l,imageURL:d})})};try{i.displayName="DonationRequestModal",i.__docgenInfo={description:"",displayName:"DonationRequestModal",props:{body:{defaultValue:null,description:"",name:"body",required:!0,type:{name:"string | undefined"}},callback:{defaultValue:null,description:"",name:"callback",required:!0,type:{name:"() => void"}},imageURL:{defaultValue:null,description:"",name:"imageURL",required:!0,type:{name:"string | undefined"}},iframeSrc:{defaultValue:null,description:"",name:"iframeSrc",required:!0,type:{name:"string | undefined"}},isOpen:{defaultValue:null,description:"",name:"isOpen",required:!0,type:{name:"boolean"}},link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},onDidDismiss:{defaultValue:null,description:"",name:"onDidDismiss",required:!0,type:{name:"() => void"}}}}}catch{}export{i as D}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{D as m}from"./DonationRequest-DuTXC9D9.js";import{M as p}from"./Modal-CNp0gEVS.js";const i=e=>{const{body:i,callback:a,iframeSrc:r,imageURL:d,isOpen:t,link:l,onDidDismiss:s}=e;return n.jsx(p,{onDidDismiss:s,isOpen:t,sx:{width:["500px","750px","1050px"],minWidth:"350px",border:"0 !important",background:"none !important"},children:n.jsx(m,{body:i,callback:a,iframeSrc:r,link:l,imageURL:d})})};try{i.displayName="DonationRequestModal",i.__docgenInfo={description:"",displayName:"DonationRequestModal",props:{body:{defaultValue:null,description:"",name:"body",required:!0,type:{name:"string | undefined"}},callback:{defaultValue:null,description:"",name:"callback",required:!0,type:{name:"() => void"}},imageURL:{defaultValue:null,description:"",name:"imageURL",required:!0,type:{name:"string | undefined"}},iframeSrc:{defaultValue:null,description:"",name:"iframeSrc",required:!0,type:{name:"string | undefined"}},isOpen:{defaultValue:null,description:"",name:"isOpen",required:!0,type:{name:"boolean"}},link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},onDidDismiss:{defaultValue:null,description:"",name:"onDidDismiss",required:!0,type:{name:"() => void"}}}}}catch{}export{i as D}; \ No newline at end of file diff --git a/storybook-static/assets/DonationRequestModal.stories-CrO2izOz.js b/storybook-static/assets/DonationRequestModal.stories-LHfLELJL.js similarity index 94% rename from storybook-static/assets/DonationRequestModal.stories-CrO2izOz.js rename to storybook-static/assets/DonationRequestModal.stories-LHfLELJL.js index d4196c8ab4..07689d77a2 100644 --- a/storybook-static/assets/DonationRequestModal.stories-CrO2izOz.js +++ b/storybook-static/assets/DonationRequestModal.stories-LHfLELJL.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-CexXSJP5.js";import{r as c}from"./index-BP8_t0zE.js";import{D as s}from"./DonationRequestModal-BNxPzf8m.js";import"./DonationRequest-0J0Ydxwt.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";const v={title:"Components/DonationRequestModal",component:s},o=()=>{const[o,e]=c.useState(!0);return l.jsx(s,{body:"All of the content here is free. Your donation supports this library of Open Source recycling knowledge. Making it possible for everyone in the world to use it and start recycling.",callback:()=>{},iframeSrc:"https://donorbox.org/embed/ppcpdonor?language=en",imageURL:"https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9",isOpen:o,link:"http://bbc.co.uk/",onDidDismiss:()=>e(!o)})};var e,r,n;o.parameters={...o.parameters,docs:{...null==(e=o.parameters)?void 0:e.docs,source:{originalSource:'() => {\n const [isModalOpen, setIsModalOpen] = useState(true);\n const toggleIsModalOpen = () => setIsModalOpen(!isModalOpen);\n const callback = () => {};\n const link = \'http://bbc.co.uk/\';\n return toggleIsModalOpen()} />;\n}',...null==(n=null==(r=o.parameters)?void 0:r.docs)?void 0:n.source}}};const A=["Default"];export{o as Default,A as __namedExportsOrder,v as default}; \ No newline at end of file +import{j as l}from"./jsx-runtime-CexXSJP5.js";import{r as c}from"./index-BP8_t0zE.js";import{D as s}from"./DonationRequestModal-Gqs-htQ0.js";import"./DonationRequest-DuTXC9D9.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";const v={title:"Components/DonationRequestModal",component:s},o=()=>{const[o,e]=c.useState(!0);return l.jsx(s,{body:"All of the content here is free. Your donation supports this library of Open Source recycling knowledge. Making it possible for everyone in the world to use it and start recycling.",callback:()=>{},iframeSrc:"https://donorbox.org/embed/ppcpdonor?language=en",imageURL:"https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9",isOpen:o,link:"http://bbc.co.uk/",onDidDismiss:()=>e(!o)})};var e,r,n;o.parameters={...o.parameters,docs:{...null==(e=o.parameters)?void 0:e.docs,source:{originalSource:'() => {\n const [isModalOpen, setIsModalOpen] = useState(true);\n const toggleIsModalOpen = () => setIsModalOpen(!isModalOpen);\n const callback = () => {};\n const link = \'http://bbc.co.uk/\';\n return toggleIsModalOpen()} />;\n}',...null==(n=null==(r=o.parameters)?void 0:r.docs)?void 0:n.source}}};const A=["Default"];export{o as Default,A as __namedExportsOrder,v as default}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadButton-C_Yd3Qr5.js b/storybook-static/assets/DownloadButton-C_Yd3Qr5.js deleted file mode 100644 index 99dd30b2d8..0000000000 --- a/storybook-static/assets/DownloadButton-C_Yd3Qr5.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as r}from"./Icon-BoVZOGVD.js";import{T as n}from"./Tooltip-B9mgSRkZ.js";import{F as i,T as v}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=({glyph:a,isLoggedIn:l,label:u,onClick:o})=>e.jsxs(e.Fragment,{children:[e.jsxs(i,{p:2,mb:1,sx:{background:"accent.base",border:"2px solid black",justifyContent:"space-between",alignItems:"center",flexDirection:"row",maxWidth:"300px",borderRadius:1,cursor:"pointer"},onClick:o,"data-cy":"downloadButton","data-testid":"downloadButton","data-tooltip-id":"download-files","data-tooltip-content":l?"":"Login to download",children:[e.jsx(r,{size:24,glyph:a||"external-url",mr:3}),e.jsx(v,{sx:{flex:1,fontSize:1,color:"black"},mr:3,children:u||"Download files"})]}),e.jsx(n,{id:"download-files"})]});try{u.displayName="DownloadButton",u.__docgenInfo={description:"",displayName:"DownloadButton",props:{onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},glyph:{defaultValue:null,description:"",name:"glyph",required:!1,type:{name:"enum",value:[{value:'"map"'},{value:'"menu"'},{value:'"search"'},{value:'"time"'},{value:'"filter"'},{value:'"image"'},{value:'"view"'},{value:'"email"'},{value:'"step"'},{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"volunteer"'},{value:'"website"'},{value:'"globe"'},{value:'"gps-location"'}]}}}}}catch{}export{u as D}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadButton-DzIURGFB.js b/storybook-static/assets/DownloadButton-DzIURGFB.js new file mode 100644 index 0000000000..ed6734d89f --- /dev/null +++ b/storybook-static/assets/DownloadButton-DzIURGFB.js @@ -0,0 +1 @@ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as r}from"./Icon-DVJa_328.js";import{T as n}from"./Tooltip-B9mgSRkZ.js";import{F as i,T as v}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=({glyph:a,isLoggedIn:l,label:u,onClick:o})=>e.jsxs(e.Fragment,{children:[e.jsxs(i,{p:2,mb:1,sx:{background:"accent.base",border:"2px solid black",justifyContent:"space-between",alignItems:"center",flexDirection:"row",maxWidth:"300px",borderRadius:1,cursor:"pointer"},onClick:o,"data-cy":"downloadButton","data-testid":"downloadButton","data-tooltip-id":"download-files","data-tooltip-content":l?"":"Login to download",children:[e.jsx(r,{size:24,glyph:a||"external-url",mr:3}),e.jsx(v,{sx:{flex:1,fontSize:1,color:"black"},mr:3,children:u||"Download files"})]}),e.jsx(n,{id:"download-files"})]});try{u.displayName="DownloadButton",u.__docgenInfo={description:"",displayName:"DownloadButton",props:{onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},glyph:{defaultValue:null,description:"",name:"glyph",required:!1,type:{name:"enum",value:[{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"filter"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"image"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"map"'},{value:'"menu"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"step"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"time"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"view"'},{value:'"volunteer"'},{value:'"website"'},{value:'"search"'},{value:'"globe"'},{value:'"gps-location"'}]}}}}}catch{}export{u as D}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadButton.stories-BYGgC8R9.js b/storybook-static/assets/DownloadButton.stories-CJvBcDAD.js similarity index 91% rename from storybook-static/assets/DownloadButton.stories-BYGgC8R9.js rename to storybook-static/assets/DownloadButton.stories-CJvBcDAD.js index cf2e84660c..77bb3b1815 100644 --- a/storybook-static/assets/DownloadButton.stories-BYGgC8R9.js +++ b/storybook-static/assets/DownloadButton.stories-CJvBcDAD.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{D as r}from"./DownloadButton-C_Yd3Qr5.js";import"./index-BP8_t0zE.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const y={title:"Components/DownloadButton",component:r},o=()=>i.jsx(r,{onClick:()=>{}}),t=()=>i.jsx(r,{onClick:()=>{},glyph:"download-cloud",label:"Hello there"});var e,s,a,m,l,p;o.parameters={...o.parameters,docs:{...null==(e=o.parameters)?void 0:e.docs,source:{originalSource:"() => {}} />",...null==(a=null==(s=o.parameters)?void 0:s.docs)?void 0:a.source}}},t.parameters={...t.parameters,docs:{...null==(m=t.parameters)?void 0:m.docs,source:{originalSource:'() => {}} glyph="download-cloud" label="Hello there" />',...null==(p=null==(l=t.parameters)?void 0:l.docs)?void 0:p.source}}};const E=["Default","CustomDetails"];export{t as CustomDetails,o as Default,E as __namedExportsOrder,y as default}; \ No newline at end of file +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{D as r}from"./DownloadButton-DzIURGFB.js";import"./index-BP8_t0zE.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const y={title:"Components/DownloadButton",component:r},o=()=>i.jsx(r,{onClick:()=>{}}),t=()=>i.jsx(r,{onClick:()=>{},glyph:"download-cloud",label:"Hello there"});var e,s,a,m,l,p;o.parameters={...o.parameters,docs:{...null==(e=o.parameters)?void 0:e.docs,source:{originalSource:"() => {}} />",...null==(a=null==(s=o.parameters)?void 0:s.docs)?void 0:a.source}}},t.parameters={...t.parameters,docs:{...null==(m=t.parameters)?void 0:m.docs,source:{originalSource:'() => {}} glyph="download-cloud" label="Hello there" />',...null==(p=null==(l=t.parameters)?void 0:l.docs)?void 0:p.source}}};const E=["Default","CustomDetails"];export{t as CustomDetails,o as Default,E as __namedExportsOrder,y as default}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadStaticFile-BGuyYeyj.js b/storybook-static/assets/DownloadStaticFile-BxfNeVDS.js similarity index 94% rename from storybook-static/assets/DownloadStaticFile-BGuyYeyj.js rename to storybook-static/assets/DownloadStaticFile-BxfNeVDS.js index 5b7ba6133c..43ba627f32 100644 --- a/storybook-static/assets/DownloadStaticFile-BGuyYeyj.js +++ b/storybook-static/assets/DownloadStaticFile-BxfNeVDS.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{D as u}from"./DownloadButton-C_Yd3Qr5.js";import{E as m}from"./ExternalLink-CHmx7fZ7.js";import{I as f}from"./Icon-BoVZOGVD.js";import{T as w}from"./Tooltip-B9mgSRkZ.js";import{F as x,T as d}from"./theme-ui-components.esm-DCiJ1mMX.js";const s=e=>{const{file:n,glyph:i,size:l,redirectToSignIn:t}=e;return o.jsxs(o.Fragment,{children:[o.jsxs(x,{p:2,mb:1,sx:{borderRadius:1,border:"2px solid black",background:"accent.base",color:"black",justifyContent:"space-between",alignItems:"center",flexDirection:"row",width:"300px",cursor:"pointer"},onClick:()=>t&&t(),"data-tooltip-id":"login-download","data-tooltip-content":t?"Login to download":"",children:[o.jsx(f,{size:24,glyph:i,mr:3}),o.jsx(d,{sx:{flex:1,fontSize:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},mr:3,children:n.name}),o.jsx(d,{sx:{fontSize:1},children:l})]}),o.jsx(w,{id:"login-download"})]})},c=({file:e,allowDownload:n,handleClick:i,redirectToSignIn:l,forDonationRequest:t,isLoggedIn:r})=>{const a=g(e.size||0);if(!e)return null;const d=n&&e.downloadUrl&&!l;return o.jsxs(o.Fragment,{children:[d&&o.jsx(m,{m:1,onClick:()=>i&&i(),href:e.downloadUrl,download:e.name,style:{width:"300px",marginLeft:0},children:o.jsx(s,{file:e,glyph:"download-cloud",size:a})}),t&&o.jsx(u,{onClick:()=>i&&i(),isLoggedIn:r,label:`${e.name} (${a})`,glyph:"download-cloud"}),!d&&!t&&o.jsx(s,{file:e,glyph:"download-cloud",size:a,redirectToSignIn:l})]})},g=e=>{if(0===e)return"0 Bytes";const o=Number(Math.floor(Math.log(e)/Math.log(1024)));return(e/Math.pow(1024,o)).toPrecision(3)+" "+["Bytes","KB","MB","GB","TB"][o]};try{c.displayName="DownloadStaticFile",c.__docgenInfo={description:"",displayName:"DownloadStaticFile",props:{file:{defaultValue:null,description:"",name:"file",required:!0,type:{name:"{ name: string; size: number; downloadUrl?: string | undefined; }"}},forDonationRequest:{defaultValue:null,description:"",name:"forDonationRequest",required:!1,type:{name:"boolean"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!1,type:{name:"boolean"}},allowDownload:{defaultValue:null,description:"",name:"allowDownload",required:!1,type:{name:"boolean"}},handleClick:{defaultValue:null,description:"",name:"handleClick",required:!1,type:{name:"(() => void)"}},redirectToSignIn:{defaultValue:null,description:"",name:"redirectToSignIn",required:!1,type:{name:"(() => Promise)"}}}}}catch{}export{c as D}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{D as u}from"./DownloadButton-DzIURGFB.js";import{E as m}from"./ExternalLink-CHmx7fZ7.js";import{I as f}from"./Icon-DVJa_328.js";import{T as w}from"./Tooltip-B9mgSRkZ.js";import{F as x,T as d}from"./theme-ui-components.esm-DCiJ1mMX.js";const s=e=>{const{file:n,glyph:i,size:l,redirectToSignIn:t}=e;return o.jsxs(o.Fragment,{children:[o.jsxs(x,{p:2,mb:1,sx:{borderRadius:1,border:"2px solid black",background:"accent.base",color:"black",justifyContent:"space-between",alignItems:"center",flexDirection:"row",width:"300px",cursor:"pointer"},onClick:()=>t&&t(),"data-tooltip-id":"login-download","data-tooltip-content":t?"Login to download":"",children:[o.jsx(f,{size:24,glyph:i,mr:3}),o.jsx(d,{sx:{flex:1,fontSize:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},mr:3,children:n.name}),o.jsx(d,{sx:{fontSize:1},children:l})]}),o.jsx(w,{id:"login-download"})]})},c=({file:e,allowDownload:n,handleClick:i,redirectToSignIn:l,forDonationRequest:t,isLoggedIn:r})=>{const a=g(e.size||0);if(!e)return null;const d=n&&e.downloadUrl&&!l;return o.jsxs(o.Fragment,{children:[d&&o.jsx(m,{m:1,onClick:()=>i&&i(),href:e.downloadUrl,download:e.name,style:{width:"300px",marginLeft:0},children:o.jsx(s,{file:e,glyph:"download-cloud",size:a})}),t&&o.jsx(u,{onClick:()=>i&&i(),isLoggedIn:r,label:`${e.name} (${a})`,glyph:"download-cloud"}),!d&&!t&&o.jsx(s,{file:e,glyph:"download-cloud",size:a,redirectToSignIn:l})]})},g=e=>{if(0===e)return"0 Bytes";const o=Number(Math.floor(Math.log(e)/Math.log(1024)));return(e/Math.pow(1024,o)).toPrecision(3)+" "+["Bytes","KB","MB","GB","TB"][o]};try{c.displayName="DownloadStaticFile",c.__docgenInfo={description:"",displayName:"DownloadStaticFile",props:{file:{defaultValue:null,description:"",name:"file",required:!0,type:{name:"{ name: string; size: number; downloadUrl?: string | undefined; }"}},forDonationRequest:{defaultValue:null,description:"",name:"forDonationRequest",required:!1,type:{name:"boolean"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!1,type:{name:"boolean"}},allowDownload:{defaultValue:null,description:"",name:"allowDownload",required:!1,type:{name:"boolean"}},handleClick:{defaultValue:null,description:"",name:"handleClick",required:!1,type:{name:"(() => void)"}},redirectToSignIn:{defaultValue:null,description:"",name:"redirectToSignIn",required:!1,type:{name:"(() => Promise)"}}}}}catch{}export{c as D}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadStaticFile.stories-CEulzWP_.js b/storybook-static/assets/DownloadStaticFile.stories-CQNa0s65.js similarity index 92% rename from storybook-static/assets/DownloadStaticFile.stories-CEulzWP_.js rename to storybook-static/assets/DownloadStaticFile.stories-CQNa0s65.js index d4513c4cd6..badba1fc96 100644 --- a/storybook-static/assets/DownloadStaticFile.stories-CEulzWP_.js +++ b/storybook-static/assets/DownloadStaticFile.stories-CQNa0s65.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{D as t}from"./DownloadStaticFile-BGuyYeyj.js";import"./index-BP8_t0zE.js";import"./DownloadButton-C_Yd3Qr5.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";const _={title:"Components/DownloadStaticFile",component:t},e=()=>s.jsx(t,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"}}),o=()=>s.jsx(t,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"},redirectToSignIn:async()=>{alert("Redirect to Sign In")}});var r,a,i,m,n,p;e.parameters={...e.parameters,docs:{...null==(r=e.parameters)?void 0:r.docs,source:{originalSource:"() => ",...null==(i=null==(a=e.parameters)?void 0:a.docs)?void 0:i.source}}},o.parameters={...o.parameters,docs:{...null==(m=o.parameters)?void 0:m.docs,source:{originalSource:"() => {\n alert('Redirect to Sign In');\n}} />",...null==(p=null==(n=o.parameters)?void 0:n.docs)?void 0:p.source}}};const y=["Default","LoggedOut"];export{e as Default,o as LoggedOut,y as __namedExportsOrder,_ as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{D as t}from"./DownloadStaticFile-BxfNeVDS.js";import"./index-BP8_t0zE.js";import"./DownloadButton-DzIURGFB.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";const _={title:"Components/DownloadStaticFile",component:t},e=()=>s.jsx(t,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"}}),o=()=>s.jsx(t,{file:{name:"example",size:12e5,downloadUrl:"https://example.com"},redirectToSignIn:async()=>{alert("Redirect to Sign In")}});var r,a,i,m,n,p;e.parameters={...e.parameters,docs:{...null==(r=e.parameters)?void 0:r.docs,source:{originalSource:"() => ",...null==(i=null==(a=e.parameters)?void 0:a.docs)?void 0:i.source}}},o.parameters={...o.parameters,docs:{...null==(m=o.parameters)?void 0:m.docs,source:{originalSource:"() => {\n alert('Redirect to Sign In');\n}} />",...null==(p=null==(n=o.parameters)?void 0:n.docs)?void 0:p.source}}};const y=["Default","LoggedOut"];export{e as Default,o as LoggedOut,y as __namedExportsOrder,_ as default}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadWithDonationAsk-DqdQCDXv.js b/storybook-static/assets/DownloadWithDonationAsk-CLFhEu2Q.js similarity index 77% rename from storybook-static/assets/DownloadWithDonationAsk-DqdQCDXv.js rename to storybook-static/assets/DownloadWithDonationAsk-CLFhEu2Q.js index 2bbf0a57dd..5a253cbf77 100644 --- a/storybook-static/assets/DownloadWithDonationAsk-DqdQCDXv.js +++ b/storybook-static/assets/DownloadWithDonationAsk-CLFhEu2Q.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{D as q}from"./DonationRequestModal-BNxPzf8m.js";import{D as m}from"./DownloadButton-C_Yd3Qr5.js";import{D as C}from"./DownloadCounter-CpsPmH8s.js";import{D as I}from"./DownloadStaticFile-BGuyYeyj.js";import{u as j}from"./index-BXxqJQdV.js";const p=i=>{const{body:n,iframeSrc:l,imageURL:a,isLoggedIn:o,handleClick:r,fileDownloadCount:t,fileLink:d,files:s}=i,[p,f]=u.useState(!1),[c,g]=u.useState(""),D=j(),y=()=>f(!p),x=null==s?void 0:s.filter((e=>null!==e&&"downloadUrl"in e));return e.jsxs(e.Fragment,{children:[e.jsx(q,{body:n,callback:()=>{r(),y()},iframeSrc:l,imageURL:a,isOpen:p,link:c,onDidDismiss:()=>y()}),!o&&e.jsx(m,{onClick:()=>D("/sign-in"),isLoggedIn:!1}),o&&e.jsxs(e.Fragment,{children:[d&&e.jsx(m,{onClick:()=>{g(d),y()},isLoggedIn:!0}),x&&x.map(((i,n)=>e.jsx(I,{file:i,handleClick:()=>{g(i.downloadUrl),y()},forDonationRequest:!0,isLoggedIn:!0},i?i.name:`file-${n}`)))]}),e.jsx(C,{total:t})]})};try{p.displayName="DownloadWithDonationAsk",p.__docgenInfo={description:"",displayName:"DownloadWithDonationAsk",props:{body:{defaultValue:null,description:"",name:"body",required:!0,type:{name:"string"}},handleClick:{defaultValue:null,description:"",name:"handleClick",required:!0,type:{name:"() => Promise"}},iframeSrc:{defaultValue:null,description:"",name:"iframeSrc",required:!0,type:{name:"string"}},imageURL:{defaultValue:null,description:"",name:"imageURL",required:!0,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},fileDownloadCount:{defaultValue:null,description:"",name:"fileDownloadCount",required:!0,type:{name:"number"}},fileLink:{defaultValue:null,description:"",name:"fileLink",required:!1,type:{name:"string"}},files:{defaultValue:null,description:"",name:"files",required:!1,type:{name:"(IUploadedFileMeta | File | null)[]"}}}}}catch{}export{p as D}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{D as q}from"./DonationRequestModal-Gqs-htQ0.js";import{D as m}from"./DownloadButton-DzIURGFB.js";import{D as C}from"./DownloadCounter-CpsPmH8s.js";import{D as I}from"./DownloadStaticFile-BxfNeVDS.js";import{u as j}from"./index-BXxqJQdV.js";const p=i=>{const{body:n,iframeSrc:l,imageURL:a,isLoggedIn:o,handleClick:t,fileDownloadCount:r,fileLink:s,files:d}=i,[p,f]=u.useState(!1),[c,g]=u.useState(""),D=j(),y=()=>f(!p),x=null==d?void 0:d.filter((e=>null!==e&&"downloadUrl"in e));return e.jsxs(e.Fragment,{children:[e.jsx(q,{body:n,callback:()=>{t(),y()},iframeSrc:l,imageURL:a,isOpen:p,link:c,onDidDismiss:()=>y()}),!o&&e.jsx(m,{onClick:()=>D("/sign-in"),isLoggedIn:!1}),o&&e.jsxs(e.Fragment,{children:[s&&e.jsx(m,{onClick:()=>{g(s),y()},isLoggedIn:!0}),x&&x.map(((i,n)=>e.jsx(I,{file:i,handleClick:()=>{g(i.downloadUrl),y()},forDonationRequest:!0,isLoggedIn:!0},i?i.name:`file-${n}`)))]}),e.jsx(C,{total:r})]})};try{p.displayName="DownloadWithDonationAsk",p.__docgenInfo={description:"",displayName:"DownloadWithDonationAsk",props:{body:{defaultValue:null,description:"",name:"body",required:!0,type:{name:"string"}},handleClick:{defaultValue:null,description:"",name:"handleClick",required:!0,type:{name:"() => Promise"}},iframeSrc:{defaultValue:null,description:"",name:"iframeSrc",required:!0,type:{name:"string"}},imageURL:{defaultValue:null,description:"",name:"imageURL",required:!0,type:{name:"string"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},fileDownloadCount:{defaultValue:null,description:"",name:"fileDownloadCount",required:!0,type:{name:"number"}},fileLink:{defaultValue:null,description:"",name:"fileLink",required:!1,type:{name:"string"}},files:{defaultValue:null,description:"",name:"files",required:!1,type:{name:"(IUploadedFileMeta | File | null)[]"}}}}}catch{}export{p as D}; \ No newline at end of file diff --git a/storybook-static/assets/DownloadWithDonationAsk.stories-HWN8n_K3.js b/storybook-static/assets/DownloadWithDonationAsk.stories-DHkmMxdv.js similarity index 82% rename from storybook-static/assets/DownloadWithDonationAsk.stories-HWN8n_K3.js rename to storybook-static/assets/DownloadWithDonationAsk.stories-DHkmMxdv.js index accef5494f..69a5d8bea3 100644 --- a/storybook-static/assets/DownloadWithDonationAsk.stories-HWN8n_K3.js +++ b/storybook-static/assets/DownloadWithDonationAsk.stories-DHkmMxdv.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{D as r}from"./DownloadWithDonationAsk-DqdQCDXv.js";import"./index-BP8_t0zE.js";import"./DonationRequestModal-BNxPzf8m.js";import"./DonationRequest-0J0Ydxwt.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DownloadButton-C_Yd3Qr5.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./DownloadCounter-CpsPmH8s.js";import"./DownloadStaticFile-BGuyYeyj.js";import"./index-BXxqJQdV.js";const H={title:"Components/DownloadWithDonationAsk",component:r},d={body:"Body Text for the donation request",iframeSrc:"https://donorbox.org/embed/ppcpdonor?language=en",imageURL:"https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9",fileDownloadCount:45,fileLink:"https://example.com",handleClick:async()=>{alert("Clicked")},files:[]},o=()=>n.jsx(r,{isLoggedIn:!0,...d}),t=()=>n.jsx(r,{isLoggedIn:!1,...d});var i,e,s,p,a,m;o.parameters={...o.parameters,docs:{...null==(i=o.parameters)?void 0:i.docs,source:{originalSource:"() => ",...null==(s=null==(e=o.parameters)?void 0:e.docs)?void 0:s.source}}},t.parameters={...t.parameters,docs:{...null==(p=t.parameters)?void 0:p.docs,source:{originalSource:"() => ",...null==(m=null==(a=t.parameters)?void 0:a.docs)?void 0:m.source}}};const J=["Default","LoggedOut"];export{o as Default,t as LoggedOut,J as __namedExportsOrder,H as default}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{D as r}from"./DownloadWithDonationAsk-CLFhEu2Q.js";import"./index-BP8_t0zE.js";import"./DonationRequestModal-Gqs-htQ0.js";import"./DonationRequest-DuTXC9D9.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ExternalLink-CHmx7fZ7.js";import"./Modal-CNp0gEVS.js";import"./index-BBRV8eG_.js";import"./index-Snk9MO9S.js";import"./DownloadButton-DzIURGFB.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./DownloadCounter-CpsPmH8s.js";import"./DownloadStaticFile-BxfNeVDS.js";import"./index-BXxqJQdV.js";const H={title:"Components/DownloadWithDonationAsk",component:r},d={body:"Body Text for the donation request",iframeSrc:"https://donorbox.org/embed/ppcpdonor?language=en",imageURL:"https://images.unsplash.com/photo-1520222984843-df35ebc0f24d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjF9",fileDownloadCount:45,fileLink:"https://example.com",handleClick:async()=>{alert("Clicked")},files:[]},o=()=>n.jsx(r,{isLoggedIn:!0,...d}),t=()=>n.jsx(r,{isLoggedIn:!1,...d});var i,e,s,p,a,m;o.parameters={...o.parameters,docs:{...null==(i=o.parameters)?void 0:i.docs,source:{originalSource:"() => ",...null==(s=null==(e=o.parameters)?void 0:e.docs)?void 0:s.source}}},t.parameters={...t.parameters,docs:{...null==(p=t.parameters)?void 0:p.docs,source:{originalSource:"() => ",...null==(m=null==(a=t.parameters)?void 0:a.docs)?void 0:m.source}}};const J=["Default","LoggedOut"];export{o as Default,t as LoggedOut,J as __namedExportsOrder,H as default}; \ No newline at end of file diff --git a/storybook-static/assets/EditComment-DY_6Q1TM.js b/storybook-static/assets/EditComment-CS1dAl1Z.js similarity index 99% rename from storybook-static/assets/EditComment-DY_6Q1TM.js rename to storybook-static/assets/EditComment-CS1dAl1Z.js index 27114e63e1..73726280b1 100644 --- a/storybook-static/assets/EditComment-DY_6Q1TM.js +++ b/storybook-static/assets/EditComment-CS1dAl1Z.js @@ -1 +1 @@ -import{j as ie}from"./jsx-runtime-CexXSJP5.js";import{_ as q}from"./extends-CF3RwP-h.js";import{_ as he}from"./objectWithoutPropertiesLoose-CAYKN5F1.js";import{r as W,a as me}from"./index-BP8_t0zE.js";import{c as Ke,b as We}from"./index.esm-D0u3ndg0.js";import{B as Ee}from"./Button-B7QBvkxh.js";import{F as Te}from"./FieldTextarea-msSeWkcr.js";import{F as Ve,h as He}from"./theme-ui-components.esm-DCiJ1mMX.js";var ge={},Ye=/[.[\]]+/,Pe=function(e){if(null==e||!e.length)return[];if("string"!=typeof e)throw new Error("toPath() expects a string");return null==ge[e]&&(ge[e]=e.split(Ye).filter(Boolean)),ge[e]},j=function(e,t){for(var i=Pe(t),r=e,n=0;n=r.length)return n;var u=r[i];if(isNaN(u)){var o;if(null==t){var s,l=e(void 0,i+1,r,n,a);return void 0===l?void 0:((s={})[u]=l,s)}if(Array.isArray(t))throw new Error("Cannot set a non-numeric property on an array");var d=e(t[u],i+1,r,n,a);if(void 0===d){var c=Object.keys(t).length;if(void 0===t[u]&&0===c)return;return void 0!==t[u]&&c<=1?isNaN(r[i-1])||a?void 0:{}:(t[u],he(t,[u].map(Ge)))}return q({},t,((o={})[u]=d,o))}var f=Number(u);if(null==t){var m=e(void 0,i+1,r,n,a);if(void 0===m)return;var v=[];return v[f]=m,v}if(!Array.isArray(t))throw new Error("Cannot set a numeric property on an object");var b=e(t[f],i+1,r,n,a),S=[].concat(t);if(a&&void 0===b){if(S.splice(f,1),0===S.length)return}else S[f]=b;return S},H=function(e,t,i,r){if(void 0===r&&(r=!1),null==e)throw new Error("Cannot call setIn() with "+String(e)+" state");if(null==t)throw new Error("Cannot call setIn() with "+String(t)+" key");return Qe(e,0,Pe(t),i,r)},Oe="FINAL_FORM/form-error",ve="FINAL_FORM/array-error";function we(e,t){var i=e.errors,r=e.initialValues,n=e.lastSubmittedValues,a=e.submitErrors,u=e.submitFailed,o=e.submitSucceeded,s=e.submitting,l=e.values,d=t.active,c=t.blur,f=t.change,m=t.data,v=t.focus,b=t.modified,S=t.modifiedSinceLastSubmit,h=t.name,p=t.touched,g=t.validating,y=t.visited,E=j(l,h),F=j(i,h);F&&F[ve]&&(F=F[ve]);var O=a&&j(a,h),V=r&&j(r,h),k=t.isEqual(V,E),w=!F&&!O;return{active:d,blur:c,change:f,data:m,dirty:!k,dirtySinceLastSubmit:!(!n||t.isEqual(j(n,h),E)),error:F,focus:v,initial:V,invalid:!w,length:Array.isArray(E)?E.length:void 0,modified:b,modifiedSinceLastSubmit:S,name:h,pristine:k,submitError:O,submitFailed:u,submitSucceeded:o,submitting:s,touched:p,valid:w,value:E,visited:y,validating:g}}var Ne=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],J=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),a=0;a0,values:b}}function ze(e,t,i,r,n,a){var u=n(i,r,t,a);return!!u&&(e(u),!0)}function Re(e,t,i,r,n){var a=e.entries;Object.keys(a).forEach((function(e){var u=a[Number(e)];if(u){var o=u.subscription,s=u.subscriber,l=u.notified;ze(s,o,t,i,r,n||!l)&&(u.notified=!0)}}))}function rt(e){if(!e)throw new Error("No config specified");var t=e.debug,i=e.destroyOnUnregister,r=e.keepDirtyOnReinitialize,n=e.initialValues,a=e.mutators,u=e.onSubmit,o=e.validate,s=e.validateOnBlur;if(!u)throw new Error("No onSubmit function specified");var l={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:n&&q({},n),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:n?q({},n):{}},lastFormState:void 0},d=0,c=!1,f=!1,m=!1,v=0,b={},S=function(e,t,i){var r=i(j(e.formState.values,t));e.formState.values=H(e.formState.values,t,r)||{}},h=function(e,t,i){if(e.fields[t]){var r,n;e.fields=q({},e.fields,((r={})[i]=q({},e.fields[t],{name:i,blur:function(){return L.blur(i)},change:function(e){return L.change(i,e)},focus:function(){return L.focus(i)},lastFieldState:void 0}),r)),delete e.fields[t],e.fieldSubscribers=q({},e.fieldSubscribers,((n={})[i]=e.fieldSubscribers[t],n)),delete e.fieldSubscribers[t];var a=j(e.formState.values,t);e.formState.values=H(e.formState.values,t,void 0)||{},e.formState.values=H(e.formState.values,i,a),delete e.lastFormState}},p=function(e){return function(){if(a){for(var t={formState:l.formState,fields:l.fields,fieldSubscribers:l.fieldSubscribers,lastFormState:l.lastFormState},i=arguments.length,r=new Array(i),n=0;n0,g=++v,E=Promise.all(h).then(function(e){return function(t){return delete b[e],t}}(g));p&&(b[g]=E);var F=function(){var e=q({},u?r.errors:{},m),t=function(t){a.forEach((function(r){if(i[r]){var a=j(m,r),s=j(e,r),l=y(n[r]).length,d=S[r];t(r,l&&d||o&&a||(a||u?void 0:s))}}))};t((function(t,i){e=H(e,t,i)||{}})),t((function(t,i){if(i&&i[ve]){var r=j(e,t),n=[].concat(r);n[ve]=i[ve],e=H(e,t,n)}})),J(r.errors,e)||(r.errors=e),r.error=m[Oe]};if(F(),t(),p){l.formState.validating++,t();var O=function(){l.formState.validating--,t()};E.then((function(){v>g||F()})).then(O,O)}}else t()},F=function(e){if(!d){var t=l.fields,i=l.fieldSubscribers,r=l.formState,n=q({},t),a=function(e){var t=n[e],a=we(r,t),u=t.lastFieldState;t.lastFieldState=a;var o=i[e];o&&Re(o,a,u,Ze,void 0===u)};e?a(e):Object.keys(n).forEach(a)}},O=function(){Object.keys(l.fields).forEach((function(e){l.fields[e].touched=!0}))},V=function(){var e=l.fields,t=l.formState,i=l.lastFormState,r=q({},e),n=Object.keys(r),a=!1,u=n.reduce((function(e,i){return!r[i].isEqual(j(t.values,i),j(t.initialValues||{},i))&&(a=!0,e[i]=!0),e}),{}),o=n.reduce((function(e,i){var n=t.lastSubmittedValues||{};return r[i].isEqual(j(t.values,i),j(n,i))||(e[i]=!0),e}),{});t.pristine=!a,t.dirtySinceLastSubmit=!(!t.lastSubmittedValues||!Object.values(o).some((function(e){return e}))),t.modifiedSinceLastSubmit=!(!t.lastSubmittedValues||!Object.keys(r).some((function(e){return r[e].modifiedSinceLastSubmit}))),t.valid=!(t.error||t.submitError||ue(t.errors)||t.submitErrors&&ue(t.submitErrors));var s=it(t),d=n.reduce((function(e,t){return e.modified[t]=r[t].modified,e.touched[t]=r[t].touched,e.visited[t]=r[t].visited,e}),{modified:{},touched:{},visited:{}}),c=d.modified,f=d.touched,m=d.visited;return s.dirtyFields=i&&J(i.dirtyFields,u)?i.dirtyFields:u,s.dirtyFieldsSinceLastSubmit=i&&J(i.dirtyFieldsSinceLastSubmit,o)?i.dirtyFieldsSinceLastSubmit:o,s.modified=i&&J(i.modified,c)?i.modified:c,s.touched=i&&J(i.touched,f)?i.touched:f,s.visited=i&&J(i.visited,m)?i.visited:m,i&&J(i,s)?i:s},k=!1,w=!1,x=function e(){if(k)w=!0;else{if(k=!0,t&&t(V(),Object.keys(l.fields).reduce((function(e,t){return e[t]=l.fields[t],e}),{})),!(d||c&&m)){var i=l.lastFormState,r=V();r!==i&&(l.lastFormState=r,Re(l.subscribers,r,i,Le))}k=!1,w&&(w=!1,e())}};E(void 0,(function(){x()}));var L={batch:function(e){d++,e(),d--,F(),x()},blur:function(e){var t=l.fields,i=l.formState,r=t[e];r&&(delete i.active,t[e]=q({},r,{active:!1,touched:!0}),s?E(e,(function(){F(),x()})):(F(),x()))},change:function(e,t){var i=l.fields,r=l.formState;if(j(r.values,e)!==t){S(l,e,(function(){return t}));var n=i[e];n&&(i[e]=q({},n,{modified:!0,modifiedSinceLastSubmit:!!r.lastSubmittedValues})),s?(F(),x()):E(e,(function(){F(),x()}))}},get destroyOnUnregister(){return!!i},set destroyOnUnregister(e){i=e},focus:function(e){var t=l.fields[e];t&&!t.active&&(l.formState.active=e,t.active=!0,t.visited=!0,F(),x())},mutators:g,getFieldState:function(e){var t=l.fields[e];return t&&t.lastFieldState},getRegisteredFields:function(){return Object.keys(l.fields)},getState:function(){return V()},initialize:function(e){var t=l.fields,i=l.formState,n=q({},t),a="function"==typeof e?e(i.values):e;r||(i.values=a);var u=r?Object.keys(n).reduce((function(e,t){return n[t].isEqual(j(i.values,t),j(i.initialValues||{},t))||(e[t]=j(i.values,t)),e}),{}):{};i.initialValues=a,i.values=a,Object.keys(u).forEach((function(e){i.values=H(i.values,e,u[e])})),E(void 0,(function(){F(),x()}))},isValidationPaused:function(){return c},pauseValidation:function(e){void 0===e&&(e=!0),c=!0,m=e},registerField:function(e,t,r,n){void 0===r&&(r={}),l.fieldSubscribers[e]||(l.fieldSubscribers[e]={index:0,entries:{}});var a=l.fieldSubscribers[e].index++;l.fieldSubscribers[e].entries[a]={subscriber:je(t),subscription:r,notified:!1},l.fields[e]||(l.fields[e]={active:!1,afterSubmit:n&&n.afterSubmit,beforeSubmit:n&&n.beforeSubmit,blur:function(){return L.blur(e)},change:function(t){return L.change(e,t)},data:n&&n.data||{},focus:function(){return L.focus(e)},isEqual:n&&n.isEqual||tt,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,touched:!1,valid:!0,validateFields:n&&n.validateFields,validators:{},validating:!1,visited:!1});var u=!1,o=n&&n.silent,s=function(){o?F(e):(x(),F())};if(n){u=!(!n.getValidator||!n.getValidator()),n.getValidator&&(l.fields[e].validators[a]=n.getValidator);var d=void 0===j(l.formState.values,e);void 0!==n.initialValue&&d&&(void 0===j(l.formState.values,e)||j(l.formState.values,e)===j(l.formState.initialValues,e))&&(l.formState.initialValues=H(l.formState.initialValues||{},e,n.initialValue),l.formState.values=H(l.formState.values,e,n.initialValue),E(void 0,s)),void 0!==n.defaultValue&&void 0===n.initialValue&&void 0===j(l.formState.initialValues,e)&&d&&(l.formState.values=H(l.formState.values,e,n.defaultValue))}return u?E(void 0,s):s(),function(){var t=!1;l.fields[e]&&(t=!(!l.fields[e].validators[a]||!l.fields[e].validators[a]()),delete l.fields[e].validators[a]);var r=!!l.fieldSubscribers[e];r&&delete l.fieldSubscribers[e].entries[a];var n=r&&!Object.keys(l.fieldSubscribers[e].entries).length;n&&(delete l.fieldSubscribers[e],delete l.fields[e],t&&(l.formState.errors=H(l.formState.errors,e,void 0)||{}),i&&(l.formState.values=H(l.formState.values,e,void 0,!0)||{})),o||(t?E(void 0,(function(){x(),F()})):n&&x())}},reset:function(e){void 0===e&&(e=l.formState.initialValues),l.formState.submitting&&(l.formState.resetWhileSubmitting=!0),l.formState.submitFailed=!1,l.formState.submitSucceeded=!1,delete l.formState.submitError,delete l.formState.submitErrors,delete l.formState.lastSubmittedValues,L.initialize(e||{})},resetFieldState:function(e){l.fields[e]=q({},l.fields[e],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),E(void 0,(function(){F(),x()}))},restart:function(e){void 0===e&&(e=l.formState.initialValues),L.batch((function(){for(var t in l.fields)L.resetFieldState(t),l.fields[t]=q({},l.fields[t],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});L.reset(e)}))},resumeValidation:function(){c=!1,m=!1,f&&E(void 0,(function(){F(),x()})),f=!1},setConfig:function(e,n){switch(e){case"debug":t=n;break;case"destroyOnUnregister":i=n;break;case"initialValues":L.initialize(n);break;case"keepDirtyOnReinitialize":r=n;break;case"mutators":a=n,n?(Object.keys(g).forEach((function(e){e in n||delete g[e]})),Object.keys(n).forEach((function(e){g[e]=p(e)}))):Object.keys(g).forEach((function(e){delete g[e]}));break;case"onSubmit":u=n;break;case"validate":o=n,E(void 0,(function(){F(),x()}));break;case"validateOnBlur":s=n;break;default:throw new Error("Unrecognised option "+e)}},submit:function(){var e=l.formState;if(!e.submitting){if(delete e.submitErrors,delete e.submitError,e.lastSubmittedValues=q({},e.values),l.formState.error||ue(l.formState.errors))return O(),l.formState.submitFailed=!0,x(),void F();var t=Object.keys(b);if(t.length)return void Promise.all(t.map((function(e){return b[Number(e)]}))).then(L.submit,console.error);var i=Object.keys(l.fields).some((function(e){return l.fields[e].beforeSubmit&&!1===l.fields[e].beforeSubmit()}));if(!i){var r,n=!1,a=function(t){e.submitting=!1;var i=e.resetWhileSubmitting;return i&&(e.resetWhileSubmitting=!1),t&&ue(t)?(e.submitFailed=!0,e.submitSucceeded=!1,e.submitErrors=t,e.submitError=t[Oe],O()):(i||(e.submitFailed=!1,e.submitSucceeded=!0),Object.keys(l.fields).forEach((function(e){return l.fields[e].afterSubmit&&l.fields[e].afterSubmit()}))),x(),F(),n=!0,r&&r(t),t};e.submitting=!0,e.submitFailed=!1,e.submitSucceeded=!1,e.lastSubmittedValues=q({},e.values),Object.keys(l.fields).forEach((function(e){return l.fields[e].modifiedSinceLastSubmit=!1}));var o=u(e.values,L,a);if(!n){if(o&&pe(o))return x(),F(),o.then(a,(function(e){throw a(),e}));if(u.length>=3)return x(),F(),new Promise((function(e){r=e}));a(o)}}}},subscribe:function(e,t){if(!e)throw new Error("No callback given.");if(!t)throw new Error("No subscription provided. What values do you want to listen to?");var i=je(e),r=l.subscribers,n=r.index++;r.entries[n]={subscriber:i,subscription:t,notified:!1};var a=V();return ze(i,t,a,a,Le,!0),function(){delete r.entries[n]}}};return L}function Ie(e,t,i){var r=e.render,n=e.children,a=e.component,u=he(e,["render","children","component"]);if(a)return W.createElement(a,Object.assign(t,u,{children:n,render:r}));if(r)return r(void 0===n?Object.assign(t,u):Object.assign(t,u,{children:n}));if("function"!=typeof n)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+i);return n(Object.assign(t,u))}function X(e,t,i){void 0===i&&(i=function(e,t){return e===t});var r=me.useRef(e);me.useEffect((function(){i(e,r.current)||(t(),r.current=e)}))}function at(e){var t=me.useRef();return t.current||(t.current=e()),t.current}var qe=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),a=0;a component");return t}var vt=typeof window<"u"&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,mt=function(e){var t=[];if(e)for(var i=0;i component");return Ie(q({children:a,component:u,ref:t},E),j,"Field("+v+")")}));const Ae=e=>{const{comment:t,isReply:i}=e,r=Ke({comment:We().required("Make sure this field is filled correctly")}),n=e=>null!=e&&e.trim()?void 0:"Comment cannot be blank";return ie.jsx(ft,{onSubmit:()=>{},initialValues:{comment:t},validate:async e=>{try{await r.validate(e,{abortEarly:!1})}catch(t){return t.inner.reduce(((e,t)=>({...e,[t.path]:t.message})),{})}},"data-cy":"EditCommentForm",render:({invalid:t,handleSubmit:r,values:a})=>{const u=t;return ie.jsxs(Ve,{as:"form",sx:{flexDirection:"column"},p:2,onSubmit:r,children:[ie.jsxs(He,{as:"label",htmlFor:"comment",sx:{marginBottom:"6px",fontSize:3},children:["Edit ",i?"Reply":"Comment"]}),ie.jsx(yt,{component:Te,"data-cy":"edit-comment",id:"comment",validate:n,name:"comment"}),ie.jsxs(Ve,{mt:4,ml:"auto",children:[ie.jsx(Ee,{type:"button",small:!0,mr:4,variant:"secondary",onClick:()=>null==e?void 0:e.handleCancel(),children:"Cancel"}),ie.jsx(Ee,{"data-cy":"edit-comment-submit","data-testid":"edit-comment-submit",type:"submit","aria-label":"Save changes",small:!0,disabled:u,onClick:()=>{(t=>{null!=t&&t.trim()&&(null==e||e.handleSubmit(t))})(a.comment)},children:"Save"})]})]})}})};try{Ae.displayName="EditComment",Ae.__docgenInfo={description:"",displayName:"EditComment",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},handleCancel:{defaultValue:null,description:"",name:"handleCancel",required:!0,type:{name:"() => void"}},handleSubmit:{defaultValue:null,description:"",name:"handleSubmit",required:!0,type:{name:"(commentText: string) => void"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!0,type:{name:"boolean"}}}}}catch{}export{Ae as E}; \ No newline at end of file +import{j as ie}from"./jsx-runtime-CexXSJP5.js";import{_ as q}from"./extends-CF3RwP-h.js";import{_ as he}from"./objectWithoutPropertiesLoose-CAYKN5F1.js";import{r as W,a as me}from"./index-BP8_t0zE.js";import{c as Ke,b as We}from"./index.esm-D0u3ndg0.js";import{B as Ee}from"./Button-1qf_V-Zv.js";import{F as Te}from"./FieldTextarea-msSeWkcr.js";import{F as Ve,h as He}from"./theme-ui-components.esm-DCiJ1mMX.js";var ge={},Ye=/[.[\]]+/,Pe=function(e){if(null==e||!e.length)return[];if("string"!=typeof e)throw new Error("toPath() expects a string");return null==ge[e]&&(ge[e]=e.split(Ye).filter(Boolean)),ge[e]},j=function(e,t){for(var i=Pe(t),r=e,n=0;n=r.length)return n;var u=r[i];if(isNaN(u)){var o;if(null==t){var s,l=e(void 0,i+1,r,n,a);return void 0===l?void 0:((s={})[u]=l,s)}if(Array.isArray(t))throw new Error("Cannot set a non-numeric property on an array");var d=e(t[u],i+1,r,n,a);if(void 0===d){var c=Object.keys(t).length;if(void 0===t[u]&&0===c)return;return void 0!==t[u]&&c<=1?isNaN(r[i-1])||a?void 0:{}:(t[u],he(t,[u].map(Ge)))}return q({},t,((o={})[u]=d,o))}var f=Number(u);if(null==t){var m=e(void 0,i+1,r,n,a);if(void 0===m)return;var v=[];return v[f]=m,v}if(!Array.isArray(t))throw new Error("Cannot set a numeric property on an object");var b=e(t[f],i+1,r,n,a),S=[].concat(t);if(a&&void 0===b){if(S.splice(f,1),0===S.length)return}else S[f]=b;return S},H=function(e,t,i,r){if(void 0===r&&(r=!1),null==e)throw new Error("Cannot call setIn() with "+String(e)+" state");if(null==t)throw new Error("Cannot call setIn() with "+String(t)+" key");return Qe(e,0,Pe(t),i,r)},Oe="FINAL_FORM/form-error",ve="FINAL_FORM/array-error";function we(e,t){var i=e.errors,r=e.initialValues,n=e.lastSubmittedValues,a=e.submitErrors,u=e.submitFailed,o=e.submitSucceeded,s=e.submitting,l=e.values,d=t.active,c=t.blur,f=t.change,m=t.data,v=t.focus,b=t.modified,S=t.modifiedSinceLastSubmit,h=t.name,p=t.touched,g=t.validating,y=t.visited,E=j(l,h),F=j(i,h);F&&F[ve]&&(F=F[ve]);var O=a&&j(a,h),V=r&&j(r,h),k=t.isEqual(V,E),w=!F&&!O;return{active:d,blur:c,change:f,data:m,dirty:!k,dirtySinceLastSubmit:!(!n||t.isEqual(j(n,h),E)),error:F,focus:v,initial:V,invalid:!w,length:Array.isArray(E)?E.length:void 0,modified:b,modifiedSinceLastSubmit:S,name:h,pristine:k,submitError:O,submitFailed:u,submitSucceeded:o,submitting:s,touched:p,valid:w,value:E,visited:y,validating:g}}var Ne=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],J=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),a=0;a0,values:b}}function ze(e,t,i,r,n,a){var u=n(i,r,t,a);return!!u&&(e(u),!0)}function Re(e,t,i,r,n){var a=e.entries;Object.keys(a).forEach((function(e){var u=a[Number(e)];if(u){var o=u.subscription,s=u.subscriber,l=u.notified;ze(s,o,t,i,r,n||!l)&&(u.notified=!0)}}))}function rt(e){if(!e)throw new Error("No config specified");var t=e.debug,i=e.destroyOnUnregister,r=e.keepDirtyOnReinitialize,n=e.initialValues,a=e.mutators,u=e.onSubmit,o=e.validate,s=e.validateOnBlur;if(!u)throw new Error("No onSubmit function specified");var l={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:n&&q({},n),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:n?q({},n):{}},lastFormState:void 0},d=0,c=!1,f=!1,m=!1,v=0,b={},S=function(e,t,i){var r=i(j(e.formState.values,t));e.formState.values=H(e.formState.values,t,r)||{}},h=function(e,t,i){if(e.fields[t]){var r,n;e.fields=q({},e.fields,((r={})[i]=q({},e.fields[t],{name:i,blur:function(){return L.blur(i)},change:function(e){return L.change(i,e)},focus:function(){return L.focus(i)},lastFieldState:void 0}),r)),delete e.fields[t],e.fieldSubscribers=q({},e.fieldSubscribers,((n={})[i]=e.fieldSubscribers[t],n)),delete e.fieldSubscribers[t];var a=j(e.formState.values,t);e.formState.values=H(e.formState.values,t,void 0)||{},e.formState.values=H(e.formState.values,i,a),delete e.lastFormState}},p=function(e){return function(){if(a){for(var t={formState:l.formState,fields:l.fields,fieldSubscribers:l.fieldSubscribers,lastFormState:l.lastFormState},i=arguments.length,r=new Array(i),n=0;n0,g=++v,E=Promise.all(h).then(function(e){return function(t){return delete b[e],t}}(g));p&&(b[g]=E);var F=function(){var e=q({},u?r.errors:{},m),t=function(t){a.forEach((function(r){if(i[r]){var a=j(m,r),s=j(e,r),l=y(n[r]).length,d=S[r];t(r,l&&d||o&&a||(a||u?void 0:s))}}))};t((function(t,i){e=H(e,t,i)||{}})),t((function(t,i){if(i&&i[ve]){var r=j(e,t),n=[].concat(r);n[ve]=i[ve],e=H(e,t,n)}})),J(r.errors,e)||(r.errors=e),r.error=m[Oe]};if(F(),t(),p){l.formState.validating++,t();var O=function(){l.formState.validating--,t()};E.then((function(){v>g||F()})).then(O,O)}}else t()},F=function(e){if(!d){var t=l.fields,i=l.fieldSubscribers,r=l.formState,n=q({},t),a=function(e){var t=n[e],a=we(r,t),u=t.lastFieldState;t.lastFieldState=a;var o=i[e];o&&Re(o,a,u,Ze,void 0===u)};e?a(e):Object.keys(n).forEach(a)}},O=function(){Object.keys(l.fields).forEach((function(e){l.fields[e].touched=!0}))},V=function(){var e=l.fields,t=l.formState,i=l.lastFormState,r=q({},e),n=Object.keys(r),a=!1,u=n.reduce((function(e,i){return!r[i].isEqual(j(t.values,i),j(t.initialValues||{},i))&&(a=!0,e[i]=!0),e}),{}),o=n.reduce((function(e,i){var n=t.lastSubmittedValues||{};return r[i].isEqual(j(t.values,i),j(n,i))||(e[i]=!0),e}),{});t.pristine=!a,t.dirtySinceLastSubmit=!(!t.lastSubmittedValues||!Object.values(o).some((function(e){return e}))),t.modifiedSinceLastSubmit=!(!t.lastSubmittedValues||!Object.keys(r).some((function(e){return r[e].modifiedSinceLastSubmit}))),t.valid=!(t.error||t.submitError||ue(t.errors)||t.submitErrors&&ue(t.submitErrors));var s=it(t),d=n.reduce((function(e,t){return e.modified[t]=r[t].modified,e.touched[t]=r[t].touched,e.visited[t]=r[t].visited,e}),{modified:{},touched:{},visited:{}}),c=d.modified,f=d.touched,m=d.visited;return s.dirtyFields=i&&J(i.dirtyFields,u)?i.dirtyFields:u,s.dirtyFieldsSinceLastSubmit=i&&J(i.dirtyFieldsSinceLastSubmit,o)?i.dirtyFieldsSinceLastSubmit:o,s.modified=i&&J(i.modified,c)?i.modified:c,s.touched=i&&J(i.touched,f)?i.touched:f,s.visited=i&&J(i.visited,m)?i.visited:m,i&&J(i,s)?i:s},k=!1,w=!1,x=function e(){if(k)w=!0;else{if(k=!0,t&&t(V(),Object.keys(l.fields).reduce((function(e,t){return e[t]=l.fields[t],e}),{})),!(d||c&&m)){var i=l.lastFormState,r=V();r!==i&&(l.lastFormState=r,Re(l.subscribers,r,i,Le))}k=!1,w&&(w=!1,e())}};E(void 0,(function(){x()}));var L={batch:function(e){d++,e(),d--,F(),x()},blur:function(e){var t=l.fields,i=l.formState,r=t[e];r&&(delete i.active,t[e]=q({},r,{active:!1,touched:!0}),s?E(e,(function(){F(),x()})):(F(),x()))},change:function(e,t){var i=l.fields,r=l.formState;if(j(r.values,e)!==t){S(l,e,(function(){return t}));var n=i[e];n&&(i[e]=q({},n,{modified:!0,modifiedSinceLastSubmit:!!r.lastSubmittedValues})),s?(F(),x()):E(e,(function(){F(),x()}))}},get destroyOnUnregister(){return!!i},set destroyOnUnregister(e){i=e},focus:function(e){var t=l.fields[e];t&&!t.active&&(l.formState.active=e,t.active=!0,t.visited=!0,F(),x())},mutators:g,getFieldState:function(e){var t=l.fields[e];return t&&t.lastFieldState},getRegisteredFields:function(){return Object.keys(l.fields)},getState:function(){return V()},initialize:function(e){var t=l.fields,i=l.formState,n=q({},t),a="function"==typeof e?e(i.values):e;r||(i.values=a);var u=r?Object.keys(n).reduce((function(e,t){return n[t].isEqual(j(i.values,t),j(i.initialValues||{},t))||(e[t]=j(i.values,t)),e}),{}):{};i.initialValues=a,i.values=a,Object.keys(u).forEach((function(e){i.values=H(i.values,e,u[e])})),E(void 0,(function(){F(),x()}))},isValidationPaused:function(){return c},pauseValidation:function(e){void 0===e&&(e=!0),c=!0,m=e},registerField:function(e,t,r,n){void 0===r&&(r={}),l.fieldSubscribers[e]||(l.fieldSubscribers[e]={index:0,entries:{}});var a=l.fieldSubscribers[e].index++;l.fieldSubscribers[e].entries[a]={subscriber:je(t),subscription:r,notified:!1},l.fields[e]||(l.fields[e]={active:!1,afterSubmit:n&&n.afterSubmit,beforeSubmit:n&&n.beforeSubmit,blur:function(){return L.blur(e)},change:function(t){return L.change(e,t)},data:n&&n.data||{},focus:function(){return L.focus(e)},isEqual:n&&n.isEqual||tt,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,touched:!1,valid:!0,validateFields:n&&n.validateFields,validators:{},validating:!1,visited:!1});var u=!1,o=n&&n.silent,s=function(){o?F(e):(x(),F())};if(n){u=!(!n.getValidator||!n.getValidator()),n.getValidator&&(l.fields[e].validators[a]=n.getValidator);var d=void 0===j(l.formState.values,e);void 0!==n.initialValue&&d&&(void 0===j(l.formState.values,e)||j(l.formState.values,e)===j(l.formState.initialValues,e))&&(l.formState.initialValues=H(l.formState.initialValues||{},e,n.initialValue),l.formState.values=H(l.formState.values,e,n.initialValue),E(void 0,s)),void 0!==n.defaultValue&&void 0===n.initialValue&&void 0===j(l.formState.initialValues,e)&&d&&(l.formState.values=H(l.formState.values,e,n.defaultValue))}return u?E(void 0,s):s(),function(){var t=!1;l.fields[e]&&(t=!(!l.fields[e].validators[a]||!l.fields[e].validators[a]()),delete l.fields[e].validators[a]);var r=!!l.fieldSubscribers[e];r&&delete l.fieldSubscribers[e].entries[a];var n=r&&!Object.keys(l.fieldSubscribers[e].entries).length;n&&(delete l.fieldSubscribers[e],delete l.fields[e],t&&(l.formState.errors=H(l.formState.errors,e,void 0)||{}),i&&(l.formState.values=H(l.formState.values,e,void 0,!0)||{})),o||(t?E(void 0,(function(){x(),F()})):n&&x())}},reset:function(e){void 0===e&&(e=l.formState.initialValues),l.formState.submitting&&(l.formState.resetWhileSubmitting=!0),l.formState.submitFailed=!1,l.formState.submitSucceeded=!1,delete l.formState.submitError,delete l.formState.submitErrors,delete l.formState.lastSubmittedValues,L.initialize(e||{})},resetFieldState:function(e){l.fields[e]=q({},l.fields[e],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),E(void 0,(function(){F(),x()}))},restart:function(e){void 0===e&&(e=l.formState.initialValues),L.batch((function(){for(var t in l.fields)L.resetFieldState(t),l.fields[t]=q({},l.fields[t],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});L.reset(e)}))},resumeValidation:function(){c=!1,m=!1,f&&E(void 0,(function(){F(),x()})),f=!1},setConfig:function(e,n){switch(e){case"debug":t=n;break;case"destroyOnUnregister":i=n;break;case"initialValues":L.initialize(n);break;case"keepDirtyOnReinitialize":r=n;break;case"mutators":a=n,n?(Object.keys(g).forEach((function(e){e in n||delete g[e]})),Object.keys(n).forEach((function(e){g[e]=p(e)}))):Object.keys(g).forEach((function(e){delete g[e]}));break;case"onSubmit":u=n;break;case"validate":o=n,E(void 0,(function(){F(),x()}));break;case"validateOnBlur":s=n;break;default:throw new Error("Unrecognised option "+e)}},submit:function(){var e=l.formState;if(!e.submitting){if(delete e.submitErrors,delete e.submitError,e.lastSubmittedValues=q({},e.values),l.formState.error||ue(l.formState.errors))return O(),l.formState.submitFailed=!0,x(),void F();var t=Object.keys(b);if(t.length)return void Promise.all(t.map((function(e){return b[Number(e)]}))).then(L.submit,console.error);var i=Object.keys(l.fields).some((function(e){return l.fields[e].beforeSubmit&&!1===l.fields[e].beforeSubmit()}));if(!i){var r,n=!1,a=function(t){e.submitting=!1;var i=e.resetWhileSubmitting;return i&&(e.resetWhileSubmitting=!1),t&&ue(t)?(e.submitFailed=!0,e.submitSucceeded=!1,e.submitErrors=t,e.submitError=t[Oe],O()):(i||(e.submitFailed=!1,e.submitSucceeded=!0),Object.keys(l.fields).forEach((function(e){return l.fields[e].afterSubmit&&l.fields[e].afterSubmit()}))),x(),F(),n=!0,r&&r(t),t};e.submitting=!0,e.submitFailed=!1,e.submitSucceeded=!1,e.lastSubmittedValues=q({},e.values),Object.keys(l.fields).forEach((function(e){return l.fields[e].modifiedSinceLastSubmit=!1}));var o=u(e.values,L,a);if(!n){if(o&&pe(o))return x(),F(),o.then(a,(function(e){throw a(),e}));if(u.length>=3)return x(),F(),new Promise((function(e){r=e}));a(o)}}}},subscribe:function(e,t){if(!e)throw new Error("No callback given.");if(!t)throw new Error("No subscription provided. What values do you want to listen to?");var i=je(e),r=l.subscribers,n=r.index++;r.entries[n]={subscriber:i,subscription:t,notified:!1};var a=V();return ze(i,t,a,a,Le,!0),function(){delete r.entries[n]}}};return L}function Ie(e,t,i){var r=e.render,n=e.children,a=e.component,u=he(e,["render","children","component"]);if(a)return W.createElement(a,Object.assign(t,u,{children:n,render:r}));if(r)return r(void 0===n?Object.assign(t,u):Object.assign(t,u,{children:n}));if("function"!=typeof n)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+i);return n(Object.assign(t,u))}function X(e,t,i){void 0===i&&(i=function(e,t){return e===t});var r=me.useRef(e);me.useEffect((function(){i(e,r.current)||(t(),r.current=e)}))}function at(e){var t=me.useRef();return t.current||(t.current=e()),t.current}var qe=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(var n=Object.prototype.hasOwnProperty.bind(t),a=0;a component");return t}var vt=typeof window<"u"&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,mt=function(e){var t=[];if(e)for(var i=0;i component");return Ie(q({children:a,component:u,ref:t},E),j,"Field("+v+")")}));const Ae=e=>{const{comment:t,isReply:i}=e,r=Ke({comment:We().required("Make sure this field is filled correctly")}),n=e=>null!=e&&e.trim()?void 0:"Comment cannot be blank";return ie.jsx(ft,{onSubmit:()=>{},initialValues:{comment:t},validate:async e=>{try{await r.validate(e,{abortEarly:!1})}catch(t){return t.inner.reduce(((e,t)=>({...e,[t.path]:t.message})),{})}},"data-cy":"EditCommentForm",render:({invalid:t,handleSubmit:r,values:a})=>{const u=t;return ie.jsxs(Ve,{as:"form",sx:{flexDirection:"column"},p:2,onSubmit:r,children:[ie.jsxs(He,{as:"label",htmlFor:"comment",sx:{marginBottom:"6px",fontSize:3},children:["Edit ",i?"Reply":"Comment"]}),ie.jsx(yt,{component:Te,"data-cy":"edit-comment",id:"comment",validate:n,name:"comment"}),ie.jsxs(Ve,{mt:4,ml:"auto",children:[ie.jsx(Ee,{type:"button",small:!0,mr:4,variant:"secondary",onClick:()=>null==e?void 0:e.handleCancel(),children:"Cancel"}),ie.jsx(Ee,{"data-cy":"edit-comment-submit","data-testid":"edit-comment-submit",type:"submit","aria-label":"Save changes",small:!0,disabled:u,onClick:()=>{(t=>{null!=t&&t.trim()&&(null==e||e.handleSubmit(t))})(a.comment)},children:"Save"})]})]})}})};try{Ae.displayName="EditComment",Ae.__docgenInfo={description:"",displayName:"EditComment",props:{comment:{defaultValue:null,description:"",name:"comment",required:!0,type:{name:"string"}},handleCancel:{defaultValue:null,description:"",name:"handleCancel",required:!0,type:{name:"() => void"}},handleSubmit:{defaultValue:null,description:"",name:"handleSubmit",required:!0,type:{name:"(commentText: string) => void"}},isReply:{defaultValue:null,description:"",name:"isReply",required:!0,type:{name:"boolean"}}}}}catch{}export{Ae as E}; \ No newline at end of file diff --git a/storybook-static/assets/EditComment.stories-6IcvQ8ab.js b/storybook-static/assets/EditComment.stories-d1wxRZnz.js similarity index 89% rename from storybook-static/assets/EditComment.stories-6IcvQ8ab.js rename to storybook-static/assets/EditComment.stories-d1wxRZnz.js index e61b9dbea1..3e9429a65c 100644 --- a/storybook-static/assets/EditComment.stories-6IcvQ8ab.js +++ b/storybook-static/assets/EditComment.stories-d1wxRZnz.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{E as o}from"./EditComment-DY_6Q1TM.js";import"./index-BP8_t0zE.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";const k={title:"Discussions/EditComment",component:o},t=()=>a.jsx(o,{isReply:!1,comment:"A short comment",handleCancel:()=>null,handleSubmit:()=>null}),e=()=>a.jsx(o,{isReply:!0,comment:"A short comment here...",handleCancel:()=>null,handleSubmit:()=>null});var m,r,s,n,i,l;t.parameters={...t.parameters,docs:{...null==(m=t.parameters)?void 0:m.docs,source:{originalSource:'() => null} handleSubmit={() => null} />',...null==(s=null==(r=t.parameters)?void 0:r.docs)?void 0:s.source}}},e.parameters={...e.parameters,docs:{...null==(n=e.parameters)?void 0:n.docs,source:{originalSource:'() => null} handleSubmit={() => null} />',...null==(l=null==(i=e.parameters)?void 0:i.docs)?void 0:l.source}}};const q=["Default","EditReply"];export{t as Default,e as EditReply,q as __namedExportsOrder,k as default}; \ No newline at end of file +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{E as o}from"./EditComment-CS1dAl1Z.js";import"./index-BP8_t0zE.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./FieldTextarea-msSeWkcr.js";import"./CharacterCount-BGgvgJrP.js";const k={title:"Discussions/EditComment",component:o},t=()=>a.jsx(o,{isReply:!1,comment:"A short comment",handleCancel:()=>null,handleSubmit:()=>null}),e=()=>a.jsx(o,{isReply:!0,comment:"A short comment here...",handleCancel:()=>null,handleSubmit:()=>null});var m,r,s,n,i,l;t.parameters={...t.parameters,docs:{...null==(m=t.parameters)?void 0:m.docs,source:{originalSource:'() => null} handleSubmit={() => null} />',...null==(s=null==(r=t.parameters)?void 0:r.docs)?void 0:s.source}}},e.parameters={...e.parameters,docs:{...null==(n=e.parameters)?void 0:n.docs,source:{originalSource:'() => null} handleSubmit={() => null} />',...null==(l=null==(i=e.parameters)?void 0:i.docs)?void 0:l.source}}};const q=["Default","EditReply"];export{t as Default,e as EditReply,q as __namedExportsOrder,k as default}; \ No newline at end of file diff --git a/storybook-static/assets/ExternalLink.stories-CgVBGAmq.js b/storybook-static/assets/ExternalLink.stories-CAAKEnpi.js similarity index 64% rename from storybook-static/assets/ExternalLink.stories-CgVBGAmq.js rename to storybook-static/assets/ExternalLink.stories-CAAKEnpi.js index 64d6de9088..4b9cbca274 100644 --- a/storybook-static/assets/ExternalLink.stories-CgVBGAmq.js +++ b/storybook-static/assets/ExternalLink.stories-CAAKEnpi.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import"./ArticleCallToAction-CcvC77dL.js";import"./Banner-Rp1eOMI_.js";import"./BlockedRoute-K9n5NNTD.js";import"./Breadcrumbs-fIZcmrbj.js";import"./Button-B7QBvkxh.js";import"./ButtonIcon-BjD0tDRb.js";import"./ButtonShowReplies-CiHAfYgx.js";import"./CardButton-UFEWOkeB.js";import"./CardList-CsrRuU_s.js";import"./CardListItem-DkByzG5-.js";import"./CardProfile-DhE0xdXm.js";import"./Category-BRVyiaSI.js";import"./ContentStatistics-Clvo6xNg.js";import"./CommentItem-DIZh1yYT.js";import"./CommentList-Al_JOVpj.js";import"./CreateReply-ByN4QqWr.js";import"./ConfirmModal-DGUUT3uo.js";import"./CreateComment-ButSCGtD.js";import"./DiscussionContainer-CmOO164Y.js";import"./DiscussionTitle-Dhry4tok.js";import"./DisplayDate-8pUkm3CJ.js";import"./DonationRequest-0J0Ydxwt.js";import"./DonationRequestModal-BNxPzf8m.js";import"./DownloadButton-C_Yd3Qr5.js";import"./DownloadCounter-CpsPmH8s.js";import"./DownloadWithDonationAsk-DqdQCDXv.js";import"./DownloadStaticFile-BGuyYeyj.js";import"./EditComment-DY_6Q1TM.js";import"./ElWithBeforeIcon-L9Bddb7t.js";import{E as m}from"./ExternalLink-CHmx7fZ7.js";import"./FieldInput-CIt9FN7x.js";import"./FieldTextarea-msSeWkcr.js";import"./Guidelines-CAuhvrJl.js";import"./Username-jnUEp1hu.js";import"./FollowButton-gF1fEo3D.js";import"./GlobalStyles-Cwnjx0pv.js";import"./HeroBanner-D9U7RVxT.js";import{I as k}from"./Icon-BoVZOGVD.js";import"./IconCountWithTooltip-BgxPFEPA.js";import"./ImageCrop-DCgV90x1.js";import"./ImageGallery-DnFzFe7P.js";import"./InternalLink-CtyTe3gy.js";import"./LinkifyText-CTcW0PSE.js";import"./Loader-DmqUoSY8.js";import"./Map.client-D7Zd9Rir.js";import"./MapFilterList-DcOr19-7.js";import"./MapFilterProfileTypeCardList-1X6FSqZf.js";import"./MapMemberCard-Dj2rBDdu.js";import"./MapWithPin.client-B3vCTPau.js";import"./MemberBadge-DaB6gu8F.js";import"./Modal-CNp0gEVS.js";import"./ModerationStatus-i6sV2GYn.js";import"./MoreContainer-BHO-aLZj.js";import"./NotificationItem-BEQLiIOf.js";import"./NotificationList-B57zIKMs.js";import"./OsmGeocoding-Dk6lLoXi.js";import"./PinProfile-KRvjF2gX.js";import"./ProfileLink-Bn1AIGdm.js";import"./ProfileTagsList-C85jWzjp.js";import"./ResearchEditorOverview-DHGZ1VKA.js";import"./SearchField-BEwe93wL.js";import"./Select-vDnhT3MJ.js";import"./SettingsFormWrapper-CUpe9h_U.js";import"./SiteFooter-BzW_8Cd0.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-Dzxf5qoT.js";import"./TagList-C0eLtcDO.js";import"./TextNotification-TOi5P2Z0.js";import"./Tooltip-B9mgSRkZ.js";import"./UsefulStatsButton-UfP_hPRY.js";import"./UserEngagementWrapper-A6DCP-GM.js";import"./UserStatistics-CUtZqp73.js";import"./VideoPlayer-Dmkl06KS.js";import{T as L}from"./theme-ui-components.esm-DCiJ1mMX.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-BGgvgJrP.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-DtcZXcvp.js";import"./TabsList-DhTEw6FA.js";const kt={title:"Components/ExternalLink",component:m},t=()=>r.jsx(m,{href:"#",children:"Link Text"}),o=()=>r.jsx(m,{href:"#",color:"black",sx:{textDecoration:"underline"},children:"Link Text"}),i=()=>r.jsxs(m,{href:"#",children:[r.jsx(L,{children:"Link Text"}),r.jsx(k,{glyph:"external-link",ml:[1]})]});var p,e,n,s,a,c,l,x,d;t.parameters={...t.parameters,docs:{...null==(p=t.parameters)?void 0:p.docs,source:{originalSource:'() => Link Text',...null==(n=null==(e=t.parameters)?void 0:e.docs)?void 0:n.source}}},o.parameters={...o.parameters,docs:{...null==(s=o.parameters)?void 0:s.docs,source:{originalSource:'() => \n Link Text\n ',...null==(c=null==(a=o.parameters)?void 0:a.docs)?void 0:c.source}}},i.parameters={...i.parameters,docs:{...null==(l=i.parameters)?void 0:l.docs,source:{originalSource:'() => \n Link Text\n \n ',...null==(d=null==(x=i.parameters)?void 0:x.docs)?void 0:d.source}}};const Lt=["Basic","Styled","WithIcon"];export{t as Basic,o as Styled,i as WithIcon,Lt as __namedExportsOrder,kt as default}; \ No newline at end of file +import{j as r}from"./jsx-runtime-CexXSJP5.js";import"./ArticleCallToAction-CcvC77dL.js";import"./Banner-Rp1eOMI_.js";import"./BlockedRoute-CNa7wecH.js";import"./Breadcrumbs-CJmuaguM.js";import"./Button-1qf_V-Zv.js";import"./ButtonIcon-DLFqXCZb.js";import"./ButtonShowReplies-nddYmg0q.js";import"./CardButton-UFEWOkeB.js";import"./CardList-DYV48TQx.js";import"./CardListItem-DfmpNeu7.js";import"./CardProfile-BoQoQZcw.js";import"./Category-BRVyiaSI.js";import"./ContentStatistics-CzRzqwNB.js";import"./CommentItem-DZgP41nA.js";import"./CommentList-DhPqgHRE.js";import"./CreateReply-2Azc7a5m.js";import"./ConfirmModal-BcXyrr5V.js";import"./CreateComment-C20B3Odi.js";import"./DiscussionContainer-yXJCotUg.js";import"./DiscussionTitle-Dhry4tok.js";import"./DisplayDate-8pUkm3CJ.js";import"./DonationRequest-DuTXC9D9.js";import"./DonationRequestModal-Gqs-htQ0.js";import"./DownloadButton-DzIURGFB.js";import"./DownloadCounter-CpsPmH8s.js";import"./DownloadWithDonationAsk-CLFhEu2Q.js";import"./DownloadStaticFile-BxfNeVDS.js";import"./EditComment-CS1dAl1Z.js";import"./ElWithBeforeIcon-L9Bddb7t.js";import{E as m}from"./ExternalLink-CHmx7fZ7.js";import"./FieldInput-CIt9FN7x.js";import"./FieldTextarea-msSeWkcr.js";import"./Guidelines-CAuhvrJl.js";import"./Username-jnUEp1hu.js";import"./FollowButton-BpOrSPUK.js";import"./GlobalStyles-Cwnjx0pv.js";import"./HeroBanner-D9U7RVxT.js";import{I as k}from"./Icon-DVJa_328.js";import"./IconCountWithTooltip-D45XZbVQ.js";import"./ImageCrop-B_XHY1rW.js";import"./ImageGallery-_6WaFG1J.js";import"./InternalLink-CtyTe3gy.js";import"./LinkifyText-CTcW0PSE.js";import"./Loader-DmqUoSY8.js";import"./Map.client-D7Zd9Rir.js";import"./MapFilterList-rj326Ijs.js";import"./MapFilterProfileTypeCardList-BMZcIHDF.js";import"./MapMemberCard-Dj2rBDdu.js";import"./MapWithPin.client-mWMy-bbS.js";import"./MemberBadge-BFCUvfGJ.js";import"./Modal-CNp0gEVS.js";import"./ModerationStatus-i6sV2GYn.js";import"./MoreContainer-BHO-aLZj.js";import"./NotificationItem-ClPYRcjY.js";import"./NotificationList-DEA9ZS2i.js";import"./OsmGeocoding-DOGggMqw.js";import"./PinProfile-DUk9-hW8.js";import"./ProfileLink-BNudREw6.js";import"./ProfileTagsList-C85jWzjp.js";import"./ResearchEditorOverview-TBcr6efP.js";import"./SearchField-Cykq-dlt.js";import"./Select-vDnhT3MJ.js";import"./SettingsFormWrapper-DAzZ8D8d.js";import"./SiteFooter-CL9myLOY.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-Dzxf5qoT.js";import"./TagList-C0eLtcDO.js";import"./TextNotification-TOi5P2Z0.js";import"./Tooltip-B9mgSRkZ.js";import"./UsefulStatsButton-B0X13EYo.js";import"./UserEngagementWrapper-A6DCP-GM.js";import"./UserStatistics-C-3yC6TP.js";import"./VideoPlayer-Dilqd3c4.js";import{T as L}from"./theme-ui-components.esm-DCiJ1mMX.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-BGgvgJrP.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-DtcZXcvp.js";import"./TabsList-DhTEw6FA.js";const kt={title:"Components/ExternalLink",component:m},t=()=>r.jsx(m,{href:"#",children:"Link Text"}),o=()=>r.jsx(m,{href:"#",color:"black",sx:{textDecoration:"underline"},children:"Link Text"}),i=()=>r.jsxs(m,{href:"#",children:[r.jsx(L,{children:"Link Text"}),r.jsx(k,{glyph:"external-link",ml:[1]})]});var p,e,n,s,a,c,l,x,d;t.parameters={...t.parameters,docs:{...null==(p=t.parameters)?void 0:p.docs,source:{originalSource:'() => Link Text',...null==(n=null==(e=t.parameters)?void 0:e.docs)?void 0:n.source}}},o.parameters={...o.parameters,docs:{...null==(s=o.parameters)?void 0:s.docs,source:{originalSource:'() => \n Link Text\n ',...null==(c=null==(a=o.parameters)?void 0:a.docs)?void 0:c.source}}},i.parameters={...i.parameters,docs:{...null==(l=i.parameters)?void 0:l.docs,source:{originalSource:'() => \n Link Text\n \n ',...null==(d=null==(x=i.parameters)?void 0:x.docs)?void 0:d.source}}};const Lt=["Basic","Styled","WithIcon"];export{t as Basic,o as Styled,i as WithIcon,Lt as __namedExportsOrder,kt as default}; \ No newline at end of file diff --git a/storybook-static/assets/Facebook-7Psi_5Xu.js b/storybook-static/assets/Facebook-DHDup0b1.js similarity index 98% rename from storybook-static/assets/Facebook-7Psi_5Xu.js rename to storybook-static/assets/Facebook-DHDup0b1.js index 8e866c7a50..bd71ae5e52 100644 --- a/storybook-static/assets/Facebook-7Psi_5Xu.js +++ b/storybook-static/assets/Facebook-DHDup0b1.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-BP8_t0zE.js";import{u as P,p as m}from"./VideoPlayer-Dmkl06KS.js";function v(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of E(t))!j.call(e,o)&&o!==r&&i(e,o,{get:()=>t[o],enumerable:!(s=D(t,o))||s.enumerable});return e},w=(e,t,r)=>(r=null!=e?O(S(e)):{},h(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),F=e=>h(i({},"__esModule",{value:!0}),e),o=(e,t,r)=>(I(e,"symbol"!=typeof t?t+"":t,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){t?(0,n.getSDK)(c,f,y).then((e=>e.XFBML.parse())):(0,n.getSDK)(c,f,y).then((e=>{e.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),e.Event.subscribe("xfbml.render",(e=>{this.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(e=>{"video"===e.type&&e.id===this.playerID&&(this.player=e.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")}))}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config;return u.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook"),o(l,"canPlay",x.canPlay.facebook),o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; \ No newline at end of file +import{g as _,r as g}from"./index-BP8_t0zE.js";import{u as P,p as m}from"./VideoPlayer-Dilqd3c4.js";function v(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of E(t))!j.call(e,o)&&o!==r&&i(e,o,{get:()=>t[o],enumerable:!(s=D(t,o))||s.enumerable});return e},w=(e,t,r)=>(r=null!=e?O(S(e)):{},h(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),F=e=>h(i({},"__esModule",{value:!0}),e),o=(e,t,r)=>(I(e,"symbol"!=typeof t?t+"":t,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){t?(0,n.getSDK)(c,f,y).then((e=>e.XFBML.parse())):(0,n.getSDK)(c,f,y).then((e=>{e.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),e.Event.subscribe("xfbml.render",(e=>{this.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(e=>{"video"===e.type&&e.id===this.playerID&&(this.player=e.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")}))}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config;return u.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook"),o(l,"canPlay",x.canPlay.facebook),o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; \ No newline at end of file diff --git a/storybook-static/assets/FilePlayer-IDHGcVTO.js b/storybook-static/assets/FilePlayer-Bw1_o_Ji.js similarity index 99% rename from storybook-static/assets/FilePlayer-IDHGcVTO.js rename to storybook-static/assets/FilePlayer-Bw1_o_Ji.js index 9abddfe08b..de60a3806c 100644 --- a/storybook-static/assets/FilePlayer-IDHGcVTO.js +++ b/storybook-static/assets/FilePlayer-Bw1_o_Ji.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-BP8_t0zE.js";import{u as O,p as A}from"./VideoPlayer-Dmkl06KS.js";function R(e,t){for(var s=0;sr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,N=(e,t)=>{for(var s in t)u(e,s,{get:t[s],enumerable:!0})},E=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of w(t))!k.call(e,i)&&i!==s&&u(e,i,{get:()=>t[i],enumerable:!(r=D(t,i))||r.enumerable});return e},j=(e,t,s)=>(s=null!=e?I(M(e)):{},E(e&&e.__esModule?s:u(s,"default",{value:e,enumerable:!0}),e)),H=e=>E(u({},"__esModule",{value:!0}),e),r=(e,t,s)=>(U(e,"symbol"!=typeof t?t+"":t,s),s),m={};N(m,{default:()=>P});var g=H(m),d=j(_),a=O,c=A;const y=typeof navigator<"u",F=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends d.Component{constructor(){super(...arguments),r(this,"onReady",((...e)=>this.props.onReady(...e))),r(this,"onPlay",((...e)=>this.props.onPlay(...e))),r(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),r(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),r(this,"onPause",((...e)=>this.props.onPause(...e))),r(this,"onEnded",((...e)=>this.props.onEnded(...e))),r(this,"onError",((...e)=>this.props.onError(...e))),r(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),r(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),r(this,"onDisablePIP",(e=>{const{onDisablePIP:t,playing:s}=this.props;t(e),s&&this.play()})),r(this,"onPresentationModeChange",(e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}})),r(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),r(this,"mute",(()=>{this.player.muted=!0})),r(this,"unmute",(()=>{this.player.muted=!1})),r(this,"renderSourceElement",((e,t)=>"string"==typeof e?d.default.createElement("source",{key:t,src:e}):d.default.createElement("source",{key:t,...e}))),r(this,"renderTrack",((e,t)=>d.default.createElement("track",{key:t,...e}))),r(this,"ref",(e=>{this.player&&(this.prevPlayer=this.player),this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:s}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),s&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(c.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!(V&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!v&&!this.props.config.forceDisableHls&&(c.HLS_EXTENSIONS.test(e)||f.test(e))}shouldUseDASH(e){return c.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return c.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:s,dashVersion:r,flvVersion:i}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then((t=>{if(this.hls=new t(s),this.hls.on(t.Events.MANIFEST_PARSED,(()=>{this.props.onReady()})),this.hls.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.hls,t)})),f.test(e)){const t=e.match(f)[1];this.hls.loadSource(W.replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()})),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",r),x).then((t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(r)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()})),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",i),G).then((t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.flv,t)})),this.flv.load(),this.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),s=this.getDuration();return t>s?s:t}getSource(e){const t=this.shouldUseHLS(e),s=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||s||r))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:s,controls:r,muted:i,config:n,width:o,height:a}=this.props,h=this.shouldUseAudio(this.props)?"audio":"video",l={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return d.default.createElement(h,{ref:this.ref,src:this.getSource(e),style:l,preload:"auto",autoPlay:t||void 0,controls:r,muted:i,loop:s,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer"),r(P,"canPlay",c.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; \ No newline at end of file +import{g as b,r as _}from"./index-BP8_t0zE.js";import{u as O,p as A}from"./VideoPlayer-Dilqd3c4.js";function R(e,t){for(var s=0;sr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,N=(e,t)=>{for(var s in t)u(e,s,{get:t[s],enumerable:!0})},E=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of w(t))!k.call(e,i)&&i!==s&&u(e,i,{get:()=>t[i],enumerable:!(r=D(t,i))||r.enumerable});return e},j=(e,t,s)=>(s=null!=e?I(M(e)):{},E(e&&e.__esModule?s:u(s,"default",{value:e,enumerable:!0}),e)),H=e=>E(u({},"__esModule",{value:!0}),e),r=(e,t,s)=>(U(e,"symbol"!=typeof t?t+"":t,s),s),m={};N(m,{default:()=>P});var g=H(m),d=j(_),a=O,c=A;const y=typeof navigator<"u",F=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends d.Component{constructor(){super(...arguments),r(this,"onReady",((...e)=>this.props.onReady(...e))),r(this,"onPlay",((...e)=>this.props.onPlay(...e))),r(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),r(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),r(this,"onPause",((...e)=>this.props.onPause(...e))),r(this,"onEnded",((...e)=>this.props.onEnded(...e))),r(this,"onError",((...e)=>this.props.onError(...e))),r(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),r(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),r(this,"onDisablePIP",(e=>{const{onDisablePIP:t,playing:s}=this.props;t(e),s&&this.play()})),r(this,"onPresentationModeChange",(e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}})),r(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),r(this,"mute",(()=>{this.player.muted=!0})),r(this,"unmute",(()=>{this.player.muted=!1})),r(this,"renderSourceElement",((e,t)=>"string"==typeof e?d.default.createElement("source",{key:t,src:e}):d.default.createElement("source",{key:t,...e}))),r(this,"renderTrack",((e,t)=>d.default.createElement("track",{key:t,...e}))),r(this,"ref",(e=>{this.player&&(this.prevPlayer=this.player),this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:s}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),s&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(c.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}shouldUseHLS(e){return!!(V&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!v&&!this.props.config.forceDisableHls&&(c.HLS_EXTENSIONS.test(e)||f.test(e))}shouldUseDASH(e){return c.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return c.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:s,dashVersion:r,flvVersion:i}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then((t=>{if(this.hls=new t(s),this.hls.on(t.Events.MANIFEST_PARSED,(()=>{this.props.onReady()})),this.hls.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.hls,t)})),f.test(e)){const t=e.match(f)[1];this.hls.loadSource(W.replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()})),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",r),x).then((t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(r)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()})),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",i),G).then((t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,((e,s)=>{this.props.onError(e,s,this.flv,t)})),this.flv.load(),this.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),s=this.getDuration();return t>s?s:t}getSource(e){const t=this.shouldUseHLS(e),s=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||s||r))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:s,controls:r,muted:i,config:n,width:o,height:a}=this.props,h=this.shouldUseAudio(this.props)?"audio":"video",l={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return d.default.createElement(h,{ref:this.ref,src:this.getSource(e),style:l,preload:"auto",autoPlay:t||void 0,controls:r,muted:i,loop:s,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer"),r(P,"canPlay",c.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; \ No newline at end of file diff --git a/storybook-static/assets/FollowButton-gF1fEo3D.js b/storybook-static/assets/FollowButton-BpOrSPUK.js similarity index 95% rename from storybook-static/assets/FollowButton-gF1fEo3D.js rename to storybook-static/assets/FollowButton-BpOrSPUK.js index 31c5f46e70..66760e3fc9 100644 --- a/storybook-static/assets/FollowButton-gF1fEo3D.js +++ b/storybook-static/assets/FollowButton-BpOrSPUK.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{B as u}from"./Button-B7QBvkxh.js";import{T as c}from"./Tooltip-B9mgSRkZ.js";import{u as p}from"./index-BXxqJQdV.js";const r=o=>{const{hasUserSubscribed:t,isLoggedIn:n,onFollowClick:i,sx:l}=o,r=p(),s=d.useMemo((()=>(16*Math.random()).toString()),[]);return e.jsxs(e.Fragment,{children:[e.jsx(u,{type:"button","data-testid":n?"follow-button":"follow-redirect","data-cy":n?"follow-button":"follow-redirect","data-tooltip-id":s,"data-tooltip-content":n?"":"Login to follow",icon:"thunderbolt",variant:"outline",iconColor:t?"subscribed":"notSubscribed",sx:{fontSize:2,py:0,...l},onClick:()=>n?i():r("/sign-in"),children:t?"Following":"Follow"}),e.jsx(c,{id:s})]})};try{r.displayName="FollowButton",r.__docgenInfo={description:"",displayName:"FollowButton",props:{hasUserSubscribed:{defaultValue:null,description:"",name:"hasUserSubscribed",required:!0,type:{name:"boolean"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},onFollowClick:{defaultValue:null,description:"",name:"onFollowClick",required:!0,type:{name:"() => void"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{r as F}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{B as u}from"./Button-1qf_V-Zv.js";import{T as c}from"./Tooltip-B9mgSRkZ.js";import{u as p}from"./index-BXxqJQdV.js";const r=o=>{const{hasUserSubscribed:t,isLoggedIn:n,onFollowClick:i,sx:l}=o,r=p(),s=d.useMemo((()=>(16*Math.random()).toString()),[]);return e.jsxs(e.Fragment,{children:[e.jsx(u,{type:"button","data-testid":n?"follow-button":"follow-redirect","data-cy":n?"follow-button":"follow-redirect","data-tooltip-id":s,"data-tooltip-content":n?"":"Login to follow",icon:"thunderbolt",variant:"outline",iconColor:t?"subscribed":"notSubscribed",sx:{fontSize:2,py:0,...l},onClick:()=>n?i():r("/sign-in"),children:t?"Following":"Follow"}),e.jsx(c,{id:s})]})};try{r.displayName="FollowButton",r.__docgenInfo={description:"",displayName:"FollowButton",props:{hasUserSubscribed:{defaultValue:null,description:"",name:"hasUserSubscribed",required:!0,type:{name:"boolean"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},onFollowClick:{defaultValue:null,description:"",name:"onFollowClick",required:!0,type:{name:"() => void"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{r as F}; \ No newline at end of file diff --git a/storybook-static/assets/FollowButton.stories-C1pCGpXR.js b/storybook-static/assets/FollowButton.stories-A-hMvqvI.js similarity index 93% rename from storybook-static/assets/FollowButton.stories-C1pCGpXR.js rename to storybook-static/assets/FollowButton.stories-A-hMvqvI.js index 1dc69307e2..b7f9bb01b8 100644 --- a/storybook-static/assets/FollowButton.stories-C1pCGpXR.js +++ b/storybook-static/assets/FollowButton.stories-A-hMvqvI.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{F as s}from"./FollowButton-gF1fEo3D.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./index-BXxqJQdV.js";const R={title:"Components/FollowButton",component:s},o=()=>t.jsx(s,{isLoggedIn:!1,hasUserSubscribed:!1,onFollowClick:()=>null}),r=()=>t.jsx(s,{hasUserSubscribed:!1,isLoggedIn:!0,onFollowClick:()=>null}),e=()=>t.jsx(s,{hasUserSubscribed:!0,isLoggedIn:!0,onFollowClick:()=>null});var l,i,a,n,u,c,m,p,d;o.parameters={...o.parameters,docs:{...null==(l=o.parameters)?void 0:l.docs,source:{originalSource:"() => null} />",...null==(a=null==(i=o.parameters)?void 0:i.docs)?void 0:a.source}}},r.parameters={...r.parameters,docs:{...null==(n=r.parameters)?void 0:n.docs,source:{originalSource:"() => null} />",...null==(c=null==(u=r.parameters)?void 0:u.docs)?void 0:c.source}}},e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => null} />",...null==(d=null==(p=e.parameters)?void 0:p.docs)?void 0:d.source}}};const q=["LoggedOut","LoggedIn","CurrentUserSubscribed"];export{e as CurrentUserSubscribed,r as LoggedIn,o as LoggedOut,q as __namedExportsOrder,R as default}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{F as s}from"./FollowButton-BpOrSPUK.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./index-BXxqJQdV.js";const R={title:"Components/FollowButton",component:s},o=()=>t.jsx(s,{isLoggedIn:!1,hasUserSubscribed:!1,onFollowClick:()=>null}),r=()=>t.jsx(s,{hasUserSubscribed:!1,isLoggedIn:!0,onFollowClick:()=>null}),e=()=>t.jsx(s,{hasUserSubscribed:!0,isLoggedIn:!0,onFollowClick:()=>null});var l,i,a,n,u,c,m,p,d;o.parameters={...o.parameters,docs:{...null==(l=o.parameters)?void 0:l.docs,source:{originalSource:"() => null} />",...null==(a=null==(i=o.parameters)?void 0:i.docs)?void 0:a.source}}},r.parameters={...r.parameters,docs:{...null==(n=r.parameters)?void 0:n.docs,source:{originalSource:"() => null} />",...null==(c=null==(u=r.parameters)?void 0:u.docs)?void 0:c.source}}},e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => null} />",...null==(d=null==(p=e.parameters)?void 0:p.docs)?void 0:d.source}}};const q=["LoggedOut","LoggedIn","CurrentUserSubscribed"];export{e as CurrentUserSubscribed,r as LoggedIn,o as LoggedOut,q as __namedExportsOrder,R as default}; \ No newline at end of file diff --git a/storybook-static/assets/Icon-BoVZOGVD.js b/storybook-static/assets/Icon-DVJa_328.js similarity index 98% rename from storybook-static/assets/Icon-BoVZOGVD.js rename to storybook-static/assets/Icon-DVJa_328.js index 210880815f..e42592a4d5 100644 --- a/storybook-static/assets/Icon-BoVZOGVD.js +++ b/storybook-static/assets/Icon-DVJa_328.js @@ -1,4 +1,4 @@ -/*! For license information please see Icon-BoVZOGVD.js.LICENSE.txt */ +/*! For license information please see Icon-DVJa_328.js.LICENSE.txt */ import{a as H,g as o2}from"./index-BP8_t0zE.js";import{n as l2}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{j as l}from"./jsx-runtime-CexXSJP5.js";import{f as n2,S as s2,V as d2}from"./supporter-D7hp958O.js";import{I as p2}from"./icon-arrow-down-CJeToCJe.js";import{s as g2}from"./icon-star-active-ClN6U5FF.js";import{j as g}from"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";var a2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},N=H.createContext&&H.createContext(a2),h2=["attr","size","title"];function u2(e,t){if(null==e)return{};var a,r,i=v2(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}function v2(e,t){if(null==e)return{};var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;a[r]=e[r]}return a}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;tH.createElement(e.tag,_({key:t},e.attr),i2(e.child))))}function v(e){return t=>H.createElement(C2,D({attr:_({},e.attr)},t),i2(e.child))}function C2(e){var t=t=>{var a,{attr:r,size:i,title:c}=e,l=u2(e,h2),o=i||t.size||"1em";return t.className&&(a=t.className),e.className&&(a=(a?a+" ":"")+e.className),H.createElement("svg",D({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:a,style:_(_({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),c&&H.createElement("title",null,c),e.children)};return void 0!==N?H.createElement(N.Consumer,null,(e=>t(e))):t(a2)}function b2(e){return v({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(e)}function y2(e){return v({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function x2(e){return v({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"},child:[]}]})(e)}function M2(e){return v({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"},child:[]}]})(e)}function L2(e){return v({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"},child:[]}]})(e)}function S2(e){return v({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},child:[]}]})(e)}function z2(e){return v({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"},child:[]}]})(e)}function k2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L19.94 3h-3.69a.75.75 0 0 1-.75-.75Z"},child:[]},{tag:"path",attr:{d:"M2.5 4.25c0-.966.784-1.75 1.75-1.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5a1.75 1.75 0 0 1-1.75 1.75H4.25a1.75 1.75 0 0 1-1.75-1.75V4.25Z"},child:[]}]})(e)}function B2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88a9.947 9.947 0 0 1 12.28 0C16.43 19.18 14.03 20 12 20z"},child:[]}]})(e)}function V2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"},child:[]}]})(e)}function j2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"},child:[]}]})(e)}function R2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z"},child:[]}]})(e)}function G2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"},child:[]}]})(e)}function H2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function A2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(e)}function Z2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},child:[]}]})(e)}function O2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"},child:[]}]})(e)}function T2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function P2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function D2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"},child:[]}]})(e)}function _2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}function F2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(e)}function I2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function W2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function N2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function E2(e){return v({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22c1.1 0 2-.9 2-2h-4a2 2 0 0 0 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"},child:[]}]})(e)}var X=Object.getOwnPropertySymbols,q2=Object.prototype.hasOwnProperty,$2=Object.prototype.propertyIsEnumerable;function U2(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Y2(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch{return!1}}var X2=Y2()?Object.assign:function(e,t){for(var a,r,i=U2(e),c=1;c1&&i.forEach((function(a){var i;r[a]=e(((i={})[a]=t[a],i))})),r},e0=function(e,t,a,r,i){var c={};return r.slice(0,e.length).forEach((function(r,l){var o,n=e[l],s=t(r,a,i);n?S(c,((o={})[n]=S({},c[n],s),o)):S(c,s)})),c},t0=function(e,t,a,r,i){var c={};for(var l in r){var o=e[l],n=t(r[l],a,i);if(o){var s,d=c2(o);S(c,((s={})[d]=S({},c[d],n),s))}else S(c,n)}return c},K=function(e){var t=e.properties,a=e.property,r=e.scale,i=e.transform,c=void 0===i?J2:i,l=e.defaultScale;t=t||[a];var o=function(e,a,r){var i={},l=c(e,a,r);if(null!==l)return t.forEach((function(e){i[e]=l})),i};return o.scale=r,o.defaults=l,o},z=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(a){var r=e[a];t[a]=!0!==r?"function"!=typeof r?K(r):r:K({property:a,scale:a})})),q(t)},r0=function(){for(var e={},t=arguments.length,a=new Array(t),r=0;r1?e:100*e+"%")},c0={width:{property:"width",scale:"sizes",transform:i0},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},M=z(c0),E={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};E.bg=E.backgroundColor;var o0=z(E),l0={fontSizes:[12,14,16,20,24,32,48,64,72]},n0={fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:l0.fontSizes},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0},A=z(n0),s0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0},y=z(s0),W={space:[0,4,8,16,32,64,128,256,512]},d0={gridGap:{property:"gridGap",scale:"space",defaultScale:W.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:W.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:W.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},L=z(d0),w={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:({property:"borderTopLeftRadius",scale:"radii"},{property:"borderTopLeftRadius",scale:"radii"}),borderTopRightRadius:({property:"borderTopRightRadius",scale:"radii"},{property:"borderTopRightRadius",scale:"radii"}),borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:({property:"borderBottomLeftRadius",scale:"radii"},{property:"borderBottomLeftRadius",scale:"radii"}),borderBottomRightRadius:({property:"borderBottomRightRadius",scale:"radii"},{property:"borderBottomRightRadius",scale:"radii"}),borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"},borderBottomWidth:{property:"borderBottomWidth",scale:"borderWidths"},borderBottomColor:{property:"borderBottomColor",scale:"colors"},borderBottomStyle:{property:"borderBottomStyle",scale:"borderStyles"},borderLeftWidth:{property:"borderLeftWidth",scale:"borderWidths"},borderLeftColor:{property:"borderLeftColor",scale:"colors"},borderLeftStyle:{property:"borderLeftStyle",scale:"borderStyles"},borderRightWidth:{property:"borderRightWidth",scale:"borderWidths"},borderRightColor:{property:"borderRightColor",scale:"colors"},borderRightStyle:{property:"borderRightStyle",scale:"borderStyles"}},R=z(w),B={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};B.bgImage=B.backgroundImage,B.bgSize=B.backgroundSize,B.bgPosition=B.backgroundPosition,B.bgRepeat=B.backgroundRepeat;var F=z(B),P={space:[0,4,8,16,32,64,128,256,512]},p0={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:P.space},right:{property:"right",scale:"space",defaultScale:P.space},bottom:{property:"bottom",scale:"space",defaultScale:P.space},left:{property:"left",scale:"space",defaultScale:P.space}},T=z(p0),b={space:[0,4,8,16,32,64,128,256,512]},J=function(e){return"number"==typeof e&&!isNaN(e)},G=function(e,t){if(!J(e))return j(t,e,e);var a=e<0,r=Math.abs(e),i=j(t,r,r);return J(i)?i*(a?-1:1):a?"-"+i:i},p={};p.margin={margin:{property:"margin",scale:"space",transform:G,defaultScale:b.space},marginTop:{property:"marginTop",scale:"space",transform:G,defaultScale:b.space},marginRight:{property:"marginRight",scale:"space",transform:G,defaultScale:b.space},marginBottom:{property:"marginBottom",scale:"space",transform:G,defaultScale:b.space},marginLeft:{property:"marginLeft",scale:"space",transform:G,defaultScale:b.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:G,defaultScale:b.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:G,defaultScale:b.space}},p.margin.m=p.margin.margin,p.margin.mt=p.margin.marginTop,p.margin.mr=p.margin.marginRight,p.margin.mb=p.margin.marginBottom,p.margin.ml=p.margin.marginLeft,p.margin.mx=p.margin.marginX,p.margin.my=p.margin.marginY,p.padding={padding:{property:"padding",scale:"space",defaultScale:b.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:b.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:b.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:b.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:b.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:b.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:b.space}},p.padding.p=p.padding.padding,p.padding.pt=p.padding.paddingTop,p.padding.pr=p.padding.paddingRight,p.padding.pb=p.padding.paddingBottom,p.padding.pl=p.padding.paddingLeft,p.padding.px=p.padding.paddingX,p.padding.py=p.padding.paddingY;var g0=z(p.margin),h0=z(p.padding),u0=r0(g0,h0);function O(){return O=Object.assign||function(e){for(var t=1;t=0)return k(e,t,t);var a=Math.abs(t),r=k(e,a,a);return"string"==typeof r?"-"+r:-1*r},b0=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var a;return O({},e,((a={})[t]=C0,a))}),{}),y0=function(e){return function(t){var a={},r=k(t,"breakpoints",v0),i=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var c in e){var l="function"==typeof e[c]?e[c](t):e[c];if(null!=l){if(!Array.isArray(l)){a[c]=l;continue}for(var o=0;ol.jsx("img",{alt:"download-icon",style:{height:"100%"},src:L0}),z0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Calque_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2027.2%2027.8'%20style='enable-background:new%200%200%2027.2%2027.8;'%20xml:space='preserve'%3e%3ctitle%3eicon%20redirect%20new%3c/title%3e%3cg%3e%3cpath%20d='M27.2,26.5c-0.1-5-0.3-10-0.4-15c0-0.7-0.6-1.2-1.2-1.2s-1.2,0.6-1.2,1.2c0.1,4.6,0.3,9.1,0.4,13.7%20c-3.9-0.2-7.7-0.6-11.6-0.4c-3.3,0.2-6.7,0.5-10,0.4C2.8,19.5,2.7,13.7,2.5,8c2.9-0.1,5.8-0.8,8.6-0.7c1.6,0.1,1.6-2.4,0-2.5%20C7.8,4.6,4.5,5.7,1.2,5.5c-0.6,0-1,0.3-1.1,0.7C0,6.3,0,6.4,0,6.6c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0.2,6.6,0.4,13.2,0.5,19.7%20c0,0.6,0.4,1.3,1.2,1.4c3.8,0.1,7.5-0.2,11.3-0.4c4.4-0.3,8.6,0.2,12.9,0.4c0.6,0,1-0.3,1.1-0.7C27.1,26.9,27.2,26.7,27.2,26.5z'/%3e%3cpath%20d='M12,12.6c-0.2,0.7,0.2,1.4,0.9,1.5c0.7,0.2,1.4-0.2,1.5-0.9v0c0.6-2.2,1.4-4.5,3.1-6c1.3-1.2,3-1.9,4.7-2.7%20c-0.4,1.3-0.8,2.6-1.4,3.8c-0.6,1.5,1.8,2.1,2.4,0.7c0.8-1.9,1.5-3.9,2-5.9c0-0.1,0-0.2,0-0.3c0.3-0.6,0.1-1.5-0.7-1.8%20C22.3,0.4,20,0,17.7,0c-0.7,0-1.2,0.6-1.2,1.2s0.6,1.2,1.2,1.2c0.9,0,1.7,0.1,2.6,0.2c-1.7,0.8-3.4,1.7-4.8,3%20C13.6,7.6,12.7,10.1,12,12.6z'/%3e%3c/g%3e%3c/svg%3e",k0=()=>l.jsx("img",{alt:"link-target-blank",style:{height:"100%"},src:z0}),B0=""+new URL("account-D6SLNOeV.svg",import.meta.url).href,V0="data:image/svg+xml,%3csvg%20width='25'%20height='26'%20viewBox='0%200%2025%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.94751%202.2594C4.92956%201.17166%205.77766%200.315972%206.82673%200.442364C7.91447%200.424415%208.77015%201.27252%208.64376%202.32158C8.65894%205.72915%208.92412%209.35841%2010.7978%2012.181C12.2101%2014.4159%2014.3932%2016.0838%2016.5376%2017.896C16.463%2015.8649%2016.3884%2013.8337%2015.9865%2011.8696C15.7006%209.47241%2019.3968%209.53459%2019.7214%2011.7874C20.1413%2014.8393%2020.3782%2017.9969%2020.3263%2021.0771C20.2877%2021.2214%2020.249%2021.3658%2020.2103%2021.5101C20.4113%2022.4922%2019.7745%2023.7139%2018.5038%2023.8375C15.0962%2023.8527%2011.6216%2023.5405%208.30178%2022.651C7.29139%2022.3802%206.80174%2021.3208%207.03379%2020.4548C7.26585%2019.5887%208.36396%2018.9547%209.23001%2019.1868C10.5291%2019.5349%2011.7225%2019.6999%2013.0602%2019.9037C10.9158%2018.0914%208.81012%2016.1349%207.29213%2013.717C5.32317%2010.0953%204.991%206.13867%204.94751%202.2594Z'%20fill='black'/%3e%3c/svg%3e",j0="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%204L6%208L10%204'%20stroke='black'%20stroke-width='1.33333'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",R0="data:image/svg+xml,%3csvg%20stroke='currentColor'%20fill='currentColor'%20stroke-width='0'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20style='width:%2060px;%20height:%2060px;'%3e%3cpath%20d='M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%3e%3c/path%3e%3c/svg%3e",G0="data:image/svg+xml,%3csvg%20stroke='currentColor'%20fill='currentColor'%20stroke-width='0'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20style='width:%2060px;%20height:%2060px;'%3e%3cpath%20d='M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%3e%3c/path%3e%3c/svg%3e",H0="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20transform='matrix(1,0,0,-1,0,0)'%3e%3cpath%20d='M2%204L6%208L10%204'%20stroke='black'%20stroke-width='1.33333'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e",A0="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_667_3614)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.2523%201.23408C15.5126%201.49443%2015.5126%201.91654%2015.2523%202.17689L7.91895%209.51022C7.65861%209.77057%207.2365%209.77057%206.97615%209.51022C6.7158%209.24987%206.7158%208.82776%206.97615%208.56741L14.3095%201.23408C14.5698%200.973731%2014.9919%200.973731%2015.2523%201.23408Z'%20fill='%231B1B1B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.2523%201.2341C15.4334%201.41519%2015.4947%201.68401%2015.4101%201.92574L10.7435%2015.2591C10.6532%2015.5171%2010.4145%2015.6938%2010.1414%2015.7049C9.86828%2015.7161%209.61603%2015.5594%209.50501%2015.3096L6.94248%209.54391L1.17679%206.98138C0.927008%206.87036%200.770299%206.61811%200.781441%206.34499C0.792584%206.07188%200.96932%205.83323%201.22732%205.74293L14.5607%201.07626C14.8024%200.991661%2015.0712%201.05301%2015.2523%201.2341ZM3.25494%206.44591L7.71831%208.42963C7.86913%208.49666%207.98973%208.61726%208.05676%208.76808L10.0405%2013.2315L13.6942%202.79215L3.25494%206.44591Z'%20fill='%231B1B1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_667_3614'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(0.114258%200.372192)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Z0="data:image/svg+xml,%3csvg%20id='Calque_1'%20data-name='Calque%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='14.2%2014.08%2016.9%2016.72'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%231d1d1b;}%3c/style%3e%3c/defs%3e%3ctitle%3ecross%20close%3c/title%3e%3cpath%20class='cls-1'%20d='M27.93,14.51c-4.4,4.82-9.19,9.17-13,14.49-.94,1.3,1.23,2.55,2.16,1.26,3.7-5.14,8.38-9.33,12.63-14,1.08-1.19-.68-3-1.77-1.77Z'/%3e%3cpath%20class='cls-1'%20d='M14.57,18.15C19.08,22.52,24.3,26,29.31,29.71c1.28,1,2.53-1.21,1.26-2.16-4.84-3.62-9.88-6.95-14.23-11.17-1.15-1.12-2.92.64-1.77,1.77Z'/%3e%3c/svg%3e",O0=""+new URL("delete-DHsmAcdP.svg",import.meta.url).href,T0="data:image/svg+xml,%3csvg%20width='35'%20height='34'%20viewBox='0%200%2035%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1081_407)'%3e%3cpath%20d='M12.5%202L7%205.5L2.5%2011.5L1%2017.5L3.5%2026L9.5%2031L17.5%2033L27%2031L33.5%2022V14L27.5%204.5L21%201.5L12.5%202Z'%20fill='%23FCDE8A'/%3e%3cpath%20d='M16.8348%200.169796C9.02765%20-0.195247%202.56007%206.71511%200.691472%2013.7783C-1.17713%2020.8415%201.65564%2028.9828%208.49864%2032.1833C12.142%2033.8812%2016.3143%2034.0509%2020.2478%2033.5161C23.9167%2033.0152%2027.543%2031.7164%2030.3075%2029.2035C36.1096%2023.9316%2036.1608%2014.9498%2031.8945%208.75257C30.9048%207.31786%2029.6676%206.12935%2028.4986%204.85594C27.7563%204.04945%2027.0311%203.23447%2026.1608%202.55531C23.5157%200.500882%2020.0771%200.178286%2016.8348%200.169796C15.4611%200.169796%2015.4611%202.29214%2016.8348%202.29214C19.3433%202.29214%2022.0908%202.42797%2024.2751%203.82023C25.6915%204.72011%2026.7068%206.12086%2027.8672%207.29239C32.5771%2012.038%2034.5823%2019.2794%2030.8536%2025.2474C27.1249%2031.2155%2018.8655%2032.5908%2012.5857%2031.3004C5.93038%2029.9336%201.76656%2023.7448%202.26144%2017.1146C2.80751%209.90712%209.01912%201.9271%2016.8348%202.29214C18.2085%202.36006%2018.2%200.237712%2016.8348%200.169796Z'%20fill='%231D1D1B'/%3e%3cpath%20d='M5.32367%2019.0672C9.91412%2027.6075%2024.1462%2027.234%2029.6837%2019.9331C30.5114%2018.8464%2028.6599%2017.7853%2027.8407%2018.8634C25.4517%2022.013%2021.194%2023.21%2017.3885%2023.2524C13.3186%2023.2949%209.16326%2021.7244%207.16668%2017.9975C6.51821%2016.792%204.67521%2017.8617%205.32367%2019.0672Z'%20fill='%231D1D1B'/%3e%3cpath%20d='M13.2846%2015.23H13.3614C13.5064%2015.23%2013.6429%2015.2045%2013.7709%2015.1366C13.8989%2015.0941%2014.0184%2015.0177%2014.1122%2014.9158C14.2146%2014.8225%2014.2914%2014.7036%2014.3341%2014.5763C14.4023%2014.4489%2014.4279%2014.3131%2014.4279%2014.1688L14.3938%2013.8886C14.3426%2013.7104%2014.2487%2013.5491%2014.1208%2013.4217L13.9074%2013.2519C13.7453%2013.1585%2013.5576%2013.1076%2013.3699%2013.1076H13.2931C13.1481%2013.1076%2013.0115%2013.1331%2012.8836%2013.201C12.7556%2013.2434%2012.6361%2013.3198%2012.5423%2013.4217C12.4399%2013.5151%2012.3631%2013.6339%2012.3204%2013.7613C12.2522%2013.8886%2012.2266%2014.0245%2012.2266%2014.1688L12.2607%2014.4489C12.3119%2014.6272%2012.4057%2014.7885%2012.5337%2014.9158L12.747%2015.0856C12.9092%2015.179%2013.0969%2015.23%2013.2846%2015.23Z'%20fill='%231D1D1B'/%3e%3cpath%20d='M21.1509%2014.6781L21.2277%2014.7545C21.3216%2014.8564%2021.441%2014.9328%2021.569%2014.9753C21.697%2015.0432%2021.8335%2015.0687%2021.9786%2015.0687C22.1236%2015.0687%2022.2601%2015.0432%2022.3881%2014.9753C22.5161%2014.9328%2022.6356%2014.8564%2022.7294%2014.7545L22.9001%2014.5423C22.9939%2014.381%2023.0451%2014.1942%2023.0451%2014.0075L23.011%2013.7273C22.9598%2013.5491%2022.8659%2013.3878%2022.7379%2013.2604L22.6612%2013.184C22.5673%2013.0821%2022.4478%2013.0057%2022.3199%2012.9633C22.1919%2012.8954%2022.0554%2012.8699%2021.9103%2012.8699C21.7653%2012.8699%2021.6287%2012.8954%2021.5007%2012.9633C21.3728%2013.0057%2021.2533%2013.0821%2021.1594%2013.184L20.9888%2013.3962C20.8949%2013.5575%2020.8438%2013.7443%2020.8438%2013.9311L20.8779%2014.2112C20.9291%2014.3895%2021.0229%2014.5508%2021.1509%2014.6781Z'%20fill='%231D1D1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1081_407'%3e%3crect%20width='35'%20height='34'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",P0="data:image/svg+xml,%3csvg%20id='Calque_1'%20data-name='Calque%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0.22%200.19%2040.63%2024.48'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%231d1d1b;%20stroke-width:%200px;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M2.31,13.94C7.22,8.22,13.58,2.56,21.61,2.69c7.39.13,12.7,6.51,17.08,11.72,1.04,1.23,2.8-.54,1.77-1.77C35.58,6.85,29.77.33,21.61.19,12.91.05,5.89,5.94.54,12.17c-1.04,1.21.72,2.99,1.77,1.77h0Z'/%3e%3cpath%20class='cls-1'%20d='M.6,14.11c4.72,6.3,12.14,10.45,20.09,10.56s15.57-3.94,19.95-10.5c.9-1.34-1.27-2.6-2.16-1.26-3.89,5.83-10.8,9.36-17.79,9.27S6.93,18.42,2.76,12.85c-.95-1.27-3.12-.03-2.16,1.26h0Z'/%3e%3cpath%20class='cls-1'%20d='M14.58,17.53c2.54,2.47,6.36,3.09,9.54,1.52,1.46-.72,2.76-1.94,3.53-3.38.44-.82.75-1.76.7-2.71s-.35-1.79-.69-2.64c-.69-1.68-1.62-3.2-3.07-4.32-1.32-1.02-2.91-1.57-4.57-1.63-3.02-.11-6.01,1.53-7.09,4.42s-.55,6.66,1.65,8.73c1.17,1.1,2.94-.66,1.77-1.77-1.25-1.18-1.62-3.42-1.32-5.14.18-1.03.49-1.77,1.17-2.42.75-.71,1.76-1.15,2.78-1.29,2.4-.33,4.56.92,5.73,2.99.56.98,1.3,2.39,1.13,3.55s-1.15,2.27-2.09,2.92c-2.3,1.6-5.39,1.33-7.4-.61-1.16-1.12-2.93.65-1.77,1.77h0Z'/%3e%3c/svg%3e",D0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Calque_1'%20data-name='Calque%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2041.02%2034'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%231d1d1b;%20stroke-width:%200px;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M2.3,19.46c4.82-5.46,10.91-10.83,18.6-10.99s12.4,5.56,16.72,10.86c1.02,1.25,2.78-.53,1.77-1.77-4.78-5.85-10.33-11.76-18.49-11.59S5.81,11.71.53,17.7c-1.06,1.2.7,2.98,1.77,1.77h0Z'/%3e%3cpath%20class='cls-1'%20d='M.59,19.63c4.67,6.41,12.14,10.67,20.15,10.81s15.46-3.81,19.89-10.26c.91-1.33-1.25-2.58-2.16-1.26-3.93,5.73-10.81,9.14-17.73,9.02s-13.85-3.89-17.99-9.57c-.94-1.29-3.11-.04-2.16,1.26h0Z'/%3e%3cpath%20class='cls-1'%20d='M20.54,10.34c-3.46-.06-6.6,2.03-7.89,5.23-.61,1.52-.74,3.22-.39,4.81.38,1.79,1.48,3.03,3.08,3.85s3.47,1.49,5.35,1.4c1.74-.09,3.34-.7,4.69-1.79,2.25-1.8,3.6-5.05,2.55-7.86s-4.14-5.63-7.38-5.65c-1.61,0-1.61,2.49,0,2.5,1.89.01,3.7,1.59,4.62,3.15,1.02,1.72.67,3.74-.65,5.24-1.73,1.96-4.26,2.3-6.65,1.42-1.07-.39-2.44-.94-2.93-2.05-.46-1.02-.46-2.29-.19-3.35.66-2.67,3.08-4.44,5.81-4.4,1.61.03,1.61-2.47,0-2.5h0Z'/%3e%3cpath%20class='cls-1'%20d='M36.17,31.77C25.49,21.96,15.39,11.52,5.94.53c-1.05-1.22-2.81.55-1.77,1.77,9.46,11,19.56,21.43,30.24,31.24,1.18,1.09,2.96-.68,1.77-1.77h0Z'/%3e%3c/svg%3e",_0=""+new URL("hyperlink-Csiq9qjY.svg",import.meta.url).href,F0="data:image/svg+xml,%3csvg%20width='15'%20height='13'%20viewBox='0%200%2015%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_114_207)'%3e%3cpath%20d='M2.17005%207.66996C3.58005%206.41996%204.97005%205.14996%206.38005%203.89996C6.61338%206.49996%206.72005%209.10329%206.70005%2011.71C6.70005%2012.0415%206.83174%2012.3594%207.06616%2012.5938C7.30058%2012.8283%207.61852%2012.96%207.95005%2012.96C8.28157%2012.96%208.59951%2012.8283%208.83393%2012.5938C9.06835%2012.3594%209.20005%2012.0415%209.20005%2011.71C9.20005%209.16996%209.10004%206.63329%208.90004%204.09996C10.19%205.19996%2011.46%206.35996%2012.65%207.58996C13.84%208.81996%2015.54%206.97996%2014.42%205.82996C12.5236%203.86489%2010.4992%202.02754%208.36004%200.329961C8.20381%200.208827%208.02289%200.123483%207.83005%200.0799608C7.62058%200.00202653%207.39351%20-0.0158633%207.17443%200.028307C6.95534%200.0724773%206.75295%200.176952%206.59005%200.329961C4.52005%202.17996%202.47005%204.05996%200.400045%205.89996C-0.799955%206.97996%200.970046%208.73996%202.17005%207.66996Z'%20fill='%231D1D1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_114_207'%3e%3crect%20width='14.78'%20height='12.9'%20fill='white'%20transform='matrix(-1%200%200%20-1%2014.78%2012.8999)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",I0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037.97%2039.67'%3e%3ctitle%3eicon%20bazar%3c/title%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M37.75,17.2a1,1,0,0,0,.2-.83,1.07,1.07,0,0,0-.1-.4C36.33,11.19,35,6.3,33,1.67A1,1,0,0,0,31.79,1C27,1,22.32.26,17.56.1,13.28,0,9,.66,4.73,0H4.39A1.14,1.14,0,0,0,3.16.9C1.81,6,1.39,11.33.05,16.44a1.18,1.18,0,0,0,.1.92.64.64,0,0,1,0,.07,4.57,4.57,0,0,0,5.35,2.46c.27,5.91.32,11.85.15,17.75a1.78,1.78,0,0,0,0,.35,1,1,0,0,0,.9.88c8.8,1.71,17.74.06,26.62.57a1.08,1.08,0,0,0,1.06-.54,1.26,1.26,0,0,0,.21-.73c-.09-6.23-.32-12.45-.43-18.68C35.52,19.23,37.13,18.59,37.75,17.2ZM2.64,16.56C3.79,12,4.26,7.23,5.36,2.63c3.53.35,7,0,10.56,0,5,0,10.06.78,15.11.94C32.75,7.72,34,12.1,35.31,16.38a4.22,4.22,0,0,1-2.4.69c-1.15-.07-2.25-1.15-3.21-1.73a1.24,1.24,0,0,0-.58-.19A1,1,0,0,0,28,15.8c-1.06,2.45-4.05.47-5.45-.49a1.08,1.08,0,0,0-.8-.2,1,1,0,0,0-.95.66,3.21,3.21,0,0,1-5.63.34,1.12,1.12,0,0,0-.3-.47,1.14,1.14,0,0,0-1.55-.23,1.25,1.25,0,0,0-.64.74c-.21.59-1.5,1.08-2.06,1.07a3.23,3.23,0,0,1-2.13-1,1.22,1.22,0,0,0-.7-.53,1.08,1.08,0,0,0-1.5.53l0,0,0,.07A2,2,0,0,1,2.64,16.56ZM8,19.05a5.5,5.5,0,0,0,5.86-.46,5.75,5.75,0,0,0,4,1.7,6.9,6.9,0,0,0,4.3-2.12,7.26,7.26,0,0,0,4.17,1.34,4.48,4.48,0,0,0,3-1.33,11.16,11.16,0,0,0,2.1,1.11c0,2.38.1,4.76.16,7.15A127.9,127.9,0,0,0,8.3,27.85C8.26,24.92,8.18,22,8,19.05Zm.21,17.53c0-2.06.07-4.11.07-6.17A123.37,123.37,0,0,1,31.74,29c.07,2.61.14,5.23.18,7.85C24,36.57,16.06,37.87,8.24,36.58Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",W0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2015.0.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='165px'%20height='131px'%20viewBox='0%200%20165%20131'%20enable-background='new%200%200%20165%20131'%20xml:space='preserve'%3e%3ctitle%3eGroup%203%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='Page-1'%3e%3cg%20id='Group-3'%20transform='translate(1.000000,%201.000000)'%3e%3cpolygon%20id='Path'%20fill='currentColor'%20points='100,107.853%2044,107.853%200,64.853%2014,19.853%2081.5,-0.147%20142,7.853%20163,30.853%20163,74.853%20138,95.853%20152,124.853%20146.848,129.147%20'/%3e%3cg%20id='Group-2'%20transform='translate(35.000000,%2059.000000)'%3e%3cpath%20id='o'%20fill='%23FFFFFF'%20d='M11.792,0.286c-1.267,0-3.003,0.267-5.208,0.8c-3.989,0.966-5.983,3.017-5.983,6.15%20c0,1.566,0.985,2.949,2.956,4.15c1.971,1.199,4.153,1.799,6.546,1.799c0.798,0,70.776,0.135,71.386,0%20c1.642-0.299,9.854-12.152,2.815-12.899c-3.764-0.399-29.779-0.112-47.863,0C20.7,0.384,12.404,0.286,11.792,0.286z'/%3e%3cpath%20id='o-copy-2'%20fill='%23FFFFFF'%20d='M88.105,1.136c-1.268-0.566-2.557-0.85-3.871-0.85c-1.268,0-3.004,0.267-5.209,0.8%20c-3.988,0.966-5.982,3.017-5.982,6.15c0,1.566,0.985,2.949,2.956,4.15c1.971,1.199,4.153,1.799,6.546,1.799%20c0.798,0,1.502-0.066,2.111-0.199c1.643-0.301,3.262-1.041,4.857-2.225c1.595-1.184,2.533-2.326,2.814-3.426%20c0.047-0.166,0.07-0.416,0.07-0.75c0-1-0.41-2.025-1.23-3.075C90.346,2.461,89.326,1.669,88.105,1.136z'/%3e%3c/g%3e%3cg%20id='Group'%20transform='translate(35.000000,%2038.000000)'%3e%3cpath%20id='o-copy'%20fill='%23FFFFFF'%20d='M9.433,0.27c-1,0-2.37,0.267-4.11,0.8C2.175,2.037,0.601,4.087,0.601,7.22%20c0,1.566,0.777,2.95,2.333,4.15c1.555,1.2,3.277,1.8,5.166,1.8c0.629,0,55.853,0.133,56.334,0c1.296-0.3,7.775-12.153,2.222-12.9%20c-2.97-0.399-23.5-0.112-37.771,0C16.462,0.368,9.915,0.27,9.433,0.27z'/%3e%3cpath%20id='o-copy-3'%20fill='%23FFFFFF'%20d='M69.654,1.12c-1-0.566-2.018-0.85-3.055-0.85c-1,0-2.37,0.267-4.11,0.8%20c-3.147,0.966-4.722,3.017-4.722,6.15c0,1.566,0.777,2.95,2.334,4.15c1.555,1.2,3.276,1.8,5.165,1.8%20c0.63,0,1.185-0.067,1.666-0.2c1.296-0.3,2.573-1.042,3.833-2.225c1.259-1.183,2-2.325,2.222-3.425%20c0.037-0.167,0.056-0.417,0.056-0.75c0-1-0.324-2.025-0.973-3.075C71.423,2.445,70.617,1.653,69.654,1.12z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",N0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040.96%2032.57'%3e%3ctitle%3eicon%20discord%3c/title%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M2.76,25.57A117,117,0,0,1,6.53,5.93a1.25,1.25,0,0,0-2.41-.67A121.9,121.9,0,0,0,.26,25.57c-.19,1.59,2.31,1.58,2.5,0Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.21,6.48a9.5,9.5,0,0,1,4-2.81c1.26-.47,3.71-1.34,5-.86L14.21,1.6l0,.13c.14,1.59,2.65,1.6,2.5,0l0-.13A1.3,1.3,0,0,0,15.8.4c-1.66-.63-4.72.29-6.31.86a11.76,11.76,0,0,0-5,3.45c-1,1.22.72,3,1.77,1.77Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M14.27,2.06a9.38,9.38,0,0,0,.42,2,1.27,1.27,0,0,0,1.53.87,1.25,1.25,0,0,0,.88-1.53,9.52,9.52,0,0,1-.42-2A1.26,1.26,0,0,0,15.14.52a1.29,1.29,0,0,0-.87,1.54Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M9.75,9.35c3.45-1.85,5.73-4.21,10-4.13A20.38,20.38,0,0,1,31,9.11c1.31,1,2.56-1.22,1.26-2.15A22.49,22.49,0,0,0,19.74,2.72C15,2.64,12.42,5.09,8.49,7.19,7.07,8,8.33,10.11,9.75,9.35Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M24.9,1.07c-.12.4-.17.81-.26,1.21-.05.23-.1.46-.16.68s-.07.2-.09.29,0,.12,0-.07c-.07.12,0,.09.09-.1-1.09,1.18.68,3,1.77,1.76.77-.83.72-2.08,1-3.1.48-1.54-1.93-2.2-2.41-.67Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M25.78,2.61a40,40,0,0,1,8.4,3.63c1.43.73,2.7-1.42,1.26-2.16a42.4,42.4,0,0,0-9-3.88c-1.56-.38-2.23,2-.66,2.41Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M33.73,5.79a47.66,47.66,0,0,1,4.5,20.06,1.25,1.25,0,0,0,2.5,0A50.92,50.92,0,0,0,35.89,4.53c-.68-1.46-2.83-.19-2.16,1.26Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M26.51,29.56l1.07,1.73c.85,1.36,3,.11,2.16-1.27l-1.07-1.73c-.84-1.36-3-.11-2.16,1.27Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M28.66,31.9a15.71,15.71,0,0,0,5.76-1.43,64.23,64.23,0,0,0,5.69-3.54c1.34-.87.09-3-1.26-2.16C35.54,26.93,32.68,29,28.66,29.4c-1.58.17-1.6,2.68,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M27.69,29.73a14.2,14.2,0,0,0,6.62-4.52c1-1.24-.75-3-1.77-1.77A11.83,11.83,0,0,1,27,27.32c-1.52.5-.87,2.92.66,2.41Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.07,24.23a17.15,17.15,0,0,0,3.26,3.7,9.72,9.72,0,0,0,3.91,2.36c1.57.34,2.24-2.07.67-2.41-2.3-.51-4.44-3-5.68-4.91-.88-1.33-3.05-.08-2.16,1.26Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M.62,26.45c3,3,6.68,5.74,11.07,6.15,1.61.15,1.6-2.35,0-2.5-3.67-.34-6.8-2.9-9.3-5.42A1.25,1.25,0,0,0,.62,26.45Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M12.37,28.75l-.18.55-.11.3c.1-.26,0,.06-.06.09s-.2.31,0,.12a1.29,1.29,0,0,1-.23.24c.14-.11,0,0-.1,0h0a1.27,1.27,0,0,1-.28.06A1.25,1.25,0,1,0,12,32.55a3.18,3.18,0,0,0,2-1.41,7.5,7.5,0,0,0,.71-1.73,1.25,1.25,0,0,0-.87-1.53,1.27,1.27,0,0,0-1.54.87Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.52,24.68a33.9,33.9,0,0,0,14.24,3.66c3.88,0,10-.71,13.11-3,1.29-.94,0-3.11-1.26-2.16C30,25.1,23.9,25.86,20.76,25.84a31.43,31.43,0,0,1-13-3.32C6.34,21.84,5.07,24,6.52,24.68Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M13.42,14.64A4.37,4.37,0,0,0,12,19.18a3.43,3.43,0,0,0,3.8,2.34c1.77-.4,2.13-2.38,2-3.94-.15-1.74-1.35-3.46-3.27-3.31-1.13.08-1.84,1.73-.63,2.32-.24-.46-.32-.45-.25,0v2.19a1.25,1.25,0,0,0,2.5,0c0-1.3.47-3.66-1-4.37l-.63,2.33c.65-.05.76.58.79,1.12,0,.36.14,1.21-.31,1.17s-.69-.66-.71-1a2.19,2.19,0,0,1,.87-1.64c1.19-1.09-.58-2.86-1.77-1.77Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M26.22,14.25c-2.21.07-3.11,3.06-2.61,4.88s2.78,3.14,4.48,1.84c1.49-1.13,1.35-3.65.57-5.16a2.39,2.39,0,0,0-2.41-1.45,1.87,1.87,0,0,0-1.38,2.29L27.28,16c-.88.4-1.1.73-.65,1l.12.13a1.07,1.07,0,0,1,.18.69c-.06.35-.5.54,0,.57.28.13.37.06.28-.21a6,6,0,0,1,.15-.61H25l.05.12a1.29,1.29,0,0,0,1.54.87A1.25,1.25,0,0,0,27.44,17l-.05-.12a1.26,1.26,0,0,0-2.41,0c-.4,1.44-.28,3.35,1.48,3.8,1.51.39,2.66-1.06,2.92-2.39a3.45,3.45,0,0,0-1.63-3.58c-1.34-.79-3.56.15-2.88,1.94A1.25,1.25,0,0,0,27.28,16c-.88.27-1.14.63-.78,1.09l.06.21a2.94,2.94,0,0,1,.13.73c0,.21.12.92-.18,1s-.53-.67-.53-.9a2.61,2.61,0,0,1,.19-.92,1.68,1.68,0,0,1,.16-.39c.19-.21.15-.23-.11,0,1.6-.06,1.61-2.56,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",E0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040.06%2027.57'%3e%3ctitle%3eicon%20email%3c/title%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M40.05,24.08c-.86-7.14-2-14.24-2.23-21.44a1.21,1.21,0,0,0-.33-.82,1.48,1.48,0,0,0-.29-.26c-4.73-3.1-10.85-.73-16.11-.12C14.51,2.2,7.92,2.79,1.31,3.15a1.27,1.27,0,0,0-.75.29,1.12,1.12,0,0,0-.46.68,1,1,0,0,0,0,.51A136.47,136.47,0,0,0,1,25.24a1.23,1.23,0,0,0,.18.53,1.2,1.2,0,0,0,1.07.72c6.89.39,13.84,1.05,20.75,1.08,5.5,0,10.76-1.25,16.13-2.29a1.07,1.07,0,0,0,.38-.14A1,1,0,0,0,40.05,24.08ZM33.82,2.87c-4.45,6-10.17,10.1-16.17,14.42A127.82,127.82,0,0,1,4.23,5.45C8.61,5.17,13,4.82,17.36,4.36,21.42,3.93,29.06,1.74,33.82,2.87ZM21.14,25c-5.92-.2-11.84-.62-17.76-1A134.44,134.44,0,0,1,2.53,7.28c4.6,4.41,9.14,8.85,14.37,12.55a1,1,0,0,0,.79.3h.12a1.1,1.1,0,0,0,.56-.28c6.34-4.57,12.27-8.83,17-15,.32,6.1,1.26,12.14,2,18.21C32,24.13,26.73,25.21,21.14,25Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",q0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025.45%2024.97'%3e%3ctitle%3eicon%20search%3c/title%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M25.14,22.79a42.71,42.71,0,0,0-7.69-7.57c2.44-3.3,3.41-8.16.74-11.46C14.8-.44,7.43-1.48,3.59,2.49-.09,6-1.43,11.82,1.92,16s9.72,4.47,13.77,1.08l.05-.05a39.22,39.22,0,0,1,7.63,7.49C24.41,25.79,26.17,24,25.14,22.79Zm-22-9.48c-1.59-3.14-.21-6.74,2.2-9,2.71-2.81,8.26-2,10.77.9,2.69,3.15.42,8.27-2.49,10.36C10.14,18,5.16,17.27,3.16,13.31Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",$0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037.89%2036.55'%3e%3ctitle%3eicon%20social%20media%201%3c/title%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M34.46,28.35a1.28,1.28,0,0,0,0-2.55,1.28,1.28,0,0,0,0,2.55Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M37.83,19.08c-.17-5-.56-9.91-1.13-14.83h0c-.32-5-6.91-4.11-10.5-4.2C18.63-.14,11.05.23,3.48.58a1.36,1.36,0,0,0-.55.15.32.32,0,0,0-.09,0C.1,2,0,4.62,0,7.3c0,5.38.07,10.76.1,16.14C0,32.65,9.41,29.62,15.51,29.91c1.09,2.05,2.56,3.88,3.56,6a1,1,0,0,0,1.05.64,1,1,0,0,0,1.15-.64c1-2.32,2.38-4.45,3.46-6.73a43.55,43.55,0,0,0,9.53-.77,1,1,0,0,0,.69-.13,1,1,0,0,0,.63-.48C38.12,25.57,38,22.38,37.83,19.08ZM24.1,26.57a1,1,0,0,0-.84.12l-.09.06h0a1.05,1.05,0,0,0-.36.56c-.8,1.79-1.8,3.47-2.71,5.2a45.89,45.89,0,0,1-2.69-4.46,1.05,1.05,0,0,0-1.16-.64C12,27,2.57,30.25,2.65,23.44L2.59,14.1c0-2.27-1-9.5,1.3-11,4.54-.27,30-2.23,30.26,1.14.39,3.33.68,6.68.89,10,.19,3,1.49,9.48-1.12,11.59A39.58,39.58,0,0,1,24.1,26.57Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M26.28,8A4.74,4.74,0,0,0,23.63,5.9a4.94,4.94,0,0,0-4.18.35A4.37,4.37,0,0,0,18,7.9c-1.59-1.08-3.82-1.76-5.4-1.17-2.54.95-2.74,4.33-2,6.56a1,1,0,0,0,.16.42,1,1,0,0,0,.21.34,46.31,46.31,0,0,0,7.26,9.17,1.22,1.22,0,0,0,.76.36A1.11,1.11,0,0,0,20.24,23c2-3.93,5-7.2,6-11.63C26.44,10.28,26.82,9.05,26.28,8ZM14.36,9.16A5.67,5.67,0,0,1,17.3,10.7a1.14,1.14,0,0,0,.29.29,1,1,0,0,0,1.57,0,1.26,1.26,0,0,0,.51-.65c.57-1.57,1.46-2.78,3.31-2,1.34.56,1,1,.79,2.27-.83,3.64-3.07,6.44-4.91,9.54A43.66,43.66,0,0,1,13,12.42C12.46,11.24,12.6,8.78,14.36,9.16Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",U0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2064%2063'%20style='enable-background:new%200%200%2064%2063;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23231F20;}%20%3c/style%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='Page-1'%3e%3cg%20id='OA-Logo-Black-Background'%3e%3cpath%20id='Shape'%20class='st0'%20d='M14.1,30.1c-1.5-0.8-8.6-3.8-14.1-7.8c1.8-3.4,3.1-5.6,5-9.1c2.7,1.1,1.9,0.5,4.6,1.7%20c0.8,0.4,10.1,4.5,13.8,6.2c2.4,1.1,4.7,2.2,7,3.3L43,30.5l8.1,3.9c4,2,7.2,3.5,11.3,5.5c0.5,0.3-3.7,9.4-3.7,9.4%20c-1.7-0.6-3.9-1.8-5.5-2.5c-4.7-2.1-9-3.9-13.7-6c-4-1.8-6.7-2.9-10.8-4.5C25,34.9,17.1,31.6,14.1,30.1z'/%3e%3cpath%20id='Shape_1_'%20class='st0'%20d='M12.1,54.9c-0.8,0.6-1.6,1.2-2.5,1.6c-0.4-0.5-0.9-1-1.3-1.5c-0.3-1.2-2.3-4.9-2.7-6.2%20c-0.1-0.4-0.7-2.2-0.8-2.6c0,0,5-3.4,8.2-5.9c3.2-2.6,6.2-5,9.3-7.5c1.4-1.1,3.9-2.5,5.3-3.5c2.5-1.7,13-9.1,15.6-10.5%20c5.4-3.3,11.1-6.3,16.8-9c1.7,3.5,1.8,3,3.8,6.9c0,0-17.8,13.5-22.7,17.1c-3.8,2.8-7.5,5.7-11.3,8.5c-1.7,1.3-3.5,2.4-5.2,3.7'/%3e%3cpath%20id='Shape_2_'%20class='st0'%20d='M20.8,2.9l-0.2-0.8C25,0,31.2-0.3,31.4,0.2c0.4,1.1,0.9,2.2,1.2,3.4c1.4,4.4,2.7,8.7,4,13.1%20c0.4,1.4,2.8,10,2.9,10.5c0.5,2.8,1.2,5.6,1.6,8.4c0.8,4.7,1.4,8.6,2.3,13.3c0.6,3.1,1.3,6.3,2.3,11.3c0,0-5.8,1.4-7.5,1.8%20c-0.8,0.2-1.5,0.4-2.4,0.6c-0.3-1.1-0.2-1.2-0.5-2.1c-0.9-3.7-1.8-7.3-2.6-11c-1.5-6.4-3-12.9-4.4-19.3%20c-1.2-5.4-2.6-10.7-4.4-15.9c-1-3.1-1.8-6.3-2.7-9.5C21.1,3.8,21,3.8,20.8,2.9z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='enable-background:new%200%200%20300%20300'%20viewBox='0%200%20300%20300'%3e%3cpath%20d='m48.5%20270.2%20179.2%207%20.2-11.4-169.2-1.5-1.6-219.6-10.6-.3z'%20style='fill:%23d7e6f6'/%3e%3cpath%20d='m227.9%20265.8-.2%2011.4-179.2-7-2-225.8%2010.6.3-.1-12-22.7-.7%202.4%20249.7%20202.8%208%20.4-23.8z'/%3e%3cpath%20d='m70.6%20252.4%20178.3%201.6%201.6-236.1-181.6%205.3z'%20style='fill:%23ddf1f0'/%3e%3cpath%20d='M262.6%205.5%2056.9%2011.6l.1%2021.1.1%2012%201.6%20219.5%20169.2%201.6%2012%20.1%2020.8.2%201.9-260.6zM248.9%20254l-178.2-1.7-1.8-229.1%20181.6-5.4-1.6%20236.2z'/%3e%3cpath%20d='m114.438%2043.16%2076.746-6.272.978%2011.96-76.746%206.273zM93.568%2097.544l.45-11.991%20129.31%204.854-.45%2011.992zM96.238%20120.79l121.74-3.965.39%2011.994-121.739%203.965zM93.305%20163.287l.126-12%20125.688%201.325-.127%2011.998zM97.189%20186.128l123.975-2.644.256%2011.998-123.975%202.644zM94.385%20224.15l.5-11.99%20127.086%205.295-.5%2011.99z'/%3e%3c/svg%3e",X0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2015.0.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='64px'%20height='63px'%20viewBox='0%200%2064%2063'%20enable-background='new%200%200%2064%2063'%20xml:space='preserve'%3e%3ctitle%3eOA%20Logo%20Black%20Background%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='Page-1'%3e%3cg%20id='OA-Logo-Black-Background'%3e%3cpath%20id='Shape'%20fill='%23currentColor'%20d='M14.1,30.07c-1.53-0.79-8.6-3.76-14.1-7.78c1.81-3.38,3.1-5.56,5-9.11%20c2.72,1.15,1.9,0.55,4.56,1.71c0.85,0.37,10.06,4.52,13.82,6.2c2.35,1.06,4.66,2.2,7,3.33L43,30.53l8.061,3.92%20c4,2,7.239,3.53,11.26,5.47c0.539,0.26-3.67,9.391-3.67,9.391c-1.68-0.561-3.92-1.771-5.53-2.48c-4.67-2.061-9-3.92-13.7-6%20c-4-1.76-6.71-2.91-10.77-4.51C25,34.891,17.14,31.65,14.1,30.07z'/%3e%3cpath%20id='Shape_1_'%20fill='currentColor'%20d='M12.15,54.91c-0.776,0.611-1.602,1.157-2.47,1.63c-0.445-0.472-0.866-0.966-1.26-1.479%20c-0.29-1.16-2.26-4.94-2.68-6.17c-0.13-0.41-0.7-2.211-0.81-2.631c0,0,5-3.359,8.18-5.939c3.18-2.58,6.17-5,9.3-7.461%20c1.36-1.069,3.89-2.5,5.3-3.479c2.48-1.72,13-9.07,15.56-10.55c5.44-3.302,11.055-6.307,16.82-9c1.689,3.49,1.83,3,3.811,6.9%20c0,0-17.78,13.49-22.65,17.14c-3.773,2.84-7.55,5.67-11.33,8.489c-1.71,1.261-3.46,2.44-5.19,3.66'/%3e%3cpath%20id='Shape_2_'%20fill='currentColor'%20d='M20.75,2.88l-0.2-0.81C25,0,31.21-0.26,31.37,0.19c0.4,1.12,0.9,2.22,1.25,3.36%20c1.36,4.36,2.659,8.74,4,13.1c0.44,1.42,2.76,10,2.851,10.5c0.549,2.8,1.17,5.581,1.649,8.39c0.79,4.67,1.409,8.61,2.33,13.271%20c0.62,3.14,1.319,6.31,2.3,11.279c0,0-5.79,1.36-7.471,1.811c-0.75,0.199-1.51,0.369-2.399,0.59c-0.26-1.07-0.229-1.17-0.45-2.11%20c-0.869-3.659-1.76-7.319-2.609-11c-1.49-6.42-3-12.851-4.43-19.28c-1.172-5.37-2.638-10.671-4.39-15.88%20c-1-3.12-1.77-6.34-2.66-9.52C21.08,3.8,21,3.78,20.75,2.88z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Q0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='enable-background:new%200%200%20700%20700'%20viewBox='0%200%20700%20700'%3e%3cpath%20d='M597.5%20330.3C538%20264.9%20447.1%20212.2%20357%20212.2s-180.2%2052.7-240.5%20118.1c-4.3%204.3-4.3%2010.2%200%2015.3C176%20410.2%20266.9%20463.7%20357%20463.7S537.2%20411%20597.5%20345.6c2.5-2.5%202.5-5.1%202.5-7.6.1-2.6-.8-5.1-2.5-7.7zM357%20441.7c-80.7%200-162.3-46.7-218.4-103.7%2056.1-57.8%20136.8-103.7%20218.4-103.7S519.3%20280.2%20575.4%20338C519.3%20395.8%20437.7%20441.7%20357%20441.7z'/%3e%3cpath%20d='M433.5%20335.4c-3.4-39.9-34-73.1-76.5-73.1-41.6%200-76.5%2034.8-76.5%2076.5%200%2039.9%2032.3%2074.8%2073.1%2076.5%2044.2%201.7%2076.5-32.3%2079.9-74.8v-5.1z'/%3e%3c/svg%3e",K0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2040.85%2035.1'%3e%3ctitle%3eicon%20website%202%3c/title%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M4.28,4.85V5A1.28,1.28,0,0,0,6.83,5V4.85a1.28,1.28,0,0,0-2.55,0Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M8.18,4.85V5a1.28,1.28,0,0,0,2.55,0V4.85a1.28,1.28,0,0,0-2.55,0Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M40.85,1.63A1.09,1.09,0,0,0,40.2.53a1.29,1.29,0,0,0-.62-.18Q20.62-.08,1.67.28A1.18,1.18,0,0,0,.6.91a1.35,1.35,0,0,0-.21.64A182.76,182.76,0,0,0,.58,28.23a1.6,1.6,0,0,0,.07.33,1,1,0,0,0,1.21,1A119.1,119.1,0,0,1,21.21,29a1.16,1.16,0,0,0,.74-.2l.22,1.93a1.36,1.36,0,0,0,.63,1.2l.1.07h0A1.48,1.48,0,0,0,24.35,32c.84-.39,1.67-.81,2.5-1.22l1.62,3.58a1.28,1.28,0,0,0,1.74.45A1.29,1.29,0,0,0,30.67,33l-1.52-3.36a15.16,15.16,0,0,1,2.19-.72c2.57-.18,5.14.16,7.71.16a1.14,1.14,0,0,0,1.17-.87,1.56,1.56,0,0,0,.11-.4C41.11,19.12,40.57,10.36,40.85,1.63ZM38.28,2.88c0,1.19-.05,2.39-.06,3.59a1.3,1.3,0,0,0-.41-.07q-17.57.15-35.12,1c.05-1.52.11-3,.19-4.56Q20.58,2.5,38.28,2.88ZM24.53,29.05c-.21-1.79-.41-3.58-.62-5.37,1.58,1.12,3.18,2.25,4.67,3.46C27.2,27.69,25.87,28.38,24.53,29.05Zm7.09-2.67C29,24,25.8,22,23,19.85a1,1,0,0,0-1.31,0A1,1,0,0,0,21.05,21c.21,1.87.43,3.73.64,5.6a1.21,1.21,0,0,0-.48-.11A117.32,117.32,0,0,0,3,26.85,164.77,164.77,0,0,1,2.61,9.92q17.6-.83,35.2-1a1.35,1.35,0,0,0,.41-.07c0,5.88.1,11.77-.35,17.64C35.79,26.45,33.7,26.26,31.62,26.38Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",J0=""+new URL("impact-CPEh_mgq.svg",import.meta.url).href,e1="data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1085_446)'%3e%3cpath%20d='M9%2028.5L5.5%2032L10%2032.5L13%2030.5L13.5%2026V24.5L21%2018.5L25%2014.5L28%2015.5L30.5%2014.5L32.5%2012.5L33%209L31%205.5L30%206.5L26%209L23.5%207L24%205.5L26%203.5V2L23%201L19.5%202L17.5%204.5L18%208.5L20%2010.5L10%2020.5H8.5L5%2020L2%2022L1%2026.5L3.5%2029L6.5%2026.5L9%2028.5Z'%20fill='%23F19093'/%3e%3cpath%20d='M5.61416%2025.6284C4.57638%2026.6138%203.58114%2027.6329%202.54336%2028.6267H4.04899C2.1946%2027.1107%201.4035%2024.5336%202.85809%2022.4617C4.15957%2020.6089%206.82207%2020.2888%208.4723%2021.8638C8.88912%2022.2596%209.56112%2022.268%209.97793%2021.8638L17.9654%2013.9638L19.8879%2012.0604C20.3642%2011.5888%2020.8831%2011.1509%2020.8321%2010.435C20.7895%209.78648%2020.3727%209.45802%2019.9219%209.06218C19.369%208.5737%2018.9522%207.9673%2018.7225%207.26827C18.2631%205.90389%2018.5609%204.43002%2019.5561%203.37726C20.679%202.18975%2022.1931%201.9034%2023.7583%202.20659C24.1921%202.29081%2024.6174%202.40872%2025.0512%202.52663C25.2809%202.58558%2025.2384%202.60243%2025.2384%202.42557C25.2384%202.50979%2024.9662%202.75403%2024.9151%202.80456C24.3197%203.47833%2023.6817%204.11841%2023.0778%204.78375C22.0485%205.92073%2022.1506%206.90612%2023.2564%207.93362C24.2601%208.86005%2025.7317%2010.9571%2027.2629%209.99703C28.02%209.52539%2028.675%208.7674%2029.3385%208.17786C30.1295%207.4704%2030.9206%206.76294%2031.7117%206.05549L30.0445%205.84494C31.6607%207.95888%2033.0983%2011.6983%2030.3252%2013.6101C29.1003%2014.4523%2027.5606%2014.2165%2026.2932%2013.627C24.796%2012.9279%2024.0985%2013.627%2023.1118%2014.7218C20.9767%2017.1053%2018.6459%2019.3034%2016.1366%2021.2995C15.5156%2021.788%2014.8861%2022.268%2014.2481%2022.7312C13.6867%2023.1355%2013.0062%2023.4976%2012.5724%2024.0367C11.6877%2025.14%2012.5809%2026.2348%2012.6149%2027.4392C12.6489%2028.9804%2011.8834%2030.5048%2010.5308%2031.2881C9.88436%2031.6587%209.15281%2031.8608%208.41276%2031.8861C7.97043%2031.9029%206.61791%2031.8187%206.43928%2031.5239L6.54986%2032.3324C6.66044%2031.9113%207.75777%2031.2712%208.12354%2030.9596C8.75301%2030.4122%209.38249%2029.8648%2010.012%2029.3173C10.5819%2028.8204%2010.3012%2028.0456%209.7993%2027.6666C8.9997%2027.0602%208.2001%2026.4538%207.40901%2025.839C6.3287%2025.0136%205.2654%2026.8412%206.3372%2027.6582C7.1368%2028.2646%207.9364%2028.8709%208.7275%2029.4858L8.51484%2027.835C7.6727%2028.5678%206.83908%2029.2921%205.99695%2030.0248C5.32494%2030.6059%204.24463%2031.2881%204.50833%2032.3409C4.89112%2033.8821%207.63868%2034.1011%208.88912%2033.9663C12.4958%2033.6042%2015.1243%2030.4206%2014.716%2026.8328C14.6735%2026.437%2014.5969%2026.0411%2014.4778%2025.6537C14.2992%2025.0894%2014.2226%2025.2831%2014.733%2024.9884C15.6687%2024.4493%2016.5278%2023.6914%2017.37%2023.026C19.0457%2021.7122%2020.6534%2020.2973%2022.1761%2018.8065C22.8906%2018.0991%2023.5881%2017.3832%2024.2601%2016.6421C24.5834%2016.2799%2024.9917%2015.9178%2025.2554%2015.5219C25.4766%2015.1935%2025.451%2015.5219%2025.2384%2015.4545C25.4766%2015.5135%2025.7232%2015.6904%2025.9529%2015.783C27.6032%2016.4484%2029.5426%2016.4736%2031.1248%2015.6061C32.8601%2014.6629%2033.8213%2012.7847%2034%2010.8898C34.2126%208.66634%2033.2174%206.5187%2031.8904%204.78375C31.4651%204.22789%2030.776%204.0763%2030.2231%204.5732C29.8403%204.91851%2025.9784%208.09364%2026.072%208.28734C26.778%208.44736%2026.9652%208.39683%2026.6334%208.15259C26.4888%208.01784%2026.3442%207.89151%2026.2081%207.75675C25.8253%207.40302%2025.4425%207.05772%2025.0597%206.70399C24.8641%206.5187%2024.5153%205.90389%2024.4643%206.40922C24.4898%206.19024%2025.0768%205.75229%2025.2554%205.55858C26.123%204.63215%2027.7563%203.37726%2027.399%201.91182C27.0417%200.446373%2024.9407%200.269509%2023.7583%200.0842225C20.9342%20-0.353726%2018.076%200.943276%2016.8851%203.60466C16.3322%204.84271%2016.2386%206.23235%2016.5789%207.5462C16.749%208.21154%2017.0552%208.87689%2017.438%209.44117C17.5997%209.67699%2017.7868%209.91281%2017.9824%2010.1318C18.127%2010.2918%2018.731%2010.6708%2018.7565%2010.8645L18.8671%2010.056C18.6629%2010.4771%2018.1356%2010.8392%2017.7953%2011.1677L16.4598%2012.4815L13.7973%2015.1177L8.4723%2020.3815H9.97793C7.51108%2018.0233%203.51308%2018.2844%201.37798%2020.9373C-0.910233%2023.7756%20-0.21271%2027.8519%202.55186%2030.109C3.0027%2030.4796%203.60665%2030.5385%204.05749%2030.109C5.09527%2029.1236%206.09052%2028.1045%207.1283%2027.1107C8.16607%2026.1169%206.60941%2024.6767%205.62267%2025.62L5.61416%2025.6284Z'%20fill='%231D1D1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1085_446'%3e%3crect%20width='34'%20height='34'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",t1=""+new URL("map-BgiyGEb7.svg",import.meta.url).href,r1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='420'%20height='420'%20stroke='%23000'%20fill='none'%3e%3cpath%20stroke-width='26'%20d='M209,15a195,195%200%201,0%202,0z'/%3e%3cpath%20stroke-width='18'%20d='m210,15v390m195-195H15M59,90a260,260%200%200,0%20302,0%20m0,240%20a260,260%200%200,0-302,0M195,20a250,250%200%200,0%200,382%20m30,0%20a250,250%200%200,0%200-382'/%3e%3c/svg%3e",a1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20297%20297'%20xml:space='preserve'%3e%3cpath%20d='M148.5,0C66.653,0,0.067,66.616,0.067,148.499C0.067,230.383,66.653,297,148.5,297s148.433-66.617,148.433-148.501%20C296.933,66.616,230.347,0,148.5,0z%20M158.597,276.411v-61.274c0-5.575-4.521-10.097-10.097-10.097s-10.097,4.521-10.097,10.097%20v61.274c-62.68-4.908-112.845-55.102-117.747-117.814h61.207c5.575,0,10.097-4.521,10.097-10.097s-4.522-10.097-10.097-10.097%20H20.656C25.558,75.69,75.723,25.497,138.403,20.589v61.274c0,5.575,4.521,10.097,10.097,10.097s10.097-4.521,10.097-10.097V20.589%20c62.681,4.908,112.846,55.102,117.747,117.814h-61.207c-5.575,0-10.097,4.521-10.097,10.097s4.521,10.097,10.097,10.097h61.207%20C271.441,221.31,221.276,271.503,158.597,276.411z'/%3e%3c/svg%3e",i1="data:image/svg+xml,%3csvg%20width='40'%20height='43'%20viewBox='0%200%2040%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M31.6764%2030.6581L33.9381%2029.3784L36.3686%2029.3275L38.9204%2032.0306L38.7281%2035.9953L35.9078%2039.721L33.4294%2042.2894L28.3488%2040.8113L24.3834%2038.5909L22.8479%2035.5475L24.1185%2032.34L27.0444%2031.2151L29.7025%2032.1216L30.3762%2032.6118L31.0884%2031.5063L31.6764%2030.6581Z'%20fill='%23D61F30'/%3e%3cpath%20d='M39.1742%2013.1175C39.1668%207.7547%2034.9901%203.35948%2030.0897%201.77359C24.0044%20-0.195741%2015.9785%200.0897038%2010.1677%202.83137C3.12497%206.15481%200.912581%2013.4348%200.830137%2020.6954C0.76247%2026.6648%201.35825%2042.3872%2010.2265%2042.4992C16.8158%2042.5828%2017.797%2034.0922%2020.8459%2030.003C23.0151%2027.0938%2025.8081%2026.272%2029.2462%2025.4211C35.1554%2023.9585%2039.1828%2019.295%2039.1742%2013.1175Z'%20fill='black'/%3e%3c/svg%3e",c1="data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1081_395)'%3e%3cpath%20d='M4%2010.5L1.5%2030.5H20L32%2028L27%209.5H18L17%208.5L18%205.5V3L15%201.5H11.5L10.5%205L13.5%208.5V10L4%2010.5Z'%20fill='%2395D2EF'%20stroke='black'/%3e%3cpath%20d='M32.9786%2028.0038C31.83%2021.3659%2030.1181%2014.9163%2027.4947%208.72248C27.2724%208.2032%2026.85%208.06773%2026.4424%208.16557C23.6633%208.15052%2020.914%208.2333%2018.172%208.37629C19.3429%207.48071%2020.0321%206.11101%2019.7282%204.34243C19.2317%201.42991%2016.3564%20-0.240828%2013.5922%200.158043C10.8946%200.541862%209.01232%202.94261%209.7534%205.71213C10.1239%207.0969%2010.8502%208.15052%2011.8284%208.80527C9.26429%209.01599%206.69276%209.26435%204.09901%209.52775C4.06195%209.52775%204.03231%209.5428%204.00267%209.55033C3.55802%209.5428%203.14302%209.77611%203.02445%2010.3556C1.7498%2016.9257%200.593728%2023.5108%200.000868837%2030.1938C-0.0510063%2030.8109%200.326941%2031.1646%200.786407%2031.2549C0.890157%2031.2926%200.993907%2031.3151%201.11248%2031.3227C11.6876%2031.9473%2021.9515%2032.873%2032.2005%2029.396C32.6303%2029.2531%2032.8601%2028.9294%2032.9416%2028.5833C32.9935%2028.4102%2033.0157%2028.222%2032.9786%2028.0113V28.0038ZM14.474%202.34055C15.9191%202.3556%2017.4754%203.34149%2017.5865%204.92944C17.7051%206.60771%2016.1785%207.11195%2014.8446%207.32267C13.4217%207.54845%2012.4583%206.72813%2011.9914%205.38852C11.3615%203.58984%2012.7177%202.32549%2014.474%202.34055ZM2.33525%2029.1326C2.90588%2023.27%203.91374%2017.4675%205.02535%2011.6802C11.9766%2010.9802%2018.8167%2010.4233%2025.805%2010.4158C28.0727%2015.9172%2029.5697%2021.6595%2030.6368%2027.5146C21.2697%2030.4346%2011.9544%2029.7197%202.33525%2029.1326Z'%20fill='%231D1D1B'/%3e%3cpath%20d='M15.6735%2021.8551C14.6063%2021.4186%2013.5244%2021.1176%2012.4053%2020.9144C12.9167%2019.7404%2013.4058%2018.5513%2013.8727%2017.3547C14.3988%2016%2012.2497%2015.4205%2011.731%2016.7526C11.3085%2017.8288%2010.8713%2018.8975%2010.4118%2019.9511C10.1821%2018.9577%209.95979%2017.9643%209.73006%2016.9709C9.40399%2015.556%207.26228%2016.1581%207.58836%2017.5729C8.24791%2020.4553%208.90747%2023.3453%209.55961%2026.2277C9.88568%2027.6425%2012.0274%2027.0405%2011.7013%2025.6256C11.5457%2024.9332%2011.3827%2024.2333%2011.227%2023.5409C11.3085%2023.3678%2011.3827%2023.1947%2011.4568%2023.0217C12.7018%2023.1872%2013.9171%2023.5409%2015.0806%2024.0226C15.6438%2024.2559%2016.296%2023.7742%2016.4516%2023.2324C16.6369%2022.5927%2016.2293%2022.0734%2015.6735%2021.8401V21.8551Z'%20fill='%231D1D1B'/%3e%3cpath%20d='M23.6256%2018.333C23.4996%2017.8062%2023.0327%2017.5654%2022.551%2017.5052C21.8248%2017.4073%2021.0541%2017.6406%2020.4316%2018.0094C19.194%2018.7394%2020.313%2020.6886%2021.5506%2019.9586C21.6247%2019.9135%2021.6988%2019.8834%2021.7729%2019.8532C21.9878%2020.5005%2022.2102%2021.2681%2022.0842%2021.4939C21.6543%2022.2615%2020.061%2021.5541%2019.6238%2021.1929C18.4751%2020.2521%2017.8971%2016.3913%2020.0685%2016.1881C21.4839%2016.0527%2021.4913%2013.7949%2020.0685%2013.9304C15.8814%2014.3293%2015.3182%2020.4854%2018.1491%2022.9012C19.4608%2024.0226%2021.4913%2024.4365%2023.0476%2023.6011C25.1374%2022.4723%2024.048%2020.1468%2023.6182%2018.3405L23.6256%2018.333Z'%20fill='%231D1D1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1081_395'%3e%3crect%20width='33'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",o1=""+new URL("profile-D_a59lYk.svg",import.meta.url).href,l1="data:image/svg+xml,%3csvg%20width='31'%20height='34'%20viewBox='0%200%2031%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1085_442)'%3e%3cpath%20d='M14%2032.5H5L1.5%2028L2.5%2019L9.5%209.5L7.5%202L11.5%203.5L16%202H21.5L20%207.5L24%2011.5L28%2019L29.5%2024.5L27%2030.5L14%2032.5Z'%20fill='%23F6B67B'/%3e%3cpath%20d='M30.8073%2024.5615C30.2957%2018.1768%2026.6666%2011.2058%2021.3747%207.47594C22.1181%206.27067%2022.1101%204.55235%2022.4778%203.27379C22.7576%202.2884%2023.1573%201.42516%2022.3419%200.586362C21.6384%20-0.146572%2020.911%200.0570205%2020.0397%200.309476C19.0005%200.610793%2018.7447%201.06684%2017.6176%200.822529C17.1619%200.724805%2016.7862%200.244326%2016.2506%200.146601C14.5639%20-0.146572%2014.3161%201.16457%2013.0851%201.85678C11.2945%202.8666%208.88832%200.586362%206.88986%200.741092C6.09848%200.798098%205.53891%201.47403%205.73076%202.2884C6.29832%204.69079%206.80193%207.11762%207.98502%209.25127C2.48527%2012.6228%200.0551553%2020.0417%200.270988%2026.3286C0.566759%2035.0017%209.15211%2034.0733%2015.4752%2033.544C19.3522%2033.2182%2024.836%2033.2101%2028.2973%2031.337C30.7594%2030.0015%2031.0072%2027.1512%2030.7994%2024.5615H30.8073ZM13.5727%204.62564C14.7078%204.07187%2014.9077%202.8096%2016.3386%202.98876C17.058%203.07834%2017.4497%203.62397%2018.313%203.55882C18.9206%203.5181%2019.4641%203.2575%2019.9997%202.9969C19.7599%203.41223%2019.7759%203.909%2019.64%204.34876C19.0005%206.50684%2018.281%206.74301%2016.2346%207.53295C14.2362%208.3066%2012.5175%208.87666%2010.3512%208.5672C9.32798%207.09319%208.84835%205.23642%208.44866%203.42852C10.1593%204.05558%2011.7501%205.50516%2013.5727%204.6175V4.62564ZM25.7872%2029.5943C23.0214%2030.7588%2019.1684%2030.7588%2016.2426%2031.0276C13.7565%2031.2556%2011.2225%2031.4836%208.72045%2031.4347C4.48373%2031.337%202.39734%2028.9183%202.70111%2024.7162C3.0928%2019.382%205.01132%2013.5674%209.90353%2010.9696C11.862%2011.2465%2013.6207%2011.0755%2015.5472%2010.4077C16.6583%2010.0249%2018.1372%209.65031%2019.3842%209.05582C23.485%2011.6537%2025.9871%2016.0187%2027.4979%2020.6525C28.4971%2023.7226%2029.4644%2028.0551%2025.7872%2029.6024V29.5943Z'%20fill='%231D1D1B'/%3e%3cpath%20d='M19.696%2023.3887C17.9374%2024.6347%2014.7159%2024.48%2013.5008%2022.4848C14.9397%2022.1753%2016.3706%2021.8333%2017.7615%2021.5646C19.2724%2021.2714%2018.6329%2018.9178%2017.122%2019.211C15.7791%2019.4716%2014.3961%2019.8137%2013.0052%2020.115C13.1891%2018.1279%2014.6839%2016.3281%2016.5785%2015.8721C18.0813%2015.5138%2017.4418%2013.1521%2015.9389%2013.5186C12.7974%2014.2759%2010.6151%2017.3624%2010.6151%2020.5629C9.82368%2020.685%209.03229%2020.7665%208.2489%2020.7909C6.7061%2020.8316%206.7061%2023.2747%208.2489%2023.234C9.16819%2023.2096%2010.1035%2023.1037%2011.0387%2022.9571C11.0387%2022.9653%2011.0387%2022.9734%2011.0467%2022.9897C12.4696%2026.7521%2017.8894%2027.6479%2020.9031%2025.5061C22.1581%2024.6103%2020.9591%2022.4929%2019.696%2023.3969V23.3887Z'%20fill='%231D1D1B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1085_442'%3e%3crect%20width='31'%20height='34'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",n1="data:image/svg+xml,%3csvg%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_936_25565)'%3e%3cpath%20d='M4.49902%2021.5001V14.5001'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.49902%2010.5001V3.50009'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.499%2021.5001V12.5001'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.499%208.50009V3.50009'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.4998%2021.5002V16.5002'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.4998%2012.5001V3.50009'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.49902%2014.5001H7.49902'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.49902%208.50008H15.499'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4998%2016.5002H23.4998'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_936_25565'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0.5%200.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",s1="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%204.5H15.75'%20stroke='%231B1B1B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6%209H15.75'%20stroke='%231B1B1B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6%2013.5H15.75'%20stroke='%231B1B1B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.25%204.5H2.2575'%20stroke='%231B1B1B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.25%209H2.2575'%20stroke='%231B1B1B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.25%2013.5H2.2575'%20stroke='%231B1B1B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",d1=""+new URL("thunderbolt-CMG5Kzo3.svg",import.meta.url).href,p1=""+new URL("thunderbolt-grey-h7IGzN_R.svg",import.meta.url).href,g1=""+new URL("volunteer-YH2gy5fP.svg",import.meta.url).href,h1="data:image/svg+xml,%3csvg%20class='lds-blocks'%20width='200px'%20height='200px'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='xMidYMid'%20style='shape-rendering:%20auto;%20animation-play-state:%20running;%20animation-delay:%200s;%20background:%20none;'%3e%3crect%20x='19'%20y='19'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='40'%20y='19'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.125s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='61'%20y='19'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.25s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='19'%20y='40'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.875s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='61'%20y='40'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.375s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='19'%20y='61'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.75s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='40'%20y='61'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.625s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3crect%20x='61'%20y='61'%20width='20'%20height='20'%20fill='%23fcb711'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3canimate%20attributeName='fill'%20values='%23f37021;%23fcb711;%23fcb711'%20keyTimes='0;0.125;1'%20dur='1s'%20repeatCount='indefinite'%20begin='0.5s'%20calcMode='discrete'%20style='animation-play-state:%20running;%20animation-delay:%200s;'%3e%3c/animate%3e%3c/rect%3e%3c/svg%3e",u1={maxWidth:"100%"},n=e=>l.jsx("img",{alt:"icon",style:u1,...e}),s={arrowCurvedBottomRight:l.jsx(n,{src:V0}),arrowFullDown:l.jsx(n,{src:p2}),arrowFullUp:l.jsx(n,{src:F0}),account:l.jsx(n,{src:B0}),bazar:l.jsx(n,{src:I0}),chevronDown:l.jsx(n,{src:j0}),chevronLeft:l.jsx(n,{src:R0}),chevronRight:l.jsx(n,{src:G0}),chevronUp:l.jsx(n,{src:H0}),close:l.jsx(n,{src:Z0}),comment:l.jsx(n,{src:W0}),contact:l.jsx(n,{src:A0}),delete:l.jsx(n,{src:O0}),discord:l.jsx(n,{src:N0}),emailOutline:l.jsx(n,{src:E0}),employee:l.jsx(n,{src:T0}),flagUnknown:l.jsx(n,{src:n2}),hide:l.jsx(n,{src:D0}),hyperlink:l.jsx(n,{src:_0}),impact:l.jsx(n,{src:J0}),loading:l.jsx(n,{src:h1,"data-cy":"icon-loading"}),machine:l.jsx(n,{src:e1}),map:l.jsx(n,{src:t1}),patreon:l.jsx(n,{src:i1}),plastic:l.jsx(n,{src:c1}),profile:l.jsx(n,{src:o1}),revenue:l.jsx(n,{src:l1}),show:l.jsx(n,{src:P0}),sliders:l.jsx(n,{src:n1}),socialMedia:l.jsx(n,{src:$0}),star:l.jsx(n,{src:U0}),starActive:l.jsx(n,{src:g2}),step:l.jsx(n,{src:s1}),supporter:l.jsx(n,{src:s2}),thunderbolt:l.jsx(n,{src:d1}),thunderboltGrey:l.jsx(n,{src:p1}),update:l.jsx(n,{src:Y0}),useful:l.jsx(n,{src:X0}),verified:l.jsx(n,{src:d2}),view:l.jsx(n,{src:Q0}),volunteer:l.jsx(n,{src:g1}),website:l.jsx(n,{src:K0}),search:l.jsx(n,{src:q0}),globe:l.jsx(n,{src:r1}),gpsLocation:l.jsx(n,{src:a1})},v1={"account-circle":g(B2,{}),add:g(H2,{}),account:s.account,"arrow-back":g(_2,{}),"arrow-curved-bottom-right":s.arrowCurvedBottomRight,"arrow-down":g(T2,{}),"arrow-forward":g(F2,{}),"arrow-full-down":s.arrowFullDown,"arrow-full-up":s.arrowFullUp,bazar:s.bazar,comment:s.comment,contact:s.contact,check:g(I2,{}),"chevron-down":s.chevronDown,"chevron-left":s.chevronLeft,"chevron-right":s.chevronRight,"chevron-up":s.chevronUp,close:s.close,delete:s.delete,difficulty:g(z2,{}),discord:s.discord,download:g(O2,{}),"download-cloud":g(S0,{}),edit:g(P2,{}),email:g(A2,{}),employee:s.employee,"email-outline":s.emailOutline,"external-link":g(k2,{}),"external-url":g(k0,{}),facebook:g(b2,{}),filter:g(S2,{}),"flag-unknown":s.flagUnknown,hide:s.hide,hyperlink:s.hyperlink,image:g(D2,{}),impact:s.impact,instagram:g(y2,{}),loading:s.loading,"location-on":g(R2,{}),lock:g(V2,{}),machine:s.machine,"mail-outline":g(G2,{}),map:s.map,menu:g(W2,{}),"more-vert":g(N2,{}),notifications:g(E2,{}),patreon:s.patreon,pdf:g(L2,{}),plastic:s.plastic,profile:s.profile,revenue:s.revenue,slack:g(x2,{}),sliders:s.sliders,star:s.star,"star-active":s.starActive,step:s.step,thunderbolt:s.thunderbolt,"thunderbolt-grey":s.thunderboltGrey,time:g(Z2,{}),"turned-in":g(j2,{}),"social-media":s.socialMedia,supporter:s.supporter,show:s.show,update:s.update,upload:g(M2,{}),useful:s.useful,verified:s.verified,view:s.view,volunteer:s.volunteer,website:s.website,search:s.search,globe:s.globe,"gps-location":s.gpsLocation},m1=l2.div` display: inline-block; flex: 0 0 ${e=>e.size?`${e.size}px`:"32px"}; @@ -9,4 +9,4 @@ import{a as H,g as o2}from"./index-BP8_t0zE.js";import{n as l2}from"./emotion-st position: relative; ${M0} ${u0} ${e=>e.onClick&&"\n cursor: pointer;\n "}; -`,t2={xs:8,sm:16,md:32,lg:48,xl:64},f1=({glyph:e})=>v1[e]||null,r2=e=>{const{glyph:t,size:a,sx:r}=e;let i=16;return!isNaN(a)?i=a:Object.keys(t2).includes(a)&&(i=t2[a]),g(m1,{...e,sx:{color:e.color??"inherit",opacity:e.opacity??"1","& svg":{fontSize:i},display:"flex",alignItems:"center",justifyContent:"center",...r},size:i,children:g(N.Provider,{value:{style:{width:i,height:i}},children:g(f1,{glyph:t})})})};try{r2.displayName="Icon",r2.__docgenInfo={description:"",displayName:"Icon",props:{glyph:{defaultValue:null,description:"",name:"glyph",required:!0,type:{name:"enum",value:[{value:'"map"'},{value:'"menu"'},{value:'"search"'},{value:'"time"'},{value:'"filter"'},{value:'"image"'},{value:'"view"'},{value:'"email"'},{value:'"step"'},{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"volunteer"'},{value:'"website"'},{value:'"globe"'},{value:'"gps-location"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"string | number"}},marginRight:{defaultValue:null,description:"Margin on right",name:"marginRight",required:!1,type:{name:"(string & ResponsiveValue>>)"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(() => void)"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{r2 as I,v1 as g}; \ No newline at end of file +`,t2={xs:8,sm:16,md:32,lg:48,xl:64},f1=({glyph:e})=>v1[e]||null,r2=e=>{const{glyph:t,size:a,sx:r}=e;let i=16;return!isNaN(a)?i=a:Object.keys(t2).includes(a)&&(i=t2[a]),g(m1,{...e,sx:{color:e.color??"inherit",opacity:e.opacity??"1","& svg":{fontSize:i},display:"flex",alignItems:"center",justifyContent:"center",...r},size:i,children:g(N.Provider,{value:{style:{width:i,height:i}},children:g(f1,{glyph:t})})})};try{r2.displayName="Icon",r2.__docgenInfo={description:"",displayName:"Icon",props:{glyph:{defaultValue:null,description:"",name:"glyph",required:!0,type:{name:"enum",value:[{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"filter"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"image"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"map"'},{value:'"menu"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"step"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"time"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"view"'},{value:'"volunteer"'},{value:'"website"'},{value:'"search"'},{value:'"globe"'},{value:'"gps-location"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"string | number"}},marginRight:{defaultValue:null,description:"Margin on right",name:"marginRight",required:!1,type:{name:"(string & ResponsiveValue>>)"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(() => void)"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{r2 as I,v1 as g}; \ No newline at end of file diff --git a/storybook-static/assets/Icon-BoVZOGVD.js.LICENSE.txt b/storybook-static/assets/Icon-DVJa_328.js.LICENSE.txt similarity index 100% rename from storybook-static/assets/Icon-BoVZOGVD.js.LICENSE.txt rename to storybook-static/assets/Icon-DVJa_328.js.LICENSE.txt diff --git a/storybook-static/assets/Icon.stories-CoRdUHHd.js b/storybook-static/assets/Icon.stories-kW3Qr2Pe.js similarity index 97% rename from storybook-static/assets/Icon.stories-CoRdUHHd.js rename to storybook-static/assets/Icon.stories-kW3Qr2Pe.js index 626649b64c..bc72e6efe1 100644 --- a/storybook-static/assets/Icon.stories-CoRdUHHd.js +++ b/storybook-static/assets/Icon.stories-kW3Qr2Pe.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as o,g as b}from"./Icon-BoVZOGVD.js";import"./index-BP8_t0zE.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const R={title:"Components/Icon",component:o},a=()=>e.jsx(o,{glyph:"delete"}),t=()=>e.jsx(e.Fragment,{children:["xl","lg","md","sm","xs"].map(((s,r)=>e.jsx(o,{glyph:"delete",size:s},r)))}),c=()=>e.jsx(e.Fragment,{children:Object.keys(b).map(((s,r)=>e.jsx("a",{title:s,children:e.jsx(o,{glyph:s})},r)))}),p=()=>e.jsx(e.Fragment,{children:["#37ecba","#47d5b9","#57c1c5","#72afd3"].map(((s,r)=>e.jsx(o,{glyph:"delete",color:s,size:"lg"},r)))});var m,l,n,i,d,g,y,u,x,h,j,k;a.parameters={...a.parameters,docs:{...null==(m=a.parameters)?void 0:m.docs,source:{originalSource:'() => ',...null==(n=null==(l=a.parameters)?void 0:l.docs)?void 0:n.source}}},t.parameters={...t.parameters,docs:{...null==(i=t.parameters)?void 0:i.docs,source:{originalSource:"() => <>\n {['xl', 'lg', 'md', 'sm', 'xs'].map((size, key) => )}\n ",...null==(g=null==(d=t.parameters)?void 0:d.docs)?void 0:g.source}}},c.parameters={...c.parameters,docs:{...null==(y=c.parameters)?void 0:y.docs,source:{originalSource:"() => <>\n {Object.keys(glyphs).map((glyph: any, key) => \n \n )}\n ",...null==(x=null==(u=c.parameters)?void 0:u.docs)?void 0:x.source}}},p.parameters={...p.parameters,docs:{...null==(h=p.parameters)?void 0:h.docs,source:{originalSource:"() => <>\n {['#37ecba', '#47d5b9', '#57c1c5', '#72afd3'].map((color, key) => )}\n ",...null==(k=null==(j=p.parameters)?void 0:j.docs)?void 0:k.source}}};const q=["Default","Sizes","Available","Colours"];export{c as Available,p as Colours,a as Default,t as Sizes,q as __namedExportsOrder,R as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as o,g as b}from"./Icon-DVJa_328.js";import"./index-BP8_t0zE.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const R={title:"Components/Icon",component:o},a=()=>e.jsx(o,{glyph:"delete"}),t=()=>e.jsx(e.Fragment,{children:["xl","lg","md","sm","xs"].map(((s,r)=>e.jsx(o,{glyph:"delete",size:s},r)))}),c=()=>e.jsx(e.Fragment,{children:Object.keys(b).map(((s,r)=>e.jsx("a",{title:s,children:e.jsx(o,{glyph:s})},r)))}),p=()=>e.jsx(e.Fragment,{children:["#37ecba","#47d5b9","#57c1c5","#72afd3"].map(((s,r)=>e.jsx(o,{glyph:"delete",color:s,size:"lg"},r)))});var m,l,n,i,d,g,y,u,x,h,j,k;a.parameters={...a.parameters,docs:{...null==(m=a.parameters)?void 0:m.docs,source:{originalSource:'() => ',...null==(n=null==(l=a.parameters)?void 0:l.docs)?void 0:n.source}}},t.parameters={...t.parameters,docs:{...null==(i=t.parameters)?void 0:i.docs,source:{originalSource:"() => <>\n {['xl', 'lg', 'md', 'sm', 'xs'].map((size, key) => )}\n ",...null==(g=null==(d=t.parameters)?void 0:d.docs)?void 0:g.source}}},c.parameters={...c.parameters,docs:{...null==(y=c.parameters)?void 0:y.docs,source:{originalSource:"() => <>\n {Object.keys(glyphs).map((glyph: any, key) => \n \n )}\n ",...null==(x=null==(u=c.parameters)?void 0:u.docs)?void 0:x.source}}},p.parameters={...p.parameters,docs:{...null==(h=p.parameters)?void 0:h.docs,source:{originalSource:"() => <>\n {['#37ecba', '#47d5b9', '#57c1c5', '#72afd3'].map((color, key) => )}\n ",...null==(k=null==(j=p.parameters)?void 0:j.docs)?void 0:k.source}}};const q=["Default","Sizes","Available","Colours"];export{c as Available,p as Colours,a as Default,t as Sizes,q as __namedExportsOrder,R as default}; \ No newline at end of file diff --git a/storybook-static/assets/IconCountWithTooltip-BgxPFEPA.js b/storybook-static/assets/IconCountWithTooltip-BgxPFEPA.js deleted file mode 100644 index aa1f7e2d44..0000000000 --- a/storybook-static/assets/IconCountWithTooltip-BgxPFEPA.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{I as v}from"./Icon-BoVZOGVD.js";import{T as c}from"./Tooltip-B9mgSRkZ.js";import{T as d}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=a=>{const{count:l,dataCy:u,icon:t,text:o}=a,n=i.useMemo((()=>(16*Math.random()).toString()),[]);return e.jsxs(e.Fragment,{children:[e.jsxs(d,{"data-cy":u,"data-tooltip-id":n,"data-tooltip-content":o,color:"black",sx:{display:"flex",position:"relative",alignItems:"center",fontSize:[1,2,2]},children:[l,e.jsx(v,{glyph:t,ml:1})]}),e.jsx(c,{id:n})]})};try{u.displayName="IconCountWithTooltip",u.__docgenInfo={description:"",displayName:"IconCountWithTooltip",props:{count:{defaultValue:null,description:"",name:"count",required:!0,type:{name:"number"}},dataCy:{defaultValue:null,description:"",name:"dataCy",required:!1,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"map"'},{value:'"menu"'},{value:'"search"'},{value:'"time"'},{value:'"filter"'},{value:'"image"'},{value:'"view"'},{value:'"email"'},{value:'"step"'},{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"volunteer"'},{value:'"website"'},{value:'"globe"'},{value:'"gps-location"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}export{u as I}; \ No newline at end of file diff --git a/storybook-static/assets/IconCountWithTooltip-D45XZbVQ.js b/storybook-static/assets/IconCountWithTooltip-D45XZbVQ.js new file mode 100644 index 0000000000..521cc0f835 --- /dev/null +++ b/storybook-static/assets/IconCountWithTooltip-D45XZbVQ.js @@ -0,0 +1 @@ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{I as v}from"./Icon-DVJa_328.js";import{T as c}from"./Tooltip-B9mgSRkZ.js";import{T as d}from"./theme-ui-components.esm-DCiJ1mMX.js";const u=a=>{const{count:l,dataCy:u,icon:t,text:o}=a,n=i.useMemo((()=>(16*Math.random()).toString()),[]);return e.jsxs(e.Fragment,{children:[e.jsxs(d,{"data-cy":u,"data-tooltip-id":n,"data-tooltip-content":o,color:"black",sx:{display:"flex",position:"relative",alignItems:"center",fontSize:[1,2,2]},children:[l,e.jsx(v,{glyph:t,ml:1})]}),e.jsx(c,{id:n})]})};try{u.displayName="IconCountWithTooltip",u.__docgenInfo={description:"",displayName:"IconCountWithTooltip",props:{count:{defaultValue:null,description:"",name:"count",required:!0,type:{name:"number"}},dataCy:{defaultValue:null,description:"",name:"dataCy",required:!1,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"filter"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"image"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"map"'},{value:'"menu"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"step"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"time"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"view"'},{value:'"volunteer"'},{value:'"website"'},{value:'"search"'},{value:'"globe"'},{value:'"gps-location"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}export{u as I}; \ No newline at end of file diff --git a/storybook-static/assets/IconCountWithTooltip.stories-B1_j__4h.js b/storybook-static/assets/IconCountWithTooltip.stories-CxOTS8ux.js similarity index 89% rename from storybook-static/assets/IconCountWithTooltip.stories-B1_j__4h.js rename to storybook-static/assets/IconCountWithTooltip.stories-CxOTS8ux.js index 4396710610..ab00493982 100644 --- a/storybook-static/assets/IconCountWithTooltip.stories-B1_j__4h.js +++ b/storybook-static/assets/IconCountWithTooltip.stories-CxOTS8ux.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as i}from"./IconCountWithTooltip-BgxPFEPA.js";import"./index-BP8_t0zE.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const _={title:"Components/IconCountWithTooltip",component:i},o=()=>e.jsx(i,{count:3,icon:"comment",text:"Number of comments"});var t,r,m;o.parameters={...o.parameters,docs:{...null==(t=o.parameters)?void 0:t.docs,source:{originalSource:'() => ',...null==(m=null==(r=o.parameters)?void 0:r.docs)?void 0:m.source}}};const b=["Default"];export{o as Default,b as __namedExportsOrder,_ as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as i}from"./IconCountWithTooltip-D45XZbVQ.js";import"./index-BP8_t0zE.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const _={title:"Components/IconCountWithTooltip",component:i},o=()=>e.jsx(i,{count:3,icon:"comment",text:"Number of comments"});var t,r,m;o.parameters={...o.parameters,docs:{...null==(t=o.parameters)?void 0:t.docs,source:{originalSource:'() => ',...null==(m=null==(r=o.parameters)?void 0:r.docs)?void 0:m.source}}};const b=["Default"];export{o as Default,b as __namedExportsOrder,_ as default}; \ No newline at end of file diff --git a/storybook-static/assets/ImageCrop-DCgV90x1.js b/storybook-static/assets/ImageCrop-B_XHY1rW.js similarity index 99% rename from storybook-static/assets/ImageCrop-DCgV90x1.js rename to storybook-static/assets/ImageCrop-B_XHY1rW.js index c21fb7c931..826664ab72 100644 --- a/storybook-static/assets/ImageCrop-DCgV90x1.js +++ b/storybook-static/assets/ImageCrop-B_XHY1rW.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-CexXSJP5.js";import{r as D,a as p}from"./index-BP8_t0zE.js";import{B as j}from"./Button-B7QBvkxh.js";import{L as T}from"./Loader-DmqUoSY8.js";import{a as X,T as L,F as $}from"./theme-ui-components.esm-DCiJ1mMX.js";const S={x:0,y:0,width:0,height:0,unit:"px"},_=(e,t,n)=>Math.min(Math.max(e,t),n),F=(...e)=>e.filter((e=>e&&"string"==typeof e)).join(" "),A=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function z(e,t,n,i){const r=v(e,n,i);return e.width&&(r.height=r.width/t),e.height&&(r.width=r.height*t),r.y+r.height>i&&(r.height=i-r.y,r.width=r.height*t),r.x+r.width>n&&(r.width=n-r.x,r.height=r.width/t),"%"===e.unit?E(r,n,i):r}function W(e,t,n){const i=v(e,t,n);return i.x=(t-i.width)/2,i.y=(n-i.height)/2,"%"===e.unit?E(i,t,n):i}function E(e,t,n){return"%"===e.unit?{...S,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function v(e,t,n){return e.unit?"px"===e.unit?{...S,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...S,...e,unit:"px"}}function K(e,t,n,i,r,o=0,a=0,h=i,s=r){const d={...e};let c=Math.min(o,i),l=Math.min(a,r),p=Math.min(h,i),g=Math.min(s,r);t&&(t>1?(c=a?a*t:c,l=c/t,p=h*t):(l=o?o/t:l,c=l*t,g=s/t)),d.y<0&&(d.height=Math.max(d.height+d.y,l),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);const w=i-(d.x+d.width);w<0&&(d.x=Math.min(d.x,i-c),d.width+=w);const u=r-(d.y+d.height);if(u<0&&(d.y=Math.min(d.y,r-l),d.height+=u),d.widthp&&(("sw"===n||"nw"==n)&&(d.x-=p-d.width),d.width=p),d.height>g&&(("nw"===n||"ne"==n)&&(d.y-=g-d.height),d.height=g),t){const e=d.width/d.height;if(et){const e=Math.max(d.height*t,c);("sw"===n||"nw"==n)&&(d.x-=e-d.width),d.width=e}}return d}function q(e,t,n,i){const r={...e};return"ArrowLeft"===t?"nw"===i?(r.x-=n,r.y-=n,r.width+=n,r.height+=n):"w"===i?(r.x-=n,r.width+=n):"sw"===i?(r.x-=n,r.width+=n,r.height+=n):"ne"===i?(r.y+=n,r.width-=n,r.height-=n):"e"===i?r.width-=n:"se"===i&&(r.width-=n,r.height-=n):"ArrowRight"===t&&("nw"===i?(r.x+=n,r.y+=n,r.width-=n,r.height-=n):"w"===i?(r.x+=n,r.width-=n):"sw"===i?(r.x+=n,r.width-=n,r.height-=n):"ne"===i?(r.y-=n,r.width+=n,r.height+=n):"e"===i?r.width+=n:"se"===i&&(r.width+=n,r.height+=n)),"ArrowUp"===t?"nw"===i?(r.x-=n,r.y-=n,r.width+=n,r.height+=n):"n"===i?(r.y-=n,r.height+=n):"ne"===i?(r.y-=n,r.width+=n,r.height+=n):"sw"===i?(r.x+=n,r.width-=n,r.height-=n):"s"===i?r.height-=n:"se"===i&&(r.width-=n,r.height-=n):"ArrowDown"===t&&("nw"===i?(r.x+=n,r.y+=n,r.width-=n,r.height-=n):"n"===i?(r.y+=n,r.height-=n):"ne"===i?(r.y+=n,r.width-=n,r.height-=n):"sw"===i?(r.x-=n,r.width+=n,r.height+=n):"s"===i?r.height+=n:"se"===i&&(r.width+=n,r.height+=n)),r}const k={capture:!0,passive:!1};let V=0;const M=class e extends D.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=D.createRef(),this.mediaRef=D.createRef(),this.initChangeCalled=!1,this.instanceId="rc-"+V++,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,i=this.getBox();if(!t)return;const r=v(t,i.width,i.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=e.target.dataset.ord,a=!!o;let h=e.clientX,s=e.clientY,d=r.x,c=r.y;if(o){const t=e.clientX-i.x,n=e.clientY-i.y;let a=0,l=0;"ne"===o||"e"==o?(a=t-(r.x+r.width),l=n-r.y,d=r.x,c=r.y+r.height):"se"===o||"s"===o?(a=t-(r.x+r.width),l=n-(r.y+r.height),d=r.x,c=r.y):"sw"===o||"w"==o?(a=t-r.x,l=n-(r.y+r.height),d=r.x+r.width,c=r.y):("nw"===o||"n"==o)&&(a=t-r.x,l=n-r.y,d=r.x+r.width,c=r.y+r.height),h=d+i.x+a,s=c+i.y+l}this.evData={startClientX:h,startClientY:s,startCropX:d,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:n,locked:i,keepSelection:r,onChange:o}=this.props,a=this.getBox();if(n||i||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=e.clientX-a.x,s=e.clientY-a.y,d={unit:"px",x:h,y:s,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:s,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(v(d,a.width,a.height),E(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:n,onChange:i,onDragStart:r}=this.props,o=this.getBox();if(n||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(e));const{evData:a}=this;let h;a.clientX=e.clientX,a.clientY=e.clientY,h=a.isResize?this.resizeCrop():this.dragCrop(),A(t,h)||i(v(h,o.width,o.height),E(h,o.width,o.height))},this.onComponentKeyDown=t=>{const{crop:n,disabled:i,onChange:r,onComplete:o}=this.props;if(i)return;const a=t.key;let h=!1;if(!n)return;const s=this.getBox(),d=this.makePixelCrop(s),c=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===a?(d.x-=c,h=!0):"ArrowRight"===a?(d.x+=c,h=!0):"ArrowUp"===a?(d.y-=c,h=!0):"ArrowDown"===a&&(d.y+=c,h=!0),h){t.cancelable&&t.preventDefault(),d.x=_(d.x,0,s.width-d.width),d.y=_(d.y,0,s.height-d.height);const e=v(d,s.width,s.height),n=E(d,s.width,s.height);r(e,n),o&&o(e,n)}},this.onHandlerKeyDown=(t,n)=>{const{aspect:i=0,crop:r,disabled:o,minWidth:a=0,minHeight:h=0,maxWidth:s,maxHeight:d,onChange:c,onComplete:l}=this.props,p=this.getBox();if(o||!r)return;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();const g=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,w=K(q(v(r,p.width,p.height),t.key,g,n),i,n,p.width,p.height,a,h,s,d);if(!A(r,w)){const e=E(w,p.width,p.height);c(w,e),l&&l(w,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:n,onComplete:i,onDragEnd:r}=this.props,o=this.getBox();this.unbindDocMove(),!n&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),i&&i(v(t,o.width,o.height),E(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=()=>{var e;null==(e=this.componentRef.current)||e.scrollTo(0,0)}}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:t,y:n,width:i,height:r}=e.getBoundingClientRect();return{x:t,y:n,width:i,height:r}}componentDidUpdate(e){const{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){const{width:e,height:i}=this.getBox();e&&i&&n(v(t,e,i),E(t,e,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,k),this.document.addEventListener("pointerup",this.onDocPointerDone,k),this.document.addEventListener("pointercancel",this.onDocPointerDone,k),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,k),this.document.removeEventListener("pointerup",this.onDocPointerDone,k),this.document.removeEventListener("pointercancel",this.onDocPointerDone,k),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),i=e.clientX-e.startClientX,r=e.clientY-e.startClientY;return n.x=_(e.startCropX+i,0,t.width-n.width),n.y=_(e.startCropY+r,0,t.height-n.height),n}getPointRegion(e,t,n,i){const{evData:r}=this,o=r.clientX-e.x,a=r.clientY-e.y;let h,s;return h=i&&t?"nw"===t||"n"===t||"ne"===t:a1?r?[r,r/t]:[o*t,o]:o?[o*t,o]:[r,r/t]:[r,o]}resizeCrop(){const{evData:t}=this,{aspect:n=0,maxWidth:i,maxHeight:r}=this.props,o=this.getBox(),[a,h]=this.resolveMinDimensions(o,n,this.props.minWidth,this.props.minHeight);let s=this.makePixelCrop(o);const d=this.getPointRegion(o,t.ord,a,h),c=t.ord||d;let l=t.clientX-t.startClientX,p=t.clientY-t.startClientY;(a&&"nw"===c||"w"===c||"sw"===c)&&(l=Math.min(l,-a)),(h&&"nw"===c||"n"===c||"ne"===c)&&(p=Math.min(p,-h));const g={unit:"px",x:0,y:0,width:0,height:0};"ne"===d?(g.x=t.startCropX,g.width=l,n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(p),g.y=t.startCropY-g.height)):"se"===d?(g.x=t.startCropX,g.y=t.startCropY,g.width=l,g.height=n?g.width/n:p):"sw"===d?(g.x=t.startCropX+l,g.y=t.startCropY,g.width=Math.abs(l),g.height=n?g.width/n:p):"nw"===d&&(g.x=t.startCropX+l,g.width=Math.abs(l),n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(p),g.y=t.startCropY+p));const w=K(g,n,d,o.width,o.height,a,h,i,r);return n||e.xyOrds.indexOf(c)>-1?s=w:e.xOrds.indexOf(c)>-1?(s.x=w.x,s.width=w.width):e.yOrds.indexOf(c)>-1&&(s.y=w.y,s.height=w.height),s.x=_(s.x,0,o.width-s.width),s.y=_(s.y,0,o.height-s.height),s}renderCropSelection(){const{ariaLabels:t=e.defaultProps.ariaLabels,disabled:n,locked:i,renderSelectionAddon:r,ruleOfThirds:o,crop:a}=this.props,h=this.getCropStyle();if(a)return p.createElement("div",{style:h,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!i&&p.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},p.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),r&&p.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},r(this.state)),o&&p.createElement(p.Fragment,null,p.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),p.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return v({...S,...this.props.crop||{}},e.width,e.height)}render(){const{aspect:e,children:t,circularCrop:n,className:i,crop:r,disabled:o,locked:a,style:h,ruleOfThirds:s}=this.props,{cropIsActive:d,newCropIsBeingDrawn:c}=this.state,l=r?this.renderCropSelection():null,g=F("ReactCrop",i,d&&"ReactCrop--active",o&&"ReactCrop--disabled",a&&"ReactCrop--locked",c&&"ReactCrop--new-crop",r&&e&&"ReactCrop--fixed-aspect",r&&n&&"ReactCrop--circular-crop",r&&s&&"ReactCrop--rule-of-thirds",!this.dragStarted&&r&&!r.width&&!r.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return p.createElement("div",{ref:this.componentRef,className:g,style:h},p.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),r?p.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},p.createElement("defs",null,p.createElement("mask",{id:`hole-${this.instanceId}`},p.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?p.createElement("ellipse",{cx:`${r.x+r.width/2}${r.unit}`,cy:`${r.y+r.height/2}${r.unit}`,rx:`${r.width/2}${r.unit}`,ry:`${r.height/2}${r.unit}`,fill:"black"}):p.createElement("rect",{x:`${r.x}${r.unit}`,y:`${r.y}${r.unit}`,width:`${r.width}${r.unit}`,height:`${r.height}${r.unit}`,fill:"black"}))),p.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,l)}};M.xOrds=["e","w"],M.yOrds=["n","s"],M.xyOrds=["nw","ne","se","sw"],M.nudgeStep=1,M.nudgeStepMedium=10,M.nudgeStepLarge=100,M.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};let Q=M;const G=Math.PI/180;async function J(e,t,n,i=1,r=0){const o=t.getContext("2d");if(!o)throw new Error("No 2d context");const a=e.naturalWidth/e.width,h=e.naturalHeight/e.height,s=window.devicePixelRatio;t.width=Math.floor(n.width*a*s),t.height=Math.floor(n.height*h*s),o.scale(s,s),o.imageSmoothingQuality="high";const d=n.x*a,c=n.y*h,l=r*G,p=e.naturalWidth/2,g=e.naturalHeight/2;o.save(),o.translate(-d,-c),o.translate(p,g),o.rotate(l),o.scale(i,i),o.translate(-p,-g),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore()}function Z(e,t,n){return W(z({unit:"%",width:90},n,e,t),e,t)}function ee(e,t,n){D.useEffect((()=>{const i=setTimeout((()=>e.apply({...n})),t);return()=>{clearTimeout(i)}}),n)}const te=90,N=1,B=e=>{const t=D.useRef(null),n=D.useRef(null),i=D.useRef(""),{aspect:r,callbackFn:o,callbackLabel:a,imgSrc:h,subTitle:s,title:d}=e,[c,l]=D.useState(),[p,g]=D.useState(),[w,u]=D.useState(!1);ee((async()=>{null!=p&&p.width&&null!=p&&p.height&&n.current&&t.current&&J(n.current,t.current,p,1)}),100,[p,1]);return m.jsxs(m.Fragment,{children:[m.jsxs(X,{sx:{padding:3},children:[m.jsx(L,{children:d}),m.jsx("br",{}),m.jsx(L,{variant:"quiet",children:s})]}),m.jsxs($,{sx:{borderBottom:"2px dashed silver",borderTop:"2px dashed silver",padding:3},children:[w&&m.jsx(X,{sx:{flex:1},children:m.jsx(T,{label:"Uploading image now. It'll only a sec. Hopefully."})}),!w&&!!h&&m.jsx($,{sx:{flex:1,justifyContent:"center"},children:m.jsx(Q,{aspect:r,crop:c,minHeight:100,onChange:(e,t)=>l(t),onComplete:e=>g(e),children:m.jsx("img",{alt:"Crop me","data-testid":"cropImage",onLoad:function(e){const{width:t,height:n}=e.currentTarget;l(Z(t,n,r))},ref:n,src:h})})})]}),m.jsx(X,{sx:{padding:3},children:m.jsx(j,{type:"button",onClick:async function(){u(!0);const e=n.current,r=t.current;if(!e||!r||!p)throw new Error("Crop canvas does not exist");const a=e.naturalWidth/e.width,h=e.naturalHeight/e.height,s=new OffscreenCanvas(p.width*a,p.height*h),d=s.getContext("2d");if(!d)throw new Error("No 2d context");d.drawImage(r,0,0,r.width,r.height,0,0,s.width,s.height);const c=await s.convertToBlob({type:"image/jpeg",quality:90});i.current&&URL.revokeObjectURL(i.current),i.current=URL.createObjectURL(c),await o(i.current),u(!1)},disabled:w,children:a})})]})};try{B.displayName="ImageCrop",B.__docgenInfo={description:"",displayName:"ImageCrop",props:{aspect:{defaultValue:null,description:"",name:"aspect",required:!0,type:{name:"number"}},callbackFn:{defaultValue:null,description:"",name:"callbackFn",required:!0,type:{name:"(imgSrc: string) => Promise"}},callbackLabel:{defaultValue:null,description:"",name:"callbackLabel",required:!0,type:{name:"string"}},imgSrc:{defaultValue:null,description:"",name:"imgSrc",required:!0,type:{name:"string"}},subTitle:{defaultValue:null,description:"",name:"subTitle",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}}}}}catch{}export{B as I}; \ No newline at end of file +import{j as m}from"./jsx-runtime-CexXSJP5.js";import{r as D,a as p}from"./index-BP8_t0zE.js";import{B as j}from"./Button-1qf_V-Zv.js";import{L as T}from"./Loader-DmqUoSY8.js";import{a as X,T as L,F as $}from"./theme-ui-components.esm-DCiJ1mMX.js";const S={x:0,y:0,width:0,height:0,unit:"px"},_=(e,t,n)=>Math.min(Math.max(e,t),n),F=(...e)=>e.filter((e=>e&&"string"==typeof e)).join(" "),A=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function z(e,t,n,i){const r=v(e,n,i);return e.width&&(r.height=r.width/t),e.height&&(r.width=r.height*t),r.y+r.height>i&&(r.height=i-r.y,r.width=r.height*t),r.x+r.width>n&&(r.width=n-r.x,r.height=r.width/t),"%"===e.unit?E(r,n,i):r}function W(e,t,n){const i=v(e,t,n);return i.x=(t-i.width)/2,i.y=(n-i.height)/2,"%"===e.unit?E(i,t,n):i}function E(e,t,n){return"%"===e.unit?{...S,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function v(e,t,n){return e.unit?"px"===e.unit?{...S,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...S,...e,unit:"px"}}function K(e,t,n,i,r,o=0,a=0,h=i,s=r){const d={...e};let c=Math.min(o,i),l=Math.min(a,r),p=Math.min(h,i),g=Math.min(s,r);t&&(t>1?(c=a?a*t:c,l=c/t,p=h*t):(l=o?o/t:l,c=l*t,g=s/t)),d.y<0&&(d.height=Math.max(d.height+d.y,l),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);const w=i-(d.x+d.width);w<0&&(d.x=Math.min(d.x,i-c),d.width+=w);const u=r-(d.y+d.height);if(u<0&&(d.y=Math.min(d.y,r-l),d.height+=u),d.widthp&&(("sw"===n||"nw"==n)&&(d.x-=p-d.width),d.width=p),d.height>g&&(("nw"===n||"ne"==n)&&(d.y-=g-d.height),d.height=g),t){const e=d.width/d.height;if(et){const e=Math.max(d.height*t,c);("sw"===n||"nw"==n)&&(d.x-=e-d.width),d.width=e}}return d}function q(e,t,n,i){const r={...e};return"ArrowLeft"===t?"nw"===i?(r.x-=n,r.y-=n,r.width+=n,r.height+=n):"w"===i?(r.x-=n,r.width+=n):"sw"===i?(r.x-=n,r.width+=n,r.height+=n):"ne"===i?(r.y+=n,r.width-=n,r.height-=n):"e"===i?r.width-=n:"se"===i&&(r.width-=n,r.height-=n):"ArrowRight"===t&&("nw"===i?(r.x+=n,r.y+=n,r.width-=n,r.height-=n):"w"===i?(r.x+=n,r.width-=n):"sw"===i?(r.x+=n,r.width-=n,r.height-=n):"ne"===i?(r.y-=n,r.width+=n,r.height+=n):"e"===i?r.width+=n:"se"===i&&(r.width+=n,r.height+=n)),"ArrowUp"===t?"nw"===i?(r.x-=n,r.y-=n,r.width+=n,r.height+=n):"n"===i?(r.y-=n,r.height+=n):"ne"===i?(r.y-=n,r.width+=n,r.height+=n):"sw"===i?(r.x+=n,r.width-=n,r.height-=n):"s"===i?r.height-=n:"se"===i&&(r.width-=n,r.height-=n):"ArrowDown"===t&&("nw"===i?(r.x+=n,r.y+=n,r.width-=n,r.height-=n):"n"===i?(r.y+=n,r.height-=n):"ne"===i?(r.y+=n,r.width-=n,r.height-=n):"sw"===i?(r.x-=n,r.width+=n,r.height+=n):"s"===i?r.height+=n:"se"===i&&(r.width+=n,r.height+=n)),r}const k={capture:!0,passive:!1};let V=0;const M=class e extends D.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=D.createRef(),this.mediaRef=D.createRef(),this.initChangeCalled=!1,this.instanceId="rc-"+V++,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,i=this.getBox();if(!t)return;const r=v(t,i.width,i.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=e.target.dataset.ord,a=!!o;let h=e.clientX,s=e.clientY,d=r.x,c=r.y;if(o){const t=e.clientX-i.x,n=e.clientY-i.y;let a=0,l=0;"ne"===o||"e"==o?(a=t-(r.x+r.width),l=n-r.y,d=r.x,c=r.y+r.height):"se"===o||"s"===o?(a=t-(r.x+r.width),l=n-(r.y+r.height),d=r.x,c=r.y):"sw"===o||"w"==o?(a=t-r.x,l=n-(r.y+r.height),d=r.x+r.width,c=r.y):("nw"===o||"n"==o)&&(a=t-r.x,l=n-r.y,d=r.x+r.width,c=r.y+r.height),h=d+i.x+a,s=c+i.y+l}this.evData={startClientX:h,startClientY:s,startCropX:d,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:n,locked:i,keepSelection:r,onChange:o}=this.props,a=this.getBox();if(n||i||r&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=e.clientX-a.x,s=e.clientY-a.y,d={unit:"px",x:h,y:s,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:h,startCropY:s,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(v(d,a.width,a.height),E(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:n,onChange:i,onDragStart:r}=this.props,o=this.getBox();if(n||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(e));const{evData:a}=this;let h;a.clientX=e.clientX,a.clientY=e.clientY,h=a.isResize?this.resizeCrop():this.dragCrop(),A(t,h)||i(v(h,o.width,o.height),E(h,o.width,o.height))},this.onComponentKeyDown=t=>{const{crop:n,disabled:i,onChange:r,onComplete:o}=this.props;if(i)return;const a=t.key;let h=!1;if(!n)return;const s=this.getBox(),d=this.makePixelCrop(s),c=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===a?(d.x-=c,h=!0):"ArrowRight"===a?(d.x+=c,h=!0):"ArrowUp"===a?(d.y-=c,h=!0):"ArrowDown"===a&&(d.y+=c,h=!0),h){t.cancelable&&t.preventDefault(),d.x=_(d.x,0,s.width-d.width),d.y=_(d.y,0,s.height-d.height);const e=v(d,s.width,s.height),n=E(d,s.width,s.height);r(e,n),o&&o(e,n)}},this.onHandlerKeyDown=(t,n)=>{const{aspect:i=0,crop:r,disabled:o,minWidth:a=0,minHeight:h=0,maxWidth:s,maxHeight:d,onChange:c,onComplete:l}=this.props,p=this.getBox();if(o||!r)return;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();const g=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,w=K(q(v(r,p.width,p.height),t.key,g,n),i,n,p.width,p.height,a,h,s,d);if(!A(r,w)){const e=E(w,p.width,p.height);c(w,e),l&&l(w,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:n,onComplete:i,onDragEnd:r}=this.props,o=this.getBox();this.unbindDocMove(),!n&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(e),i&&i(v(t,o.width,o.height),E(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=()=>{var e;null==(e=this.componentRef.current)||e.scrollTo(0,0)}}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:t,y:n,width:i,height:r}=e.getBoundingClientRect();return{x:t,y:n,width:i,height:r}}componentDidUpdate(e){const{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){const{width:e,height:i}=this.getBox();e&&i&&n(v(t,e,i),E(t,e,i))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,k),this.document.addEventListener("pointerup",this.onDocPointerDone,k),this.document.addEventListener("pointercancel",this.onDocPointerDone,k),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,k),this.document.removeEventListener("pointerup",this.onDocPointerDone,k),this.document.removeEventListener("pointercancel",this.onDocPointerDone,k),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),i=e.clientX-e.startClientX,r=e.clientY-e.startClientY;return n.x=_(e.startCropX+i,0,t.width-n.width),n.y=_(e.startCropY+r,0,t.height-n.height),n}getPointRegion(e,t,n,i){const{evData:r}=this,o=r.clientX-e.x,a=r.clientY-e.y;let h,s;return h=i&&t?"nw"===t||"n"===t||"ne"===t:a1?r?[r,r/t]:[o*t,o]:o?[o*t,o]:[r,r/t]:[r,o]}resizeCrop(){const{evData:t}=this,{aspect:n=0,maxWidth:i,maxHeight:r}=this.props,o=this.getBox(),[a,h]=this.resolveMinDimensions(o,n,this.props.minWidth,this.props.minHeight);let s=this.makePixelCrop(o);const d=this.getPointRegion(o,t.ord,a,h),c=t.ord||d;let l=t.clientX-t.startClientX,p=t.clientY-t.startClientY;(a&&"nw"===c||"w"===c||"sw"===c)&&(l=Math.min(l,-a)),(h&&"nw"===c||"n"===c||"ne"===c)&&(p=Math.min(p,-h));const g={unit:"px",x:0,y:0,width:0,height:0};"ne"===d?(g.x=t.startCropX,g.width=l,n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(p),g.y=t.startCropY-g.height)):"se"===d?(g.x=t.startCropX,g.y=t.startCropY,g.width=l,g.height=n?g.width/n:p):"sw"===d?(g.x=t.startCropX+l,g.y=t.startCropY,g.width=Math.abs(l),g.height=n?g.width/n:p):"nw"===d&&(g.x=t.startCropX+l,g.width=Math.abs(l),n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(p),g.y=t.startCropY+p));const w=K(g,n,d,o.width,o.height,a,h,i,r);return n||e.xyOrds.indexOf(c)>-1?s=w:e.xOrds.indexOf(c)>-1?(s.x=w.x,s.width=w.width):e.yOrds.indexOf(c)>-1&&(s.y=w.y,s.height=w.height),s.x=_(s.x,0,o.width-s.width),s.y=_(s.y,0,o.height-s.height),s}renderCropSelection(){const{ariaLabels:t=e.defaultProps.ariaLabels,disabled:n,locked:i,renderSelectionAddon:r,ruleOfThirds:o,crop:a}=this.props,h=this.getCropStyle();if(a)return p.createElement("div",{style:h,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!i&&p.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},p.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),r&&p.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},r(this.state)),o&&p.createElement(p.Fragment,null,p.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),p.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return v({...S,...this.props.crop||{}},e.width,e.height)}render(){const{aspect:e,children:t,circularCrop:n,className:i,crop:r,disabled:o,locked:a,style:h,ruleOfThirds:s}=this.props,{cropIsActive:d,newCropIsBeingDrawn:c}=this.state,l=r?this.renderCropSelection():null,g=F("ReactCrop",i,d&&"ReactCrop--active",o&&"ReactCrop--disabled",a&&"ReactCrop--locked",c&&"ReactCrop--new-crop",r&&e&&"ReactCrop--fixed-aspect",r&&n&&"ReactCrop--circular-crop",r&&s&&"ReactCrop--rule-of-thirds",!this.dragStarted&&r&&!r.width&&!r.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return p.createElement("div",{ref:this.componentRef,className:g,style:h},p.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),r?p.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},p.createElement("defs",null,p.createElement("mask",{id:`hole-${this.instanceId}`},p.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?p.createElement("ellipse",{cx:`${r.x+r.width/2}${r.unit}`,cy:`${r.y+r.height/2}${r.unit}`,rx:`${r.width/2}${r.unit}`,ry:`${r.height/2}${r.unit}`,fill:"black"}):p.createElement("rect",{x:`${r.x}${r.unit}`,y:`${r.y}${r.unit}`,width:`${r.width}${r.unit}`,height:`${r.height}${r.unit}`,fill:"black"}))),p.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,l)}};M.xOrds=["e","w"],M.yOrds=["n","s"],M.xyOrds=["nw","ne","se","sw"],M.nudgeStep=1,M.nudgeStepMedium=10,M.nudgeStepLarge=100,M.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};let Q=M;const G=Math.PI/180;async function J(e,t,n,i=1,r=0){const o=t.getContext("2d");if(!o)throw new Error("No 2d context");const a=e.naturalWidth/e.width,h=e.naturalHeight/e.height,s=window.devicePixelRatio;t.width=Math.floor(n.width*a*s),t.height=Math.floor(n.height*h*s),o.scale(s,s),o.imageSmoothingQuality="high";const d=n.x*a,c=n.y*h,l=r*G,p=e.naturalWidth/2,g=e.naturalHeight/2;o.save(),o.translate(-d,-c),o.translate(p,g),o.rotate(l),o.scale(i,i),o.translate(-p,-g),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore()}function Z(e,t,n){return W(z({unit:"%",width:90},n,e,t),e,t)}function ee(e,t,n){D.useEffect((()=>{const i=setTimeout((()=>e.apply({...n})),t);return()=>{clearTimeout(i)}}),n)}const te=90,N=1,B=e=>{const t=D.useRef(null),n=D.useRef(null),i=D.useRef(""),{aspect:r,callbackFn:o,callbackLabel:a,imgSrc:h,subTitle:s,title:d}=e,[c,l]=D.useState(),[p,g]=D.useState(),[w,u]=D.useState(!1);ee((async()=>{null!=p&&p.width&&null!=p&&p.height&&n.current&&t.current&&J(n.current,t.current,p,1)}),100,[p,1]);return m.jsxs(m.Fragment,{children:[m.jsxs(X,{sx:{padding:3},children:[m.jsx(L,{children:d}),m.jsx("br",{}),m.jsx(L,{variant:"quiet",children:s})]}),m.jsxs($,{sx:{borderBottom:"2px dashed silver",borderTop:"2px dashed silver",padding:3},children:[w&&m.jsx(X,{sx:{flex:1},children:m.jsx(T,{label:"Uploading image now. It'll only a sec. Hopefully."})}),!w&&!!h&&m.jsx($,{sx:{flex:1,justifyContent:"center"},children:m.jsx(Q,{aspect:r,crop:c,minHeight:100,onChange:(e,t)=>l(t),onComplete:e=>g(e),children:m.jsx("img",{alt:"Crop me","data-testid":"cropImage",onLoad:function(e){const{width:t,height:n}=e.currentTarget;l(Z(t,n,r))},ref:n,src:h})})})]}),m.jsx(X,{sx:{padding:3},children:m.jsx(j,{type:"button",onClick:async function(){u(!0);const e=n.current,r=t.current;if(!e||!r||!p)throw new Error("Crop canvas does not exist");const a=e.naturalWidth/e.width,h=e.naturalHeight/e.height,s=new OffscreenCanvas(p.width*a,p.height*h),d=s.getContext("2d");if(!d)throw new Error("No 2d context");d.drawImage(r,0,0,r.width,r.height,0,0,s.width,s.height);const c=await s.convertToBlob({type:"image/jpeg",quality:90});i.current&&URL.revokeObjectURL(i.current),i.current=URL.createObjectURL(c),await o(i.current),u(!1)},disabled:w,children:a})})]})};try{B.displayName="ImageCrop",B.__docgenInfo={description:"",displayName:"ImageCrop",props:{aspect:{defaultValue:null,description:"",name:"aspect",required:!0,type:{name:"number"}},callbackFn:{defaultValue:null,description:"",name:"callbackFn",required:!0,type:{name:"(imgSrc: string) => Promise"}},callbackLabel:{defaultValue:null,description:"",name:"callbackLabel",required:!0,type:{name:"string"}},imgSrc:{defaultValue:null,description:"",name:"imgSrc",required:!0,type:{name:"string"}},subTitle:{defaultValue:null,description:"",name:"subTitle",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}}}}}catch{}export{B as I}; \ No newline at end of file diff --git a/storybook-static/assets/ImageCrop.stories-DUOLW0ZZ.js b/storybook-static/assets/ImageCrop.stories-C7egeEfo.js similarity index 92% rename from storybook-static/assets/ImageCrop.stories-DUOLW0ZZ.js rename to storybook-static/assets/ImageCrop.stories-C7egeEfo.js index 0434b2ba16..cbc13ea0b6 100644 --- a/storybook-static/assets/ImageCrop.stories-DUOLW0ZZ.js +++ b/storybook-static/assets/ImageCrop.stories-C7egeEfo.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as p}from"./ImageCrop-DCgV90x1.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Loader-DmqUoSY8.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./cjs-Clfm10Kj.js";const _={title:"Forms/ImageCrop",component:p},t=()=>e.jsx("div",{style:{width:"600px"},children:e.jsx(p,{aspect:1,callbackFn:()=>Promise.resolve("http://upload.path/"),callbackLabel:"Upload image",imgSrc:"https://onearmy.github.io/academy/assets/comm_badges.jpg",subTitle:"Before uploading, select how we should crop the image to fit.",title:"Select crop"})});var o,r,a;t.parameters={...t.parameters,docs:{...null==(o=t.parameters)?void 0:o.docs,source:{originalSource:'() =>
\n Promise.resolve(\'http://upload.path/\')} callbackLabel="Upload image" imgSrc="https://onearmy.github.io/academy/assets/comm_badges.jpg" subTitle="Before uploading, select how we should crop the image to fit." title="Select crop" />\n
',...null==(a=null==(r=t.parameters)?void 0:r.docs)?void 0:a.source}}};const k=["Default"];export{t as Default,k as __namedExportsOrder,_ as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as p}from"./ImageCrop-B_XHY1rW.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Loader-DmqUoSY8.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./cjs-Clfm10Kj.js";const _={title:"Forms/ImageCrop",component:p},t=()=>e.jsx("div",{style:{width:"600px"},children:e.jsx(p,{aspect:1,callbackFn:()=>Promise.resolve("http://upload.path/"),callbackLabel:"Upload image",imgSrc:"https://onearmy.github.io/academy/assets/comm_badges.jpg",subTitle:"Before uploading, select how we should crop the image to fit.",title:"Select crop"})});var o,r,a;t.parameters={...t.parameters,docs:{...null==(o=t.parameters)?void 0:o.docs,source:{originalSource:'() =>
\n Promise.resolve(\'http://upload.path/\')} callbackLabel="Upload image" imgSrc="https://onearmy.github.io/academy/assets/comm_badges.jpg" subTitle="Before uploading, select how we should crop the image to fit." title="Select crop" />\n
',...null==(a=null==(r=t.parameters)?void 0:r.docs)?void 0:a.source}}};const k=["Default"];export{t as Default,k as __namedExportsOrder,_ as default}; \ No newline at end of file diff --git a/storybook-static/assets/ImageGallery-DnFzFe7P.js b/storybook-static/assets/ImageGallery-_6WaFG1J.js similarity index 98% rename from storybook-static/assets/ImageGallery-DnFzFe7P.js rename to storybook-static/assets/ImageGallery-_6WaFG1J.js index 85559ec69a..38db32f0d1 100644 --- a/storybook-static/assets/ImageGallery-DnFzFe7P.js +++ b/storybook-static/assets/ImageGallery-_6WaFG1J.js @@ -1,5 +1,5 @@ -/*! For license information please see ImageGallery-DnFzFe7P.js.LICENSE.txt */ -import{_ as N}from"./iframe-BRhzNi2b.js";import{j as h}from"./jsx-runtime-CexXSJP5.js";import{r as v}from"./index-BP8_t0zE.js";import{n as A}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{I as b}from"./Icon-BoVZOGVD.js";import{a as T,F as w,I as C}from"./theme-ui-components.esm-DCiJ1mMX.js";function u(t,e,i){const s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function k(t,e,i){let s=`translate3d(${t}px,0px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function _(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}const d={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function $(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function m(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function j(t){return"function"==typeof t&&t.prototype&&t.prototype.goTo}function P(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class W{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class V{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,n,a;this._filters[t]||(this._filters[t]=[]),null===(s=this._filters[t])||void 0===s||s.push({fn:e,priority:i}),null===(n=this._filters[t])||void 0===n||n.sort(((t,e)=>t.priority-e.priority)),null===(a=this.pswp)||void 0===a||a.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter((t=>t.fn!==e))),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return null===(i=this._filters[t])||void 0===i||i.forEach((t=>{e[0]=t.fn.apply(this,e)})),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),null===(i=this._listeners[t])||void 0===i||i.push(e),null===(s=this.pswp)||void 0===s||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter((t=>e!==t))),null===(i=this.pswp)||void 0===i||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new W(t,e);return null===(i=this._listeners[t])||void 0===i||i.forEach((t=>{t.call(this,s)})),s}}class G{constructor(t,e){if(this.element=u("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(_(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=k(0,0,t/250)):_(this.element,t,e))}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class U{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=d.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new G(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=u("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=u("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(e=this.data.src)&&void 0!==e?e:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=d.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=d.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder())}onError(){this.state=d.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===d.LOADING,this)}isError(){return this.state===d.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(_(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==d.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=u("pswp__error-msg","div");i.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=u("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===d.ERROR)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||P())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!P()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder()))}}function H(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function g(t,e,i,s,n){let a=0;if(e.paddingFn)a=e.paddingFn(i,s,n)[t];else if(e.padding)a=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(a=e[i])}return Number(a)||0}function Z(t,e,i,s){return{x:e.x-g("left",t,e,i,s)-g("right",t,e,i,s),y:e.y-g("top",t,e,i,s)-g("bottom",t,e,i,s)}}const D=4e3;class q{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,a=i.y/s.y;this.fit=Math.min(1,na?n:a),this.vFill=Math.min(1,a),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>D&&(t=D/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function z(t,e,i){const s=e.createContentFromData(t,i);let n;const{options:a}=e;if(a){let o;n=new q(a,t,-1),o=e.pswp?e.pswp.viewportSize:H(a,e);const l=Z(a,o,t,i);n.update(s.width,s.height,l)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function B(t,e){const i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return z(i,e,t)}class K extends V{getNumItems(){var t;let e=0;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new U(t,this,e)}getItemData(t){var e;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const a=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",a.itemData,t)}_getGalleryDOMElements(t){var e,i;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?m(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");var s;if(n)e.msrc=n.currentSrc||n.src,e.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return z(t,this,e)}}class X extends K{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(t){if($(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const s={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,s,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,i=m(this.options.children,this.options.childSelector,t.currentTarget).findIndex((t=>t===e||t.contains(e)));return-1!==i?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=m(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const s=[],n=typeof i.pswpModule;if(j(i.pswpModule))s.push(Promise.resolve(i.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");s.push(i.pswpModule())}"function"==typeof i.openPromise&&s.push(i.openPromise()),!1!==i.preloadFirstSlide&&t>=0&&(this._preloadedContent=B(t,this));const a=++this._uid;Promise.all(s).then((t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,a)}}))}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach((t=>{var e;null===(e=this._listeners[t])||void 0===e||e.forEach((e=>{i.on(t,e)}))})),Object.keys(this._filters).forEach((t=>{var e;null===(e=this._filters[t])||void 0===e||e.forEach((e=>{i.addFilter(t,e.fn,e.priority)}))})),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),i.init()}destroy(){var t;null===(t=this.pswp)||void 0===t||t.destroy(),this.shouldOpen=!1,this._listeners={},m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)}))}}const Y=A(T)` +/*! For license information please see ImageGallery-_6WaFG1J.js.LICENSE.txt */ +import{_ as N}from"./iframe-JYjbkGI-.js";import{j as h}from"./jsx-runtime-CexXSJP5.js";import{r as v}from"./index-BP8_t0zE.js";import{n as A}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{I as b}from"./Icon-DVJa_328.js";import{a as T,F as w,I as C}from"./theme-ui-components.esm-DCiJ1mMX.js";function u(t,e,i){const s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function k(t,e,i){let s=`translate3d(${t}px,0px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function _(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}const d={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function $(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function m(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}function j(t){return"function"==typeof t&&t.prototype&&t.prototype.goTo}function P(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class W{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class V{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,n,a;this._filters[t]||(this._filters[t]=[]),null===(s=this._filters[t])||void 0===s||s.push({fn:e,priority:i}),null===(n=this._filters[t])||void 0===n||n.sort(((t,e)=>t.priority-e.priority)),null===(a=this.pswp)||void 0===a||a.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter((t=>t.fn!==e))),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return null===(i=this._filters[t])||void 0===i||i.forEach((t=>{e[0]=t.fn.apply(this,e)})),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),null===(i=this._listeners[t])||void 0===i||i.push(e),null===(s=this.pswp)||void 0===s||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter((t=>e!==t))),null===(i=this.pswp)||void 0===i||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new W(t,e);return null===(i=this._listeners[t])||void 0===i||i.forEach((t=>{t.call(this,s)})),s}}class G{constructor(t,e){if(this.element=u("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(_(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=k(0,0,t/250)):_(this.element,t,e))}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class U{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=d.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new G(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=u("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=u("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(e=this.data.src)&&void 0!==e?e:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=d.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=d.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder())}onError(){this.state=d.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===d.LOADING,this)}isError(){return this.state===d.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(_(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==d.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=u("pswp__error-msg","div");i.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=u("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===d.ERROR)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||P())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!P()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===d.LOADED||this.state===d.ERROR)&&this.removePlaceholder()))}}function H(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function g(t,e,i,s,n){let a=0;if(e.paddingFn)a=e.paddingFn(i,s,n)[t];else if(e.padding)a=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(a=e[i])}return Number(a)||0}function Z(t,e,i,s){return{x:e.x-g("left",t,e,i,s)-g("right",t,e,i,s),y:e.y-g("top",t,e,i,s)-g("bottom",t,e,i,s)}}const D=4e3;class q{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,a=i.y/s.y;this.fit=Math.min(1,na?n:a),this.vFill=Math.min(1,a),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>D&&(t=D/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function z(t,e,i){const s=e.createContentFromData(t,i);let n;const{options:a}=e;if(a){let o;n=new q(a,t,-1),o=e.pswp?e.pswp.viewportSize:H(a,e);const l=Z(a,o,t,i);n.update(s.width,s.height,l)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function B(t,e){const i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return z(i,e,t)}class K extends V{getNumItems(){var t;let e=0;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new U(t,this,e)}getItemData(t){var e;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const a=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",a.itemData,t)}_getGalleryDOMElements(t){var e,i;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?m(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");var s;if(n)e.msrc=n.currentSrc||n.src,e.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return z(t,this,e)}}class X extends K{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(t){if($(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const s={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,s,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,i=m(this.options.children,this.options.childSelector,t.currentTarget).findIndex((t=>t===e||t.contains(e)));return-1!==i?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=m(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const s=[],n=typeof i.pswpModule;if(j(i.pswpModule))s.push(Promise.resolve(i.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");s.push(i.pswpModule())}"function"==typeof i.openPromise&&s.push(i.openPromise()),!1!==i.preloadFirstSlide&&t>=0&&(this._preloadedContent=B(t,this));const a=++this._uid;Promise.all(s).then((t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,a)}}))}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach((t=>{var e;null===(e=this._listeners[t])||void 0===e||e.forEach((e=>{i.on(t,e)}))})),Object.keys(this._filters).forEach((t=>{var e;null===(e=this._filters[t])||void 0===e||e.forEach((e=>{i.addFilter(t,e.fn,e.priority)}))})),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),i.init()}destroy(){var t;null===(t=this.pswp)||void 0===t||t.destroy(),this.shouldOpen=!1,this._listeners={},m(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)}))}}const Y=A(T)` cursor: pointer; padding: 5px; overflow: hidden; diff --git a/storybook-static/assets/ImageGallery-DnFzFe7P.js.LICENSE.txt b/storybook-static/assets/ImageGallery-_6WaFG1J.js.LICENSE.txt similarity index 100% rename from storybook-static/assets/ImageGallery-DnFzFe7P.js.LICENSE.txt rename to storybook-static/assets/ImageGallery-_6WaFG1J.js.LICENSE.txt diff --git a/storybook-static/assets/ImageGallery.stories-hoGxeDiU.js b/storybook-static/assets/ImageGallery.stories-DwQZOi3v.js similarity index 95% rename from storybook-static/assets/ImageGallery.stories-hoGxeDiU.js rename to storybook-static/assets/ImageGallery.stories-DwQZOi3v.js index b14b3d84d6..e59e7aeab0 100644 --- a/storybook-static/assets/ImageGallery.stories-hoGxeDiU.js +++ b/storybook-static/assets/ImageGallery.stories-DwQZOi3v.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{I as r}from"./ImageGallery-DnFzFe7P.js";import"./index-BP8_t0zE.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./Icon-BoVZOGVD.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const O=[{full:"https://picsum.photos/id/29/1500/1000",thumb:"https://picsum.photos/id/29/150/150"},{full:"https://picsum.photos/id/50/4000/3000",thumb:"https://picsum.photos/id/50/150/150"},{full:"https://picsum.photos/id/110/800/1200",thumb:"https://picsum.photos/id/110/150/150"},{full:"https://picsum.photos/id/2/1500/1500",thumb:"https://picsum.photos/id/2/150/150"}],t=O.map(((e,s)=>({downloadUrl:e.full,contentType:"image/jpeg",fullPath:"cat.jpg",name:"cat"+s,type:"image/jpeg",size:115e3,thumbnailUrl:e.thumb,timeCreated:(new Date).toISOString(),updated:(new Date).toISOString()}))),K={title:"Layout/ImageGallery",component:r},a=e=>s.jsx(r,{images:t,...e}),o=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0}),m=e=>s.jsx(r,{images:[t[0]],...e}),p=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0,showNextPrevButton:!0}),i=e=>s.jsx(r,{images:[t[0]],...e,hideThumbnails:!0,showNextPrevButton:!0});var n,u,l,g,c,h,d,I,S,b,y,x,P,w,f,j,G,N;t.parameters={...t.parameters,docs:{...null==(n=t.parameters)?void 0:n.docs,source:{originalSource:"imageUrls.map((elt, i) => {\n return {\n downloadUrl: elt.full,\n contentType: 'image/jpeg',\n fullPath: 'cat.jpg',\n name: 'cat' + i,\n type: 'image/jpeg',\n size: 115000,\n thumbnailUrl: elt.thumb,\n timeCreated: new Date().toISOString(),\n updated: new Date().toISOString()\n };\n})",...null==(l=null==(u=t.parameters)?void 0:u.docs)?void 0:l.source}}},a.parameters={...a.parameters,docs:{...null==(g=a.parameters)?void 0:g.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(h=null==(c=a.parameters)?void 0:c.docs)?void 0:h.source}}},o.parameters={...o.parameters,docs:{...null==(d=o.parameters)?void 0:d.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(S=null==(I=o.parameters)?void 0:I.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(b=m.parameters)?void 0:b.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(x=null==(y=m.parameters)?void 0:y.docs)?void 0:x.source}}},p.parameters={...p.parameters,docs:{...null==(P=p.parameters)?void 0:P.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(f=null==(w=p.parameters)?void 0:w.docs)?void 0:f.source}}},i.parameters={...i.parameters,docs:{...null==(j=i.parameters)?void 0:j.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(N=null==(G=i.parameters)?void 0:G.docs)?void 0:N.source}}};const M=["testImages","Default","NoThumbnails","HideThumbnailForSingleImage","ShowNextPrevButtons","DoNotShowNextPrevButtons"];export{a as Default,i as DoNotShowNextPrevButtons,m as HideThumbnailForSingleImage,o as NoThumbnails,p as ShowNextPrevButtons,M as __namedExportsOrder,K as default,t as testImages}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{I as r}from"./ImageGallery-_6WaFG1J.js";import"./index-BP8_t0zE.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./Icon-DVJa_328.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const O=[{full:"https://picsum.photos/id/29/1500/1000",thumb:"https://picsum.photos/id/29/150/150"},{full:"https://picsum.photos/id/50/4000/3000",thumb:"https://picsum.photos/id/50/150/150"},{full:"https://picsum.photos/id/110/800/1200",thumb:"https://picsum.photos/id/110/150/150"},{full:"https://picsum.photos/id/2/1500/1500",thumb:"https://picsum.photos/id/2/150/150"}],t=O.map(((e,s)=>({downloadUrl:e.full,contentType:"image/jpeg",fullPath:"cat.jpg",name:"cat"+s,type:"image/jpeg",size:115e3,thumbnailUrl:e.thumb,timeCreated:(new Date).toISOString(),updated:(new Date).toISOString()}))),K={title:"Layout/ImageGallery",component:r},a=e=>s.jsx(r,{images:t,...e}),o=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0}),m=e=>s.jsx(r,{images:[t[0]],...e}),p=e=>s.jsx(r,{images:t,...e,hideThumbnails:!0,showNextPrevButton:!0}),i=e=>s.jsx(r,{images:[t[0]],...e,hideThumbnails:!0,showNextPrevButton:!0});var n,u,l,g,c,h,d,I,S,b,y,x,P,w,f,j,G,N;t.parameters={...t.parameters,docs:{...null==(n=t.parameters)?void 0:n.docs,source:{originalSource:"imageUrls.map((elt, i) => {\n return {\n downloadUrl: elt.full,\n contentType: 'image/jpeg',\n fullPath: 'cat.jpg',\n name: 'cat' + i,\n type: 'image/jpeg',\n size: 115000,\n thumbnailUrl: elt.thumb,\n timeCreated: new Date().toISOString(),\n updated: new Date().toISOString()\n };\n})",...null==(l=null==(u=t.parameters)?void 0:u.docs)?void 0:l.source}}},a.parameters={...a.parameters,docs:{...null==(g=a.parameters)?void 0:g.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(h=null==(c=a.parameters)?void 0:c.docs)?void 0:h.source}}},o.parameters={...o.parameters,docs:{...null==(d=o.parameters)?void 0:d.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(S=null==(I=o.parameters)?void 0:I.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(b=m.parameters)?void 0:b.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(x=null==(y=m.parameters)?void 0:y.docs)?void 0:x.source}}},p.parameters={...p.parameters,docs:{...null==(P=p.parameters)?void 0:P.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(f=null==(w=p.parameters)?void 0:w.docs)?void 0:f.source}}},i.parameters={...i.parameters,docs:{...null==(j=i.parameters)?void 0:j.docs,source:{originalSource:"(props: Omit) => {\n return ;\n}",...null==(N=null==(G=i.parameters)?void 0:G.docs)?void 0:N.source}}};const M=["testImages","Default","NoThumbnails","HideThumbnailForSingleImage","ShowNextPrevButtons","DoNotShowNextPrevButtons"];export{a as Default,i as DoNotShowNextPrevButtons,m as HideThumbnailForSingleImage,o as NoThumbnails,p as ShowNextPrevButtons,M as __namedExportsOrder,K as default,t as testImages}; \ No newline at end of file diff --git a/storybook-static/assets/Kaltura-Cf8iZ543.js b/storybook-static/assets/Kaltura-Bp138jKL.js similarity index 97% rename from storybook-static/assets/Kaltura-Cf8iZ543.js rename to storybook-static/assets/Kaltura-Bp138jKL.js index 0cbd8b360d..ebcdf4ff0f 100644 --- a/storybook-static/assets/Kaltura-Cf8iZ543.js +++ b/storybook-static/assets/Kaltura-Bp138jKL.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-BP8_t0zE.js";import{u as _,p as m}from"./VideoPlayer-Dmkl06KS.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!w.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},K=(e,t,r)=>(r=null!=e?g(O(e)):{},c(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(j(e,"symbol"!=typeof t?t+"":t,r),r),d={};L(d,{default:()=>i});var h=D(d),u=K(f),p=_,M=m;const S="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unmute")})),s(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(S,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.on("ready",(()=>{setTimeout((()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()}),500)})))}),this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura"),s(i,"canPlay",M.canPlay.kaltura);const E=y(h),C=P({__proto__:null,default:E},[h]);export{C as K}; \ No newline at end of file +import{g as y,r as f}from"./index-BP8_t0zE.js";import{u as _,p as m}from"./VideoPlayer-Dilqd3c4.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!w.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},K=(e,t,r)=>(r=null!=e?g(O(e)):{},c(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(j(e,"symbol"!=typeof t?t+"":t,r),r),d={};L(d,{default:()=>i});var h=D(d),u=K(f),p=_,M=m;const S="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unmute")})),s(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(S,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.on("ready",(()=>{setTimeout((()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()}),500)})))}),this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura"),s(i,"canPlay",M.canPlay.kaltura);const E=y(h),C=P({__proto__:null,default:E},[h]);export{C as K}; \ No newline at end of file diff --git a/storybook-static/assets/MapFilterList-DcOr19-7.js b/storybook-static/assets/MapFilterList-rj326Ijs.js similarity index 96% rename from storybook-static/assets/MapFilterList-DcOr19-7.js rename to storybook-static/assets/MapFilterList-rj326Ijs.js index 16910d9ad4..a001b18294 100644 --- a/storybook-static/assets/MapFilterList-DcOr19-7.js +++ b/storybook-static/assets/MapFilterList-rj326Ijs.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as C}from"./Button-B7QBvkxh.js";import{B as F}from"./ButtonIcon-BjD0tDRb.js";import{M as _}from"./MemberBadge-DaB6gu8F.js";import{C as v}from"./CardButton-UFEWOkeB.js";import{F as a,H as j,T as c}from"./theme-ui-components.esm-DCiJ1mMX.js";const d=i=>{const{active:t,onClick:l,children:a,filterType:r,sx:n}=i;return e.jsx(v,{"data-cy":`MapFilterListItem-${r}${t?"-active":""}`,onClick:l,extrastyles:{display:"flex",maxWidth:["100%","49%"],width:"500px",flexDirection:"row",backgroundColor:"offWhite",padding:1,alignItems:"center",gap:2,...t?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"offWhite",":hover":{borderColor:"offWhite"}},...n},children:a})};try{d.displayName="MapFilterListItem",d.__docgenInfo={description:"",displayName:"MapFilterListItem",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},filterType:{defaultValue:null,description:"",name:"filterType",required:!0,type:{name:"string"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}const u=({children:i})=>e.jsx(a,{as:"ul","data-cy":"MapFilterList",sx:{listStyle:"none",flexWrap:"wrap",gap:2,flexDirection:"row",padding:0},children:i});try{u.displayName="MapFilterListWrapper",u.__docgenInfo={description:"",displayName:"MapFilterListWrapper",props:{}}}catch{}const g=i=>{const{activeFilters:t,availableFilters:l,onClose:r,onFilterChange:n,pinCount:o}=i,s=l.filter((({filterType:e})=>"profileType"===e)),p=l.filter((({filterType:e})=>"profileTag"===e)),m=e=>!!t.find((i=>i.label===e)),f=`Show ${o} result${1===o?"":"s"}`;return e.jsxs(a,{"data-cy":"MapFilterList",sx:{flexDirection:"column",position:"relative",gap:4},children:[e.jsxs(a,{sx:{alignItems:"center",gap:2,justifyContent:"space-between"},children:[e.jsx(j,{as:"h3",variant:"small",children:"So what are you looking for?"}),e.jsx(F,{"data-cy":"MapFilterList-CloseButton",icon:"close",onClick:()=>r(),sx:{paddingRight:3,paddingLeft:2,border:"none"}})]}),s.length>0&&e.jsxs(a,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(c,{children:"Profiles:"}),e.jsx(u,{children:s.map(((i,t)=>e.jsxs(d,{active:m(i.label),onClick:()=>n(i),filterType:"profile",children:[e.jsx(_,{size:30,profileType:i._id}),e.jsx(c,{variant:"quiet",sx:{fontSize:1},children:i.label})]},t)))})]}),p.length>0&&e.jsxs(a,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(c,{children:"Activities:"}),e.jsx(u,{children:p.map(((i,t)=>e.jsx(d,{active:m(i.label),onClick:()=>n(i),sx:{maxWidth:"auto",width:"auto"},filterType:"tag",children:e.jsx(c,{variant:"quiet",sx:{fontSize:1},children:i.label})},t)))})]}),e.jsx(C,{"data-cy":"MapFilterList-ShowResultsButton",icon:"sliders",onClick:()=>r(),sx:{alignSelf:"flex-start"},children:f})]})};try{g.displayName="MapFilterList",g.__docgenInfo={description:"",displayName:"MapFilterList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}},pinCount:{defaultValue:null,description:"",name:"pinCount",required:!0,type:{name:"number"}}}}}catch{}export{g as M}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as C}from"./Button-1qf_V-Zv.js";import{B as F}from"./ButtonIcon-DLFqXCZb.js";import{M as _}from"./MemberBadge-BFCUvfGJ.js";import{C as v}from"./CardButton-UFEWOkeB.js";import{F as a,H as j,T as c}from"./theme-ui-components.esm-DCiJ1mMX.js";const d=i=>{const{active:t,onClick:l,children:a,filterType:r,sx:n}=i;return e.jsx(v,{"data-cy":`MapFilterListItem-${r}${t?"-active":""}`,onClick:l,extrastyles:{display:"flex",maxWidth:["100%","49%"],width:"500px",flexDirection:"row",backgroundColor:"offWhite",padding:1,alignItems:"center",gap:2,...t?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"offWhite",":hover":{borderColor:"offWhite"}},...n},children:a})};try{d.displayName="MapFilterListItem",d.__docgenInfo={description:"",displayName:"MapFilterListItem",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},filterType:{defaultValue:null,description:"",name:"filterType",required:!0,type:{name:"string"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}const u=({children:i})=>e.jsx(a,{as:"ul","data-cy":"MapFilterList",sx:{listStyle:"none",flexWrap:"wrap",gap:2,flexDirection:"row",padding:0},children:i});try{u.displayName="MapFilterListWrapper",u.__docgenInfo={description:"",displayName:"MapFilterListWrapper",props:{}}}catch{}const g=i=>{const{activeFilters:t,availableFilters:l,onClose:r,onFilterChange:n,pinCount:o}=i,s=l.filter((({filterType:e})=>"profileType"===e)),p=l.filter((({filterType:e})=>"profileTag"===e)),m=e=>!!t.find((i=>i.label===e)),f=`Show ${o} result${1===o?"":"s"}`;return e.jsxs(a,{"data-cy":"MapFilterList",sx:{flexDirection:"column",position:"relative",gap:4},children:[e.jsxs(a,{sx:{alignItems:"center",gap:2,justifyContent:"space-between"},children:[e.jsx(j,{as:"h3",variant:"small",children:"So what are you looking for?"}),e.jsx(F,{"data-cy":"MapFilterList-CloseButton",icon:"close",onClick:()=>r(),sx:{paddingRight:3,paddingLeft:2,border:"none"}})]}),s.length>0&&e.jsxs(a,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(c,{children:"Profiles:"}),e.jsx(u,{children:s.map(((i,t)=>e.jsxs(d,{active:m(i.label),onClick:()=>n(i),filterType:"profile",children:[e.jsx(_,{size:30,profileType:i._id}),e.jsx(c,{variant:"quiet",sx:{fontSize:1},children:i.label})]},t)))})]}),p.length>0&&e.jsxs(a,{sx:{gap:1,flexDirection:"column"},children:[e.jsx(c,{children:"Activities:"}),e.jsx(u,{children:p.map(((i,t)=>e.jsx(d,{active:m(i.label),onClick:()=>n(i),sx:{maxWidth:"auto",width:"auto"},filterType:"tag",children:e.jsx(c,{variant:"quiet",sx:{fontSize:1},children:i.label})},t)))})]}),e.jsx(C,{"data-cy":"MapFilterList-ShowResultsButton",icon:"sliders",onClick:()=>r(),sx:{alignSelf:"flex-start"},children:f})]})};try{g.displayName="MapFilterList",g.__docgenInfo={description:"",displayName:"MapFilterList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}},pinCount:{defaultValue:null,description:"",name:"pinCount",required:!0,type:{name:"number"}}}}}catch{}export{g as M}; \ No newline at end of file diff --git a/storybook-static/assets/MapFilterList.stories-DjB66tPY.js b/storybook-static/assets/MapFilterList.stories-BvuYvNVD.js similarity index 89% rename from storybook-static/assets/MapFilterList.stories-DjB66tPY.js rename to storybook-static/assets/MapFilterList.stories-BvuYvNVD.js index 078c9a6a77..08e72ed55d 100644 --- a/storybook-static/assets/MapFilterList.stories-DjB66tPY.js +++ b/storybook-static/assets/MapFilterList.stories-BvuYvNVD.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{M as l}from"./MapFilterList-DcOr19-7.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonIcon-BjD0tDRb.js";import"./MemberBadge-DaB6gu8F.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./CardButton-UFEWOkeB.js";const E={title:"Components/MapFilterList",component:l},n=[{_id:"workspace",filterType:"profileType",label:"Workspace"},{_id:"machine-builder",filterType:"profileType",label:"Machine Builder"},{_id:"community-builder",filterType:"profileType",label:"Community Point"},{_id:"collection-point",filterType:"profileType",label:"Collection Point"},{_id:"space",filterType:"profileType",label:"Space"},{_id:"member",filterType:"profileType",label:"Want to get started"},{_id:"shredder",filterType:"workspaceType",label:"Shredder"},{_id:"sheetpress",filterType:"workspaceType",label:"Sheetpress"},{_id:"extrusion",filterType:"workspaceType",label:"Extrusion"},{_id:"injection",filterType:"workspaceType",label:"Injection"},{_id:"mix",filterType:"workspaceType",label:"Mix"},{_id:"tag1",filterType:"profileTag",label:"Tag 1"},{_id:"tag2",filterType:"profileTag",label:"Tag 2"},{_id:"tag3",filterType:"profileTag",label:"Tag 3"}],e=()=>s.jsx(l,{activeFilters:[],availableFilters:n,onFilterChange:()=>{},onClose:()=>{},pinCount:7});var i,t,r;e.parameters={...e.parameters,docs:{...null==(i=e.parameters)?void 0:i.docs,source:{originalSource:"() => {\n const activeFilters = [] as MapFilterOptionsList;\n const onClose = () => {\n null;\n };\n const onFilterChange = () => {\n null;\n };\n return ;\n}",...null==(r=null==(t=e.parameters)?void 0:t.docs)?void 0:r.source}}};const D=["Default"];export{e as Default,D as __namedExportsOrder,E as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{M as l}from"./MapFilterList-rj326Ijs.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonIcon-DLFqXCZb.js";import"./MemberBadge-BFCUvfGJ.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./CardButton-UFEWOkeB.js";const E={title:"Components/MapFilterList",component:l},n=[{_id:"workspace",filterType:"profileType",label:"Workspace"},{_id:"machine-builder",filterType:"profileType",label:"Machine Builder"},{_id:"community-builder",filterType:"profileType",label:"Community Point"},{_id:"collection-point",filterType:"profileType",label:"Collection Point"},{_id:"space",filterType:"profileType",label:"Space"},{_id:"member",filterType:"profileType",label:"Want to get started"},{_id:"shredder",filterType:"workspaceType",label:"Shredder"},{_id:"sheetpress",filterType:"workspaceType",label:"Sheetpress"},{_id:"extrusion",filterType:"workspaceType",label:"Extrusion"},{_id:"injection",filterType:"workspaceType",label:"Injection"},{_id:"mix",filterType:"workspaceType",label:"Mix"},{_id:"tag1",filterType:"profileTag",label:"Tag 1"},{_id:"tag2",filterType:"profileTag",label:"Tag 2"},{_id:"tag3",filterType:"profileTag",label:"Tag 3"}],e=()=>s.jsx(l,{activeFilters:[],availableFilters:n,onFilterChange:()=>{},onClose:()=>{},pinCount:7});var i,t,r;e.parameters={...e.parameters,docs:{...null==(i=e.parameters)?void 0:i.docs,source:{originalSource:"() => {\n const activeFilters = [] as MapFilterOptionsList;\n const onClose = () => {\n null;\n };\n const onFilterChange = () => {\n null;\n };\n return ;\n}",...null==(r=null==(t=e.parameters)?void 0:t.docs)?void 0:r.source}}};const D=["Default"];export{e as Default,D as __namedExportsOrder,E as default}; \ No newline at end of file diff --git a/storybook-static/assets/MapFilterProfileTypeCardList-1X6FSqZf.js b/storybook-static/assets/MapFilterProfileTypeCardList-BMZcIHDF.js similarity index 94% rename from storybook-static/assets/MapFilterProfileTypeCardList-1X6FSqZf.js rename to storybook-static/assets/MapFilterProfileTypeCardList-BMZcIHDF.js index 8f86ddb132..216bcc8785 100644 --- a/storybook-static/assets/MapFilterProfileTypeCardList-1X6FSqZf.js +++ b/storybook-static/assets/MapFilterProfileTypeCardList-BMZcIHDF.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{B as m}from"./ButtonIcon-BjD0tDRb.js";import{C as L}from"./CardButton-UFEWOkeB.js";import{M as T}from"./MemberBadge-DaB6gu8F.js";import{F as s,T as w}from"./theme-ui-components.esm-DCiJ1mMX.js";const g=e=>{const r=i.useRef(null),[l,o]=i.useState(!0),[a,n]=i.useState(!1),{activeFilters:d,availableFilters:p,onFilterChange:c}=e,f=p.filter((({filterType:e})=>"profileType"===e)),h=e=>{const t=r.current;let i=0;const l=setInterval((()=>{if(t){t.scrollLeft+=e,i+=Math.abs(e),i>=121&&clearInterval(l);const{scrollLeft:r,scrollWidth:a,clientWidth:s}=t;switch(r+s){case s:o(!0);break;case a:n(!0);break;default:o(!1),n(!1)}}}),10)};return i.useEffect((()=>{h(0)}),[]),!p||p.length<2?null:t.jsxs(s,{sx:{flexDirection:"column",position:"relative"},children:[t.jsx(s,{as:"ul","data-cy":"MapFilterProfileTypeCardList",ref:r,sx:{listStyle:"none",flexWrap:"nowrap",overflow:"hidden",paddingY:2,paddingX:4,gap:2,zIndex:1,top:"-80px",height:"auto"},children:f.map(((e,i)=>{const r=d.find((t=>t.label===e.label));return t.jsxs(L,{as:"li","data-cy":"MapListFilter"+(r?"-active":""),onClick:()=>c(e),extrastyles:{backgroundColor:"offWhite",padding:1,textAlign:"center",width:"130px",minWidth:"130px",height:"75px",flexDirection:"column",...r?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"offWhite",":hover":{borderColor:"offWhite"}}},children:[t.jsx(T,{size:30,profileType:e._id}),t.jsx("br",{}),t.jsx(w,{variant:"quiet",sx:{fontSize:1},children:e.label})]},i)}))}),f.length>3&&t.jsxs(s,{sx:{justifyContent:"space-between",zIndex:2,paddingX:2,position:"relative",top:"-62px",height:0},children:[t.jsx(m,{onClick:()=>h(-10),icon:"chevron-left",disabled:l,sx:{height:"28px",borderColor:"grey"}}),t.jsx(m,{"data-cy":"MapFilterProfileTypeCardList-ButtonRight",onClick:()=>h(10),icon:"chevron-right",disabled:a,sx:{height:"28px",borderColor:"grey"}})]})]})};try{g.displayName="MapFilterProfileTypeCardList",g.__docgenInfo={description:"",displayName:"MapFilterProfileTypeCardList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}}}}}catch{}export{g as M}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{B as m}from"./ButtonIcon-DLFqXCZb.js";import{C as L}from"./CardButton-UFEWOkeB.js";import{M as T}from"./MemberBadge-BFCUvfGJ.js";import{F as s,T as w}from"./theme-ui-components.esm-DCiJ1mMX.js";const g=e=>{const r=i.useRef(null),[l,o]=i.useState(!0),[a,n]=i.useState(!1),{activeFilters:d,availableFilters:p,onFilterChange:c}=e,f=p.filter((({filterType:e})=>"profileType"===e)),h=e=>{const t=r.current;let i=0;const l=setInterval((()=>{if(t){t.scrollLeft+=e,i+=Math.abs(e),i>=121&&clearInterval(l);const{scrollLeft:r,scrollWidth:a,clientWidth:s}=t;switch(r+s){case s:o(!0);break;case a:n(!0);break;default:o(!1),n(!1)}}}),10)};return i.useEffect((()=>{h(0)}),[]),!p||p.length<2?null:t.jsxs(s,{sx:{flexDirection:"column",position:"relative"},children:[t.jsx(s,{as:"ul","data-cy":"MapFilterProfileTypeCardList",ref:r,sx:{listStyle:"none",flexWrap:"nowrap",overflow:"hidden",paddingY:2,paddingX:4,gap:2,zIndex:1,top:"-80px",height:"auto"},children:f.map(((e,i)=>{const r=d.find((t=>t.label===e.label));return t.jsxs(L,{as:"li","data-cy":"MapListFilter"+(r?"-active":""),onClick:()=>c(e),extrastyles:{backgroundColor:"offWhite",padding:1,textAlign:"center",width:"130px",minWidth:"130px",height:"75px",flexDirection:"column",...r?{borderColor:"green",":hover":{borderColor:"green"}}:{borderColor:"offWhite",":hover":{borderColor:"offWhite"}}},children:[t.jsx(T,{size:30,profileType:e._id}),t.jsx("br",{}),t.jsx(w,{variant:"quiet",sx:{fontSize:1},children:e.label})]},i)}))}),f.length>3&&t.jsxs(s,{sx:{justifyContent:"space-between",zIndex:2,paddingX:2,position:"relative",top:"-62px",height:0},children:[t.jsx(m,{onClick:()=>h(-10),icon:"chevron-left",disabled:l,sx:{height:"28px",borderColor:"grey"}}),t.jsx(m,{"data-cy":"MapFilterProfileTypeCardList-ButtonRight",onClick:()=>h(10),icon:"chevron-right",disabled:a,sx:{height:"28px",borderColor:"grey"}})]})]})};try{g.displayName="MapFilterProfileTypeCardList",g.__docgenInfo={description:"",displayName:"MapFilterProfileTypeCardList",props:{activeFilters:{defaultValue:null,description:"",name:"activeFilters",required:!0,type:{name:"MapFilterOptionsList"}},availableFilters:{defaultValue:null,description:"",name:"availableFilters",required:!0,type:{name:"MapFilterOptionsList"}},onFilterChange:{defaultValue:null,description:"",name:"onFilterChange",required:!0,type:{name:"(filter: MapFilterOption) => void"}}}}}catch{}export{g as M}; \ No newline at end of file diff --git a/storybook-static/assets/MapFilterProfileTypeCardList.stories-BDbtqf_F.js b/storybook-static/assets/MapFilterProfileTypeCardList.stories-ddXeBtnb.js similarity index 95% rename from storybook-static/assets/MapFilterProfileTypeCardList.stories-BDbtqf_F.js rename to storybook-static/assets/MapFilterProfileTypeCardList.stories-ddXeBtnb.js index b4edf0e421..57e5e45a2e 100644 --- a/storybook-static/assets/MapFilterProfileTypeCardList.stories-BDbtqf_F.js +++ b/storybook-static/assets/MapFilterProfileTypeCardList.stories-ddXeBtnb.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{M as F}from"./MapFilterProfileTypeCardList-1X6FSqZf.js";import"./ButtonIcon-BjD0tDRb.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./CardButton-UFEWOkeB.js";import"./MemberBadge-DaB6gu8F.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";const H={title:"Map/FilterList",component:F},r=[{label:"Workspace",_id:"workspace",filterType:"ProfileType"},{label:"Machine Builder",_id:"machine-builder",filterType:"ProfileType"},{label:"Collection Point",_id:"collection-point",filterType:"ProfileType"},{label:"Want to get started",_id:"member",filterType:"ProfileType"}],a=()=>{const[e,i]=d.useState([]);return n.jsx("div",{style:{maxWidth:"500px"},children:n.jsx(F,{activeFilters:e,availableFilters:r,onFilterChange:e=>r.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))})})},p=()=>{const[e,i]=d.useState([]);return n.jsxs("div",{style:{maxWidth:"500px"},children:[n.jsx(F,{activeFilters:e,availableFilters:[r[0]],onFilterChange:e=>r.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))}),"(Shouldn't see anything, only renders for two or more)"]})},c=()=>{const[e,i]=d.useState([]);return n.jsxs("div",{style:{maxWidth:"500px"},children:[n.jsx(F,{activeFilters:e,availableFilters:[r[0],r[1]],onFilterChange:e=>r.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))}),"(No buttons rendered)"]})};var v,f,u,x,g,h,y,O,P;a.parameters={...a.parameters,docs:{...null==(v=a.parameters)?void 0:v.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
\n \n
;\n}",...null==(u=null==(f=a.parameters)?void 0:f.docs)?void 0:u.source}}},p.parameters={...p.parameters,docs:{...null==(x=p.parameters)?void 0:x.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
\n \n (Shouldn't see anything, only renders for two or more)\n
;\n}",...null==(h=null==(g=p.parameters)?void 0:g.docs)?void 0:h.source}}},c.parameters={...c.parameters,docs:{...null==(y=c.parameters)?void 0:y.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
\n \n (No buttons rendered)\n
;\n}",...null==(P=null==(O=c.parameters)?void 0:O.docs)?void 0:P.source}}};const I=["Basic","OnlyOne","OnlyTwo"];export{a as Basic,p as OnlyOne,c as OnlyTwo,I as __namedExportsOrder,H as default}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{M as F}from"./MapFilterProfileTypeCardList-BMZcIHDF.js";import"./ButtonIcon-DLFqXCZb.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./CardButton-UFEWOkeB.js";import"./MemberBadge-BFCUvfGJ.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";const H={title:"Map/FilterList",component:F},r=[{label:"Workspace",_id:"workspace",filterType:"ProfileType"},{label:"Machine Builder",_id:"machine-builder",filterType:"ProfileType"},{label:"Collection Point",_id:"collection-point",filterType:"ProfileType"},{label:"Want to get started",_id:"member",filterType:"ProfileType"}],a=()=>{const[e,i]=d.useState([]);return n.jsx("div",{style:{maxWidth:"500px"},children:n.jsx(F,{activeFilters:e,availableFilters:r,onFilterChange:e=>r.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))})})},p=()=>{const[e,i]=d.useState([]);return n.jsxs("div",{style:{maxWidth:"500px"},children:[n.jsx(F,{activeFilters:e,availableFilters:[r[0]],onFilterChange:e=>r.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))}),"(Shouldn't see anything, only renders for two or more)"]})},c=()=>{const[e,i]=d.useState([]);return n.jsxs("div",{style:{maxWidth:"500px"},children:[n.jsx(F,{activeFilters:e,availableFilters:[r[0],r[1]],onFilterChange:e=>r.find((i=>i._id==e._id))?i((i=>i.filter((i=>i!==e)))):i((i=>[...i,e]))}),"(No buttons rendered)"]})};var v,f,u,x,g,h,y,O,P;a.parameters={...a.parameters,docs:{...null==(v=a.parameters)?void 0:v.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
\n \n
;\n}",...null==(u=null==(f=a.parameters)?void 0:f.docs)?void 0:u.source}}},p.parameters={...p.parameters,docs:{...null==(x=p.parameters)?void 0:x.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
\n \n (Shouldn't see anything, only renders for two or more)\n
;\n}",...null==(h=null==(g=p.parameters)?void 0:g.docs)?void 0:h.source}}},c.parameters={...c.parameters,docs:{...null==(y=c.parameters)?void 0:y.docs,source:{originalSource:"() => {\n const [activeFilters, setActiveFilters] = useState([]);\n const onFilterChange = (option: MapFilterOption) => {\n const isFilterPresent = !!availableFilters.find(pinFilter => pinFilter._id == option._id);\n if (isFilterPresent) {\n return setActiveFilters(filter => filter.filter(existingOption => existingOption !== option));\n }\n return setActiveFilters(existingOptions => [...existingOptions, option]);\n };\n return
\n \n (No buttons rendered)\n
;\n}",...null==(P=null==(O=c.parameters)?void 0:O.docs)?void 0:P.source}}};const I=["Basic","OnlyOne","OnlyTwo"];export{a as Basic,p as OnlyOne,c as OnlyTwo,I as __namedExportsOrder,H as default}; \ No newline at end of file diff --git a/storybook-static/assets/MapWithPin.client-B3vCTPau.js b/storybook-static/assets/MapWithPin.client-mWMy-bbS.js similarity index 96% rename from storybook-static/assets/MapWithPin.client-B3vCTPau.js rename to storybook-static/assets/MapWithPin.client-mWMy-bbS.js index 5c8f15c7e7..b37dde52ac 100644 --- a/storybook-static/assets/MapWithPin.client-B3vCTPau.js +++ b/storybook-static/assets/MapWithPin.client-mWMy-bbS.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as c}from"./index-BP8_t0zE.js";import{B as E}from"./Button-B7QBvkxh.js";import{M as C}from"./Map.client-D7Zd9Rir.js";import{O as M}from"./OsmGeocoding-Dk6lLoXi.js";import{M as j}from"./MapPin.client-Ln2WLe_W.js";import{_ as d}from"./inheritsLoose-CdQPfY07.js";import{w as b,l as v}from"./MapLayer-CeGLoV_-.js";import{a as _}from"./setPrototypeOf-NYsvoNVB.js";import{_ as k}from"./defineProperty-Dr9G4DxF.js";import{F as m,A as P,T as I,a as U}from"./theme-ui-components.esm-DCiJ1mMX.js";var q=function(e){function t(t){var n;return n=e.call(this,t)||this,k(_(n),"leafletElement",void 0),n.leafletElement=n.createLeafletElement(n.props),n}d(t,e);var n=t.prototype;return n.createLeafletElement=function(e){throw new Error("createLeafletElement() must be implemented")},n.updateLeafletElement=function(e,t){t.position!==e.position&&this.leafletElement.setPosition(t.position)},n.componentDidMount=function(){this.leafletElement.addTo(this.props.leaflet.map)},n.componentDidUpdate=function(e){this.updateLeafletElement(e,this.props)},n.componentWillUnmount=function(){this.leafletElement.remove()},n.render=function(){return null},t}(c.Component),w=function(e){function t(){return e.apply(this,arguments)||this}return d(t,e),t.prototype.createLeafletElement=function(e){return new v.Control.Zoom(e)},t}(q);const z=b(w),D="Use my current location",V="To move your pin, grab it to move it or double click where you want it to go.",u=e=>{const[t,o]=c.useState(e.zoom||1),[i,a]=c.useState(e.center||[e.position.lat,e.position.lng]),{mapRef:r,position:l,markerIcon:s,onClickMapPin:p,popup:u}=e,d=e.hasUserLocation||!1,f=e.updatePosition||function(){};return n.jsxs(m,{sx:{flexDirection:"column",gap:2},children:[n.jsx(P,{variant:"info",sx:{marginTop:2},children:n.jsx(I,{sx:{fontSize:1},children:V})}),n.jsxs("div",{style:{position:"relative",borderRadius:6,overflow:"hidden"},children:[n.jsx(U,{sx:{position:"absolute",zIndex:2,padding:4,top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center"},children:n.jsxs(m,{style:{width:"280px"},children:[n.jsx(M,{callback:e=>{e.lat&&e.lon&&(f({lat:e.lat,lng:e.lon}),a([e.lat,e.lon]),o(15))},acceptLanguage:"en"}),d&&n.jsx(E,{type:"button",mx:2,onClick:e=>{e.preventDefault(),navigator.geolocation.getCurrentPosition((e=>{f({lat:e.coords.latitude,lng:e.coords.longitude}),a([e.coords.latitude,e.coords.longitude]),o(15)}),(()=>{}))},children:D})]})}),n.jsxs(C,{ref:r,className:"markercluster-map settings-page",center:i,zoom:t,zoomControl:!1,setZoom:o,ondblclick:e=>{f({...e.latlng})},doubleClickZoom:!1,style:{height:"500px",zIndex:1},children:[n.jsx(z,{position:"topleft"}),n.jsxs(n.Fragment,{children:[u,l&&n.jsx(j,{position:l,markerIcon:s,onClick:p,onDrag:e=>{e.lat&&e.lng&&f({lat:e.lat,lng:e.lng})}})]})]})]})]})};try{u.displayName="MapWithPin",u.__docgenInfo={description:"",displayName:"MapWithPin",props:{mapRef:{defaultValue:null,description:"",name:"mapRef",required:!0,type:{name:"RefObject>"}},position:{defaultValue:null,description:"",name:"position",required:!0,type:{name:"{ lat: number; lng: number; }"}},markerIcon:{defaultValue:null,description:"",name:"markerIcon",required:!1,type:{name:"DivIcon"}},updatePosition:{defaultValue:null,description:"",name:"updatePosition",required:!1,type:{name:"any"}},center:{defaultValue:null,description:"",name:"center",required:!1,type:{name:"any"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"number"}},hasUserLocation:{defaultValue:null,description:"",name:"hasUserLocation",required:!1,type:{name:"boolean"}},onClickMapPin:{defaultValue:null,description:"",name:"onClickMapPin",required:!1,type:{name:"(() => void)"}},popup:{defaultValue:null,description:"",name:"popup",required:!1,type:{name:"ReactNode"}}}}}catch{}export{u as M}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as c}from"./index-BP8_t0zE.js";import{B as E}from"./Button-1qf_V-Zv.js";import{M as C}from"./Map.client-D7Zd9Rir.js";import{O as M}from"./OsmGeocoding-DOGggMqw.js";import{M as j}from"./MapPin.client-Ln2WLe_W.js";import{_ as d}from"./inheritsLoose-CdQPfY07.js";import{w as b,l as v}from"./MapLayer-CeGLoV_-.js";import{a as _}from"./setPrototypeOf-NYsvoNVB.js";import{_ as k}from"./defineProperty-Dr9G4DxF.js";import{F as m,A as P,T as I,a as U}from"./theme-ui-components.esm-DCiJ1mMX.js";var q=function(e){function t(t){var n;return n=e.call(this,t)||this,k(_(n),"leafletElement",void 0),n.leafletElement=n.createLeafletElement(n.props),n}d(t,e);var n=t.prototype;return n.createLeafletElement=function(e){throw new Error("createLeafletElement() must be implemented")},n.updateLeafletElement=function(e,t){t.position!==e.position&&this.leafletElement.setPosition(t.position)},n.componentDidMount=function(){this.leafletElement.addTo(this.props.leaflet.map)},n.componentDidUpdate=function(e){this.updateLeafletElement(e,this.props)},n.componentWillUnmount=function(){this.leafletElement.remove()},n.render=function(){return null},t}(c.Component),w=function(e){function t(){return e.apply(this,arguments)||this}return d(t,e),t.prototype.createLeafletElement=function(e){return new v.Control.Zoom(e)},t}(q);const z=b(w),D="Use my current location",V="To move your pin, grab it to move it or double click where you want it to go.",u=e=>{const[t,o]=c.useState(e.zoom||1),[i,a]=c.useState(e.center||[e.position.lat,e.position.lng]),{mapRef:r,position:l,markerIcon:s,onClickMapPin:p,popup:u}=e,d=e.hasUserLocation||!1,f=e.updatePosition||function(){};return n.jsxs(m,{sx:{flexDirection:"column",gap:2},children:[n.jsx(P,{variant:"info",sx:{marginTop:2},children:n.jsx(I,{sx:{fontSize:1},children:V})}),n.jsxs("div",{style:{position:"relative",borderRadius:6,overflow:"hidden"},children:[n.jsx(U,{sx:{position:"absolute",zIndex:2,padding:4,top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center"},children:n.jsxs(m,{style:{width:"280px"},children:[n.jsx(M,{callback:e=>{e.lat&&e.lon&&(f({lat:e.lat,lng:e.lon}),a([e.lat,e.lon]),o(15))},acceptLanguage:"en"}),d&&n.jsx(E,{type:"button",mx:2,onClick:e=>{e.preventDefault(),navigator.geolocation.getCurrentPosition((e=>{f({lat:e.coords.latitude,lng:e.coords.longitude}),a([e.coords.latitude,e.coords.longitude]),o(15)}),(()=>{}))},children:D})]})}),n.jsxs(C,{ref:r,className:"markercluster-map settings-page",center:i,zoom:t,zoomControl:!1,setZoom:o,ondblclick:e=>{f({...e.latlng})},doubleClickZoom:!1,style:{height:"500px",zIndex:1},children:[n.jsx(z,{position:"topleft"}),n.jsxs(n.Fragment,{children:[u,l&&n.jsx(j,{position:l,markerIcon:s,onClick:p,onDrag:e=>{e.lat&&e.lng&&f({lat:e.lat,lng:e.lng})}})]})]})]})]})};try{u.displayName="MapWithPin",u.__docgenInfo={description:"",displayName:"MapWithPin",props:{mapRef:{defaultValue:null,description:"",name:"mapRef",required:!0,type:{name:"RefObject>"}},position:{defaultValue:null,description:"",name:"position",required:!0,type:{name:"{ lat: number; lng: number; }"}},markerIcon:{defaultValue:null,description:"",name:"markerIcon",required:!1,type:{name:"DivIcon"}},updatePosition:{defaultValue:null,description:"",name:"updatePosition",required:!1,type:{name:"any"}},center:{defaultValue:null,description:"",name:"center",required:!1,type:{name:"any"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"number"}},hasUserLocation:{defaultValue:null,description:"",name:"hasUserLocation",required:!1,type:{name:"boolean"}},onClickMapPin:{defaultValue:null,description:"",name:"onClickMapPin",required:!1,type:{name:"(() => void)"}},popup:{defaultValue:null,description:"",name:"popup",required:!1,type:{name:"ReactNode"}}}}}catch{}export{u as M}; \ No newline at end of file diff --git a/storybook-static/assets/MapWithPin.stories-DNVx4Jgl.js b/storybook-static/assets/MapWithPin.stories-CaxCdYiS.js similarity index 74% rename from storybook-static/assets/MapWithPin.stories-DNVx4Jgl.js rename to storybook-static/assets/MapWithPin.stories-CaxCdYiS.js index f700218fa6..49aa92cec9 100644 --- a/storybook-static/assets/MapWithPin.stories-DNVx4Jgl.js +++ b/storybook-static/assets/MapWithPin.stories-CaxCdYiS.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{r as a}from"./index-BP8_t0zE.js";import{M as e}from"./MapWithPin.client-B3vCTPau.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Map.client-D7Zd9Rir.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./typeof-QjJsDpFa.js";import"./MapLayer-CeGLoV_-.js";import"./OsmGeocoding-Dk6lLoXi.js";import"./SearchField-BEwe93wL.js";import"./MapPin.client-Ln2WLe_W.js";const A={title:"Map/MapWithPin",component:e},t=()=>{const o={lat:0,lng:0},t=a.useRef(null);return s.jsx(e,{mapRef:t,position:o,updatePosition:t=>{o.lat=t.lat,o.lng=t.lng}})};var n,p,r;t.parameters={...t.parameters,docs:{...null==(n=t.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const position = {\n lat: 0,\n lng: 0\n };\n const newMapRef = useRef(null);\n return {\n position.lat = _position.lat;\n position.lng = _position.lng;\n }} />;\n}",...null==(r=null==(p=t.parameters)?void 0:p.docs)?void 0:r.source}}};const B=["Default"];export{t as Default,B as __namedExportsOrder,A as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{r as a}from"./index-BP8_t0zE.js";import{M as e}from"./MapWithPin.client-mWMy-bbS.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Map.client-D7Zd9Rir.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./typeof-QjJsDpFa.js";import"./MapLayer-CeGLoV_-.js";import"./OsmGeocoding-DOGggMqw.js";import"./SearchField-Cykq-dlt.js";import"./MapPin.client-Ln2WLe_W.js";const A={title:"Map/MapWithPin",component:e},t=()=>{const t={lat:0,lng:0},o=a.useRef(null);return s.jsx(e,{mapRef:o,position:t,updatePosition:o=>{t.lat=o.lat,t.lng=o.lng}})};var n,p,r;t.parameters={...t.parameters,docs:{...null==(n=t.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const position = {\n lat: 0,\n lng: 0\n };\n const newMapRef = useRef(null);\n return {\n position.lat = _position.lat;\n position.lng = _position.lng;\n }} />;\n}",...null==(r=null==(p=t.parameters)?void 0:p.docs)?void 0:r.source}}};const B=["Default"];export{t as Default,B as __namedExportsOrder,A as default}; \ No newline at end of file diff --git a/storybook-static/assets/MemberBadge-DaB6gu8F.js b/storybook-static/assets/MemberBadge-BFCUvfGJ.js similarity index 95% rename from storybook-static/assets/MemberBadge-DaB6gu8F.js rename to storybook-static/assets/MemberBadge-BFCUvfGJ.js index 4cb07e5fa4..1e265319d8 100644 --- a/storybook-static/assets/MemberBadge-DaB6gu8F.js +++ b/storybook-static/assets/MemberBadge-BFCUvfGJ.js @@ -1 +1 @@ -import{j as c}from"./jsx-runtime-CexXSJP5.js";import{s as p}from"./icon-star-active-ClN6U5FF.js";import{u as f}from"./theme-ui-core.browser.esm-CIov4Ln1.js";import{I as y}from"./theme-ui-components.esm-DCiJ1mMX.js";const n=40,o=e=>{var a,l;const{theme:r}=f(),{size:i,useLowDetailVersion:t,sx:o}=e,s=e.profileType||"member",m=i||n,u=s.charAt(0).toUpperCase()+s.slice(1).replace(/-/g," ");return c.jsx(y,{loading:"lazy",className:"avatar","data-cy":`MemberBadge-${s}`,sx:{width:m,borderRadius:"50%",...o},width:m,height:m,title:u,src:(m>n&&!t?null==(a=r.badges[s])?void 0:a.normal:null==(l=r.badges[s])?void 0:l.lowDetail)||p})};try{o.displayName="MemberBadge",o.__docgenInfo={description:"",displayName:"MemberBadge",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}},profileType:{defaultValue:null,description:"",name:"profileType",required:!1,type:{name:"enum",value:[{value:'"member"'},{value:'"space"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},useLowDetailVersion:{defaultValue:null,description:"",name:"useLowDetailVersion",required:!1,type:{name:"boolean"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}}}}}catch{}export{o as M}; \ No newline at end of file +import{j as c}from"./jsx-runtime-CexXSJP5.js";import{s as p}from"./icon-star-active-ClN6U5FF.js";import{u as f}from"./theme-ui-core.browser.esm-CIov4Ln1.js";import{I as y}from"./theme-ui-components.esm-DCiJ1mMX.js";const n=40,o=e=>{var a,l;const{theme:r}=f(),{size:i,useLowDetailVersion:t,sx:o}=e,s=e.profileType||"member",m=i||n,u=s.charAt(0).toUpperCase()+s.slice(1).replace(/-/g," ");return c.jsx(y,{loading:"lazy",className:"avatar","data-cy":`MemberBadge-${s}`,sx:{width:m,borderRadius:"50%",...o},width:m,height:m,title:u,src:(m>n&&!t?null==(a=r.badges[s])?void 0:a.normal:null==(l=r.badges[s])?void 0:l.lowDetail)||p})};try{o.displayName="MemberBadge",o.__docgenInfo={description:"",displayName:"MemberBadge",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}},profileType:{defaultValue:null,description:"",name:"profileType",required:!1,type:{name:"enum",value:[{value:'"space"'},{value:'"member"'},{value:'"workspace"'},{value:'"machine-builder"'},{value:'"community-builder"'},{value:'"collection-point"'}]}},useLowDetailVersion:{defaultValue:null,description:"",name:"useLowDetailVersion",required:!1,type:{name:"boolean"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}}}}}catch{}export{o as M}; \ No newline at end of file diff --git a/storybook-static/assets/MemberBadge.stories-B-XQRmwd.js b/storybook-static/assets/MemberBadge.stories-r5ugHWuk.js similarity index 98% rename from storybook-static/assets/MemberBadge.stories-B-XQRmwd.js rename to storybook-static/assets/MemberBadge.stories-r5ugHWuk.js index 84b96a1b5a..04a3bd1d84 100644 --- a/storybook-static/assets/MemberBadge.stories-B-XQRmwd.js +++ b/storybook-static/assets/MemberBadge.stories-r5ugHWuk.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{M as r}from"./MemberBadge-DaB6gu8F.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";const N={title:"Components/MemberBadge",component:r},s=()=>e.jsx(r,{}),o={render:s=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:s.size}),e.jsx(r,{size:2*(s.size||40)}),e.jsx(r,{size:3*(s.size||40)})]})},i=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"member"}),e.jsx(r,{size:100,profileType:"member",useLowDetailVersion:!0})]}),a=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"workspace"}),e.jsx(r,{size:100,profileType:"workspace",useLowDetailVersion:!0})]}),p=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"community-builder"}),e.jsx(r,{size:100,profileType:"community-builder",useLowDetailVersion:!0})]}),t=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"collection-point"}),e.jsx(r,{size:100,profileType:"collection-point",useLowDetailVersion:!0})]}),m=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"machine-builder"}),e.jsx(r,{size:100,profileType:"machine-builder",useLowDetailVersion:!0})]}),c=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"space"}),e.jsx(r,{size:100,profileType:"space",useLowDetailVersion:!0})]});var l,d,u,y,z,g,T,b,f,x,j,B,M,w,h,D,L,S,V,F,k,C,_,E;s.parameters={...s.parameters,docs:{...null==(l=s.parameters)?void 0:l.docs,source:{originalSource:"() => ",...null==(u=null==(d=s.parameters)?void 0:d.docs)?void 0:u.source}}},o.parameters={...o.parameters,docs:{...null==(y=o.parameters)?void 0:y.docs,source:{originalSource:"{\n render: args => <>\n \n \n \n \n}",...null==(g=null==(z=o.parameters)?void 0:z.docs)?void 0:g.source}}},i.parameters={...i.parameters,docs:{...null==(T=i.parameters)?void 0:T.docs,source:{originalSource:"() => <>\n \n \n ",...null==(f=null==(b=i.parameters)?void 0:b.docs)?void 0:f.source}}},a.parameters={...a.parameters,docs:{...null==(x=a.parameters)?void 0:x.docs,source:{originalSource:"() => <>\n \n \n ",...null==(B=null==(j=a.parameters)?void 0:j.docs)?void 0:B.source}}},p.parameters={...p.parameters,docs:{...null==(M=p.parameters)?void 0:M.docs,source:{originalSource:"() => <>\n \n \n ",...null==(h=null==(w=p.parameters)?void 0:w.docs)?void 0:h.source}}},t.parameters={...t.parameters,docs:{...null==(D=t.parameters)?void 0:D.docs,source:{originalSource:"() => <>\n \n \n ",...null==(S=null==(L=t.parameters)?void 0:L.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(V=m.parameters)?void 0:V.docs,source:{originalSource:"() => <>\n \n \n ",...null==(k=null==(F=m.parameters)?void 0:F.docs)?void 0:k.source}}},c.parameters={...c.parameters,docs:{...null==(C=c.parameters)?void 0:C.docs,source:{originalSource:"() => <>\n \n \n ",...null==(E=null==(_=c.parameters)?void 0:_.docs)?void 0:E.source}}};const Q=["Basic","Sizes","TypeMember","TypeWorkspace","TypeCommunityBuilder","TypeCollectionPoint","TypeMachineBuilder","TypeSpace"];export{s as Basic,o as Sizes,t as TypeCollectionPoint,p as TypeCommunityBuilder,m as TypeMachineBuilder,i as TypeMember,c as TypeSpace,a as TypeWorkspace,Q as __namedExportsOrder,N as default}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{M as r}from"./MemberBadge-BFCUvfGJ.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";const N={title:"Components/MemberBadge",component:r},s=()=>e.jsx(r,{}),o={render:s=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:s.size}),e.jsx(r,{size:2*(s.size||40)}),e.jsx(r,{size:3*(s.size||40)})]})},i=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"member"}),e.jsx(r,{size:100,profileType:"member",useLowDetailVersion:!0})]}),a=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"workspace"}),e.jsx(r,{size:100,profileType:"workspace",useLowDetailVersion:!0})]}),p=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"community-builder"}),e.jsx(r,{size:100,profileType:"community-builder",useLowDetailVersion:!0})]}),t=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"collection-point"}),e.jsx(r,{size:100,profileType:"collection-point",useLowDetailVersion:!0})]}),m=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"machine-builder"}),e.jsx(r,{size:100,profileType:"machine-builder",useLowDetailVersion:!0})]}),c=()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{size:100,profileType:"space"}),e.jsx(r,{size:100,profileType:"space",useLowDetailVersion:!0})]});var l,d,u,y,z,g,T,b,f,x,j,B,M,w,h,D,L,S,V,F,k,C,_,E;s.parameters={...s.parameters,docs:{...null==(l=s.parameters)?void 0:l.docs,source:{originalSource:"() => ",...null==(u=null==(d=s.parameters)?void 0:d.docs)?void 0:u.source}}},o.parameters={...o.parameters,docs:{...null==(y=o.parameters)?void 0:y.docs,source:{originalSource:"{\n render: args => <>\n \n \n \n \n}",...null==(g=null==(z=o.parameters)?void 0:z.docs)?void 0:g.source}}},i.parameters={...i.parameters,docs:{...null==(T=i.parameters)?void 0:T.docs,source:{originalSource:"() => <>\n \n \n ",...null==(f=null==(b=i.parameters)?void 0:b.docs)?void 0:f.source}}},a.parameters={...a.parameters,docs:{...null==(x=a.parameters)?void 0:x.docs,source:{originalSource:"() => <>\n \n \n ",...null==(B=null==(j=a.parameters)?void 0:j.docs)?void 0:B.source}}},p.parameters={...p.parameters,docs:{...null==(M=p.parameters)?void 0:M.docs,source:{originalSource:"() => <>\n \n \n ",...null==(h=null==(w=p.parameters)?void 0:w.docs)?void 0:h.source}}},t.parameters={...t.parameters,docs:{...null==(D=t.parameters)?void 0:D.docs,source:{originalSource:"() => <>\n \n \n ",...null==(S=null==(L=t.parameters)?void 0:L.docs)?void 0:S.source}}},m.parameters={...m.parameters,docs:{...null==(V=m.parameters)?void 0:V.docs,source:{originalSource:"() => <>\n \n \n ",...null==(k=null==(F=m.parameters)?void 0:F.docs)?void 0:k.source}}},c.parameters={...c.parameters,docs:{...null==(C=c.parameters)?void 0:C.docs,source:{originalSource:"() => <>\n \n \n ",...null==(E=null==(_=c.parameters)?void 0:_.docs)?void 0:E.source}}};const Q=["Basic","Sizes","TypeMember","TypeWorkspace","TypeCommunityBuilder","TypeCollectionPoint","TypeMachineBuilder","TypeSpace"];export{s as Basic,o as Sizes,t as TypeCollectionPoint,p as TypeCommunityBuilder,m as TypeMachineBuilder,i as TypeMember,c as TypeSpace,a as TypeWorkspace,Q as __namedExportsOrder,N as default}; \ No newline at end of file diff --git a/storybook-static/assets/Mixcloud-C6D_TjsQ.js b/storybook-static/assets/Mixcloud-CgY3HQKy.js similarity index 97% rename from storybook-static/assets/Mixcloud-C6D_TjsQ.js rename to storybook-static/assets/Mixcloud-CgY3HQKy.js index 506a7f52b3..0d5835de9f 100644 --- a/storybook-static/assets/Mixcloud-C6D_TjsQ.js +++ b/storybook-static/assets/Mixcloud-CgY3HQKy.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-BP8_t0zE.js";import{u as m,p as g}from"./VideoPlayer-Dmkl06KS.js";function v(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of b(t))!w.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(o=O(t,a))||o.enumerable});return e},D=(e,t,r)=>(r=null!=e?P(M(e)):{},c(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),S=e=>c(i({},"__esModule",{value:!0}),e),a=(e,t,r)=>(x(e,"symbol"!=typeof t?t+"":t,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",(()=>{})),a(this,"unmute",(()=>{})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then((e=>{this.player=e.PlayerWidget(this.iframe),this.player.ready.then((()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on(((e,t)=>{this.currentTime=e,this.duration=t})),this.props.onReady()}))}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:t}=this.props,r=e.match(y.MATCH_URL_MIXCLOUD)[1],o=(0,p.queryString)({...t.options,feed:`/${r}/`});return u.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://www.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud"),a(l,"canPlay",y.canPlay.mixcloud),a(l,"loopOnEnded",!0);const T=_(h),A=v({__proto__:null,default:T},[h]);export{A as M}; \ No newline at end of file +import{g as _,r as f}from"./index-BP8_t0zE.js";import{u as m,p as g}from"./VideoPlayer-Dilqd3c4.js";function v(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of b(t))!w.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(o=O(t,a))||o.enumerable});return e},D=(e,t,r)=>(r=null!=e?P(M(e)):{},c(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),S=e=>c(i({},"__esModule",{value:!0}),e),a=(e,t,r)=>(x(e,"symbol"!=typeof t?t+"":t,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",(()=>{})),a(this,"unmute",(()=>{})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then((e=>{this.player=e.PlayerWidget(this.iframe),this.player.ready.then((()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on(((e,t)=>{this.currentTime=e,this.duration=t})),this.props.onReady()}))}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:t}=this.props,r=e.match(y.MATCH_URL_MIXCLOUD)[1],o=(0,p.queryString)({...t.options,feed:`/${r}/`});return u.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://www.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud"),a(l,"canPlay",y.canPlay.mixcloud),a(l,"loopOnEnded",!0);const T=_(h),A=v({__proto__:null,default:T},[h]);export{A as M}; \ No newline at end of file diff --git a/storybook-static/assets/Mux-4lpop726.js b/storybook-static/assets/Mux-DyKgiBGA.js similarity index 96% rename from storybook-static/assets/Mux-4lpop726.js rename to storybook-static/assets/Mux-DyKgiBGA.js index 19d6856c11..da06967407 100644 --- a/storybook-static/assets/Mux-4lpop726.js +++ b/storybook-static/assets/Mux-DyKgiBGA.js @@ -1 +1 @@ -import{_ as P}from"./iframe-BRhzNi2b.js";import{g as E,r as g}from"./index-BP8_t0zE.js";import{p as _}from"./VideoPlayer-Dmkl06KS.js";function b(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of k(t))!x.call(e,i)&&i!==n&&u(e,i,{get:()=>t[i],enumerable:!(r=I(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=null!=e?L(O(e)):{},v(e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)),D=e=>v(u({},"__esModule",{value:!0}),e),n=(e,t,n)=>(M(e,"symbol"!=typeof t?t+"":t,n),n),m={};R(m,{default:()=>l});var y=D(m),f=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends f.Component{constructor(){super(...arguments),n(this,"onReady",((...e)=>this.props.onReady(...e))),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),n(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onError",((...e)=>this.props.onError(...e))),n(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),n(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),n(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.player.muted=!0})),n(this,"unmute",(()=>{this.player.muted=!1})),n(this,"ref",(e=>{this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:n,config:r}=this.props;if(null==(t=globalThis.customElements)||!t.get("mux-player"))try{const e=j.replace("VERSION",r.version);await P((()=>import(`${e}`)),[],import.meta.url),this.props.onLoaded()}catch(s){n(s)}const[,i]=e.match(p.MATCH_URL_MUX);this.player.playbackId=i}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:n,controls:r,muted:i,config:s,width:o,height:a}=this.props,l={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return!1===r&&(l["--controls"]="none"),f.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:l,preload:"auto",autoPlay:t||void 0,muted:i?"":void 0,loop:n?"":void 0,...s.attributes})}}n(l,"displayName","Mux"),n(l,"canPlay",p.canPlay.mux);const C=E(y),N=b({__proto__:null,default:C},[y]);export{N as M}; \ No newline at end of file +import{_ as P}from"./iframe-JYjbkGI-.js";import{g as E,r as g}from"./index-BP8_t0zE.js";import{p as _}from"./VideoPlayer-Dilqd3c4.js";function b(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var L=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,O=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,M=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of k(t))!x.call(e,i)&&i!==n&&u(e,i,{get:()=>t[i],enumerable:!(r=I(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=null!=e?L(O(e)):{},v(e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)),D=e=>v(u({},"__esModule",{value:!0}),e),n=(e,t,n)=>(M(e,"symbol"!=typeof t?t+"":t,n),n),m={};R(m,{default:()=>l});var y=D(m),f=w(g),p=_;const j="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends f.Component{constructor(){super(...arguments),n(this,"onReady",((...e)=>this.props.onReady(...e))),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onBuffer",((...e)=>this.props.onBuffer(...e))),n(this,"onBufferEnd",((...e)=>this.props.onBufferEnd(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onError",((...e)=>this.props.onError(...e))),n(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),n(this,"onEnablePIP",((...e)=>this.props.onEnablePIP(...e))),n(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),n(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),n(this,"mute",(()=>{this.player.muted=!0})),n(this,"unmute",(()=>{this.player.muted=!1})),n(this,"ref",(e=>{this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:n,config:r}=this.props;if(null==(t=globalThis.customElements)||!t.get("mux-player"))try{const e=j.replace("VERSION",r.version);await P((()=>import(`${e}`)),[],import.meta.url),this.props.onLoaded()}catch(s){n(s)}const[,i]=e.match(p.MATCH_URL_MUX);this.player.playbackId=i}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:n,controls:r,muted:i,config:s,width:o,height:a}=this.props,l={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return!1===r&&(l["--controls"]="none"),f.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:l,preload:"auto",autoPlay:t||void 0,muted:i?"":void 0,loop:n?"":void 0,...s.attributes})}}n(l,"displayName","Mux"),n(l,"canPlay",p.canPlay.mux);const C=E(y),N=b({__proto__:null,default:C},[y]);export{N as M}; \ No newline at end of file diff --git a/storybook-static/assets/NotificationItem-BEQLiIOf.js b/storybook-static/assets/NotificationItem-ClPYRcjY.js similarity index 96% rename from storybook-static/assets/NotificationItem-BEQLiIOf.js rename to storybook-static/assets/NotificationItem-ClPYRcjY.js index 83906c99d4..da8d269e63 100644 --- a/storybook-static/assets/NotificationItem-BEQLiIOf.js +++ b/storybook-static/assets/NotificationItem-ClPYRcjY.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{T as n}from"./theme-ui-core.browser.esm-CIov4Ln1.js";import{I as i}from"./Icon-BoVZOGVD.js";import{F as o,a as s}from"./theme-ui-components.esm-DCiJ1mMX.js";function u(e){return["howto_useful","research_useful"].includes(e)?"useful":["howto_approved","map_pin_approved","research_approved"].includes(e)?"check":["howto_needs_updates","map_pin_needs_updates","research_needs_updates"].includes(e)?"edit":"research_update"===e?"thunderbolt":"comment"}const r=e=>{const{type:a}=e;return t.jsx(o,{bg:"white","data-cy":"notification",sx:{flexDirection:"column",fontSize:"12px",marginBottom:2,paddingBottom:2,borderBottom:"1px solid #c7c7c7",fontFamily:"Inter, sans-serif"},children:t.jsx(n,{theme:{styles:{a:{textDecoration:"underline",color:"#61646b",display:"inline","&:hover":{textDecoration:"none"}}}},children:t.jsxs(o,{sx:{gap:1,flexDirection:"row"},children:[t.jsx(i,{glyph:u(a),size:15}),t.jsx(s,{sx:{textAlign:"left"},children:e.children})]})})})};try{r.displayName="NotificationItem",r.__docgenInfo={description:"",displayName:"NotificationItem",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"new_comment"'},{value:'"howto_useful"'},{value:'"howto_mention"'},{value:'"howto_approved"'},{value:'"howto_needs_updates"'},{value:'"map_pin_approved"'},{value:'"map_pin_needs_updates"'},{value:'"new_comment_discussion"'},{value:'"new_comment_research"'},{value:'"research_useful"'},{value:'"research_mention"'},{value:'"research_update"'},{value:'"research_approved"'},{value:'"research_needs_updates"'}]}}}}}catch{}export{r as N}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{T as n}from"./theme-ui-core.browser.esm-CIov4Ln1.js";import{I as i}from"./Icon-DVJa_328.js";import{F as o,a as s}from"./theme-ui-components.esm-DCiJ1mMX.js";function u(e){return["howto_useful","research_useful"].includes(e)?"useful":["howto_approved","map_pin_approved","research_approved"].includes(e)?"check":["howto_needs_updates","map_pin_needs_updates","research_needs_updates"].includes(e)?"edit":"research_update"===e?"thunderbolt":"comment"}const r=e=>{const{type:a}=e;return t.jsx(o,{bg:"white","data-cy":"notification",sx:{flexDirection:"column",fontSize:"12px",marginBottom:2,paddingBottom:2,borderBottom:"1px solid #c7c7c7",fontFamily:"Inter, sans-serif"},children:t.jsx(n,{theme:{styles:{a:{textDecoration:"underline",color:"#61646b",display:"inline","&:hover":{textDecoration:"none"}}}},children:t.jsxs(o,{sx:{gap:1,flexDirection:"row"},children:[t.jsx(i,{glyph:u(a),size:15}),t.jsx(s,{sx:{textAlign:"left"},children:e.children})]})})})};try{r.displayName="NotificationItem",r.__docgenInfo={description:"",displayName:"NotificationItem",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"new_comment"'},{value:'"howto_useful"'},{value:'"howto_mention"'},{value:'"howto_approved"'},{value:'"howto_needs_updates"'},{value:'"map_pin_approved"'},{value:'"map_pin_needs_updates"'},{value:'"new_comment_discussion"'},{value:'"new_comment_research"'},{value:'"research_useful"'},{value:'"research_mention"'},{value:'"research_update"'},{value:'"research_approved"'},{value:'"research_needs_updates"'}]}}}}}catch{}export{r as N}; \ No newline at end of file diff --git a/storybook-static/assets/NotificationItem.stories-D0cQuM9z.js b/storybook-static/assets/NotificationItem.stories-CRhKj1SS.js similarity index 93% rename from storybook-static/assets/NotificationItem.stories-D0cQuM9z.js rename to storybook-static/assets/NotificationItem.stories-CRhKj1SS.js index 97db2843d6..5e4cc3593e 100644 --- a/storybook-static/assets/NotificationItem.stories-D0cQuM9z.js +++ b/storybook-static/assets/NotificationItem.stories-CRhKj1SS.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{y as o}from"./index-D_kXk1yT.js";import{N as e}from"./NotificationItem-BEQLiIOf.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const H={title:"Components/NotificationItem",component:e},r=()=>t.jsx(e,{type:"howto_useful",children:o.lorem.sentence()}),s=()=>t.jsxs(e,{type:"new_comment",children:["(Legacy)",o.lorem.sentence()]}),m=()=>t.jsx(e,{type:"new_comment_discussion",children:o.lorem.sentence()}),n=()=>t.jsxs(e,{type:"new_comment_research",children:["(Legacy)",o.lorem.sentence()]}),c=()=>t.jsx(e,{type:"research_useful",children:o.lorem.sentence()});var a,i,p,u,f,l,d,_,y,h,N,I,g,x,w;r.parameters={...r.parameters,docs:{...null==(a=r.parameters)?void 0:a.docs,source:{originalSource:'() => \n {faker.lorem.sentence()}\n ',...null==(p=null==(i=r.parameters)?void 0:i.docs)?void 0:p.source}}},s.parameters={...s.parameters,docs:{...null==(u=s.parameters)?void 0:u.docs,source:{originalSource:'() => \n (Legacy)\n {faker.lorem.sentence()}\n ',...null==(l=null==(f=s.parameters)?void 0:f.docs)?void 0:l.source}}},m.parameters={...m.parameters,docs:{...null==(d=m.parameters)?void 0:d.docs,source:{originalSource:'() => \n {faker.lorem.sentence()}\n ',...null==(y=null==(_=m.parameters)?void 0:_.docs)?void 0:y.source}}},n.parameters={...n.parameters,docs:{...null==(h=n.parameters)?void 0:h.docs,source:{originalSource:'() => \n (Legacy)\n {faker.lorem.sentence()}\n ',...null==(I=null==(N=n.parameters)?void 0:N.docs)?void 0:I.source}}},c.parameters={...c.parameters,docs:{...null==(g=c.parameters)?void 0:g.docs,source:{originalSource:'() => \n {faker.lorem.sentence()}\n ',...null==(w=null==(x=c.parameters)?void 0:x.docs)?void 0:w.source}}};const J=["Default","Comment","CommentDiscussion","CommentResearch","UsefulResearch"];export{s as Comment,m as CommentDiscussion,n as CommentResearch,r as Default,c as UsefulResearch,J as __namedExportsOrder,H as default}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{y as o}from"./index-D_kXk1yT.js";import{N as e}from"./NotificationItem-ClPYRcjY.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const H={title:"Components/NotificationItem",component:e},r=()=>t.jsx(e,{type:"howto_useful",children:o.lorem.sentence()}),s=()=>t.jsxs(e,{type:"new_comment",children:["(Legacy)",o.lorem.sentence()]}),m=()=>t.jsx(e,{type:"new_comment_discussion",children:o.lorem.sentence()}),n=()=>t.jsxs(e,{type:"new_comment_research",children:["(Legacy)",o.lorem.sentence()]}),c=()=>t.jsx(e,{type:"research_useful",children:o.lorem.sentence()});var a,i,p,u,f,l,d,_,y,h,N,I,g,x,w;r.parameters={...r.parameters,docs:{...null==(a=r.parameters)?void 0:a.docs,source:{originalSource:'() => \n {faker.lorem.sentence()}\n ',...null==(p=null==(i=r.parameters)?void 0:i.docs)?void 0:p.source}}},s.parameters={...s.parameters,docs:{...null==(u=s.parameters)?void 0:u.docs,source:{originalSource:'() => \n (Legacy)\n {faker.lorem.sentence()}\n ',...null==(l=null==(f=s.parameters)?void 0:f.docs)?void 0:l.source}}},m.parameters={...m.parameters,docs:{...null==(d=m.parameters)?void 0:d.docs,source:{originalSource:'() => \n {faker.lorem.sentence()}\n ',...null==(y=null==(_=m.parameters)?void 0:_.docs)?void 0:y.source}}},n.parameters={...n.parameters,docs:{...null==(h=n.parameters)?void 0:h.docs,source:{originalSource:'() => \n (Legacy)\n {faker.lorem.sentence()}\n ',...null==(I=null==(N=n.parameters)?void 0:N.docs)?void 0:I.source}}},c.parameters={...c.parameters,docs:{...null==(g=c.parameters)?void 0:g.docs,source:{originalSource:'() => \n {faker.lorem.sentence()}\n ',...null==(w=null==(x=c.parameters)?void 0:x.docs)?void 0:w.source}}};const J=["Default","Comment","CommentDiscussion","CommentResearch","UsefulResearch"];export{s as Comment,m as CommentDiscussion,n as CommentResearch,r as Default,c as UsefulResearch,J as __namedExportsOrder,H as default}; \ No newline at end of file diff --git a/storybook-static/assets/NotificationList-B57zIKMs.js b/storybook-static/assets/NotificationList-DEA9ZS2i.js similarity index 92% rename from storybook-static/assets/NotificationList-B57zIKMs.js rename to storybook-static/assets/NotificationList-DEA9ZS2i.js index a5f33330f9..46bac1f540 100644 --- a/storybook-static/assets/NotificationList-B57zIKMs.js +++ b/storybook-static/assets/NotificationList-DEA9ZS2i.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as c}from"./index-BP8_t0zE.js";import{n as d}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{B as m}from"./Button-B7QBvkxh.js";import{N as f}from"./NotificationItem-BEQLiIOf.js";import{a as p,C as x,T as u}from"./theme-ui-components.esm-DCiJ1mMX.js";const y=d(p)` +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as c}from"./index-BP8_t0zE.js";import{n as d}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{B as m}from"./Button-1qf_V-Zv.js";import{N as f}from"./NotificationItem-ClPYRcjY.js";import{a as p,C as x,T as u}from"./theme-ui-components.esm-DCiJ1mMX.js";const y=d(p)` display: flex; flex-direction: column; color: #000; diff --git a/storybook-static/assets/NotificationList.stories-C5TXwp-D.js b/storybook-static/assets/NotificationList.stories-jjQpxF3_.js similarity index 92% rename from storybook-static/assets/NotificationList.stories-C5TXwp-D.js rename to storybook-static/assets/NotificationList.stories-jjQpxF3_.js index dad17fe494..f7b187ea1c 100644 --- a/storybook-static/assets/NotificationList.stories-C5TXwp-D.js +++ b/storybook-static/assets/NotificationList.stories-jjQpxF3_.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{y as r}from"./index-D_kXk1yT.js";import{I as t}from"./InternalLink-CtyTe3gy.js";import{N as n}from"./NotificationList-B57zIKMs.js";import"./index-BP8_t0zE.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./NotificationItem-BEQLiIOf.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";const J={title:"Layout/NotificationList",component:n},i=[{type:"howto_mention",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"#",children:"Example Link"})]})},{type:"new_comment",children:o.jsxs(o.Fragment,{children:["(Legacy) ",r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"howto_useful",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"new_comment_discussion",children:o.jsxs(o.Fragment,{children:["(Legacy) ",r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"new_comment_research",children:o.jsxs(o.Fragment,{children:["(Legacy) ",r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"research_useful",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"research_update",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"#",children:"Research Article link"})]})}],e=()=>o.jsx(n,{notifications:i,markAllNotified:()=>{},markAllRead:()=>{}}),s=()=>o.jsx(n,{notifications:[...i,...i,...i,...i],markAllNotified:()=>{},markAllRead:()=>{}}),a=()=>o.jsx(n,{notifications:[],markAllNotified:()=>{},markAllRead:()=>{}});var m,c,l,d,p,f,h,x,u;e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => {}} markAllRead={() => {}} />",...null==(l=null==(c=e.parameters)?void 0:c.docs)?void 0:l.source}}},s.parameters={...s.parameters,docs:{...null==(d=s.parameters)?void 0:d.docs,source:{originalSource:"() => {}} markAllRead={() => {}} />",...null==(f=null==(p=s.parameters)?void 0:p.docs)?void 0:f.source}}},a.parameters={...a.parameters,docs:{...null==(h=a.parameters)?void 0:h.docs,source:{originalSource:"() => {}} markAllRead={() => {}} />",...null==(u=null==(x=a.parameters)?void 0:x.docs)?void 0:u.source}}};const K=["Default","LongList","Empty"];export{e as Default,a as Empty,s as LongList,K as __namedExportsOrder,J as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{y as r}from"./index-D_kXk1yT.js";import{I as t}from"./InternalLink-CtyTe3gy.js";import{N as n}from"./NotificationList-DEA9ZS2i.js";import"./index-BP8_t0zE.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./NotificationItem-ClPYRcjY.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";const J={title:"Layout/NotificationList",component:n},i=[{type:"howto_mention",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"#",children:"Example Link"})]})},{type:"new_comment",children:o.jsxs(o.Fragment,{children:["(Legacy) ",r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"howto_useful",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"new_comment_discussion",children:o.jsxs(o.Fragment,{children:["(Legacy) ",r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"new_comment_research",children:o.jsxs(o.Fragment,{children:["(Legacy) ",r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"research_useful",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"/",children:r.lorem.words(2)})]})},{type:"research_update",children:o.jsxs(o.Fragment,{children:[r.lorem.words(4)," ",o.jsx(t,{to:"#",children:"Research Article link"})]})}],e=()=>o.jsx(n,{notifications:i,markAllNotified:()=>{},markAllRead:()=>{}}),s=()=>o.jsx(n,{notifications:[...i,...i,...i,...i],markAllNotified:()=>{},markAllRead:()=>{}}),a=()=>o.jsx(n,{notifications:[],markAllNotified:()=>{},markAllRead:()=>{}});var m,c,l,d,p,f,h,x,u;e.parameters={...e.parameters,docs:{...null==(m=e.parameters)?void 0:m.docs,source:{originalSource:"() => {}} markAllRead={() => {}} />",...null==(l=null==(c=e.parameters)?void 0:c.docs)?void 0:l.source}}},s.parameters={...s.parameters,docs:{...null==(d=s.parameters)?void 0:d.docs,source:{originalSource:"() => {}} markAllRead={() => {}} />",...null==(f=null==(p=s.parameters)?void 0:p.docs)?void 0:f.source}}},a.parameters={...a.parameters,docs:{...null==(h=a.parameters)?void 0:h.docs,source:{originalSource:"() => {}} markAllRead={() => {}} />",...null==(u=null==(x=a.parameters)?void 0:x.docs)?void 0:u.source}}};const K=["Default","LongList","Empty"];export{e as Default,a as Empty,s as LongList,K as __namedExportsOrder,J as default}; \ No newline at end of file diff --git a/storybook-static/assets/OsmGeocoding-Dk6lLoXi.js b/storybook-static/assets/OsmGeocoding-DOGggMqw.js similarity index 98% rename from storybook-static/assets/OsmGeocoding-Dk6lLoXi.js rename to storybook-static/assets/OsmGeocoding-DOGggMqw.js index 0f9a104016..d759622420 100644 --- a/storybook-static/assets/OsmGeocoding-Dk6lLoXi.js +++ b/storybook-static/assets/OsmGeocoding-DOGggMqw.js @@ -1 +1 @@ -import{j as y}from"./jsx-runtime-CexXSJP5.js";import{r as e}from"./index-BP8_t0zE.js";import{S as T}from"./SearchField-BEwe93wL.js";import{a as j,T as F}from"./theme-ui-components.esm-DCiJ1mMX.js";import{j as E}from"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";function B(n,r,t){var a=this,u=e.useRef(null),i=e.useRef(0),o=e.useRef(null),c=e.useRef([]),l=e.useRef(),s=e.useRef(),d=e.useRef(n),m=e.useRef(!0);e.useEffect((function(){d.current=n}),[n]);var p=!r&&0!==r&&typeof window<"u";if("function"!=typeof n)throw new TypeError("Expected a function");r=+r||0;var f=!!(t=t||{}).leading,g=!("trailing"in t)||!!t.trailing,h="maxWait"in t,y=h?Math.max(+t.maxWait||0,r):null;e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]);var b=e.useMemo((function(){var e=function(e){var n=c.current,r=l.current;return c.current=l.current=null,i.current=e,s.current=d.current.apply(r,n)},n=function(e,n){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(e):setTimeout(e,n)},t=function(e){if(!m.current)return!1;var n=e-u.current;return!u.current||n>=r||n<0||h&&e-i.current>=y},b=function(n){return o.current=null,g&&c.current?e(n):(c.current=l.current=null,s.current)},x=function e(){var a=Date.now();if(t(a))return b(a);if(m.current){var o=r-(a-u.current),c=h?Math.min(o,y-(a-i.current)):o;n(e,c)}},v=function(){var d=Date.now(),p=t(d);if(c.current=[].slice.call(arguments),l.current=a,u.current=d,p){if(!o.current&&m.current)return i.current=u.current,n(x,r),f?e(u.current):s.current;if(h)return n(x,r),e(u.current)}return o.current||n(x,r),s.current};return v.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,c.current=u.current=l.current=o.current=null},v.isPending=function(){return!!o.current},v.flush=function(){return o.current?b(Date.now()):s.current},v}),[f,h,r,y,g,p]);return b}const I=()=>y.jsx(y.Fragment,{children:y.jsx(j,{sx:{background:"white",position:"relative",zIndex:1,marginTop:"-2px",paddingX:2,paddingY:1,border:"2px solid",borderColor:"black",borderTopWidth:"1px",lineHeight:1.5,borderBottomLeftRadius:1,borderBottomRightRadius:1},children:y.jsx(F,{sx:{fontSize:1},children:"Fetching results from Open Street Map"})})}),C=e=>{const{results:n,callback:r,setShowResults:t}=e;return E(j,{"data-cy":"osm-geocoding-results",as:"ul",sx:{background:"white",padding:0,position:"relative",zIndex:1,margin:"-2px 0 0",border:"2px solid black",borderTopWidth:"1px",listStyle:"none",borderRadius:0,borderBottomLeftRadius:1,borderBottomRightRadius:1},children:n.map(((e,n)=>E(j,{as:"li",sx:{paddingY:1,paddingX:2,lineHeight:1.5,"&:hover":{background:"softblue",cursor:"pointer"}},onClick:()=>{t(!1),r&&r(e)},children:null==e?void 0:e.display_name},n)))})};try{C.displayName="OsmGeocodingResultsList",C.__docgenInfo={description:"",displayName:"OsmGeocodingResultsList",props:{results:{defaultValue:null,description:"",name:"results",required:!0,type:{name:"Result[]"}},callback:{defaultValue:null,description:"",name:"callback",required:!0,type:{name:"any"}},setShowResults:{defaultValue:null,description:"",name:"setShowResults",required:!0,type:{name:"Dispatch>"}}}}}catch{}const O=({placeholder:n="Search for an address",debounceMs:r=800,callback:t,acceptLanguage:a="en",viewbox:u="",loading:i=!1})=>{const[o,c]=e.useState(""),[l,s]=e.useState([]),[d,m]=e.useState(!1),[p,f]=e.useState(i),[g,h]=e.useState(!1),b=e.useRef(null);document.addEventListener("click",(function(e){var n;(null==(n=null==b?void 0:b.current)?void 0:n.contains(e.target))||m(!1)})),document.onkeyup=function(e){"Escape"===e.key&&m(!1)};const x=!!l.length&&d&&!p,v=B((e=>function(e=""){if(0===e.length)return;f(!0);let n=`https://nominatim.openstreetmap.org/search?format=json&q=${e}&accept-language=${a}`;u.length&&(n=`${n}&viewbox=${u}&bounded=1`),fetch(n,{headers:new Headers({"User-Agent":"onearmy.earth Community Platform (https://platform.onearmy.earth)"})}).then((e=>e.json())).then((e=>{s(e),m(!0)})).catch(null).finally((()=>f(!1)))}(e)),r);return e.useEffect((()=>{g&&v(o)}),[o,g,v]),y.jsxs("div",{"data-cy":"osm-geocoding",ref:b,style:{width:"100%"},children:[y.jsx(T,{autoComplete:"off",name:"geocoding",id:"geocoding",dataCy:"osm-geocoding-input",placeHolder:n,value:o,onChange:e=>{h(!0),c(e)},onClickDelete:()=>{c(""),h(!1)},onClickSearch:()=>{h(!0),c(o)},additionalStyle:{background:"white",fontFamily:"Varela Round",fontSize:"14px",border:"2px solid black",height:"44px",display:"flex",borderRadius:x||p?"5px 5px 0 0":"5px",marginBottom:0}}),p&&y.jsx(I,{}),x&&y.jsx(C,{results:l,callback:e=>{e&&(h(!1),c(e.display_name)),t(e)},setShowResults:m})]})};try{O.displayName="OsmGeocoding",O.__docgenInfo={description:"",displayName:"OsmGeocoding",props:{placeholder:{defaultValue:{value:"Search for an address"},description:"",name:"placeholder",required:!1,type:{name:"string"}},debounceMs:{defaultValue:{value:"800"},description:"",name:"debounceMs",required:!1,type:{name:"number"}},iconUrl:{defaultValue:null,description:"",name:"iconUrl",required:!1,type:{name:"string"}},callback:{defaultValue:null,description:"",name:"callback",required:!1,type:{name:"any"}},city:{defaultValue:null,description:"",name:"city",required:!1,type:{name:"string"}},countrycodes:{defaultValue:null,description:"",name:"countrycodes",required:!1,type:{name:"string"}},acceptLanguage:{defaultValue:{value:"en"},description:"",name:"acceptLanguage",required:!1,type:{name:"string"}},viewbox:{defaultValue:{value:""},description:"",name:"viewbox",required:!1,type:{name:"string"}},loading:{defaultValue:{value:"false"},description:"",name:"loading",required:!1,type:{name:"boolean"}}}}}catch{}export{O,C as a}; \ No newline at end of file +import{j as y}from"./jsx-runtime-CexXSJP5.js";import{r as e}from"./index-BP8_t0zE.js";import{S as T}from"./SearchField-Cykq-dlt.js";import{a as j,T as F}from"./theme-ui-components.esm-DCiJ1mMX.js";import{j as E}from"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";function B(n,r,t){var a=this,u=e.useRef(null),i=e.useRef(0),o=e.useRef(null),c=e.useRef([]),l=e.useRef(),s=e.useRef(),d=e.useRef(n),m=e.useRef(!0);e.useEffect((function(){d.current=n}),[n]);var p=!r&&0!==r&&typeof window<"u";if("function"!=typeof n)throw new TypeError("Expected a function");r=+r||0;var f=!!(t=t||{}).leading,g=!("trailing"in t)||!!t.trailing,h="maxWait"in t,y=h?Math.max(+t.maxWait||0,r):null;e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]);var b=e.useMemo((function(){var e=function(e){var n=c.current,r=l.current;return c.current=l.current=null,i.current=e,s.current=d.current.apply(r,n)},n=function(e,n){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(e):setTimeout(e,n)},t=function(e){if(!m.current)return!1;var n=e-u.current;return!u.current||n>=r||n<0||h&&e-i.current>=y},b=function(n){return o.current=null,g&&c.current?e(n):(c.current=l.current=null,s.current)},x=function e(){var a=Date.now();if(t(a))return b(a);if(m.current){var o=r-(a-u.current),c=h?Math.min(o,y-(a-i.current)):o;n(e,c)}},v=function(){var d=Date.now(),p=t(d);if(c.current=[].slice.call(arguments),l.current=a,u.current=d,p){if(!o.current&&m.current)return i.current=u.current,n(x,r),f?e(u.current):s.current;if(h)return n(x,r),e(u.current)}return o.current||n(x,r),s.current};return v.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,c.current=u.current=l.current=o.current=null},v.isPending=function(){return!!o.current},v.flush=function(){return o.current?b(Date.now()):s.current},v}),[f,h,r,y,g,p]);return b}const I=()=>y.jsx(y.Fragment,{children:y.jsx(j,{sx:{background:"white",position:"relative",zIndex:1,marginTop:"-2px",paddingX:2,paddingY:1,border:"2px solid",borderColor:"black",borderTopWidth:"1px",lineHeight:1.5,borderBottomLeftRadius:1,borderBottomRightRadius:1},children:y.jsx(F,{sx:{fontSize:1},children:"Fetching results from Open Street Map"})})}),C=e=>{const{results:n,callback:r,setShowResults:t}=e;return E(j,{"data-cy":"osm-geocoding-results",as:"ul",sx:{background:"white",padding:0,position:"relative",zIndex:1,margin:"-2px 0 0",border:"2px solid black",borderTopWidth:"1px",listStyle:"none",borderRadius:0,borderBottomLeftRadius:1,borderBottomRightRadius:1},children:n.map(((e,n)=>E(j,{as:"li",sx:{paddingY:1,paddingX:2,lineHeight:1.5,"&:hover":{background:"softblue",cursor:"pointer"}},onClick:()=>{t(!1),r&&r(e)},children:null==e?void 0:e.display_name},n)))})};try{C.displayName="OsmGeocodingResultsList",C.__docgenInfo={description:"",displayName:"OsmGeocodingResultsList",props:{results:{defaultValue:null,description:"",name:"results",required:!0,type:{name:"Result[]"}},callback:{defaultValue:null,description:"",name:"callback",required:!0,type:{name:"any"}},setShowResults:{defaultValue:null,description:"",name:"setShowResults",required:!0,type:{name:"Dispatch>"}}}}}catch{}const O=({placeholder:n="Search for an address",debounceMs:r=800,callback:t,acceptLanguage:a="en",viewbox:u="",loading:i=!1})=>{const[o,c]=e.useState(""),[l,s]=e.useState([]),[d,m]=e.useState(!1),[p,f]=e.useState(i),[g,h]=e.useState(!1),b=e.useRef(null);document.addEventListener("click",(function(e){var n;(null==(n=null==b?void 0:b.current)?void 0:n.contains(e.target))||m(!1)})),document.onkeyup=function(e){"Escape"===e.key&&m(!1)};const x=!!l.length&&d&&!p,v=B((e=>function(e=""){if(0===e.length)return;f(!0);let n=`https://nominatim.openstreetmap.org/search?format=json&q=${e}&accept-language=${a}`;u.length&&(n=`${n}&viewbox=${u}&bounded=1`),fetch(n,{headers:new Headers({"User-Agent":"onearmy.earth Community Platform (https://platform.onearmy.earth)"})}).then((e=>e.json())).then((e=>{s(e),m(!0)})).catch(null).finally((()=>f(!1)))}(e)),r);return e.useEffect((()=>{g&&v(o)}),[o,g,v]),y.jsxs("div",{"data-cy":"osm-geocoding",ref:b,style:{width:"100%"},children:[y.jsx(T,{autoComplete:"off",name:"geocoding",id:"geocoding",dataCy:"osm-geocoding-input",placeHolder:n,value:o,onChange:e=>{h(!0),c(e)},onClickDelete:()=>{c(""),h(!1)},onClickSearch:()=>{h(!0),c(o)},additionalStyle:{background:"white",fontFamily:"Varela Round",fontSize:"14px",border:"2px solid black",height:"44px",display:"flex",borderRadius:x||p?"5px 5px 0 0":"5px",marginBottom:0}}),p&&y.jsx(I,{}),x&&y.jsx(C,{results:l,callback:e=>{e&&(h(!1),c(e.display_name)),t(e)},setShowResults:m})]})};try{O.displayName="OsmGeocoding",O.__docgenInfo={description:"",displayName:"OsmGeocoding",props:{placeholder:{defaultValue:{value:"Search for an address"},description:"",name:"placeholder",required:!1,type:{name:"string"}},debounceMs:{defaultValue:{value:"800"},description:"",name:"debounceMs",required:!1,type:{name:"number"}},iconUrl:{defaultValue:null,description:"",name:"iconUrl",required:!1,type:{name:"string"}},callback:{defaultValue:null,description:"",name:"callback",required:!1,type:{name:"any"}},city:{defaultValue:null,description:"",name:"city",required:!1,type:{name:"string"}},countrycodes:{defaultValue:null,description:"",name:"countrycodes",required:!1,type:{name:"string"}},acceptLanguage:{defaultValue:{value:"en"},description:"",name:"acceptLanguage",required:!1,type:{name:"string"}},viewbox:{defaultValue:{value:""},description:"",name:"viewbox",required:!1,type:{name:"string"}},loading:{defaultValue:{value:"false"},description:"",name:"loading",required:!1,type:{name:"boolean"}}}}}catch{}export{O,C as a}; \ No newline at end of file diff --git a/storybook-static/assets/OsmGeocoding.stories-DLF8SCAE.js b/storybook-static/assets/OsmGeocoding.stories-B7Vey5pH.js similarity index 97% rename from storybook-static/assets/OsmGeocoding.stories-DLF8SCAE.js rename to storybook-static/assets/OsmGeocoding.stories-B7Vey5pH.js index 7e6f3ef650..95d95189ae 100644 --- a/storybook-static/assets/OsmGeocoding.stories-DLF8SCAE.js +++ b/storybook-static/assets/OsmGeocoding.stories-B7Vey5pH.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{O as a,a as g}from"./OsmGeocoding-Dk6lLoXi.js";import"./index-BP8_t0zE.js";import"./SearchField-BEwe93wL.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const j={title:"Components/OsmGeocoding",component:a},e=()=>o.jsx(a,{loading:!1}),n=()=>o.jsx(a,{loading:!0}),t=()=>o.jsx(g,{results:[{place_id:282375433,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"relation",osm_id:2658749,boundingbox:["53.0035627","53.0546835","5.6146842","5.7246007"],lat:"53.033548",lon:"5.6611029",display_name:"Sneek, S\xfadwest-Frysl\xe2n, Frisia, Netherlands",class:"boundary",type:"administrative",importance:.5823870580190648,icon:"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png"},{place_id:79535975,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"node",osm_id:7606839826,boundingbox:["53.0276201","53.0376201","5.6468895","5.6568895"],lat:"53.0326201",lon:"5.6518895",display_name:"Sneek, Doctor Boumaweg, Sneek, S\xfadwest-Frysl\xe2n, Frisia, Netherlands, 8601GG, Netherlands",class:"railway",type:"station",importance:.406301518086152,icon:"https://nominatim.openstreetmap.org/ui/mapicons//transport_train_station2.p.20.png"},{place_id:208556,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"node",osm_id:47984318,boundingbox:["53.1169959","53.1170959","5.8099395","5.8100395"],lat:"53.1170459",lon:"5.8099895",display_name:"Sneek, A32, Idaerd, Leeuwarden, Frisia, Netherlands, 9007SE, Netherlands",class:"highway",type:"motorway_junction",importance:.101},{place_id:210270,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"node",osm_id:47965735,boundingbox:["53.1071958","53.1072958","5.8151597","5.8152597"],lat:"53.1072458",lon:"5.8152097",display_name:"Sneek, A32, Idaerd, Leeuwarden, Frisia, Netherlands, 9007SH, Netherlands",class:"highway",type:"motorway_junction",importance:.101}],callback:void 0,setShowResults:()=>null});var s,r,i,p,m,c,d,l,u;e.parameters={...e.parameters,docs:{...null==(s=e.parameters)?void 0:s.docs,source:{originalSource:"() => ",...null==(i=null==(r=e.parameters)?void 0:r.docs)?void 0:i.source}}},n.parameters={...n.parameters,docs:{...null==(p=n.parameters)?void 0:p.docs,source:{originalSource:"() => ",...null==(c=null==(m=n.parameters)?void 0:m.docs)?void 0:c.source}}},t.parameters={...t.parameters,docs:{...null==(d=t.parameters)?void 0:d.docs,source:{originalSource:"() => null} />",...null==(u=null==(l=t.parameters)?void 0:l.docs)?void 0:u.source}}};const f=["Default","Loading","ResultsList"];export{e as Default,n as Loading,t as ResultsList,f as __namedExportsOrder,j as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{O as a,a as g}from"./OsmGeocoding-DOGggMqw.js";import"./index-BP8_t0zE.js";import"./SearchField-Cykq-dlt.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const j={title:"Components/OsmGeocoding",component:a},e=()=>o.jsx(a,{loading:!1}),n=()=>o.jsx(a,{loading:!0}),t=()=>o.jsx(g,{results:[{place_id:282375433,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"relation",osm_id:2658749,boundingbox:["53.0035627","53.0546835","5.6146842","5.7246007"],lat:"53.033548",lon:"5.6611029",display_name:"Sneek, S\xfadwest-Frysl\xe2n, Frisia, Netherlands",class:"boundary",type:"administrative",importance:.5823870580190648,icon:"https://nominatim.openstreetmap.org/ui/mapicons//poi_boundary_administrative.p.20.png"},{place_id:79535975,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"node",osm_id:7606839826,boundingbox:["53.0276201","53.0376201","5.6468895","5.6568895"],lat:"53.0326201",lon:"5.6518895",display_name:"Sneek, Doctor Boumaweg, Sneek, S\xfadwest-Frysl\xe2n, Frisia, Netherlands, 8601GG, Netherlands",class:"railway",type:"station",importance:.406301518086152,icon:"https://nominatim.openstreetmap.org/ui/mapicons//transport_train_station2.p.20.png"},{place_id:208556,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"node",osm_id:47984318,boundingbox:["53.1169959","53.1170959","5.8099395","5.8100395"],lat:"53.1170459",lon:"5.8099895",display_name:"Sneek, A32, Idaerd, Leeuwarden, Frisia, Netherlands, 9007SE, Netherlands",class:"highway",type:"motorway_junction",importance:.101},{place_id:210270,licence:"Data \xa9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",osm_type:"node",osm_id:47965735,boundingbox:["53.1071958","53.1072958","5.8151597","5.8152597"],lat:"53.1072458",lon:"5.8152097",display_name:"Sneek, A32, Idaerd, Leeuwarden, Frisia, Netherlands, 9007SH, Netherlands",class:"highway",type:"motorway_junction",importance:.101}],callback:void 0,setShowResults:()=>null});var s,r,i,p,m,c,d,l,u;e.parameters={...e.parameters,docs:{...null==(s=e.parameters)?void 0:s.docs,source:{originalSource:"() => ",...null==(i=null==(r=e.parameters)?void 0:r.docs)?void 0:i.source}}},n.parameters={...n.parameters,docs:{...null==(p=n.parameters)?void 0:p.docs,source:{originalSource:"() => ",...null==(c=null==(m=n.parameters)?void 0:m.docs)?void 0:c.source}}},t.parameters={...t.parameters,docs:{...null==(d=t.parameters)?void 0:d.docs,source:{originalSource:"() => null} />",...null==(u=null==(l=t.parameters)?void 0:l.docs)?void 0:u.source}}};const f=["Default","Loading","ResultsList"];export{e as Default,n as Loading,t as ResultsList,f as __namedExportsOrder,j as default}; \ No newline at end of file diff --git a/storybook-static/assets/PinProfile-DUk9-hW8.js b/storybook-static/assets/PinProfile-DUk9-hW8.js new file mode 100644 index 0000000000..f915b1c1e6 --- /dev/null +++ b/storybook-static/assets/PinProfile-DUk9-hW8.js @@ -0,0 +1 @@ +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as l}from"./Button-1qf_V-Zv.js";import{B as d}from"./ButtonIcon-DLFqXCZb.js";import{C as m}from"./CardButton-UFEWOkeB.js";import{C as c}from"./CardProfile-BoQoQZcw.js";import{I as p}from"./InternalLink-CtyTe3gy.js";import{a as o,F as x}from"./theme-ui-components.esm-DCiJ1mMX.js";const s=e=>{const{item:s,onClose:n}=e,{creator:t}=s,r="member"===(null==t?void 0:t.profileType);return i.jsxs(m,{sx:{"&:hover":"none"},"data-cy":"PinProfile",children:[i.jsx(o,{sx:{position:"absolute",right:0},children:i.jsx(o,{sx:{float:"right",marginTop:1,marginRight:"8px"},children:i.jsx(d,{"data-cy":"PinProfileCloseButton",icon:"close",onClick:()=>n(),sx:{borderWidth:0,height:"auto"}})})}),i.jsxs(o,{sx:{width:"100%",height:"100%",zIndex:2},children:[i.jsx(c,{item:s,isLink:!0}),!r&&!1!==(null==t?void 0:t.isContactableByPublic)&&i.jsx(x,{sx:{justifyContent:"flex-end"},children:i.jsx(p,{to:`/u/${null==t?void 0:t._id}`,"data-cy":"PinProfileMessageLink",children:i.jsx(l,{icon:"contact",sx:{margin:1},small:!0,children:"Send Message"})})})]})]})};try{s.displayName="PinProfile",s.__docgenInfo={description:"",displayName:"PinProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}export{s as P}; \ No newline at end of file diff --git a/storybook-static/assets/PinProfile-KRvjF2gX.js b/storybook-static/assets/PinProfile-KRvjF2gX.js deleted file mode 100644 index a7b4e9c1df..0000000000 --- a/storybook-static/assets/PinProfile-KRvjF2gX.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as l}from"./Button-B7QBvkxh.js";import{B as d}from"./ButtonIcon-BjD0tDRb.js";import{C as m}from"./CardButton-UFEWOkeB.js";import{C as c}from"./CardProfile-DhE0xdXm.js";import{I as p}from"./InternalLink-CtyTe3gy.js";import{a as o,F as x}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=i=>{const{item:n,onClose:t}=i,{creator:s}=n,r="member"===(null==s?void 0:s.profileType);return e.jsxs(m,{sx:{"&:hover":"none"},"data-cy":"PinProfile",children:[e.jsx(o,{sx:{position:"absolute",right:0},children:e.jsx(o,{sx:{float:"right",marginTop:1,marginRight:"8px"},children:e.jsx(d,{"data-cy":"PinProfileCloseButton",icon:"close",onClick:()=>t(),sx:{borderWidth:0,height:"auto"}})})}),e.jsxs(o,{sx:{width:"100%",height:"100%",zIndex:2},children:[e.jsx(c,{item:n,isLink:!0}),!r&&(null==s?void 0:s.isContactableByPublic)&&e.jsx(x,{sx:{justifyContent:"flex-end"},children:e.jsx(p,{to:`/u/${s._id}`,"data-cy":"PinProfileMessageLink",children:e.jsx(l,{icon:"contact",sx:{margin:1},small:!0,children:"Send Message"})})})]})]})};try{r.displayName="PinProfile",r.__docgenInfo={description:"",displayName:"PinProfile",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMapPin"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"() => void"}}}}}catch{}export{r as P}; \ No newline at end of file diff --git a/storybook-static/assets/PinProfile.stories-YjPwi2qf.js b/storybook-static/assets/PinProfile.stories-MVsTcDzE.js similarity index 90% rename from storybook-static/assets/PinProfile.stories-YjPwi2qf.js rename to storybook-static/assets/PinProfile.stories-MVsTcDzE.js index f610bada20..61cdad4f3c 100644 --- a/storybook-static/assets/PinProfile.stories-YjPwi2qf.js +++ b/storybook-static/assets/PinProfile.stories-MVsTcDzE.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{y as c}from"./index-D_kXk1yT.js";import{P as i}from"./PinProfile-KRvjF2gX.js";import"./index-BP8_t0zE.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonIcon-BjD0tDRb.js";import"./CardButton-UFEWOkeB.js";import"./CardProfile-DhE0xdXm.js";import"./Category-BRVyiaSI.js";import"./MemberBadge-DaB6gu8F.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./ProfileTagsList-C85jWzjp.js";const G={title:"Map/PinProfile",component:i},e=()=>{const e={_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"member",verified:!1,creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:c.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:e,onClose:()=>console.log()})})},o=()=>t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!0,profileType:"workspace",workspaceType:"Sheetpress"}},onClose:()=>console.log()})});var n,a,s,p,m,l;e.parameters={...e.parameters,docs:{...null==(n=e.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'member' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
\n console.log()} />\n
;\n}",...null==(s=null==(a=e.parameters)?void 0:a.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(p=o.parameters)?void 0:p.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: true,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
\n console.log()} />\n
;\n}",...null==(l=null==(m=o.parameters)?void 0:m.docs)?void 0:l.source}}};const H=["DefaultMember","DefaultSpace"];export{e as DefaultMember,o as DefaultSpace,H as __namedExportsOrder,G as default}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{y as c}from"./index-D_kXk1yT.js";import{P as i}from"./PinProfile-DUk9-hW8.js";import"./index-BP8_t0zE.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./ButtonIcon-DLFqXCZb.js";import"./CardButton-UFEWOkeB.js";import"./CardProfile-BoQoQZcw.js";import"./Category-BRVyiaSI.js";import"./MemberBadge-BFCUvfGJ.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./Username-jnUEp1hu.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./ProfileTagsList-C85jWzjp.js";const G={title:"Map/PinProfile",component:i},e=()=>{const e={_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"member",verified:!1,creator:{_id:"member_no2",_lastActive:"string",countryCode:"br",userImage:c.image.avatar(),displayName:"member_no1",isContactableByPublic:!1,profileType:"member"}};return t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:e,onClose:()=>console.log()})})},o=()=>t.jsx("div",{style:{width:"230px",position:"fixed"},children:t.jsx(i,{item:{_deleted:!1,_id:"not-selected-onload",location:{lat:0,lng:0},moderation:"accepted",type:"workspace",verified:!1,creator:{_id:"string",_lastActive:"string",about:"Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.",badges:{supporter:!0,verified:!1},countryCode:"uk",displayName:"user",isContactableByPublic:!0,profileType:"workspace",workspaceType:"Sheetpress"}},onClose:()=>console.log()})});var n,a,s,p,m,l;e.parameters={...e.parameters,docs:{...null==(n=e.parameters)?void 0:n.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'member' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'member_no2',\n _lastActive: 'string',\n countryCode: 'br',\n userImage: faker.image.avatar(),\n displayName: 'member_no1',\n isContactableByPublic: false,\n profileType: 'member' as ProfileTypeName\n }\n };\n return
\n console.log()} />\n
;\n}",...null==(s=null==(a=e.parameters)?void 0:a.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(p=o.parameters)?void 0:p.docs,source:{originalSource:"() => {\n const item = {\n _deleted: false,\n _id: 'not-selected-onload',\n location: {\n lat: 0,\n lng: 0\n },\n moderation: 'accepted' as IModerationStatus,\n type: 'workspace' as ProfileTypeName,\n verified: false,\n creator: {\n _id: 'string',\n _lastActive: 'string',\n about: 'Lorem ipsum odor amet, consectetuer adipiscing elit. Lorem ipsum odor amet, consectetuer adipiscing elit.',\n badges: {\n supporter: true,\n verified: false\n },\n countryCode: 'uk',\n displayName: 'user',\n isContactableByPublic: true,\n profileType: 'workspace' as ProfileTypeName,\n workspaceType: 'Sheetpress'\n }\n };\n return
\n console.log()} />\n
;\n}",...null==(l=null==(m=o.parameters)?void 0:m.docs)?void 0:l.source}}};const H=["DefaultMember","DefaultSpace"];export{e as DefaultMember,o as DefaultSpace,H as __namedExportsOrder,G as default}; \ No newline at end of file diff --git a/storybook-static/assets/ProfileLink-BNudREw6.js b/storybook-static/assets/ProfileLink-BNudREw6.js new file mode 100644 index 0000000000..730db0fb8b --- /dev/null +++ b/storybook-static/assets/ProfileLink-BNudREw6.js @@ -0,0 +1 @@ +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{E as i}from"./ExternalLink-CHmx7fZ7.js";import{I as n}from"./Icon-DVJa_328.js";import{F as c,a as v}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=e=>e.charAt(0).toUpperCase()+e.slice(1),s=(e,a)=>"email"===a?`mailto:${e}`:0===e.indexOf("http")?e:`http://${e}`,d=[{pattern:new RegExp(/twitter\.com/),label:"Twitter"},{pattern:new RegExp(/facebook\.com/),label:"Facebook"},{pattern:new RegExp(/youtube\.com/),label:"Youtube"},{pattern:new RegExp(/instagram\.com/),label:"Instagram"}],p=(e,a)=>{const l=d.find((e=>e.pattern.test(a)));return l?l.label:e&&r(e)},u=e=>{const{url:a,label:l}=e;return t.jsxs(c,{sx:{justifyContent:"flex-start",alignItems:"center",flexDirection:"row",mt:0,...e.sx},children:[t.jsx(v,{children:t.jsx(n,{glyph:e.icon,size:22})}),t.jsx(i,{ml:2,color:"black","data-cy":"profile-link",href:s(a,l),children:p(l,a)})]})};try{r.displayName="capitalizeFirstLetter",r.__docgenInfo={description:"",displayName:"capitalizeFirstLetter",props:{}}}catch{}try{u.displayName="ProfileLink",u.__docgenInfo={description:"",displayName:"ProfileLink",props:{url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"filter"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"image"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"map"'},{value:'"menu"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"step"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"time"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"view"'},{value:'"volunteer"'},{value:'"website"'},{value:'"search"'},{value:'"globe"'},{value:'"gps-location"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUICSSObject"}}}}}catch{}export{u as P}; \ No newline at end of file diff --git a/storybook-static/assets/ProfileLink-Bn1AIGdm.js b/storybook-static/assets/ProfileLink-Bn1AIGdm.js deleted file mode 100644 index 9cac1e36bc..0000000000 --- a/storybook-static/assets/ProfileLink-Bn1AIGdm.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{E as i}from"./ExternalLink-CHmx7fZ7.js";import{I as n}from"./Icon-BoVZOGVD.js";import{F as c,a as v}from"./theme-ui-components.esm-DCiJ1mMX.js";const r=e=>e.charAt(0).toUpperCase()+e.slice(1),s=(e,a)=>"email"===a?`mailto:${e}`:0===e.indexOf("http")?e:`http://${e}`,d=[{pattern:new RegExp(/twitter\.com/),label:"Twitter"},{pattern:new RegExp(/facebook\.com/),label:"Facebook"},{pattern:new RegExp(/youtube\.com/),label:"Youtube"},{pattern:new RegExp(/instagram\.com/),label:"Instagram"}],p=(e,a)=>{const l=d.find((e=>e.pattern.test(a)));return l?l.label:e&&r(e)},u=e=>{const{url:a,label:l}=e;return t.jsxs(c,{sx:{justifyContent:"flex-start",alignItems:"center",flexDirection:"row",mt:0,...e.sx},children:[t.jsx(v,{children:t.jsx(n,{glyph:e.icon,size:22})}),t.jsx(i,{ml:2,color:"black","data-cy":"profile-link",href:s(a,l),children:p(l,a)})]})};try{r.displayName="capitalizeFirstLetter",r.__docgenInfo={description:"",displayName:"capitalizeFirstLetter",props:{}}}catch{}try{u.displayName="ProfileLink",u.__docgenInfo={description:"",displayName:"ProfileLink",props:{url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:"enum",value:[{value:'"map"'},{value:'"menu"'},{value:'"search"'},{value:'"time"'},{value:'"filter"'},{value:'"image"'},{value:'"view"'},{value:'"email"'},{value:'"step"'},{value:'"account-circle"'},{value:'"account"'},{value:'"add"'},{value:'"arrow-curved-bottom-right"'},{value:'"arrow-back"'},{value:'"arrow-down"'},{value:'"arrow-forward"'},{value:'"arrow-full-down"'},{value:'"arrow-full-up"'},{value:'"bazar"'},{value:'"check"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"close"'},{value:'"comment"'},{value:'"contact"'},{value:'"discord"'},{value:'"delete"'},{value:'"difficulty"'},{value:'"download"'},{value:'"download-cloud"'},{value:'"edit"'},{value:'"email-outline"'},{value:'"employee"'},{value:'"external-link"'},{value:'"external-url"'},{value:'"facebook"'},{value:'"flag-unknown"'},{value:'"hide"'},{value:'"hyperlink"'},{value:'"impact"'},{value:'"instagram"'},{value:'"loading"'},{value:'"location-on"'},{value:'"lock"'},{value:'"machine"'},{value:'"mail-outline"'},{value:'"more-vert"'},{value:'"notifications"'},{value:'"patreon"'},{value:'"pdf"'},{value:'"plastic"'},{value:'"profile"'},{value:'"revenue"'},{value:'"show"'},{value:'"slack"'},{value:'"sliders"'},{value:'"social-media"'},{value:'"star"'},{value:'"star-active"'},{value:'"supporter"'},{value:'"thunderbolt"'},{value:'"thunderbolt-grey"'},{value:'"turned-in"'},{value:'"update"'},{value:'"upload"'},{value:'"useful"'},{value:'"verified"'},{value:'"volunteer"'},{value:'"website"'},{value:'"globe"'},{value:'"gps-location"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUICSSObject"}}}}}catch{}export{u as P}; \ No newline at end of file diff --git a/storybook-static/assets/ProfileLink.stories-DJ8teJjL.js b/storybook-static/assets/ProfileLink.stories-BLDd-sr2.js similarity index 96% rename from storybook-static/assets/ProfileLink.stories-DJ8teJjL.js rename to storybook-static/assets/ProfileLink.stories-BLDd-sr2.js index 975af1b31b..1605577793 100644 --- a/storybook-static/assets/ProfileLink.stories-DJ8teJjL.js +++ b/storybook-static/assets/ProfileLink.stories-BLDd-sr2.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{P as e}from"./ProfileLink-Bn1AIGdm.js";import"./index-BP8_t0zE.js";import"./ExternalLink-CHmx7fZ7.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";const K={title:"Components/ProfileLink",component:e},o=()=>a.jsx(e,{url:"https://instagram.com",label:"social media",icon:"social-media"}),r=()=>a.jsx(e,{url:"https://facebook.com",label:"social media",icon:"social-media"}),s=()=>a.jsx(e,{url:"https://youtube.com",label:"social media",icon:"social-media"}),i=()=>a.jsx(e,{url:"https://twitter.com",label:"social media",icon:"social-media"}),t=()=>a.jsx(e,{url:"info@preciousplastic.com",label:"email",icon:"email"}),c=()=>a.jsx(e,{url:"https://bazar.preciousplastic.com/abc",label:"bazar",icon:"bazar"}),m=()=>a.jsx(e,{url:"https://example.com",label:"website",icon:"website"});var l,p,n,u,d,b,f,k,x,h,g,P,L,j,w,z,S,E,_,y,B;o.parameters={...o.parameters,docs:{...null==(l=o.parameters)?void 0:l.docs,source:{originalSource:'() => ',...null==(n=null==(p=o.parameters)?void 0:p.docs)?void 0:n.source}}},r.parameters={...r.parameters,docs:{...null==(u=r.parameters)?void 0:u.docs,source:{originalSource:'() => ',...null==(b=null==(d=r.parameters)?void 0:d.docs)?void 0:b.source}}},s.parameters={...s.parameters,docs:{...null==(f=s.parameters)?void 0:f.docs,source:{originalSource:'() => ',...null==(x=null==(k=s.parameters)?void 0:k.docs)?void 0:x.source}}},i.parameters={...i.parameters,docs:{...null==(h=i.parameters)?void 0:h.docs,source:{originalSource:'() => ',...null==(P=null==(g=i.parameters)?void 0:g.docs)?void 0:P.source}}},t.parameters={...t.parameters,docs:{...null==(L=t.parameters)?void 0:L.docs,source:{originalSource:'() => ',...null==(w=null==(j=t.parameters)?void 0:j.docs)?void 0:w.source}}},c.parameters={...c.parameters,docs:{...null==(z=c.parameters)?void 0:z.docs,source:{originalSource:'() => ',...null==(E=null==(S=c.parameters)?void 0:S.docs)?void 0:E.source}}},m.parameters={...m.parameters,docs:{...null==(_=m.parameters)?void 0:_.docs,source:{originalSource:'() => ',...null==(B=null==(y=m.parameters)?void 0:y.docs)?void 0:B.source}}};const M=["Instagram","Facebook","Youtube","Twitter","Email","Bazaar","Website"];export{c as Bazaar,t as Email,r as Facebook,o as Instagram,i as Twitter,m as Website,s as Youtube,M as __namedExportsOrder,K as default}; \ No newline at end of file +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{P as e}from"./ProfileLink-BNudREw6.js";import"./index-BP8_t0zE.js";import"./ExternalLink-CHmx7fZ7.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";const K={title:"Components/ProfileLink",component:e},o=()=>a.jsx(e,{url:"https://instagram.com",label:"social media",icon:"social-media"}),r=()=>a.jsx(e,{url:"https://facebook.com",label:"social media",icon:"social-media"}),s=()=>a.jsx(e,{url:"https://youtube.com",label:"social media",icon:"social-media"}),i=()=>a.jsx(e,{url:"https://twitter.com",label:"social media",icon:"social-media"}),t=()=>a.jsx(e,{url:"info@preciousplastic.com",label:"email",icon:"email"}),c=()=>a.jsx(e,{url:"https://bazar.preciousplastic.com/abc",label:"bazar",icon:"bazar"}),m=()=>a.jsx(e,{url:"https://example.com",label:"website",icon:"website"});var l,p,n,u,d,b,f,k,x,h,g,P,L,j,w,z,S,E,_,y,B;o.parameters={...o.parameters,docs:{...null==(l=o.parameters)?void 0:l.docs,source:{originalSource:'() => ',...null==(n=null==(p=o.parameters)?void 0:p.docs)?void 0:n.source}}},r.parameters={...r.parameters,docs:{...null==(u=r.parameters)?void 0:u.docs,source:{originalSource:'() => ',...null==(b=null==(d=r.parameters)?void 0:d.docs)?void 0:b.source}}},s.parameters={...s.parameters,docs:{...null==(f=s.parameters)?void 0:f.docs,source:{originalSource:'() => ',...null==(x=null==(k=s.parameters)?void 0:k.docs)?void 0:x.source}}},i.parameters={...i.parameters,docs:{...null==(h=i.parameters)?void 0:h.docs,source:{originalSource:'() => ',...null==(P=null==(g=i.parameters)?void 0:g.docs)?void 0:P.source}}},t.parameters={...t.parameters,docs:{...null==(L=t.parameters)?void 0:L.docs,source:{originalSource:'() => ',...null==(w=null==(j=t.parameters)?void 0:j.docs)?void 0:w.source}}},c.parameters={...c.parameters,docs:{...null==(z=c.parameters)?void 0:z.docs,source:{originalSource:'() => ',...null==(E=null==(S=c.parameters)?void 0:S.docs)?void 0:E.source}}},m.parameters={...m.parameters,docs:{...null==(_=m.parameters)?void 0:_.docs,source:{originalSource:'() => ',...null==(B=null==(y=m.parameters)?void 0:y.docs)?void 0:B.source}}};const M=["Instagram","Facebook","Youtube","Twitter","Email","Bazaar","Website"];export{c as Bazaar,t as Email,r as Facebook,o as Instagram,i as Twitter,m as Website,s as Youtube,M as __namedExportsOrder,K as default}; \ No newline at end of file diff --git a/storybook-static/assets/ResearchEditorOverview-DHGZ1VKA.js b/storybook-static/assets/ResearchEditorOverview-TBcr6efP.js similarity index 97% rename from storybook-static/assets/ResearchEditorOverview-DHGZ1VKA.js rename to storybook-static/assets/ResearchEditorOverview-TBcr6efP.js index cafe29ebe3..7f3845b43e 100644 --- a/storybook-static/assets/ResearchEditorOverview-DHGZ1VKA.js +++ b/storybook-static/assets/ResearchEditorOverview-TBcr6efP.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{c as x,a as f,b as l}from"./index.esm-D0u3ndg0.js";import{B as n}from"./Button-B7QBvkxh.js";import{I as s}from"./InternalLink-CtyTe3gy.js";import{C as b,H as g,a as o,T as c}from"./theme-ui-components.esm-DCiJ1mMX.js";const v=x({isActive:f().required(),title:l().required(),status:l().optional(),slug:l().nullable()}),d=t=>{const{updates:a,sx:r,researchSlug:l,showCreateUpdateButton:i,showBackToResearchButton:d}=t;return e.jsxs(b,{sx:{p:4,...r},children:[e.jsx(g,{as:"h2",mb:3,variant:"small",children:"Research overview"}),null!=a&&a.length?e.jsx(o,{as:"ul",sx:{margin:0,mb:4,p:0,pl:3},children:a.filter((e=>v.isValidSync(e))).map(((t,a)=>e.jsx(o,{as:"li",sx:{mb:1},children:e.jsxs(c,{variant:"quiet",children:["draft"===t.status?e.jsx(c,{sx:{display:"inline-block",verticalAlign:"middle",color:"black",fontSize:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",background:"accent.base",padding:1,borderRadius:1,borderBottomRightRadius:1,mr:1},children:"Draft"}):null,t.isActive?e.jsx("strong",{children:t.title}):e.jsxs(e.Fragment,{children:[t.title,t.slug?e.jsx(s,{to:`/research/${l}/edit-update/${t.slug}`,sx:{display:"inline-block",ml:1},children:"Edit"}):null]})]})},a)))}):null,i?e.jsx(n,{small:!0,sx:{mr:2},"data-cy":"create-update",type:"button",children:e.jsx(s,{to:`/research/${l}/new-update`,sx:{color:"black"},children:"Create update"})}):null,d?e.jsx(n,{small:!0,variant:"outline",type:"button",children:e.jsx(s,{to:`/research/${l}/edit`,sx:{color:"black"},children:"Back to research"})}):null]})};try{d.displayName="ResearchEditorOverview",d.__docgenInfo={description:"",displayName:"ResearchEditorOverview",props:{updates:{defaultValue:null,description:"",name:"updates",required:!0,type:{name:"ResearchEditorOverviewUpdate[]"}},researchSlug:{defaultValue:null,description:"",name:"researchSlug",required:!0,type:{name:"string"}},newItemTitle:{defaultValue:null,description:"",name:"newItemTitle",required:!1,type:{name:"string"}},showCreateUpdateButton:{defaultValue:null,description:"",name:"showCreateUpdateButton",required:!1,type:{name:"boolean"}},showBackToResearchButton:{defaultValue:null,description:"",name:"showBackToResearchButton",required:!1,type:{name:"boolean"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{d as R}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{c as x,a as f,b as l}from"./index.esm-D0u3ndg0.js";import{B as n}from"./Button-1qf_V-Zv.js";import{I as s}from"./InternalLink-CtyTe3gy.js";import{C as b,H as g,a as o,T as c}from"./theme-ui-components.esm-DCiJ1mMX.js";const v=x({isActive:f().required(),title:l().required(),status:l().optional(),slug:l().nullable()}),d=t=>{const{updates:a,sx:r,researchSlug:l,showCreateUpdateButton:i,showBackToResearchButton:d}=t;return e.jsxs(b,{sx:{p:4,...r},children:[e.jsx(g,{as:"h2",mb:3,variant:"small",children:"Research overview"}),null!=a&&a.length?e.jsx(o,{as:"ul",sx:{margin:0,mb:4,p:0,pl:3},children:a.filter((e=>v.isValidSync(e))).map(((t,a)=>e.jsx(o,{as:"li",sx:{mb:1},children:e.jsxs(c,{variant:"quiet",children:["draft"===t.status?e.jsx(c,{sx:{display:"inline-block",verticalAlign:"middle",color:"black",fontSize:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",background:"accent.base",padding:1,borderRadius:1,borderBottomRightRadius:1,mr:1},children:"Draft"}):null,t.isActive?e.jsx("strong",{children:t.title}):e.jsxs(e.Fragment,{children:[t.title,t.slug?e.jsx(s,{to:`/research/${l}/edit-update/${t.slug}`,sx:{display:"inline-block",ml:1},children:"Edit"}):null]})]})},a)))}):null,i?e.jsx(n,{small:!0,sx:{mr:2},"data-cy":"create-update",type:"button",children:e.jsx(s,{to:`/research/${l}/new-update`,sx:{color:"black"},children:"Create update"})}):null,d?e.jsx(n,{small:!0,variant:"outline",type:"button",children:e.jsx(s,{to:`/research/${l}/edit`,sx:{color:"black"},children:"Back to research"})}):null]})};try{d.displayName="ResearchEditorOverview",d.__docgenInfo={description:"",displayName:"ResearchEditorOverview",props:{updates:{defaultValue:null,description:"",name:"updates",required:!0,type:{name:"ResearchEditorOverviewUpdate[]"}},researchSlug:{defaultValue:null,description:"",name:"researchSlug",required:!0,type:{name:"string"}},newItemTitle:{defaultValue:null,description:"",name:"newItemTitle",required:!1,type:{name:"string"}},showCreateUpdateButton:{defaultValue:null,description:"",name:"showCreateUpdateButton",required:!1,type:{name:"boolean"}},showBackToResearchButton:{defaultValue:null,description:"",name:"showBackToResearchButton",required:!1,type:{name:"boolean"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{d as R}; \ No newline at end of file diff --git a/storybook-static/assets/ResearchEditorOverview.stories-BLK3g5Q6.js b/storybook-static/assets/ResearchEditorOverview.stories-CZQg78Pu.js similarity index 92% rename from storybook-static/assets/ResearchEditorOverview.stories-BLK3g5Q6.js rename to storybook-static/assets/ResearchEditorOverview.stories-CZQg78Pu.js index 444f28f53e..201164f2d5 100644 --- a/storybook-static/assets/ResearchEditorOverview.stories-BLK3g5Q6.js +++ b/storybook-static/assets/ResearchEditorOverview.stories-CZQg78Pu.js @@ -1 +1 @@ -import{j as B}from"./jsx-runtime-CexXSJP5.js";import{R as w}from"./ResearchEditorOverview-DHGZ1VKA.js";import"./index-BP8_t0zE.js";import"./index.esm-D0u3ndg0.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const G={title:"Layout/ResearchEditorOverview",component:w},a=e=>B.jsx(w,{...e}),e=a.bind({});e.args={updates:[{isActive:!0,title:"Update 1",slug:"update-1",status:"published"},{isActive:!1,title:"Update 2",slug:"update-2",status:"published"},{isActive:!1,title:"Update 3",slug:"update-3",status:"published"}],researchSlug:"abc",showBackToResearchButton:!0,showCreateUpdateButton:!0};const r=a.bind({});r.args={...e.args,showBackToResearchButton:!0};const t=a.bind({});t.args={...e.args,showCreateUpdateButton:!0};const s=a.bind({});var o,i,p,c,u,d,m,n,g,l,h,v;s.args={...e.args,updates:[{isActive:!1,title:"Update 1",slug:"update-1",status:"draft"}]},e.parameters={...e.parameters,docs:{...null==(o=e.parameters)?void 0:o.docs,source:{originalSource:"args => ",...null==(p=null==(i=e.parameters)?void 0:i.docs)?void 0:p.source}}},r.parameters={...r.parameters,docs:{...null==(c=r.parameters)?void 0:c.docs,source:{originalSource:"args => ",...null==(d=null==(u=r.parameters)?void 0:u.docs)?void 0:d.source}}},t.parameters={...t.parameters,docs:{...null==(m=t.parameters)?void 0:m.docs,source:{originalSource:"args => ",...null==(g=null==(n=t.parameters)?void 0:n.docs)?void 0:g.source}}},s.parameters={...s.parameters,docs:{...null==(l=s.parameters)?void 0:l.docs,source:{originalSource:"args => ",...null==(v=null==(h=s.parameters)?void 0:h.docs)?void 0:v.source}}};const H=["Default","ShowBackToResearchButton","ShowCreateUpdateButton","DraftItem"];export{e as Default,s as DraftItem,r as ShowBackToResearchButton,t as ShowCreateUpdateButton,H as __namedExportsOrder,G as default}; \ No newline at end of file +import{j as B}from"./jsx-runtime-CexXSJP5.js";import{R as w}from"./ResearchEditorOverview-TBcr6efP.js";import"./index-BP8_t0zE.js";import"./index.esm-D0u3ndg0.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const G={title:"Layout/ResearchEditorOverview",component:w},a=e=>B.jsx(w,{...e}),e=a.bind({});e.args={updates:[{isActive:!0,title:"Update 1",slug:"update-1",status:"published"},{isActive:!1,title:"Update 2",slug:"update-2",status:"published"},{isActive:!1,title:"Update 3",slug:"update-3",status:"published"}],researchSlug:"abc",showBackToResearchButton:!0,showCreateUpdateButton:!0};const r=a.bind({});r.args={...e.args,showBackToResearchButton:!0};const t=a.bind({});t.args={...e.args,showCreateUpdateButton:!0};const s=a.bind({});var o,i,p,c,u,d,m,n,g,l,h,v;s.args={...e.args,updates:[{isActive:!1,title:"Update 1",slug:"update-1",status:"draft"}]},e.parameters={...e.parameters,docs:{...null==(o=e.parameters)?void 0:o.docs,source:{originalSource:"args => ",...null==(p=null==(i=e.parameters)?void 0:i.docs)?void 0:p.source}}},r.parameters={...r.parameters,docs:{...null==(c=r.parameters)?void 0:c.docs,source:{originalSource:"args => ",...null==(d=null==(u=r.parameters)?void 0:u.docs)?void 0:d.source}}},t.parameters={...t.parameters,docs:{...null==(m=t.parameters)?void 0:m.docs,source:{originalSource:"args => ",...null==(g=null==(n=t.parameters)?void 0:n.docs)?void 0:g.source}}},s.parameters={...s.parameters,docs:{...null==(l=s.parameters)?void 0:l.docs,source:{originalSource:"args => ",...null==(v=null==(h=s.parameters)?void 0:h.docs)?void 0:v.source}}};const H=["Default","ShowBackToResearchButton","ShowCreateUpdateButton","DraftItem"];export{e as Default,s as DraftItem,r as ShowBackToResearchButton,t as ShowCreateUpdateButton,H as __namedExportsOrder,G as default}; \ No newline at end of file diff --git a/storybook-static/assets/SearchField-BEwe93wL.js b/storybook-static/assets/SearchField-Cykq-dlt.js similarity index 96% rename from storybook-static/assets/SearchField-BEwe93wL.js rename to storybook-static/assets/SearchField-Cykq-dlt.js index ef009f8c05..683da77cd2 100644 --- a/storybook-static/assets/SearchField-BEwe93wL.js +++ b/storybook-static/assets/SearchField-Cykq-dlt.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as n}from"./Icon-BoVZOGVD.js";import{a as t,d as h}from"./theme-ui-components.esm-DCiJ1mMX.js";const i=a=>{const{autoComplete:i="on",name:l="rand-name",id:r="rand-id",dataCy:d,placeHolder:o,value:s,onChange:u,onClickDelete:p,onClickSearch:c,additionalStyle:m={}}=a;return e.jsxs(t,{sx:{position:"relative",width:"100%",display:"flex",alignItems:"center"},children:[e.jsx(h,{autoComplete:i,name:l,id:r,variant:"inputOutline",type:"search","data-cy":d,placeholder:o,value:s,onChange:e=>u(e.target.value),sx:{paddingRight:11,"::-webkit-search-cancel-button":{display:"none"},"::-ms-clear":{display:"none"},...m}}),e.jsxs(t,{sx:{right:2,position:"absolute",display:"flex",alignItems:"center"},children:[s&&e.jsx(n,{sx:{display:"flex",alignItems:"center",marginRight:1},glyph:"close",onClick:p,size:"17"}),e.jsx(n,{sx:{display:"flex",alignItems:"center"},glyph:"search",onClick:c,size:"19"})]})]})};try{i.displayName="SearchField",i.__docgenInfo={description:"",displayName:"SearchField",props:{autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},dataCy:{defaultValue:null,description:"",name:"dataCy",required:!0,type:{name:"string"}},placeHolder:{defaultValue:null,description:"",name:"placeHolder",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: string) => void"}},onClickDelete:{defaultValue:null,description:"",name:"onClickDelete",required:!0,type:{name:"() => void"}},onClickSearch:{defaultValue:null,description:"",name:"onClickSearch",required:!0,type:{name:"() => void"}},additionalStyle:{defaultValue:null,description:"",name:"additionalStyle",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{i as S}; \ No newline at end of file +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{I as n}from"./Icon-DVJa_328.js";import{a as t,d as h}from"./theme-ui-components.esm-DCiJ1mMX.js";const i=a=>{const{autoComplete:i="on",name:l="rand-name",id:r="rand-id",dataCy:d,placeHolder:o,value:s,onChange:u,onClickDelete:p,onClickSearch:c,additionalStyle:m={}}=a;return e.jsxs(t,{sx:{position:"relative",width:"100%",display:"flex",alignItems:"center"},children:[e.jsx(h,{autoComplete:i,name:l,id:r,variant:"inputOutline",type:"search","data-cy":d,placeholder:o,value:s,onChange:e=>u(e.target.value),sx:{paddingRight:11,"::-webkit-search-cancel-button":{display:"none"},"::-ms-clear":{display:"none"},...m}}),e.jsxs(t,{sx:{right:2,position:"absolute",display:"flex",alignItems:"center"},children:[s&&e.jsx(n,{sx:{display:"flex",alignItems:"center",marginRight:1},glyph:"close",onClick:p,size:"17"}),e.jsx(n,{sx:{display:"flex",alignItems:"center"},glyph:"search",onClick:c,size:"19"})]})]})};try{i.displayName="SearchField",i.__docgenInfo={description:"",displayName:"SearchField",props:{autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},dataCy:{defaultValue:null,description:"",name:"dataCy",required:!0,type:{name:"string"}},placeHolder:{defaultValue:null,description:"",name:"placeHolder",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: string) => void"}},onClickDelete:{defaultValue:null,description:"",name:"onClickDelete",required:!0,type:{name:"() => void"}},onClickSearch:{defaultValue:null,description:"",name:"onClickSearch",required:!0,type:{name:"() => void"}},additionalStyle:{defaultValue:null,description:"",name:"additionalStyle",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{i as S}; \ No newline at end of file diff --git a/storybook-static/assets/SearchField.stories-CWzhmEu1.js b/storybook-static/assets/SearchField.stories-rsn2p4Oo.js similarity index 90% rename from storybook-static/assets/SearchField.stories-CWzhmEu1.js rename to storybook-static/assets/SearchField.stories-rsn2p4Oo.js index 05f7543dd3..5494a9d091 100644 --- a/storybook-static/assets/SearchField.stories-CWzhmEu1.js +++ b/storybook-static/assets/SearchField.stories-rsn2p4Oo.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{S as s}from"./SearchField-BEwe93wL.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const v={title:"Forms/SearchField",component:s},e=()=>{const[e,r]=u.useState("");return i.jsx(s,{dataCy:"default-search-box",placeHolder:"Default search",value:e,onChange:e=>r(e),onClickDelete:()=>r(""),onClickSearch:()=>{}})};var a,t,o;e.parameters={...e.parameters,docs:{...null==(a=e.parameters)?void 0:a.docs,source:{originalSource:"() => {\n const [searchValue, setSearchValue] = useState('');\n return setSearchValue(value)} onClickDelete={() => setSearchValue('')} onClickSearch={() => {}} />;\n}",...null==(o=null==(t=e.parameters)?void 0:t.docs)?void 0:o.source}}};const j=["Default"];export{e as Default,j as __namedExportsOrder,v as default}; \ No newline at end of file +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{S as s}from"./SearchField-Cykq-dlt.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";const v={title:"Forms/SearchField",component:s},e=()=>{const[e,r]=u.useState("");return i.jsx(s,{dataCy:"default-search-box",placeHolder:"Default search",value:e,onChange:e=>r(e),onClickDelete:()=>r(""),onClickSearch:()=>{}})};var a,t,o;e.parameters={...e.parameters,docs:{...null==(a=e.parameters)?void 0:a.docs,source:{originalSource:"() => {\n const [searchValue, setSearchValue] = useState('');\n return setSearchValue(value)} onClickDelete={() => setSearchValue('')} onClickSearch={() => {}} />;\n}",...null==(o=null==(t=e.parameters)?void 0:t.docs)?void 0:o.source}}};const j=["Default"];export{e as Default,j as __namedExportsOrder,v as default}; \ No newline at end of file diff --git a/storybook-static/assets/SettingsFormWrapper-CUpe9h_U.js b/storybook-static/assets/SettingsFormWrapper-DAzZ8D8d.js similarity index 98% rename from storybook-static/assets/SettingsFormWrapper-CUpe9h_U.js rename to storybook-static/assets/SettingsFormWrapper-DAzZ8D8d.js index 17c3cc3591..0f68ab476d 100644 --- a/storybook-static/assets/SettingsFormWrapper-CUpe9h_U.js +++ b/storybook-static/assets/SettingsFormWrapper-DAzZ8D8d.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{C as b,a as j,F as u}from"./theme-ui-components.esm-DCiJ1mMX.js";import{a as S,T,t as x,c as v,b as F}from"./TabsList-DhTEw6FA.js";import{n as g}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{I as C}from"./Icon-BoVZOGVD.js";import{I}from"./InternalLink-CtyTe3gy.js";import{S as w}from"./Select-vDnhT3MJ.js";import{u as L,a as N,m as V}from"./index-BXxqJQdV.js";import{r as y}from"./index-BP8_t0zE.js";function $(e){return y.forwardRef((function(t,r){const{ownerState:n,...a}=t;return y.createElement(e,{...a,ref:r})}))}const m=t=>{const{tab:r,value:n}=t,{body:a,header:s,notifications:o}=r,l={borderRadius:3,marginBottom:4,padding:[2,4],overflow:"visible"};return e.jsxs(S,{value:n,style:{display:"flex",flexDirection:"column",alignSelf:"stretch"},children:[s&&e.jsx(b,{sx:{...l,backgroundColor:"softblue",padding:[3,5]},children:s}),o&&e.jsx(j,{sx:{...l,padding:0},children:o}),e.jsx(b,{sx:l,children:a})]})};try{m.displayName="SettingsFormTab",m.__docgenInfo={description:"",displayName:"SettingsFormTab",props:{tab:{defaultValue:null,description:"",name:"tab",required:!0,type:{name:"ITab"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}}}}}catch{}const d=e=>`/settings/${e.toLowerCase()}`,f=t=>{var r;const{currentTab:n,tabs:a}=t,s=L(),o=g(T)` +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{C as b,a as j,F as u}from"./theme-ui-components.esm-DCiJ1mMX.js";import{a as S,T,t as x,c as v,b as F}from"./TabsList-DhTEw6FA.js";import{n as g}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{I as C}from"./Icon-DVJa_328.js";import{I}from"./InternalLink-CtyTe3gy.js";import{S as w}from"./Select-vDnhT3MJ.js";import{u as L,a as N,m as V}from"./index-BXxqJQdV.js";import{r as y}from"./index-BP8_t0zE.js";function $(e){return y.forwardRef((function(t,r){const{ownerState:n,...a}=t;return y.createElement(e,{...a,ref:r})}))}const m=t=>{const{tab:r,value:n}=t,{body:a,header:s,notifications:o}=r,l={borderRadius:3,marginBottom:4,padding:[2,4],overflow:"visible"};return e.jsxs(S,{value:n,style:{display:"flex",flexDirection:"column",alignSelf:"stretch"},children:[s&&e.jsx(b,{sx:{...l,backgroundColor:"softblue",padding:[3,5]},children:s}),o&&e.jsx(j,{sx:{...l,padding:0},children:o}),e.jsx(b,{sx:l,children:a})]})};try{m.displayName="SettingsFormTab",m.__docgenInfo={description:"",displayName:"SettingsFormTab",props:{tab:{defaultValue:null,description:"",name:"tab",required:!0,type:{name:"ITab"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}}}}}catch{}const d=e=>`/settings/${e.toLowerCase()}`,f=t=>{var r;const{currentTab:n,tabs:a}=t,s=L(),o=g(T)` color: grey; cursor: pointer; background-color: transparent; diff --git a/storybook-static/assets/SettingsFormWrapper.stories-Dkp1IMvh.js b/storybook-static/assets/SettingsFormWrapper.stories-PpNf0hMD.js similarity index 96% rename from storybook-static/assets/SettingsFormWrapper.stories-Dkp1IMvh.js rename to storybook-static/assets/SettingsFormWrapper.stories-PpNf0hMD.js index 35a2079dd0..7f77090c60 100644 --- a/storybook-static/assets/SettingsFormWrapper.stories-Dkp1IMvh.js +++ b/storybook-static/assets/SettingsFormWrapper.stories-PpNf0hMD.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{S as i}from"./SettingsFormWrapper-CUpe9h_U.js";import{A as o,T as n}from"./theme-ui-components.esm-DCiJ1mMX.js";import"./index-BP8_t0zE.js";import"./TabsList-DhTEw6FA.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./Icon-BoVZOGVD.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./Select-vDnhT3MJ.js";import"./defineProperty-Dr9G4DxF.js";import"./typeof-QjJsDpFa.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./setPrototypeOf-NYsvoNVB.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./cjs-Clfm10Kj.js";const G={title:"Forms/SettingsFormWrapper",component:i},r=()=>t.jsxs("div",{style:{maxWidth:"900px",margin:"0 auto"},children:[t.jsx(o,{variant:"failure",sx:{marginBottom:4},children:"Only for initial render - tech debt around routing within storybook"}),t.jsx(i,{tabs:[{title:"Profile",header:t.jsxs(t.Fragment,{children:[t.jsx(n,{as:"h3",children:"\u270f\ufe0f Complete your profile"}),t.jsx(n,{children:"In order to post comments or create content, we'd like you to share something about yourself."})]}),body:t.jsx(t.Fragment,{children:"Form Body 1"}),glyph:"thunderbolt"},{title:"Notifications",body:t.jsx(t.Fragment,{children:"Form Body 2"}),notifications:t.jsx(o,{variant:"success",children:"Nice, all submitted fine."}),glyph:"account-circle"},{title:"Bad",body:t.jsx(t.Fragment,{children:"Form Body 3"}),header:t.jsx(t.Fragment,{children:"Bad thing header"}),notifications:t.jsx(o,{variant:"failure",children:"Problem! Sort it out!"}),glyph:"bazar"}]})]}),e=()=>t.jsx("div",{style:{maxWidth:"900px"},children:t.jsx(i,{tabs:[{title:"Profile",body:t.jsx(t.Fragment,{children:"Anything for the moment"}),header:t.jsx(t.Fragment,{children:"header"}),glyph:"thunderbolt"}]})});var a,s,m,l,d,p;r.parameters={...r.parameters,docs:{...null==(a=r.parameters)?void 0:a.docs,source:{originalSource:"() =>
\n \n Only for initial render - tech debt around routing within storybook\n \n \n \u270f\ufe0f Complete your profile\n \n In order to post comments or create content, we'd like you to\n share something about yourself.\n \n ,\n body: <>Form Body 1,\n glyph: 'thunderbolt'\n }, {\n title: 'Notifications',\n body: <>Form Body 2,\n notifications: Nice, all submitted fine.,\n glyph: 'account-circle'\n }, {\n title: 'Bad',\n body: <>Form Body 3,\n header: <>Bad thing header,\n notifications: Problem! Sort it out!,\n glyph: 'bazar'\n }]} />\n
",...null==(m=null==(s=r.parameters)?void 0:s.docs)?void 0:m.source}}},e.parameters={...e.parameters,docs:{...null==(l=e.parameters)?void 0:l.docs,source:{originalSource:"() =>
\n Anything for the moment,\n header: <>header,\n glyph: 'thunderbolt'\n }]} />\n
",...null==(p=null==(d=e.parameters)?void 0:d.docs)?void 0:p.source}}};const H=["Default","SingleTab"];export{r as Default,e as SingleTab,H as __namedExportsOrder,G as default}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{S as i}from"./SettingsFormWrapper-DAzZ8D8d.js";import{A as o,T as n}from"./theme-ui-components.esm-DCiJ1mMX.js";import"./index-BP8_t0zE.js";import"./TabsList-DhTEw6FA.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./Icon-DVJa_328.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./Select-vDnhT3MJ.js";import"./defineProperty-Dr9G4DxF.js";import"./typeof-QjJsDpFa.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./setPrototypeOf-NYsvoNVB.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./cjs-Clfm10Kj.js";const G={title:"Forms/SettingsFormWrapper",component:i},r=()=>t.jsxs("div",{style:{maxWidth:"900px",margin:"0 auto"},children:[t.jsx(o,{variant:"failure",sx:{marginBottom:4},children:"Only for initial render - tech debt around routing within storybook"}),t.jsx(i,{tabs:[{title:"Profile",header:t.jsxs(t.Fragment,{children:[t.jsx(n,{as:"h3",children:"\u270f\ufe0f Complete your profile"}),t.jsx(n,{children:"In order to post comments or create content, we'd like you to share something about yourself."})]}),body:t.jsx(t.Fragment,{children:"Form Body 1"}),glyph:"thunderbolt"},{title:"Notifications",body:t.jsx(t.Fragment,{children:"Form Body 2"}),notifications:t.jsx(o,{variant:"success",children:"Nice, all submitted fine."}),glyph:"account-circle"},{title:"Bad",body:t.jsx(t.Fragment,{children:"Form Body 3"}),header:t.jsx(t.Fragment,{children:"Bad thing header"}),notifications:t.jsx(o,{variant:"failure",children:"Problem! Sort it out!"}),glyph:"bazar"}]})]}),e=()=>t.jsx("div",{style:{maxWidth:"900px"},children:t.jsx(i,{tabs:[{title:"Profile",body:t.jsx(t.Fragment,{children:"Anything for the moment"}),header:t.jsx(t.Fragment,{children:"header"}),glyph:"thunderbolt"}]})});var a,s,m,l,d,p;r.parameters={...r.parameters,docs:{...null==(a=r.parameters)?void 0:a.docs,source:{originalSource:"() =>
\n \n Only for initial render - tech debt around routing within storybook\n \n \n \u270f\ufe0f Complete your profile\n \n In order to post comments or create content, we'd like you to\n share something about yourself.\n \n ,\n body: <>Form Body 1,\n glyph: 'thunderbolt'\n }, {\n title: 'Notifications',\n body: <>Form Body 2,\n notifications: Nice, all submitted fine.,\n glyph: 'account-circle'\n }, {\n title: 'Bad',\n body: <>Form Body 3,\n header: <>Bad thing header,\n notifications: Problem! Sort it out!,\n glyph: 'bazar'\n }]} />\n
",...null==(m=null==(s=r.parameters)?void 0:s.docs)?void 0:m.source}}},e.parameters={...e.parameters,docs:{...null==(l=e.parameters)?void 0:l.docs,source:{originalSource:"() =>
\n Anything for the moment,\n header: <>header,\n glyph: 'thunderbolt'\n }]} />\n
",...null==(p=null==(d=e.parameters)?void 0:d.docs)?void 0:p.source}}};const H=["Default","SingleTab"];export{r as Default,e as SingleTab,H as __namedExportsOrder,G as default}; \ No newline at end of file diff --git a/storybook-static/assets/SiteFooter-BzW_8Cd0.js b/storybook-static/assets/SiteFooter-CL9myLOY.js similarity index 88% rename from storybook-static/assets/SiteFooter-BzW_8Cd0.js rename to storybook-static/assets/SiteFooter-CL9myLOY.js index 54e38d2293..3b2466e05b 100644 --- a/storybook-static/assets/SiteFooter-BzW_8Cd0.js +++ b/storybook-static/assets/SiteFooter-CL9myLOY.js @@ -1,7 +1,7 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{n}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{E as p}from"./ExternalLink-CHmx7fZ7.js";import{I as m}from"./Icon-BoVZOGVD.js";import{F as l,T as i}from"./theme-ui-components.esm-DCiJ1mMX.js";const a=({siteName:e})=>{const r=n(p)` +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{n}from"./emotion-styled.browser.esm-Dz2BNYeh.js";import{E as p}from"./ExternalLink-CHmx7fZ7.js";import{I as m}from"./Icon-DVJa_328.js";import{F as l,T as i}from"./theme-ui-components.esm-DCiJ1mMX.js";const a=({siteName:e})=>{const r=n(p)` color: #fff; text-decoration: underline; - `,o=n(l)` + `,a=n(l)` color: #fff; display: flex; flex-direction: column; @@ -25,10 +25,10 @@ import{j as t}from"./jsx-runtime-CexXSJP5.js";import{n}from"./emotion-styled.bro padding-right: ${310}px; text-align: left; } - `,a=n(m)` + `,o=n(m)` @media only screen and (min-width: ${e=>e.theme.breakpoints[1]}) and (max-width: ${e=>e.theme.breakpoints[2]}) { position: absolute; top: 45px; left: 30px; } - `;return t.jsxs(o,{bg:"#27272c",sx:{alignItems:"center"},style:{marginTop:"45px"},children:[t.jsx(a,{glyph:"star-active",mb:[3,3,0]}),t.jsxs(i,{ml:[0,0,0,3],mr:1,children:[e," is a project by"," ",t.jsx(r,{href:"https://onearmy.earth/",children:"One Army"}),"."]}),t.jsxs(i,{mt:[2,2,0],children:["Please"," ",t.jsx(r,{href:"https://www.patreon.com/one_army",children:"sponsor the work"})," ","or"," ",t.jsx(r,{href:"https://platform.onearmy.earth/",children:"help\xa0us\xa0build\xa0the\xa0software"}),"."]})]})};try{a.displayName="SiteFooter",a.__docgenInfo={description:"",displayName:"SiteFooter",props:{siteName:{defaultValue:null,description:"",name:"siteName",required:!0,type:{name:"string"}}}}}catch{}export{a as S}; \ No newline at end of file + `;return t.jsxs(a,{bg:"#27272c",sx:{alignItems:"center"},style:{marginTop:"45px"},children:[t.jsx(o,{glyph:"star-active",mb:[3,3,0]}),t.jsxs(i,{ml:[0,0,0,3],mr:1,children:[e," is a project by"," ",t.jsx(r,{href:"https://onearmy.earth/",children:"One Army"}),"."]}),t.jsxs(i,{mt:[2,2,0],children:["Please"," ",t.jsx(r,{href:"https://www.patreon.com/one_army",children:"sponsor the work"})," ","or"," ",t.jsx(r,{href:"https://platform.onearmy.earth/",children:"help\xa0us\xa0build\xa0the\xa0software"}),"."]})]})};try{a.displayName="SiteFooter",a.__docgenInfo={description:"",displayName:"SiteFooter",props:{siteName:{defaultValue:null,description:"",name:"siteName",required:!0,type:{name:"string"}}}}}catch{}export{a as S}; \ No newline at end of file diff --git a/storybook-static/assets/SiteFooter.stories-CHXKX6kl.js b/storybook-static/assets/SiteFooter.stories-C8FebAdX.js similarity index 87% rename from storybook-static/assets/SiteFooter.stories-CHXKX6kl.js rename to storybook-static/assets/SiteFooter.stories-C8FebAdX.js index ff21446e00..815db58f4b 100644 --- a/storybook-static/assets/SiteFooter.stories-CHXKX6kl.js +++ b/storybook-static/assets/SiteFooter.stories-C8FebAdX.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{S as i}from"./SiteFooter-BzW_8Cd0.js";import"./index-BP8_t0zE.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./ExternalLink-CHmx7fZ7.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Icon-BoVZOGVD.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";const D={title:"Layout/SiteFooter",component:i},t=()=>s.jsx(i,{siteName:"Precious Plastic"});var o,r,e;t.parameters={...t.parameters,docs:{...null==(o=t.parameters)?void 0:o.docs,source:{originalSource:'() => ',...null==(e=null==(r=t.parameters)?void 0:r.docs)?void 0:e.source}}};const E=["Default"];export{t as Default,E as __namedExportsOrder,D as default}; \ No newline at end of file +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{S as i}from"./SiteFooter-CL9myLOY.js";import"./index-BP8_t0zE.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./ExternalLink-CHmx7fZ7.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./Icon-DVJa_328.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";const D={title:"Layout/SiteFooter",component:i},t=()=>s.jsx(i,{siteName:"Precious Plastic"});var o,r,e;t.parameters={...t.parameters,docs:{...null==(o=t.parameters)?void 0:o.docs,source:{originalSource:'() => ',...null==(e=null==(r=t.parameters)?void 0:r.docs)?void 0:e.source}}};const E=["Default"];export{t as Default,E as __namedExportsOrder,D as default}; \ No newline at end of file diff --git a/storybook-static/assets/SoundCloud-CnZaMkF4.js b/storybook-static/assets/SoundCloud-DsED7oBZ.js similarity index 97% rename from storybook-static/assets/SoundCloud-CnZaMkF4.js rename to storybook-static/assets/SoundCloud-DsED7oBZ.js index dc2d0cbeab..eb89d202d2 100644 --- a/storybook-static/assets/SoundCloud-CnZaMkF4.js +++ b/storybook-static/assets/SoundCloud-DsED7oBZ.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-BP8_t0zE.js";import{u as b,p as v}from"./VideoPlayer-Dmkl06KS.js";function O(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},d=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!E.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=w(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?S(C(e)):{},d(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),R=e=>d(l({},"__esModule",{value:!0}),e),a=(e,t,r)=>(D(e,"symbol"!=typeof t?t+"":t,r),r),h={};L(h,{default:()=>u});var f=R(h),p=M(g),c=b,T=v;const N="https://w.soundcloud.com/player/api.js",x="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",(()=>{this.setVolume(0)})),a(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,c.getSDK)(N,x).then((r=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:s,PAUSE:a,FINISH:i,ERROR:l}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(a,(()=>{this.duration-this.currentTime<.05||this.props.onPause()})),this.player.bind(s,(e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress})),this.player.bind(i,(()=>this.props.onEnded())),this.player.bind(l,(e=>this.props.onError(e)))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration((e=>{this.duration=e/1e3,this.props.onReady()}))}})}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:t,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud"),a(u,"canPlay",T.canPlay.soundcloud),a(u,"loopOnEnded",!0);const A=P(f),I=O({__proto__:null,default:A},[f]);export{I as S}; \ No newline at end of file +import{g as P,r as g}from"./index-BP8_t0zE.js";import{u as b,p as v}from"./VideoPlayer-Dilqd3c4.js";function O(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},d=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!E.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=w(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?S(C(e)):{},d(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),R=e=>d(l({},"__esModule",{value:!0}),e),a=(e,t,r)=>(D(e,"symbol"!=typeof t?t+"":t,r),r),h={};L(h,{default:()=>u});var f=R(h),p=M(g),c=b,T=v;const N="https://w.soundcloud.com/player/api.js",x="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",(()=>{this.setVolume(0)})),a(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),a(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,c.getSDK)(N,x).then((r=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:s,PAUSE:a,FINISH:i,ERROR:l}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(a,(()=>{this.duration-this.currentTime<.05||this.props.onPause()})),this.player.bind(s,(e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress})),this.player.bind(i,(()=>this.props.onEnded())),this.player.bind(l,(e=>this.props.onError(e)))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration((e=>{this.duration=e/1e3,this.props.onReady()}))}})}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:t,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud"),a(u,"canPlay",T.canPlay.soundcloud),a(u,"loopOnEnded",!0);const A=P(f),I=O({__proto__:null,default:A},[f]);export{I as S}; \ No newline at end of file diff --git a/storybook-static/assets/Streamable-B__-bKin.js b/storybook-static/assets/Streamable-LmIOlNYG.js similarity index 97% rename from storybook-static/assets/Streamable-B__-bKin.js rename to storybook-static/assets/Streamable-LmIOlNYG.js index b891e93b2e..0ab5e74266 100644 --- a/storybook-static/assets/Streamable-B__-bKin.js +++ b/storybook-static/assets/Streamable-LmIOlNYG.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-BP8_t0zE.js";import{u as _,p as b}from"./VideoPlayer-Dmkl06KS.js";function P(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of O(t))!j.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=v(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?g(S(e)):{},c(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(L(e,"symbol"!=typeof t?t+"":t,r),r),h={};w(h,{default:()=>n});var y=D(h),p=M(f),u=_,d=b;const E="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class n extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")})),o(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(E,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t})),this.player.on("buffered",(({percent:e})=>{this.duration&&(this.secondsLoaded=this.duration*e)})),this.props.muted&&this.player.mute())}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1];return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}o(n,"displayName","Streamable"),o(n,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; \ No newline at end of file +import{g as m,r as f}from"./index-BP8_t0zE.js";import{u as _,p as b}from"./VideoPlayer-Dilqd3c4.js";function P(e,t){for(var r=0;ro[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of O(t))!j.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(o=v(t,s))||o.enumerable});return e},M=(e,t,r)=>(r=null!=e?g(S(e)):{},c(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),D=e=>c(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(L(e,"symbol"!=typeof t?t+"":t,r),r),h={};w(h,{default:()=>n});var y=D(h),p=M(f),u=_,d=b;const E="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class n extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",(()=>{this.callPlayer("mute")})),o(this,"unmute",(()=>{this.callPlayer("unmute")})),o(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(E,T).then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t})),this.player.on("buffered",(({percent:e})=>{this.duration&&(this.secondsLoaded=this.duration*e)})),this.props.muted&&this.player.mute())}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1];return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}o(n,"displayName","Streamable"),o(n,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; \ No newline at end of file diff --git a/storybook-static/assets/Twitch-54Zpgi3h.js b/storybook-static/assets/Twitch-DEs2hxsl.js similarity index 97% rename from storybook-static/assets/Twitch-54Zpgi3h.js rename to storybook-static/assets/Twitch-DEs2hxsl.js index ab169b7d2b..6969f82c51 100644 --- a/storybook-static/assets/Twitch-54Zpgi3h.js +++ b/storybook-static/assets/Twitch-DEs2hxsl.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-BP8_t0zE.js";import{u as C,p as N}from"./VideoPlayer-Dmkl06KS.js";function I(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,l=Object.defineProperty,S=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,A=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},_=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!H.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(a=S(t,s))||a.enumerable});return e},F=(e,t,r)=>(r=null!=e?M(A(e)):{},_(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),U=e=>_(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(R(e,"symbol"!=typeof t?t+"":t,r),r),P={};x(P,{default:()=>h});var f=U(P),y=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends y.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),o(this,"unmute",(()=>{this.callPlayer("setMuted",!1)}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const{playsinline:r,onError:a,config:s,controls:l}=this.props,o=u.MATCH_URL_TWITCH_CHANNEL.test(e),n=o?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];t?o?this.player.setChannel(n):this.player.setVideo("v"+n):(0,c.getSDK)(K,V).then((t=>{this.player=new t.Player(this.playerID,{video:o?"":n,channel:o?n:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!o||l,time:(0,c.parseStartTime)(e),...s.options});const{READY:a,PLAYING:i,PAUSE:p,ENDED:h,ONLINE:y,OFFLINE:u,SEEK:d}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(i,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(h,this.props.onEnded),this.player.addEventListener(d,this.props.onSeek),this.player.addEventListener(y,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return y.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}o(h,"displayName","Twitch"),o(h,"canPlay",u.canPlay.twitch),o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; \ No newline at end of file +import{g as w,r as D}from"./index-BP8_t0zE.js";import{u as C,p as N}from"./VideoPlayer-Dilqd3c4.js";function I(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,l=Object.defineProperty,S=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,A=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},_=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of j(t))!H.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(a=S(t,s))||a.enumerable});return e},F=(e,t,r)=>(r=null!=e?M(A(e)):{},_(e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),U=e=>_(l({},"__esModule",{value:!0}),e),o=(e,t,r)=>(R(e,"symbol"!=typeof t?t+"":t,r),r),P={};x(P,{default:()=>h});var f=U(P),y=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends y.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),o(this,"unmute",(()=>{this.callPlayer("setMuted",!1)}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const{playsinline:r,onError:a,config:s,controls:l}=this.props,o=u.MATCH_URL_TWITCH_CHANNEL.test(e),n=o?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];t?o?this.player.setChannel(n):this.player.setVideo("v"+n):(0,c.getSDK)(K,V).then((t=>{this.player=new t.Player(this.playerID,{video:o?"":n,channel:o?n:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!o||l,time:(0,c.parseStartTime)(e),...s.options});const{READY:a,PLAYING:i,PAUSE:p,ENDED:h,ONLINE:y,OFFLINE:u,SEEK:d}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(i,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(h,this.props.onEnded),this.player.addEventListener(d,this.props.onSeek),this.player.addEventListener(y,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return y.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}o(h,"displayName","Twitch"),o(h,"canPlay",u.canPlay.twitch),o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; \ No newline at end of file diff --git a/storybook-static/assets/UsefulStatsButton-UfP_hPRY.js b/storybook-static/assets/UsefulStatsButton-B0X13EYo.js similarity index 96% rename from storybook-static/assets/UsefulStatsButton-UfP_hPRY.js rename to storybook-static/assets/UsefulStatsButton-B0X13EYo.js index 0ced81f3e4..fc9d010d01 100644 --- a/storybook-static/assets/UsefulStatsButton-UfP_hPRY.js +++ b/storybook-static/assets/UsefulStatsButton-B0X13EYo.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{B as c}from"./Button-B7QBvkxh.js";import{T as f}from"./Tooltip-B9mgSRkZ.js";import{u as m}from"./theme-ui-core.browser.esm-CIov4Ln1.js";import{u as p}from"./index-BXxqJQdV.js";import{T as r}from"./theme-ui-components.esm-DCiJ1mMX.js";const l=e=>{const{theme:o}=m(),s=p(),l=n.useMemo((()=>(16*Math.random()).toString()),[]),[i,a]=n.useState();return t.jsxs(t.Fragment,{children:[t.jsxs(c,{type:"button","data-tooltip-id":l,"data-tooltip-content":e.isLoggedIn?"":"Login to add your vote","data-cy":e.isLoggedIn?"vote-useful":"vote-useful-redirect",onClick:()=>e.isLoggedIn?(async()=>{a(!0);try{await e.onUsefulClick()}catch{}a(!1)})():s("/sign-in"),disabled:i,sx:{fontSize:2,backgroundColor:o.colors.white,py:0,"&:hover":{backgroundColor:o.colors.softblue},...e.sx},icon:e.hasUserVotedUseful?"star":"star-active",children:[t.jsx(r,{pr:2,py:2,sx:{display:"inline-block"},children:e.votedUsefulCount}),t.jsx(r,{pl:2,py:2,sx:{display:"inline-block",borderLeft:`1px solid ${o.colors.black}`},children:e.hasUserVotedUseful?"Marked as useful":"Mark as useful"})]}),t.jsx(f,{id:l})]})};try{l.displayName="UsefulStatsButton",l.__docgenInfo={description:"",displayName:"UsefulStatsButton",props:{hasUserVotedUseful:{defaultValue:null,description:"",name:"hasUserVotedUseful",required:!0,type:{name:"boolean"}},votedUsefulCount:{defaultValue:null,description:"",name:"votedUsefulCount",required:!0,type:{name:"number | undefined"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},onUsefulClick:{defaultValue:null,description:"",name:"onUsefulClick",required:!0,type:{name:"() => Promise"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{l as U}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{B as c}from"./Button-1qf_V-Zv.js";import{T as f}from"./Tooltip-B9mgSRkZ.js";import{u as m}from"./theme-ui-core.browser.esm-CIov4Ln1.js";import{u as p}from"./index-BXxqJQdV.js";import{T as r}from"./theme-ui-components.esm-DCiJ1mMX.js";const l=e=>{const{theme:o}=m(),s=p(),l=n.useMemo((()=>(16*Math.random()).toString()),[]),[i,a]=n.useState();return t.jsxs(t.Fragment,{children:[t.jsxs(c,{type:"button","data-tooltip-id":l,"data-tooltip-content":e.isLoggedIn?"":"Login to add your vote","data-cy":e.isLoggedIn?"vote-useful":"vote-useful-redirect",onClick:()=>e.isLoggedIn?(async()=>{a(!0);try{await e.onUsefulClick()}catch{}a(!1)})():s("/sign-in"),disabled:i,sx:{fontSize:2,backgroundColor:o.colors.white,py:0,"&:hover":{backgroundColor:o.colors.softblue},...e.sx},icon:e.hasUserVotedUseful?"star":"star-active",children:[t.jsx(r,{pr:2,py:2,sx:{display:"inline-block"},children:e.votedUsefulCount}),t.jsx(r,{pl:2,py:2,sx:{display:"inline-block",borderLeft:`1px solid ${o.colors.black}`},children:e.hasUserVotedUseful?"Marked as useful":"Mark as useful"})]}),t.jsx(f,{id:l})]})};try{l.displayName="UsefulStatsButton",l.__docgenInfo={description:"",displayName:"UsefulStatsButton",props:{hasUserVotedUseful:{defaultValue:null,description:"",name:"hasUserVotedUseful",required:!0,type:{name:"boolean"}},votedUsefulCount:{defaultValue:null,description:"",name:"votedUsefulCount",required:!0,type:{name:"number | undefined"}},isLoggedIn:{defaultValue:null,description:"",name:"isLoggedIn",required:!0,type:{name:"boolean"}},onUsefulClick:{defaultValue:null,description:"",name:"onUsefulClick",required:!0,type:{name:"() => Promise"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{l as U}; \ No newline at end of file diff --git a/storybook-static/assets/UsefulStatsButton.stories-CwmlSmjo.js b/storybook-static/assets/UsefulStatsButton.stories-DHC8wQh4.js similarity index 96% rename from storybook-static/assets/UsefulStatsButton.stories-CwmlSmjo.js rename to storybook-static/assets/UsefulStatsButton.stories-DHC8wQh4.js index 5aac5f875b..6a37192443 100644 --- a/storybook-static/assets/UsefulStatsButton.stories-CwmlSmjo.js +++ b/storybook-static/assets/UsefulStatsButton.stories-DHC8wQh4.js @@ -1 +1 @@ -import{j as d}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{U as u}from"./UsefulStatsButton-UfP_hPRY.js";import"./Button-B7QBvkxh.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./index-BXxqJQdV.js";const D={title:"Components/UsefulStatsButton",component:u},o=()=>d.jsx(u,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:99,onUsefulClick:()=>Promise.resolve()}),s=()=>{const[e,s]=n.useState(99),[o,t]=n.useState(!1);return d.jsx(u,{votedUsefulCount:e,hasUserVotedUseful:o,isLoggedIn:!0,onUsefulClick:async()=>{await new Promise((e=>setTimeout((()=>e()),2e3))),s((e=>o?e-1:e+1)),t((e=>!e))}})},r=()=>{const[e,s]=n.useState(100),[o,t]=n.useState(!0);return d.jsx(u,{votedUsefulCount:e,hasUserVotedUseful:o,isLoggedIn:!0,onUsefulClick:async()=>{await new Promise((e=>setTimeout((()=>e()),2e3))),s((e=>o?e-1:e+1)),t((e=>!e))}})};var m,p,f,U,v,C,g,V,S;o.parameters={...o.parameters,docs:{...null==(m=o.parameters)?void 0:m.docs,source:{originalSource:"() => Promise.resolve()} />",...null==(f=null==(p=o.parameters)?void 0:p.docs)?void 0:f.source}}},s.parameters={...s.parameters,docs:{...null==(U=s.parameters)?void 0:U.docs,source:{originalSource:"() => {\n const [count, setCount] = useState(99);\n const [voted, setVoted] = useState(false);\n const clickVote = async () => {\n await new Promise(resolve => setTimeout(() => resolve(), 2000));\n setCount(val => voted ? val - 1 : val + 1);\n setVoted(val => !val);\n };\n return ;\n}",...null==(C=null==(v=s.parameters)?void 0:v.docs)?void 0:C.source}}},r.parameters={...r.parameters,docs:{...null==(g=r.parameters)?void 0:g.docs,source:{originalSource:"() => {\n const [count, setCount] = useState(100);\n const [voted, setVoted] = useState(true);\n const clickVote = async () => {\n await new Promise(resolve => setTimeout(() => resolve(), 2000));\n setCount(val => voted ? val - 1 : val + 1);\n setVoted(val => !val);\n };\n return ;\n}",...null==(S=null==(V=r.parameters)?void 0:V.docs)?void 0:S.source}}};const F=["LoggedOutWithCount","LoggedInWithCount","CurrentUserHasVoted"];export{r as CurrentUserHasVoted,s as LoggedInWithCount,o as LoggedOutWithCount,F as __namedExportsOrder,D as default}; \ No newline at end of file +import{j as d}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{U as u}from"./UsefulStatsButton-B0X13EYo.js";import"./Button-1qf_V-Zv.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./Tooltip-B9mgSRkZ.js";import"./floating-ui.dom-DtcZXcvp.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./cjs-Clfm10Kj.js";import"./index-BXxqJQdV.js";const D={title:"Components/UsefulStatsButton",component:u},o=()=>d.jsx(u,{isLoggedIn:!1,hasUserVotedUseful:!1,votedUsefulCount:99,onUsefulClick:()=>Promise.resolve()}),s=()=>{const[e,s]=n.useState(99),[o,t]=n.useState(!1);return d.jsx(u,{votedUsefulCount:e,hasUserVotedUseful:o,isLoggedIn:!0,onUsefulClick:async()=>{await new Promise((e=>setTimeout((()=>e()),2e3))),s((e=>o?e-1:e+1)),t((e=>!e))}})},r=()=>{const[e,s]=n.useState(100),[o,t]=n.useState(!0);return d.jsx(u,{votedUsefulCount:e,hasUserVotedUseful:o,isLoggedIn:!0,onUsefulClick:async()=>{await new Promise((e=>setTimeout((()=>e()),2e3))),s((e=>o?e-1:e+1)),t((e=>!e))}})};var m,p,f,U,v,C,g,V,S;o.parameters={...o.parameters,docs:{...null==(m=o.parameters)?void 0:m.docs,source:{originalSource:"() => Promise.resolve()} />",...null==(f=null==(p=o.parameters)?void 0:p.docs)?void 0:f.source}}},s.parameters={...s.parameters,docs:{...null==(U=s.parameters)?void 0:U.docs,source:{originalSource:"() => {\n const [count, setCount] = useState(99);\n const [voted, setVoted] = useState(false);\n const clickVote = async () => {\n await new Promise(resolve => setTimeout(() => resolve(), 2000));\n setCount(val => voted ? val - 1 : val + 1);\n setVoted(val => !val);\n };\n return ;\n}",...null==(C=null==(v=s.parameters)?void 0:v.docs)?void 0:C.source}}},r.parameters={...r.parameters,docs:{...null==(g=r.parameters)?void 0:g.docs,source:{originalSource:"() => {\n const [count, setCount] = useState(100);\n const [voted, setVoted] = useState(true);\n const clickVote = async () => {\n await new Promise(resolve => setTimeout(() => resolve(), 2000));\n setCount(val => voted ? val - 1 : val + 1);\n setVoted(val => !val);\n };\n return ;\n}",...null==(S=null==(V=r.parameters)?void 0:V.docs)?void 0:S.source}}};const F=["LoggedOutWithCount","LoggedInWithCount","CurrentUserHasVoted"];export{r as CurrentUserHasVoted,s as LoggedInWithCount,o as LoggedOutWithCount,F as __namedExportsOrder,D as default}; \ No newline at end of file diff --git a/storybook-static/assets/UserEngagementWrapper.stories-Dc56L0mc.js b/storybook-static/assets/UserEngagementWrapper.stories-DA0oRB91.js similarity index 62% rename from storybook-static/assets/UserEngagementWrapper.stories-Dc56L0mc.js rename to storybook-static/assets/UserEngagementWrapper.stories-DA0oRB91.js index ef4ba0dcc7..1cfc996c25 100644 --- a/storybook-static/assets/UserEngagementWrapper.stories-Dc56L0mc.js +++ b/storybook-static/assets/UserEngagementWrapper.stories-DA0oRB91.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{A as n}from"./ArticleCallToAction-CcvC77dL.js";import"./Banner-Rp1eOMI_.js";import"./BlockedRoute-K9n5NNTD.js";import"./Breadcrumbs-fIZcmrbj.js";import"./Button-B7QBvkxh.js";import"./ButtonIcon-BjD0tDRb.js";import"./ButtonShowReplies-CiHAfYgx.js";import"./CardButton-UFEWOkeB.js";import"./CardList-CsrRuU_s.js";import"./CardListItem-DkByzG5-.js";import"./CardProfile-DhE0xdXm.js";import"./Category-BRVyiaSI.js";import"./ContentStatistics-Clvo6xNg.js";import"./CommentItem-DIZh1yYT.js";import"./CommentList-Al_JOVpj.js";import"./CreateReply-ByN4QqWr.js";import"./ConfirmModal-DGUUT3uo.js";import"./CreateComment-ButSCGtD.js";import"./DiscussionContainer-CmOO164Y.js";import"./DiscussionTitle-Dhry4tok.js";import"./DisplayDate-8pUkm3CJ.js";import"./DonationRequest-0J0Ydxwt.js";import"./DonationRequestModal-BNxPzf8m.js";import"./DownloadButton-C_Yd3Qr5.js";import"./DownloadCounter-CpsPmH8s.js";import"./DownloadWithDonationAsk-DqdQCDXv.js";import"./DownloadStaticFile-BGuyYeyj.js";import"./EditComment-DY_6Q1TM.js";import"./ElWithBeforeIcon-L9Bddb7t.js";import"./ExternalLink-CHmx7fZ7.js";import"./FieldInput-CIt9FN7x.js";import"./FieldTextarea-msSeWkcr.js";import"./Guidelines-CAuhvrJl.js";import"./Username-jnUEp1hu.js";import"./FollowButton-gF1fEo3D.js";import"./GlobalStyles-Cwnjx0pv.js";import"./HeroBanner-D9U7RVxT.js";import"./Icon-BoVZOGVD.js";import"./IconCountWithTooltip-BgxPFEPA.js";import"./ImageCrop-DCgV90x1.js";import"./ImageGallery-DnFzFe7P.js";import"./InternalLink-CtyTe3gy.js";import"./LinkifyText-CTcW0PSE.js";import"./Loader-DmqUoSY8.js";import"./Map.client-D7Zd9Rir.js";import"./MapFilterList-DcOr19-7.js";import"./MapFilterProfileTypeCardList-1X6FSqZf.js";import"./MapMemberCard-Dj2rBDdu.js";import"./MapWithPin.client-B3vCTPau.js";import"./MemberBadge-DaB6gu8F.js";import"./Modal-CNp0gEVS.js";import"./ModerationStatus-i6sV2GYn.js";import"./MoreContainer-BHO-aLZj.js";import"./NotificationItem-BEQLiIOf.js";import"./NotificationList-B57zIKMs.js";import"./OsmGeocoding-Dk6lLoXi.js";import"./PinProfile-KRvjF2gX.js";import"./ProfileLink-Bn1AIGdm.js";import"./ProfileTagsList-C85jWzjp.js";import"./ResearchEditorOverview-DHGZ1VKA.js";import"./SearchField-BEwe93wL.js";import"./Select-vDnhT3MJ.js";import"./SettingsFormWrapper-CUpe9h_U.js";import"./SiteFooter-BzW_8Cd0.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-Dzxf5qoT.js";import"./TagList-C0eLtcDO.js";import"./TextNotification-TOi5P2Z0.js";import"./Tooltip-B9mgSRkZ.js";import{U as s}from"./UsefulStatsButton-UfP_hPRY.js";import{U as e}from"./UserEngagementWrapper-A6DCP-GM.js";import"./UserStatistics-CUtZqp73.js";import"./VideoPlayer-Dmkl06KS.js";import{a as r,B as a}from"./theme-ui-components.esm-DCiJ1mMX.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-BGgvgJrP.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-DtcZXcvp.js";import"./TabsList-DhTEw6FA.js";const at={title:"Layout/UserEngagementWrapper",component:e},t=()=>o.jsx(r,{sx:{maxWidth:"1000px",margin:"0 auto"},children:o.jsx(e,{children:o.jsx(r,{sx:{margin:3},children:o.jsxs(n,{author:{userName:"howto._createdBy",countryCode:"howto.creatorCountry",isVerified:!0},children:[o.jsx(a,{sx:{fontSize:2},onClick:()=>null,children:"Leave a comment"}),o.jsx(s,{votedUsefulCount:28,hasUserVotedUseful:!1,isLoggedIn:!1,onUsefulClick:()=>new Promise((()=>{}))})]})})})});var i,m,p;t.parameters={...t.parameters,docs:{...null==(i=t.parameters)?void 0:i.docs,source:{originalSource:"() => \n \n \n \n \n new Promise(() => {})} />\n \n \n \n ",...null==(p=null==(m=t.parameters)?void 0:m.docs)?void 0:p.source}}};const lt=["Default"];export{t as Default,lt as __namedExportsOrder,at as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{A as n}from"./ArticleCallToAction-CcvC77dL.js";import"./Banner-Rp1eOMI_.js";import"./BlockedRoute-CNa7wecH.js";import"./Breadcrumbs-CJmuaguM.js";import"./Button-1qf_V-Zv.js";import"./ButtonIcon-DLFqXCZb.js";import"./ButtonShowReplies-nddYmg0q.js";import"./CardButton-UFEWOkeB.js";import"./CardList-DYV48TQx.js";import"./CardListItem-DfmpNeu7.js";import"./CardProfile-BoQoQZcw.js";import"./Category-BRVyiaSI.js";import"./ContentStatistics-CzRzqwNB.js";import"./CommentItem-DZgP41nA.js";import"./CommentList-DhPqgHRE.js";import"./CreateReply-2Azc7a5m.js";import"./ConfirmModal-BcXyrr5V.js";import"./CreateComment-C20B3Odi.js";import"./DiscussionContainer-yXJCotUg.js";import"./DiscussionTitle-Dhry4tok.js";import"./DisplayDate-8pUkm3CJ.js";import"./DonationRequest-DuTXC9D9.js";import"./DonationRequestModal-Gqs-htQ0.js";import"./DownloadButton-DzIURGFB.js";import"./DownloadCounter-CpsPmH8s.js";import"./DownloadWithDonationAsk-CLFhEu2Q.js";import"./DownloadStaticFile-BxfNeVDS.js";import"./EditComment-CS1dAl1Z.js";import"./ElWithBeforeIcon-L9Bddb7t.js";import"./ExternalLink-CHmx7fZ7.js";import"./FieldInput-CIt9FN7x.js";import"./FieldTextarea-msSeWkcr.js";import"./Guidelines-CAuhvrJl.js";import"./Username-jnUEp1hu.js";import"./FollowButton-BpOrSPUK.js";import"./GlobalStyles-Cwnjx0pv.js";import"./HeroBanner-D9U7RVxT.js";import"./Icon-DVJa_328.js";import"./IconCountWithTooltip-D45XZbVQ.js";import"./ImageCrop-B_XHY1rW.js";import"./ImageGallery-_6WaFG1J.js";import"./InternalLink-CtyTe3gy.js";import"./LinkifyText-CTcW0PSE.js";import"./Loader-DmqUoSY8.js";import"./Map.client-D7Zd9Rir.js";import"./MapFilterList-rj326Ijs.js";import"./MapFilterProfileTypeCardList-BMZcIHDF.js";import"./MapMemberCard-Dj2rBDdu.js";import"./MapWithPin.client-mWMy-bbS.js";import"./MemberBadge-BFCUvfGJ.js";import"./Modal-CNp0gEVS.js";import"./ModerationStatus-i6sV2GYn.js";import"./MoreContainer-BHO-aLZj.js";import"./NotificationItem-ClPYRcjY.js";import"./NotificationList-DEA9ZS2i.js";import"./OsmGeocoding-DOGggMqw.js";import"./PinProfile-DUk9-hW8.js";import"./ProfileLink-BNudREw6.js";import"./ProfileTagsList-C85jWzjp.js";import"./ResearchEditorOverview-TBcr6efP.js";import"./SearchField-Cykq-dlt.js";import"./Select-vDnhT3MJ.js";import"./SettingsFormWrapper-DAzZ8D8d.js";import"./SiteFooter-CL9myLOY.js";import"./TabbedContent-CQ_-r_zn.js";import"./Tag-Dzxf5qoT.js";import"./TagList-C0eLtcDO.js";import"./TextNotification-TOi5P2Z0.js";import"./Tooltip-B9mgSRkZ.js";import{U as s}from"./UsefulStatsButton-B0X13EYo.js";import{U as e}from"./UserEngagementWrapper-A6DCP-GM.js";import"./UserStatistics-C-3yC6TP.js";import"./VideoPlayer-Dilqd3c4.js";import{a as r,B as a}from"./theme-ui-components.esm-DCiJ1mMX.js";import"./index-BP8_t0zE.js";import"./theme-ui-core.browser.esm-CIov4Ln1.js";import"./emotion-react.browser.esm-BYoRxRk_.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./cjs-Clfm10Kj.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";import"./typeof-QjJsDpFa.js";import"./extends-CF3RwP-h.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index.esm-D0u3ndg0.js";import"./CharacterCount-BGgvgJrP.js";import"./supporter-D7hp958O.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./icon-arrow-down-CJeToCJe.js";import"./icon-star-active-ClN6U5FF.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./defineProperty-Dr9G4DxF.js";import"./MapLayer-CeGLoV_-.js";import"./MapPin.client-Ln2WLe_W.js";import"./index-Snk9MO9S.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./floating-ui.dom-DtcZXcvp.js";import"./TabsList-DhTEw6FA.js";const at={title:"Layout/UserEngagementWrapper",component:e},t=()=>o.jsx(r,{sx:{maxWidth:"1000px",margin:"0 auto"},children:o.jsx(e,{children:o.jsx(r,{sx:{margin:3},children:o.jsxs(n,{author:{userName:"howto._createdBy",countryCode:"howto.creatorCountry",isVerified:!0},children:[o.jsx(a,{sx:{fontSize:2},onClick:()=>null,children:"Leave a comment"}),o.jsx(s,{votedUsefulCount:28,hasUserVotedUseful:!1,isLoggedIn:!1,onUsefulClick:()=>new Promise((()=>{}))})]})})})});var i,m,p;t.parameters={...t.parameters,docs:{...null==(i=t.parameters)?void 0:i.docs,source:{originalSource:"() => \n \n \n \n \n new Promise(() => {})} />\n \n \n \n ",...null==(p=null==(m=t.parameters)?void 0:m.docs)?void 0:p.source}}};const lt=["Default"];export{t as Default,lt as __namedExportsOrder,at as default}; \ No newline at end of file diff --git a/storybook-static/assets/UserStatistics-CUtZqp73.js b/storybook-static/assets/UserStatistics-C-3yC6TP.js similarity index 99% rename from storybook-static/assets/UserStatistics-CUtZqp73.js rename to storybook-static/assets/UserStatistics-C-3yC6TP.js index 4029fe1ff5..e0fdf669bb 100644 --- a/storybook-static/assets/UserStatistics-CUtZqp73.js +++ b/storybook-static/assets/UserStatistics-C-3yC6TP.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{s as c}from"./icon-star-active-ClN6U5FF.js";import{E as s}from"./ElWithBeforeIcon-L9Bddb7t.js";import{E as d}from"./ExternalLink-CHmx7fZ7.js";import{I as l}from"./Icon-BoVZOGVD.js";import{I as r}from"./InternalLink-CtyTe3gy.js";import{C as u,F as a,a as i}from"./theme-ui-components.esm-DCiJ1mMX.js";const m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.59%2038.85'%3e%3ctitle%3eicon%20how-to%3c/title%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cpolygon%20points='1.49%203.54%201.49%2034.79%203.04%2036.16%2035.14%2037.37%2039.62%2035.95%2041.32%2032.33%2040.78%206.25%2037.59%201.49%205.16%201.42%201.49%203.54'%20style='fill:%23fff'/%3e%3c/g%3e%3cg%20id='Calque_3'%20data-name='Calque%203'%3e%3cpolygon%20points='18.22%205.84%2018%2022.17%2036.47%2022.07%2036.47%206.66%2018.22%205.84'%20style='fill:%2397cdeb'/%3e%3cpolygon%20points='18%2028.5%2017.8%2037.6%2037.42%2036.88%2037.14%2027.7%2018%2028.5'%20style='fill:%2397cdeb'/%3e%3c/g%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M38,22.37c-.07-5.24,0-10.48-.23-15.71a.51.51,0,0,0,0-.13,1,1,0,0,0-.89-1.07c-6.08-1.14-12.24.44-18.26-.82A1.34,1.34,0,0,0,17,5.85a101.08,101.08,0,0,0-.22,16.32,1.34,1.34,0,0,0,.25.66l.05.06h0a1.21,1.21,0,0,0,1.28.48c5.72-1.26,12.55,0,18.37.24a1.1,1.1,0,0,0,1-.46A1.17,1.17,0,0,0,38,22.37ZM19.14,20.7a101.6,101.6,0,0,1,.23-13.4C24.65,8,30,7,35.26,7.73c.2,4.44.15,8.88.19,13.33C30.19,20.75,24.35,19.91,19.14,20.7Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M42.57,32.26c-.12-8.44-.38-16.88-.49-25.32A6.76,6.76,0,0,0,38.27.8a1.3,1.3,0,0,0-.52-.22,1.43,1.43,0,0,0-.39-.06C32.14-.37,26.91.13,21.64.23Q13.4.38,5.16.17a1.07,1.07,0,0,0-.45.07,6.38,6.38,0,0,0-3.88,2C0,3.2.1,4.48.08,5.66-.08,13,0,20.3.28,27.62c.1,2.89-1.24,8.76,2.43,9.75a1.22,1.22,0,0,0,.32,0H3c11.15,1,22.38,2,33.57,1.09a5.87,5.87,0,0,0,5-3.11A5.71,5.71,0,0,0,42.57,32.26ZM19.16,36.12a29.78,29.78,0,0,1,0-6.47c5.6-.26,11.2-.39,16.79-.65.13,2.32.26,4.63.38,7,0,0,0,0,0,.07A133.24,133.24,0,0,1,19.16,36.12ZM40,33a5.79,5.79,0,0,1-.57,1.24,4.32,4.32,0,0,1-.6.79l-.4-7.3a1.31,1.31,0,0,0-1.25-1.25c-6.37.32-12.76.43-19.14.75a1.21,1.21,0,0,0-.93.47,1.29,1.29,0,0,0-.32.78,45.08,45.08,0,0,0-.1,7.53c-4.44-.28-8.88-.66-13.31-1-1.11-.52-.71-12-.75-13.51-.11-5.26-.13-10.52,0-15.77,0-.5,0-1,0-1.52a.93.93,0,0,0,.06-.22,7,7,0,0,1,.88-.73,5,5,0,0,1,1.66-.52q7.41.19,14.82.08C25.7,2.67,31.5,2,37.09,3a4.18,4.18,0,0,1,2.49,4c.11,8.47.38,16.93.49,25.39,0,.06,0,.1,0,.15S40,32.82,40,33Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.41,10.06c1.79-.14,3.58-.21,5.37-.2a1.25,1.25,0,0,0,0-2.5c-1.79,0-3.58.06-5.37.2-1.59.12-1.61,2.62,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M7.34,12.1a7.82,7.82,0,0,1-.84,0l1.08.62h0l-.75,1.84c-.64.09,0,0,.2,0H8.28c1.57,0,3.14,0,4.71,0a1.25,1.25,0,0,0,0-2.5,41,41,0,0,0-6.83,0A1.25,1.25,0,0,0,5.42,14c.42.72,1.21.63,1.92.63a1.25,1.25,0,0,0,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.87,19.31h4.54a1.25,1.25,0,0,0,0-2.5H6.87a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.69,32.58l5.19-.13a1.25,1.25,0,0,0,0-2.5l-5.19.13a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20id='Layer_1'%20x='0'%20y='0'%20style='enable-background:new%200%200%2044%2037.3'%20version='1.1'%20viewBox='0%200%2044%2037.3'%3e%3cstyle%3e.st3{fill:none;stroke:%23000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}%3c/style%3e%3cpath%20d='M9.4%2031h23.3v4.7H9.4z'%20style='fill:%23878787'/%3e%3cpath%20d='M7.5%202.4c-.4%200-2.3%200-2.7.2-.4.1-.7.5-.9.8-1.1%201.8-1.2%204-1.2%206.1-.2%205.7-.3%2011.4-.5%2017-.1%201.9-.2%203.8.5%205.5.3.8.8%201.6%201.5%202.1%201%20.7%202.2.9%203.4%201.1%203.1.4%206.2.6%209.4.5%201.5%200%202.9-.1%204.4-.1%205.5-.2%2011.1-.4%2016.6-1%20.9-.1%201.9-.2%202.6-.8.5-.5.8-1.2%201-1.9%201.2-4%201.1-8.2.7-12.3s-.3-8.3-.4-12.4c0-1.4-.4-3.3-1.4-4.2-.9-.8-3.6-.8-4.8-.9-2.7-.1-4.8.2-7.5%200-2.5-.1-4.2.2-7.7.2-2.1%200-5.4.2-7.5.2-2.8-.1-2.7-.1-5.5-.1z'%20style='fill:none;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M11%207.2c-.7%200-1.4.1-1.8.5-.2.3-.2.7-.2%201v6.6c0%20.4%200%20.9.2%201.3.6%201.1%202.3%201.3%203.6%201.3h11c1.9%200%203.8%200%205.7-.2%201.7-.2%203.4-.6%204.4-1.8.7-.9.7-2%20.8-3%20.1-1.4.1-2.8.2-4.1%200-.6%200-1.2-.4-1.7s-1.1-.6-1.7-.7c-3.9-.6-7.9.2-11.7.7-3.6.5-6.7.1-10.1.1z'%20style='fill:%23878787;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M9.6%2021.8c7.4.6%2014.8.5%2022.2-.1M9.4%2026.4c7.5%200%2015%20.1%2022.6.1M9.5%2035.1c0-1.1%200-2.2.1-3.3%207.6-.6%2015.3-.9%2022.9-.9.2%201.6.2%202.2.1%203.7'%20class='st3'/%3e%3c/svg%3e",o=e=>{const o=void 0!==e.country&&void 0!==e.userName;return f(e)&&!o?null:t.jsx(u,{sx:{p:2,backgroundColor:"background",...e.sx},children:t.jsxs(a,{sx:{gap:2,flexDirection:"column"},children:[e.isVerified&&t.jsxs(a,{"data-testid":"verified-stat",children:[t.jsx(l,{glyph:"verified",size:22}),t.jsx(i,{ml:1,children:"Verified"})]}),(null==e?void 0:e.isSupporter)&&t.jsxs(a,{"data-testid":"supporter-stat",children:[t.jsx(l,{glyph:"supporter",size:22}),t.jsx(i,{ml:1,children:t.jsx(d,{href:"https://www.patreon.com/one_army",target:"_blank",sx:{color:"black"},children:"Supporter"})})]}),o&&t.jsx(r,{to:"/map/#"+e.userName,sx:{color:"black"},"data-testid":"location-link",children:t.jsxs(a,{children:[t.jsx(l,{glyph:"location-on",size:22}),t.jsx(i,{ml:1,children:e.country||"View on Map"})]})}),e.usefulCount>0&&t.jsxs(a,{"data-testid":"useful-stat",children:[t.jsx(s,{icon:c}),`Useful: ${e.usefulCount}`]}),e.howtoCount>0&&t.jsx(r,{to:"/how-to?q="+e.userName,sx:{color:"black"},"data-testid":"howto-link",children:t.jsxs(a,{"data-testid":"howto-stat",children:[t.jsx(s,{icon:m}),`How-to: ${e.howtoCount}`]})}),e.researchCount>0&&t.jsx(r,{to:"/research?q="+e.userName,sx:{color:"black"},"data-testid":"research-link",children:t.jsxs(a,{"data-testid":"research-stat",children:[t.jsx(s,{icon:h}),`Research: ${e.researchCount}`]})}),e.totalViews>0&&t.jsxs(a,{"data-testid":"profile-views-stat",children:[t.jsx(l,{glyph:"view",size:22}),t.jsx(i,{ml:1,children:`Views: ${e.totalViews}`})]})]})})},f=e=>!(e.isVerified||e.isSupporter||e.usefulCount||e.howtoCount||e.totalViews);try{o.displayName="UserStatistics",o.__docgenInfo={description:"",displayName:"UserStatistics",props:{userName:{defaultValue:null,description:"",name:"userName",required:!0,type:{name:"string"}},country:{defaultValue:null,description:"",name:"country",required:!1,type:{name:"string"}},isVerified:{defaultValue:null,description:"",name:"isVerified",required:!0,type:{name:"boolean"}},isSupporter:{defaultValue:null,description:"",name:"isSupporter",required:!1,type:{name:"boolean"}},howtoCount:{defaultValue:null,description:"",name:"howtoCount",required:!0,type:{name:"number"}},usefulCount:{defaultValue:null,description:"",name:"usefulCount",required:!0,type:{name:"number"}},researchCount:{defaultValue:null,description:"",name:"researchCount",required:!0,type:{name:"number"}},totalViews:{defaultValue:null,description:"",name:"totalViews",required:!0,type:{name:"number"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{o as U}; \ No newline at end of file +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{s as c}from"./icon-star-active-ClN6U5FF.js";import{E as s}from"./ElWithBeforeIcon-L9Bddb7t.js";import{E as d}from"./ExternalLink-CHmx7fZ7.js";import{I as l}from"./Icon-DVJa_328.js";import{I as r}from"./InternalLink-CtyTe3gy.js";import{C as u,F as a,a as i}from"./theme-ui-components.esm-DCiJ1mMX.js";const m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.59%2038.85'%3e%3ctitle%3eicon%20how-to%3c/title%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cpolygon%20points='1.49%203.54%201.49%2034.79%203.04%2036.16%2035.14%2037.37%2039.62%2035.95%2041.32%2032.33%2040.78%206.25%2037.59%201.49%205.16%201.42%201.49%203.54'%20style='fill:%23fff'/%3e%3c/g%3e%3cg%20id='Calque_3'%20data-name='Calque%203'%3e%3cpolygon%20points='18.22%205.84%2018%2022.17%2036.47%2022.07%2036.47%206.66%2018.22%205.84'%20style='fill:%2397cdeb'/%3e%3cpolygon%20points='18%2028.5%2017.8%2037.6%2037.42%2036.88%2037.14%2027.7%2018%2028.5'%20style='fill:%2397cdeb'/%3e%3c/g%3e%3cg%20id='Calque_1'%20data-name='Calque%201'%3e%3cpath%20d='M38,22.37c-.07-5.24,0-10.48-.23-15.71a.51.51,0,0,0,0-.13,1,1,0,0,0-.89-1.07c-6.08-1.14-12.24.44-18.26-.82A1.34,1.34,0,0,0,17,5.85a101.08,101.08,0,0,0-.22,16.32,1.34,1.34,0,0,0,.25.66l.05.06h0a1.21,1.21,0,0,0,1.28.48c5.72-1.26,12.55,0,18.37.24a1.1,1.1,0,0,0,1-.46A1.17,1.17,0,0,0,38,22.37ZM19.14,20.7a101.6,101.6,0,0,1,.23-13.4C24.65,8,30,7,35.26,7.73c.2,4.44.15,8.88.19,13.33C30.19,20.75,24.35,19.91,19.14,20.7Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M42.57,32.26c-.12-8.44-.38-16.88-.49-25.32A6.76,6.76,0,0,0,38.27.8a1.3,1.3,0,0,0-.52-.22,1.43,1.43,0,0,0-.39-.06C32.14-.37,26.91.13,21.64.23Q13.4.38,5.16.17a1.07,1.07,0,0,0-.45.07,6.38,6.38,0,0,0-3.88,2C0,3.2.1,4.48.08,5.66-.08,13,0,20.3.28,27.62c.1,2.89-1.24,8.76,2.43,9.75a1.22,1.22,0,0,0,.32,0H3c11.15,1,22.38,2,33.57,1.09a5.87,5.87,0,0,0,5-3.11A5.71,5.71,0,0,0,42.57,32.26ZM19.16,36.12a29.78,29.78,0,0,1,0-6.47c5.6-.26,11.2-.39,16.79-.65.13,2.32.26,4.63.38,7,0,0,0,0,0,.07A133.24,133.24,0,0,1,19.16,36.12ZM40,33a5.79,5.79,0,0,1-.57,1.24,4.32,4.32,0,0,1-.6.79l-.4-7.3a1.31,1.31,0,0,0-1.25-1.25c-6.37.32-12.76.43-19.14.75a1.21,1.21,0,0,0-.93.47,1.29,1.29,0,0,0-.32.78,45.08,45.08,0,0,0-.1,7.53c-4.44-.28-8.88-.66-13.31-1-1.11-.52-.71-12-.75-13.51-.11-5.26-.13-10.52,0-15.77,0-.5,0-1,0-1.52a.93.93,0,0,0,.06-.22,7,7,0,0,1,.88-.73,5,5,0,0,1,1.66-.52q7.41.19,14.82.08C25.7,2.67,31.5,2,37.09,3a4.18,4.18,0,0,1,2.49,4c.11,8.47.38,16.93.49,25.39,0,.06,0,.1,0,.15S40,32.82,40,33Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.41,10.06c1.79-.14,3.58-.21,5.37-.2a1.25,1.25,0,0,0,0-2.5c-1.79,0-3.58.06-5.37.2-1.59.12-1.61,2.62,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M7.34,12.1a7.82,7.82,0,0,1-.84,0l1.08.62h0l-.75,1.84c-.64.09,0,0,.2,0H8.28c1.57,0,3.14,0,4.71,0a1.25,1.25,0,0,0,0-2.5,41,41,0,0,0-6.83,0A1.25,1.25,0,0,0,5.42,14c.42.72,1.21.63,1.92.63a1.25,1.25,0,0,0,0-2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.87,19.31h4.54a1.25,1.25,0,0,0,0-2.5H6.87a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3cpath%20d='M6.69,32.58l5.19-.13a1.25,1.25,0,0,0,0-2.5l-5.19.13a1.25,1.25,0,0,0,0,2.5Z'%20style='fill:%231d1d1b'/%3e%3c/g%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20id='Layer_1'%20x='0'%20y='0'%20style='enable-background:new%200%200%2044%2037.3'%20version='1.1'%20viewBox='0%200%2044%2037.3'%3e%3cstyle%3e.st3{fill:none;stroke:%23000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}%3c/style%3e%3cpath%20d='M9.4%2031h23.3v4.7H9.4z'%20style='fill:%23878787'/%3e%3cpath%20d='M7.5%202.4c-.4%200-2.3%200-2.7.2-.4.1-.7.5-.9.8-1.1%201.8-1.2%204-1.2%206.1-.2%205.7-.3%2011.4-.5%2017-.1%201.9-.2%203.8.5%205.5.3.8.8%201.6%201.5%202.1%201%20.7%202.2.9%203.4%201.1%203.1.4%206.2.6%209.4.5%201.5%200%202.9-.1%204.4-.1%205.5-.2%2011.1-.4%2016.6-1%20.9-.1%201.9-.2%202.6-.8.5-.5.8-1.2%201-1.9%201.2-4%201.1-8.2.7-12.3s-.3-8.3-.4-12.4c0-1.4-.4-3.3-1.4-4.2-.9-.8-3.6-.8-4.8-.9-2.7-.1-4.8.2-7.5%200-2.5-.1-4.2.2-7.7.2-2.1%200-5.4.2-7.5.2-2.8-.1-2.7-.1-5.5-.1z'%20style='fill:none;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M11%207.2c-.7%200-1.4.1-1.8.5-.2.3-.2.7-.2%201v6.6c0%20.4%200%20.9.2%201.3.6%201.1%202.3%201.3%203.6%201.3h11c1.9%200%203.8%200%205.7-.2%201.7-.2%203.4-.6%204.4-1.8.7-.9.7-2%20.8-3%20.1-1.4.1-2.8.2-4.1%200-.6%200-1.2-.4-1.7s-1.1-.6-1.7-.7c-3.9-.6-7.9.2-11.7.7-3.6.5-6.7.1-10.1.1z'%20style='fill:%23878787;stroke:%23000;stroke-width:2.5;stroke-linejoin:round;stroke-miterlimit:10'/%3e%3cpath%20d='M9.6%2021.8c7.4.6%2014.8.5%2022.2-.1M9.4%2026.4c7.5%200%2015%20.1%2022.6.1M9.5%2035.1c0-1.1%200-2.2.1-3.3%207.6-.6%2015.3-.9%2022.9-.9.2%201.6.2%202.2.1%203.7'%20class='st3'/%3e%3c/svg%3e",o=e=>{const o=void 0!==e.country&&void 0!==e.userName;return f(e)&&!o?null:t.jsx(u,{sx:{p:2,backgroundColor:"background",...e.sx},children:t.jsxs(a,{sx:{gap:2,flexDirection:"column"},children:[e.isVerified&&t.jsxs(a,{"data-testid":"verified-stat",children:[t.jsx(l,{glyph:"verified",size:22}),t.jsx(i,{ml:1,children:"Verified"})]}),(null==e?void 0:e.isSupporter)&&t.jsxs(a,{"data-testid":"supporter-stat",children:[t.jsx(l,{glyph:"supporter",size:22}),t.jsx(i,{ml:1,children:t.jsx(d,{href:"https://www.patreon.com/one_army",target:"_blank",sx:{color:"black"},children:"Supporter"})})]}),o&&t.jsx(r,{to:"/map/#"+e.userName,sx:{color:"black"},"data-testid":"location-link",children:t.jsxs(a,{children:[t.jsx(l,{glyph:"location-on",size:22}),t.jsx(i,{ml:1,children:e.country||"View on Map"})]})}),e.usefulCount>0&&t.jsxs(a,{"data-testid":"useful-stat",children:[t.jsx(s,{icon:c}),`Useful: ${e.usefulCount}`]}),e.howtoCount>0&&t.jsx(r,{to:"/how-to?q="+e.userName,sx:{color:"black"},"data-testid":"howto-link",children:t.jsxs(a,{"data-testid":"howto-stat",children:[t.jsx(s,{icon:m}),`How-to: ${e.howtoCount}`]})}),e.researchCount>0&&t.jsx(r,{to:"/research?q="+e.userName,sx:{color:"black"},"data-testid":"research-link",children:t.jsxs(a,{"data-testid":"research-stat",children:[t.jsx(s,{icon:h}),`Research: ${e.researchCount}`]})}),e.totalViews>0&&t.jsxs(a,{"data-testid":"profile-views-stat",children:[t.jsx(l,{glyph:"view",size:22}),t.jsx(i,{ml:1,children:`Views: ${e.totalViews}`})]})]})})},f=e=>!(e.isVerified||e.isSupporter||e.usefulCount||e.howtoCount||e.totalViews);try{o.displayName="UserStatistics",o.__docgenInfo={description:"",displayName:"UserStatistics",props:{userName:{defaultValue:null,description:"",name:"userName",required:!0,type:{name:"string"}},country:{defaultValue:null,description:"",name:"country",required:!1,type:{name:"string"}},isVerified:{defaultValue:null,description:"",name:"isVerified",required:!0,type:{name:"boolean"}},isSupporter:{defaultValue:null,description:"",name:"isSupporter",required:!1,type:{name:"boolean"}},howtoCount:{defaultValue:null,description:"",name:"howtoCount",required:!0,type:{name:"number"}},usefulCount:{defaultValue:null,description:"",name:"usefulCount",required:!0,type:{name:"number"}},researchCount:{defaultValue:null,description:"",name:"researchCount",required:!0,type:{name:"number"}},totalViews:{defaultValue:null,description:"",name:"totalViews",required:!0,type:{name:"number"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"ThemeUIStyleObject"}}}}}catch{}export{o as U}; \ No newline at end of file diff --git a/storybook-static/assets/UserStatistics.stories-Cpgfq9Tw.js b/storybook-static/assets/UserStatistics.stories-DCkpMQ6U.js similarity index 90% rename from storybook-static/assets/UserStatistics.stories-Cpgfq9Tw.js rename to storybook-static/assets/UserStatistics.stories-DCkpMQ6U.js index f0fa05c29c..e0a085d9f7 100644 --- a/storybook-static/assets/UserStatistics.stories-Cpgfq9Tw.js +++ b/storybook-static/assets/UserStatistics.stories-DCkpMQ6U.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-CexXSJP5.js";import{U as e}from"./UserStatistics-CUtZqp73.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./ElWithBeforeIcon-L9Bddb7t.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./ExternalLink-CHmx7fZ7.js";import"./Icon-BoVZOGVD.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const w={title:"Layout/UserStatistics",component:e},p=s=>m.jsx(e,{...s}),t=p.bind({});var r,o,s;t.args={userName:"Test User",country:"Greenland",isVerified:!0,isSupporter:!0,howtoCount:10,usefulCount:20,researchCount:2},t.parameters={...t.parameters,docs:{...null==(r=t.parameters)?void 0:r.docs,source:{originalSource:"args => ",...null==(s=null==(o=t.parameters)?void 0:o.docs)?void 0:s.source}}};const G=["Default"];export{t as Default,G as __namedExportsOrder,w as default}; \ No newline at end of file +import{j as m}from"./jsx-runtime-CexXSJP5.js";import{U as e}from"./UserStatistics-C-3yC6TP.js";import"./index-BP8_t0zE.js";import"./icon-star-active-ClN6U5FF.js";import"./ElWithBeforeIcon-L9Bddb7t.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";import"./ExternalLink-CHmx7fZ7.js";import"./Icon-DVJa_328.js";import"./emotion-styled.browser.esm-Dz2BNYeh.js";import"./extends-CF3RwP-h.js";import"./supporter-D7hp958O.js";import"./icon-arrow-down-CJeToCJe.js";import"./InternalLink-CtyTe3gy.js";import"./components-CutHIkdx.js";import"./index-BBRV8eG_.js";import"./index-BXxqJQdV.js";const w={title:"Layout/UserStatistics",component:e},p=s=>m.jsx(e,{...s}),t=p.bind({});var r,o,s;t.args={userName:"Test User",country:"Greenland",isVerified:!0,isSupporter:!0,howtoCount:10,usefulCount:20,researchCount:2},t.parameters={...t.parameters,docs:{...null==(r=t.parameters)?void 0:r.docs,source:{originalSource:"args => ",...null==(s=null==(o=t.parameters)?void 0:o.docs)?void 0:s.source}}};const G=["Default"];export{t as Default,G as __namedExportsOrder,w as default}; \ No newline at end of file diff --git a/storybook-static/assets/VideoPlayer-Dmkl06KS.js b/storybook-static/assets/VideoPlayer-Dilqd3c4.js similarity index 94% rename from storybook-static/assets/VideoPlayer-Dmkl06KS.js rename to storybook-static/assets/VideoPlayer-Dilqd3c4.js index f05c89afc7..dd2e4865a7 100644 --- a/storybook-static/assets/VideoPlayer-Dmkl06KS.js +++ b/storybook-static/assets/VideoPlayer-Dilqd3c4.js @@ -1 +1 @@ -const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./YouTube-CNSKMxNM.js","./index-BP8_t0zE.js","./SoundCloud-CnZaMkF4.js","./Vimeo-CZSqdWwA.js","./Mux-4lpop726.js","./iframe-BRhzNi2b.js","./Facebook-7Psi_5Xu.js","./Streamable-B__-bKin.js","./Wistia-CYLWvkU0.js","./Twitch-54Zpgi3h.js","./DailyMotion-DLX2GjDR.js","./Mixcloud-C6D_TjsQ.js","./Vidyard-Qn3cK7yU.js","./Kaltura-Cf8iZ543.js","./FilePlayer-IDHGcVTO.js","./Preview-DMnd0tgi.js"]))=>e.map((e=>r[e]));import{j as G}from"./jsx-runtime-CexXSJP5.js";import{r as W,b as He,c as x,g as ze}from"./index-BP8_t0zE.js";import{_ as P}from"./iframe-BRhzNi2b.js";import{c as se}from"./cjs-Clfm10Kj.js";import{p as Be}from"./index-Snk9MO9S.js";import{a as Fe}from"./theme-ui-components.esm-DCiJ1mMX.js";var Ke=function(e,t,r){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async=!("async"in t)||!!t.async,o.src=e,t.attrs&&We(o,t.attrs),t.text&&(o.text=""+t.text),("onload"in o?ee:Xe)(o,r),o.onload||ee(o,r),a.appendChild(o)};function We(e,t){for(var r in t)e.setAttribute(r,t[r])}function ee(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Xe(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}var Ye=Object.create,$=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty,Ge=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Je(t))!Qe.call(e,o)&&o!==r&&$(e,o,{get:()=>t[o],enumerable:!(a=qe(t,o))||a.enumerable});return e},X=(e,t,r)=>(r=null!=e?Ye(Ze(e)):{},le(e&&e.__esModule?r:$(r,"default",{value:e,enumerable:!0}),e)),et=e=>le($({},"__esModule",{value:!0}),e),ue={};Ge(ue,{callPlayer:()=>ht,getConfig:()=>yt,getSDK:()=>dt,isBlobUrl:()=>Pt,isMediaStream:()=>mt,lazy:()=>ot,omit:()=>_t,parseEndTime:()=>pt,parseStartTime:()=>ut,queryString:()=>ft,randomString:()=>ct,supportsWebKitPresentationMode:()=>vt});var D=et(ue),tt=X(W),rt=X(Ke),at=X(se);const ot=e=>tt.default.lazy((async()=>{const t=await e();return"function"==typeof t.default?t:t.default})),nt=/[?&#](?:start|t)=([0-9hms]+)/,it=/[?&#]end=([0-9hms]+)/,z=/(\d+)(h|m|s)/g,st=/^\d+$/;function pe(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(z))return lt(e);if(st.test(e))return parseInt(e)}}function lt(e){let t=0,r=z.exec(e);for(;null!==r;){const[,a,o]=r;"h"===o&&(t+=60*parseInt(a,10)*60),"m"===o&&(t+=60*parseInt(a,10)),"s"===o&&(t+=parseInt(a,10)),r=z.exec(e)}return t}function ut(e){return pe(e,nt)}function pt(e){return pe(e,it)}function ct(){return Math.random().toString(36).substr(2,5)}function ft(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function j(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const w={},dt=function(e,t,r=null,a=()=>!0,o=rt.default){const n=j(t);return n&&a(n)?Promise.resolve(n):new Promise(((a,n)=>{if(w[e])return void w[e].push({resolve:a,reject:n});w[e]=[{resolve:a,reject:n}];const i=t=>{w[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),i(j(t))}}o(e,(a=>{a?(w[e].forEach((e=>e.reject(a))),w[e]=null):r||i(j(t))}))}))};function yt(e,t){return(0,at.default)(t.config,e.config)}function _t(e,...t){const r=[].concat(...t),a={},o=Object.keys(e);for(const n of o)-1===r.indexOf(n)&&(a[n]=e[n]);return a}function ht(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function mt(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Pt(e){return/^blob:/.test(e)}function vt(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}var Y=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,Ot=Object.getOwnPropertyNames,wt=Object.prototype.hasOwnProperty,bt=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ot(t))!wt.call(e,o)&&o!==r&&Y(e,o,{get:()=>t[o],enumerable:!(a=gt(t,o))||a.enumerable});return e},Et=e=>Tt(Y({},"__esModule",{value:!0}),e),ce={};bt(ce,{AUDIO_EXTENSIONS:()=>q,DASH_EXTENSIONS:()=>Ee,FLV_EXTENSIONS:()=>Se,HLS_EXTENSIONS:()=>Z,MATCH_URL_DAILYMOTION:()=>Oe,MATCH_URL_FACEBOOK:()=>_e,MATCH_URL_FACEBOOK_WATCH:()=>he,MATCH_URL_KALTURA:()=>Te,MATCH_URL_MIXCLOUD:()=>we,MATCH_URL_MUX:()=>ye,MATCH_URL_SOUNDCLOUD:()=>fe,MATCH_URL_STREAMABLE:()=>me,MATCH_URL_TWITCH_CHANNEL:()=>ge,MATCH_URL_TWITCH_VIDEO:()=>ve,MATCH_URL_VIDYARD:()=>be,MATCH_URL_VIMEO:()=>de,MATCH_URL_WISTIA:()=>Pe,MATCH_URL_YOUTUBE:()=>B,VIDEO_EXTENSIONS:()=>J,canPlay:()=>At});var St=Et(ce),te=D;const B=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,fe=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,de=/vimeo\.com\/(?!progressive_redirect).+/,ye=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,_e=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,he=/^https?:\/\/fb\.watch\/.+$/,me=/streamable\.com\/([a-z0-9]+)$/,Pe=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ve=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,ge=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Oe=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,we=/mixcloud\.com\/([^/]+\/[^/]+)/,be=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Te=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,q=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,J=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Z=/\.(m3u8)($|\?)/i,Ee=/\.(mpd)($|\?)/i,Se=/\.(flv)($|\?)/i,F=e=>{if(e instanceof Array){for(const t of e)if("string"==typeof t&&F(t)||F(t.src))return!0;return!1}return!(!(0,te.isMediaStream)(e)&&!(0,te.isBlobUrl)(e))||(q.test(e)||J.test(e)||Z.test(e)||Ee.test(e)||Se.test(e))},At={youtube:e=>e instanceof Array?e.every((e=>B.test(e))):B.test(e),soundcloud:e=>fe.test(e)&&!q.test(e),vimeo:e=>de.test(e)&&!J.test(e)&&!Z.test(e),mux:e=>ye.test(e),facebook:e=>_e.test(e)||he.test(e),streamable:e=>me.test(e),wistia:e=>Pe.test(e),twitch:e=>ve.test(e)||ge.test(e),dailymotion:e=>Oe.test(e),mixcloud:e=>we.test(e),vidyard:e=>be.test(e),kaltura:e=>Te.test(e),file:F};var Q=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyNames,It=Object.prototype.hasOwnProperty,Mt=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},Lt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ct(t))!It.call(e,o)&&o!==r&&Q(e,o,{get:()=>t[o],enumerable:!(a=Rt(t,o))||a.enumerable});return e},$t=e=>Lt(Q({},"__esModule",{value:!0}),e),Ae={};Mt(Ae,{default:()=>kt});var Dt=$t(Ae),m=D,d=St,kt=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./YouTube-CNSKMxNM.js").then((e=>e.Y))),__vite__mapDeps([0,1]),import.meta.url)))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./SoundCloud-CnZaMkF4.js").then((e=>e.S))),__vite__mapDeps([2,1]),import.meta.url)))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vimeo-CZSqdWwA.js").then((e=>e.V))),__vite__mapDeps([3,1]),import.meta.url)))},{key:"mux",name:"Mux",canPlay:d.canPlay.mux,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mux-4lpop726.js").then((e=>e.M))),__vite__mapDeps([4,5,1]),import.meta.url)))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Facebook-7Psi_5Xu.js").then((e=>e.F))),__vite__mapDeps([6,1]),import.meta.url)))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Streamable-B__-bKin.js").then((e=>e.S))),__vite__mapDeps([7,1]),import.meta.url)))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Wistia-CYLWvkU0.js").then((e=>e.W))),__vite__mapDeps([8,1]),import.meta.url)))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Twitch-54Zpgi3h.js").then((e=>e.T))),__vite__mapDeps([9,1]),import.meta.url)))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./DailyMotion-DLX2GjDR.js").then((e=>e.D))),__vite__mapDeps([10,1]),import.meta.url)))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mixcloud-C6D_TjsQ.js").then((e=>e.M))),__vite__mapDeps([11,1]),import.meta.url)))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vidyard-Qn3cK7yU.js").then((e=>e.V))),__vite__mapDeps([12,1]),import.meta.url)))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Kaltura-Cf8iZ543.js").then((e=>e.K))),__vite__mapDeps([13,1]),import.meta.url)))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,m.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,m.lazy)((()=>P((()=>import("./FilePlayer-IDHGcVTO.js").then((e=>e.F))),__vite__mapDeps([14,1]),import.meta.url)))}],re=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ut(e,t){return!!(e===t||re(e)&&re(t))}function Nt(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)k(e,r,{get:t[r],enumerable:!0})},Ce=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Xt(t))!qt.call(e,o)&&o!==r&&k(e,o,{get:()=>t[o],enumerable:!(a=Wt(t,o))||a.enumerable});return e},Zt=(e,t,r)=>(r=null!=e?Kt(Yt(e)):{},Ce(e&&e.__esModule?r:k(r,"default",{value:e,enumerable:!0}),e)),Qt=e=>Ce(k({},"__esModule",{value:!0}),e),Ie={};Jt(Ie,{defaultProps:()=>tr,propTypes:()=>er});var Me=Qt(Ie),Gt=Zt(Be);const{string:u,bool:y,number:b,array:V,oneOfType:S,shape:v,object:c,func:l,node:ae}=Gt.default,er={url:S([u,V,c]),playing:y,loop:y,controls:y,volume:b,muted:y,playbackRate:b,width:S([u,b]),height:S([u,b]),style:c,progressInterval:b,playsinline:y,pip:y,stopOnUnmount:y,light:S([y,u,c]),playIcon:ae,previewTabIndex:b,previewAriaLabel:u,fallback:ae,oEmbedUrl:u,wrapper:S([u,l,v({render:l.isRequired})]),config:v({soundcloud:v({options:c}),youtube:v({playerVars:c,embedOptions:c,onUnstarted:l}),facebook:v({appId:u,version:u,playerId:u,attributes:c}),dailymotion:v({params:c}),vimeo:v({playerOptions:c,title:u}),mux:v({attributes:c,version:u}),file:v({attributes:c,tracks:V,forceVideo:y,forceAudio:y,forceHLS:y,forceSafariHLS:y,forceDisableHls:y,forceDASH:y,forceFLV:y,hlsOptions:c,hlsVersion:u,dashVersion:u,flvVersion:u}),wistia:v({options:c,playerId:u,customControls:V}),mixcloud:v({options:c}),twitch:v({options:c,playerId:u}),vidyard:v({options:c})}),onReady:l,onStart:l,onPlay:l,onPause:l,onBuffer:l,onBufferEnd:l,onEnded:l,onError:l,onDuration:l,onSeek:l,onPlaybackRateChange:l,onPlaybackQualityChange:l,onProgress:l,onClickPreview:l,onEnablePIP:l,onDisablePIP:l},p=()=>{},tr={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:p},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onPlaybackQualityChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};var rr=Object.create,C=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,nr=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty,sr=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t)C(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of or(t))!ir.call(e,o)&&o!==r&&C(e,o,{get:()=>t[o],enumerable:!(a=ar(t,o))||a.enumerable});return e},$e=(e,t,r)=>(r=null!=e?rr(nr(e)):{},Le(e&&e.__esModule?r:C(r,"default",{value:e,enumerable:!0}),e)),ur=e=>Le(C({},"__esModule",{value:!0}),e),s=(e,t,r)=>(sr(e,"symbol"!=typeof t?t+"":t,r),r),De={};lr(De,{default:()=>U});var pr=ur(De),oe=$e(W),cr=$e(Re),ke=Me,fr=D;const dr=5e3;class U extends oe.Component{constructor(){super(...arguments),s(this,"mounted",!1),s(this,"isReady",!1),s(this,"isPlaying",!1),s(this,"isLoading",!0),s(this,"loadOnReady",null),s(this,"startOnPlay",!0),s(this,"seekOnPlay",null),s(this,"onDurationCalled",!1),s(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),s(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),s(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:e,played:e/r};null!==t&&(a.loadedSeconds=t,a.loaded=t/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),s(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:a}=this.props;e(),!a&&null!==r&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),s(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),s(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),s(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),s(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),s(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),s(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:a,muted:o,playbackRate:n,pip:i,loop:s,activePlayer:l,disableDeferredLoading:u}=this.props;if(!(0,cr.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!u&&!(0,fr.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}!e.playing&&r&&!this.isPlaying&&this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&null!==a&&this.player.setVolume(a),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),null!==a&&setTimeout((()=>this.player.setVolume(a))))),e.playbackRate!==n&&this.player.setPlaybackRate&&this.player.setPlaybackRate(n),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(this.isReady){if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}else 0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),dr))}render(){const e=this.props.activePlayer;return e?oe.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}s(U,"displayName","Player"),s(U,"propTypes",ke.propTypes),s(U,"defaultProps",ke.defaultProps);var yr=Object.create,I=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,hr=Object.getOwnPropertyNames,mr=Object.getPrototypeOf,Pr=Object.prototype.hasOwnProperty,vr=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},Ue=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of hr(t))!Pr.call(e,o)&&o!==r&&I(e,o,{get:()=>t[o],enumerable:!(a=_r(t,o))||a.enumerable});return e},M=(e,t,r)=>(r=null!=e?yr(mr(e)):{},Ue(e&&e.__esModule?r:I(r,"default",{value:e,enumerable:!0}),e)),Or=e=>Ue(I({},"__esModule",{value:!0}),e),i=(e,t,r)=>(vr(e,"symbol"!=typeof t?t+"":t,r),r),Ne={};gr(Ne,{createReactPlayer:()=>Ir});var wr=Or(Ne),T=M(W),br=M(se),H=M(Vt),ne=M(Re),R=Me,xe=D,Tr=M(pr);const Er=(0,xe.lazy)((()=>P((()=>import("./Preview-DMnd0tgi.js").then((e=>e.P))),__vite__mapDeps([15,1]),import.meta.url))),Sr=typeof window<"u"&&window.document&&typeof document<"u",Ar=typeof x<"u"&&x.window&&x.window.document,Rr=Object.keys(R.propTypes),Cr=Sr||Ar?T.Suspense:()=>null,A=[],Ir=(e,t)=>{var r;return r=class extends T.Component{constructor(){super(...arguments),i(this,"state",{showPreview:!!this.props.light}),i(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),i(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),i(this,"showPreview",(()=>{this.setState({showPreview:!0})})),i(this,"getDuration",(()=>this.player?this.player.getDuration():null)),i(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),i(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),i(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),i(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),i(this,"handleReady",(()=>{this.props.onReady(this)})),i(this,"getActivePlayer",(0,H.default)((r=>{for(const t of[...A,...e])if(t.canPlay(r))return t;return t||null}))),i(this,"getConfig",(0,H.default)(((e,t)=>{const{config:r}=this.props;return br.default.all([R.defaultProps.config,R.defaultProps.config[t]||{},r,r[t]||{}])}))),i(this,"getAttributes",(0,H.default)((e=>(0,xe.omit)(this.props,Rr)))),i(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return T.default.createElement(Tr.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,ne.default)(this.props,e)||!(0,ne.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:a,oEmbedUrl:o,previewAriaLabel:n}=this.props;return T.default.createElement(Er,{url:e,light:t,playIcon:r,previewTabIndex:a,previewAriaLabel:n,oEmbedUrl:o,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:a,fallback:o,wrapper:n}=this.props,{showPreview:i}=this.state,s=this.getAttributes(e),l="string"==typeof n?this.references.wrapper:void 0;return T.default.createElement(n,{ref:l,style:{...t,width:r,height:a},...s},T.default.createElement(Cr,{fallback:o},i?this.renderPreview(e):this.renderActivePlayer(e)))}},i(r,"displayName","ReactPlayer"),i(r,"propTypes",R.propTypes),i(r,"defaultProps",R.defaultProps),i(r,"addCustomPlayer",(e=>{A.push(e)})),i(r,"removeCustomPlayers",(()=>{A.length=0})),i(r,"canPlay",(t=>{for(const r of[...A,...e])if(r.canPlay(t))return!0;return!1})),i(r,"canEnablePIP",(t=>{for(const r of[...A,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r};var Mr=Object.create,N=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyNames,Dr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty,Ur=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},je=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of $r(t))!kr.call(e,o)&&o!==r&&N(e,o,{get:()=>t[o],enumerable:!(a=Lr(t,o))||a.enumerable});return e},Nr=(e,t,r)=>(r=null!=e?Mr(Dr(e)):{},je(e&&e.__esModule?r:N(r,"default",{value:e,enumerable:!0}),e)),xr=e=>je(N({},"__esModule",{value:!0}),e),Ve={};Ur(Ve,{default:()=>zr});var jr=xr(Ve),K=Nr(Dt),Vr=wr;const Hr=K.default[K.default.length-1];var zr=(0,Vr.createReactPlayer)(K.default,Hr);const Br=ze(jr),ie=({videoUrl:e})=>G.jsx(Fe,{"data-testid":"VideoPlayer",children:G.jsx(Br,{width:"auto",controls:!0,url:e})});try{ie.displayName="VideoPlayer",ie.__docgenInfo={description:"",displayName:"VideoPlayer",props:{videoUrl:{defaultValue:null,description:"",name:"videoUrl",required:!0,type:{name:"string"}}}}}catch{}export{ie as V,St as p,D as u}; \ No newline at end of file +const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./YouTube-CvLwurcl.js","./index-BP8_t0zE.js","./SoundCloud-DsED7oBZ.js","./Vimeo-BbCa-Lsd.js","./Mux-DyKgiBGA.js","./iframe-JYjbkGI-.js","./Facebook-DHDup0b1.js","./Streamable-LmIOlNYG.js","./Wistia-aari2ZbT.js","./Twitch-DEs2hxsl.js","./DailyMotion-DTkupcsa.js","./Mixcloud-CgY3HQKy.js","./Vidyard-Daq3mBEL.js","./Kaltura-Bp138jKL.js","./FilePlayer-Bw1_o_Ji.js","./Preview-DMnd0tgi.js"]))=>e.map((e=>r[e]));import{j as G}from"./jsx-runtime-CexXSJP5.js";import{r as W,b as He,c as x,g as ze}from"./index-BP8_t0zE.js";import{_ as P}from"./iframe-JYjbkGI-.js";import{c as se}from"./cjs-Clfm10Kj.js";import{p as Be}from"./index-Snk9MO9S.js";import{a as Fe}from"./theme-ui-components.esm-DCiJ1mMX.js";var Ke=function(e,t,r){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async=!("async"in t)||!!t.async,o.src=e,t.attrs&&We(o,t.attrs),t.text&&(o.text=""+t.text),("onload"in o?ee:Xe)(o,r),o.onload||ee(o,r),a.appendChild(o)};function We(e,t){for(var r in t)e.setAttribute(r,t[r])}function ee(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Xe(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}var Ye=Object.create,$=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty,Ge=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Je(t))!Qe.call(e,o)&&o!==r&&$(e,o,{get:()=>t[o],enumerable:!(a=qe(t,o))||a.enumerable});return e},X=(e,t,r)=>(r=null!=e?Ye(Ze(e)):{},le(e&&e.__esModule?r:$(r,"default",{value:e,enumerable:!0}),e)),et=e=>le($({},"__esModule",{value:!0}),e),ue={};Ge(ue,{callPlayer:()=>ht,getConfig:()=>yt,getSDK:()=>dt,isBlobUrl:()=>Pt,isMediaStream:()=>mt,lazy:()=>ot,omit:()=>_t,parseEndTime:()=>pt,parseStartTime:()=>ut,queryString:()=>ft,randomString:()=>ct,supportsWebKitPresentationMode:()=>vt});var D=et(ue),tt=X(W),rt=X(Ke),at=X(se);const ot=e=>tt.default.lazy((async()=>{const t=await e();return"function"==typeof t.default?t:t.default})),nt=/[?&#](?:start|t)=([0-9hms]+)/,it=/[?&#]end=([0-9hms]+)/,z=/(\d+)(h|m|s)/g,st=/^\d+$/;function pe(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(z))return lt(e);if(st.test(e))return parseInt(e)}}function lt(e){let t=0,r=z.exec(e);for(;null!==r;){const[,a,o]=r;"h"===o&&(t+=60*parseInt(a,10)*60),"m"===o&&(t+=60*parseInt(a,10)),"s"===o&&(t+=parseInt(a,10)),r=z.exec(e)}return t}function ut(e){return pe(e,nt)}function pt(e){return pe(e,it)}function ct(){return Math.random().toString(36).substr(2,5)}function ft(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function j(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const w={},dt=function(e,t,r=null,a=()=>!0,o=rt.default){const n=j(t);return n&&a(n)?Promise.resolve(n):new Promise(((a,n)=>{if(w[e])return void w[e].push({resolve:a,reject:n});w[e]=[{resolve:a,reject:n}];const i=t=>{w[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),i(j(t))}}o(e,(a=>{a?(w[e].forEach((e=>e.reject(a))),w[e]=null):r||i(j(t))}))}))};function yt(e,t){return(0,at.default)(t.config,e.config)}function _t(e,...t){const r=[].concat(...t),a={},o=Object.keys(e);for(const n of o)-1===r.indexOf(n)&&(a[n]=e[n]);return a}function ht(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function mt(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Pt(e){return/^blob:/.test(e)}function vt(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}var Y=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,Ot=Object.getOwnPropertyNames,wt=Object.prototype.hasOwnProperty,bt=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ot(t))!wt.call(e,o)&&o!==r&&Y(e,o,{get:()=>t[o],enumerable:!(a=gt(t,o))||a.enumerable});return e},Et=e=>Tt(Y({},"__esModule",{value:!0}),e),ce={};bt(ce,{AUDIO_EXTENSIONS:()=>q,DASH_EXTENSIONS:()=>Ee,FLV_EXTENSIONS:()=>Se,HLS_EXTENSIONS:()=>Z,MATCH_URL_DAILYMOTION:()=>Oe,MATCH_URL_FACEBOOK:()=>_e,MATCH_URL_FACEBOOK_WATCH:()=>he,MATCH_URL_KALTURA:()=>Te,MATCH_URL_MIXCLOUD:()=>we,MATCH_URL_MUX:()=>ye,MATCH_URL_SOUNDCLOUD:()=>fe,MATCH_URL_STREAMABLE:()=>me,MATCH_URL_TWITCH_CHANNEL:()=>ge,MATCH_URL_TWITCH_VIDEO:()=>ve,MATCH_URL_VIDYARD:()=>be,MATCH_URL_VIMEO:()=>de,MATCH_URL_WISTIA:()=>Pe,MATCH_URL_YOUTUBE:()=>B,VIDEO_EXTENSIONS:()=>J,canPlay:()=>At});var St=Et(ce),te=D;const B=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,fe=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,de=/vimeo\.com\/(?!progressive_redirect).+/,ye=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,_e=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,he=/^https?:\/\/fb\.watch\/.+$/,me=/streamable\.com\/([a-z0-9]+)$/,Pe=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ve=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,ge=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Oe=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,we=/mixcloud\.com\/([^/]+\/[^/]+)/,be=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Te=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,q=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,J=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Z=/\.(m3u8)($|\?)/i,Ee=/\.(mpd)($|\?)/i,Se=/\.(flv)($|\?)/i,F=e=>{if(e instanceof Array){for(const t of e)if("string"==typeof t&&F(t)||F(t.src))return!0;return!1}return!(!(0,te.isMediaStream)(e)&&!(0,te.isBlobUrl)(e))||(q.test(e)||J.test(e)||Z.test(e)||Ee.test(e)||Se.test(e))},At={youtube:e=>e instanceof Array?e.every((e=>B.test(e))):B.test(e),soundcloud:e=>fe.test(e)&&!q.test(e),vimeo:e=>de.test(e)&&!J.test(e)&&!Z.test(e),mux:e=>ye.test(e),facebook:e=>_e.test(e)||he.test(e),streamable:e=>me.test(e),wistia:e=>Pe.test(e),twitch:e=>ve.test(e)||ge.test(e),dailymotion:e=>Oe.test(e),mixcloud:e=>we.test(e),vidyard:e=>be.test(e),kaltura:e=>Te.test(e),file:F};var Q=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyNames,It=Object.prototype.hasOwnProperty,Mt=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},Lt=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Ct(t))!It.call(e,o)&&o!==r&&Q(e,o,{get:()=>t[o],enumerable:!(a=Rt(t,o))||a.enumerable});return e},$t=e=>Lt(Q({},"__esModule",{value:!0}),e),Ae={};Mt(Ae,{default:()=>kt});var Dt=$t(Ae),m=D,d=St,kt=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./YouTube-CvLwurcl.js").then((e=>e.Y))),__vite__mapDeps([0,1]),import.meta.url)))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./SoundCloud-DsED7oBZ.js").then((e=>e.S))),__vite__mapDeps([2,1]),import.meta.url)))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vimeo-BbCa-Lsd.js").then((e=>e.V))),__vite__mapDeps([3,1]),import.meta.url)))},{key:"mux",name:"Mux",canPlay:d.canPlay.mux,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mux-DyKgiBGA.js").then((e=>e.M))),__vite__mapDeps([4,5,1]),import.meta.url)))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Facebook-DHDup0b1.js").then((e=>e.F))),__vite__mapDeps([6,1]),import.meta.url)))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Streamable-LmIOlNYG.js").then((e=>e.S))),__vite__mapDeps([7,1]),import.meta.url)))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Wistia-aari2ZbT.js").then((e=>e.W))),__vite__mapDeps([8,1]),import.meta.url)))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Twitch-DEs2hxsl.js").then((e=>e.T))),__vite__mapDeps([9,1]),import.meta.url)))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./DailyMotion-DTkupcsa.js").then((e=>e.D))),__vite__mapDeps([10,1]),import.meta.url)))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Mixcloud-CgY3HQKy.js").then((e=>e.M))),__vite__mapDeps([11,1]),import.meta.url)))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Vidyard-Daq3mBEL.js").then((e=>e.V))),__vite__mapDeps([12,1]),import.meta.url)))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,m.lazy)((()=>P((()=>import("./Kaltura-Bp138jKL.js").then((e=>e.K))),__vite__mapDeps([13,1]),import.meta.url)))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,m.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,m.lazy)((()=>P((()=>import("./FilePlayer-Bw1_o_Ji.js").then((e=>e.F))),__vite__mapDeps([14,1]),import.meta.url)))}],re=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ut(e,t){return!!(e===t||re(e)&&re(t))}function Nt(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)k(e,r,{get:t[r],enumerable:!0})},Ce=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Xt(t))!qt.call(e,o)&&o!==r&&k(e,o,{get:()=>t[o],enumerable:!(a=Wt(t,o))||a.enumerable});return e},Zt=(e,t,r)=>(r=null!=e?Kt(Yt(e)):{},Ce(e&&e.__esModule?r:k(r,"default",{value:e,enumerable:!0}),e)),Qt=e=>Ce(k({},"__esModule",{value:!0}),e),Ie={};Jt(Ie,{defaultProps:()=>tr,propTypes:()=>er});var Me=Qt(Ie),Gt=Zt(Be);const{string:u,bool:y,number:b,array:V,oneOfType:S,shape:v,object:c,func:l,node:ae}=Gt.default,er={url:S([u,V,c]),playing:y,loop:y,controls:y,volume:b,muted:y,playbackRate:b,width:S([u,b]),height:S([u,b]),style:c,progressInterval:b,playsinline:y,pip:y,stopOnUnmount:y,light:S([y,u,c]),playIcon:ae,previewTabIndex:b,previewAriaLabel:u,fallback:ae,oEmbedUrl:u,wrapper:S([u,l,v({render:l.isRequired})]),config:v({soundcloud:v({options:c}),youtube:v({playerVars:c,embedOptions:c,onUnstarted:l}),facebook:v({appId:u,version:u,playerId:u,attributes:c}),dailymotion:v({params:c}),vimeo:v({playerOptions:c,title:u}),mux:v({attributes:c,version:u}),file:v({attributes:c,tracks:V,forceVideo:y,forceAudio:y,forceHLS:y,forceSafariHLS:y,forceDisableHls:y,forceDASH:y,forceFLV:y,hlsOptions:c,hlsVersion:u,dashVersion:u,flvVersion:u}),wistia:v({options:c,playerId:u,customControls:V}),mixcloud:v({options:c}),twitch:v({options:c,playerId:u}),vidyard:v({options:c})}),onReady:l,onStart:l,onPlay:l,onPause:l,onBuffer:l,onBufferEnd:l,onEnded:l,onError:l,onDuration:l,onSeek:l,onPlaybackRateChange:l,onPlaybackQualityChange:l,onProgress:l,onClickPreview:l,onEnablePIP:l,onDisablePIP:l},p=()=>{},tr={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:p},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onPlaybackQualityChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};var rr=Object.create,C=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyNames,nr=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty,sr=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t)C(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of or(t))!ir.call(e,o)&&o!==r&&C(e,o,{get:()=>t[o],enumerable:!(a=ar(t,o))||a.enumerable});return e},$e=(e,t,r)=>(r=null!=e?rr(nr(e)):{},Le(e&&e.__esModule?r:C(r,"default",{value:e,enumerable:!0}),e)),ur=e=>Le(C({},"__esModule",{value:!0}),e),s=(e,t,r)=>(sr(e,"symbol"!=typeof t?t+"":t,r),r),De={};lr(De,{default:()=>U});var pr=ur(De),oe=$e(W),cr=$e(Re),ke=Me,fr=D;const dr=5e3;class U extends oe.Component{constructor(){super(...arguments),s(this,"mounted",!1),s(this,"isReady",!1),s(this,"isPlaying",!1),s(this,"isLoading",!0),s(this,"loadOnReady",null),s(this,"startOnPlay",!0),s(this,"seekOnPlay",null),s(this,"onDurationCalled",!1),s(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),s(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),s(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:e,played:e/r};null!==t&&(a.loadedSeconds=t,a.loaded=t/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),s(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:a}=this.props;e(),!a&&null!==r&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),s(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),s(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),s(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),s(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),s(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),s(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:a,muted:o,playbackRate:n,pip:i,loop:s,activePlayer:l,disableDeferredLoading:u}=this.props;if(!(0,cr.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!u&&!(0,fr.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}!e.playing&&r&&!this.isPlaying&&this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&null!==a&&this.player.setVolume(a),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),null!==a&&setTimeout((()=>this.player.setVolume(a))))),e.playbackRate!==n&&this.player.setPlaybackRate&&this.player.setPlaybackRate(n),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(this.isReady){if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}else 0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),dr))}render(){const e=this.props.activePlayer;return e?oe.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}s(U,"displayName","Player"),s(U,"propTypes",ke.propTypes),s(U,"defaultProps",ke.defaultProps);var yr=Object.create,I=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,hr=Object.getOwnPropertyNames,mr=Object.getPrototypeOf,Pr=Object.prototype.hasOwnProperty,vr=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},Ue=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of hr(t))!Pr.call(e,o)&&o!==r&&I(e,o,{get:()=>t[o],enumerable:!(a=_r(t,o))||a.enumerable});return e},M=(e,t,r)=>(r=null!=e?yr(mr(e)):{},Ue(e&&e.__esModule?r:I(r,"default",{value:e,enumerable:!0}),e)),Or=e=>Ue(I({},"__esModule",{value:!0}),e),i=(e,t,r)=>(vr(e,"symbol"!=typeof t?t+"":t,r),r),Ne={};gr(Ne,{createReactPlayer:()=>Ir});var wr=Or(Ne),T=M(W),br=M(se),H=M(Vt),ne=M(Re),R=Me,xe=D,Tr=M(pr);const Er=(0,xe.lazy)((()=>P((()=>import("./Preview-DMnd0tgi.js").then((e=>e.P))),__vite__mapDeps([15,1]),import.meta.url))),Sr=typeof window<"u"&&window.document&&typeof document<"u",Ar=typeof x<"u"&&x.window&&x.window.document,Rr=Object.keys(R.propTypes),Cr=Sr||Ar?T.Suspense:()=>null,A=[],Ir=(e,t)=>{var r;return r=class extends T.Component{constructor(){super(...arguments),i(this,"state",{showPreview:!!this.props.light}),i(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),i(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),i(this,"showPreview",(()=>{this.setState({showPreview:!0})})),i(this,"getDuration",(()=>this.player?this.player.getDuration():null)),i(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),i(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),i(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),i(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),i(this,"handleReady",(()=>{this.props.onReady(this)})),i(this,"getActivePlayer",(0,H.default)((r=>{for(const t of[...A,...e])if(t.canPlay(r))return t;return t||null}))),i(this,"getConfig",(0,H.default)(((e,t)=>{const{config:r}=this.props;return br.default.all([R.defaultProps.config,R.defaultProps.config[t]||{},r,r[t]||{}])}))),i(this,"getAttributes",(0,H.default)((e=>(0,xe.omit)(this.props,Rr)))),i(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return T.default.createElement(Tr.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,ne.default)(this.props,e)||!(0,ne.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:a,oEmbedUrl:o,previewAriaLabel:n}=this.props;return T.default.createElement(Er,{url:e,light:t,playIcon:r,previewTabIndex:a,previewAriaLabel:n,oEmbedUrl:o,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:a,fallback:o,wrapper:n}=this.props,{showPreview:i}=this.state,s=this.getAttributes(e),l="string"==typeof n?this.references.wrapper:void 0;return T.default.createElement(n,{ref:l,style:{...t,width:r,height:a},...s},T.default.createElement(Cr,{fallback:o},i?this.renderPreview(e):this.renderActivePlayer(e)))}},i(r,"displayName","ReactPlayer"),i(r,"propTypes",R.propTypes),i(r,"defaultProps",R.defaultProps),i(r,"addCustomPlayer",(e=>{A.push(e)})),i(r,"removeCustomPlayers",(()=>{A.length=0})),i(r,"canPlay",(t=>{for(const r of[...A,...e])if(r.canPlay(t))return!0;return!1})),i(r,"canEnablePIP",(t=>{for(const r of[...A,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r};var Mr=Object.create,N=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyNames,Dr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty,Ur=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},je=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of $r(t))!kr.call(e,o)&&o!==r&&N(e,o,{get:()=>t[o],enumerable:!(a=Lr(t,o))||a.enumerable});return e},Nr=(e,t,r)=>(r=null!=e?Mr(Dr(e)):{},je(e&&e.__esModule?r:N(r,"default",{value:e,enumerable:!0}),e)),xr=e=>je(N({},"__esModule",{value:!0}),e),Ve={};Ur(Ve,{default:()=>zr});var jr=xr(Ve),K=Nr(Dt),Vr=wr;const Hr=K.default[K.default.length-1];var zr=(0,Vr.createReactPlayer)(K.default,Hr);const Br=ze(jr),ie=({videoUrl:e})=>G.jsx(Fe,{"data-testid":"VideoPlayer",children:G.jsx(Br,{width:"auto",controls:!0,url:e})});try{ie.displayName="VideoPlayer",ie.__docgenInfo={description:"",displayName:"VideoPlayer",props:{videoUrl:{defaultValue:null,description:"",name:"videoUrl",required:!0,type:{name:"string"}}}}}catch{}export{ie as V,St as p,D as u}; \ No newline at end of file diff --git a/storybook-static/assets/VideoPlayer.stories-Cr3502l-.js b/storybook-static/assets/VideoPlayer.stories-BhUETI7L.js similarity index 89% rename from storybook-static/assets/VideoPlayer.stories-Cr3502l-.js rename to storybook-static/assets/VideoPlayer.stories-BhUETI7L.js index 38863cddb6..af5350114f 100644 --- a/storybook-static/assets/VideoPlayer.stories-Cr3502l-.js +++ b/storybook-static/assets/VideoPlayer.stories-BhUETI7L.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{V as p}from"./VideoPlayer-Dmkl06KS.js";import"./index-BP8_t0zE.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./cjs-Clfm10Kj.js";import"./index-Snk9MO9S.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const j={title:"Components/VideoPlayer",component:p},c=r=>n.jsx(p,{...r}),r=c.bind({});r.args={videoUrl:"https://www.youtube.com/watch?v=anqfVCLRQHE"};const o=c.bind({});var e,t,s,a,m,i;o.args={videoUrl:"https://vimeo.com/492811707"},r.parameters={...r.parameters,docs:{...null==(e=r.parameters)?void 0:e.docs,source:{originalSource:"args => ",...null==(s=null==(t=r.parameters)?void 0:t.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(a=o.parameters)?void 0:a.docs,source:{originalSource:"args => ",...null==(i=null==(m=o.parameters)?void 0:m.docs)?void 0:i.source}}};const E=["Youtube","Vimeo"];export{o as Vimeo,r as Youtube,E as __namedExportsOrder,j as default}; \ No newline at end of file +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{V as p}from"./VideoPlayer-Dilqd3c4.js";import"./index-BP8_t0zE.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./cjs-Clfm10Kj.js";import"./index-Snk9MO9S.js";import"./theme-ui-components.esm-DCiJ1mMX.js";import"./parseProps-780b287c.browser.esm-DiCerVr_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js";import"./hoist-non-react-statics.cjs-CQI8syxn.js";const j={title:"Components/VideoPlayer",component:p},c=r=>n.jsx(p,{...r}),r=c.bind({});r.args={videoUrl:"https://www.youtube.com/watch?v=anqfVCLRQHE"};const o=c.bind({});var e,t,s,a,m,i;o.args={videoUrl:"https://vimeo.com/492811707"},r.parameters={...r.parameters,docs:{...null==(e=r.parameters)?void 0:e.docs,source:{originalSource:"args => ",...null==(s=null==(t=r.parameters)?void 0:t.docs)?void 0:s.source}}},o.parameters={...o.parameters,docs:{...null==(a=o.parameters)?void 0:a.docs,source:{originalSource:"args => ",...null==(i=null==(m=o.parameters)?void 0:m.docs)?void 0:i.source}}};const E=["Youtube","Vimeo"];export{o as Vimeo,r as Youtube,E as __namedExportsOrder,j as default}; \ No newline at end of file diff --git a/storybook-static/assets/Vidyard-Qn3cK7yU.js b/storybook-static/assets/Vidyard-Daq3mBEL.js similarity index 97% rename from storybook-static/assets/Vidyard-Qn3cK7yU.js rename to storybook-static/assets/Vidyard-Daq3mBEL.js index 8c72b27825..2a6ef1316b 100644 --- a/storybook-static/assets/Vidyard-Qn3cK7yU.js +++ b/storybook-static/assets/Vidyard-Daq3mBEL.js @@ -1 +1 @@ -import{g,r as v}from"./index-BP8_t0zE.js";import{u as b,p as O}from"./VideoPlayer-Dmkl06KS.js";function V(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,n=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of w(t))!M.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=j(t,s))||a.enumerable});return e},L=(e,t,r)=>(r=null!=e?D(S(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),R=e=>h(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(A(e,"symbol"!=typeof t?t+"":t,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",(()=>{this.setVolume(0)})),s(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,config:r,onError:a,onDuration:s}=this.props,o=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then((e=>{this.container&&(e.api.addReadyListener(((e,t)=>{this.player||(this.player=t,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))}),o),e.api.renderPlayer({uuid:o,container:this.container,autoplay:t?1:0,...r.options}),e.api.getPlayerMetadata(o).then((e=>{this.duration=e.length_in_seconds,s(e.length_in_seconds)})))}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard"),s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; \ No newline at end of file +import{g,r as v}from"./index-BP8_t0zE.js";import{u as b,p as O}from"./VideoPlayer-Dilqd3c4.js";function V(e,t){for(var r=0;ra[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,n=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of w(t))!M.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=j(t,s))||a.enumerable});return e},L=(e,t,r)=>(r=null!=e?D(S(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),R=e=>h(n({},"__esModule",{value:!0}),e),s=(e,t,r)=>(A(e,"symbol"!=typeof t?t+"":t,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",(()=>{this.setVolume(0)})),s(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,config:r,onError:a,onDuration:s}=this.props,o=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then((e=>{this.container&&(e.api.addReadyListener(((e,t)=>{this.player||(this.player=t,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))}),o),e.api.renderPlayer({uuid:o,container:this.container,autoplay:t?1:0,...r.options}),e.api.getPlayerMetadata(o).then((e=>{this.duration=e.length_in_seconds,s(e.length_in_seconds)})))}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:t},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard"),s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; \ No newline at end of file diff --git a/storybook-static/assets/Vimeo-CZSqdWwA.js b/storybook-static/assets/Vimeo-BbCa-Lsd.js similarity index 98% rename from storybook-static/assets/Vimeo-CZSqdWwA.js rename to storybook-static/assets/Vimeo-BbCa-Lsd.js index ce4b431a1a..2601948ed2 100644 --- a/storybook-static/assets/Vimeo-CZSqdWwA.js +++ b/storybook-static/assets/Vimeo-BbCa-Lsd.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-BP8_t0zE.js";import{u as m,p as _}from"./VideoPlayer-Dmkl06KS.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!D.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},j=(e,t,r)=>(r=null!=e?g(O(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),E=e=>h(n({},"__esModule",{value:!0}),e),i=(e,t,r)=>(w(e,"symbol"!=typeof t?t+"":t,r),r),c={};M(c,{default:()=>l});var y=E(c),p=j(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=e=>e.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",(()=>{this.setMuted(!0)})),i(this,"unmute",(()=>{this.setMuted(!1)})),i(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then((t=>{if(!this.container)return;const{playerOptions:r,title:s}=this.props.config;this.player=new t.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...r}),this.player.ready().then((()=>{const e=this.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",s&&(e.title=s)})).catch(this.props.onError),this.player.on("loaded",(()=>{this.props.onReady(),this.refreshDuration()})),this.player.on("play",(()=>{this.props.onPlay(),this.refreshDuration()})),this.player.on("pause",this.props.onPause),this.player.on("seeked",(e=>this.props.onSeek(e.seconds))),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({seconds:e})=>{this.currentTime=e})),this.player.on("progress",(({seconds:e})=>{this.secondsLoaded=e})),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",(e=>this.props.onPlaybackRateChange(e.playbackRate)))}),this.props.onError)}refreshDuration(){this.player.getDuration().then((e=>{this.duration=e}))}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,t={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:t})}}i(l,"displayName","Vimeo"),i(l,"canPlay",L.canPlay.vimeo),i(l,"forceLoad",!0);const T=d(y),N=P({__proto__:null,default:T},[y]);export{N as V}; \ No newline at end of file +import{g as d,r as f}from"./index-BP8_t0zE.js";import{u as m,p as _}from"./VideoPlayer-Dilqd3c4.js";function P(e,t){for(var r=0;rs[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of v(t))!D.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},j=(e,t,r)=>(r=null!=e?g(O(e)):{},h(e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),E=e=>h(n({},"__esModule",{value:!0}),e),i=(e,t,r)=>(w(e,"symbol"!=typeof t?t+"":t,r),r),c={};M(c,{default:()=>l});var y=E(c),p=j(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=e=>e.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",(()=>{this.setMuted(!0)})),i(this,"unmute",(()=>{this.setMuted(!1)})),i(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then((t=>{if(!this.container)return;const{playerOptions:r,title:s}=this.props.config;this.player=new t.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...r}),this.player.ready().then((()=>{const e=this.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",s&&(e.title=s)})).catch(this.props.onError),this.player.on("loaded",(()=>{this.props.onReady(),this.refreshDuration()})),this.player.on("play",(()=>{this.props.onPlay(),this.refreshDuration()})),this.player.on("pause",this.props.onPause),this.player.on("seeked",(e=>this.props.onSeek(e.seconds))),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({seconds:e})=>{this.currentTime=e})),this.player.on("progress",(({seconds:e})=>{this.secondsLoaded=e})),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",(e=>this.props.onPlaybackRateChange(e.playbackRate)))}),this.props.onError)}refreshDuration(){this.player.getDuration().then((e=>{this.duration=e}))}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,t={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:t})}}i(l,"displayName","Vimeo"),i(l,"canPlay",L.canPlay.vimeo),i(l,"forceLoad",!0);const T=d(y),N=P({__proto__:null,default:T},[y]);export{N as V}; \ No newline at end of file diff --git a/storybook-static/assets/Wistia-CYLWvkU0.js b/storybook-static/assets/Wistia-aari2ZbT.js similarity index 98% rename from storybook-static/assets/Wistia-CYLWvkU0.js rename to storybook-static/assets/Wistia-aari2ZbT.js index 8fa3aff8d0..073e588174 100644 --- a/storybook-static/assets/Wistia-CYLWvkU0.js +++ b/storybook-static/assets/Wistia-aari2ZbT.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-BP8_t0zE.js";import{u as v,p as w}from"./VideoPlayer-Dmkl06KS.js";function O(e,t){for(var a=0;an[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(e,t,a)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,j=(e,t)=>{for(var a in t)i(e,a,{get:t[a],enumerable:!0})},h=(e,t,a,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of D(t))!S.call(e,l)&&l!==a&&i(e,l,{get:()=>t[l],enumerable:!(n=k(t,l))||n.enumerable});return e},I=(e,t,a)=>(a=null!=e?C(E(e)):{},h(e&&e.__esModule?a:i(a,"default",{value:e,enumerable:!0}),e)),M=e=>h(i({},"__esModule",{value:!0}),e),n=(e,t,a)=>(R(e,"symbol"!=typeof t?t+"":t,a),a),d={};j(d,{default:()=>l});var _=M(d),y=I(g),c=v,P=w;const W="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onSeek",((...e)=>this.props.onSeek(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onPlaybackRateChange",((...e)=>this.props.onPlaybackRateChange(...e))),n(this,"mute",(()=>{this.callPlayer("mute")})),n(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,muted:a,controls:n,onReady:l,config:o,onError:s}=this.props;(0,c.getSDK)(W,x).then((e=>{o.customControls&&o.customControls.forEach((t=>e.defineControl(t))),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:t,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:n,fullscreenButton:n,playbar:n,playbackRateControl:n,qualityControl:n,volumeControl:n,settingsControl:n,smallPlayButton:n,...o.options},onReady:e=>{this.player=e,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),l()}})}),s)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,t=!0){this.callPlayer("time",e),t||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,t=e&&e.match(P.MATCH_URL_WISTIA)[1],a=`wistia_embed wistia_async_${t}`;return y.default.createElement("div",{id:this.playerID,key:t,className:a,style:{width:"100%",height:"100%"}})}}n(l,"displayName","Wistia"),n(l,"canPlay",P.canPlay.wistia),n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; \ No newline at end of file +import{g as m,r as g}from"./index-BP8_t0zE.js";import{u as v,p as w}from"./VideoPlayer-Dilqd3c4.js";function O(e,t){for(var a=0;an[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(e,t,a)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,j=(e,t)=>{for(var a in t)i(e,a,{get:t[a],enumerable:!0})},h=(e,t,a,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of D(t))!S.call(e,l)&&l!==a&&i(e,l,{get:()=>t[l],enumerable:!(n=k(t,l))||n.enumerable});return e},I=(e,t,a)=>(a=null!=e?C(E(e)):{},h(e&&e.__esModule?a:i(a,"default",{value:e,enumerable:!0}),e)),M=e=>h(i({},"__esModule",{value:!0}),e),n=(e,t,a)=>(R(e,"symbol"!=typeof t?t+"":t,a),a),d={};j(d,{default:()=>l});var _=M(d),y=I(g),c=v,P=w;const W="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",((...e)=>this.props.onPlay(...e))),n(this,"onPause",((...e)=>this.props.onPause(...e))),n(this,"onSeek",((...e)=>this.props.onSeek(...e))),n(this,"onEnded",((...e)=>this.props.onEnded(...e))),n(this,"onPlaybackRateChange",((...e)=>this.props.onPlaybackRateChange(...e))),n(this,"mute",(()=>{this.callPlayer("mute")})),n(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,muted:a,controls:n,onReady:l,config:o,onError:s}=this.props;(0,c.getSDK)(W,x).then((e=>{o.customControls&&o.customControls.forEach((t=>e.defineControl(t))),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:t,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:n,fullscreenButton:n,playbar:n,playbackRateControl:n,qualityControl:n,volumeControl:n,settingsControl:n,smallPlayButton:n,...o.options},onReady:e=>{this.player=e,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),l()}})}),s)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,t=!0){this.callPlayer("time",e),t||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,t=e&&e.match(P.MATCH_URL_WISTIA)[1],a=`wistia_embed wistia_async_${t}`;return y.default.createElement("div",{id:this.playerID,key:t,className:a,style:{width:"100%",height:"100%"}})}}n(l,"displayName","Wistia"),n(l,"canPlay",P.canPlay.wistia),n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; \ No newline at end of file diff --git a/storybook-static/assets/WithTooltip-V3YHNWJZ-DYG6ob1x.js b/storybook-static/assets/WithTooltip-V3YHNWJZ-DanSchpU.js similarity index 76% rename from storybook-static/assets/WithTooltip-V3YHNWJZ-DYG6ob1x.js rename to storybook-static/assets/WithTooltip-V3YHNWJZ-DanSchpU.js index 5c64342cf0..4bc256c9a5 100644 --- a/storybook-static/assets/WithTooltip-V3YHNWJZ-DYG6ob1x.js +++ b/storybook-static/assets/WithTooltip-V3YHNWJZ-DanSchpU.js @@ -1 +1 @@ -import{W as u,W as x,a as P}from"./index-HxeQ2bN6.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{u as WithToolTipState,x as WithTooltip,P as WithTooltipPure}; \ No newline at end of file +import{W as u,W as x,a as P}from"./index-BYSxpCNe.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{u as WithToolTipState,x as WithTooltip,P as WithTooltipPure}; \ No newline at end of file diff --git a/storybook-static/assets/YouTube-CNSKMxNM.js b/storybook-static/assets/YouTube-CvLwurcl.js similarity index 95% rename from storybook-static/assets/YouTube-CNSKMxNM.js rename to storybook-static/assets/YouTube-CvLwurcl.js index f46c81406c..a27ba5af52 100644 --- a/storybook-static/assets/YouTube-CNSKMxNM.js +++ b/storybook-static/assets/YouTube-CvLwurcl.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-BP8_t0zE.js";import{u as L,p as M}from"./VideoPlayer-Dmkl06KS.js";function Y(e,t){for(var a=0;as[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var k=Object.create,u=Object.defineProperty,N=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(e,t,a)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K=(e,t)=>{for(var a in t)u(e,a,{get:t[a],enumerable:!0})},v=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of j(t))!B.call(e,o)&&o!==a&&u(e,o,{get:()=>t[o],enumerable:!(s=N(t,o))||s.enumerable});return e},F=(e,t,a)=>(a=null!=e?k(V(e)):{},v(e&&e.__esModule?a:u(a,"default",{value:e,enumerable:!0}),e)),H=e=>v(u({},"__esModule",{value:!0}),e),s=(e,t,a)=>(x(e,"symbol"!=typeof t?t+"":t,a),a),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=M;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}})),s(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:s,onBuffer:o,onBufferEnd:r,onEnded:l,onReady:n,loop:i,config:{playerVars:p,onUnstarted:y}}=this.props,{UNSTARTED:c,PLAYING:u,PAUSED:d,BUFFERING:h,ENDED:f,CUED:m}=window[T].PlayerState;if(t===c&&y(),t===u&&(a(),r()),t===d&&s(),t===h&&o(),t===f){const e=!!this.callPlayer("getPlaylist");i&&!e&&(p.start?this.seekTo(p.start):this.play()),l()}t===m&&n()})),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unMute")})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:s,playsinline:o,controls:r,loop:l,config:n,onError:i}=this.props,{playerVars:y,embedOptions:c}=n,u=this.getID(e);if(t)return f.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:u,startSeconds:(0,p.parseStartTime)(e)||y.start,endSeconds:(0,p.parseEndTime)(e)||y.end});(0,p.getSDK)(G,T,z,(e=>e.loaded)).then((t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:u,playerVars:{autoplay:a?1:0,mute:s?1:0,controls:r?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...y},events:{onReady:()=>{l&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>i(e.data)},host:Q.test(e)?Z:void 0,...c}))}),i),c.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}s(O,"displayName","YouTube"),s(O,"canPlay",D.canPlay.youtube);const $=U(S),W=Y({__proto__:null,default:$},[S]);export{W as Y}; \ No newline at end of file +import{g as U,r as I}from"./index-BP8_t0zE.js";import{u as L,p as M}from"./VideoPlayer-Dilqd3c4.js";function Y(e,t){for(var a=0;as[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var k=Object.create,u=Object.defineProperty,N=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(e,t,a)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K=(e,t)=>{for(var a in t)u(e,a,{get:t[a],enumerable:!0})},v=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of j(t))!B.call(e,o)&&o!==a&&u(e,o,{get:()=>t[o],enumerable:!(s=N(t,o))||s.enumerable});return e},F=(e,t,a)=>(a=null!=e?k(V(e)):{},v(e&&e.__esModule?a:u(a,"default",{value:e,enumerable:!0}),e)),H=e=>v(u({},"__esModule",{value:!0}),e),s=(e,t,a)=>(x(e,"symbol"!=typeof t?t+"":t,a),a),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=M;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}})),s(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:s,onBuffer:o,onBufferEnd:r,onEnded:l,onReady:n,loop:i,config:{playerVars:p,onUnstarted:y}}=this.props,{UNSTARTED:c,PLAYING:u,PAUSED:d,BUFFERING:h,ENDED:f,CUED:P}=window[T].PlayerState;if(t===c&&y(),t===u&&(a(),r()),t===d&&s(),t===h&&o(),t===f){const e=!!this.callPlayer("getPlaylist");i&&!e&&(p.start?this.seekTo(p.start):this.play()),l()}t===P&&n()})),s(this,"mute",(()=>{this.callPlayer("mute")})),s(this,"unmute",(()=>{this.callPlayer("unMute")})),s(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:s,playsinline:o,controls:r,loop:l,config:n,onError:i}=this.props,{playerVars:y,embedOptions:c}=n,u=this.getID(e);if(t)return f.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:u,startSeconds:(0,p.parseStartTime)(e)||y.start,endSeconds:(0,p.parseEndTime)(e)||y.end});(0,p.getSDK)(G,T,z,(e=>e.loaded)).then((t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:u,playerVars:{autoplay:a?1:0,mute:s?1:0,controls:r?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...y},events:{onReady:()=>{l&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>i(e.data)},host:Q.test(e)?Z:void 0,...c}))}),i),c.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}s(O,"displayName","YouTube"),s(O,"canPlay",D.canPlay.youtube);const $=U(S),W=Y({__proto__:null,default:$},[S]);export{W as Y}; \ No newline at end of file diff --git a/storybook-static/assets/formatter-SWP5E3XI-CarBMRH9.js b/storybook-static/assets/formatter-SWP5E3XI-C6ixPNGK.js similarity index 99% rename from storybook-static/assets/formatter-SWP5E3XI-CarBMRH9.js rename to storybook-static/assets/formatter-SWP5E3XI-C6ixPNGK.js index e0cf210f2c..69dbf7169e 100644 --- a/storybook-static/assets/formatter-SWP5E3XI-CarBMRH9.js +++ b/storybook-static/assets/formatter-SWP5E3XI-C6ixPNGK.js @@ -1,4 +1,4 @@ -import{_ as ea,m as pl,b as ta}from"./index-HxeQ2bN6.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";var cl=ta({"node_modules/prettier/parser-html.js"(e,t){!function(r){if("object"==typeof e&&"object"==typeof t)t.exports=r();else if("function"==typeof define&&define.amd)define(r);else{var n=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};n.prettierPlugins=n.prettierPlugins||{},n.prettierPlugins.html=r()}}((function(){var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),n=e(((e,t)=>{var n=r();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),u=e(((e,t)=>{var n=r();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),i=e(((e,t)=>{var r=u(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),s=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),a=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),o=e(((e,t)=>{var r=u(),n=Function.prototype,i=n.call,s=r&&n.bind.bind(i,i);t.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}})),l=e(((e,t)=>{var r=o(),n=r({}.toString),u=r("".slice);t.exports=function(e){return u(n(e),8,-1)}})),p=e(((e,t)=>{var n=o(),u=r(),i=l(),s=Object,a=n("".split);t.exports=u((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s})),c=e(((e,t)=>{t.exports=function(e){return null==e}})),D=e(((e,t)=>{var r=c(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),d=e(((e,t)=>{var r=p(),n=D();t.exports=function(e){return r(n(e))}})),f=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),m=e(((e,t)=>{var r=f(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),h=e(((e,t)=>{var r=m(),n=f(),u=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===u}:function(e){return"object"==typeof e?null!==e:r(e)}})),g=e(((e,r)=>{var n=t(),u=m();r.exports=function(e,t){return arguments.length<2?function(e){return u(e)?e:void 0}(n[e]):n[e]&&n[e][t]}})),y=e(((e,t)=>{var r=o();t.exports=r({}.isPrototypeOf)})),E=e(((e,t)=>{var r=g();t.exports=r("navigator","userAgent")||""})),C=e(((e,r)=>{var n,u,i=t(),s=E(),a=i.process,o=i.Deno,l=a&&a.versions||o&&o.version,p=l&&l.v8;p&&(u=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!u&&s&&((!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&((n=s.match(/Chrome\/(\d+)/))&&(u=+n[1]))),r.exports=u})),F=e(((e,t)=>{var n=C(),u=r();t.exports=!!Object.getOwnPropertySymbols&&!u((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),A=e(((e,t)=>{var r=F();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),v=e(((e,t)=>{var r=g(),n=m(),u=y(),i=A(),s=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&u(t.prototype,s(e))}})),b=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),S=e(((e,t)=>{var r=m(),n=b(),u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not a function")}})),x=e(((e,t)=>{var r=S(),n=c();t.exports=function(e,t){var u=e[t];return n(u)?void 0:r(u)}})),T=e(((e,t)=>{var r=i(),n=m(),u=h(),s=TypeError;t.exports=function(e,t){var i,a;if("string"===t&&n(i=e.toString)&&!u(a=r(i,e))||n(i=e.valueOf)&&!u(a=r(i,e))||"string"!==t&&n(i=e.toString)&&!u(a=r(i,e)))return a;throw s("Can't convert object to primitive value")}})),B=e(((e,t)=>{t.exports=!1})),w=e(((e,r)=>{var n=t(),u=Object.defineProperty;r.exports=function(e,t){try{u(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),N=e(((e,r)=>{var n=t(),u=w(),i="__core-js_shared__",s=n[i]||u(i,{});r.exports=s})),_=e(((e,t)=>{var r=B(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),k=e(((e,t)=>{var r=D(),n=Object;t.exports=function(e){return n(r(e))}})),P=e(((e,t)=>{var r=o(),n=k(),u=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return u(n(e),t)}})),O=e(((e,t)=>{var r=o(),n=0,u=Math.random(),i=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+u,36)}})),I=e(((e,r)=>{var n=t(),u=_(),i=P(),s=O(),a=F(),o=A(),l=u("wks"),p=n.Symbol,c=p&&p.for,D=o?p:p&&p.withoutSetter||s;r.exports=function(e){if(!i(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;a&&i(p,e)?l[e]=p[e]:l[e]=o&&c?c(t):D(t)}return l[e]}})),j=e(((e,t)=>{var r=i(),n=h(),u=v(),s=x(),a=T(),o=I(),l=TypeError,p=o("toPrimitive");t.exports=function(e,t){if(!n(e)||u(e))return e;var i,o=s(e,p);if(o){if(void 0===t&&(t="default"),i=r(o,e,t),!n(i)||u(i))return i;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}})),L=e(((e,t)=>{var r=j(),n=v();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),$=e(((e,r)=>{var n=t(),u=h(),i=n.document,s=u(i)&&u(i.createElement);r.exports=function(e){return s?i.createElement(e):{}}})),R=e(((e,t)=>{var u=n(),i=r(),s=$();t.exports=!u&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))})),M=e((e=>{var t=n(),r=i(),u=s(),o=a(),l=d(),p=L(),c=P(),D=R(),f=Object.getOwnPropertyDescriptor;e.f=t?f:function(e,t){if(e=l(e),t=p(t),D)try{return f(e,t)}catch{}if(c(e,t))return o(!r(u.f,e,t),e[t])}})),q=e(((e,t)=>{var u=n(),i=r();t.exports=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),V=e(((e,t)=>{var r=h(),n=String,u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not an object")}})),U=e((e=>{var t=n(),r=R(),u=q(),i=V(),s=L(),a=TypeError,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",c="configurable",D="writable";e.f=t?u?function(e,t,r){if(i(e),t=s(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&D in r&&!r[D]){var n=l(e,t);n&&n[D]&&(e[t]=r.value,r={configurable:c in r?r[c]:n[c],enumerable:p in r?r[p]:n[p],writable:!1})}return o(e,t,r)}:o:function(e,t,n){if(i(e),t=s(t),i(n),r)try{return o(e,t,n)}catch{}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),W=e(((e,t)=>{var r=n(),u=U(),i=a();t.exports=r?function(e,t,r){return u.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}})),G=e(((e,t)=>{var r=n(),u=P(),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=u(i,"name"),o=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:o,CONFIGURABLE:l}})),H=e(((e,t)=>{var r=o(),n=m(),u=N(),i=r(Function.toString);n(u.inspectSource)||(u.inspectSource=function(e){return i(e)}),t.exports=u.inspectSource})),X=e(((e,r)=>{var n=t(),u=m(),i=n.WeakMap;r.exports=u(i)&&/native code/.test(String(i))})),J=e(((e,t)=>{var r=_(),n=O(),u=r("keys");t.exports=function(e){return u[e]||(u[e]=n(e))}})),z=e(((e,t)=>{t.exports={}})),Y=e(((e,r)=>{var n,u,i,s,a,o=X(),l=t(),p=h(),c=W(),D=P(),d=N(),f=J(),m=z(),g="Object already initialized",y=l.TypeError,E=l.WeakMap;o||d.state?((s=d.state||(d.state=new E)).get=s.get,s.has=s.has,s.set=s.set,n=function(e,t){if(s.has(e))throw y(g);return t.facade=e,s.set(e,t),t},u=function(e){return s.get(e)||{}},i=function(e){return s.has(e)}):(m[a=f("state")]=!0,n=function(e,t){if(D(e,a))throw y(g);return t.facade=e,c(e,a,t),t},u=function(e){return D(e,a)?e[a]:{}},i=function(e){return D(e,a)}),r.exports={set:n,get:u,has:i,enforce:function(e){return i(e)?u(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=u(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}})),Q=e(((e,t)=>{var u=r(),i=m(),s=P(),a=n(),o=G().CONFIGURABLE,l=H(),p=Y(),c=p.enforce,D=p.get,d=Object.defineProperty,f=a&&!u((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||o&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=c(e);return s(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return i(this)&&D(this).source||l(this)}),"toString")})),K=e(((e,t)=>{var r=m(),n=U(),u=Q(),i=w();t.exports=function(e,t,s,a){a||(a={});var o=a.enumerable,l=void 0!==a.name?a.name:t;if(r(s)&&u(s,l,a),a.global)o?e[t]=s:i(t,s);else{try{a.unsafe?e[t]&&(o=!0):delete e[t]}catch{}o?e[t]=s:n.f(e,t,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}})),Z=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),ee=e(((e,t)=>{var r=Z();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),te=e(((e,t)=>{var r=ee(),n=Math.max,u=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):u(i,t)}})),re=e(((e,t)=>{var r=ee(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),ne=e(((e,t)=>{var r=re();t.exports=function(e){return r(e.length)}})),ue=e(((e,t)=>{var r=d(),n=te(),u=ne(),i=function(e){return function(t,i,s){var a,o=r(t),l=u(o),p=n(s,l);if(e&&i!=i){for(;l>p;)if((a=o[p++])!=a)return!0}else for(;l>p;p++)if((e||p in o)&&o[p]===i)return e||p||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),ie=e(((e,t)=>{var r=o(),n=P(),u=d(),i=ue().indexOf,s=z(),a=r([].push);t.exports=function(e,t){var r,o=u(e),l=0,p=[];for(r in o)!n(s,r)&&n(o,r)&&a(p,r);for(;t.length>l;)n(o,r=t[l++])&&(~i(p,r)||a(p,r));return p}})),se=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ae=e((e=>{var t=ie(),r=se().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),oe=e((e=>{e.f=Object.getOwnPropertySymbols})),le=e(((e,t)=>{var r=g(),n=o(),u=ae(),i=oe(),s=V(),a=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=u.f(s(e)),r=i.f;return r?a(t,r(e)):t}})),pe=e(((e,t)=>{var r=P(),n=le(),u=M(),i=U();t.exports=function(e,t,s){for(var a=n(t),o=i.f,l=u.f,p=0;p{var n=r(),u=m(),i=/#|\.prototype\./,s=function(e,t){var r=o[a(e)];return r==p||r!=l&&(u(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=s.data={},l=s.NATIVE="N",p=s.POLYFILL="P";t.exports=s})),De=e(((e,r)=>{var n=t(),u=M().f,i=W(),s=K(),a=w(),o=pe(),l=ce();r.exports=function(e,t){var r,p,c,D,d,f=e.target,m=e.global,h=e.stat;if(r=m?n:h?n[f]||a(f,{}):(n[f]||{}).prototype)for(p in t){if(D=t[p],e.dontCallGetSet?c=(d=u(r,p))&&d.value:c=r[p],!l(m?p:f+(h?".":"#")+p,e.forced)&&void 0!==c){if(typeof D==typeof c)continue;o(D,c)}(e.sham||c&&c.sham)&&i(D,"sham",!0),s(r,p,D,e)}}})),de=e((()=>{var e=De(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),fe=e((()=>{de()})),me=e(((e,t)=>{var r=l();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),he=e(((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}})),ge=e(((e,t)=>{var r=l(),n=o();t.exports=function(e){if("Function"===r(e))return n(e)}})),ye=e(((e,t)=>{var r=ge(),n=S(),i=u(),s=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}})),Ee=e(((e,t)=>{var r=me(),n=ne(),u=he(),i=ye(),s=function(e,t,a,o,l,p,c,D){for(var d,f,m=l,h=0,g=!!c&&i(c,D);h0&&r(d)?(f=n(d),m=s(e,t,d,f,m,p-1)-1):(u(m+1),e[m]=d),m++),h++;return m};t.exports=s})),Ce=e(((e,t)=>{var r={};r[I()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Fe=e(((e,t)=>{var r=Ce(),n=m(),u=l(),i=I()("toStringTag"),s=Object,a="Arguments"==u(function(){return arguments}());t.exports=r?u:function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=s(e),i))?r:a?u(t):"Object"==(o=u(t))&&n(t.callee)?"Arguments":o}})),Ae=e(((e,t)=>{var n=o(),u=r(),i=m(),s=Fe(),a=g(),l=H(),p=function(){},c=[],D=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.exec(p),y=function(e){if(!i(e))return!1;try{return D(p,c,e),!0}catch{return!1}},E=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch{return!0}};E.sham=!0,t.exports=!D||u((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?E:y})),ve=e(((e,t)=>{var r=me(),n=Ae(),u=h(),i=I()("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,n(t)&&(t===s||r(t.prototype))?t=void 0:u(t)&&(null===(t=t[i])&&(t=void 0))),void 0===t?s:t}})),be=e(((e,t)=>{var r=ve();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),Se=e((()=>{var e=De(),t=Ee(),r=S(),n=k(),u=ne(),i=be();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=n(this),o=u(a);return r(e),(s=i(a,0)).length=t(s,a,a,o,0,1,e,arguments.length>1?arguments[1]:void 0),s}})})),xe=e(((e,t)=>{t.exports={}})),Te=e(((e,t)=>{var r=I(),n=xe(),u=r("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[u]===e)}})),Be=e(((e,t)=>{var r=Fe(),n=x(),u=c(),i=xe(),s=I()("iterator");t.exports=function(e){if(!u(e))return n(e,s)||n(e,"@@iterator")||i[r(e)]}})),we=e(((e,t)=>{var r=i(),n=S(),u=V(),s=b(),a=Be(),o=TypeError;t.exports=function(e,t){var i=arguments.length<2?a(e):t;if(n(i))return u(r(i,e));throw o(s(e)+" is not iterable")}})),Ne=e(((e,t)=>{var r=i(),n=V(),u=x();t.exports=function(e,t,i){var s,a;n(e);try{if(!(s=u(e,"return"))){if("throw"===t)throw i;return i}s=r(s,e)}catch(o){a=!0,s=o}if("throw"===t)throw i;if(a)throw s;return n(s),i}})),_e=e(((e,t)=>{var r=ye(),n=i(),u=V(),s=b(),a=Te(),o=ne(),l=y(),p=we(),c=Be(),D=Ne(),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;t.exports=function(e,t,i){var h,g,y,E,C,F,A,v=i&&i.that,b=!(!i||!i.AS_ENTRIES),S=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),T=!(!i||!i.INTERRUPTED),B=r(t,v),w=function(e){return h&&D(h,"normal",e),new f(!0,e)},N=function(e){return b?(u(e),T?B(e[0],e[1],w):B(e[0],e[1])):T?B(e,w):B(e)};if(S)h=e.iterator;else if(x)h=e;else{if(!(g=c(e)))throw d(s(e)+" is not iterable");if(a(g)){for(y=0,E=o(e);E>y;y++)if((C=N(e[y]))&&l(m,C))return C;return new f(!1)}h=p(e,g)}for(F=S?e.next:h.next;!(A=n(F,h)).done;){try{C=N(A.value)}catch(_){D(h,"throw",_)}if("object"==typeof C&&C&&l(m,C))return C}return new f(!1)}})),ke=e(((e,t)=>{var r=L(),n=U(),u=a();t.exports=function(e,t,i){var s=r(t);s in e?n.f(e,s,u(0,i)):e[s]=i}})),Pe=e((()=>{var e=De(),t=_e(),r=ke();e({target:"Object",stat:!0},{fromEntries:function(e){var n={};return t(e,(function(e,t){r(n,e,t)}),{AS_ENTRIES:!0}),n}})})),Oe=e(((e,t)=>{var r=["cliName","cliCategory","cliDescription"];function n(e,t){if(null==e)return{};var r,n,u=function(e,t){if(null==e)return{};var r,n,u={},i=Object.keys(e);for(n=0;n=0)&&(u[r]=e[r]);return u}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}fe(),Se(),Pe();var u,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return e&&(t=(0,e[o(e)[0]])(e=0)),t},D=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},d=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))!p.call(e,u)&&u!==r&&s(e,u,{get:()=>t[u],enumerable:!(n=a(t,u))||n.enumerable});return e},m=e=>f(s({},"__esModule",{value:!0}),e),h=c({""(){u={env:{},argv:[]}}}),g=D({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return e.$0<=t&&t<=e.$9}h(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}}),y=D({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;e.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,r,n){let u=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,i=this.cache.get(u);return i||(i=new t(e,r,n),this.cache.set(u,i)),i}}}}),E=D({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function n(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===s}(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}e.dashCaseToCamelCase=function(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;rn(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((u=>{r[u]=n(e[u],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}},e.SyncAsync={assertSync:e=>{if(a(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>a(e)?e.then(t):t(e),all:e=>e.some(a)?Promise.all(e):e},e.error=function(e){throw new Error(`Internal Error: ${e}`)},e.syntaxError=function(e,t){let r=Error(e);return r[u]=!0,t&&(r[i]=t),r};var u="ngSyntaxError",i="ngParseErrors";e.isSyntaxError=function(e){return e[u]},e.getParseErrors=function(e){return e[i]||[]},e.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var s=Object.getPrototypeOf({});function a(e){return!!e&&"function"==typeof e.then}e.utf8Encode=function(e){let t="";for(let r=0;r=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t},e.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let r=t.toString();if(null==r)return""+r;let n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},e.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},e.isPromise=a;e.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};var o=typeof window<"u"&&window,l=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,p=typeof globalThis<"u"&&globalThis||o||l;e.global=p}}),C=D({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=y(),r=E(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function u(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=u;var i,s,a=0;function o(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let i=r.stringify(n);return i.indexOf("(")>=0?(i="anonymous_"+a++,n.__anonymousType=i):i=u(i),i}e.identifierName=o,e.identifierModuleUrl=function(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`},e.viewClassName=function(e,t){return`View_${o({reference:e})}_${t}`},e.rendererTypeName=function(e){return`RenderType_${o({reference:e})}`},e.hostViewClassName=function(e){return`HostView_${o({reference:e})}`},e.componentFactoryName=function(e){return`${o({reference:e})}NgFactory`},(s=i=e.CompileSummaryKind||(e.CompileSummaryKind={}))[s.Pipe=0]="Pipe",s[s.Directive=1]="Directive",s[s.NgModule=2]="NgModule",s[s.Injectable=3]="Injectable",e.tokenName=function(e){return null!=e.value?u(e.value):o(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=p(t),this.styleUrls=p(r)}};e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:u,styles:i,styleUrls:s,externalStylesheets:a,animations:o,ngContentSelectors:l,interpolation:D,isInline:d,preserveWhitespaces:f}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=u,this.styles=p(i),this.styleUrls=p(s),this.externalStylesheets=p(a),this.animations=o?c(o):[],this.ngContentSelectors=l||[],D&&2!=D.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=D,this.isInline=d,this.preserveWhitespaces=f}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};var l=class{static create(e){let{isHost:t,type:u,isComponent:i,selector:s,exportAs:a,changeDetection:o,inputs:p,outputs:c,host:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e,v={},b={},S={};null!=D&&Object.keys(D).forEach((e=>{let t=D[e],r=e.match(n);null===r?S[e]=t:null!=r[1]?b[r[1]]=t:null!=r[2]&&(v[r[2]]=t)}));let x={};null==p||p.forEach((e=>{let t=r.splitAtColon(e,[e,e]);x[t[0]]=t[1]}));let T={};return null==c||c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);T[t[0]]=t[1]})),new l({isHost:t,type:u,isComponent:!!i,selector:s,exportAs:a,changeDetection:o,inputs:x,outputs:T,hostListeners:v,hostProperties:b,hostAttributes:S,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:u,exportAs:i,changeDetection:s,inputs:a,outputs:o,hostListeners:l,hostProperties:c,hostAttributes:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=u,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=o,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=D,this.providers=p(d),this.viewProviders=p(f),this.queries=p(m),this.guards=h,this.viewQueries=p(g),this.entryComponents=p(y),this.template=E,this.componentViewType=C,this.rendererType=F,this.componentFactory=A}toSummary(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=l;e.CompilePipeMetadata=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompileShallowModuleMetadata=class{};e.CompileNgModuleMetadata=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:u,declaredPipes:i,exportedPipes:s,entryComponents:a,bootstrapComponents:o,importedModules:l,exportedModules:c,schemas:D,transitiveModule:d,id:f}=e;this.type=t||null,this.declaredDirectives=p(n),this.exportedDirectives=p(u),this.declaredPipes=p(i),this.exportedPipes=p(s),this.providers=p(r),this.entryComponents=p(a),this.bootstrapComponents=p(o),this.importedModules=p(l),this.exportedModules=p(c),this.schemas=p(D),this.id=f||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};function p(e){return e||[]}e.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function c(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?c(t):t;return e.concat(r)}),[])}function D(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:u,useFactory:i,deps:s,multi:a}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=u,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}},e.flatten=c,e.templateSourceUrl=function(e,r,n){let u;return u=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${o(e)}/${o(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?u:D(u)},e.sharedStylesheetJitUrl=function(e,t){let r=e.moduleUrl.split(/\/\\/g);return D(`css/${t}${r[r.length-1]}.ngstyle.js`)},e.ngModuleJitUrl=function(e){return D(`${o(e.type)}/module.ngfactory.js`)},e.templateJitUrl=function(e,t){return D(`${o(e)}/${o(t.type)}.ngfactory.js`)}}}),F=D({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=g(),r=C(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,u=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==t.$LF){s--;let e=r.substr(0,i-1).lastIndexOf(String.fromCharCode(t.$LF));a=e>0?i-e:i}else a--;for(;i0;){let n=r.charCodeAt(i);i++,e--,n==t.$LF?(s++,a=0):a++}return new n(this.file,i,s,a)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let u=n,i=0,s=0;for(;i0&&(n--,i++,"\n"!=r[n]||++s!=t););for(i=0,s=0;i2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new n(new u("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(s=i=e.ParseErrorLevel||(e.ParseErrorLevel={}))[s.WARNING=0]="WARNING",s[s.ERROR=1]="ERROR";e.ParseError=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${i[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},e.typeSourceSpan=function(e,t){let i=r.identifierModuleUrl(t),s=null!=i?`in ${e} ${r.identifierName(t)} in ${i}`:`in ${e} ${r.identifierName(t)}`,o=new u("",s);return new a(new n(o,-1,-1,-1),new n(o,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,r){let i=new u("",`in ${e} ${t} in ${r}`);return new a(new n(i,-1,-1,-1),new n(i,-1,-1,-1))}}}),A=D({"src/utils/front-matter/parse.js"(e,t){h();var r=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");t.exports=function(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:u,value:i="",endDelimiter:s}=t.groups,a=u.trim()||"yaml";if("+++"===n&&(a="toml"),"yaml"!==a&&n!==s)return{content:e};let[o]=t;return{frontMatter:{type:"front-matter",lang:a,value:i,startDelimiter:n,endDelimiter:s,raw:o.replace(/\n$/,"")},content:o.replace(/[^\n]/g," ")+e.slice(o.length)}}}}),v=D({"src/utils/get-last.js"(e,t){h();t.exports=e=>e[e.length-1]}}),b=D({"src/common/parser-create-error.js"(e,t){h(),t.exports=function(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}}}),S={};function x(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}d(S,{default:()=>x});var T=c({"node_modules/escape-string-regexp/index.js"(){h()}}),B=D({"node_modules/semver/internal/debug.js"(e,t){h();var r="object"==typeof u&&u.env&&u.env.NODE_DEBUG&&/\bsemver\b/i.test(u.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r{};t.exports=r}}),w=D({"node_modules/semver/internal/constants.js"(e,t){h();var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}}}),N=D({"node_modules/semver/internal/re.js"(e,t){h();var{MAX_SAFE_COMPONENT_LENGTH:r}=w(),n=B(),u=(e=t.exports={}).re=[],i=e.src=[],s=e.t={},a=0,o=(e,t,r)=>{let o=a++;n(e,o,t),s[e]=o,i[o]=t,u[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),o("FULL",`^${i[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),o("LOOSE",`^${i[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),o("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",i[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",o("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",o("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),_=D({"node_modules/semver/internal/parse-options.js"(e,t){h();var r=["includePrerelease","loose","rtl"];t.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}}}),k=D({"node_modules/semver/internal/identifiers.js"(e,t){h();var r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),u=r.test(t);return n&&u&&(e=+e,t=+t),e===t?0:n&&!u?-1:u&&!n?1:en(t,e)}}}),P=D({"node_modules/semver/classes/semver.js"(e,t){h();var r=B(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:u}=w(),{re:i,t:s}=N(),a=_(),{compareIdentifiers:o}=k(),l=class{constructor(e,t){if(t=a(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===o(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};t.exports=l}}),O=D({"node_modules/semver/functions/compare.js"(e,t){h();var r=P();t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}}),I=D({"node_modules/semver/functions/lt.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)<0}}),j=D({"node_modules/semver/functions/gte.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)>=0}}),L=D({"src/utils/arrayify.js"(e,t){h(),t.exports=(e,t)=>Object.entries(e).map((e=>{let[r,n]=e;return Object.assign({[t]:r},n)}))}}),$=D({"package.json"(e,t){t.exports={version:"2.8.8"}}}),R=D({"node_modules/outdent/lib/index.js"(e,t){function r(){for(var e=[],t=0;t()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),n=e(((e,t)=>{var n=r();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),u=e(((e,t)=>{var n=r();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),i=e(((e,t)=>{var r=u(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),s=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),a=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),o=e(((e,t)=>{var r=u(),n=Function.prototype,i=n.call,s=r&&n.bind.bind(i,i);t.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}})),l=e(((e,t)=>{var r=o(),n=r({}.toString),u=r("".slice);t.exports=function(e){return u(n(e),8,-1)}})),p=e(((e,t)=>{var n=o(),u=r(),i=l(),s=Object,a=n("".split);t.exports=u((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s})),c=e(((e,t)=>{t.exports=function(e){return null==e}})),D=e(((e,t)=>{var r=c(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),d=e(((e,t)=>{var r=p(),n=D();t.exports=function(e){return r(n(e))}})),f=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),m=e(((e,t)=>{var r=f(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),h=e(((e,t)=>{var r=m(),n=f(),u=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===u}:function(e){return"object"==typeof e?null!==e:r(e)}})),g=e(((e,r)=>{var n=t(),u=m();r.exports=function(e,t){return arguments.length<2?function(e){return u(e)?e:void 0}(n[e]):n[e]&&n[e][t]}})),y=e(((e,t)=>{var r=o();t.exports=r({}.isPrototypeOf)})),E=e(((e,t)=>{var r=g();t.exports=r("navigator","userAgent")||""})),C=e(((e,r)=>{var n,u,i=t(),s=E(),a=i.process,o=i.Deno,l=a&&a.versions||o&&o.version,p=l&&l.v8;p&&(u=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!u&&s&&((!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&((n=s.match(/Chrome\/(\d+)/))&&(u=+n[1]))),r.exports=u})),F=e(((e,t)=>{var n=C(),u=r();t.exports=!!Object.getOwnPropertySymbols&&!u((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),A=e(((e,t)=>{var r=F();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),v=e(((e,t)=>{var r=g(),n=m(),u=y(),i=A(),s=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&u(t.prototype,s(e))}})),b=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),S=e(((e,t)=>{var r=m(),n=b(),u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not a function")}})),x=e(((e,t)=>{var r=S(),n=c();t.exports=function(e,t){var u=e[t];return n(u)?void 0:r(u)}})),T=e(((e,t)=>{var r=i(),n=m(),u=h(),s=TypeError;t.exports=function(e,t){var i,a;if("string"===t&&n(i=e.toString)&&!u(a=r(i,e))||n(i=e.valueOf)&&!u(a=r(i,e))||"string"!==t&&n(i=e.toString)&&!u(a=r(i,e)))return a;throw s("Can't convert object to primitive value")}})),B=e(((e,t)=>{t.exports=!1})),w=e(((e,r)=>{var n=t(),u=Object.defineProperty;r.exports=function(e,t){try{u(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),N=e(((e,r)=>{var n=t(),u=w(),i="__core-js_shared__",s=n[i]||u(i,{});r.exports=s})),_=e(((e,t)=>{var r=B(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),k=e(((e,t)=>{var r=D(),n=Object;t.exports=function(e){return n(r(e))}})),P=e(((e,t)=>{var r=o(),n=k(),u=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return u(n(e),t)}})),O=e(((e,t)=>{var r=o(),n=0,u=Math.random(),i=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+u,36)}})),I=e(((e,r)=>{var n=t(),u=_(),i=P(),s=O(),a=F(),o=A(),l=u("wks"),p=n.Symbol,c=p&&p.for,D=o?p:p&&p.withoutSetter||s;r.exports=function(e){if(!i(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;a&&i(p,e)?l[e]=p[e]:l[e]=o&&c?c(t):D(t)}return l[e]}})),j=e(((e,t)=>{var r=i(),n=h(),u=v(),s=x(),a=T(),o=I(),l=TypeError,p=o("toPrimitive");t.exports=function(e,t){if(!n(e)||u(e))return e;var i,o=s(e,p);if(o){if(void 0===t&&(t="default"),i=r(o,e,t),!n(i)||u(i))return i;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}})),L=e(((e,t)=>{var r=j(),n=v();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),$=e(((e,r)=>{var n=t(),u=h(),i=n.document,s=u(i)&&u(i.createElement);r.exports=function(e){return s?i.createElement(e):{}}})),R=e(((e,t)=>{var u=n(),i=r(),s=$();t.exports=!u&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))})),M=e((e=>{var t=n(),r=i(),u=s(),o=a(),l=d(),p=L(),c=P(),D=R(),f=Object.getOwnPropertyDescriptor;e.f=t?f:function(e,t){if(e=l(e),t=p(t),D)try{return f(e,t)}catch{}if(c(e,t))return o(!r(u.f,e,t),e[t])}})),q=e(((e,t)=>{var u=n(),i=r();t.exports=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),V=e(((e,t)=>{var r=h(),n=String,u=TypeError;t.exports=function(e){if(r(e))return e;throw u(n(e)+" is not an object")}})),U=e((e=>{var t=n(),r=R(),u=q(),i=V(),s=L(),a=TypeError,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",c="configurable",D="writable";e.f=t?u?function(e,t,r){if(i(e),t=s(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&D in r&&!r[D]){var n=l(e,t);n&&n[D]&&(e[t]=r.value,r={configurable:c in r?r[c]:n[c],enumerable:p in r?r[p]:n[p],writable:!1})}return o(e,t,r)}:o:function(e,t,n){if(i(e),t=s(t),i(n),r)try{return o(e,t,n)}catch{}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),W=e(((e,t)=>{var r=n(),u=U(),i=a();t.exports=r?function(e,t,r){return u.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}})),G=e(((e,t)=>{var r=n(),u=P(),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=u(i,"name"),o=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:o,CONFIGURABLE:l}})),H=e(((e,t)=>{var r=o(),n=m(),u=N(),i=r(Function.toString);n(u.inspectSource)||(u.inspectSource=function(e){return i(e)}),t.exports=u.inspectSource})),X=e(((e,r)=>{var n=t(),u=m(),i=n.WeakMap;r.exports=u(i)&&/native code/.test(String(i))})),J=e(((e,t)=>{var r=_(),n=O(),u=r("keys");t.exports=function(e){return u[e]||(u[e]=n(e))}})),z=e(((e,t)=>{t.exports={}})),Y=e(((e,r)=>{var n,u,i,s,a,o=X(),l=t(),p=h(),c=W(),D=P(),d=N(),f=J(),m=z(),g="Object already initialized",y=l.TypeError,E=l.WeakMap;o||d.state?((s=d.state||(d.state=new E)).get=s.get,s.has=s.has,s.set=s.set,n=function(e,t){if(s.has(e))throw y(g);return t.facade=e,s.set(e,t),t},u=function(e){return s.get(e)||{}},i=function(e){return s.has(e)}):(m[a=f("state")]=!0,n=function(e,t){if(D(e,a))throw y(g);return t.facade=e,c(e,a,t),t},u=function(e){return D(e,a)?e[a]:{}},i=function(e){return D(e,a)}),r.exports={set:n,get:u,has:i,enforce:function(e){return i(e)?u(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=u(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}})),Q=e(((e,t)=>{var u=r(),i=m(),s=P(),a=n(),o=G().CONFIGURABLE,l=H(),p=Y(),c=p.enforce,D=p.get,d=Object.defineProperty,f=a&&!u((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||o&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=c(e);return s(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return i(this)&&D(this).source||l(this)}),"toString")})),K=e(((e,t)=>{var r=m(),n=U(),u=Q(),i=w();t.exports=function(e,t,s,a){a||(a={});var o=a.enumerable,l=void 0!==a.name?a.name:t;if(r(s)&&u(s,l,a),a.global)o?e[t]=s:i(t,s);else{try{a.unsafe?e[t]&&(o=!0):delete e[t]}catch{}o?e[t]=s:n.f(e,t,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}})),Z=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),ee=e(((e,t)=>{var r=Z();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),te=e(((e,t)=>{var r=ee(),n=Math.max,u=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):u(i,t)}})),re=e(((e,t)=>{var r=ee(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),ne=e(((e,t)=>{var r=re();t.exports=function(e){return r(e.length)}})),ue=e(((e,t)=>{var r=d(),n=te(),u=ne(),i=function(e){return function(t,i,s){var a,o=r(t),l=u(o),p=n(s,l);if(e&&i!=i){for(;l>p;)if((a=o[p++])!=a)return!0}else for(;l>p;p++)if((e||p in o)&&o[p]===i)return e||p||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),ie=e(((e,t)=>{var r=o(),n=P(),u=d(),i=ue().indexOf,s=z(),a=r([].push);t.exports=function(e,t){var r,o=u(e),l=0,p=[];for(r in o)!n(s,r)&&n(o,r)&&a(p,r);for(;t.length>l;)n(o,r=t[l++])&&(~i(p,r)||a(p,r));return p}})),se=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ae=e((e=>{var t=ie(),r=se().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),oe=e((e=>{e.f=Object.getOwnPropertySymbols})),le=e(((e,t)=>{var r=g(),n=o(),u=ae(),i=oe(),s=V(),a=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=u.f(s(e)),r=i.f;return r?a(t,r(e)):t}})),pe=e(((e,t)=>{var r=P(),n=le(),u=M(),i=U();t.exports=function(e,t,s){for(var a=n(t),o=i.f,l=u.f,p=0;p{var n=r(),u=m(),i=/#|\.prototype\./,s=function(e,t){var r=o[a(e)];return r==p||r!=l&&(u(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=s.data={},l=s.NATIVE="N",p=s.POLYFILL="P";t.exports=s})),De=e(((e,r)=>{var n=t(),u=M().f,i=W(),s=K(),a=w(),o=pe(),l=ce();r.exports=function(e,t){var r,p,c,D,d,f=e.target,m=e.global,h=e.stat;if(r=m?n:h?n[f]||a(f,{}):(n[f]||{}).prototype)for(p in t){if(D=t[p],e.dontCallGetSet?c=(d=u(r,p))&&d.value:c=r[p],!l(m?p:f+(h?".":"#")+p,e.forced)&&void 0!==c){if(typeof D==typeof c)continue;o(D,c)}(e.sham||c&&c.sham)&&i(D,"sham",!0),s(r,p,D,e)}}})),de=e((()=>{var e=De(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),fe=e((()=>{de()})),me=e(((e,t)=>{var r=l();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),he=e(((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}})),ge=e(((e,t)=>{var r=l(),n=o();t.exports=function(e){if("Function"===r(e))return n(e)}})),ye=e(((e,t)=>{var r=ge(),n=S(),i=u(),s=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}})),Ee=e(((e,t)=>{var r=me(),n=ne(),u=he(),i=ye(),s=function(e,t,a,o,l,p,c,D){for(var d,f,m=l,h=0,g=!!c&&i(c,D);h0&&r(d)?(f=n(d),m=s(e,t,d,f,m,p-1)-1):(u(m+1),e[m]=d),m++),h++;return m};t.exports=s})),Ce=e(((e,t)=>{var r={};r[I()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Fe=e(((e,t)=>{var r=Ce(),n=m(),u=l(),i=I()("toStringTag"),s=Object,a="Arguments"==u(function(){return arguments}());t.exports=r?u:function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=s(e),i))?r:a?u(t):"Object"==(o=u(t))&&n(t.callee)?"Arguments":o}})),Ae=e(((e,t)=>{var n=o(),u=r(),i=m(),s=Fe(),a=g(),l=H(),p=function(){},c=[],D=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),h=!d.exec(p),y=function(e){if(!i(e))return!1;try{return D(p,c,e),!0}catch{return!1}},E=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch{return!0}};E.sham=!0,t.exports=!D||u((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?E:y})),ve=e(((e,t)=>{var r=me(),n=Ae(),u=h(),i=I()("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,n(t)&&(t===s||r(t.prototype))?t=void 0:u(t)&&(null===(t=t[i])&&(t=void 0))),void 0===t?s:t}})),be=e(((e,t)=>{var r=ve();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),Se=e((()=>{var e=De(),t=Ee(),r=S(),n=k(),u=ne(),i=be();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=n(this),o=u(a);return r(e),(s=i(a,0)).length=t(s,a,a,o,0,1,e,arguments.length>1?arguments[1]:void 0),s}})})),xe=e(((e,t)=>{t.exports={}})),Te=e(((e,t)=>{var r=I(),n=xe(),u=r("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[u]===e)}})),Be=e(((e,t)=>{var r=Fe(),n=x(),u=c(),i=xe(),s=I()("iterator");t.exports=function(e){if(!u(e))return n(e,s)||n(e,"@@iterator")||i[r(e)]}})),we=e(((e,t)=>{var r=i(),n=S(),u=V(),s=b(),a=Be(),o=TypeError;t.exports=function(e,t){var i=arguments.length<2?a(e):t;if(n(i))return u(r(i,e));throw o(s(e)+" is not iterable")}})),Ne=e(((e,t)=>{var r=i(),n=V(),u=x();t.exports=function(e,t,i){var s,a;n(e);try{if(!(s=u(e,"return"))){if("throw"===t)throw i;return i}s=r(s,e)}catch(o){a=!0,s=o}if("throw"===t)throw i;if(a)throw s;return n(s),i}})),_e=e(((e,t)=>{var r=ye(),n=i(),u=V(),s=b(),a=Te(),o=ne(),l=y(),p=we(),c=Be(),D=Ne(),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;t.exports=function(e,t,i){var h,g,y,E,C,F,A,v=i&&i.that,b=!(!i||!i.AS_ENTRIES),S=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),T=!(!i||!i.INTERRUPTED),B=r(t,v),w=function(e){return h&&D(h,"normal",e),new f(!0,e)},N=function(e){return b?(u(e),T?B(e[0],e[1],w):B(e[0],e[1])):T?B(e,w):B(e)};if(S)h=e.iterator;else if(x)h=e;else{if(!(g=c(e)))throw d(s(e)+" is not iterable");if(a(g)){for(y=0,E=o(e);E>y;y++)if((C=N(e[y]))&&l(m,C))return C;return new f(!1)}h=p(e,g)}for(F=S?e.next:h.next;!(A=n(F,h)).done;){try{C=N(A.value)}catch(_){D(h,"throw",_)}if("object"==typeof C&&C&&l(m,C))return C}return new f(!1)}})),ke=e(((e,t)=>{var r=L(),n=U(),u=a();t.exports=function(e,t,i){var s=r(t);s in e?n.f(e,s,u(0,i)):e[s]=i}})),Pe=e((()=>{var e=De(),t=_e(),r=ke();e({target:"Object",stat:!0},{fromEntries:function(e){var n={};return t(e,(function(e,t){r(n,e,t)}),{AS_ENTRIES:!0}),n}})})),Oe=e(((e,t)=>{var r=["cliName","cliCategory","cliDescription"];function n(e,t){if(null==e)return{};var r,n,u=function(e,t){if(null==e)return{};var r,n,u={},i=Object.keys(e);for(n=0;n=0)&&(u[r]=e[r]);return u}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}fe(),Se(),Pe();var u,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return e&&(t=(0,e[o(e)[0]])(e=0)),t},D=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},d=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))!p.call(e,u)&&u!==r&&s(e,u,{get:()=>t[u],enumerable:!(n=a(t,u))||n.enumerable});return e},m=e=>f(s({},"__esModule",{value:!0}),e),h=c({""(){u={env:{},argv:[]}}}),g=D({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return e.$0<=t&&t<=e.$9}h(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}}),y=D({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;e.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,r,n){let u=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,i=this.cache.get(u);return i||(i=new t(e,r,n),this.cache.set(u,i)),i}}}}),E=D({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function n(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===s}(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}e.dashCaseToCamelCase=function(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;rn(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((u=>{r[u]=n(e[u],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}},e.SyncAsync={assertSync:e=>{if(a(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>a(e)?e.then(t):t(e),all:e=>e.some(a)?Promise.all(e):e},e.error=function(e){throw new Error(`Internal Error: ${e}`)},e.syntaxError=function(e,t){let r=Error(e);return r[u]=!0,t&&(r[i]=t),r};var u="ngSyntaxError",i="ngParseErrors";e.isSyntaxError=function(e){return e[u]},e.getParseErrors=function(e){return e[i]||[]},e.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var s=Object.getPrototypeOf({});function a(e){return!!e&&"function"==typeof e.then}e.utf8Encode=function(e){let t="";for(let r=0;r=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t},e.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let r=t.toString();if(null==r)return""+r;let n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},e.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},e.isPromise=a;e.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};var o=typeof window<"u"&&window,l=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,p=typeof globalThis<"u"&&globalThis||o||l;e.global=p}}),C=D({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=y(),r=E(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function u(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=u;var i,s,a=0;function o(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let i=r.stringify(n);return i.indexOf("(")>=0?(i="anonymous_"+a++,n.__anonymousType=i):i=u(i),i}e.identifierName=o,e.identifierModuleUrl=function(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`},e.viewClassName=function(e,t){return`View_${o({reference:e})}_${t}`},e.rendererTypeName=function(e){return`RenderType_${o({reference:e})}`},e.hostViewClassName=function(e){return`HostView_${o({reference:e})}`},e.componentFactoryName=function(e){return`${o({reference:e})}NgFactory`},(s=i=e.CompileSummaryKind||(e.CompileSummaryKind={}))[s.Pipe=0]="Pipe",s[s.Directive=1]="Directive",s[s.NgModule=2]="NgModule",s[s.Injectable=3]="Injectable",e.tokenName=function(e){return null!=e.value?u(e.value):o(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=p(t),this.styleUrls=p(r)}};e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:u,styles:i,styleUrls:s,externalStylesheets:a,animations:o,ngContentSelectors:l,interpolation:D,isInline:d,preserveWhitespaces:f}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=u,this.styles=p(i),this.styleUrls=p(s),this.externalStylesheets=p(a),this.animations=o?c(o):[],this.ngContentSelectors=l||[],D&&2!=D.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=D,this.isInline=d,this.preserveWhitespaces=f}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};var l=class{static create(e){let{isHost:t,type:u,isComponent:i,selector:s,exportAs:a,changeDetection:o,inputs:p,outputs:c,host:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e,v={},b={},S={};null!=D&&Object.keys(D).forEach((e=>{let t=D[e],r=e.match(n);null===r?S[e]=t:null!=r[1]?b[r[1]]=t:null!=r[2]&&(v[r[2]]=t)}));let x={};null==p||p.forEach((e=>{let t=r.splitAtColon(e,[e,e]);x[t[0]]=t[1]}));let T={};return null==c||c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);T[t[0]]=t[1]})),new l({isHost:t,type:u,isComponent:!!i,selector:s,exportAs:a,changeDetection:o,inputs:x,outputs:T,hostListeners:v,hostProperties:b,hostAttributes:S,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:u,exportAs:i,changeDetection:s,inputs:a,outputs:o,hostListeners:l,hostProperties:c,hostAttributes:D,providers:d,viewProviders:f,queries:m,guards:h,viewQueries:g,entryComponents:y,template:E,componentViewType:C,rendererType:F,componentFactory:A}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=u,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=o,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=D,this.providers=p(d),this.viewProviders=p(f),this.queries=p(m),this.guards=h,this.viewQueries=p(g),this.entryComponents=p(y),this.template=E,this.componentViewType=C,this.rendererType=F,this.componentFactory=A}toSummary(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=l;e.CompilePipeMetadata=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompileShallowModuleMetadata=class{};e.CompileNgModuleMetadata=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:u,declaredPipes:i,exportedPipes:s,entryComponents:a,bootstrapComponents:o,importedModules:l,exportedModules:c,schemas:D,transitiveModule:d,id:f}=e;this.type=t||null,this.declaredDirectives=p(n),this.exportedDirectives=p(u),this.declaredPipes=p(i),this.exportedPipes=p(s),this.providers=p(r),this.entryComponents=p(a),this.bootstrapComponents=p(o),this.importedModules=p(l),this.exportedModules=p(c),this.schemas=p(D),this.id=f||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};function p(e){return e||[]}e.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function c(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?c(t):t;return e.concat(r)}),[])}function D(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:u,useFactory:i,deps:s,multi:a}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=u,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}},e.flatten=c,e.templateSourceUrl=function(e,r,n){let u;return u=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${o(e)}/${o(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?u:D(u)},e.sharedStylesheetJitUrl=function(e,t){let r=e.moduleUrl.split(/\/\\/g);return D(`css/${t}${r[r.length-1]}.ngstyle.js`)},e.ngModuleJitUrl=function(e){return D(`${o(e.type)}/module.ngfactory.js`)},e.templateJitUrl=function(e,t){return D(`${o(e)}/${o(t.type)}.ngfactory.js`)}}}),F=D({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){h(),Object.defineProperty(e,"__esModule",{value:!0});var t=g(),r=C(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,u=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==t.$LF){s--;let e=r.substr(0,i-1).lastIndexOf(String.fromCharCode(t.$LF));a=e>0?i-e:i}else a--;for(;i0;){let n=r.charCodeAt(i);i++,e--,n==t.$LF?(s++,a=0):a++}return new n(this.file,i,s,a)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let u=n,i=0,s=0;for(;i0&&(n--,i++,"\n"!=r[n]||++s!=t););for(i=0,s=0;i2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new n(new u("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(s=i=e.ParseErrorLevel||(e.ParseErrorLevel={}))[s.WARNING=0]="WARNING",s[s.ERROR=1]="ERROR";e.ParseError=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${i[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},e.typeSourceSpan=function(e,t){let i=r.identifierModuleUrl(t),s=null!=i?`in ${e} ${r.identifierName(t)} in ${i}`:`in ${e} ${r.identifierName(t)}`,o=new u("",s);return new a(new n(o,-1,-1,-1),new n(o,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,r){let i=new u("",`in ${e} ${t} in ${r}`);return new a(new n(i,-1,-1,-1),new n(i,-1,-1,-1))}}}),A=D({"src/utils/front-matter/parse.js"(e,t){h();var r=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");t.exports=function(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:u,value:i="",endDelimiter:s}=t.groups,a=u.trim()||"yaml";if("+++"===n&&(a="toml"),"yaml"!==a&&n!==s)return{content:e};let[o]=t;return{frontMatter:{type:"front-matter",lang:a,value:i,startDelimiter:n,endDelimiter:s,raw:o.replace(/\n$/,"")},content:o.replace(/[^\n]/g," ")+e.slice(o.length)}}}}),v=D({"src/utils/get-last.js"(e,t){h();t.exports=e=>e[e.length-1]}}),b=D({"src/common/parser-create-error.js"(e,t){h(),t.exports=function(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}}}),S={};function x(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}d(S,{default:()=>x});var T=c({"node_modules/escape-string-regexp/index.js"(){h()}}),B=D({"node_modules/semver/internal/debug.js"(e,t){h();var r="object"==typeof u&&u.env&&u.env.NODE_DEBUG&&/\bsemver\b/i.test(u.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r{};t.exports=r}}),w=D({"node_modules/semver/internal/constants.js"(e,t){h();var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}}}),N=D({"node_modules/semver/internal/re.js"(e,t){h();var{MAX_SAFE_COMPONENT_LENGTH:r}=w(),n=B(),u=(e=t.exports={}).re=[],i=e.src=[],s=e.t={},a=0,o=(e,t,r)=>{let o=a++;n(e,o,t),s[e]=o,i[o]=t,u[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),o("FULL",`^${i[s.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),o("LOOSE",`^${i[s.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),o("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",i[s.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",o("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",o("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),_=D({"node_modules/semver/internal/parse-options.js"(e,t){h();var r=["includePrerelease","loose","rtl"];t.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}}}),k=D({"node_modules/semver/internal/identifiers.js"(e,t){h();var r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),u=r.test(t);return n&&u&&(e=+e,t=+t),e===t?0:n&&!u?-1:u&&!n?1:en(t,e)}}}),P=D({"node_modules/semver/classes/semver.js"(e,t){h();var r=B(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:u}=w(),{re:i,t:s}=N(),a=_(),{compareIdentifiers:o}=k(),l=class{constructor(e,t){if(t=a(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===o(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};t.exports=l}}),O=D({"node_modules/semver/functions/compare.js"(e,t){h();var r=P();t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}}),I=D({"node_modules/semver/functions/lt.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)<0}}),j=D({"node_modules/semver/functions/gte.js"(e,t){h();var r=O();t.exports=(e,t,n)=>r(e,t,n)>=0}}),L=D({"src/utils/arrayify.js"(e,t){h(),t.exports=(e,t)=>Object.entries(e).map((e=>{let[r,n]=e;return Object.assign({[t]:r},n)}))}}),$=D({"package.json"(e,t){t.exports={version:"2.8.8"}}}),R=D({"node_modules/outdent/lib/index.js"(e,t){function r(){for(var e=[],t=0;tt.map((t=>e[t]));import"../sb-preview/runtime.js";!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))s(t);new MutationObserver((t=>{for(const e of t)if("childList"===e.type)for(const t of e.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&s(t)})).observe(document,{childList:!0,subtree:!0})}function s(t){if(t.ep)return;t.ep=!0;const s=function(t){const s={};return t.integrity&&(s.integrity=t.integrity),t.referrerPolicy&&(s.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?s.credentials="include":"anonymous"===t.crossOrigin?s.credentials="omit":s.credentials="same-origin",s}(t);fetch(t.href,s)}}();const L="modulepreload",R=function(t,s){return new URL(t,s).href},O={},t=function(t,s,e){let r=Promise.resolve();if(s&&s.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),o=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.allSettled(s.map((s=>{if((s=R(s,e))in O)return;O[s]=!0;const r=s.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(e)for(let e=t.length-1;e>=0;e--){const i=t[e];if(i.href===s&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":L,r||(a.as="script"),a.crossOrigin="",a.href=s,o&&a.setAttribute("nonce",o),document.head.appendChild(a),r?new Promise(((t,e)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>e(new Error(`Unable to preload CSS for ${s}`))))})):void 0})))}function i(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return r.then((s=>{for(const t of s||[])"rejected"===t.status&&i(t.reason);return t().catch(i)}))},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:I}=__STORYBOOK_MODULE_PREVIEW_API__,E=P({page:"preview"});I.setChannel(E),window.__STORYBOOK_ADDONS_CHANNEL__=E,"DEVELOPMENT"===window.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const D={"./src/Alert/Alert.stories.tsx":async()=>t((()=>import("./Alert.stories-BifAKNCu.js")),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./src/ArticleCallToAction/ArticleCallToAction.stories.tsx":async()=>t((()=>import("./ArticleCallToAction.stories-Ds1uyVhA.js")),__vite__mapDeps([8,1,2,9,10,11,12,13,4,5,14,15,16,6,7,3,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url),"./src/Banner/Banner.stories.tsx":async()=>t((()=>import("./Banner.stories-ppC-3OOU.js")),__vite__mapDeps([30,1,2,31,3,4,5,6,7]),import.meta.url),"./src/BlockedRoute/BlockedRoute.stories.tsx":async()=>t((()=>import("./BlockedRoute.stories-C_bO7t8y.js")),__vite__mapDeps([32,1,2,9,33,10,11,12,13,4,5,14,15,16,6,7,3,27,28,29,24]),import.meta.url),"./src/Breadcrumbs/Breadcrumbs.stories.tsx":async()=>t((()=>import("./Breadcrumbs.stories-COKopDR9.js")),__vite__mapDeps([34,1,2,35,11,12,13,4,5,14,15,16,6,7,10,3,28,29,24]),import.meta.url),"./src/Button/Button.stories.tsx":async()=>t((()=>import("./Button.stories-AePka3C6.js")),__vite__mapDeps([36,1,2,11,12,13,4,5,14,15,16,6,7,10,3]),import.meta.url),"./src/ButtonIcon/ButtonIcon.stories.tsx":async()=>t((()=>import("./ButtonIcon.stories-Bw_O1uDc.js")),__vite__mapDeps([37,1,2,38,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/ButtonShowReplies/ButtonShowReplies.stories.tsx":async()=>t((()=>import("./ButtonShowReplies.stories-C3EqgxbV.js")),__vite__mapDeps([39,1,2,40,9,41,10,11,12,13,4,5,14,15,16,6,7,3,42]),import.meta.url),"./src/CardButton/CardButton.stories.tsx":async()=>t((()=>import("./CardButton.stories-DKPxGZGW.js")),__vite__mapDeps([43,1,2,44,3,4,5,6,7]),import.meta.url),"./src/CardList/CardList.stories.tsx":async()=>t((()=>import("./CardList.stories-BYuMAzGH.js")),__vite__mapDeps([45,1,2,46,47,44,3,4,5,6,7,48,49,50,16,21,22,23,26,14,12,13,27,28,29,24,51,11,15,52]),import.meta.url),"./src/CardListItem/CardListItem.stories.tsx":async()=>t((()=>import("./CardListItem.stories-CgMsIoLa.js")),__vite__mapDeps([53,1,2,9,47,44,3,4,5,6,7,48,49,50,16,21,22,23,26,14,12,13,27,28,29,24,51]),import.meta.url),"./src/Category/Category.stories.tsx":async()=>t((()=>import("./Category.stories-CJyQmpTt.js")),__vite__mapDeps([54,1,2,49,3,4,5,6,7]),import.meta.url),"./src/CharacterCount/CharacterCount.stories.tsx":async()=>t((()=>import("./CharacterCount.stories-DAkCuVI6.js")),__vite__mapDeps([55,1,2,56,3,4,5,6,7]),import.meta.url),"./src/CommentItem/CommentItem.stories.tsx":async()=>t((()=>import("./CommentItem.stories-BchdvzaI.js")),__vite__mapDeps([57,1,2,40,9,58,10,11,12,13,4,5,14,15,16,6,7,3,59,60,29,61,62,63,64,65,66,67,56,68,69,27,28,24,21,22,23,26]),import.meta.url),"./src/CommentList/CommentList.stories.tsx":async()=>t((()=>import("./CommentList.stories-dpJrRWR4.js")),__vite__mapDeps([70,1,2,40,9,71,10,11,12,13,4,5,14,15,16,6,7,3,41,42,58,59,60,29,61,62,63,64,65,66,67,56,68,69,27,28,24,21,22,23,26,72,73,50]),import.meta.url),"./src/ConfirmModal/ConfirmModal.stories.tsx":async()=>t((()=>import("./ConfirmModal.stories---wCALSZ.js")),__vite__mapDeps([74,1,2,59,10,11,12,13,4,5,14,15,16,6,7,3,60,29,61]),import.meta.url),"./src/ContentStatistics/ContentStatistics.stories.tsx":async()=>t((()=>import("./ContentStatistics.stories-BJCIsX0t.js")),__vite__mapDeps([75,1,2,9,76,10,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/CreateComment/CreateComment.stories.tsx":async()=>t((()=>import("./CreateComment.stories-D-uk7yfj.js")),__vite__mapDeps([77,1,2,73,50,16,21,22,4,5,7,23,3,6,28,29,24]),import.meta.url),"./src/CreateReply/CreateReply.stories.tsx":async()=>t((()=>import("./CreateReply.stories-DSNYS6iM.js")),__vite__mapDeps([78,1,2,72,73,50,16,21,22,4,5,7,23,3,6,28,29,24]),import.meta.url),"./src/DiscussionContainer/DiscussionContainer.stories.tsx":async()=>t((()=>import("./DiscussionContainer.stories-BwFx5ZIz.js")),__vite__mapDeps([79,1,2,40,9,80,71,10,11,12,13,4,5,14,15,16,6,7,3,41,42,58,59,60,29,61,62,63,64,65,66,67,56,68,69,27,28,24,21,22,23,26,72,73,50]),import.meta.url),"./src/DiscussionTitle/DiscussionTitle.stories.tsx":async()=>t((()=>import("./DiscussionTitle.stories-DMuy2t7b.js")),__vite__mapDeps([81,1,2,42,3,4,5,6,7]),import.meta.url),"./src/DisplayDate/DisplayDate.stories.tsx":async()=>t((()=>import("./DisplayDate.stories-BQ_hvTcN.js")),__vite__mapDeps([82,1,2,62,63,3,4,5,6,7]),import.meta.url),"./src/DonationRequest/DonationRequest.stories.tsx":async()=>t((()=>import("./DonationRequest.stories-qLdqat5A.js")),__vite__mapDeps([83,1,2,84,10,11,12,13,4,5,14,15,16,6,7,3,69]),import.meta.url),"./src/DonationRequestModal/DonationRequestModal.stories.tsx":async()=>t((()=>import("./DonationRequestModal.stories-CrO2izOz.js")),__vite__mapDeps([85,1,2,86,84,10,11,12,13,4,5,14,15,16,6,7,3,69,60,29,61]),import.meta.url),"./src/DownloadButton/DownloadButton.stories.tsx":async()=>t((()=>import("./DownloadButton.stories-BYGgC8R9.js")),__vite__mapDeps([87,1,2,88,11,12,13,4,5,14,15,16,6,7,19,20,3]),import.meta.url),"./src/DownloadCounter/DownloadCounter.stories.tsx":async()=>t((()=>import("./DownloadCounter.stories-BHQsKB0E.js")),__vite__mapDeps([89,1,2,90,3,4,5,6,7]),import.meta.url),"./src/DownloadStaticFile/DownloadStaticFile.stories.tsx":async()=>t((()=>import("./DownloadStaticFile.stories-CEulzWP_.js")),__vite__mapDeps([91,1,2,92,88,11,12,13,4,5,14,15,16,6,7,19,20,3,69]),import.meta.url),"./src/DownloadWithDonationAsk/DownloadWithDonationAsk.stories.tsx":async()=>t((()=>import("./DownloadWithDonationAsk.stories-HWN8n_K3.js")),__vite__mapDeps([93,1,2,94,86,84,10,11,12,13,4,5,14,15,16,6,7,3,69,60,29,61,88,19,20,90,92,24]),import.meta.url),"./src/EditComment/EditComment.stories.tsx":async()=>t((()=>import("./EditComment.stories-6IcvQ8ab.js")),__vite__mapDeps([95,1,2,64,13,65,66,10,11,12,4,5,14,15,16,6,7,3,67,56]),import.meta.url),"./src/ElWithBeforeIcon/ElWithBeforeIcon.stories.tsx":async()=>t((()=>import("./ElWithBeforeIcon.stories-DeEz-BrI.js")),__vite__mapDeps([96,1,2,97,3,4,5,6,7]),import.meta.url),"./src/ExternalLink/ExternalLink.stories.tsx":async()=>t((()=>import("./ExternalLink.stories-CgVBGAmq.js")),__vite__mapDeps([98,1,2,25,26,14,12,13,4,5,3,6,7,27,28,29,24,21,22,23,31,33,10,11,15,16,35,38,41,42,44,46,47,48,49,50,51,52,76,58,59,60,61,62,63,64,65,66,67,56,68,69,71,72,73,80,84,86,88,19,20,90,94,92,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,18,138,139,140]),import.meta.url),"./src/FieldInput/FieldInput.stories.tsx":async()=>t((()=>import("./FieldInput.stories-CmNQbghs.js")),__vite__mapDeps([141,1,2,99,56,3,4,5,6,7]),import.meta.url),"./src/FieldTextarea/FieldTextarea.stories.tsx":async()=>t((()=>import("./FieldTextarea.stories-BPuU9jRK.js")),__vite__mapDeps([142,1,2,67,56,3,4,5,6,7]),import.meta.url),"./src/FollowButton/FollowButton.stories.tsx":async()=>t((()=>import("./FollowButton.stories-C1pCGpXR.js")),__vite__mapDeps([143,1,2,101,10,11,12,13,4,5,14,15,16,6,7,3,19,20,24]),import.meta.url),"./src/Guidelines/Guidelines.stories.tsx":async()=>t((()=>import("./Guidelines.stories-CABYKxLN.js")),__vite__mapDeps([144,1,2,69,3,4,5,6,7,100]),import.meta.url),"./src/Heading/Heading.stories.tsx":async()=>t((()=>import("./Heading.stories-BAavE8eL.js")),__vite__mapDeps([145,1,2,3,4,5,6,7]),import.meta.url),"./src/HeroBanner/HeroBanner.stories.tsx":async()=>t((()=>import("./HeroBanner.stories-DqXUwOnF.js")),__vite__mapDeps([146,1,2,103,3,4,5,6,7]),import.meta.url),"./src/Icon/Icon.stories.tsx":async()=>t((()=>import("./Icon.stories-CoRdUHHd.js")),__vite__mapDeps([147,1,2,11,12,13,4,5,14,15,16,6,7]),import.meta.url),"./src/IconCountWithTooltip/IconCountWithTooltip.stories.tsx":async()=>t((()=>import("./IconCountWithTooltip.stories-B1_j__4h.js")),__vite__mapDeps([148,1,2,104,11,12,13,4,5,14,15,16,6,7,19,20,3]),import.meta.url),"./src/ImageCrop/ImageCrop.stories.tsx":async()=>t((()=>import("./ImageCrop.stories-DUOLW0ZZ.js")),__vite__mapDeps([149,1,2,105,10,11,12,13,4,5,14,15,16,6,7,3,52,22,21,23,106]),import.meta.url),"./src/ImageGallery/ImageGallery.stories.tsx":async()=>t((()=>import("./ImageGallery.stories-hoGxeDiU.js")),__vite__mapDeps([150,1,2,107,12,13,4,5,11,14,15,16,6,7,3,108]),import.meta.url),"./src/Input/Input.stories.tsx":async()=>t((()=>import("./Input.stories-ChjzHMa3.js")),__vite__mapDeps([151,1,2,3,4,5,6,7]),import.meta.url),"./src/InternalLink/InternalLink.stories.tsx":async()=>t((()=>import("./InternalLink.stories-Cjtj3wfE.js")),__vite__mapDeps([152,1,2,27,3,4,5,6,7,28,29,24]),import.meta.url),"./src/LinkifyText/LinkifyText.stories.tsx":async()=>t((()=>import("./LinkifyText.stories-CRNr229Y.js")),__vite__mapDeps([153,1,2,68,12,13,4,5,69,3,6,7,27,28,29,24,21,22,23]),import.meta.url),"./src/Loader/Loader.stories.tsx":async()=>t((()=>import("./Loader.stories-MBzLYqWO.js")),__vite__mapDeps([154,1,2,52,22,4,5,7,12,13,21,23,3,6]),import.meta.url),"./src/Map/Map.stories.tsx":async()=>t((()=>import("./Map.stories-CD83PoJ2.js")),__vite__mapDeps([155,1,2,109,13,65,110,111,112,63,113,7,114]),import.meta.url),"./src/MapFilterList/MapFilterList.stories.tsx":async()=>t((()=>import("./MapFilterList.stories-DjB66tPY.js")),__vite__mapDeps([156,1,2,115,10,11,12,13,4,5,14,15,16,6,7,3,38,50,21,22,23,44]),import.meta.url),"./src/MapFilterProfileTypeCardList/MapFilterProfileTypeCardList.stories.tsx":async()=>t((()=>import("./MapFilterProfileTypeCardList.stories-BDbtqf_F.js")),__vite__mapDeps([157,1,2,116,38,11,12,13,4,5,14,15,16,6,7,3,44,50,21,22,23]),import.meta.url),"./src/MapMemberCard/MapMemberCard.stories.tsx":async()=>t((()=>import("./MapMemberCard.stories-BAET6g_6.js")),__vite__mapDeps([158,9,117,1,2,22,4,5,7,26,14,12,13,3,6,27,28,29,24]),import.meta.url),"./src/MapWithPin/MapPin.stories.tsx":async()=>t((()=>import("./MapPin.stories-D-hiWMw_.js")),__vite__mapDeps([159,1,2,121,113,112,63,110,111,13,7]),import.meta.url),"./src/MapWithPin/MapWithPin.stories.tsx":async()=>t((()=>import("./MapWithPin.stories-DNVx4Jgl.js")),__vite__mapDeps([160,1,2,118,10,11,12,13,4,5,14,15,16,6,7,3,109,65,110,111,112,63,113,114,119,120,121]),import.meta.url),"./src/MemberBadge/MemberBadge.stories.tsx":async()=>t((()=>import("./MemberBadge.stories-B-XQRmwd.js")),__vite__mapDeps([161,1,2,50,16,21,22,4,5,7,23,3,6]),import.meta.url),"./src/Modal/Modal.stories.tsx":async()=>t((()=>import("./Modal.stories-BGpb3yBy.js")),__vite__mapDeps([162,1,2,60,29,61,12,13,4,5,3,6,7]),import.meta.url),"./src/ModerationStatus/ModerationStatus.stories.tsx":async()=>t((()=>import("./ModerationStatus.stories-CiEV2mcg.js")),__vite__mapDeps([163,1,2,122,3,4,5,6,7]),import.meta.url),"./src/MoreContainer/MoreContainer.stories.tsx":async()=>t((()=>import("./MoreContainer.stories-BZDjrecP.js")),__vite__mapDeps([164,1,2,123,12,13,4,5,21,22,7,23,3,6]),import.meta.url),"./src/NotificationItem/NotificationItem.stories.tsx":async()=>t((()=>import("./NotificationItem.stories-D0cQuM9z.js")),__vite__mapDeps([165,1,2,9,124,21,22,4,5,7,23,11,12,13,14,15,16,6,3]),import.meta.url),"./src/NotificationList/NotificationList.stories.tsx":async()=>t((()=>import("./NotificationList.stories-C5TXwp-D.js")),__vite__mapDeps([166,1,2,9,27,3,4,5,6,7,28,29,24,125,12,13,10,11,14,15,16,124,21,22,23]),import.meta.url),"./src/OsmGeocoding/OsmGeocoding.stories.tsx":async()=>t((()=>import("./OsmGeocoding.stories-DLF8SCAE.js")),__vite__mapDeps([167,1,2,119,120,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/PinProfile/PinProfile.stories.tsx":async()=>t((()=>import("./PinProfile.stories-YjPwi2qf.js")),__vite__mapDeps([168,1,2,9,126,10,11,12,13,4,5,14,15,16,6,7,3,38,44,48,49,50,21,22,23,26,27,28,29,24,51]),import.meta.url),"./src/ProfileLink/ProfileLink.stories.tsx":async()=>t((()=>import("./ProfileLink.stories-DJ8teJjL.js")),__vite__mapDeps([169,1,2,127,69,3,4,5,6,7,11,12,13,14,15,16]),import.meta.url),"./src/ProfileTagsList/ProfileTagsList.stories.tsx":async()=>t((()=>import("./ProfileTagsList.stories-C2rZLuPt.js")),__vite__mapDeps([170,1,2,51,49,3,4,5,6,7]),import.meta.url),"./src/ResearchEditorOverview/ResearchEditorOverview.stories.tsx":async()=>t((()=>import("./ResearchEditorOverview.stories-BLK3g5Q6.js")),__vite__mapDeps([171,1,2,128,66,10,11,12,13,4,5,14,15,16,6,7,3,27,28,29,24]),import.meta.url),"./src/SearchField/SearchField.stories.tsx":async()=>t((()=>import("./SearchField.stories-CWzhmEu1.js")),__vite__mapDeps([172,1,2,120,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/Select/Select.stories.tsx":async()=>t((()=>import("./Select.stories-CznXLdDQ.js")),__vite__mapDeps([173,1,2,129,112,63,65,13,110,130,22,4,5,7,29,20,15,3,6,21,23]),import.meta.url),"./src/SettingsFormWrapper/SettingsFormWrapper.stories.tsx":async()=>t((()=>import("./SettingsFormWrapper.stories-Dkp1IMvh.js")),__vite__mapDeps([174,1,2,131,3,4,5,6,7,132,12,13,11,14,15,16,27,28,29,24,129,112,63,65,110,130,22,20,21,23]),import.meta.url),"./src/SiteFooter/SiteFooter.stories.tsx":async()=>t((()=>import("./SiteFooter.stories-CHXKX6kl.js")),__vite__mapDeps([175,1,2,133,12,13,4,5,69,3,6,7,11,14,15,16]),import.meta.url),"./src/TabbedContent/TabbedContent.stories.tsx":async()=>t((()=>import("./TabbedContent.stories-hD3FnE0b.js")),__vite__mapDeps([176,1,2,9,134,12,13,4,5,132,3,6,7]),import.meta.url),"./src/Tag/Tag.stories.tsx":async()=>t((()=>import("./Tag.stories--XPK_NY1.js")),__vite__mapDeps([177,1,2,135,3,4,5,6,7]),import.meta.url),"./src/TagList/TagList.stories.tsx":async()=>t((()=>import("./TagList.stories-DjedbwFZ.js")),__vite__mapDeps([178,1,2,136,135,3,4,5,6,7]),import.meta.url),"./src/Text/Text.stories.tsx":async()=>t((()=>import("./Text.stories--48DIG4W.js")),__vite__mapDeps([179,1,2,9,3,4,5,6,7]),import.meta.url),"./src/TextNotification/TextNotification.stories.tsx":async()=>t((()=>import("./TextNotification.stories-DHnvNerz.js")),__vite__mapDeps([180,1,2,137,22,4,5,7,3,6]),import.meta.url),"./src/Textarea/Textarea.stories.tsx":async()=>t((()=>import("./Textarea.stories-BJ5u_oiF.js")),__vite__mapDeps([181,1,2,3,4,5,6,7]),import.meta.url),"./src/Tooltip/Tooltip.stories.tsx":async()=>t((()=>import("./Tooltip.stories-CAqe5Eh-.js")),__vite__mapDeps([182,1,2,19,20,12,13,4,5,3,6,7]),import.meta.url),"./src/UsefulStatsButton/UsefulStatsButton.stories.tsx":async()=>t((()=>import("./UsefulStatsButton.stories-CwmlSmjo.js")),__vite__mapDeps([17,1,2,18,10,11,12,13,4,5,14,15,16,6,7,3,19,20,21,22,23,24]),import.meta.url),"./src/UserEngagementWrapper/UserEngagementWrapper.stories.tsx":async()=>t((()=>import("./UserEngagementWrapper.stories-Dc56L0mc.js")),__vite__mapDeps([183,1,2,25,26,14,12,13,4,5,3,6,7,27,28,29,24,21,22,23,31,33,10,11,15,16,35,38,41,42,44,46,47,48,49,50,51,52,76,58,59,60,61,62,63,64,65,66,67,56,68,69,71,72,73,80,84,86,88,19,20,90,94,92,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,18,138,139,140]),import.meta.url),"./src/UserStatistics/UserStatistics.stories.tsx":async()=>t((()=>import("./UserStatistics.stories-Cpgfq9Tw.js")),__vite__mapDeps([184,1,2,139,16,97,3,4,5,6,7,69,11,12,13,14,15,27,28,29,24]),import.meta.url),"./src/Username/Username.stories.tsx":async()=>t((()=>import("./Username.stories-CsCOcD2O.js")),__vite__mapDeps([185,26,1,2,14,12,13,4,5,3,6,7,27,28,29,24]),import.meta.url),"./src/VideoPlayer/VideoPlayer.stories.tsx":async()=>t((()=>import("./VideoPlayer.stories-Cr3502l-.js")),__vite__mapDeps([186,1,2,140,23,61,3,4,5,6,7]),import.meta.url),"./src/welcome.mdx":async()=>t((()=>import("./welcome-BRtPITXs.js")),__vite__mapDeps([187,1,2,188,5,29,189,13,110,111,130,190,191,192]),import.meta.url)};async function y(t){return D[t]()}const{composeConfigs:A,PreviewWeb:v,ClientApi:V}=__STORYBOOK_MODULE_PREVIEW_API__,x=async()=>{const s=await Promise.all([t((()=>import("./entry-preview-9LBAkts4.js")),__vite__mapDeps([193,2,194,29]),import.meta.url),t((()=>import("./entry-preview-docs-zO113c-Z.js")),__vite__mapDeps([195,190,2,61,191]),import.meta.url),t((()=>import("./preview-BJPLiuSt.js")),__vite__mapDeps([196,189]),import.meta.url),t((()=>import("./preview-CABdhu2q.js")),[],import.meta.url),t((()=>import("./preview-BEBQg86I.js")),__vite__mapDeps([197,191]),import.meta.url),t((()=>import("./preview-BcxrGG1y.js")),__vite__mapDeps([198,191]),import.meta.url),t((()=>import("./preview-Db4Idchh.js")),[],import.meta.url),t((()=>import("./preview-BAz7FMXc.js")),__vite__mapDeps([199,191]),import.meta.url),t((()=>import("./preview-Cv3rAi2i.js")),[],import.meta.url),t((()=>import("./preview-e9WIjZMY.js")),__vite__mapDeps([200,1,2,21,22,4,5,7,23,102,24,28,29]),import.meta.url)]);return A(s)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v,window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore,window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new V({storyStore:window.__STORYBOOK_PREVIEW__.storyStore}),window.__STORYBOOK_PREVIEW__.initialize({importFn:y,getProjectAnnotations:x});export{t as _}; \ No newline at end of file +const __vite__mapDeps=(t,s=__vite__mapDeps,e=s.f||(s.f=["./Alert.stories-BifAKNCu.js","./jsx-runtime-CexXSJP5.js","./index-BP8_t0zE.js","./theme-ui-components.esm-DCiJ1mMX.js","./parseProps-780b287c.browser.esm-DiCerVr_.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./theme-ui-core-jsx-runtime.browser.esm-CH0qhC10.js","./hoist-non-react-statics.cjs-CQI8syxn.js","./ArticleCallToAction.stories-CyBMWgBU.js","./index-D_kXk1yT.js","./Button-1qf_V-Zv.js","./Icon-DVJa_328.js","./emotion-styled.browser.esm-Dz2BNYeh.js","./extends-CF3RwP-h.js","./supporter-D7hp958O.js","./icon-arrow-down-CJeToCJe.js","./icon-star-active-ClN6U5FF.js","./UsefulStatsButton.stories-DHC8wQh4.js","./UsefulStatsButton-B0X13EYo.js","./Tooltip-B9mgSRkZ.js","./floating-ui.dom-DtcZXcvp.js","./theme-ui-core.browser.esm-CIov4Ln1.js","./emotion-react.browser.esm-BYoRxRk_.js","./cjs-Clfm10Kj.js","./index-BXxqJQdV.js","./ArticleCallToAction-CcvC77dL.js","./Username-jnUEp1hu.js","./InternalLink-CtyTe3gy.js","./components-CutHIkdx.js","./index-BBRV8eG_.js","./Banner.stories-ppC-3OOU.js","./Banner-Rp1eOMI_.js","./BlockedRoute.stories-Vy0K_Uol.js","./BlockedRoute-CNa7wecH.js","./Breadcrumbs.stories-Diul89SN.js","./Breadcrumbs-CJmuaguM.js","./Button.stories-CCY7feTg.js","./ButtonIcon.stories-BJDeg0db.js","./ButtonIcon-DLFqXCZb.js","./ButtonShowReplies.stories-CgDeRJwG.js","./utils-BRZF2j4e.js","./ButtonShowReplies-nddYmg0q.js","./DiscussionTitle-Dhry4tok.js","./CardButton.stories-DKPxGZGW.js","./CardButton-UFEWOkeB.js","./CardList.stories-D4Z07zME.js","./CardList-DYV48TQx.js","./CardListItem-DfmpNeu7.js","./CardProfile-BoQoQZcw.js","./Category-BRVyiaSI.js","./MemberBadge-BFCUvfGJ.js","./ProfileTagsList-C85jWzjp.js","./Loader-DmqUoSY8.js","./CardListItem.stories-gbx8qE1D.js","./Category.stories-CJyQmpTt.js","./CharacterCount.stories-DAkCuVI6.js","./CharacterCount-BGgvgJrP.js","./CommentItem.stories-C9dYD4oG.js","./CommentItem-DZgP41nA.js","./ConfirmModal-BcXyrr5V.js","./Modal-CNp0gEVS.js","./index-Snk9MO9S.js","./DisplayDate-8pUkm3CJ.js","./typeof-QjJsDpFa.js","./EditComment-CS1dAl1Z.js","./objectWithoutPropertiesLoose-CAYKN5F1.js","./index.esm-D0u3ndg0.js","./FieldTextarea-msSeWkcr.js","./LinkifyText-CTcW0PSE.js","./ExternalLink-CHmx7fZ7.js","./CommentList.stories-C5Ot4zWr.js","./CommentList-DhPqgHRE.js","./CreateReply-2Azc7a5m.js","./CreateComment-C20B3Odi.js","./ConfirmModal.stories-DB7ywUan.js","./ContentStatistics.stories-DC7TU1WW.js","./ContentStatistics-CzRzqwNB.js","./CreateComment.stories-CU78S9AB.js","./CreateReply.stories-CxH52BhY.js","./DiscussionContainer.stories-B3LOe7IO.js","./DiscussionContainer-yXJCotUg.js","./DiscussionTitle.stories-DMuy2t7b.js","./DisplayDate.stories-BQ_hvTcN.js","./DonationRequest.stories-DCE7Ietr.js","./DonationRequest-DuTXC9D9.js","./DonationRequestModal.stories-LHfLELJL.js","./DonationRequestModal-Gqs-htQ0.js","./DownloadButton.stories-CJvBcDAD.js","./DownloadButton-DzIURGFB.js","./DownloadCounter.stories-BHQsKB0E.js","./DownloadCounter-CpsPmH8s.js","./DownloadStaticFile.stories-CQNa0s65.js","./DownloadStaticFile-BxfNeVDS.js","./DownloadWithDonationAsk.stories-DHkmMxdv.js","./DownloadWithDonationAsk-CLFhEu2Q.js","./EditComment.stories-d1wxRZnz.js","./ElWithBeforeIcon.stories-DeEz-BrI.js","./ElWithBeforeIcon-L9Bddb7t.js","./ExternalLink.stories-CAAKEnpi.js","./FieldInput-CIt9FN7x.js","./Guidelines-CAuhvrJl.js","./FollowButton-BpOrSPUK.js","./GlobalStyles-Cwnjx0pv.js","./HeroBanner-D9U7RVxT.js","./IconCountWithTooltip-D45XZbVQ.js","./ImageCrop-B_XHY1rW.js","./ImageCrop-2TPQ-Cgz.css","./ImageGallery-_6WaFG1J.js","./ImageGallery-z3i1z0Ou.css","./Map.client-D7Zd9Rir.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./defineProperty-Dr9G4DxF.js","./MapLayer-CeGLoV_-.js","./Map-BVojpQpG.css","./MapFilterList-rj326Ijs.js","./MapFilterProfileTypeCardList-BMZcIHDF.js","./MapMemberCard-Dj2rBDdu.js","./MapWithPin.client-mWMy-bbS.js","./OsmGeocoding-DOGggMqw.js","./SearchField-Cykq-dlt.js","./MapPin.client-Ln2WLe_W.js","./ModerationStatus-i6sV2GYn.js","./MoreContainer-BHO-aLZj.js","./NotificationItem-ClPYRcjY.js","./NotificationList-DEA9ZS2i.js","./PinProfile-DUk9-hW8.js","./ProfileLink-BNudREw6.js","./ResearchEditorOverview-TBcr6efP.js","./Select-vDnhT3MJ.js","./isNativeReflectConstruct-gwnEYaHE.js","./SettingsFormWrapper-DAzZ8D8d.js","./TabsList-DhTEw6FA.js","./SiteFooter-CL9myLOY.js","./TabbedContent-CQ_-r_zn.js","./Tag-Dzxf5qoT.js","./TagList-C0eLtcDO.js","./TextNotification-TOi5P2Z0.js","./UserEngagementWrapper-A6DCP-GM.js","./UserStatistics-C-3yC6TP.js","./VideoPlayer-Dilqd3c4.js","./FieldInput.stories-CmNQbghs.js","./FieldTextarea.stories-BPuU9jRK.js","./FollowButton.stories-A-hMvqvI.js","./Guidelines.stories-CABYKxLN.js","./Heading.stories-BAavE8eL.js","./HeroBanner.stories-DqXUwOnF.js","./Icon.stories-kW3Qr2Pe.js","./IconCountWithTooltip.stories-CxOTS8ux.js","./ImageCrop.stories-C7egeEfo.js","./ImageGallery.stories-DwQZOi3v.js","./Input.stories-ChjzHMa3.js","./InternalLink.stories-Cjtj3wfE.js","./LinkifyText.stories-CRNr229Y.js","./Loader.stories-MBzLYqWO.js","./Map.stories-CD83PoJ2.js","./MapFilterList.stories-BvuYvNVD.js","./MapFilterProfileTypeCardList.stories-ddXeBtnb.js","./MapMemberCard.stories-BAET6g_6.js","./MapPin.stories-D-hiWMw_.js","./MapWithPin.stories-CaxCdYiS.js","./MemberBadge.stories-r5ugHWuk.js","./Modal.stories-BGpb3yBy.js","./ModerationStatus.stories-CiEV2mcg.js","./MoreContainer.stories-BZDjrecP.js","./NotificationItem.stories-CRhKj1SS.js","./NotificationList.stories-jjQpxF3_.js","./OsmGeocoding.stories-B7Vey5pH.js","./PinProfile.stories-MVsTcDzE.js","./ProfileLink.stories-BLDd-sr2.js","./ProfileTagsList.stories-C2rZLuPt.js","./ResearchEditorOverview.stories-CZQg78Pu.js","./SearchField.stories-rsn2p4Oo.js","./Select.stories-CznXLdDQ.js","./SettingsFormWrapper.stories-PpNf0hMD.js","./SiteFooter.stories-C8FebAdX.js","./TabbedContent.stories-hD3FnE0b.js","./Tag.stories--XPK_NY1.js","./TagList.stories-DjedbwFZ.js","./Text.stories--48DIG4W.js","./TextNotification.stories-DHnvNerz.js","./Textarea.stories-BJ5u_oiF.js","./Tooltip.stories-CAqe5Eh-.js","./UserEngagementWrapper.stories-DA0oRB91.js","./UserStatistics.stories-DCkpMQ6U.js","./Username.stories-CsCOcD2O.js","./VideoPlayer.stories-BhUETI7L.js","./welcome-CZk4nvlI.js","./index-BYSxpCNe.js","./index-D-8MO0q_.js","./index-EEBIeVPD.js","./index-DrFu-skq.js","./index-gbZvCw43.js","./entry-preview-9LBAkts4.js","./react-18-Bze0iTLm.js","./entry-preview-docs-zO113c-Z.js","./preview-BJPLiuSt.js","./preview-BEBQg86I.js","./preview-BcxrGG1y.js","./preview-BAz7FMXc.js","./preview-e9WIjZMY.js"]))=>t.map((t=>e[t]));import"../sb-preview/runtime.js";!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))s(t);new MutationObserver((t=>{for(const e of t)if("childList"===e.type)for(const t of e.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&s(t)})).observe(document,{childList:!0,subtree:!0})}function s(t){if(t.ep)return;t.ep=!0;const s=function(t){const s={};return t.integrity&&(s.integrity=t.integrity),t.referrerPolicy&&(s.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?s.credentials="include":"anonymous"===t.crossOrigin?s.credentials="omit":s.credentials="same-origin",s}(t);fetch(t.href,s)}}();const L="modulepreload",R=function(t,s){return new URL(t,s).href},O={},t=function(t,s,e){let r=Promise.resolve();if(s&&s.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),o=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.allSettled(s.map((s=>{if((s=R(s,e))in O)return;O[s]=!0;const r=s.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(e)for(let e=t.length-1;e>=0;e--){const i=t[e];if(i.href===s&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":L,r||(a.as="script"),a.crossOrigin="",a.href=s,o&&a.setAttribute("nonce",o),document.head.appendChild(a),r?new Promise(((t,e)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>e(new Error(`Unable to preload CSS for ${s}`))))})):void 0})))}function i(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return r.then((s=>{for(const t of s||[])"rejected"===t.status&&i(t.reason);return t().catch(i)}))},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:I}=__STORYBOOK_MODULE_PREVIEW_API__,E=P({page:"preview"});I.setChannel(E),window.__STORYBOOK_ADDONS_CHANNEL__=E,"DEVELOPMENT"===window.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const D={"./src/Alert/Alert.stories.tsx":async()=>t((()=>import("./Alert.stories-BifAKNCu.js")),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./src/ArticleCallToAction/ArticleCallToAction.stories.tsx":async()=>t((()=>import("./ArticleCallToAction.stories-CyBMWgBU.js")),__vite__mapDeps([8,1,2,9,10,11,12,13,4,5,14,15,16,6,7,3,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url),"./src/Banner/Banner.stories.tsx":async()=>t((()=>import("./Banner.stories-ppC-3OOU.js")),__vite__mapDeps([30,1,2,31,3,4,5,6,7]),import.meta.url),"./src/BlockedRoute/BlockedRoute.stories.tsx":async()=>t((()=>import("./BlockedRoute.stories-Vy0K_Uol.js")),__vite__mapDeps([32,1,2,9,33,10,11,12,13,4,5,14,15,16,6,7,3,27,28,29,24]),import.meta.url),"./src/Breadcrumbs/Breadcrumbs.stories.tsx":async()=>t((()=>import("./Breadcrumbs.stories-Diul89SN.js")),__vite__mapDeps([34,1,2,35,11,12,13,4,5,14,15,16,6,7,10,3,28,29,24]),import.meta.url),"./src/Button/Button.stories.tsx":async()=>t((()=>import("./Button.stories-CCY7feTg.js")),__vite__mapDeps([36,1,2,11,12,13,4,5,14,15,16,6,7,10,3]),import.meta.url),"./src/ButtonIcon/ButtonIcon.stories.tsx":async()=>t((()=>import("./ButtonIcon.stories-BJDeg0db.js")),__vite__mapDeps([37,1,2,38,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/ButtonShowReplies/ButtonShowReplies.stories.tsx":async()=>t((()=>import("./ButtonShowReplies.stories-CgDeRJwG.js")),__vite__mapDeps([39,1,2,40,9,41,10,11,12,13,4,5,14,15,16,6,7,3,42]),import.meta.url),"./src/CardButton/CardButton.stories.tsx":async()=>t((()=>import("./CardButton.stories-DKPxGZGW.js")),__vite__mapDeps([43,1,2,44,3,4,5,6,7]),import.meta.url),"./src/CardList/CardList.stories.tsx":async()=>t((()=>import("./CardList.stories-D4Z07zME.js")),__vite__mapDeps([45,1,2,46,47,44,3,4,5,6,7,48,49,50,16,21,22,23,26,14,12,13,27,28,29,24,51,11,15,52]),import.meta.url),"./src/CardListItem/CardListItem.stories.tsx":async()=>t((()=>import("./CardListItem.stories-gbx8qE1D.js")),__vite__mapDeps([53,1,2,9,47,44,3,4,5,6,7,48,49,50,16,21,22,23,26,14,12,13,27,28,29,24,51]),import.meta.url),"./src/Category/Category.stories.tsx":async()=>t((()=>import("./Category.stories-CJyQmpTt.js")),__vite__mapDeps([54,1,2,49,3,4,5,6,7]),import.meta.url),"./src/CharacterCount/CharacterCount.stories.tsx":async()=>t((()=>import("./CharacterCount.stories-DAkCuVI6.js")),__vite__mapDeps([55,1,2,56,3,4,5,6,7]),import.meta.url),"./src/CommentItem/CommentItem.stories.tsx":async()=>t((()=>import("./CommentItem.stories-C9dYD4oG.js")),__vite__mapDeps([57,1,2,40,9,58,10,11,12,13,4,5,14,15,16,6,7,3,59,60,29,61,62,63,64,65,66,67,56,68,69,27,28,24,21,22,23,26]),import.meta.url),"./src/CommentList/CommentList.stories.tsx":async()=>t((()=>import("./CommentList.stories-C5Ot4zWr.js")),__vite__mapDeps([70,1,2,40,9,71,10,11,12,13,4,5,14,15,16,6,7,3,41,42,58,59,60,29,61,62,63,64,65,66,67,56,68,69,27,28,24,21,22,23,26,72,73,50]),import.meta.url),"./src/ConfirmModal/ConfirmModal.stories.tsx":async()=>t((()=>import("./ConfirmModal.stories-DB7ywUan.js")),__vite__mapDeps([74,1,2,59,10,11,12,13,4,5,14,15,16,6,7,3,60,29,61]),import.meta.url),"./src/ContentStatistics/ContentStatistics.stories.tsx":async()=>t((()=>import("./ContentStatistics.stories-DC7TU1WW.js")),__vite__mapDeps([75,1,2,9,76,10,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/CreateComment/CreateComment.stories.tsx":async()=>t((()=>import("./CreateComment.stories-CU78S9AB.js")),__vite__mapDeps([77,1,2,73,50,16,21,22,4,5,7,23,3,6,28,29,24]),import.meta.url),"./src/CreateReply/CreateReply.stories.tsx":async()=>t((()=>import("./CreateReply.stories-CxH52BhY.js")),__vite__mapDeps([78,1,2,72,73,50,16,21,22,4,5,7,23,3,6,28,29,24]),import.meta.url),"./src/DiscussionContainer/DiscussionContainer.stories.tsx":async()=>t((()=>import("./DiscussionContainer.stories-B3LOe7IO.js")),__vite__mapDeps([79,1,2,40,9,80,71,10,11,12,13,4,5,14,15,16,6,7,3,41,42,58,59,60,29,61,62,63,64,65,66,67,56,68,69,27,28,24,21,22,23,26,72,73,50]),import.meta.url),"./src/DiscussionTitle/DiscussionTitle.stories.tsx":async()=>t((()=>import("./DiscussionTitle.stories-DMuy2t7b.js")),__vite__mapDeps([81,1,2,42,3,4,5,6,7]),import.meta.url),"./src/DisplayDate/DisplayDate.stories.tsx":async()=>t((()=>import("./DisplayDate.stories-BQ_hvTcN.js")),__vite__mapDeps([82,1,2,62,63,3,4,5,6,7]),import.meta.url),"./src/DonationRequest/DonationRequest.stories.tsx":async()=>t((()=>import("./DonationRequest.stories-DCE7Ietr.js")),__vite__mapDeps([83,1,2,84,10,11,12,13,4,5,14,15,16,6,7,3,69]),import.meta.url),"./src/DonationRequestModal/DonationRequestModal.stories.tsx":async()=>t((()=>import("./DonationRequestModal.stories-LHfLELJL.js")),__vite__mapDeps([85,1,2,86,84,10,11,12,13,4,5,14,15,16,6,7,3,69,60,29,61]),import.meta.url),"./src/DownloadButton/DownloadButton.stories.tsx":async()=>t((()=>import("./DownloadButton.stories-CJvBcDAD.js")),__vite__mapDeps([87,1,2,88,11,12,13,4,5,14,15,16,6,7,19,20,3]),import.meta.url),"./src/DownloadCounter/DownloadCounter.stories.tsx":async()=>t((()=>import("./DownloadCounter.stories-BHQsKB0E.js")),__vite__mapDeps([89,1,2,90,3,4,5,6,7]),import.meta.url),"./src/DownloadStaticFile/DownloadStaticFile.stories.tsx":async()=>t((()=>import("./DownloadStaticFile.stories-CQNa0s65.js")),__vite__mapDeps([91,1,2,92,88,11,12,13,4,5,14,15,16,6,7,19,20,3,69]),import.meta.url),"./src/DownloadWithDonationAsk/DownloadWithDonationAsk.stories.tsx":async()=>t((()=>import("./DownloadWithDonationAsk.stories-DHkmMxdv.js")),__vite__mapDeps([93,1,2,94,86,84,10,11,12,13,4,5,14,15,16,6,7,3,69,60,29,61,88,19,20,90,92,24]),import.meta.url),"./src/EditComment/EditComment.stories.tsx":async()=>t((()=>import("./EditComment.stories-d1wxRZnz.js")),__vite__mapDeps([95,1,2,64,13,65,66,10,11,12,4,5,14,15,16,6,7,3,67,56]),import.meta.url),"./src/ElWithBeforeIcon/ElWithBeforeIcon.stories.tsx":async()=>t((()=>import("./ElWithBeforeIcon.stories-DeEz-BrI.js")),__vite__mapDeps([96,1,2,97,3,4,5,6,7]),import.meta.url),"./src/ExternalLink/ExternalLink.stories.tsx":async()=>t((()=>import("./ExternalLink.stories-CAAKEnpi.js")),__vite__mapDeps([98,1,2,25,26,14,12,13,4,5,3,6,7,27,28,29,24,21,22,23,31,33,10,11,15,16,35,38,41,42,44,46,47,48,49,50,51,52,76,58,59,60,61,62,63,64,65,66,67,56,68,69,71,72,73,80,84,86,88,19,20,90,94,92,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,18,138,139,140]),import.meta.url),"./src/FieldInput/FieldInput.stories.tsx":async()=>t((()=>import("./FieldInput.stories-CmNQbghs.js")),__vite__mapDeps([141,1,2,99,56,3,4,5,6,7]),import.meta.url),"./src/FieldTextarea/FieldTextarea.stories.tsx":async()=>t((()=>import("./FieldTextarea.stories-BPuU9jRK.js")),__vite__mapDeps([142,1,2,67,56,3,4,5,6,7]),import.meta.url),"./src/FollowButton/FollowButton.stories.tsx":async()=>t((()=>import("./FollowButton.stories-A-hMvqvI.js")),__vite__mapDeps([143,1,2,101,10,11,12,13,4,5,14,15,16,6,7,3,19,20,24]),import.meta.url),"./src/Guidelines/Guidelines.stories.tsx":async()=>t((()=>import("./Guidelines.stories-CABYKxLN.js")),__vite__mapDeps([144,1,2,69,3,4,5,6,7,100]),import.meta.url),"./src/Heading/Heading.stories.tsx":async()=>t((()=>import("./Heading.stories-BAavE8eL.js")),__vite__mapDeps([145,1,2,3,4,5,6,7]),import.meta.url),"./src/HeroBanner/HeroBanner.stories.tsx":async()=>t((()=>import("./HeroBanner.stories-DqXUwOnF.js")),__vite__mapDeps([146,1,2,103,3,4,5,6,7]),import.meta.url),"./src/Icon/Icon.stories.tsx":async()=>t((()=>import("./Icon.stories-kW3Qr2Pe.js")),__vite__mapDeps([147,1,2,11,12,13,4,5,14,15,16,6,7]),import.meta.url),"./src/IconCountWithTooltip/IconCountWithTooltip.stories.tsx":async()=>t((()=>import("./IconCountWithTooltip.stories-CxOTS8ux.js")),__vite__mapDeps([148,1,2,104,11,12,13,4,5,14,15,16,6,7,19,20,3]),import.meta.url),"./src/ImageCrop/ImageCrop.stories.tsx":async()=>t((()=>import("./ImageCrop.stories-C7egeEfo.js")),__vite__mapDeps([149,1,2,105,10,11,12,13,4,5,14,15,16,6,7,3,52,22,21,23,106]),import.meta.url),"./src/ImageGallery/ImageGallery.stories.tsx":async()=>t((()=>import("./ImageGallery.stories-DwQZOi3v.js")),__vite__mapDeps([150,1,2,107,12,13,4,5,11,14,15,16,6,7,3,108]),import.meta.url),"./src/Input/Input.stories.tsx":async()=>t((()=>import("./Input.stories-ChjzHMa3.js")),__vite__mapDeps([151,1,2,3,4,5,6,7]),import.meta.url),"./src/InternalLink/InternalLink.stories.tsx":async()=>t((()=>import("./InternalLink.stories-Cjtj3wfE.js")),__vite__mapDeps([152,1,2,27,3,4,5,6,7,28,29,24]),import.meta.url),"./src/LinkifyText/LinkifyText.stories.tsx":async()=>t((()=>import("./LinkifyText.stories-CRNr229Y.js")),__vite__mapDeps([153,1,2,68,12,13,4,5,69,3,6,7,27,28,29,24,21,22,23]),import.meta.url),"./src/Loader/Loader.stories.tsx":async()=>t((()=>import("./Loader.stories-MBzLYqWO.js")),__vite__mapDeps([154,1,2,52,22,4,5,7,12,13,21,23,3,6]),import.meta.url),"./src/Map/Map.stories.tsx":async()=>t((()=>import("./Map.stories-CD83PoJ2.js")),__vite__mapDeps([155,1,2,109,13,65,110,111,112,63,113,7,114]),import.meta.url),"./src/MapFilterList/MapFilterList.stories.tsx":async()=>t((()=>import("./MapFilterList.stories-BvuYvNVD.js")),__vite__mapDeps([156,1,2,115,10,11,12,13,4,5,14,15,16,6,7,3,38,50,21,22,23,44]),import.meta.url),"./src/MapFilterProfileTypeCardList/MapFilterProfileTypeCardList.stories.tsx":async()=>t((()=>import("./MapFilterProfileTypeCardList.stories-ddXeBtnb.js")),__vite__mapDeps([157,1,2,116,38,11,12,13,4,5,14,15,16,6,7,3,44,50,21,22,23]),import.meta.url),"./src/MapMemberCard/MapMemberCard.stories.tsx":async()=>t((()=>import("./MapMemberCard.stories-BAET6g_6.js")),__vite__mapDeps([158,9,117,1,2,22,4,5,7,26,14,12,13,3,6,27,28,29,24]),import.meta.url),"./src/MapWithPin/MapPin.stories.tsx":async()=>t((()=>import("./MapPin.stories-D-hiWMw_.js")),__vite__mapDeps([159,1,2,121,113,112,63,110,111,13,7]),import.meta.url),"./src/MapWithPin/MapWithPin.stories.tsx":async()=>t((()=>import("./MapWithPin.stories-CaxCdYiS.js")),__vite__mapDeps([160,1,2,118,10,11,12,13,4,5,14,15,16,6,7,3,109,65,110,111,112,63,113,114,119,120,121]),import.meta.url),"./src/MemberBadge/MemberBadge.stories.tsx":async()=>t((()=>import("./MemberBadge.stories-r5ugHWuk.js")),__vite__mapDeps([161,1,2,50,16,21,22,4,5,7,23,3,6]),import.meta.url),"./src/Modal/Modal.stories.tsx":async()=>t((()=>import("./Modal.stories-BGpb3yBy.js")),__vite__mapDeps([162,1,2,60,29,61,12,13,4,5,3,6,7]),import.meta.url),"./src/ModerationStatus/ModerationStatus.stories.tsx":async()=>t((()=>import("./ModerationStatus.stories-CiEV2mcg.js")),__vite__mapDeps([163,1,2,122,3,4,5,6,7]),import.meta.url),"./src/MoreContainer/MoreContainer.stories.tsx":async()=>t((()=>import("./MoreContainer.stories-BZDjrecP.js")),__vite__mapDeps([164,1,2,123,12,13,4,5,21,22,7,23,3,6]),import.meta.url),"./src/NotificationItem/NotificationItem.stories.tsx":async()=>t((()=>import("./NotificationItem.stories-CRhKj1SS.js")),__vite__mapDeps([165,1,2,9,124,21,22,4,5,7,23,11,12,13,14,15,16,6,3]),import.meta.url),"./src/NotificationList/NotificationList.stories.tsx":async()=>t((()=>import("./NotificationList.stories-jjQpxF3_.js")),__vite__mapDeps([166,1,2,9,27,3,4,5,6,7,28,29,24,125,12,13,10,11,14,15,16,124,21,22,23]),import.meta.url),"./src/OsmGeocoding/OsmGeocoding.stories.tsx":async()=>t((()=>import("./OsmGeocoding.stories-B7Vey5pH.js")),__vite__mapDeps([167,1,2,119,120,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/PinProfile/PinProfile.stories.tsx":async()=>t((()=>import("./PinProfile.stories-MVsTcDzE.js")),__vite__mapDeps([168,1,2,9,126,10,11,12,13,4,5,14,15,16,6,7,3,38,44,48,49,50,21,22,23,26,27,28,29,24,51]),import.meta.url),"./src/ProfileLink/ProfileLink.stories.tsx":async()=>t((()=>import("./ProfileLink.stories-BLDd-sr2.js")),__vite__mapDeps([169,1,2,127,69,3,4,5,6,7,11,12,13,14,15,16]),import.meta.url),"./src/ProfileTagsList/ProfileTagsList.stories.tsx":async()=>t((()=>import("./ProfileTagsList.stories-C2rZLuPt.js")),__vite__mapDeps([170,1,2,51,49,3,4,5,6,7]),import.meta.url),"./src/ResearchEditorOverview/ResearchEditorOverview.stories.tsx":async()=>t((()=>import("./ResearchEditorOverview.stories-CZQg78Pu.js")),__vite__mapDeps([171,1,2,128,66,10,11,12,13,4,5,14,15,16,6,7,3,27,28,29,24]),import.meta.url),"./src/SearchField/SearchField.stories.tsx":async()=>t((()=>import("./SearchField.stories-rsn2p4Oo.js")),__vite__mapDeps([172,1,2,120,11,12,13,4,5,14,15,16,6,7,3]),import.meta.url),"./src/Select/Select.stories.tsx":async()=>t((()=>import("./Select.stories-CznXLdDQ.js")),__vite__mapDeps([173,1,2,129,112,63,65,13,110,130,22,4,5,7,29,20,15,3,6,21,23]),import.meta.url),"./src/SettingsFormWrapper/SettingsFormWrapper.stories.tsx":async()=>t((()=>import("./SettingsFormWrapper.stories-PpNf0hMD.js")),__vite__mapDeps([174,1,2,131,3,4,5,6,7,132,12,13,11,14,15,16,27,28,29,24,129,112,63,65,110,130,22,20,21,23]),import.meta.url),"./src/SiteFooter/SiteFooter.stories.tsx":async()=>t((()=>import("./SiteFooter.stories-C8FebAdX.js")),__vite__mapDeps([175,1,2,133,12,13,4,5,69,3,6,7,11,14,15,16]),import.meta.url),"./src/TabbedContent/TabbedContent.stories.tsx":async()=>t((()=>import("./TabbedContent.stories-hD3FnE0b.js")),__vite__mapDeps([176,1,2,9,134,12,13,4,5,132,3,6,7]),import.meta.url),"./src/Tag/Tag.stories.tsx":async()=>t((()=>import("./Tag.stories--XPK_NY1.js")),__vite__mapDeps([177,1,2,135,3,4,5,6,7]),import.meta.url),"./src/TagList/TagList.stories.tsx":async()=>t((()=>import("./TagList.stories-DjedbwFZ.js")),__vite__mapDeps([178,1,2,136,135,3,4,5,6,7]),import.meta.url),"./src/Text/Text.stories.tsx":async()=>t((()=>import("./Text.stories--48DIG4W.js")),__vite__mapDeps([179,1,2,9,3,4,5,6,7]),import.meta.url),"./src/TextNotification/TextNotification.stories.tsx":async()=>t((()=>import("./TextNotification.stories-DHnvNerz.js")),__vite__mapDeps([180,1,2,137,22,4,5,7,3,6]),import.meta.url),"./src/Textarea/Textarea.stories.tsx":async()=>t((()=>import("./Textarea.stories-BJ5u_oiF.js")),__vite__mapDeps([181,1,2,3,4,5,6,7]),import.meta.url),"./src/Tooltip/Tooltip.stories.tsx":async()=>t((()=>import("./Tooltip.stories-CAqe5Eh-.js")),__vite__mapDeps([182,1,2,19,20,12,13,4,5,3,6,7]),import.meta.url),"./src/UsefulStatsButton/UsefulStatsButton.stories.tsx":async()=>t((()=>import("./UsefulStatsButton.stories-DHC8wQh4.js")),__vite__mapDeps([17,1,2,18,10,11,12,13,4,5,14,15,16,6,7,3,19,20,21,22,23,24]),import.meta.url),"./src/UserEngagementWrapper/UserEngagementWrapper.stories.tsx":async()=>t((()=>import("./UserEngagementWrapper.stories-DA0oRB91.js")),__vite__mapDeps([183,1,2,25,26,14,12,13,4,5,3,6,7,27,28,29,24,21,22,23,31,33,10,11,15,16,35,38,41,42,44,46,47,48,49,50,51,52,76,58,59,60,61,62,63,64,65,66,67,56,68,69,71,72,73,80,84,86,88,19,20,90,94,92,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,18,138,139,140]),import.meta.url),"./src/UserStatistics/UserStatistics.stories.tsx":async()=>t((()=>import("./UserStatistics.stories-DCkpMQ6U.js")),__vite__mapDeps([184,1,2,139,16,97,3,4,5,6,7,69,11,12,13,14,15,27,28,29,24]),import.meta.url),"./src/Username/Username.stories.tsx":async()=>t((()=>import("./Username.stories-CsCOcD2O.js")),__vite__mapDeps([185,26,1,2,14,12,13,4,5,3,6,7,27,28,29,24]),import.meta.url),"./src/VideoPlayer/VideoPlayer.stories.tsx":async()=>t((()=>import("./VideoPlayer.stories-BhUETI7L.js")),__vite__mapDeps([186,1,2,140,23,61,3,4,5,6,7]),import.meta.url),"./src/welcome.mdx":async()=>t((()=>import("./welcome-CZk4nvlI.js")),__vite__mapDeps([187,1,2,188,5,29,189,13,110,111,130,190,191,192]),import.meta.url)};async function y(t){return D[t]()}const{composeConfigs:A,PreviewWeb:v,ClientApi:V}=__STORYBOOK_MODULE_PREVIEW_API__,x=async()=>{const s=await Promise.all([t((()=>import("./entry-preview-9LBAkts4.js")),__vite__mapDeps([193,2,194,29]),import.meta.url),t((()=>import("./entry-preview-docs-zO113c-Z.js")),__vite__mapDeps([195,190,2,61,191]),import.meta.url),t((()=>import("./preview-BJPLiuSt.js")),__vite__mapDeps([196,189]),import.meta.url),t((()=>import("./preview-C7NQYlOa.js")),[],import.meta.url),t((()=>import("./preview-BEBQg86I.js")),__vite__mapDeps([197,191]),import.meta.url),t((()=>import("./preview-BcxrGG1y.js")),__vite__mapDeps([198,191]),import.meta.url),t((()=>import("./preview-Db4Idchh.js")),[],import.meta.url),t((()=>import("./preview-BAz7FMXc.js")),__vite__mapDeps([199,191]),import.meta.url),t((()=>import("./preview-Cv3rAi2i.js")),[],import.meta.url),t((()=>import("./preview-e9WIjZMY.js")),__vite__mapDeps([200,1,2,21,22,4,5,7,23,102,24,28,29]),import.meta.url)]);return A(s)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v,window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore,window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new V({storyStore:window.__STORYBOOK_PREVIEW__.storyStore}),window.__STORYBOOK_PREVIEW__.initialize({importFn:y,getProjectAnnotations:x});export{t as _}; \ No newline at end of file diff --git a/storybook-static/assets/index-HxeQ2bN6.js b/storybook-static/assets/index-BYSxpCNe.js similarity index 99% rename from storybook-static/assets/index-HxeQ2bN6.js rename to storybook-static/assets/index-BYSxpCNe.js index e97fd881de..884f625537 100644 --- a/storybook-static/assets/index-HxeQ2bN6.js +++ b/storybook-static/assets/index-BYSxpCNe.js @@ -1,5 +1,5 @@ -/*! For license information please see index-HxeQ2bN6.js.LICENSE.txt */ -const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJWPISIS-WoEhMjQR.js","./iframe-BRhzNi2b.js","./index-BP8_t0zE.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-BBRV8eG_.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js","./formatter-SWP5E3XI-CarBMRH9.js","./WithTooltip-V3YHNWJZ-DYG6ob1x.js","./Color-6VNJS4EI-C8_EVnsw.js"]))=>e.map((e=>r[e]));import{_ as Wt}from"./iframe-BRhzNi2b.js";import{g as In,r as h,a}from"./index-BP8_t0zE.js";import{u as Ml,a as Co}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import{r as bs,R as N0}from"./index-BBRV8eG_.js";import{O as ys,P as H0}from"./index-D-8MO0q_.js";import{_ as Be}from"./extends-CF3RwP-h.js";import{_ as vs,a as Z0}from"./setPrototypeOf-NYsvoNVB.js";import{_ as V0}from"./inheritsLoose-CdQPfY07.js";import{_ as z0,a as q0}from"./isNativeReflectConstruct-gwnEYaHE.js";import{q as Es,r as U0,s as xs,t as W0,i as Pn,v as G0,w as Y0,x as K0,c as ws,y as As,z as X0,A as Ss,B as J0,C as Q0,D as e1,E as t1,F as r1,G as n1,H as Cs,I as a1,J as o1,K as ks,_ as l1,L as i1,M as s1,N as ko,d as _s,O as Os,P as Ts,Q as c1,R as u1,U as d1,e as p1,S as Bl,V as Na,k as pa}from"./index-EEBIeVPD.js";import{d as we}from"./index-DrFu-skq.js";var qe=e=>`control-${e.replace(/\s+/g,"-")}`,jn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:f1}=__STORYBOOK_MODULE_GLOBAL__,{logger:m1}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var g1=Object.create,Rs=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,Fs=Object.getOwnPropertyNames,b1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,_o=(e,t)=>function(){return t||(0,e[Fs(e)[0]])((t={exports:{}}).exports,t),t.exports},v1=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Fs(t))!y1.call(e,n)&&n!==r&&Rs(e,n,{get:()=>t[n],enumerable:!(a=h1(t,n))||a.enumerable});return e},$s=(e,t,r)=>(r=null!=e?g1(b1(e)):{},v1(e&&e.__esModule?r:Rs(r,"default",{value:e,enumerable:!0}),e));function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?r-1:0),n=1;n=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var Il={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function _1(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Il[t]?"#"+Il[t]:e}var O1=/^#[a-fA-F0-9]{6}$/,T1=/^#[a-fA-F0-9]{8}$/,R1=/^#[a-fA-F0-9]{3}$/,F1=/^#[a-fA-F0-9]{4}$/,ma=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,$1=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,D1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,L1=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Nn(e){if("string"!=typeof e)throw new lt(3);var t=_1(e);if(t.match(O1))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(T1)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(R1))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(F1)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=ma.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=$1.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=D1.exec(t);if(l){var i="rgb("+Br(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=ma.exec(i);if(!s)throw new lt(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=L1.exec(t.substring(0,50));if(c){var u="rgb("+Br(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=ma.exec(u);if(!d)throw new lt(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new lt(5)}function M1(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?_n(e,t,r):"rgba("+Br(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+Br(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new lt(2)}function za(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return Va("#"+It(e)+It(t)+It(r));if("object"==typeof e&&void 0===t&&void 0===r)return Va("#"+It(e.red)+It(e.green)+It(e.blue));throw new lt(6)}function Ir(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=Nn(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?za(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?za(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new lt(7)}var N1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},H1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Z1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},V1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ms(e){if("object"!=typeof e)throw new lt(8);if(H1(e))return Ir(e);if(N1(e))return za(e);if(V1(e))return j1(e);if(Z1(e))return P1(e);throw new lt(8)}function Bs(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Bs(e,t,a)}}function Hn(e){return Bs(e,e.length,[])}function Zn(e,t,r){return Math.max(e,Math.min(t,r))}function z1(e,t){if("transparent"===t)return t;var r=Ls(t);return Ms(or({},r,{lightness:Zn(0,1,r.lightness-parseFloat(e))}))}var q1=Hn(z1),U1=q1;function W1(e,t){if("transparent"===t)return t;var r=Ls(t);return Ms(or({},r,{lightness:Zn(0,1,r.lightness+parseFloat(e))}))}var G1=Hn(W1),Y1=G1;function K1(e,t){if("transparent"===t)return t;var r=Nn(t);return Ir(or({},r,{alpha:Zn(0,1,(100*("number"==typeof r.alpha?r.alpha:1)+100*parseFloat(e))/100)}))}var X1=Hn(K1),J1=X1;function Q1(e,t){if("transparent"===t)return t;var r=Nn(t);return Ir(or({},r,{alpha:Zn(0,1,+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var ed=Hn(Q1),td=ed,N={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ct={app:"#F6F9FC",bar:N.lightest,content:N.lightest,preview:N.lightest,gridCellSize:10,hoverable:td(.9,N.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},it={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},rd={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ct.app,appContentBg:N.lightest,appPreviewBg:N.lightest,appBorderColor:N.border,appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:N.darkest,textInverseColor:N.lightest,textMutedColor:N.dark,barTextColor:N.mediumdark,barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:N.lightest,buttonBg:Ct.app,buttonBorder:N.medium,booleanBg:N.mediumlight,booleanSelectedBg:N.lightest,inputBg:N.lightest,inputBorder:N.border,inputTextColor:N.darkest,inputBorderRadius:4},On=rd,nd={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:N.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:N.lightest,inputBorderRadius:4},ad=nd,{window:ha}=f1,od=e=>({color:e}),ld=e=>"string"==typeof e||(m1.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1),id=e=>!/(gradient|var|calc)/.test(e),sd=(e,t)=>"darken"===e?Ir(`${U1(1,t)}`,.95):"lighten"===e?Ir(`${Y1(1,t)}`,.95):t,cd=e=>t=>{if(!ld(t)||!id(t))return t;try{return sd(e,t)}catch{return t}},Fr=cd("lighten"),Is=()=>ha&&ha.matchMedia&&ha.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",qa={light:On,dark:ad,normal:On};function sn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}Is();var Ps={exports:{}};Ps.exports=function e(t,r,a){function n(l,i){if(!r[l]){if(!t[l]){var s="function"==typeof sn&&sn;if(!i&&s)return s(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[l]={exports:{}};t[l][0].call(u.exports,(function(e){return n(t[l][1][e]||e)}),u,u.exports,e,t,r,a)}return r[l].exports}for(var o="function"==typeof sn&&sn,l=0;l=0?(this.lastItem=this.list[t],this.list[t].val):void 0},a.prototype.set=function(e,t){var r;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(r=this.indexOf(e))>=0?(this.lastItem=this.list[r],this.list[r].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this)},a.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),(t=this.indexOf(e))>=0)return this.size--,this.list.splice(t,1)[0]},a.prototype.has=function(e){var t;return!(!this.lastItem||!this.isEqual(this.lastItem.key,e))||(t=this.indexOf(e))>=0&&(this.lastItem=this.list[t],!0)},a.prototype.forEach=function(e,t){var r;for(r=0;r=0&&(!(t=(n=e[r]).cacheItem.get(n.arg))||!t.size);r--)n.cacheItem.delete(n.arg)}function l(e,t){return e===t||e!=e&&t!=t}t.exports=function(e){var t=new a(!1),r=[];return function(l){var i=function(){var s,c,u,d=t,p=arguments.length-1,m=Array(p+1),h=!0;if((i.numArgs||0===i.numArgs)&&i.numArgs!==p+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(u=0;u0&&(m[p]={cacheItem:d,arg:arguments[p]},h?n(r,m):r.push(m),r.length>e&&o(r.shift())),i.wasMemoized=h,i.numArgs=p+1,c};return i.limit=e,i.wasMemoized=!1,i.cache=t,i.lru=r,i}}},{"map-or-similar":1}]},{},[3])(3);var ud=Ps.exports;const Yt=In(ud),{logger:dd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pd=_o({"../../node_modules/react-is/cjs/react-is.development.js"(e){!function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var m=e.type;switch(m){case c:case u:case n:case l:case o:case p:return m;default:var g=m&&m.$$typeof;switch(g){case s:case d:case f:case h:case i:return g;default:return t}}case a:return t}}}var x=c,w=u,k=s,S=i,C=r,A=d,_=n,O=f,R=h,M=a,T=l,L=o,j=p,F=!1;function N(e){return E(e)===u}e.AsyncMode=x,e.ConcurrentMode=w,e.ContextConsumer=k,e.ContextProvider=S,e.Element=C,e.ForwardRef=A,e.Fragment=_,e.Lazy=O,e.Memo=R,e.Portal=M,e.Profiler=T,e.StrictMode=L,e.Suspense=j,e.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||E(e)===c},e.isConcurrentMode=N,e.isContextConsumer=function(e){return E(e)===s},e.isContextProvider=function(e){return E(e)===i},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return E(e)===d},e.isFragment=function(e){return E(e)===n},e.isLazy=function(e){return E(e)===f},e.isMemo=function(e){return E(e)===h},e.isPortal=function(e){return E(e)===a},e.isProfiler=function(e){return E(e)===l},e.isStrictMode=function(e){return E(e)===o},e.isSuspense=function(e){return E(e)===p},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===l||e===o||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===i||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g)},e.typeOf=E}()}}),fd=_o({"../../node_modules/react-is/index.js"(e,t){t.exports=pd()}}),js=_o({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=fd(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function i(e){return r.isMemo(e)?o:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(m){var o=p(r);o&&o!==m&&e(t,o,a)}var l=c(r);u&&(l=l.concat(u(r)));for(var h=i(t),f=i(r),g=0;g0?pe(hr,--Ce):0,lr--,10===oe&&(lr=1,zn--),oe}function _e(){return oe=Ce2||jr(oe)>3?"":" "}function Td(e,t){for(;--t&&_e()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Kr(e,yn()+(t<6&&32==ut()&&32==_e()))}function Ga(e){for(;_e();)switch(oe){case e:return Ce;case 34:case 39:34!==e&&39!==e&&Ga(oe);break;case 40:41===e&&Ga(e);break;case 92:_e()}return Ce}function Rd(e,t){for(;_e()&&e+oe!==57&&(e+oe!==84||47!==ut()););return"/*"+Kr(t,Ce-1)+"*"+Vn(47===e?e:_e())}function Fd(e){for(;!jr(ut());)_e();return Kr(e,Ce)}function $d(e){return zs(En("",null,null,null,[""],e=Vs(e),0,[0],e))}function En(e,t,r,a,n,o,l,i,s){for(var c=0,u=0,d=l,p=0,m=0,h=0,f=1,g=1,b=1,y=0,v="",E=n,x=o,w=a,k=v;g;)switch(h=y,y=_e()){case 40:if(108!=h&&58==pe(k,d-1)){-1!=Wa(k+=Y(vn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=vn(y);break;case 9:case 10:case 13:case 32:k+=Od(h);break;case 92:k+=Td(yn()-1,7);continue;case 47:switch(ut()){case 42:case 47:cn(Dd(Rd(_e(),yn()),t,r),s);break;default:k+="/"}break;case 123*f:i[c++]=tt(k)*b;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(k=Y(k,/\f/g,"")),m>0&&tt(k)-d&&cn(m>32?jl(k+";",a,r,d-1):jl(Y(k," ","")+";",a,r,d-2),s);break;case 59:k+=";";default:if(cn(w=Pl(k,t,r,c,u,n,i,v,E=[],x=[],d),o),123===y)if(0===u)En(k,t,w,w,E,o,d,i,x);else switch(99===p&&110===pe(k,3)?100:p){case 100:case 108:case 109:case 115:En(e,w,w,a&&cn(Pl(e,w,w,0,0,n,i,v,n,E=[],d),x),n,x,d,i,a?E:x);break;default:En(k,w,w,w,[""],x,0,i,x)}}c=u=m=0,f=b=1,v=k="",d=l;break;case 58:d=1+tt(k),m=h;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==_d())continue;switch(k+=Vn(y),y*f){case 38:b=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(tt(k)-1)*b,b=1;break;case 64:45===ut()&&(k+=vn(_e())),p=ut(),u=d=tt(v=k+=Fd(yn())),y++;break;case 45:45===h&&2==tt(k)&&(f=0)}}return o}function Pl(e,t,r,a,n,o,l,i,s,c,u){for(var d=n-1,p=0===n?o:[""],m=$o(p),h=0,f=0,g=0;h0?p[b]+" "+y:Y(y,/&\f/g,p[b])))&&(s[g++]=v);return qn(e,t,r,0===n?Ro:i,s,c,u)}function Dd(e,t,r){return qn(e,t,r,To,Vn(kd()),Pr(e,2,-2),0)}function jl(e,t,r,a){return qn(e,t,r,Fo,Pr(e,0,a),Pr(e,a+1,-1),a)}function ar(e,t){for(var r="",a=$o(e),n=0;n-1},Vd=function(e){return function(t,r,a){if("rule"===t.type&&!e.compat){var n=t.value.match(/(:first|:nth|:nth-last)-child/g);if(n){for(var o=!!t.parent?t.parent.children:a,l=o.length-1;l>=0;l--){var i=o[l];if(i.line=0;r--)if(!qs(t[r]))return!0;return!1},Zl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},qd=function(e,t,r){qs(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Zl(e)):zd(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zl(e)))};function Us(e,t){switch(Ad(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Tn+e+be+e+e;case 6828:case 4268:return G+e+be+e+e;case 6165:return G+e+be+"flex-"+e+e;case 5187:return G+e+Y(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+be+"flex-$1$2")+e;case 5443:return G+e+be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return G+e+be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+be+Y(e,"shrink","negative")+e;case 5292:return G+e+be+Y(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Y(e,"-grow","")+G+e+be+Y(e,"grow","positive")+e;case 4554:return G+Y(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tt(e)-1-t>6)switch(pe(e,t+1)){case 109:if(45!==pe(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Tn+(108==pe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wa(e,"stretch")?Us(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pe(e,t+1))break;case 6444:switch(pe(e,tt(e)-3-(~Wa(e,"!important")&&10))){case 107:return Y(e,":",":"+G)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===pe(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+be+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+be+e+e}return e}var Ud=function(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case Fo:e.return=Us(e.value,e.length);break;case Ns:return ar([kr(e,{value:Y(e.value,"@","@"+G)})],a);case Ro:if(e.length)return Cd(e.props,(function(t){switch(Sd(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ar([kr(e,{props:[Y(t,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return ar([kr(e,{props:[Y(t,/:(plac\w+)/,":"+G+"input-$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,":"+Tn+"$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,be+"input-$1")]})],a)}return""}))}},Wd=[Ud],Gd=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||Wd;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var n,o={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++a,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Xd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vl="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Jd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Qd=/[A-Z]|^ms/g,Ws=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lo=function(e){return 45===e.charCodeAt(1)},zl=function(e){return null!=e&&"boolean"!=typeof e},ba=Oo((function(e){return Lo(e)?e:e.replace(Qd,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ws,(function(e,t,r){return rt={name:t,styles:r,next:rt},t}))}return 1===Xd[e]||Lo(e)||"number"!=typeof t||0===t?t:t+"px"};ql=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ul=["normal","none","initial","inherit","unset"],Wl=Rn,Gl=/^-ms-/,Yl=/-(.)/g,ya={},Rn=function(e,t){if("content"===e&&("string"!=typeof t||-1===Ul.indexOf(t)&&!ql.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Wl(e,t);return""!==r&&!Lo(e)&&-1!==e.indexOf("-")&&void 0===ya[e]&&(ya[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Gl,"ms-").replace(Yl,(function(e,t){return t.toUpperCase()}))+"?")),r};var ql,Ul,Wl,Gl,Yl,ya,Gs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Nr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Gs);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return rt={name:r.name,styles:r.styles,next:rt},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)rt={name:a.name,styles:a.styles,next:rt},a=a.next;var n=r.styles+";";return void 0!==r.map&&(n+=r.map),n}return ep(e,t,r);case"function":if(void 0!==e){var o=rt,l=r(e);return rt=o,Nr(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var i=[],s=r.replace(Ws,(function(e,t,r){var a="animation"+i.length;return i.push("const "+a+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+a+"}"}));i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}if(null==t)return r;var c=t[r];return void 0!==c?c:r}function ep(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n ({})}!");return r}if(null==t||"object"!=typeof t||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Ya({},e,t)},ap=Nl((function(e){return Nl((function(t){return np(e,t)}))})),Ks=function(e){var t=h.useContext(Ot);return e.theme!==t&&(t=ap(t)(e.theme)),h.createElement(Ot.Provider,{value:t},e.children)},Xl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jl="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",op=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},lp=Gn((function(e,t,r){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var n=e[Xl],o=[a],l="";"string"==typeof e.className?l=Do(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var i=ir(o,void 0,h.useContext(Ot));if(-1===i.name.indexOf("-")){var s=e[Jl];s&&(i=ir([i,"label:"+s+";"]))}l+=t.key+"-"+i.name;var c={};for(var u in e)tp.call(e,u)&&"css"!==u&&u!==Xl&&u!==Jl&&(c[u]=e[u]);return c.ref=r,c.className=l,h.createElement(h.Fragment,null,h.createElement(op,{cache:t,serialized:i,isStringTag:"string"==typeof n}),h.createElement(n,c))}));lp.displayName="EmotionCssPropInternal",$s(js());var ip={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Ql=!1,sp=Gn((function(e,t){!Ql&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ql=!0);var r=e.styles,a=ir([r],void 0,h.useContext(Ot)),n=h.useRef();return Ml((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,l=document.querySelector('style[data-emotion="'+e+" "+a.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==l&&(o=!0,l.setAttribute("data-emotion",e),r.hydrate([l])),n.current=[r,o],function(){r.flush()}}),[t]),Ml((function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==a.next&&Wn(t,a.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",a,r,!1)}}),[t,a.name]),null}));function Bo(){for(var e=arguments.length,t=new Array(e),r=0;r component."),l="",o)o[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=o}l&&(n&&(n+=" "),n+=l)}}return n};function up(e,t,r){var a=[],n=Do(e,a,r);return a.length<2?r:n+t(a)}var dp=function(e){var t=e.cache,r=e.serializedArr;return Co((function(){for(var e=0;e96?fp:mp},ri=function(e,t,r){var a;if(t){var n=t.shouldForwardProp;a=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof a&&r&&(a=e.__emotion_forwardProp),a},ni="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gp=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},hp=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var a,n,o=t.__emotion_real===t,l=o&&t.__emotion_base||t;void 0!==r&&(a=r.label,n=r.target);var i=ri(t,r,o),s=i||ti(l),c=!s("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&d.push("label:"+a+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{void 0===u[0][0]&&console.error(ni),d.push(u[0][0]);for(var p=u.length,m=1;m({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}})));Yt(1)((({color:e,background:t,typography:r})=>{let a=vp({typography:r});return{...a,body:{...a.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...a.hr,borderTop:`1px solid ${e.border}`}}}));var Ep={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},xp=br` +/*! For license information please see index-BYSxpCNe.js.LICENSE.txt */ +const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJWPISIS-76l64ZtK.js","./iframe-JYjbkGI-.js","./index-BP8_t0zE.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-BBRV8eG_.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js","./formatter-SWP5E3XI-C6ixPNGK.js","./WithTooltip-V3YHNWJZ-DanSchpU.js","./Color-6VNJS4EI-DHGDfq5k.js"]))=>e.map((e=>r[e]));import{_ as Wt}from"./iframe-JYjbkGI-.js";import{g as In,r as h,a}from"./index-BP8_t0zE.js";import{u as Ml,a as Co}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import{r as bs,R as N0}from"./index-BBRV8eG_.js";import{O as ys,P as H0}from"./index-D-8MO0q_.js";import{_ as Be}from"./extends-CF3RwP-h.js";import{_ as vs,a as Z0}from"./setPrototypeOf-NYsvoNVB.js";import{_ as V0}from"./inheritsLoose-CdQPfY07.js";import{_ as z0,a as q0}from"./isNativeReflectConstruct-gwnEYaHE.js";import{q as Es,r as U0,s as xs,t as W0,i as Pn,v as G0,w as Y0,x as K0,c as ws,y as As,z as X0,A as Ss,B as J0,C as Q0,D as e1,E as t1,F as r1,G as n1,H as Cs,I as a1,J as o1,K as ks,_ as l1,L as i1,M as s1,N as ko,d as _s,O as Os,P as Ts,Q as c1,R as u1,U as d1,e as p1,S as Bl,V as Na,k as pa}from"./index-EEBIeVPD.js";import{d as we}from"./index-DrFu-skq.js";var qe=e=>`control-${e.replace(/\s+/g,"-")}`,jn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:f1}=__STORYBOOK_MODULE_GLOBAL__,{logger:m1}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var g1=Object.create,Rs=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,Fs=Object.getOwnPropertyNames,b1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,_o=(e,t)=>function(){return t||(0,e[Fs(e)[0]])((t={exports:{}}).exports,t),t.exports},v1=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Fs(t))!y1.call(e,n)&&n!==r&&Rs(e,n,{get:()=>t[n],enumerable:!(a=h1(t,n))||a.enumerable});return e},$s=(e,t,r)=>(r=null!=e?g1(b1(e)):{},v1(e&&e.__esModule?r:Rs(r,"default",{value:e,enumerable:!0}),e));function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?r-1:0),n=1;n=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var Il={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function _1(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Il[t]?"#"+Il[t]:e}var O1=/^#[a-fA-F0-9]{6}$/,T1=/^#[a-fA-F0-9]{8}$/,R1=/^#[a-fA-F0-9]{3}$/,F1=/^#[a-fA-F0-9]{4}$/,ma=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,$1=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,D1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,L1=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Nn(e){if("string"!=typeof e)throw new lt(3);var t=_1(e);if(t.match(O1))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(T1)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(R1))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(F1)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=ma.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=$1.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=D1.exec(t);if(l){var i="rgb("+Br(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=ma.exec(i);if(!s)throw new lt(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=L1.exec(t.substring(0,50));if(c){var u="rgb("+Br(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=ma.exec(u);if(!d)throw new lt(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new lt(5)}function M1(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?_n(e,t,r):"rgba("+Br(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+Br(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new lt(2)}function za(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return Va("#"+It(e)+It(t)+It(r));if("object"==typeof e&&void 0===t&&void 0===r)return Va("#"+It(e.red)+It(e.green)+It(e.blue));throw new lt(6)}function Ir(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=Nn(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?za(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?za(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new lt(7)}var N1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},H1=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Z1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},V1=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ms(e){if("object"!=typeof e)throw new lt(8);if(H1(e))return Ir(e);if(N1(e))return za(e);if(V1(e))return j1(e);if(Z1(e))return P1(e);throw new lt(8)}function Bs(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Bs(e,t,a)}}function Hn(e){return Bs(e,e.length,[])}function Zn(e,t,r){return Math.max(e,Math.min(t,r))}function z1(e,t){if("transparent"===t)return t;var r=Ls(t);return Ms(or({},r,{lightness:Zn(0,1,r.lightness-parseFloat(e))}))}var q1=Hn(z1),U1=q1;function W1(e,t){if("transparent"===t)return t;var r=Ls(t);return Ms(or({},r,{lightness:Zn(0,1,r.lightness+parseFloat(e))}))}var G1=Hn(W1),Y1=G1;function K1(e,t){if("transparent"===t)return t;var r=Nn(t);return Ir(or({},r,{alpha:Zn(0,1,(100*("number"==typeof r.alpha?r.alpha:1)+100*parseFloat(e))/100)}))}var X1=Hn(K1),J1=X1;function Q1(e,t){if("transparent"===t)return t;var r=Nn(t);return Ir(or({},r,{alpha:Zn(0,1,+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var ed=Hn(Q1),td=ed,N={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ct={app:"#F6F9FC",bar:N.lightest,content:N.lightest,preview:N.lightest,gridCellSize:10,hoverable:td(.9,N.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},it={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},rd={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ct.app,appContentBg:N.lightest,appPreviewBg:N.lightest,appBorderColor:N.border,appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:N.darkest,textInverseColor:N.lightest,textMutedColor:N.dark,barTextColor:N.mediumdark,barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:N.lightest,buttonBg:Ct.app,buttonBorder:N.medium,booleanBg:N.mediumlight,booleanSelectedBg:N.lightest,inputBg:N.lightest,inputBorder:N.border,inputTextColor:N.darkest,inputBorderRadius:4},On=rd,nd={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:N.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:it.fonts.base,fontCode:it.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:N.secondary,barSelectedColor:N.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:N.lightest,inputBorderRadius:4},ad=nd,{window:ha}=f1,od=e=>({color:e}),ld=e=>"string"==typeof e||(m1.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1),id=e=>!/(gradient|var|calc)/.test(e),sd=(e,t)=>"darken"===e?Ir(`${U1(1,t)}`,.95):"lighten"===e?Ir(`${Y1(1,t)}`,.95):t,cd=e=>t=>{if(!ld(t)||!id(t))return t;try{return sd(e,t)}catch{return t}},Fr=cd("lighten"),Is=()=>ha&&ha.matchMedia&&ha.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",qa={light:On,dark:ad,normal:On};function sn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}Is();var Ps={exports:{}};Ps.exports=function e(t,r,a){function n(l,i){if(!r[l]){if(!t[l]){var s="function"==typeof sn&&sn;if(!i&&s)return s(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[l]={exports:{}};t[l][0].call(u.exports,(function(e){return n(t[l][1][e]||e)}),u,u.exports,e,t,r,a)}return r[l].exports}for(var o="function"==typeof sn&&sn,l=0;l=0?(this.lastItem=this.list[t],this.list[t].val):void 0},a.prototype.set=function(e,t){var r;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(r=this.indexOf(e))>=0?(this.lastItem=this.list[r],this.list[r].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this)},a.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),(t=this.indexOf(e))>=0)return this.size--,this.list.splice(t,1)[0]},a.prototype.has=function(e){var t;return!(!this.lastItem||!this.isEqual(this.lastItem.key,e))||(t=this.indexOf(e))>=0&&(this.lastItem=this.list[t],!0)},a.prototype.forEach=function(e,t){var r;for(r=0;r=0&&(!(t=(n=e[r]).cacheItem.get(n.arg))||!t.size);r--)n.cacheItem.delete(n.arg)}function l(e,t){return e===t||e!=e&&t!=t}t.exports=function(e){var t=new a(!1),r=[];return function(l){var i=function(){var s,c,u,d=t,p=arguments.length-1,m=Array(p+1),h=!0;if((i.numArgs||0===i.numArgs)&&i.numArgs!==p+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(u=0;u0&&(m[p]={cacheItem:d,arg:arguments[p]},h?n(r,m):r.push(m),r.length>e&&o(r.shift())),i.wasMemoized=h,i.numArgs=p+1,c};return i.limit=e,i.wasMemoized=!1,i.cache=t,i.lru=r,i}}},{"map-or-similar":1}]},{},[3])(3);var ud=Ps.exports;const Yt=In(ud),{logger:dd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pd=_o({"../../node_modules/react-is/cjs/react-is.development.js"(e){!function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var m=e.type;switch(m){case c:case u:case n:case l:case o:case p:return m;default:var g=m&&m.$$typeof;switch(g){case s:case d:case f:case h:case i:return g;default:return t}}case a:return t}}}var x=c,w=u,k=s,S=i,C=r,A=d,_=n,O=f,R=h,M=a,T=l,L=o,j=p,F=!1;function N(e){return E(e)===u}e.AsyncMode=x,e.ConcurrentMode=w,e.ContextConsumer=k,e.ContextProvider=S,e.Element=C,e.ForwardRef=A,e.Fragment=_,e.Lazy=O,e.Memo=R,e.Portal=M,e.Profiler=T,e.StrictMode=L,e.Suspense=j,e.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||E(e)===c},e.isConcurrentMode=N,e.isContextConsumer=function(e){return E(e)===s},e.isContextProvider=function(e){return E(e)===i},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return E(e)===d},e.isFragment=function(e){return E(e)===n},e.isLazy=function(e){return E(e)===f},e.isMemo=function(e){return E(e)===h},e.isPortal=function(e){return E(e)===a},e.isProfiler=function(e){return E(e)===l},e.isStrictMode=function(e){return E(e)===o},e.isSuspense=function(e){return E(e)===p},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===l||e===o||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===i||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g)},e.typeOf=E}()}}),fd=_o({"../../node_modules/react-is/index.js"(e,t){t.exports=pd()}}),js=_o({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=fd(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function i(e){return r.isMemo(e)?o:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(m){var o=p(r);o&&o!==m&&e(t,o,a)}var l=c(r);u&&(l=l.concat(u(r)));for(var h=i(t),f=i(r),g=0;g0?pe(hr,--Ce):0,lr--,10===oe&&(lr=1,zn--),oe}function _e(){return oe=Ce2||jr(oe)>3?"":" "}function Td(e,t){for(;--t&&_e()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Kr(e,yn()+(t<6&&32==ut()&&32==_e()))}function Ga(e){for(;_e();)switch(oe){case e:return Ce;case 34:case 39:34!==e&&39!==e&&Ga(oe);break;case 40:41===e&&Ga(e);break;case 92:_e()}return Ce}function Rd(e,t){for(;_e()&&e+oe!==57&&(e+oe!==84||47!==ut()););return"/*"+Kr(t,Ce-1)+"*"+Vn(47===e?e:_e())}function Fd(e){for(;!jr(ut());)_e();return Kr(e,Ce)}function $d(e){return zs(En("",null,null,null,[""],e=Vs(e),0,[0],e))}function En(e,t,r,a,n,o,l,i,s){for(var c=0,u=0,d=l,p=0,m=0,h=0,f=1,g=1,b=1,y=0,v="",E=n,x=o,w=a,k=v;g;)switch(h=y,y=_e()){case 40:if(108!=h&&58==pe(k,d-1)){-1!=Wa(k+=Y(vn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=vn(y);break;case 9:case 10:case 13:case 32:k+=Od(h);break;case 92:k+=Td(yn()-1,7);continue;case 47:switch(ut()){case 42:case 47:cn(Dd(Rd(_e(),yn()),t,r),s);break;default:k+="/"}break;case 123*f:i[c++]=tt(k)*b;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(k=Y(k,/\f/g,"")),m>0&&tt(k)-d&&cn(m>32?jl(k+";",a,r,d-1):jl(Y(k," ","")+";",a,r,d-2),s);break;case 59:k+=";";default:if(cn(w=Pl(k,t,r,c,u,n,i,v,E=[],x=[],d),o),123===y)if(0===u)En(k,t,w,w,E,o,d,i,x);else switch(99===p&&110===pe(k,3)?100:p){case 100:case 108:case 109:case 115:En(e,w,w,a&&cn(Pl(e,w,w,0,0,n,i,v,n,E=[],d),x),n,x,d,i,a?E:x);break;default:En(k,w,w,w,[""],x,0,i,x)}}c=u=m=0,f=b=1,v=k="",d=l;break;case 58:d=1+tt(k),m=h;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==_d())continue;switch(k+=Vn(y),y*f){case 38:b=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(tt(k)-1)*b,b=1;break;case 64:45===ut()&&(k+=vn(_e())),p=ut(),u=d=tt(v=k+=Fd(yn())),y++;break;case 45:45===h&&2==tt(k)&&(f=0)}}return o}function Pl(e,t,r,a,n,o,l,i,s,c,u){for(var d=n-1,p=0===n?o:[""],m=$o(p),h=0,f=0,g=0;h0?p[b]+" "+y:Y(y,/&\f/g,p[b])))&&(s[g++]=v);return qn(e,t,r,0===n?Ro:i,s,c,u)}function Dd(e,t,r){return qn(e,t,r,To,Vn(kd()),Pr(e,2,-2),0)}function jl(e,t,r,a){return qn(e,t,r,Fo,Pr(e,0,a),Pr(e,a+1,-1),a)}function ar(e,t){for(var r="",a=$o(e),n=0;n-1},Vd=function(e){return function(t,r,a){if("rule"===t.type&&!e.compat){var n=t.value.match(/(:first|:nth|:nth-last)-child/g);if(n){for(var o=!!t.parent?t.parent.children:a,l=o.length-1;l>=0;l--){var i=o[l];if(i.line=0;r--)if(!qs(t[r]))return!0;return!1},Zl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},qd=function(e,t,r){qs(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Zl(e)):zd(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zl(e)))};function Us(e,t){switch(Ad(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Tn+e+be+e+e;case 6828:case 4268:return G+e+be+e+e;case 6165:return G+e+be+"flex-"+e+e;case 5187:return G+e+Y(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+be+"flex-$1$2")+e;case 5443:return G+e+be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return G+e+be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+be+Y(e,"shrink","negative")+e;case 5292:return G+e+be+Y(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Y(e,"-grow","")+G+e+be+Y(e,"grow","positive")+e;case 4554:return G+Y(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tt(e)-1-t>6)switch(pe(e,t+1)){case 109:if(45!==pe(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Tn+(108==pe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wa(e,"stretch")?Us(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pe(e,t+1))break;case 6444:switch(pe(e,tt(e)-3-(~Wa(e,"!important")&&10))){case 107:return Y(e,":",":"+G)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===pe(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+be+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+be+e+e}return e}var Ud=function(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case Fo:e.return=Us(e.value,e.length);break;case Ns:return ar([kr(e,{value:Y(e.value,"@","@"+G)})],a);case Ro:if(e.length)return Cd(e.props,(function(t){switch(Sd(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ar([kr(e,{props:[Y(t,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return ar([kr(e,{props:[Y(t,/:(plac\w+)/,":"+G+"input-$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,":"+Tn+"$1")]}),kr(e,{props:[Y(t,/:(plac\w+)/,be+"input-$1")]})],a)}return""}))}},Wd=[Ud],Gd=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||Wd;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var n,o={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++a,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Xd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vl="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Jd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Qd=/[A-Z]|^ms/g,Ws=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lo=function(e){return 45===e.charCodeAt(1)},zl=function(e){return null!=e&&"boolean"!=typeof e},ba=Oo((function(e){return Lo(e)?e:e.replace(Qd,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ws,(function(e,t,r){return rt={name:t,styles:r,next:rt},t}))}return 1===Xd[e]||Lo(e)||"number"!=typeof t||0===t?t:t+"px"};ql=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ul=["normal","none","initial","inherit","unset"],Wl=Rn,Gl=/^-ms-/,Yl=/-(.)/g,ya={},Rn=function(e,t){if("content"===e&&("string"!=typeof t||-1===Ul.indexOf(t)&&!ql.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Wl(e,t);return""!==r&&!Lo(e)&&-1!==e.indexOf("-")&&void 0===ya[e]&&(ya[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Gl,"ms-").replace(Yl,(function(e,t){return t.toUpperCase()}))+"?")),r};var ql,Ul,Wl,Gl,Yl,ya,Gs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Nr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Gs);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return rt={name:r.name,styles:r.styles,next:rt},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)rt={name:a.name,styles:a.styles,next:rt},a=a.next;var n=r.styles+";";return void 0!==r.map&&(n+=r.map),n}return ep(e,t,r);case"function":if(void 0!==e){var o=rt,l=r(e);return rt=o,Nr(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var i=[],s=r.replace(Ws,(function(e,t,r){var a="animation"+i.length;return i.push("const "+a+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+a+"}"}));i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}if(null==t)return r;var c=t[r];return void 0!==c?c:r}function ep(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n ({})}!");return r}if(null==t||"object"!=typeof t||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Ya({},e,t)},ap=Nl((function(e){return Nl((function(t){return np(e,t)}))})),Ks=function(e){var t=h.useContext(Ot);return e.theme!==t&&(t=ap(t)(e.theme)),h.createElement(Ot.Provider,{value:t},e.children)},Xl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jl="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",op=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},lp=Gn((function(e,t,r){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var n=e[Xl],o=[a],l="";"string"==typeof e.className?l=Do(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var i=ir(o,void 0,h.useContext(Ot));if(-1===i.name.indexOf("-")){var s=e[Jl];s&&(i=ir([i,"label:"+s+";"]))}l+=t.key+"-"+i.name;var c={};for(var u in e)tp.call(e,u)&&"css"!==u&&u!==Xl&&u!==Jl&&(c[u]=e[u]);return c.ref=r,c.className=l,h.createElement(h.Fragment,null,h.createElement(op,{cache:t,serialized:i,isStringTag:"string"==typeof n}),h.createElement(n,c))}));lp.displayName="EmotionCssPropInternal",$s(js());var ip={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Ql=!1,sp=Gn((function(e,t){!Ql&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ql=!0);var r=e.styles,a=ir([r],void 0,h.useContext(Ot)),n=h.useRef();return Ml((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,l=document.querySelector('style[data-emotion="'+e+" "+a.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==l&&(o=!0,l.setAttribute("data-emotion",e),r.hydrate([l])),n.current=[r,o],function(){r.flush()}}),[t]),Ml((function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==a.next&&Wn(t,a.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",a,r,!1)}}),[t,a.name]),null}));function Bo(){for(var e=arguments.length,t=new Array(e),r=0;r component."),l="",o)o[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=o}l&&(n&&(n+=" "),n+=l)}}return n};function up(e,t,r){var a=[],n=Do(e,a,r);return a.length<2?r:n+t(a)}var dp=function(e){var t=e.cache,r=e.serializedArr;return Co((function(){for(var e=0;e96?fp:mp},ri=function(e,t,r){var a;if(t){var n=t.shouldForwardProp;a=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof a&&r&&(a=e.__emotion_forwardProp),a},ni="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gp=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return Un(t,r,a),Co((function(){return Wn(t,r,a)})),null},hp=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var a,n,o=t.__emotion_real===t,l=o&&t.__emotion_base||t;void 0!==r&&(a=r.label,n=r.target);var i=ri(t,r,o),s=i||ti(l),c=!s("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&d.push("label:"+a+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{void 0===u[0][0]&&console.error(ni),d.push(u[0][0]);for(var p=u.length,m=1;m({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}})));Yt(1)((({color:e,background:t,typography:r})=>{let a=vp({typography:r});return{...a,body:{...a.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...a.hr,borderTop:`1px solid ${e.border}`}}}));var Ep={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},xp=br` from { transform: rotate(0deg); } @@ -51,7 +51,7 @@ const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJW path { fill: currentColor; } -`,Ee=({icon:e,useSymbol:t,...r})=>a.createElement(pu,{viewBox:"0 0 14 14",width:"14px",height:"14px",...r},t?a.createElement("use",{xlinkHref:`#icon--${e}`}):Wr[e]),xg=h.memo((function({icons:e=Object.keys(Wr)}){return a.createElement(pu,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map((e=>a.createElement("symbol",{id:`icon--${e}`,key:e},Wr[e]))))})),wg=0,Ag=e=>!(e.button!==wg||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey),Sg=(e,t)=>{Ag(e)&&(e.preventDefault(),t(e))},Cg=_.span((({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}),(({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{})),kg=_.a((({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:nr(.07,e.color.secondary),"svg path:not([fill])":{fill:nr(.07,e.color.secondary)}},"&:active":{color:nr(.1,e.color.secondary),"svg path:not([fill])":{fill:nr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}})),(({theme:e,secondary:t,tertiary:r})=>{let a;return t&&(a=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(a=[e.color.dark,e.color.darkest,e.textMutedColor]),a?{color:a[0],"svg path:not([fill])":{fill:a[0]},"&:hover":{color:a[1],"svg path:not([fill])":{fill:a[1]}},"&:active":{color:a[2],"svg path:not([fill])":{fill:a[2]}}}:{}}),(({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}),(({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{}),(({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{})),_t=({cancel:e,children:t,onClick:r,withArrow:n,containsIcon:o,className:l,...i})=>a.createElement(kg,{...i,onClick:r&&e?e=>Sg(e,r):r,className:l},a.createElement(Cg,{withArrow:n,containsIcon:o},t,n&&a.createElement(Ee,{icon:"arrowright"})));_t.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var _g=_.div((({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:"dark"===e.base&&e.color.darkest}}))),qt=[],fr=null,Og=h.lazy((async()=>{let{SyntaxHighlighter:e}=await Wt((async()=>{const{SyntaxHighlighter:e}=await import("./syntaxhighlighter-MJWPISIS-WoEhMjQR.js");return{SyntaxHighlighter:e}}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:t=>a.createElement(e,{...t})}})),Tg=h.lazy((async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Wt((()=>import("./syntaxhighlighter-MJWPISIS-WoEhMjQR.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),Wt((()=>import("./formatter-SWP5E3XI-CarBMRH9.js")),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)]);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:r=>a.createElement(e,{...r,formatter:t})}})),Qn=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},!1!==e.format?a.createElement(Tg,{...e}):a.createElement(Og,{...e}));Qn.registerLanguage=(...e)=>{null===fr?qt.push(e):fr.registerLanguage(...e)};var Rg=e=>"number"==typeof e?e:Number(e),Fg=_.div((({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Xa}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Xa}`]:{marginTop:0}}),(({theme:e,outer:t,col:r,row:a})=>{switch(!0){case!(!t||!r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!(!t||!a):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}})),$g=({col:e,row:t,outer:r,children:n,...o})=>{let l=Rg("number"!=typeof r&&r?e||t:r);return a.createElement(Fg,{col:e,row:t,outer:l,...o},n)},Dg=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),Lg=_.div(),Mg=_.div((({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}))),fu=({children:e,...t})=>{let[r,n]=h.Children.toArray(e);return a.createElement(Mg,{...t},a.createElement(Dg,null,r),n&&a.createElement(Lg,null,n))},Bg=_.div((({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`})));function Ig({scale:e,children:t}){let r=h.useRef(null),[n,o]=h.useState(0),l=h.useCallback((({height:t})=>{t&&o(t/e)}),[e]);return h.useEffect((()=>{r.current&&o(r.current.getBoundingClientRect().height)}),[e]),Zc({ref:r,onResize:l}),a.createElement(Bg,{scale:e,elementHeight:n},a.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Pg=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return a.createElement(a.Fragment,null,e)}},mu={Element:Ig,IFrame:Pg},{document:jg}=Bm,Ng=_.strong((({theme:e})=>({color:e.color.orange}))),Hg=_.strong((({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"}))),ki=_.em((({theme:e})=>({color:e.textMutedColor}))),Zg=/(Error): (.*)\n/,Vg=/at (?:(.*) )?\(?(.+)\)?/,zg=/([^@]+)?(?:\/<)?@(.+)?/,qg=/([^@]+)?@(.+)?/,gu=({error:e})=>{if(!e)return a.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return a.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}\n\n${t}`);let r=t.match(Zg);if(!r)return a.createElement(h.Fragment,null,t);let[,n,o]=r,l=t.split(/\n/).slice(1),[,...i]=l.map((e=>{let t=e.match(Vg)||e.match(zg)||e.match(qg);return t?{name:(t[1]||"").replace("/<",""),location:t[2].replace(jg.location.origin,"")}:null})).filter(Boolean);return a.createElement(h.Fragment,null,a.createElement("span",null,n),": ",a.createElement(Ng,null,o),a.createElement("br",null),i.map(((e,t)=>e.name?a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(Hg,null,e.name)," (",a.createElement(ki,null,e.location),")",a.createElement("br",null)):a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(ki,null,e.location),a.createElement("br",null)))))},hu=_.button((({small:e,theme:t})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?t.typography.size.s1:t.typography.size.s2-1}px`,fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}})),(({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}),(({containsIcon:e,small:t})=>e?{svg:{display:"block",margin:0},...t?{padding:10}:{padding:13}}:{}),(({theme:e,primary:t,secondary:r,gray:a})=>{let n;return a?n=e.color.mediumlight:r?n=e.color.secondary:t&&(n=e.color.primary),n?{background:n,color:a?e.color.darkest:e.color.lightest,"&:hover":{background:nr(.05,n)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${bt(n,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${bt(n,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,tertiary:t,inForm:r,small:a})=>t?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...r&&a?{padding:"10px 16px"}:{},"&:hover":{background:"light"===e.base?nr(.02,e.button.background):cg(.03,e.button.background),...r?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${bt(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{}),(({theme:e,outline:t})=>t?{boxShadow:`${xe(.8,e.color.defaultText)} 0 0 0 1px inset`,color:xe(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 2px inset`,color:xe(0,e.color.defaultText)}}:{}),(({theme:e,outline:t,primary:r})=>{let a=e.color.primary;return t&&r?{boxShadow:`${a} 0 0 0 1px inset`,color:a,"svg path:not([fill])":{fill:a},"&:hover":{boxShadow:`${a} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:a,boxShadow:`${a} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,outline:t,primary:r,secondary:a})=>{let n;return a?n=e.color.secondary:r&&(n=e.color.primary),t&&n?{boxShadow:`${n} 0 0 0 1px inset`,color:n,"svg path:not([fill])":{fill:n},"&:hover":{boxShadow:`${n} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:n,boxShadow:`${n} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.2)} 0 8px 18px 0px`}}:{}})),Ug=hu.withComponent("a"),bu=Object.assign(h.forwardRef((function({isLink:e,children:t,...r},n){return e?a.createElement(Ug,{...r,ref:n},t):a.createElement(hu,{...r,ref:n},t)})),{defaultProps:{isLink:!1}}),Wg=_.label((({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}))),Gg=_.span((({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}))),yu=({label:e,children:t,...r})=>a.createElement(Wg,{...r},e?a.createElement(Gg,null,a.createElement("span",null,e)):null,t);function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}yu.defaultProps={label:void 0};var _i=function(e,t){"function"!=typeof e?e.current=t:e(t)},Kg=function(e,t){var r=h.useRef();return h.useCallback((function(a){e.current=a,r.current&&_i(r.current,null),r.current=t,t&&_i(t,a)}),[t])},Xg=Kg,Jg=function(){},Qg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],eh=function(e,t){e.cacheMeasurements,e.maxRows,e.minRows;var r=e.onChange,a=void 0===r?Jg:r;e.onHeightChange;var n=Yg(e,Qg);n.value;var o=h.useRef(null),l=Xg(o,t);return h.useRef(0),h.useRef(),h.createElement("textarea",uo({},n,{onChange:a,ref:l}))},th=h.forwardRef(eh),rh={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ll=({theme:e})=>({...rh,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),ea=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},vu=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},ta=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}},nh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("input",{...n,ref:o})})))(ll,ea,vu,ta,{minHeight:32}),{displayName:"Input"}),ah=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("select",{...n,ref:o})})))(ll,ea,ta,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),oh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(th,{...n,ref:o})})))(ll,ea,vu,ta,(({height:e=400})=>({overflow:"visible",maxHeight:e}))),{displayName:"Textarea"}),lh=_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(bu,{...n,ref:o})})))(ea,ta,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),ih=Object.assign(h.forwardRef((function(e,t){return a.createElement(lh,{...e,tertiary:!0,small:!0,inForm:!0,ref:t})})),{displayName:"Button"}),ze=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:yu,Input:nh,Select:ah,Textarea:oh,Button:ih}),sh=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-DYG6ob1x.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltip}))))),ch=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(sh,{...e})),uh=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-DYG6ob1x.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltipPure}))))),Eu=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(uh,{...e})),dh=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),ph=_.span(),fh=_.div((({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}))),mh=_.div((({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}))),gh=_.div({padding:15,width:280,boxSizing:"border-box"}),xu=({title:e,desc:t,links:r})=>a.createElement(gh,null,a.createElement(mh,null,e&&a.createElement(dh,null,e),t&&a.createElement(ph,null,t)),r&&a.createElement(fh,null,r.map((({title:e,...t})=>a.createElement(_t,{...t,key:e},e)))));xu.defaultProps={title:null,desc:null,links:null};var hh=_.div((({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===e.base?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6}))),bh=({note:e,...t})=>a.createElement(hh,{...t},e),yh=_((({active:e,loading:t,disabled:r,...n})=>a.createElement("span",{...n})))((({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular})),(({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{}),(({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{}),(({disabled:e,theme:t})=>e?{color:xe(.7,t.color.defaultText)}:{})),vh=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Eh=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},(({isIndented:e})=>e?{marginLeft:24}:{})),xh=_.span((({theme:e})=>({fontSize:"11px",lineHeight:"14px"})),(({active:e,theme:t})=>e?{color:t.color.secondary}:{}),(({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{})),Oi=_.span((({active:e,theme:t})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:t.color.secondary}}:{}),(()=>({display:"flex",maxWidth:14}))),wh=_.a((({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}})),(({disabled:e})=>e?{cursor:"not-allowed"}:{})),Ah=Yt(100)(((e,t,r)=>{let a={};return e&&Object.assign(a,{onClick:e}),t&&Object.assign(a,{href:t}),r&&t&&Object.assign(a,{to:t,as:r}),a})),wu=({loading:e,left:t,title:r,center:n,right:o,icon:l,active:i,disabled:s,isIndented:c,href:u,onClick:d,LinkWrapper:p,...m})=>{let h=Ah(d,u,p),f={active:i,disabled:s},g="string"==typeof l&&Wr[l];return a.createElement(wh,{...f,...m,...h},l?a.createElement(Oi,{...f},g?a.createElement(Ee,{icon:l}):l):t&&a.createElement(Oi,{...f},t),r||n?a.createElement(Eh,{isIndented:!t&&!l&&c},r&&a.createElement(yh,{...f,loading:e},r),n&&a.createElement(xh,{...f},n)):null,o&&a.createElement(vh,{...f},o))};wu.defaultProps={loading:!1,left:null,title:a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var il=wu,Sh=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:496},(({theme:e})=>({borderRadius:e.appBorderRadius}))),Ch=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:o,...l}=e,{title:i,href:s,active:c}=l,u=h.useCallback((e=>{r(e,l)}),[r]),d=!!r;return a.createElement(il,{title:i,active:c,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:o,...l,...d?{onClick:u}:{}})},sl=({links:e,LinkWrapper:t})=>{let r=e.some((e=>e.left||e.icon));return a.createElement(Sh,null,e.map((({isGatsby:e,...n})=>a.createElement(Ch,{key:n.id,LinkWrapper:e?t:null,isIndented:r,...n}))))};sl.defaultProps={LinkWrapper:il.defaultProps.LinkWrapper};var cl=a.forwardRef((({children:e,...t},r)=>null!=t.href?a.createElement("a",{ref:r,...t},e):a.createElement("button",{ref:r,type:"button",...t},e)));cl.displayName="ButtonOrLink";var rn=_(cl,{shouldForwardProp:Xs})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.color.secondary}})),(({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent"}));rn.displayName="TabButton";var Ut=_(cl,{shouldForwardProp:Xs})((()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}})),(({active:e,theme:t})=>e?{backgroundColor:t.background.hoverable,color:t.barSelectedColor}:{}),(({disabled:e,theme:t})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:xe(.88,t.color.secondary),color:t.barHoverColor},"&:focus-visible":{outline:Xn},"&:focus:not(:focus-visible)":{outline:"none"}}));Ut.displayName="IconButton";var kh=_.div((({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`}))),_h=_.div((()=>({marginTop:6,padding:7,height:28}))),Au=()=>a.createElement(_h,null,a.createElement(kh,null)),po=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},(({scrollable:e})=>e?{flexShrink:0}:{}),(({left:e})=>e?{"& > *":{marginLeft:4}}:{}),(({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{}));po.displayName="Side";var Oh=({children:e,className:t,scrollable:r})=>r?a.createElement(zo,{vertical:!1,className:t},e):a.createElement("div",{className:t},e),ul=_(Oh)((({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"})),(({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{}));ul.displayName="Bar";var Th=_.div((({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""}))),ra=({children:e,backgroundColor:t,...r})=>{let[n,o]=h.Children.toArray(e);return a.createElement(ul,{...r},a.createElement(Th,{bgColor:t},a.createElement(po,{scrollable:r.scrollable,left:!0},n),o?a.createElement(po,{right:!0},o):null))};ra.displayName="FlexBar";var Su=_.div((({active:e})=>e?{display:"block"}:{display:"none"})),Ti=e=>h.Children.toArray(e).map((({props:{title:e,id:t,color:r,children:n}})=>{let o=Array.isArray(n)?n[0]:n;return{title:e,id:t,...r?{color:r}:{},render:"function"==typeof o?o:({active:e})=>a.createElement(Su,{active:e,role:"tabpanel"},o)}})),Rh=_.span((({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"}))),Fh=_(rn)((({active:e,theme:t,preActive:r})=>`\n color: ${r||e?t.color.secondary:t.color.mediumdark};\n &:hover {\n color: ${t.color.secondary};\n .addon-collapsible-icon {\n color: ${t.color.secondary};\n }\n }\n `));function $h(e){let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=Zc({ref:t}),[l,i]=h.useState(e),[s,c]=h.useState([]),u=h.useRef(e),d=h.useCallback((({menuName:e,actions:t})=>{let o=s.some((({active:e})=>e)),[l,i]=h.useState(!1);return a.createElement(a.Fragment,null,a.createElement(Lm,{interactive:!0,visible:l,onVisibleChange:i,placement:"bottom",delayHide:100,tooltip:a.createElement(sl,{links:s.map((({title:e,id:r,color:a,active:n})=>({id:r,title:e,color:a,active:n,onClick:e=>{e.preventDefault(),t.onSelect(r)}})))})},a.createElement(Fh,{ref:r,active:o,preActive:l,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},e,a.createElement(Rh,{className:"addon-collapsible-icon",isActive:o||l}))),s.map((({title:e,id:t,color:r},o)=>{let l=`index-${o}`;return a.createElement(rn,{id:`tabbutton-${ys(t)??l}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:e=>{n.current.set(t,e)},className:"tabbutton",type:"button",key:t,textColor:r,role:"tab"},e)})))}),[s]),p=h.useCallback((()=>{if(!t.current||!r.current)return;let{x:a,width:o}=t.current.getBoundingClientRect(),{width:d}=r.current.getBoundingClientRect(),p=s.length?a+o-d:a+o,m=[],h=0,f=e.filter((e=>{let{id:t}=e,r=n.current.get(t),{width:o=0}=(null==r?void 0:r.getBoundingClientRect())||{},l=a+h+o>p;return(!l||!r)&&m.push(e),h+=o,l}));(m.length!==l.length||u.current!==e)&&(i(m),c(f),u.current=e)}),[s.length,e,l]);return h.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:s,AddonTab:d}}var Dh="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Lh=_.div((({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}),(({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"})),dl=_.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});dl.displayName="TabBar";var Mh=_.div({display:"block",position:"relative"},(({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content})),(({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{}),(({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${Dh}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{})),Bh=({active:e,render:t,children:r})=>a.createElement(Su,{active:e},t?t():r),na=h.memo((({children:e,selected:t,actions:r,absolute:n,bordered:o,tools:l,backgroundColor:i,id:s,menuName:c})=>{let u=Ti(e).map((e=>e.id)),d=h.useMemo((()=>Ti(e).map(((e,r)=>({...e,active:t?e.id===t:0===r})))),[t,...u]),{visibleList:p,tabBarRef:m,tabRefs:f,AddonTab:g}=$h(d);return d.length?a.createElement(Lh,{absolute:n,bordered:o,id:s},a.createElement(ra,{scrollable:!1,border:!0,backgroundColor:i},a.createElement(dl,{style:{whiteSpace:"normal"},ref:m,role:"tablist"},p.map((({title:e,id:t,active:n,color:o},l)=>{let i=`index-${l}`;return a.createElement(rn,{id:`tabbutton-${ys(t)??i}`,ref:e=>{f.current.set(t,e)},className:"tabbutton "+(n?"tabbutton-active":""),type:"button",key:t,active:n,textColor:o,onClick:e=>{e.preventDefault(),r.onSelect(t)},role:"tab"},"function"==typeof e?a.createElement("title",null):e)})),a.createElement(g,{menuName:c,actions:r})),l),a.createElement(Mh,{id:"panel-tab-content",bordered:o,absolute:n},d.map((({id:e,active:t,render:r})=>a.createElement(r,{key:e,active:t},null))))):a.createElement(fu,null,a.createElement(h.Fragment,{key:"title"},"Nothing found"))}));na.displayName="Tabs",na.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var Cu=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:e=>this.setState({selected:e})},this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:l}=this.state;return a.createElement(na,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Cu.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var pl=_.span((({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginTop:10,marginLeft:6,marginRight:2})),(({force:e})=>e?{}:{"& + &":{display:"none"}}));pl.displayName="Separator";var Ih=e=>e.reduce(((e,t,r)=>t?a.createElement(h.Fragment,{key:t.id||t.key||`f-${r}`},e,r>0?a.createElement(pl,{key:`s-${r}`}):null,t.render()||t):e),null),Ph=e=>{let t=h.useRef();return h.useEffect((()=>{t.current=e}),[e]),t.current},jh=(e,t)=>{let r=Ph(t);return e?t:r},Nh=({active:e,children:t})=>a.createElement("div",{hidden:!e},jh(e,t)),Hh=({alt:e,...t})=>a.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?a.createElement("title",null,e):null,a.createElement("defs",null,a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),a.createElement("mask",{id:"b",fill:"#fff"},a.createElement("use",{xlinkHref:"#a"})),a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),Zh=({...e})=>a.createElement("svg",{viewBox:"0 0 64 64",...e},a.createElement("title",null,"Storybook icon"),a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),Vh=br` +`,Ee=({icon:e,useSymbol:t,...r})=>a.createElement(pu,{viewBox:"0 0 14 14",width:"14px",height:"14px",...r},t?a.createElement("use",{xlinkHref:`#icon--${e}`}):Wr[e]),xg=h.memo((function({icons:e=Object.keys(Wr)}){return a.createElement(pu,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map((e=>a.createElement("symbol",{id:`icon--${e}`,key:e},Wr[e]))))})),wg=0,Ag=e=>!(e.button!==wg||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey),Sg=(e,t)=>{Ag(e)&&(e.preventDefault(),t(e))},Cg=_.span((({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}),(({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{})),kg=_.a((({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:nr(.07,e.color.secondary),"svg path:not([fill])":{fill:nr(.07,e.color.secondary)}},"&:active":{color:nr(.1,e.color.secondary),"svg path:not([fill])":{fill:nr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}})),(({theme:e,secondary:t,tertiary:r})=>{let a;return t&&(a=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(a=[e.color.dark,e.color.darkest,e.textMutedColor]),a?{color:a[0],"svg path:not([fill])":{fill:a[0]},"&:hover":{color:a[1],"svg path:not([fill])":{fill:a[1]}},"&:active":{color:a[2],"svg path:not([fill])":{fill:a[2]}}}:{}}),(({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}),(({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{}),(({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{})),_t=({cancel:e,children:t,onClick:r,withArrow:n,containsIcon:o,className:l,...i})=>a.createElement(kg,{...i,onClick:r&&e?e=>Sg(e,r):r,className:l},a.createElement(Cg,{withArrow:n,containsIcon:o},t,n&&a.createElement(Ee,{icon:"arrowright"})));_t.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var _g=_.div((({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:"dark"===e.base&&e.color.darkest}}))),qt=[],fr=null,Og=h.lazy((async()=>{let{SyntaxHighlighter:e}=await Wt((async()=>{const{SyntaxHighlighter:e}=await import("./syntaxhighlighter-MJWPISIS-76l64ZtK.js");return{SyntaxHighlighter:e}}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:t=>a.createElement(e,{...t})}})),Tg=h.lazy((async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Wt((()=>import("./syntaxhighlighter-MJWPISIS-76l64ZtK.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),Wt((()=>import("./formatter-SWP5E3XI-C6ixPNGK.js")),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)]);return qt.length>0&&(qt.forEach((t=>{e.registerLanguage(...t)})),qt=[]),null===fr&&(fr=e),{default:r=>a.createElement(e,{...r,formatter:t})}})),Qn=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},!1!==e.format?a.createElement(Tg,{...e}):a.createElement(Og,{...e}));Qn.registerLanguage=(...e)=>{null===fr?qt.push(e):fr.registerLanguage(...e)};var Rg=e=>"number"==typeof e?e:Number(e),Fg=_.div((({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Xa}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Xa}`]:{marginTop:0}}),(({theme:e,outer:t,col:r,row:a})=>{switch(!0){case!(!t||!r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!(!t||!a):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}})),$g=({col:e,row:t,outer:r,children:n,...o})=>{let l=Rg("number"!=typeof r&&r?e||t:r);return a.createElement(Fg,{col:e,row:t,outer:l,...o},n)},Dg=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),Lg=_.div(),Mg=_.div((({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}))),fu=({children:e,...t})=>{let[r,n]=h.Children.toArray(e);return a.createElement(Mg,{...t},a.createElement(Dg,null,r),n&&a.createElement(Lg,null,n))},Bg=_.div((({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`})));function Ig({scale:e,children:t}){let r=h.useRef(null),[n,o]=h.useState(0),l=h.useCallback((({height:t})=>{t&&o(t/e)}),[e]);return h.useEffect((()=>{r.current&&o(r.current.getBoundingClientRect().height)}),[e]),Zc({ref:r,onResize:l}),a.createElement(Bg,{scale:e,elementHeight:n},a.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Pg=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:100*e+"%",height:100*e+"%",transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return a.createElement(a.Fragment,null,e)}},mu={Element:Ig,IFrame:Pg},{document:jg}=Bm,Ng=_.strong((({theme:e})=>({color:e.color.orange}))),Hg=_.strong((({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"}))),ki=_.em((({theme:e})=>({color:e.textMutedColor}))),Zg=/(Error): (.*)\n/,Vg=/at (?:(.*) )?\(?(.+)\)?/,zg=/([^@]+)?(?:\/<)?@(.+)?/,qg=/([^@]+)?@(.+)?/,gu=({error:e})=>{if(!e)return a.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return a.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}\n\n${t}`);let r=t.match(Zg);if(!r)return a.createElement(h.Fragment,null,t);let[,n,o]=r,l=t.split(/\n/).slice(1),[,...i]=l.map((e=>{let t=e.match(Vg)||e.match(zg)||e.match(qg);return t?{name:(t[1]||"").replace("/<",""),location:t[2].replace(jg.location.origin,"")}:null})).filter(Boolean);return a.createElement(h.Fragment,null,a.createElement("span",null,n),": ",a.createElement(Ng,null,o),a.createElement("br",null),i.map(((e,t)=>e.name?a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(Hg,null,e.name)," (",a.createElement(ki,null,e.location),")",a.createElement("br",null)):a.createElement(h.Fragment,{key:t}," ","at ",a.createElement(ki,null,e.location),a.createElement("br",null)))))},hu=_.button((({small:e,theme:t})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?t.typography.size.s1:t.typography.size.s2-1}px`,fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}})),(({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}),(({containsIcon:e,small:t})=>e?{svg:{display:"block",margin:0},...t?{padding:10}:{padding:13}}:{}),(({theme:e,primary:t,secondary:r,gray:a})=>{let n;return a?n=e.color.mediumlight:r?n=e.color.secondary:t&&(n=e.color.primary),n?{background:n,color:a?e.color.darkest:e.color.lightest,"&:hover":{background:nr(.05,n)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${bt(n,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${bt(n,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,tertiary:t,inForm:r,small:a})=>t?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...r&&a?{padding:"10px 16px"}:{},"&:hover":{background:"light"===e.base?nr(.02,e.button.background):cg(.03,e.button.background),...r?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${bt(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{}),(({theme:e,outline:t})=>t?{boxShadow:`${xe(.8,e.color.defaultText)} 0 0 0 1px inset`,color:xe(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${xe(.5,e.color.defaultText)} 0 0 0 2px inset`,color:xe(0,e.color.defaultText)}}:{}),(({theme:e,outline:t,primary:r})=>{let a=e.color.primary;return t&&r?{boxShadow:`${a} 0 0 0 1px inset`,color:a,"svg path:not([fill])":{fill:a},"&:hover":{boxShadow:`${a} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:a,boxShadow:`${a} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${a} 0 0 0 1px inset, ${bt(a,.2)} 0 8px 18px 0px`}}:{}}),(({theme:e,outline:t,primary:r,secondary:a})=>{let n;return a?n=e.color.secondary:r&&(n=e.color.primary),t&&n?{boxShadow:`${n} 0 0 0 1px inset`,color:n,"svg path:not([fill])":{fill:n},"&:hover":{boxShadow:`${n} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:n,boxShadow:`${n} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${n} 0 0 0 1px inset, ${bt(n,.2)} 0 8px 18px 0px`}}:{}})),Ug=hu.withComponent("a"),bu=Object.assign(h.forwardRef((function({isLink:e,children:t,...r},n){return e?a.createElement(Ug,{...r,ref:n},t):a.createElement(hu,{...r,ref:n},t)})),{defaultProps:{isLink:!1}}),Wg=_.label((({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}))),Gg=_.span((({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}))),yu=({label:e,children:t,...r})=>a.createElement(Wg,{...r},e?a.createElement(Gg,null,a.createElement("span",null,e)):null,t);function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}yu.defaultProps={label:void 0};var _i=function(e,t){"function"!=typeof e?e.current=t:e(t)},Kg=function(e,t){var r=h.useRef();return h.useCallback((function(a){e.current=a,r.current&&_i(r.current,null),r.current=t,t&&_i(t,a)}),[t])},Xg=Kg,Jg=function(){},Qg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],eh=function(e,t){e.cacheMeasurements,e.maxRows,e.minRows;var r=e.onChange,a=void 0===r?Jg:r;e.onHeightChange;var n=Yg(e,Qg);n.value;var o=h.useRef(null),l=Xg(o,t);return h.useRef(0),h.useRef(),h.createElement("textarea",uo({},n,{onChange:a,ref:l}))},th=h.forwardRef(eh),rh={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ll=({theme:e})=>({...rh,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),ea=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},vu=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},ta=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}},nh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("input",{...n,ref:o})})))(ll,ea,vu,ta,{minHeight:32}),{displayName:"Input"}),ah=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement("select",{...n,ref:o})})))(ll,ea,ta,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),oh=Object.assign(_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(th,{...n,ref:o})})))(ll,ea,vu,ta,(({height:e=400})=>({overflow:"visible",maxHeight:e}))),{displayName:"Textarea"}),lh=_(h.forwardRef((function({size:e,valid:t,align:r,...n},o){return a.createElement(bu,{...n,ref:o})})))(ea,ta,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),ih=Object.assign(h.forwardRef((function(e,t){return a.createElement(lh,{...e,tertiary:!0,small:!0,inForm:!0,ref:t})})),{displayName:"Button"}),ze=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:yu,Input:nh,Select:ah,Textarea:oh,Button:ih}),sh=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-DanSchpU.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltip}))))),ch=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(sh,{...e})),uh=h.lazy((()=>Wt((()=>import("./WithTooltip-V3YHNWJZ-DanSchpU.js")),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then((e=>({default:e.WithTooltipPure}))))),Eu=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(uh,{...e})),dh=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),ph=_.span(),fh=_.div((({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}))),mh=_.div((({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}))),gh=_.div({padding:15,width:280,boxSizing:"border-box"}),xu=({title:e,desc:t,links:r})=>a.createElement(gh,null,a.createElement(mh,null,e&&a.createElement(dh,null,e),t&&a.createElement(ph,null,t)),r&&a.createElement(fh,null,r.map((({title:e,...t})=>a.createElement(_t,{...t,key:e},e)))));xu.defaultProps={title:null,desc:null,links:null};var hh=_.div((({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===e.base?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6}))),bh=({note:e,...t})=>a.createElement(hh,{...t},e),yh=_((({active:e,loading:t,disabled:r,...n})=>a.createElement("span",{...n})))((({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular})),(({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{}),(({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{}),(({disabled:e,theme:t})=>e?{color:xe(.7,t.color.defaultText)}:{})),vh=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Eh=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},(({isIndented:e})=>e?{marginLeft:24}:{})),xh=_.span((({theme:e})=>({fontSize:"11px",lineHeight:"14px"})),(({active:e,theme:t})=>e?{color:t.color.secondary}:{}),(({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{})),Oi=_.span((({active:e,theme:t})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:t.color.secondary}}:{}),(()=>({display:"flex",maxWidth:14}))),wh=_.a((({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}})),(({disabled:e})=>e?{cursor:"not-allowed"}:{})),Ah=Yt(100)(((e,t,r)=>{let a={};return e&&Object.assign(a,{onClick:e}),t&&Object.assign(a,{href:t}),r&&t&&Object.assign(a,{to:t,as:r}),a})),wu=({loading:e,left:t,title:r,center:n,right:o,icon:l,active:i,disabled:s,isIndented:c,href:u,onClick:d,LinkWrapper:p,...m})=>{let h=Ah(d,u,p),f={active:i,disabled:s},g="string"==typeof l&&Wr[l];return a.createElement(wh,{...f,...m,...h},l?a.createElement(Oi,{...f},g?a.createElement(Ee,{icon:l}):l):t&&a.createElement(Oi,{...f},t),r||n?a.createElement(Eh,{isIndented:!t&&!l&&c},r&&a.createElement(yh,{...f,loading:e},r),n&&a.createElement(xh,{...f},n)):null,o&&a.createElement(vh,{...f},o))};wu.defaultProps={loading:!1,left:null,title:a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var il=wu,Sh=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:496},(({theme:e})=>({borderRadius:e.appBorderRadius}))),Ch=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:o,...l}=e,{title:i,href:s,active:c}=l,u=h.useCallback((e=>{r(e,l)}),[r]),d=!!r;return a.createElement(il,{title:i,active:c,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:o,...l,...d?{onClick:u}:{}})},sl=({links:e,LinkWrapper:t})=>{let r=e.some((e=>e.left||e.icon));return a.createElement(Sh,null,e.map((({isGatsby:e,...n})=>a.createElement(Ch,{key:n.id,LinkWrapper:e?t:null,isIndented:r,...n}))))};sl.defaultProps={LinkWrapper:il.defaultProps.LinkWrapper};var cl=a.forwardRef((({children:e,...t},r)=>null!=t.href?a.createElement("a",{ref:r,...t},e):a.createElement("button",{ref:r,type:"button",...t},e)));cl.displayName="ButtonOrLink";var rn=_(cl,{shouldForwardProp:Xs})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.color.secondary}})),(({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent"}));rn.displayName="TabButton";var Ut=_(cl,{shouldForwardProp:Xs})((()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}})),(({active:e,theme:t})=>e?{backgroundColor:t.background.hoverable,color:t.barSelectedColor}:{}),(({disabled:e,theme:t})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:xe(.88,t.color.secondary),color:t.barHoverColor},"&:focus-visible":{outline:Xn},"&:focus:not(:focus-visible)":{outline:"none"}}));Ut.displayName="IconButton";var kh=_.div((({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`}))),_h=_.div((()=>({marginTop:6,padding:7,height:28}))),Au=()=>a.createElement(_h,null,a.createElement(kh,null)),po=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},(({scrollable:e})=>e?{flexShrink:0}:{}),(({left:e})=>e?{"& > *":{marginLeft:4}}:{}),(({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{}));po.displayName="Side";var Oh=({children:e,className:t,scrollable:r})=>r?a.createElement(zo,{vertical:!1,className:t},e):a.createElement("div",{className:t},e),ul=_(Oh)((({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"})),(({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{}));ul.displayName="Bar";var Th=_.div((({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""}))),ra=({children:e,backgroundColor:t,...r})=>{let[n,o]=h.Children.toArray(e);return a.createElement(ul,{...r},a.createElement(Th,{bgColor:t},a.createElement(po,{scrollable:r.scrollable,left:!0},n),o?a.createElement(po,{right:!0},o):null))};ra.displayName="FlexBar";var Su=_.div((({active:e})=>e?{display:"block"}:{display:"none"})),Ti=e=>h.Children.toArray(e).map((({props:{title:e,id:t,color:r,children:n}})=>{let o=Array.isArray(n)?n[0]:n;return{title:e,id:t,...r?{color:r}:{},render:"function"==typeof o?o:({active:e})=>a.createElement(Su,{active:e,role:"tabpanel"},o)}})),Rh=_.span((({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"}))),Fh=_(rn)((({active:e,theme:t,preActive:r})=>`\n color: ${r||e?t.color.secondary:t.color.mediumdark};\n &:hover {\n color: ${t.color.secondary};\n .addon-collapsible-icon {\n color: ${t.color.secondary};\n }\n }\n `));function $h(e){let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=Zc({ref:t}),[l,i]=h.useState(e),[s,c]=h.useState([]),u=h.useRef(e),d=h.useCallback((({menuName:e,actions:t})=>{let o=s.some((({active:e})=>e)),[l,i]=h.useState(!1);return a.createElement(a.Fragment,null,a.createElement(Lm,{interactive:!0,visible:l,onVisibleChange:i,placement:"bottom",delayHide:100,tooltip:a.createElement(sl,{links:s.map((({title:e,id:r,color:a,active:n})=>({id:r,title:e,color:a,active:n,onClick:e=>{e.preventDefault(),t.onSelect(r)}})))})},a.createElement(Fh,{ref:r,active:o,preActive:l,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},e,a.createElement(Rh,{className:"addon-collapsible-icon",isActive:o||l}))),s.map((({title:e,id:t,color:r},o)=>{let l=`index-${o}`;return a.createElement(rn,{id:`tabbutton-${ys(t)??l}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:e=>{n.current.set(t,e)},className:"tabbutton",type:"button",key:t,textColor:r,role:"tab"},e)})))}),[s]),p=h.useCallback((()=>{if(!t.current||!r.current)return;let{x:a,width:o}=t.current.getBoundingClientRect(),{width:d}=r.current.getBoundingClientRect(),p=s.length?a+o-d:a+o,m=[],h=0,f=e.filter((e=>{let{id:t}=e,r=n.current.get(t),{width:o=0}=(null==r?void 0:r.getBoundingClientRect())||{},l=a+h+o>p;return(!l||!r)&&m.push(e),h+=o,l}));(m.length!==l.length||u.current!==e)&&(i(m),c(f),u.current=e)}),[s.length,e,l]);return h.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:s,AddonTab:d}}var Dh="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Lh=_.div((({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}),(({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"})),dl=_.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});dl.displayName="TabBar";var Mh=_.div({display:"block",position:"relative"},(({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content})),(({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{}),(({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${Dh}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{})),Bh=({active:e,render:t,children:r})=>a.createElement(Su,{active:e},t?t():r),na=h.memo((({children:e,selected:t,actions:r,absolute:n,bordered:o,tools:l,backgroundColor:i,id:s,menuName:c})=>{let u=Ti(e).map((e=>e.id)),d=h.useMemo((()=>Ti(e).map(((e,r)=>({...e,active:t?e.id===t:0===r})))),[t,...u]),{visibleList:p,tabBarRef:m,tabRefs:f,AddonTab:g}=$h(d);return d.length?a.createElement(Lh,{absolute:n,bordered:o,id:s},a.createElement(ra,{scrollable:!1,border:!0,backgroundColor:i},a.createElement(dl,{style:{whiteSpace:"normal"},ref:m,role:"tablist"},p.map((({title:e,id:t,active:n,color:o},l)=>{let i=`index-${l}`;return a.createElement(rn,{id:`tabbutton-${ys(t)??i}`,ref:e=>{f.current.set(t,e)},className:"tabbutton "+(n?"tabbutton-active":""),type:"button",key:t,active:n,textColor:o,onClick:e=>{e.preventDefault(),r.onSelect(t)},role:"tab"},"function"==typeof e?a.createElement("title",null):e)})),a.createElement(g,{menuName:c,actions:r})),l),a.createElement(Mh,{id:"panel-tab-content",bordered:o,absolute:n},d.map((({id:e,active:t,render:r})=>a.createElement(r,{key:e,active:t},null))))):a.createElement(fu,null,a.createElement(h.Fragment,{key:"title"},"Nothing found"))}));na.displayName="Tabs",na.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var Cu=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:e=>this.setState({selected:e})},this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:l}=this.state;return a.createElement(na,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Cu.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var pl=_.span((({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginTop:10,marginLeft:6,marginRight:2})),(({force:e})=>e?{}:{"& + &":{display:"none"}}));pl.displayName="Separator";var Ih=e=>e.reduce(((e,t,r)=>t?a.createElement(h.Fragment,{key:t.id||t.key||`f-${r}`},e,r>0?a.createElement(pl,{key:`s-${r}`}):null,t.render()||t):e),null),Ph=e=>{let t=h.useRef();return h.useEffect((()=>{t.current=e}),[e]),t.current},jh=(e,t)=>{let r=Ph(t);return e?t:r},Nh=({active:e,children:t})=>a.createElement("div",{hidden:!e},jh(e,t)),Hh=({alt:e,...t})=>a.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?a.createElement("title",null,e):null,a.createElement("defs",null,a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),a.createElement("mask",{id:"b",fill:"#fff"},a.createElement("use",{xlinkHref:"#a"})),a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),Zh=({...e})=>a.createElement("svg",{viewBox:"0 0 64 64",...e},a.createElement("title",null,"Storybook icon"),a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),Vh=br` from { transform: rotate(0deg); } @@ -76,7 +76,7 @@ const __vite__mapDeps=(e,t=__vite__mapDeps,r=t.f||(t.f=["./syntaxhighlighter-MJW overflow: hidden; font-family: ${it.fonts.mono}; font-size: ${it.size.s2-1}px; -`,Jh=({code:e,...t})=>a.createElement(Xh,{id:"clipboard-code",...t},e),Ou=du,Tu={};Object.keys(du).forEach((e=>{Tu[e]=h.forwardRef(((t,r)=>h.createElement(e,{...t,ref:r})))}));const Qh=Object.freeze(Object.defineProperty({__proto__:null,A:Wc,ActionBar:Zo,AddonPanel:Nh,Badge:Eg,Bar:ul,Blockquote:Gc,Button:bu,ClipboardCode:Jh,Code:rl,DL:Kc,Div:Yc,DocumentWrapper:_g,ErrorFormatter:gu,FlexBar:ra,Form:ze,H1:Xc,H2:nl,H3:al,H4:Jc,H5:Qc,H6:eu,HR:tu,IconButton:Ut,IconButtonSkeleton:Au,Icons:Ee,Img:ru,LI:nu,Link:_t,ListItem:il,Loader:ku,OL:au,P:ou,Placeholder:fu,Pre:lu,ResetWrapper:ol,ScrollArea:zo,Separator:pl,Spaced:$g,Span:iu,StorybookIcon:Zh,StorybookLogo:Hh,Symbols:xg,SyntaxHighlighter:Qn,TT:cu,TabBar:dl,TabButton:rn,TabWrapper:Bh,Table:su,Tabs:na,TabsState:Cu,TooltipLinkList:sl,TooltipMessage:xu,TooltipNote:bh,UL:uu,WithTooltip:ch,WithTooltipPure:Eu,Zoom:mu,codeCommon:Et,components:Ou,createCopyToClipboardFunction:Oc,getStoryHref:_u,icons:Wr,interleaveSeparators:Ih,nameSpaceClassNames:ee,resetComponents:Tu,withReset:re},Symbol.toStringTag,{value:"Module"}));function eb(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}function tb(e,t,r){if(z0())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var n=new(e.bind.apply(e,a));return r&&vs(n,r.prototype),n}function fo(e){var t="function"==typeof Map?new Map:void 0;return fo=function(e){if(null===e||!eb(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return tb(e,arguments,q0(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),vs(r,e)},fo(e)}var ct=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,Z0(r)}return V0(t,e),t}(fo(Error));function _a(e){return Math.round(255*e)}function rb(e,t,r){return _a(e)+","+_a(t)+","+_a(r)}function Gr(e,t,r,a){if(void 0===a&&(a=rb),0===t)return a(r,r,r);var n=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,l=o*(1-Math.abs(n%2-1)),i=0,s=0,c=0;n>=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var $i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nb(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return $i[t]?"#"+$i[t]:e}var ab=/^#[a-fA-F0-9]{6}$/,ob=/^#[a-fA-F0-9]{8}$/,lb=/^#[a-fA-F0-9]{3}$/,ib=/^#[a-fA-F0-9]{4}$/,Oa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,sb=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cb=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ub=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function mr(e){if("string"!=typeof e)throw new ct(3);var t=nb(e);if(t.match(ab))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ob)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(lb))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ib)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=Oa.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=sb.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=cb.exec(t);if(l){var i="rgb("+Gr(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=Oa.exec(i);if(!s)throw new ct(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=ub.exec(t.substring(0,50));if(c){var u="rgb("+Gr(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Oa.exec(u);if(!d)throw new ct(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new ct(5)}function db(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?Mn(e,t,r):"rgba("+Gr(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?Mn(e.hue,e.saturation,e.lightness):"rgba("+Gr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ct(2)}function go(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return mo("#"+jt(e)+jt(t)+jt(r));if("object"==typeof e&&void 0===t&&void 0===r)return mo("#"+jt(e.red)+jt(e.green)+jt(e.blue));throw new ct(6)}function at(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=mr(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?go(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?go(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ct(7)}var hb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},bb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},yb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},vb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ft(e){if("object"!=typeof e)throw new ct(8);if(bb(e))return at(e);if(hb(e))return go(e);if(vb(e))return gb(e);if(yb(e))return mb(e);throw new ct(8)}function Ru(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ru(e,t,a)}}function Fe(e){return Ru(e,e.length,[])}function Eb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{hue:r.hue+parseFloat(e)}))}function vr(e,t,r){return Math.max(e,Math.min(t,r))}function xb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness-parseFloat(e))}))}Fe(Eb);var wb=Fe(xb),et=wb;function Ab(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation-parseFloat(e))}))}function Sb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness+parseFloat(e))}))}Fe(Ab);var Cb=Fe(Sb),Nt=Cb;function kb(e,t,r){if("transparent"===t)return r;if("transparent"===r)return t;if(0===e)return r;var a=mr(t),n=Be({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),o=mr(r),l=Be({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=n.alpha-l.alpha,s=2*parseFloat(e)-1,c=((s*i==-1?s:s+i)/(1+s*i)+1)/2,u=1-c;return at({red:Math.floor(n.red*c+l.red*u),green:Math.floor(n.green*c+l.green*u),blue:Math.floor(n.blue*c+l.blue*u),alpha:n.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var _b=Fe(kb),Fu=_b;function Ob(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,(100*a+100*parseFloat(e))/100)}))}var Tb=Fe(Ob),fn=Tb;function Rb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation+parseFloat(e))}))}function Fb(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{hue:parseFloat(e)}))}function $b(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{lightness:parseFloat(e)}))}function Db(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{saturation:parseFloat(e)}))}function Lb(e,t){return"transparent"===t?t:Fu(parseFloat(e),"rgb(0, 0, 0)",t)}function Mb(e,t){return"transparent"===t?t:Fu(parseFloat(e),"rgb(255, 255, 255)",t)}function Bb(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,+(100*a-100*parseFloat(e)).toFixed(2)/100)}))}Fe(Rb),Fe(Fb),Fe($b),Fe(Db),Fe(Lb),Fe(Mb);var Ib=Fe(Bb),te=Ib,Pb=Es,jb=U0,Nb=Object.prototype,Hb=Nb.hasOwnProperty;function Zb(e,t,r){var a=e[t];(!Hb.call(e,t)||!jb(a,r)||void 0===r&&!(t in e))&&Pb(e,t,r)}var fl=Zb,Vb=fl,zb=xs,qb=W0,Di=Pn,Ub=G0;function Wb(e,t,r,a){if(!Di(e))return e;for(var n=-1,o=(t=zb(t,e)).length,l=o-1,i=e;null!=i&&++n(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),Bi={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Fy=["style","script"],$y=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Dy=/mailto:/i,Ly=/\n{2,}$/,Lu=/^(\s*>[\s\S]*?)(?=\n{2,})/,My=/^ *> ?/gm,By=/^ {2,}\n/,Iy=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Mu=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Bu=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Py=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,jy=/^(?:\n *)*\n/,Ny=/\r\n?/g,Hy=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Zy=/^\[\^([^\]]+)]/,Vy=/\f/g,zy=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,qy=/^\s*?\[(x|\s)\]/,Iu=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Pu=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ju=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ho=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Uy=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Nu=/^)/,Wy=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bo=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Gy=/^\{.*\}$/,Yy=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ky=/^<([^ >]+@[^ >]+)>/,Xy=/^<([^ >]+:\/[^ >]+)>/,Jy=/-([a-z])?/gi,Hu=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Qy=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,e3=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,t3=/^\[([^\]]*)\] ?\[([^\]]*)\]/,r3=/(\[|\])/g,n3=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,a3=/\t/g,o3=/(^ *\||\| *$)/g,l3=/^ *:-+: *$/,i3=/^ *:-+ *$/,s3=/^ *-+: *$/,aa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",c3=new RegExp(`^([*_])\\1${aa}\\1\\1(?!\\1)`),u3=new RegExp(`^([*_])${aa}\\1(?!\\1|\\w)`),d3=new RegExp(`^==${aa}==`),p3=new RegExp(`^~~${aa}~~`),f3=/^\\([^0-9A-Za-z\s])/,m3=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,g3=/^\n+/,h3=/^([ \t]*)/,b3=/\\([^\\])/g,Ii=/ *\n+$/,y3=/(?:^|\n)( *)$/,gl="(?:\\d+\\.)",hl="(?:[*+-])";function Zu(e){return"( *)("+(1===e?gl:hl)+") +"}const Vu=Zu(1),zu=Zu(2);function qu(e){return new RegExp("^"+(1===e?Vu:zu))}const v3=qu(1),E3=qu(2);function Uu(e){return new RegExp("^"+(1===e?Vu:zu)+"[^\\n]*(?:\\n(?!\\1"+(1===e?gl:hl)+" )[^\\n]*)*(\\n|$)","gm")}const Wu=Uu(1),Gu=Uu(2);function Yu(e){const t=1===e?gl:hl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ku=Yu(1),Xu=Yu(2);function Pi(e,t){const r=1===t,a=r?Ku:Xu,n=r?Wu:Gu,o=r?v3:E3;return{match(e,t,r){const n=y3.exec(r);return n&&(t.list||!t.inline&&!t.simple)?a.exec(e=n[1]+e):null},order:1,parse(e,t,a){const l=r?+e[2]:void 0,i=e[0].replace(Ly,"\n").match(n);let s=!1;return{items:i.map((function(e,r){const n=o.exec(e)[0].length,l=new RegExp("^ {1,"+n+"}","gm"),c=e.replace(l,"").replace(o,""),u=r===i.length-1,d=-1!==c.indexOf("\n\n")||u&&s;s=d;const p=a.inline,m=a.list;let h;a.list=!0,d?(a.inline=!1,h=c.replace(Ii,"\n\n")):(a.inline=!0,h=c.replace(Ii,""));const f=t(h,a);return a.inline=p,a.list=m,f})),ordered:r,start:l}},render:(t,r,a)=>e(t.ordered?"ol":"ul",{key:a.key,start:t.type===j.orderedList?t.start:void 0},t.items.map((function(t,n){return e("li",{key:n},r(t,a))})))}}const x3=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),w3=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ju=[Lu,Mu,Bu,Iu,ju,Pu,Nu,Hu,Wu,Ku,Gu,Xu],A3=[...Ju,/^[^\n]+(?: \n|\n{2,})/,ho,bo];function mn(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function S3(e){return s3.test(e)?"right":l3.test(e)?"center":i3.test(e)?"left":null}function ji(e,t,r,a){const n=r.inTable;r.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce(((e,n)=>("|"===n.trim()?e.push(a?{type:j.tableSeparator}:{type:j.text,text:n}):""!==n&&e.push.apply(e,t(n,r)),e)),[]);r.inTable=n;let l=[[]];return o.forEach((function(e,t){e.type===j.tableSeparator?0!==t&&t!==o.length-1&&l.push([]):(e.type!==j.text||null!=o[t+1]&&o[t+1].type!==j.tableSeparator||(e.text=e.text.trimEnd()),l[l.length-1].push(e))})),l}function C3(e,t,r){r.inline=!0;const a=e[2]?e[2].replace(o3,"").split("|").map(S3):[],n=e[3]?(l=e[3],i=t,s=r,l.trim().split("\n").map((function(e){return ji(e,i,s,!0)}))):[],o=ji(e[1],t,r,!!n.length);var l,i,s;return r.inline=!1,n.length?{align:a,cells:n,header:o,type:j.table}:{children:o,type:j.paragraph}}function Ni(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function wt(e){return function(t,r){return r.inline?e.exec(t):null}}function At(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Tr(e){return function(t){return e.exec(t)}}function k3(e,t,r){if(t.inline||t.simple||r&&!r.endsWith("\n"))return null;let a="";e.split("\n").every((e=>!Ju.some((t=>t.test(e)))&&(a+=e+"\n",e.trim())));const n=a.trimEnd();return""==n?null:[a,n]}function _3(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Hi(e){return e.replace(b3,"$1")}function Sn(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!0,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function O3(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!1,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function T3(e,t,r){const a=r.inline||!1;r.inline=!1;const n=e(t,r);return r.inline=a,n}const Ra=(e,t,r)=>({children:Sn(t,e[1],r)});function Fa(){return{}}function $a(){return null}function R3(...e){return e.filter(Boolean).join(" ")}function Da(e,t,r){let a=e;const n=t.split(".");for(;n.length&&(a=a[n[0]],void 0!==a);)n.shift();return a||r}function F3(e="",t={}){function r(e,r,...a){const n=Da(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const r=Da(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Da(t,`${e}.component`,e):e}(e,t.overrides),Zt({},r,n,{className:R3(null==r?void 0:r.className,n.className)||void 0}),...a)}function a(e){e=e.replace(zy,"");let a=!1;t.forceInline?a=!0:t.forceBlock||(a=!1===n3.test(e));const n=c(s(a?e:`${e.trimEnd().replace(g3,"")}\n\n`,{inline:a}));for(;"string"==typeof n[n.length-1]&&!n[n.length-1].trim();)n.pop();if(null===t.wrapper)return n;const o=t.wrapper||(a?"span":"div");let l;if(n.length>1||t.forceWrapper)l=n;else{if(1===n.length)return l=n[0],"string"==typeof l?r("span",{key:"outer"},l):l;l=null}return h.createElement(o,{key:"outer"},l)}function n(e,r){const n=r.match($y);return n?n.reduce((function(r,n,o){const l=n.indexOf("=");if(-1!==l){const s=(i=n.slice(0,l),-1!==i.indexOf("-")&&null===i.match(Wy)&&(i=i.replace(Jy,(function(e,t){return t.toUpperCase()}))),i).trim(),c=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(n.slice(l+1).trim()),u=Mi[s]||s,d=r[u]=function(e,t,r,a){return"style"===t?r.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===t||"src"===t?a(r,e,t):(r.match(Gy)&&(r=r.slice(1,r.length-1)),"true"===r||"false"!==r&&r)}(e,s,c,t.sanitizer);"string"==typeof d&&(ho.test(d)||bo.test(d))&&(r[u]=h.cloneElement(a(d.trim()),{key:o}))}else"style"!==n&&(r[Mi[n]||n]=!0);var i;return r}),{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||_3,t.slugify=t.slugify||mn,t.namedCodesToUnicode=t.namedCodesToUnicode?Zt({},Bi,t.namedCodesToUnicode):Bi,t.createElement=t.createElement||h.createElement;const o=[],l={},i={[j.blockQuote]:{match:gt(Lu),order:1,parse:(e,t,r)=>({children:t(e[0].replace(My,""),r)}),render:(e,t,a)=>r("blockquote",{key:a.key},t(e.children,a))},[j.breakLine]:{match:Tr(By),order:1,parse:Fa,render:(e,t,a)=>r("br",{key:a.key})},[j.breakThematic]:{match:gt(Iy),order:1,parse:Fa,render:(e,t,a)=>r("hr",{key:a.key})},[j.codeBlock]:{match:gt(Bu),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,a)=>r("pre",{key:a.key},r("code",Zt({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[j.codeFenced]:{match:gt(Mu),order:0,parse:e=>({attrs:n("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:j.codeBlock})},[j.codeInline]:{match:At(Py),order:3,parse:e=>({text:e[2]}),render:(e,t,a)=>r("code",{key:a.key},e.text)},[j.footnote]:{match:gt(Hy),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:$a},[j.footnoteReference]:{match:wt(Zy),order:1,parse:e=>({target:`#${t.slugify(e[1],mn)}`,text:e[1]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href")},r("sup",{key:n.key},e.text))},[j.gfmTask]:{match:wt(qy),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,a)=>r("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"})},[j.heading]:{match:gt(t.enforceAtxHeadings?Pu:Iu),order:1,parse:(e,r,a)=>({children:Sn(r,e[2],a),id:t.slugify(e[2],mn),level:e[1].length}),render:(e,t,a)=>r(`h${e.level}`,{id:e.id,key:a.key},t(e.children,a))},[j.headingSetext]:{match:gt(ju),order:0,parse:(e,t,r)=>({children:Sn(t,e[1],r),level:"="===e[2]?1:2,type:j.heading})},[j.htmlBlock]:{match:Tr(ho),order:1,parse(e,t,r){const[,a]=e[3].match(h3),o=new RegExp(`^${a}`,"gm"),l=e[3].replace(o,""),i=(s=l,A3.some((e=>e.test(s)))?T3:Sn);var s;const c=e[1].toLowerCase(),u=-1!==Fy.indexOf(c),d=(u?c:e[1]).trim(),p={attrs:n(d,e[2]),noInnerParse:u,tag:d};return r.inAnchor=r.inAnchor||"a"===c,u?p.text=e[3]:p.children=i(t,l,r),r.inAnchor=!1,p},render:(e,t,a)=>r(e.tag,Zt({key:a.key},e.attrs),e.text||t(e.children,a))},[j.htmlSelfClosing]:{match:Tr(bo),order:1,parse(e){const t=e[1].trim();return{attrs:n(t,e[2]||""),tag:t}},render:(e,t,a)=>r(e.tag,Zt({},e.attrs,{key:a.key}))},[j.htmlComment]:{match:Tr(Nu),order:1,parse:()=>({}),render:$a},[j.image]:{match:At(w3),order:1,parse:e=>({alt:e[1],target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[j.link]:{match:wt(x3),order:3,parse:(e,t,r)=>({children:O3(t,e[1],r),target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href"),title:e.title},a(e.children,n))},[j.linkAngleBraceStyleDetector]:{match:wt(Xy),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],type:j.link})},[j.linkBareUrlDetector]:{match:(e,t)=>t.inAnchor?null:wt(Yy)(e,t),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],title:void 0,type:j.link})},[j.linkMailtoDetector]:{match:wt(Ky),order:0,parse(e){let t=e[1],r=e[1];return Dy.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:j.text}],target:r,type:j.link}}},[j.orderedList]:Pi(r,1),[j.unorderedList]:Pi(r,2),[j.newlineCoalescer]:{match:gt(jy),order:3,parse:Fa,render:()=>"\n"},[j.paragraph]:{match:k3,order:3,parse:Ra,render:(e,t,a)=>r("p",{key:a.key},t(e.children,a))},[j.ref]:{match:wt(Qy),order:0,parse:e=>(l[e[1]]={target:e[2],title:e[4]},{}),render:$a},[j.refImage]:{match:At(e3),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("img",{key:n.key,alt:e.alt,src:t.sanitizer(l[e.ref].target,"img","src"),title:l[e.ref].title}):null},[j.refLink]:{match:wt(t3),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(r3,"\\$1"),r),ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("a",{key:n.key,href:t.sanitizer(l[e.ref].target,"a","href"),title:l[e.ref].title},a(e.children,n)):r("span",{key:n.key},a(e.fallbackChildren,n))},[j.table]:{match:gt(Hu),order:1,parse:C3,render(e,t,a){const n=e;return r("table",{key:a.key},r("thead",null,r("tr",null,n.header.map((function(e,o){return r("th",{key:o,style:Ni(n,o)},t(e,a))})))),r("tbody",null,n.cells.map((function(e,o){return r("tr",{key:o},e.map((function(e,o){return r("td",{key:o,style:Ni(n,o)},t(e,a))})))}))))}},[j.text]:{match:Tr(m3),order:4,parse:e=>({text:e[0].replace(Uy,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},[j.textBolded]:{match:At(c3),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("strong",{key:a.key},t(e.children,a))},[j.textEmphasized]:{match:At(u3),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("em",{key:a.key},t(e.children,a))},[j.textEscaped]:{match:At(f3),order:1,parse:e=>({text:e[1],type:j.text})},[j.textMarked]:{match:At(d3),order:3,parse:Ra,render:(e,t,a)=>r("mark",{key:a.key},t(e.children,a))},[j.textStrikethroughed]:{match:At(p3),order:3,parse:Ra,render:(e,t,a)=>r("del",{key:a.key},t(e.children,a))}};!0===t.disableParsingRawHTML&&(delete i[j.htmlBlock],delete i[j.htmlSelfClosing]);const s=function(e){let t=Object.keys(e);function r(a,n){let o=[],l="";for(;a;){let i=0;for(;ia(e,t,r)),e,t,r):a(e,t,r)},function e(t,r={}){if(Array.isArray(t)){const a=r.key,n=[];let o=!1;for(let l=0;l{let{children:t="",options:r}=e,a=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,Ry);return h.cloneElement(F3(t,r),a)};function $3(e,t,r,a){for(var n=e.length,o=r+(a?1:-1);a?o--:++o-1}var q3=z3;function U3(e,t,r){for(var a=-1,n=null==e?0:e.length;++a=iv){var c=t?null:ov(e);if(c)return lv(c);l=!1,n=av,s=new tv}else s=t?[]:i;e:for(;++afunction(){return t||(0,e[a0(e)[0]])((t={exports:{}}).exports,t),t.exports},n6=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a0(t))!r6.call(e,n)&&n!==r&&n0(e,n,{get:()=>t[n],enumerable:!(a=e6(t,n))||a.enumerable});return e},yl=(e,t,r)=>(r=null!=e?Q7(t6(e)):{},n6(e&&e.__esModule?r:n0(r,"default",{value:e,enumerable:!0}),e)),a6=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],o6=["detail"];function l6(e){const t=a6.filter((t=>void 0!==e[t])).reduce(((t,r)=>({...t,[r]:e[r]})),{});return e instanceof CustomEvent&&o6.filter((t=>void 0!==e[t])).forEach((r=>{t[r]=e[r]})),t}var o0=Ne({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}}}),l0=Ne({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,a=o0();t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}}}),i6=Ne({"node_modules/function-bind/implementation.js"(e,t){var r=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),l=Math.max(0,t.length-o.length),i=[],s=0;s"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:d((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:d((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},f=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=d(n.prototype))}return h[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=vl(),y=s6(),v=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(e,t){var r,n=e;if(y(g,n)&&(n="%"+(r=g[n])[0]+"%"),y(h,n)){var l=h[n];if(l===p&&(l=f(n)),typeof l>"u"&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:l}}throw new a("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=w(e,0,1),r=w(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,S,(function(e,t,r,a){n[n.length]=r?x(a,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",l=A("%"+n+"%",t),s=l.name,c=l.value,u=!1,d=l.alias;d&&(n=d[0],E(r,v([0,1],d)));for(var p=1,m=!0;p=r.length){var _=i(c,f);c=(m=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[f]}else m=y(c,f),c=c[f];m&&!u&&(h[s]=c)}}return c}}}),c6=Ne({"node_modules/call-bind/index.js"(e,t){var r=vl(),a=i0(),n=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),l=a("%Reflect.apply%",!0)||r.call(o,n),i=a("%Object.getOwnPropertyDescriptor%",!0),s=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(e){var t=l(r,o,arguments);i&&s&&(i(t,"length").configurable&&s(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var u=function(){return l(r,n,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u}}),u6=Ne({"node_modules/call-bind/callBound.js"(e,t){var r=i0(),a=c6(),n=a(r("String.prototype.indexOf"));t.exports=function(e,t){var o=r(e,!!t);return"function"==typeof o&&n(e,".prototype.")>-1?a(o):o}}}),d6=Ne({"node_modules/has-tostringtag/shams.js"(e,t){var r=o0();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),p6=Ne({"node_modules/is-regex/index.js"(e,t){var r,a,n,o,l=u6(),i=d6()();i&&(r=l("Object.prototype.hasOwnProperty"),a=l("RegExp.prototype.exec"),n={},o={toString:s=function(){throw n},valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(o[Symbol.toPrimitive]=s));var s,c=l("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;t.exports=i?function(e){if(!e||"object"!=typeof e)return!1;var t=u(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{a(e,o)}catch(l){return l===n}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}}}),f6=Ne({"node_modules/is-function/index.js"(e,t){t.exports=function(e){if(!e)return!1;var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var r=Object.prototype.toString}}),m6=Ne({"node_modules/is-symbol/index.js"(e,t){var r,a,n,o=Object.prototype.toString;l0()()?(r=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,n=function(e){return"symbol"==typeof e.valueOf()&&a.test(r.call(e))},t.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o.call(e))return!1;try{return n(e)}catch{return!1}}):t.exports=function(e){return!1}}}),g6=yl(p6()),h6=yl(f6()),b6=yl(m6());function y6(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}var v6="object"==typeof global&&global&&global.Object===Object&&global,E6=v6,x6="object"==typeof self&&self&&self.Object===Object&&self,w6=E6||x6||Function("return this")(),El=w6,A6=El.Symbol,gr=A6,s0=Object.prototype,S6=s0.hasOwnProperty,C6=s0.toString,Rr=gr?gr.toStringTag:void 0;function k6(e){var t=S6.call(e,Rr),r=e[Rr];try{e[Rr]=void 0;var a=!0}catch{}var n=C6.call(e);return a&&(t?e[Rr]=r:delete e[Rr]),n}var _6=k6,O6=Object.prototype,T6=O6.toString;function R6(e){return T6.call(e)}var F6=R6,$6="[object Null]",D6="[object Undefined]",Xi=gr?gr.toStringTag:void 0;function L6(e){return null==e?void 0===e?D6:$6:Xi&&Xi in Object(e)?_6(e):F6(e)}var M6=L6,Ji=gr?gr.prototype:void 0;function B6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ji&&Ji.toString;var c0=B6,I6="[object AsyncFunction]",P6="[object Function]",j6="[object GeneratorFunction]",N6="[object Proxy]";function H6(e){if(!c0(e))return!1;var t=M6(e);return t==P6||t==j6||t==I6||t==N6}var Z6=H6,V6=El["__core-js_shared__"],Ma=V6,Qi=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function z6(e){return!!Qi&&Qi in e}var q6=z6,U6=Function.prototype,W6=U6.toString;function G6(e){if(null!=e){try{return W6.call(e)}catch{}try{return e+""}catch{}}return""}var Y6=G6,K6=/[\\^$.*+?()[\]{}|]/g,X6=/^\[object .+?Constructor\]$/,J6=Function.prototype,Q6=Object.prototype,eE=J6.toString,tE=Q6.hasOwnProperty,rE=RegExp("^"+eE.call(tE).replace(K6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nE(e){return!(!c0(e)||q6(e))&&(Z6(e)?rE:X6).test(Y6(e))}var aE=nE;function oE(e,t){return null==e?void 0:e[t]}var lE=oE;function iE(e,t){var r=lE(e,t);return aE(r)?r:void 0}var u0=iE;function sE(e,t){return e===t||e!=e&&t!=t}var cE=sE,uE=u0(Object,"create"),Yr=uE;function dE(){this.__data__=Yr?Yr(null):{},this.size=0}var pE=dE;function fE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mE=fE,gE="__lodash_hash_undefined__",hE=Object.prototype,bE=hE.hasOwnProperty;function yE(e){var t=this.__data__;if(Yr){var r=t[e];return r===gE?void 0:r}return bE.call(t,e)?t[e]:void 0}var vE=yE,EE=Object.prototype,xE=EE.hasOwnProperty;function wE(e){var t=this.__data__;return Yr?void 0!==t[e]:xE.call(t,e)}var AE=wE,SE="__lodash_hash_undefined__";function CE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&void 0===t?SE:t,this}var kE=CE;function Er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}var IE=BE;function PE(e,t){var r=this.__data__,a=la(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var jE=PE;function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{let t=null,r=!1,a=!1,n=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;lu8(e).replace(/\n\s*/g,"").trim())),p8=function(e,t){const r=t.slice(0,t.indexOf("{")),a=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let n=r;return n=n.replace(e,"function"),n+a},f8=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function p0(e){if(!c8(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=l6(t),r=!0),t=Object.keys(t).reduce(((e,a)=>{try{t[a]&&t[a].toJSON,e[a]=t[a]}catch{r=!0}return e}),{}),r?t:e}var m8=function(e){let t,r,a,n;return function(o,l){try{if(""===o)return n=[],t=new Map([[l,"[]"]]),r=new Map,a=[],l;const i=r.get(this)||this;for(;a.length&&i!==a[0];)a.shift(),n.pop();if("boolean"==typeof l)return l;if(void 0===l)return e.allowUndefined?"_undefined_":void 0;if(null===l)return null;if("number"==typeof l)return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if("bigint"==typeof l)return`_bigint_${l.toString()}`;if("string"==typeof l)return f8.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,g6.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,h6.default)(l)){if(!e.allowFunction)return;const{name:t}=l,r=l.toString();return r.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${t}|${(()=>{}).toString()}`:`_function_${t}|${d8(p8(o,r))}`}if((0,b6.default)(l)){if(!e.allowSymbol)return;const t=Symbol.keyFor(l);return void 0!==t?`_gsymbol_${t}`:`_symbol_${l.toString().slice(7,-1)}`}if(a.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(n)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&!e.allowClass)return;const s=t.get(l);if(!s){const i=Array.isArray(l)?l:p0(l);if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&e.allowClass)try{Object.assign(i,{"_constructor-name_":l.constructor.name})}catch{}return n.push(o),a.unshift(i),t.set(l,JSON.stringify(n)),l!==i&&r.set(l,i),i}return`_duplicate_${s}`}catch{return}}},g8={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},h8=(e,t={})=>{const r={...g8,...t};return JSON.stringify(p0(e),m8(r),t.space)};function b8(e){const t=[].forEach,r=[].some,a=typeof window<"u"&&document.body,n=" ";let o,l=!0;function i(r,a){const o=a.appendChild(function(r){const a=document.createElement("li"),o=document.createElement("a");return e.listItemClass&&a.setAttribute("class",e.listItemClass),e.onClick&&(o.onclick=e.onClick),e.includeTitleTags&&o.setAttribute("title",r.textContent),e.includeHtml&&r.childNodes.length?t.call(r.childNodes,(e=>{o.appendChild(e.cloneNode(!0))})):o.textContent=r.textContent,o.setAttribute("href",`${e.basePath}#${r.id}`),o.setAttribute("class",`${e.linkClass+n}node-name--${r.nodeName}${n}${e.extraLinkClasses}`),a.appendChild(o),a}(r));if(r.children.length){const e=s(r.isCollapsed);r.children.forEach((t=>{i(t,e)})),o.appendChild(e)}}function s(t){const r=e.orderedList?"ol":"ul",a=document.createElement(r);let o=e.listClass+n+e.extraListClasses;return t&&(o=o+n+e.collapsibleClass,o=o+n+e.isCollapsedClass),a.setAttribute("class",o),a}function c(t){let r=0;return null!==t&&(r=t.offsetTop,e.hasInnerContainers&&(r+=c(t.offsetParent))),r}function u(e,t){return e&&e.className!==t&&(e.className=t),e}function d(t){return t&&-1!==t.className.indexOf(e.collapsibleClass)&&-1!==t.className.indexOf(e.isCollapsedClass)?(u(t,t.className.replace(n+e.isCollapsedClass,"")),d(t.parentNode.parentNode)):t}function p(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer).scrollTop:document.documentElement.scrollTop||a.scrollTop,t}function m(t,a=p()){let n;return r.call(t,((r,o)=>{if(c(r)>a+e.headingsOffset+10){return n=t[0===o?o:o-1],!0}if(o===t.length-1)return n=t[t.length-1],!0})),n}return{enableTocAnimation:function(){l=!0},disableTocAnimation:function(t){const r=t.target||t.srcElement;"string"!=typeof r.className||-1===r.className.indexOf(e.linkClass)||(l=!1)},render:function(e,t){const r=s(!1);if(t.forEach((e=>{i(e,r)})),o=e||o,null!==o)return o.firstChild&&o.removeChild(o.firstChild),0===t.length?o:o.appendChild(r)},updateToc:function(r){e.positionFixedSelector&&function(){const t=p(),r=document.querySelector(e.positionFixedSelector);"auto"===e.fixedSidebarOffset&&(e.fixedSidebarOffset=o.offsetTop),t>e.fixedSidebarOffset?-1===r.className.indexOf(e.positionFixedClass)&&(r.className+=n+e.positionFixedClass):r.className=r.className.replace(n+e.positionFixedClass,"")}();const a=r;if(l&&o&&a.length>0){const r=m(a),l=o.querySelector(`.${e.activeLinkClass}`),i=o.querySelector(`.${e.linkClass}.node-name--${r.nodeName}[href="${e.basePath}#${r.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")}"]`);if(l===i)return;const s=o.querySelectorAll(`.${e.linkClass}`);t.call(s,(t=>{u(t,t.className.replace(n+e.activeLinkClass,""))}));const c=o.querySelectorAll(`.${e.listItemClass}`);t.call(c,(t=>{u(t,t.className.replace(n+e.activeListItemClass,""))})),i&&-1===i.className.indexOf(e.activeLinkClass)&&(i.className+=n+e.activeLinkClass);const p=null==i?void 0:i.parentNode;p&&-1===p.className.indexOf(e.activeListItemClass)&&(p.className+=n+e.activeListItemClass);const h=o.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(h,(t=>{-1===t.className.indexOf(e.isCollapsedClass)&&(t.className+=n+e.isCollapsedClass)})),null!=i&&i.nextSibling&&-1!==i.nextSibling.className.indexOf(e.isCollapsedClass)&&u(i.nextSibling,i.nextSibling.className.replace(n+e.isCollapsedClass,"")),d(null==i?void 0:i.parentNode.parentNode)}},getCurrentlyHighlighting:function(){return l},getTopHeader:m,getScrollTop:p,updateUrlHashForHeader:function(e){const t=p(),r=m(e,t);if(!r||t<5)"#"===window.location.hash||""===window.location.hash||window.history.pushState(null,null,"#");else if(r){const e=`#${r.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}}}const y8={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0,enableUrlHashUpdateOnScroll:!1};function v8(e){const t=[].reduce;function r(e){return e[e.length-1]}function a(e){return+e.nodeName.toUpperCase().replace("H","")}function n(t){if(!function(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;const r=t.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),n={id:t.id,children:[],nodeName:t.nodeName,headingLevel:a(t),textContent:r};return e.includeHtml&&(n.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(n,t):n}return{nestHeadingsArray:function(a){return t.call(a,(function(t,a){const o=n(a);return o&&function(t,a){const o=n(t),l=o.headingLevel;let i=a,s=r(i),c=l-(s?s.headingLevel:0);for(;c>0&&(s=r(i),!s||l!==s.headingLevel);)s&&void 0!==s.children&&(i=s.children),c--;l>=e.collapseDepth&&(o.isCollapsed=!0),i.push(o)}(o,t.nest),t}),{nest:[]})},selectHeadings:function(t,r){let a=r;e.ignoreSelector&&(a=r.split(",").map((function(t){return`${t.trim()}:not(${e.ignoreSelector})`})));try{return t.querySelectorAll(a)}catch{return console.warn(`Headers not found with selector: ${a}`),null}}}}function E8(e){var t=e.duration,r=e.offset;if(!(typeof window>"u"||typeof location>"u")){var a=location.hash?n(location.href):location.href;document.body.addEventListener("click",(function(o){!function(e){return"a"===e.tagName.toLowerCase()&&(e.hash.length>0||"#"===e.href.charAt(e.href.length-1))&&(n(e.href)===a||n(e.href)+"#"===a)}(o.target)||o.target.className.indexOf("no-smooth-scroll")>-1||"#"===o.target.href.charAt(o.target.href.length-2)&&"!"===o.target.href.charAt(o.target.href.length-1)||-1===o.target.className.indexOf(e.linkClass)||x8(o.target.hash,{duration:t,offset:r,callback:function(){!function(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}(o.target.hash)}})}),!1)}function n(e){return e.slice(0,e.lastIndexOf("#"))}}function x8(e,t){var r,a,n=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,r,a){return(e/=a/2)<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)}},l=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i="string"==typeof e?o.offset+(e?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,s="function"==typeof o.duration?o.duration(i):o.duration;function c(e){a=e-r,window.scrollTo(0,o.easing(a,n,i,s)),at.clientHeight){var r=t.querySelector("."+e.activeListItemClass);if(r){var a=t.scrollTop,n=a+t.clientHeight,o=r.offsetTop,l=o+r.clientHeight;on-e.tocScrollOffset-30&&(t.scrollTop+=l-n+e.tocScrollOffset+60)}}}let Ve,Ba,Bt,ot,Lr,z={};function A8(e){z=C8(y8,e||{}),z.scrollSmooth&&(z.duration=z.scrollSmoothDuration,z.offset=z.scrollSmoothOffset,E8(z)),Ve=b8(z),Ba=v8(z),f0();const t=k8(z);if(null===t)return;const r=m0(z);if(null===r||(Bt=Ba.selectHeadings(t,z.headingSelector),null===Bt))return;const a=Ba.nestHeadingsArray(Bt).nest;if(z.skipRendering)return this;Ve.render(r,a),ot=rs((e=>{var t;Ve.updateToc(Bt),!z.disableTocScrollSync&&w8(z),z.enableUrlHashUpdateOnScroll&&Ve.getCurrentlyHighlighting()&&Ve.updateUrlHashForHeader(Bt);const r=(null==(t=null==e?void 0:e.target)?void 0:t.scrollingElement)&&0===e.target.scrollingElement.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||r)&&(Ve.updateToc(Bt),z.scrollEndCallback&&z.scrollEndCallback(e))}),z.throttleTimeout),ot(),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).addEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).addEventListener("resize",ot,!1)):(document.addEventListener("scroll",ot,!1),document.addEventListener("resize",ot,!1));let n=null;Lr=rs((e=>{z.scrollSmooth&&Ve.disableTocAnimation(e),Ve.updateToc(Bt),n&&clearTimeout(n),n=setTimeout((()=>{Ve.enableTocAnimation()}),z.scrollSmoothDuration)}),z.throttleTimeout),z.scrollContainer&&document.querySelector(z.scrollContainer)?document.querySelector(z.scrollContainer).addEventListener("click",Lr,!1):document.addEventListener("click",Lr,!1)}function f0(){const e=m0(z);null!==e&&(z.skipRendering||e&&(e.innerHTML=""),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).removeEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).removeEventListener("resize",ot,!1),Ve&&document.querySelector(z.scrollContainer).removeEventListener("click",Lr,!1)):(document.removeEventListener("scroll",ot,!1),document.removeEventListener("resize",ot,!1),Ve&&document.removeEventListener("click",Lr,!1)))}const S8=Object.prototype.hasOwnProperty;function C8(...e){const t={};for(let r=0;r{a=l,e.apply(o,r)}),t)):(a=l,e.apply(o,r))}}function k8(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function m0(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}const{global:Le}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:fe,once:_8,logger:wl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:O8,composeConfigs:aA,Preview:oA,DocsContext:lA}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:ns,UPDATE_STORY_ARGS:T8,RESET_STORY_ARGS:R8,GLOBALS_UPDATED:as,NAVIGATE_URL:F8}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var $8=_.div(re,(({theme:e})=>({backgroundColor:"light"===e.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:te(.3,e.color.defaultText),fontSize:e.typography.size.s2}))),g0=e=>a.createElement($8,{...e,className:"docblock-emptyblock sb-unstyled"}),D8=_(Qn)((({theme:e})=>({fontSize:e.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),L8=_.div((({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}))),gn=_.div((({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Xa}`]:{margin:0}}))),M8=()=>a.createElement(L8,null,a.createElement(gn,null),a.createElement(gn,{style:{width:"80%"}}),a.createElement(gn,{style:{width:"30%"}}),a.createElement(gn,{style:{width:"80%"}})),Al=({isLoading:e,error:t,language:r,code:n,dark:o,format:l,...i})=>{if(e)return a.createElement(M8,null);if(t)return a.createElement(g0,null,t);let s=a.createElement(D8,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let c=o?qa.dark:qa.light;return a.createElement(Ks,{theme:Ka(c)},s)};Al.defaultProps={format:!1};var ie=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sl=600,B8=_.h1(re,(({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),I8=_.h2(re,(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:te(.25,e.color.defaultText)}))),P8=_.div((({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},a={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:"light"===e.base?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:"light"===e.base?te(.1,e.color.defaultText):te(.3,e.color.defaultText),backgroundColor:"light"===e.base?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ie("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ie("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ie("div")]:t,[ie("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ie("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ie("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ie("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ie("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ie("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ie("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ie("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ie("img")]:{maxWidth:"100%"},[ie("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":a},[ie("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ie("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":a},[ie("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ie("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ie("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===e.base?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ie("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),j8=_.div((({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sl}px)`]:{}}))),N8=({children:e,toc:t})=>a.createElement(j8,{className:"sbdocs sbdocs-wrapper"},a.createElement(P8,{className:"sbdocs sbdocs-content"},e),t),sa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),H8=({zoom:e,resetZoom:t})=>a.createElement(a.Fragment,null,a.createElement(Ut,{key:"zoomin",onClick:t=>{t.preventDefault(),e(.8)},title:"Zoom in"},a.createElement(Ee,{icon:"zoom"})),a.createElement(Ut,{key:"zoomout",onClick:t=>{t.preventDefault(),e(1.25)},title:"Zoom out"},a.createElement(Ee,{icon:"zoomout"})),a.createElement(Ut,{key:"zoomreset",onClick:e=>{e.preventDefault(),t()},title:"Reset zoom"},a.createElement(Ee,{icon:"zoomreset"}))),Z8=_(ra)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),V8=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...l})=>a.createElement(Z8,{...l},a.createElement(h.Fragment,{key:"left"},e?[1,2,3].map((e=>a.createElement(Au,{key:e}))):a.createElement(H8,{zoom:n,resetZoom:o}))),h0=h.createContext({scale:1}),{window:z8}=Le,q8=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=z8.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:100*t+"%",height:100*t+"%",transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...l}=this.props;return a.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},{PREVIEW_URL:U8}=Le,W8=U8||"iframe.html",yo=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,G8=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,l]=h.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:u,renderStoryToElement:d}=e;return h.useEffect((()=>{if(!i||!t.current)return()=>{};let e=t.current,r=d(i,e,{showMain:()=>{},showError:({title:e,description:t})=>l(new Error(`${e} - ${t}`)),showException:e=>l(e)},{autoplay:c,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then((()=>r()))}}),[c,d,i]),o?a.createElement("pre",null,a.createElement(gu,{error:o})):a.createElement(a.Fragment,null,s?a.createElement("style",null,`#${yo(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&a.createElement(Cl,null),a.createElement("div",{ref:t,id:`${yo(e)}-inner`,"data-name":i.name}))},Y8=({story:e,height:t="500px"})=>a.createElement("div",{style:{width:"100%",height:t}},a.createElement(h0.Consumer,null,(({scale:t})=>a.createElement(q8,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:_u(W8,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:t,style:{width:"100%",height:"100%",border:"0 none"}})))),K8=e=>{let{inline:t}=e;return a.createElement("div",{id:yo(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?a.createElement(G8,{...e}):a.createElement(Y8,{...e}))},Cl=()=>a.createElement(ku,null),X8=_.div((({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout:e="padded"})=>"centered"===e||"padded"===e?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout:e="padded"})=>"centered"===e?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{})),os=_(Al)((({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content),color:e.color.lightest,button:{background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content)}}))),J8=_.div((({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...sa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar:e})=>e&&{paddingTop:40})),Q8=(e,t,r)=>{switch(!0){case!(!e||!e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:a.createElement(os,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:a.createElement(os,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function ex(e){if(1===h.Children.count(e)){let t=e;if(t.props)return t.props.id}return null}var tx=_(V8)({position:"absolute",top:0,left:0,right:0,height:40}),rx=_.div({overflow:"hidden",position:"relative"}),vo=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:l=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:u="padded",...d})=>{let[p,m]=h.useState(i),{source:f,actionItem:g}=Q8(o,p,m),[b,y]=h.useState(1),v=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[g]:[],[x,w]=h.useState(s?[...s]:[]),k=[...E,...x],{window:S}=Le,C=h.useCallback((async e=>{let{createCopyToClipboardFunction:t}=await Wt((()=>Promise.resolve().then((()=>Qh))),void 0,import.meta.url);t()}),[]);return a.createElement(J8,{withSource:o,withToolbar:l,...d,className:v.join(" ")},l&&a.createElement(tx,{isLoading:e,border:!0,zoom:e=>y(b*e),resetZoom:()=>y(1),storyId:ex(n),baseUrl:"./iframe.html"}),a.createElement(h0.Provider,{value:{scale:b}},a.createElement(rx,{className:"docs-story",onCopyCapture:o&&(e=>{let t=S.getSelection();t&&"Range"===t.type||(e.preventDefault(),0===x.filter((e=>"Copied"===e.title)).length&&C(f.props.code).then((()=>{w([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout((()=>w(x.filter((e=>"Copied"!==e.title)))),1500)})))})},a.createElement(X8,{isColumn:t||!Array.isArray(n),columns:r,layout:u},a.createElement(mu.Element,{scale:b},Array.isArray(n)?n.map(((e,t)=>a.createElement("div",{key:t},e))):a.createElement("div",null,n))),a.createElement(Zo,{actionItems:k}))),o&&p&&f)},nx=_(vo)((()=>({".docs-story":{paddingTop:32,paddingBottom:40}}))),ax=()=>a.createElement(nx,{isLoading:!0,withToolbar:!0},a.createElement(Cl,null)),ox=_.table((({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Et({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}}))),lx=({tags:e})=>{let t=(e.params||[]).filter((e=>e.description)),r=0!==t.length,n=null!=e.deprecated,o=null!=e.returns&&null!=e.returns.description;return r||o||n?a.createElement(a.Fragment,null,a.createElement(ox,null,a.createElement("tbody",null,n&&a.createElement("tr",{key:"deprecated"},a.createElement("td",{colSpan:2},a.createElement("strong",null,"Deprecated"),": ",e.deprecated)),r&&t.map((e=>a.createElement("tr",{key:e.name},a.createElement("td",null,a.createElement("code",null,e.name)),a.createElement("td",null,e.description)))),o&&a.createElement("tr",{key:"returns"},a.createElement("td",null,a.createElement("code",null,"Returns")),a.createElement("td",null,e.returns.description))))):null},Eo=8,ls=_.div((({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),ix=_.span(Et,(({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}}))),sx=_.button((({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),cx=_.div(Et,(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),ux=_.div((({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),dx=_(Ee)({height:10,width:10,minWidth:10,marginLeft:4}),px=()=>a.createElement("span",null,"-"),b0=({text:e,simple:t})=>a.createElement(ix,{simple:t},e),fx=Yt(1e3)((e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map((e=>e.length)))}ch`})),mx=e=>{if(!e)return[e];let t=e.split("|").map((e=>e.trim()));return fv(t)},is=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Eo)),r.map((e=>a.createElement(b0,{key:e,text:""===e?'""':e})))},gx=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,l]=h.useState(!1),[i,s]=h.useState(t||!1);if(null==r)return null;let c="function"==typeof r.toString?r.toString():r;if(null==n){if(/[(){}[\]<>]/.test(c))return a.createElement(b0,{text:c});let e=mx(c),t=e.length;return t>Eo?a.createElement(ls,{isExpanded:i},is(e,i),a.createElement(sx,{onClick:()=>s(!i)},i?"Show less...":`Show ${t-Eo} more...`)):a.createElement(ls,null,is(e))}return a.createElement(Eu,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:e=>{l(e)},tooltip:a.createElement(ux,{width:fx(n)},a.createElement(Qn,{language:"jsx",format:!1},n))},a.createElement(cx,{className:"sbdocs-expandable"},a.createElement("span",null,c),a.createElement(dx,{icon:o?"arrowup":"arrowdown"})))},Ia=({value:e,initialExpandedArgs:t})=>null==e?a.createElement(px,null):a.createElement(gx,{value:e,initialExpandedArgs:t}),hx=_.label((({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:te(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${fn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${fn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:fn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:"light"===e.base?`${fn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}}))),bx=e=>"true"===e,yx=({name:e,value:t,onChange:r,onBlur:n,onFocus:o})=>{let l=h.useCallback((()=>r(!1)),[r]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:l},"Set boolean");let i=qe(e),s="string"==typeof t?bx(t):t;return a.createElement(hx,{htmlFor:i,"aria-label":e},a.createElement("input",{id:i,type:"checkbox",onChange:e=>r(e.target.checked),checked:s,role:"switch",name:e,onBlur:n,onFocus:o}),a.createElement("span",{"aria-hidden":"true"},"False"),a.createElement("span",{"aria-hidden":"true"},"True"))},vx=e=>{let[t,r,a]=e.split("-"),n=new Date;return n.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(a,10)),n},Ex=e=>{let[t,r]=e.split(":"),a=new Date;return a.setHours(parseInt(t,10)),a.setMinutes(parseInt(r,10)),a},xx=e=>{let t=new Date(e);return`${`000${t.getFullYear()}`.slice(-4)}-${`0${t.getMonth()+1}`.slice(-2)}-${`0${t.getDate()}`.slice(-2)}`},wx=e=>{let t=new Date(e);return`${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`},Ax=_.div((({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===e.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Sx=({name:e,value:t,onChange:r,onFocus:n,onBlur:o})=>{let[l,i]=h.useState(!0),s=h.useRef(),c=h.useRef();h.useEffect((()=>{!1!==l&&(s&&s.current&&(s.current.value=xx(t)),c&&c.current&&(c.current.value=wx(t)))}),[t]);let u=qe(e);return a.createElement(Ax,null,a.createElement(ze.Input,{type:"date",max:"9999-12-31",ref:s,id:`${u}-date`,name:`${u}-date`,onChange:e=>{let a=vx(e.target.value),n=new Date(t);n.setFullYear(a.getFullYear(),a.getMonth(),a.getDate());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),a.createElement(ze.Input,{type:"time",id:`${u}-time`,name:`${u}-time`,ref:c,onChange:e=>{let a=Ex(e.target.value),n=new Date(t);n.setHours(a.getHours()),n.setMinutes(a.getMinutes());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),l?null:a.createElement("div",null,"invalid"))},Cx=_.label({display:"flex"}),kx=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},_x=({name:e,value:t,onChange:r,min:n,max:o,step:l,onBlur:i,onFocus:s})=>{let[c,u]=h.useState("number"==typeof t?t:""),[d,p]=h.useState(!1),[m,f]=h.useState(null),g=h.useCallback((e=>{u(e.target.value);let t=parseFloat(e.target.value);Number.isNaN(t)?f(new Error(`'${e.target.value}' is not a number`)):(r(t),f(null))}),[r,f]),b=h.useCallback((()=>{u("0"),r(0),p(!0)}),[p]),y=h.useRef(null);return h.useEffect((()=>{d&&y.current&&y.current.select()}),[d]),h.useEffect((()=>{c!==("number"==typeof t?t:"")&&u(t)}),[t]),d||void 0!==t?a.createElement(Cx,null,a.createElement(ze.Input,{ref:y,id:qe(e),type:"number",onChange:g,size:"flex",placeholder:"Edit number...",value:c,valid:m?"error":null,autoFocus:d,name:e,min:n,max:o,step:l,onFocus:s,onBlur:i})):a.createElement(ze.Button,{id:jn(e),onClick:b},"Set number")},y0=(e,t)=>{let r=t&&Object.entries(t).find((([t,r])=>r===e));return r?r[0]:void 0},xo=(e,t)=>e&&t?Object.entries(t).filter((t=>e.includes(t[1]))).map((e=>e[0])):[],v0=(e,t)=>e&&t&&e.map((e=>t[e])),Ox=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),Tx=_.span({}),Rx=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),ss=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Checkbox with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=xo(r,t),[i,s]=h.useState(l),c=e=>{let r=e.target.value,a=[...i];a.includes(r)?a.splice(a.indexOf(r),1):a.push(r),n(v0(a,t)),s(a)};h.useEffect((()=>{s(xo(r,t))}),[r]);let u=qe(e);return a.createElement(Ox,{isInline:o},Object.keys(t).map(((e,t)=>{let r=`${u}-${t}`;return a.createElement(Rx,{key:r,htmlFor:r},a.createElement("input",{type:"checkbox",id:r,name:r,value:e,onChange:c,checked:null==i?void 0:i.includes(e)}),a.createElement(Tx,null,e))})))},Fx=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),$x=_.span({}),Dx=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),cs=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Radio with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=y0(r,t),i=qe(e);return a.createElement(Fx,{isInline:o},Object.keys(t).map(((e,r)=>{let o=`${i}-${r}`;return a.createElement(Dx,{key:o,htmlFor:o},a.createElement("input",{type:"radio",id:o,name:o,value:e,onChange:e=>n(t[e.currentTarget.value]),checked:e===l}),a.createElement($x,null,e))})))},Lx={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},E0=_.select(Lx,(({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),x0=_.span((({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}}))),us="Choose option...",Mx=({name:e,value:t,options:r,onChange:n})=>{let o=y0(t,r)||us,l=qe(e);return a.createElement(x0,null,a.createElement(Ee,{icon:"arrowdown"}),a.createElement(E0,{id:l,value:o,onChange:e=>{n(r[e.currentTarget.value])}},a.createElement("option",{key:"no-selection",disabled:!0},us),Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},Bx=({name:e,value:t,options:r,onChange:n})=>{let o=xo(t,r),l=qe(e);return a.createElement(x0,null,a.createElement(E0,{id:l,multiple:!0,value:o,onChange:e=>{let t=Array.from(e.currentTarget.options).filter((e=>e.selected)).map((e=>e.value));n(v0(t,r))}},Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},ds=e=>{let{name:t,options:r}=e;return r?e.isMulti?a.createElement(Bx,{...e}):a.createElement(Mx,{...e}):(wl.warn(`Select with no options: ${t}`),a.createElement(a.Fragment,null,"-"))},Ix=(e,t)=>Array.isArray(e)?e.reduce(((e,r)=>(e[(null==t?void 0:t[r])||String(r)]=r,e)),{}):e,Px={check:ss,"inline-check":ss,radio:cs,"inline-radio":cs,select:ds,"multi-select":ds},tr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,options:n?Ix(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=Px[t];if(l)return a.createElement(l,{...o});throw new Error(`Unknown options type: ${t}`)},kl="value",jx="key",Nx="Error",Hx="Object",Zx="Array",Vx="String",zx="Number",qx="Boolean",Ux="Date",Wx="Null",Gx="Undefined",Yx="Function",Kx="Symbol",w0="ADD_DELTA_TYPE",A0="REMOVE_DELTA_TYPE",S0="UPDATE_DELTA_TYPE";function kt(e){return null===e||"object"!=typeof e||Array.isArray(e)||"function"!=typeof e[Symbol.iterator]?Object.prototype.toString.call(e).slice(8,-1):"Iterable"}function C0(e,t){let r=kt(e),a=kt(t);return("Function"===r||"Function"===a)&&a!==r}var _l=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&"function"==typeof e.focus&&e.focus(),r&&t&&"function"==typeof t.focus&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.onSubmit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:a,deep:n}=this.props,{inputRefKey:o,inputRefValue:l}=this.state,i={};if(!t){if(!o.value)return;i.key=o.value}i.newValue=r(!1,a,n,i.key,l.value),e(i)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:l,deep:i}=this.props,s=h.cloneElement(r,{onClick:this.onSubmit}),c=h.cloneElement(n,{onClick:e}),u=o(kl,l,i),d=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue}),p=null;if(!t){let e=o(jx,l,i);p=h.cloneElement(e,{placeholder:"Key",ref:this.refInputKey})}return a.createElement("span",{className:"rejt-add-value-node"},p,d,c,s)}};_l.defaultProps={onlyValue:!1,addButtonElement:a.createElement("button",null,"+"),cancelButtonElement:a.createElement("button",null,"c")};var k0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:A0};a.splice(e,1),this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:a}=this.state,{beforeAddAction:n,logger:o}=this.props;n(t.length,r,a,e).then((()=>{let n=[...t,e];this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(r[r.length-1],n),l({type:w0,keyPath:r,deep:a,key:n.length-1,newValue:e})})).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:S0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r(void 0)})).catch(a)}))}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:l,getStyle:i,dataType:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,s),p=l(e,t,r,n,s),m=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",1===t.length?"item":"items"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,delimiter:O,ul:R,addForm:M}=d(e,t,r,n,p),T=u(e,t,r,n,p),L=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),j=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A});return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"["),!o&&L,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map(((e,t)=>a.createElement(ca,{key:t,name:t.toString(),data:e,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(t),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})))),!T&&o&&a.createElement("div",{className:"rejt-add-form",style:M},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"]"),!T&&j)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:l,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=i(e,r,n,o,l);return a.createElement("div",{className:"rejt-array-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};k0.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var _0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{C0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,textareaElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=null,v=null,E=s(e,i,n,o,c);if(r&&!E){let t=m(kl,g,o,e,i,c),r=h.cloneElement(d,{onClick:this.handleEdit}),n=h.cloneElement(p,{onClick:this.handleCancelEdit}),l=h.cloneElement(t,{ref:this.refInput,defaultValue:i});y=a.createElement("span",{className:"rejt-edit-form",style:b.editForm},l," ",n,r),v=null}else{y=a.createElement("span",{className:"rejt-value",style:b.value,onClick:E?null:this.handleEditMode},t);let e=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});v=E?null:e}return a.createElement("li",{className:"rejt-function-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),y,v)}};_0.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var ca=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:l,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k}=this.props,S=()=>!0,C=kt(e);switch(C){case Nx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:S,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Hx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Zx:return a.createElement(k0,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Vx:return a.createElement(St,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case zx:return a.createElement(St,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case qx:return a.createElement(St,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Ux:return a.createElement(St,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Wx:return a.createElement(St,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Gx:return a.createElement(St,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Yx:return a.createElement(_0,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,textareaElementGenerator:g,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Kx:return a.createElement(St,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});default:return null}}};ca.defaultProps={keyPath:[],deep:0};var wo=class extends h.Component{constructor(e){super(e);let t=-1===e.deep?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:a,nextDeep:n}=this.state,{beforeAddAction:o,logger:l}=this.props;o(e,a,n,t).then((()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(a[a.length-1],r),l({type:w0,keyPath:a,deep:n,key:e,newValue:t})})).catch(l.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:A0};delete a[e],this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:S0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r()})).catch(a)}))}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:l,dataType:i,getStyle:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=s(e,n,t,r,i),p=Object.getOwnPropertyNames(n),m=l(e,n,t,r,i),f=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",p.length," ",1===p.length?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,addForm:O,ul:R,delimiter:M}=d(e,t,r,n,p),T=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),F=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A}),N=T.map((e=>a.createElement(ca,{key:e,name:e,data:t[e],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(e),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})));return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"{"),!L&&j,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},N),!L&&l&&a.createElement("div",{className:"rejt-add-form",style:O},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"}"),!L&&F)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:l,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=l(e,r,n,o,i);return a.createElement("div",{className:"rejt-object-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};wo.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var St=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{C0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,inputElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=s(e,i,n,o,c),v=r&&!y,E=m(kl,g,o,e,i,c),x=h.cloneElement(d,{onClick:this.handleEdit}),w=h.cloneElement(p,{onClick:this.handleCancelEdit}),k=h.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});return a.createElement("li",{className:"rejt-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," : "),v?a.createElement("span",{className:"rejt-edit-form",style:b.editForm},k," ",w,x):a.createElement("span",{className:"rejt-value",style:b.value,onClick:y?null:this.handleEditMode},String(t)),!y&&!v&&S)}};St.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var Xx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Jx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Qx={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function e9(e){let t=e;if(0===t.indexOf("function"))return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var O0=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElement:u,textareaElement:d,minusMenuElement:p,plusMenuElement:m,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y,fallback:v=null}=this.props,E=kt(e),x=o;"Boolean"===kt(o)&&(x=()=>o);let w=u;u&&"Function"!==kt(u)&&(w=()=>u);let k=d;return d&&"Function"!==kt(d)&&(k=()=>d),"Object"===E||"Array"===E?a.createElement("div",{className:"rejt-tree"},a.createElement(ca,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:x,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElementGenerator:w,textareaElementGenerator:k,minusMenuElement:p,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y})):v}};O0.defaultProps={rootName:"root",isCollapsed:(e,t)=>-1!==t,getStyle:(e,t,r,a,n)=>{switch(n){case"Object":case"Error":return Xx;case"Array":return Jx;default:return Qx}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,a,n)=>e9(n),inputElement:()=>a.createElement("input",null),textareaElement:()=>a.createElement("textarea",null),fallback:null};var{window:t9}=Le,r9=_.div((({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}}))),Pa=_.button((({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9}))),ps=_(Ee)((({theme:e,icon:t,disabled:r})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:r?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":r?{}:{color:"subtract"===t?e.color.negative:e.color.ancillary},"svg + &":{marginLeft:0}}))),fs=_.input((({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===t?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}}))),n9=_(Ut)((({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),a9=_(ze.Textarea)((({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),o9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},l9=e=>{e.currentTarget.dispatchEvent(new t9.KeyboardEvent("keydown",o9))},i9=e=>{e.currentTarget.select()},s9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ms=({name:e,value:t,onChange:r})=>{let n=rp(),o=h.useMemo((()=>t&&J7(t)),[t]),l=null!=o,[i,s]=h.useState(!l),[c,u]=h.useState(null),d=h.useCallback((e=>{try{e&&r(JSON.parse(e)),u(void 0)}catch(t){u(t)}}),[r]),[p,m]=h.useState(!1),f=h.useCallback((()=>{r({}),m(!0)}),[m]),g=h.useRef(null);if(h.useEffect((()=>{p&&g.current&&g.current.select()}),[p]),!l)return a.createElement(ze.Button,{id:jn(e),onClick:f},"Set object");let b=a.createElement(a9,{ref:g,id:qe(e),name:e,defaultValue:null===t?"":JSON.stringify(t,null,2),onBlur:e=>d(e.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:c?"error":null});return a.createElement(r9,null,["Object","Array"].includes(kt(o))&&a.createElement(n9,{href:"#",onClick:e=>{e.preventDefault(),s((e=>!e))}},a.createElement(Ee,{icon:i?"eyeclose":"eye"}),a.createElement("span",null,"RAW")),i?b:a.createElement(O0,{data:o,rootName:e,onFullyUpdate:r,getStyle:s9(n),cancelButtonElement:a.createElement(Pa,{type:"button"},"Cancel"),editButtonElement:a.createElement(Pa,{type:"submit"},"Save"),addButtonElement:a.createElement(Pa,{type:"submit",primary:!0},"Save"),plusMenuElement:a.createElement(ps,{icon:"add"}),minusMenuElement:a.createElement(ps,{icon:"subtract"}),inputElement:(e,t,r,n)=>n?a.createElement(fs,{onFocus:i9,onBlur:l9}):a.createElement(fs,null),fallback:b}))},c9=_.input((({theme:e,min:t,max:r,value:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:at(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),T0=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),u9=_(T0)((({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+2*t.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),d9=_.div({display:"flex",alignItems:"center",width:"100%"});function p9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var f9=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:l=1,onBlur:i,onFocus:s})=>{let c=void 0!==t,u=h.useMemo((()=>p9(l)),[l]);return a.createElement(d9,null,a.createElement(T0,null,n),a.createElement(c9,{id:qe(e),type:"range",onChange:e=>{r(kx(e.target.value))},name:e,value:t,min:n,max:o,step:l,onFocus:s,onBlur:i}),a.createElement(u9,{numberOFDecimalsPlaces:u,max:o},c?t.toFixed(u):"--"," / ",o))},m9=_.label({display:"flex"}),g9=_.div((({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0}))),h9=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:l})=>{let[i,s]=h.useState(!1),c=h.useCallback((()=>{r(""),s(!0)}),[s]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:c},"Set string");let u="string"==typeof t;return a.createElement(m9,null,a.createElement(ze.Textarea,{id:qe(e),maxLength:l,onChange:e=>{r(e.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:i,valid:u?null:"error",name:e,value:u?t:"",onFocus:n,onBlur:o}),l&&a.createElement(g9,{isMaxed:(null==t?void 0:t.length)===l},(null==t?void 0:t.length)??0," / ",l))},b9=_(ze.Input)({padding:10});function y9(e){e.forEach((e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}))}var v9=({onChange:e,name:t,accept:r="image/*",value:n})=>{let o=h.useRef(null);return h.useEffect((()=>{null==n&&o.current&&(o.current.value=null)}),[n,t]),a.createElement(b9,{ref:o,id:qe(t),type:"file",name:t,multiple:!0,onChange:function(t){if(!t.target.files)return;let r=Array.from(t.target.files).map((e=>URL.createObjectURL(e)));e(r),y9(n)},accept:r,size:"flex"})},E9=h.lazy((()=>Wt((()=>import("./Color-6VNJS4EI-C8_EVnsw.js")),__vite__mapDeps([14,2,10,1,3,4,5,6,7,8,9,11]),import.meta.url))),x9=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(E9,{...e})),w9={array:ms,object:ms,boolean:yx,color:x9,date:Sx,number:_x,check:tr,"inline-check":tr,radio:tr,"inline-radio":tr,select:tr,"multi-select":tr,range:f9,text:h9,file:v9},gs=()=>a.createElement(a.Fragment,null,"-"),A9=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:l}=e,[i,s]=h.useState(!1),[c,u]=h.useState({value:t});h.useEffect((()=>{i||u({value:t})}),[i,t]);let d=h.useCallback((e=>(u({value:e}),r({[o]:e}),e)),[r,o]),p=h.useCallback((()=>s(!1)),[]),m=h.useCallback((()=>s(!0)),[]);if(!l||l.disable)return n?a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):a.createElement(gs,null);let f={name:o,argType:e,value:c.value,onChange:d,onBlur:p,onFocus:m},g=w9[l.type]||gs;return a.createElement(g,{...f,...l,controlType:l.type})},S9=_.span({fontWeight:"bold"}),C9=_.span((({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"}))),k9=_.div((({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Et({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),_9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?4:0}))),O9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12}))),T9=_.td((({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"}))),hn=e=>{var t;let[r,n]=h.useState(!1),{row:o,updateArgs:l,compact:i,expandable:s,initialExpandedArgs:c}=e,{name:u,description:d}=o,p=o.table||{},m=p.type||o.type,f=p.defaultValue||o.defaultValue,g=null==(t=o.type)?void 0:t.required,b=null!=d&&""!==d;return a.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},a.createElement(T9,{expandable:s},a.createElement(S9,null,u),g?a.createElement(C9,{title:"Required"},"*"):null),i?null:a.createElement("td",null,b&&a.createElement(k9,null,a.createElement(Qu,null,d)),null!=p.jsDocTags?a.createElement(a.Fragment,null,a.createElement(O9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c})),a.createElement(lx,{tags:p.jsDocTags})):a.createElement(_9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c}))),i?null:a.createElement("td",null,a.createElement(Ia,{value:f,initialExpandedArgs:c})),l?a.createElement("td",null,a.createElement(A9,{...e,isHovered:r})):null)},R9=_(Ee)((({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===e.base?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"}))),F9=_.span((({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),$9=_.td((({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}}))),D9=_.td((({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app}))),L9=_.td((()=>({position:"relative"}))),M9=_.tr((({theme:e})=>({"&:hover > td":{backgroundColor:`${Nt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),hs=_.button((()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}))),ja=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[l,i]=h.useState(n),s="subsection"===e?D9:$9,c=(null==r?void 0:r.length)||0,u="subsection"===e?`${c} item${1!==c?"s":""}`:"",d=l?"arrowdown":"arrowright",p=`${l?"Hide":"Show"} ${"subsection"===e?c:t} item${1!==c?"s":""}`;return a.createElement(a.Fragment,null,a.createElement(M9,{title:p},a.createElement(s,{colSpan:1},a.createElement(hs,{onClick:e=>i(!l),tabIndex:0},p),a.createElement(F9,null,a.createElement(R9,{icon:d}),t)),a.createElement(L9,{colSpan:o-1},a.createElement(hs,{onClick:e=>i(!l),tabIndex:-1,style:{outline:"none"}},p),l?null:u)),l?r:null)},bn=_.div((({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}}))),ge=_.div((({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"}))),se=_.div((({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3}))),he=[2,4,2,2],B9=()=>a.createElement(a.Fragment,null,a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"})))),I9=_.div((({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),P9=_.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),j9=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor}))),N9=_.div((({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor}))),H9=_.div((({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25}))),Z9=_.div((({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor}))),V9=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect((()=>{let e=setTimeout((()=>{r(!1)}),100);return()=>clearTimeout(e)}),[]),t?null:a.createElement(I9,{inAddonPanel:e},a.createElement(P9,null,a.createElement(j9,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),a.createElement(N9,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),a.createElement(H9,null,e&&a.createElement(a.Fragment,null,a.createElement(_t,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},a.createElement(Ee,{icon:"video"})," Watch 5m video"),a.createElement(Z9,null),a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},z9=_.table((({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:"light"===e.base?te(.25,e.color.defaultText):te(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:"light"===e.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}}))),q9=_(Ut)((({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"}))),U9=_.span({display:"flex",justifyContent:"space-between"}),W9={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,a;return+!(null==(r=t.type)||!r.required)-+!(null==(a=e.type)||!a.required)||e.name.localeCompare(t.name)},none:void 0},G9=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach((([e,t])=>{let{category:a,subcategory:n}=(null==t?void 0:t.table)||{};if(a){let o=r.sections[a]||{ungrouped:[],subsections:{}};if(n){let r=o.subsections[n]||[];r.push({key:e,...t}),o.subsections[n]=r}else o.ungrouped.push({key:e,...t});r.sections[a]=o}else if(n){let a=r.ungroupedSubsections[n]||[];a.push({key:e,...t}),r.ungroupedSubsections[n]=a}else r.ungrouped.push({key:e,...t})}));let a=W9[t],n=e=>a?Object.keys(e).reduce(((t,r)=>({...t,[r]:e[r].sort(a)})),{}):e;return{ungrouped:r.ungrouped.sort(a),ungroupedSubsections:n(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce(((e,t)=>({...e,[t]:{ungrouped:r.sections[t].ungrouped.sort(a),subsections:n(r.sections[t].subsections)}})),{})}},Y9=(e,t,r)=>{try{return H0(e,t,r)}catch(a){return _8.warn(a.message),!1}},K9=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:l,sort:i="none",isLoading:s}=e;if("error"in e){let{error:t}=e;return a.createElement(g0,null,t,"\xa0",a.createElement(_t,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(s)return a.createElement(B9,null);let{rows:c,args:u,globals:d}="rows"in e&&e,p=G9(Ty(c,(e=>{var t;return!(null!=(t=null==e?void 0:e.table)&&t.disable)&&Y9(e,u||{},d||{})})),i),m=0===p.ungrouped.length,h=0===Object.entries(p.sections).length,f=0===Object.entries(p.ungroupedSubsections).length;if(m&&h&&f)return a.createElement(V9,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(p.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:l};return a.createElement(ol,null,a.createElement(z9,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},a.createElement("thead",{className:"docblock-argstable-head"},a.createElement("tr",null,a.createElement("th",null,a.createElement("span",null,"Name")),n?null:a.createElement("th",null,a.createElement("span",null,"Description")),n?null:a.createElement("th",null,a.createElement("span",null,"Default")),t?a.createElement("th",null,a.createElement(U9,null,"Control"," ",!s&&r&&a.createElement(q9,{onClick:()=>r(),title:"Reset controls"},a.createElement(Ee,{icon:"undo","aria-hidden":!0})))):null)),a.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(p.ungroupedSubsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y})))))),Object.entries(p.sections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"section",colSpan:g},t.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(t.subsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y}))))))))))))};_.div((({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),_.div(re,(({theme:e})=>({...sa(e),margin:"25px 0 40px",padding:"30px 20px"}))),_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}))),_.div((({theme:e})=>({color:"light"===e.base?te(.2,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),_.div((({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),_.div({display:"flex",flexDirection:"row"}),_.div((({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}))),_.div((({theme:e})=>({...sa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}))),_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),_.div({flex:1,display:"flex",flexDirection:"row"}),_.div({display:"flex",alignItems:"flex-start"}),_.div({flex:"0 0 30%"}),_.div({flex:1}),_.div((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div((({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}))),_.div((({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}))),_.div((({theme:e})=>({...sa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),_.div({display:"flex",flexFlow:"row wrap"});var X9=e=>`anchor--${e}`,R0=({storyId:e,children:t})=>a.createElement("div",{id:X9(e),className:"sb-anchor"},t);Le&&void 0===Le.__DOCS_CONTEXT__&&(Le.__DOCS_CONTEXT__=h.createContext(null),Le.__DOCS_CONTEXT__.displayName="DocsContext");var ke=Le?Le.__DOCS_CONTEXT__:h.createContext(null),nn=(e,t)=>h.useContext(ke).resolveOf(e,t);function J9(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Q9(e,t){let r=Ol([e],t);return r&&r[0]}function Ol(e,t){let[r,a]=h.useState({});return h.useEffect((()=>{Promise.all(e.map((async e=>{let r=await t.loadStory(e);a((t=>t[e]===r?t:{...t,[e]:r}))})))})),e.map((e=>{if(r[e])return r[e];try{return t.storyById(e)}catch{return null}}))}function F0(e){return h8(e)}var $0=h.createContext({sources:{}}),D0="--unknown--",ew=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect((()=>{let e=(e,t=null,r=!1)=>{let{id:a,args:o,source:l,format:i}="string"==typeof e?{id:e,source:t,format:r}:e,s=o?F0(o):D0;n((e=>({...e,[a]:{...e[a],[s]:{code:l,format:i}}})))};return t.on(Bl,e),()=>t.off(Bl,e)}),[]),a.createElement($0.Provider,{value:{sources:r}},e)},tw=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(tw||{}),rw=e=>{let t=e.map((e=>{var t,r;return null==(r=null==(t=e.parameters.docs)?void 0:t.source)?void 0:r.state})).filter(Boolean);return 0===t.length?"closed":t[0]},nw=(e,t,r)=>{let{sources:a}=r,n=null==a?void 0:a[e];return(null==n?void 0:n[F0(t)])||(null==n?void 0:n[D0])||{code:""}},aw=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:a})=>{var n,o,l,i,s,c;let{__isArgsStory:u}=t.parameters,d=(null==(n=t.parameters.docs)?void 0:n.source)||{},p=r||d.type||pa.AUTO;if(void 0!==d.code)return d.code;let m=p===pa.DYNAMIC||p===pa.AUTO&&e&&u?e:d.originalSource||"";return d.transformSource&&fe(we`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. +`,Jh=({code:e,...t})=>a.createElement(Xh,{id:"clipboard-code",...t},e),Ou=du,Tu={};Object.keys(du).forEach((e=>{Tu[e]=h.forwardRef(((t,r)=>h.createElement(e,{...t,ref:r})))}));const Qh=Object.freeze(Object.defineProperty({__proto__:null,A:Wc,ActionBar:Zo,AddonPanel:Nh,Badge:Eg,Bar:ul,Blockquote:Gc,Button:bu,ClipboardCode:Jh,Code:rl,DL:Kc,Div:Yc,DocumentWrapper:_g,ErrorFormatter:gu,FlexBar:ra,Form:ze,H1:Xc,H2:nl,H3:al,H4:Jc,H5:Qc,H6:eu,HR:tu,IconButton:Ut,IconButtonSkeleton:Au,Icons:Ee,Img:ru,LI:nu,Link:_t,ListItem:il,Loader:ku,OL:au,P:ou,Placeholder:fu,Pre:lu,ResetWrapper:ol,ScrollArea:zo,Separator:pl,Spaced:$g,Span:iu,StorybookIcon:Zh,StorybookLogo:Hh,Symbols:xg,SyntaxHighlighter:Qn,TT:cu,TabBar:dl,TabButton:rn,TabWrapper:Bh,Table:su,Tabs:na,TabsState:Cu,TooltipLinkList:sl,TooltipMessage:xu,TooltipNote:bh,UL:uu,WithTooltip:ch,WithTooltipPure:Eu,Zoom:mu,codeCommon:Et,components:Ou,createCopyToClipboardFunction:Oc,getStoryHref:_u,icons:Wr,interleaveSeparators:Ih,nameSpaceClassNames:ee,resetComponents:Tu,withReset:re},Symbol.toStringTag,{value:"Module"}));function eb(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}function tb(e,t,r){if(z0())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var n=new(e.bind.apply(e,a));return r&&vs(n,r.prototype),n}function fo(e){var t="function"==typeof Map?new Map:void 0;return fo=function(e){if(null===e||!eb(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return tb(e,arguments,q0(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),vs(r,e)},fo(e)}var ct=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,Z0(r)}return V0(t,e),t}(fo(Error));function _a(e){return Math.round(255*e)}function rb(e,t,r){return _a(e)+","+_a(t)+","+_a(r)}function Gr(e,t,r,a){if(void 0===a&&(a=rb),0===t)return a(r,r,r);var n=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,l=o*(1-Math.abs(n%2-1)),i=0,s=0,c=0;n>=0&&n<1?(i=o,s=l):n>=1&&n<2?(i=l,s=o):n>=2&&n<3?(s=o,c=l):n>=3&&n<4?(s=l,c=o):n>=4&&n<5?(i=l,c=o):n>=5&&n<6&&(i=o,c=l);var u=r-o/2;return a(i+u,s+u,c+u)}var $i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nb(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return $i[t]?"#"+$i[t]:e}var ab=/^#[a-fA-F0-9]{6}$/,ob=/^#[a-fA-F0-9]{8}$/,lb=/^#[a-fA-F0-9]{3}$/,ib=/^#[a-fA-F0-9]{4}$/,Oa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,sb=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cb=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ub=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function mr(e){if("string"!=typeof e)throw new ct(3);var t=nb(e);if(t.match(ab))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ob)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(lb))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ib)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=Oa.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=sb.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var l=cb.exec(t);if(l){var i="rgb("+Gr(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=Oa.exec(i);if(!s)throw new ct(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=ub.exec(t.substring(0,50));if(c){var u="rgb("+Gr(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Oa.exec(u);if(!d)throw new ct(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new ct(5)}function db(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),l=(n+o)/2;if(n===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,s=n-o,c=l>.5?s/(2-n-o):s/(n+o);switch(n){case t:i=(r-a)/s+(r=1?Mn(e,t,r):"rgba("+Gr(e,t,r)+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?Mn(e.hue,e.saturation,e.lightness):"rgba("+Gr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ct(2)}function go(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return mo("#"+jt(e)+jt(t)+jt(r));if("object"==typeof e&&void 0===t&&void 0===r)return mo("#"+jt(e.red)+jt(e.green)+jt(e.blue));throw new ct(6)}function at(e,t,r,a){if("string"==typeof e&&"number"==typeof t){var n=mr(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof a)return a>=1?go(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===a)return e.alpha>=1?go(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ct(7)}var hb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||typeof e.alpha>"u")},bb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},yb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||typeof e.alpha>"u")},vb=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Ft(e){if("object"!=typeof e)throw new ct(8);if(bb(e))return at(e);if(hb(e))return go(e);if(vb(e))return gb(e);if(yb(e))return mb(e);throw new ct(8)}function Ru(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ru(e,t,a)}}function Fe(e){return Ru(e,e.length,[])}function Eb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{hue:r.hue+parseFloat(e)}))}function vr(e,t,r){return Math.max(e,Math.min(t,r))}function xb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness-parseFloat(e))}))}Fe(Eb);var wb=Fe(xb),et=wb;function Ab(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation-parseFloat(e))}))}function Sb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{lightness:vr(0,1,r.lightness+parseFloat(e))}))}Fe(Ab);var Cb=Fe(Sb),Nt=Cb;function kb(e,t,r){if("transparent"===t)return r;if("transparent"===r)return t;if(0===e)return r;var a=mr(t),n=Be({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),o=mr(r),l=Be({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=n.alpha-l.alpha,s=2*parseFloat(e)-1,c=((s*i==-1?s:s+i)/(1+s*i)+1)/2,u=1-c;return at({red:Math.floor(n.red*c+l.red*u),green:Math.floor(n.green*c+l.green*u),blue:Math.floor(n.blue*c+l.blue*u),alpha:n.alpha*parseFloat(e)+l.alpha*(1-parseFloat(e))})}var _b=Fe(kb),Fu=_b;function Ob(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,(100*a+100*parseFloat(e))/100)}))}var Tb=Fe(Ob),fn=Tb;function Rb(e,t){if("transparent"===t)return t;var r=Rt(t);return Ft(Be({},r,{saturation:vr(0,1,r.saturation+parseFloat(e))}))}function Fb(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{hue:parseFloat(e)}))}function $b(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{lightness:parseFloat(e)}))}function Db(e,t){return"transparent"===t?t:Ft(Be({},Rt(t),{saturation:parseFloat(e)}))}function Lb(e,t){return"transparent"===t?t:Fu(parseFloat(e),"rgb(0, 0, 0)",t)}function Mb(e,t){return"transparent"===t?t:Fu(parseFloat(e),"rgb(255, 255, 255)",t)}function Bb(e,t){if("transparent"===t)return t;var r=mr(t),a="number"==typeof r.alpha?r.alpha:1;return at(Be({},r,{alpha:vr(0,1,+(100*a-100*parseFloat(e)).toFixed(2)/100)}))}Fe(Rb),Fe(Fb),Fe($b),Fe(Db),Fe(Lb),Fe(Mb);var Ib=Fe(Bb),te=Ib,Pb=Es,jb=U0,Nb=Object.prototype,Hb=Nb.hasOwnProperty;function Zb(e,t,r){var a=e[t];(!Hb.call(e,t)||!jb(a,r)||void 0===r&&!(t in e))&&Pb(e,t,r)}var fl=Zb,Vb=fl,zb=xs,qb=W0,Di=Pn,Ub=G0;function Wb(e,t,r,a){if(!Di(e))return e;for(var n=-1,o=(t=zb(t,e)).length,l=o-1,i=e;null!=i&&++n(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),Bi={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Fy=["style","script"],$y=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Dy=/mailto:/i,Ly=/\n{2,}$/,Lu=/^(\s*>[\s\S]*?)(?=\n{2,})/,My=/^ *> ?/gm,By=/^ {2,}\n/,Iy=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Mu=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Bu=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Py=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,jy=/^(?:\n *)*\n/,Ny=/\r\n?/g,Hy=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Zy=/^\[\^([^\]]+)]/,Vy=/\f/g,zy=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,qy=/^\s*?\[(x|\s)\]/,Iu=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Pu=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ju=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ho=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Uy=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Nu=/^)/,Wy=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bo=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Gy=/^\{.*\}$/,Yy=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ky=/^<([^ >]+@[^ >]+)>/,Xy=/^<([^ >]+:\/[^ >]+)>/,Jy=/-([a-z])?/gi,Hu=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Qy=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,e3=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,t3=/^\[([^\]]*)\] ?\[([^\]]*)\]/,r3=/(\[|\])/g,n3=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,a3=/\t/g,o3=/(^ *\||\| *$)/g,l3=/^ *:-+: *$/,i3=/^ *:-+ *$/,s3=/^ *-+: *$/,aa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",c3=new RegExp(`^([*_])\\1${aa}\\1\\1(?!\\1)`),u3=new RegExp(`^([*_])${aa}\\1(?!\\1|\\w)`),d3=new RegExp(`^==${aa}==`),p3=new RegExp(`^~~${aa}~~`),f3=/^\\([^0-9A-Za-z\s])/,m3=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,g3=/^\n+/,h3=/^([ \t]*)/,b3=/\\([^\\])/g,Ii=/ *\n+$/,y3=/(?:^|\n)( *)$/,gl="(?:\\d+\\.)",hl="(?:[*+-])";function Zu(e){return"( *)("+(1===e?gl:hl)+") +"}const Vu=Zu(1),zu=Zu(2);function qu(e){return new RegExp("^"+(1===e?Vu:zu))}const v3=qu(1),E3=qu(2);function Uu(e){return new RegExp("^"+(1===e?Vu:zu)+"[^\\n]*(?:\\n(?!\\1"+(1===e?gl:hl)+" )[^\\n]*)*(\\n|$)","gm")}const Wu=Uu(1),Gu=Uu(2);function Yu(e){const t=1===e?gl:hl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ku=Yu(1),Xu=Yu(2);function Pi(e,t){const r=1===t,a=r?Ku:Xu,n=r?Wu:Gu,o=r?v3:E3;return{match(e,t,r){const n=y3.exec(r);return n&&(t.list||!t.inline&&!t.simple)?a.exec(e=n[1]+e):null},order:1,parse(e,t,a){const l=r?+e[2]:void 0,i=e[0].replace(Ly,"\n").match(n);let s=!1;return{items:i.map((function(e,r){const n=o.exec(e)[0].length,l=new RegExp("^ {1,"+n+"}","gm"),c=e.replace(l,"").replace(o,""),u=r===i.length-1,d=-1!==c.indexOf("\n\n")||u&&s;s=d;const p=a.inline,m=a.list;let h;a.list=!0,d?(a.inline=!1,h=c.replace(Ii,"\n\n")):(a.inline=!0,h=c.replace(Ii,""));const f=t(h,a);return a.inline=p,a.list=m,f})),ordered:r,start:l}},render:(t,r,a)=>e(t.ordered?"ol":"ul",{key:a.key,start:t.type===j.orderedList?t.start:void 0},t.items.map((function(t,n){return e("li",{key:n},r(t,a))})))}}const x3=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),w3=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ju=[Lu,Mu,Bu,Iu,ju,Pu,Nu,Hu,Wu,Ku,Gu,Xu],A3=[...Ju,/^[^\n]+(?: \n|\n{2,})/,ho,bo];function mn(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function S3(e){return s3.test(e)?"right":l3.test(e)?"center":i3.test(e)?"left":null}function ji(e,t,r,a){const n=r.inTable;r.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce(((e,n)=>("|"===n.trim()?e.push(a?{type:j.tableSeparator}:{type:j.text,text:n}):""!==n&&e.push.apply(e,t(n,r)),e)),[]);r.inTable=n;let l=[[]];return o.forEach((function(e,t){e.type===j.tableSeparator?0!==t&&t!==o.length-1&&l.push([]):(e.type!==j.text||null!=o[t+1]&&o[t+1].type!==j.tableSeparator||(e.text=e.text.trimEnd()),l[l.length-1].push(e))})),l}function C3(e,t,r){r.inline=!0;const a=e[2]?e[2].replace(o3,"").split("|").map(S3):[],n=e[3]?(l=e[3],i=t,s=r,l.trim().split("\n").map((function(e){return ji(e,i,s,!0)}))):[],o=ji(e[1],t,r,!!n.length);var l,i,s;return r.inline=!1,n.length?{align:a,cells:n,header:o,type:j.table}:{children:o,type:j.paragraph}}function Ni(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function wt(e){return function(t,r){return r.inline?e.exec(t):null}}function At(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Tr(e){return function(t){return e.exec(t)}}function k3(e,t,r){if(t.inline||t.simple||r&&!r.endsWith("\n"))return null;let a="";e.split("\n").every((e=>!Ju.some((t=>t.test(e)))&&(a+=e+"\n",e.trim())));const n=a.trimEnd();return""==n?null:[a,n]}function _3(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Hi(e){return e.replace(b3,"$1")}function Sn(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!0,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function O3(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!1,r.simple=!0;const o=e(t,r);return r.inline=a,r.simple=n,o}function T3(e,t,r){const a=r.inline||!1;r.inline=!1;const n=e(t,r);return r.inline=a,n}const Ra=(e,t,r)=>({children:Sn(t,e[1],r)});function Fa(){return{}}function $a(){return null}function R3(...e){return e.filter(Boolean).join(" ")}function Da(e,t,r){let a=e;const n=t.split(".");for(;n.length&&(a=a[n[0]],void 0!==a);)n.shift();return a||r}function F3(e="",t={}){function r(e,r,...a){const n=Da(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const r=Da(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Da(t,`${e}.component`,e):e}(e,t.overrides),Zt({},r,n,{className:R3(null==r?void 0:r.className,n.className)||void 0}),...a)}function a(e){e=e.replace(zy,"");let a=!1;t.forceInline?a=!0:t.forceBlock||(a=!1===n3.test(e));const n=c(s(a?e:`${e.trimEnd().replace(g3,"")}\n\n`,{inline:a}));for(;"string"==typeof n[n.length-1]&&!n[n.length-1].trim();)n.pop();if(null===t.wrapper)return n;const o=t.wrapper||(a?"span":"div");let l;if(n.length>1||t.forceWrapper)l=n;else{if(1===n.length)return l=n[0],"string"==typeof l?r("span",{key:"outer"},l):l;l=null}return h.createElement(o,{key:"outer"},l)}function n(e,r){const n=r.match($y);return n?n.reduce((function(r,n,o){const l=n.indexOf("=");if(-1!==l){const s=(i=n.slice(0,l),-1!==i.indexOf("-")&&null===i.match(Wy)&&(i=i.replace(Jy,(function(e,t){return t.toUpperCase()}))),i).trim(),c=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(n.slice(l+1).trim()),u=Mi[s]||s,d=r[u]=function(e,t,r,a){return"style"===t?r.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===t||"src"===t?a(r,e,t):(r.match(Gy)&&(r=r.slice(1,r.length-1)),"true"===r||"false"!==r&&r)}(e,s,c,t.sanitizer);"string"==typeof d&&(ho.test(d)||bo.test(d))&&(r[u]=h.cloneElement(a(d.trim()),{key:o}))}else"style"!==n&&(r[Mi[n]||n]=!0);var i;return r}),{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||_3,t.slugify=t.slugify||mn,t.namedCodesToUnicode=t.namedCodesToUnicode?Zt({},Bi,t.namedCodesToUnicode):Bi,t.createElement=t.createElement||h.createElement;const o=[],l={},i={[j.blockQuote]:{match:gt(Lu),order:1,parse:(e,t,r)=>({children:t(e[0].replace(My,""),r)}),render:(e,t,a)=>r("blockquote",{key:a.key},t(e.children,a))},[j.breakLine]:{match:Tr(By),order:1,parse:Fa,render:(e,t,a)=>r("br",{key:a.key})},[j.breakThematic]:{match:gt(Iy),order:1,parse:Fa,render:(e,t,a)=>r("hr",{key:a.key})},[j.codeBlock]:{match:gt(Bu),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,a)=>r("pre",{key:a.key},r("code",Zt({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[j.codeFenced]:{match:gt(Mu),order:0,parse:e=>({attrs:n("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:j.codeBlock})},[j.codeInline]:{match:At(Py),order:3,parse:e=>({text:e[2]}),render:(e,t,a)=>r("code",{key:a.key},e.text)},[j.footnote]:{match:gt(Hy),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:$a},[j.footnoteReference]:{match:wt(Zy),order:1,parse:e=>({target:`#${t.slugify(e[1],mn)}`,text:e[1]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href")},r("sup",{key:n.key},e.text))},[j.gfmTask]:{match:wt(qy),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,a)=>r("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"})},[j.heading]:{match:gt(t.enforceAtxHeadings?Pu:Iu),order:1,parse:(e,r,a)=>({children:Sn(r,e[2],a),id:t.slugify(e[2],mn),level:e[1].length}),render:(e,t,a)=>r(`h${e.level}`,{id:e.id,key:a.key},t(e.children,a))},[j.headingSetext]:{match:gt(ju),order:0,parse:(e,t,r)=>({children:Sn(t,e[1],r),level:"="===e[2]?1:2,type:j.heading})},[j.htmlBlock]:{match:Tr(ho),order:1,parse(e,t,r){const[,a]=e[3].match(h3),o=new RegExp(`^${a}`,"gm"),l=e[3].replace(o,""),i=(s=l,A3.some((e=>e.test(s)))?T3:Sn);var s;const c=e[1].toLowerCase(),u=-1!==Fy.indexOf(c),d=(u?c:e[1]).trim(),p={attrs:n(d,e[2]),noInnerParse:u,tag:d};return r.inAnchor=r.inAnchor||"a"===c,u?p.text=e[3]:p.children=i(t,l,r),r.inAnchor=!1,p},render:(e,t,a)=>r(e.tag,Zt({key:a.key},e.attrs),e.text||t(e.children,a))},[j.htmlSelfClosing]:{match:Tr(bo),order:1,parse(e){const t=e[1].trim();return{attrs:n(t,e[2]||""),tag:t}},render:(e,t,a)=>r(e.tag,Zt({},e.attrs,{key:a.key}))},[j.htmlComment]:{match:Tr(Nu),order:1,parse:()=>({}),render:$a},[j.image]:{match:At(w3),order:1,parse:e=>({alt:e[1],target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[j.link]:{match:wt(x3),order:3,parse:(e,t,r)=>({children:O3(t,e[1],r),target:Hi(e[2]),title:e[3]}),render:(e,a,n)=>r("a",{key:n.key,href:t.sanitizer(e.target,"a","href"),title:e.title},a(e.children,n))},[j.linkAngleBraceStyleDetector]:{match:wt(Xy),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],type:j.link})},[j.linkBareUrlDetector]:{match:(e,t)=>t.inAnchor?null:wt(Yy)(e,t),order:0,parse:e=>({children:[{text:e[1],type:j.text}],target:e[1],title:void 0,type:j.link})},[j.linkMailtoDetector]:{match:wt(Ky),order:0,parse(e){let t=e[1],r=e[1];return Dy.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:j.text}],target:r,type:j.link}}},[j.orderedList]:Pi(r,1),[j.unorderedList]:Pi(r,2),[j.newlineCoalescer]:{match:gt(jy),order:3,parse:Fa,render:()=>"\n"},[j.paragraph]:{match:k3,order:3,parse:Ra,render:(e,t,a)=>r("p",{key:a.key},t(e.children,a))},[j.ref]:{match:wt(Qy),order:0,parse:e=>(l[e[1]]={target:e[2],title:e[4]},{}),render:$a},[j.refImage]:{match:At(e3),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("img",{key:n.key,alt:e.alt,src:t.sanitizer(l[e.ref].target,"img","src"),title:l[e.ref].title}):null},[j.refLink]:{match:wt(t3),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(r3,"\\$1"),r),ref:e[2]}),render:(e,a,n)=>l[e.ref]?r("a",{key:n.key,href:t.sanitizer(l[e.ref].target,"a","href"),title:l[e.ref].title},a(e.children,n)):r("span",{key:n.key},a(e.fallbackChildren,n))},[j.table]:{match:gt(Hu),order:1,parse:C3,render(e,t,a){const n=e;return r("table",{key:a.key},r("thead",null,r("tr",null,n.header.map((function(e,o){return r("th",{key:o,style:Ni(n,o)},t(e,a))})))),r("tbody",null,n.cells.map((function(e,o){return r("tr",{key:o},e.map((function(e,o){return r("td",{key:o,style:Ni(n,o)},t(e,a))})))}))))}},[j.text]:{match:Tr(m3),order:4,parse:e=>({text:e[0].replace(Uy,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},[j.textBolded]:{match:At(c3),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("strong",{key:a.key},t(e.children,a))},[j.textEmphasized]:{match:At(u3),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,a)=>r("em",{key:a.key},t(e.children,a))},[j.textEscaped]:{match:At(f3),order:1,parse:e=>({text:e[1],type:j.text})},[j.textMarked]:{match:At(d3),order:3,parse:Ra,render:(e,t,a)=>r("mark",{key:a.key},t(e.children,a))},[j.textStrikethroughed]:{match:At(p3),order:3,parse:Ra,render:(e,t,a)=>r("del",{key:a.key},t(e.children,a))}};!0===t.disableParsingRawHTML&&(delete i[j.htmlBlock],delete i[j.htmlSelfClosing]);const s=function(e){let t=Object.keys(e);function r(a,n){let o=[],l="";for(;a;){let i=0;for(;ia(e,t,r)),e,t,r):a(e,t,r)},function e(t,r={}){if(Array.isArray(t)){const a=r.key,n=[];let o=!1;for(let l=0;l{let{children:t="",options:r}=e,a=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,Ry);return h.cloneElement(F3(t,r),a)};function $3(e,t,r,a){for(var n=e.length,o=r+(a?1:-1);a?o--:++o-1}var q3=z3;function U3(e,t,r){for(var a=-1,n=null==e?0:e.length;++a=iv){var c=t?null:ov(e);if(c)return lv(c);l=!1,n=av,s=new tv}else s=t?[]:i;e:for(;++afunction(){return t||(0,e[a0(e)[0]])((t={exports:{}}).exports,t),t.exports},n6=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a0(t))!r6.call(e,n)&&n!==r&&n0(e,n,{get:()=>t[n],enumerable:!(a=e6(t,n))||a.enumerable});return e},yl=(e,t,r)=>(r=null!=e?Q7(t6(e)):{},n6(e&&e.__esModule?r:n0(r,"default",{value:e,enumerable:!0}),e)),a6=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],o6=["detail"];function l6(e){const t=a6.filter((t=>void 0!==e[t])).reduce(((t,r)=>({...t,[r]:e[r]})),{});return e instanceof CustomEvent&&o6.filter((t=>void 0!==e[t])).forEach((r=>{t[r]=e[r]})),t}var o0=Ne({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}}}),l0=Ne({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,a=o0();t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}}}),i6=Ne({"node_modules/function-bind/implementation.js"(e,t){var r=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),l=Math.max(0,t.length-o.length),i=[],s=0;s"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:d((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:d((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},f=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=d(n.prototype))}return h[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=vl(),y=s6(),v=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(e,t){var r,n=e;if(y(g,n)&&(n="%"+(r=g[n])[0]+"%"),y(h,n)){var l=h[n];if(l===p&&(l=f(n)),typeof l>"u"&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:l}}throw new a("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=w(e,0,1),r=w(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,S,(function(e,t,r,a){n[n.length]=r?x(a,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",l=A("%"+n+"%",t),s=l.name,c=l.value,u=!1,d=l.alias;d&&(n=d[0],E(r,v([0,1],d)));for(var p=1,m=!0;p=r.length){var _=i(c,f);c=(m=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[f]}else m=y(c,f),c=c[f];m&&!u&&(h[s]=c)}}return c}}}),c6=Ne({"node_modules/call-bind/index.js"(e,t){var r=vl(),a=i0(),n=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),l=a("%Reflect.apply%",!0)||r.call(o,n),i=a("%Object.getOwnPropertyDescriptor%",!0),s=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(e){var t=l(r,o,arguments);i&&s&&(i(t,"length").configurable&&s(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var u=function(){return l(r,n,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u}}),u6=Ne({"node_modules/call-bind/callBound.js"(e,t){var r=i0(),a=c6(),n=a(r("String.prototype.indexOf"));t.exports=function(e,t){var o=r(e,!!t);return"function"==typeof o&&n(e,".prototype.")>-1?a(o):o}}}),d6=Ne({"node_modules/has-tostringtag/shams.js"(e,t){var r=o0();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),p6=Ne({"node_modules/is-regex/index.js"(e,t){var r,a,n,o,l=u6(),i=d6()();i&&(r=l("Object.prototype.hasOwnProperty"),a=l("RegExp.prototype.exec"),n={},o={toString:s=function(){throw n},valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(o[Symbol.toPrimitive]=s));var s,c=l("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;t.exports=i?function(e){if(!e||"object"!=typeof e)return!1;var t=u(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{a(e,o)}catch(l){return l===n}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}}}),f6=Ne({"node_modules/is-function/index.js"(e,t){t.exports=function(e){if(!e)return!1;var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var r=Object.prototype.toString}}),m6=Ne({"node_modules/is-symbol/index.js"(e,t){var r,a,n,o=Object.prototype.toString;l0()()?(r=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,n=function(e){return"symbol"==typeof e.valueOf()&&a.test(r.call(e))},t.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o.call(e))return!1;try{return n(e)}catch{return!1}}):t.exports=function(e){return!1}}}),g6=yl(p6()),h6=yl(f6()),b6=yl(m6());function y6(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}var v6="object"==typeof global&&global&&global.Object===Object&&global,E6=v6,x6="object"==typeof self&&self&&self.Object===Object&&self,w6=E6||x6||Function("return this")(),El=w6,A6=El.Symbol,gr=A6,s0=Object.prototype,S6=s0.hasOwnProperty,C6=s0.toString,Rr=gr?gr.toStringTag:void 0;function k6(e){var t=S6.call(e,Rr),r=e[Rr];try{e[Rr]=void 0;var a=!0}catch{}var n=C6.call(e);return a&&(t?e[Rr]=r:delete e[Rr]),n}var _6=k6,O6=Object.prototype,T6=O6.toString;function R6(e){return T6.call(e)}var F6=R6,$6="[object Null]",D6="[object Undefined]",Xi=gr?gr.toStringTag:void 0;function L6(e){return null==e?void 0===e?D6:$6:Xi&&Xi in Object(e)?_6(e):F6(e)}var M6=L6,Ji=gr?gr.prototype:void 0;function B6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ji&&Ji.toString;var c0=B6,I6="[object AsyncFunction]",P6="[object Function]",j6="[object GeneratorFunction]",N6="[object Proxy]";function H6(e){if(!c0(e))return!1;var t=M6(e);return t==P6||t==j6||t==I6||t==N6}var Z6=H6,V6=El["__core-js_shared__"],Ma=V6,Qi=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function z6(e){return!!Qi&&Qi in e}var q6=z6,U6=Function.prototype,W6=U6.toString;function G6(e){if(null!=e){try{return W6.call(e)}catch{}try{return e+""}catch{}}return""}var Y6=G6,K6=/[\\^$.*+?()[\]{}|]/g,X6=/^\[object .+?Constructor\]$/,J6=Function.prototype,Q6=Object.prototype,eE=J6.toString,tE=Q6.hasOwnProperty,rE=RegExp("^"+eE.call(tE).replace(K6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nE(e){return!(!c0(e)||q6(e))&&(Z6(e)?rE:X6).test(Y6(e))}var aE=nE;function oE(e,t){return null==e?void 0:e[t]}var lE=oE;function iE(e,t){var r=lE(e,t);return aE(r)?r:void 0}var u0=iE;function sE(e,t){return e===t||e!=e&&t!=t}var cE=sE,uE=u0(Object,"create"),Yr=uE;function dE(){this.__data__=Yr?Yr(null):{},this.size=0}var pE=dE;function fE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mE=fE,gE="__lodash_hash_undefined__",hE=Object.prototype,bE=hE.hasOwnProperty;function yE(e){var t=this.__data__;if(Yr){var r=t[e];return r===gE?void 0:r}return bE.call(t,e)?t[e]:void 0}var vE=yE,EE=Object.prototype,xE=EE.hasOwnProperty;function wE(e){var t=this.__data__;return Yr?void 0!==t[e]:xE.call(t,e)}var AE=wE,SE="__lodash_hash_undefined__";function CE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&void 0===t?SE:t,this}var kE=CE;function Er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}var IE=BE;function PE(e,t){var r=this.__data__,a=la(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var jE=PE;function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{let t=null,r=!1,a=!1,n=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;lu8(e).replace(/\n\s*/g,"").trim())),p8=function(e,t){const r=t.slice(0,t.indexOf("{")),a=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let n=r;return n=n.replace(e,"function"),n+a},f8=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function p0(e){if(!c8(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=l6(t),r=!0),t=Object.keys(t).reduce(((e,a)=>{try{t[a]&&t[a].toJSON,e[a]=t[a]}catch{r=!0}return e}),{}),r?t:e}var m8=function(e){let t,r,a,n;return function(o,l){try{if(""===o)return n=[],t=new Map([[l,"[]"]]),r=new Map,a=[],l;const i=r.get(this)||this;for(;a.length&&i!==a[0];)a.shift(),n.pop();if("boolean"==typeof l)return l;if(void 0===l)return e.allowUndefined?"_undefined_":void 0;if(null===l)return null;if("number"==typeof l)return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if("bigint"==typeof l)return`_bigint_${l.toString()}`;if("string"==typeof l)return f8.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,g6.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,h6.default)(l)){if(!e.allowFunction)return;const{name:t}=l,r=l.toString();return r.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${t}|${(()=>{}).toString()}`:`_function_${t}|${d8(p8(o,r))}`}if((0,b6.default)(l)){if(!e.allowSymbol)return;const t=Symbol.keyFor(l);return void 0!==t?`_gsymbol_${t}`:`_symbol_${l.toString().slice(7,-1)}`}if(a.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(n)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&!e.allowClass)return;const s=t.get(l);if(!s){const i=Array.isArray(l)?l:p0(l);if(l.constructor&&l.constructor.name&&"Object"!==l.constructor.name&&!Array.isArray(l)&&e.allowClass)try{Object.assign(i,{"_constructor-name_":l.constructor.name})}catch{}return n.push(o),a.unshift(i),t.set(l,JSON.stringify(n)),l!==i&&r.set(l,i),i}return`_duplicate_${s}`}catch{return}}},g8={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},h8=(e,t={})=>{const r={...g8,...t};return JSON.stringify(p0(e),m8(r),t.space)};function b8(e){const t=[].forEach,r=[].some,a=typeof window<"u"&&document.body,n=" ";let o,l=!0;function i(r,a){const o=a.appendChild(function(r){const a=document.createElement("li"),o=document.createElement("a");return e.listItemClass&&a.setAttribute("class",e.listItemClass),e.onClick&&(o.onclick=e.onClick),e.includeTitleTags&&o.setAttribute("title",r.textContent),e.includeHtml&&r.childNodes.length?t.call(r.childNodes,(e=>{o.appendChild(e.cloneNode(!0))})):o.textContent=r.textContent,o.setAttribute("href",`${e.basePath}#${r.id}`),o.setAttribute("class",`${e.linkClass+n}node-name--${r.nodeName}${n}${e.extraLinkClasses}`),a.appendChild(o),a}(r));if(r.children.length){const e=s(r.isCollapsed);r.children.forEach((t=>{i(t,e)})),o.appendChild(e)}}function s(t){const r=e.orderedList?"ol":"ul",a=document.createElement(r);let o=e.listClass+n+e.extraListClasses;return t&&(o=o+n+e.collapsibleClass,o=o+n+e.isCollapsedClass),a.setAttribute("class",o),a}function c(t){let r=0;return null!==t&&(r=t.offsetTop,e.hasInnerContainers&&(r+=c(t.offsetParent))),r}function u(e,t){return e&&e.className!==t&&(e.className=t),e}function d(t){return t&&-1!==t.className.indexOf(e.collapsibleClass)&&-1!==t.className.indexOf(e.isCollapsedClass)?(u(t,t.className.replace(n+e.isCollapsedClass,"")),d(t.parentNode.parentNode)):t}function p(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer).scrollTop:document.documentElement.scrollTop||a.scrollTop,t}function m(t,a=p()){let n;return r.call(t,((r,o)=>{if(c(r)>a+e.headingsOffset+10){return n=t[0===o?o:o-1],!0}if(o===t.length-1)return n=t[t.length-1],!0})),n}return{enableTocAnimation:function(){l=!0},disableTocAnimation:function(t){const r=t.target||t.srcElement;"string"!=typeof r.className||-1===r.className.indexOf(e.linkClass)||(l=!1)},render:function(e,t){const r=s(!1);if(t.forEach((e=>{i(e,r)})),o=e||o,null!==o)return o.firstChild&&o.removeChild(o.firstChild),0===t.length?o:o.appendChild(r)},updateToc:function(r){e.positionFixedSelector&&function(){const t=p(),r=document.querySelector(e.positionFixedSelector);"auto"===e.fixedSidebarOffset&&(e.fixedSidebarOffset=o.offsetTop),t>e.fixedSidebarOffset?-1===r.className.indexOf(e.positionFixedClass)&&(r.className+=n+e.positionFixedClass):r.className=r.className.replace(n+e.positionFixedClass,"")}();const a=r;if(l&&o&&a.length>0){const r=m(a),l=o.querySelector(`.${e.activeLinkClass}`),i=o.querySelector(`.${e.linkClass}.node-name--${r.nodeName}[href="${e.basePath}#${r.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")}"]`);if(l===i)return;const s=o.querySelectorAll(`.${e.linkClass}`);t.call(s,(t=>{u(t,t.className.replace(n+e.activeLinkClass,""))}));const c=o.querySelectorAll(`.${e.listItemClass}`);t.call(c,(t=>{u(t,t.className.replace(n+e.activeListItemClass,""))})),i&&-1===i.className.indexOf(e.activeLinkClass)&&(i.className+=n+e.activeLinkClass);const p=null==i?void 0:i.parentNode;p&&-1===p.className.indexOf(e.activeListItemClass)&&(p.className+=n+e.activeListItemClass);const h=o.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(h,(t=>{-1===t.className.indexOf(e.isCollapsedClass)&&(t.className+=n+e.isCollapsedClass)})),null!=i&&i.nextSibling&&-1!==i.nextSibling.className.indexOf(e.isCollapsedClass)&&u(i.nextSibling,i.nextSibling.className.replace(n+e.isCollapsedClass,"")),d(null==i?void 0:i.parentNode.parentNode)}},getCurrentlyHighlighting:function(){return l},getTopHeader:m,getScrollTop:p,updateUrlHashForHeader:function(e){const t=p(),r=m(e,t);if(!r||t<5)"#"===window.location.hash||""===window.location.hash||window.history.pushState(null,null,"#");else if(r){const e=`#${r.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}}}const y8={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0,enableUrlHashUpdateOnScroll:!1};function v8(e){const t=[].reduce;function r(e){return e[e.length-1]}function a(e){return+e.nodeName.toUpperCase().replace("H","")}function n(t){if(!function(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;const r=t.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),n={id:t.id,children:[],nodeName:t.nodeName,headingLevel:a(t),textContent:r};return e.includeHtml&&(n.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(n,t):n}return{nestHeadingsArray:function(a){return t.call(a,(function(t,a){const o=n(a);return o&&function(t,a){const o=n(t),l=o.headingLevel;let i=a,s=r(i),c=l-(s?s.headingLevel:0);for(;c>0&&(s=r(i),!s||l!==s.headingLevel);)s&&void 0!==s.children&&(i=s.children),c--;l>=e.collapseDepth&&(o.isCollapsed=!0),i.push(o)}(o,t.nest),t}),{nest:[]})},selectHeadings:function(t,r){let a=r;e.ignoreSelector&&(a=r.split(",").map((function(t){return`${t.trim()}:not(${e.ignoreSelector})`})));try{return t.querySelectorAll(a)}catch{return console.warn(`Headers not found with selector: ${a}`),null}}}}function E8(e){var t=e.duration,r=e.offset;if(!(typeof window>"u"||typeof location>"u")){var a=location.hash?n(location.href):location.href;document.body.addEventListener("click",(function(o){!function(e){return"a"===e.tagName.toLowerCase()&&(e.hash.length>0||"#"===e.href.charAt(e.href.length-1))&&(n(e.href)===a||n(e.href)+"#"===a)}(o.target)||o.target.className.indexOf("no-smooth-scroll")>-1||"#"===o.target.href.charAt(o.target.href.length-2)&&"!"===o.target.href.charAt(o.target.href.length-1)||-1===o.target.className.indexOf(e.linkClass)||x8(o.target.hash,{duration:t,offset:r,callback:function(){!function(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}(o.target.hash)}})}),!1)}function n(e){return e.slice(0,e.lastIndexOf("#"))}}function x8(e,t){var r,a,n=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,r,a){return(e/=a/2)<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)}},l=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i="string"==typeof e?o.offset+(e?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,s="function"==typeof o.duration?o.duration(i):o.duration;function c(e){a=e-r,window.scrollTo(0,o.easing(a,n,i,s)),at.clientHeight){var r=t.querySelector("."+e.activeListItemClass);if(r){var a=t.scrollTop,n=a+t.clientHeight,o=r.offsetTop,l=o+r.clientHeight;on-e.tocScrollOffset-30&&(t.scrollTop+=l-n+e.tocScrollOffset+60)}}}let Ve,Ba,Bt,ot,Lr,z={};function A8(e){z=C8(y8,e||{}),z.scrollSmooth&&(z.duration=z.scrollSmoothDuration,z.offset=z.scrollSmoothOffset,E8(z)),Ve=b8(z),Ba=v8(z),f0();const t=k8(z);if(null===t)return;const r=m0(z);if(null===r||(Bt=Ba.selectHeadings(t,z.headingSelector),null===Bt))return;const a=Ba.nestHeadingsArray(Bt).nest;if(z.skipRendering)return this;Ve.render(r,a),ot=rs((e=>{var t;Ve.updateToc(Bt),!z.disableTocScrollSync&&w8(z),z.enableUrlHashUpdateOnScroll&&Ve.getCurrentlyHighlighting()&&Ve.updateUrlHashForHeader(Bt);const r=(null==(t=null==e?void 0:e.target)?void 0:t.scrollingElement)&&0===e.target.scrollingElement.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||r)&&(Ve.updateToc(Bt),z.scrollEndCallback&&z.scrollEndCallback(e))}),z.throttleTimeout),ot(),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).addEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).addEventListener("resize",ot,!1)):(document.addEventListener("scroll",ot,!1),document.addEventListener("resize",ot,!1));let n=null;Lr=rs((e=>{z.scrollSmooth&&Ve.disableTocAnimation(e),Ve.updateToc(Bt),n&&clearTimeout(n),n=setTimeout((()=>{Ve.enableTocAnimation()}),z.scrollSmoothDuration)}),z.throttleTimeout),z.scrollContainer&&document.querySelector(z.scrollContainer)?document.querySelector(z.scrollContainer).addEventListener("click",Lr,!1):document.addEventListener("click",Lr,!1)}function f0(){const e=m0(z);null!==e&&(z.skipRendering||e&&(e.innerHTML=""),z.scrollContainer&&document.querySelector(z.scrollContainer)?(document.querySelector(z.scrollContainer).removeEventListener("scroll",ot,!1),document.querySelector(z.scrollContainer).removeEventListener("resize",ot,!1),Ve&&document.querySelector(z.scrollContainer).removeEventListener("click",Lr,!1)):(document.removeEventListener("scroll",ot,!1),document.removeEventListener("resize",ot,!1),Ve&&document.removeEventListener("click",Lr,!1)))}const S8=Object.prototype.hasOwnProperty;function C8(...e){const t={};for(let r=0;r{a=l,e.apply(o,r)}),t)):(a=l,e.apply(o,r))}}function k8(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function m0(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}const{global:Le}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:fe,once:_8,logger:wl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:O8,composeConfigs:aA,Preview:oA,DocsContext:lA}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:ns,UPDATE_STORY_ARGS:T8,RESET_STORY_ARGS:R8,GLOBALS_UPDATED:as,NAVIGATE_URL:F8}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var $8=_.div(re,(({theme:e})=>({backgroundColor:"light"===e.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:te(.3,e.color.defaultText),fontSize:e.typography.size.s2}))),g0=e=>a.createElement($8,{...e,className:"docblock-emptyblock sb-unstyled"}),D8=_(Qn)((({theme:e})=>({fontSize:e.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),L8=_.div((({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}))),gn=_.div((({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Xa}`]:{margin:0}}))),M8=()=>a.createElement(L8,null,a.createElement(gn,null),a.createElement(gn,{style:{width:"80%"}}),a.createElement(gn,{style:{width:"30%"}}),a.createElement(gn,{style:{width:"80%"}})),Al=({isLoading:e,error:t,language:r,code:n,dark:o,format:l,...i})=>{if(e)return a.createElement(M8,null);if(t)return a.createElement(g0,null,t);let s=a.createElement(D8,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let c=o?qa.dark:qa.light;return a.createElement(Ks,{theme:Ka(c)},s)};Al.defaultProps={format:!1};var ie=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sl=600,B8=_.h1(re,(({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),I8=_.h2(re,(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sl}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:te(.25,e.color.defaultText)}))),P8=_.div((({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},a={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:"light"===e.base?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:"light"===e.base?te(.1,e.color.defaultText):te(.3,e.color.defaultText),backgroundColor:"light"===e.base?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ie("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ie("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ie("div")]:t,[ie("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ie("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ie("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ie("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ie("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ie("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ie("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ie("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ie("img")]:{maxWidth:"100%"},[ie("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":a},[ie("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ie("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":a},[ie("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ie("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ie("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===e.base?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ie("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),j8=_.div((({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sl}px)`]:{}}))),N8=({children:e,toc:t})=>a.createElement(j8,{className:"sbdocs sbdocs-wrapper"},a.createElement(P8,{className:"sbdocs sbdocs-content"},e),t),sa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),H8=({zoom:e,resetZoom:t})=>a.createElement(a.Fragment,null,a.createElement(Ut,{key:"zoomin",onClick:t=>{t.preventDefault(),e(.8)},title:"Zoom in"},a.createElement(Ee,{icon:"zoom"})),a.createElement(Ut,{key:"zoomout",onClick:t=>{t.preventDefault(),e(1.25)},title:"Zoom out"},a.createElement(Ee,{icon:"zoomout"})),a.createElement(Ut,{key:"zoomreset",onClick:e=>{e.preventDefault(),t()},title:"Reset zoom"},a.createElement(Ee,{icon:"zoomreset"}))),Z8=_(ra)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),V8=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...l})=>a.createElement(Z8,{...l},a.createElement(h.Fragment,{key:"left"},e?[1,2,3].map((e=>a.createElement(Au,{key:e}))):a.createElement(H8,{zoom:n,resetZoom:o}))),h0=h.createContext({scale:1}),{window:z8}=Le,q8=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=z8.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:100*t+"%",height:100*t+"%",transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...l}=this.props;return a.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},{PREVIEW_URL:U8}=Le,W8=U8||"iframe.html",yo=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,G8=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,l]=h.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:u,renderStoryToElement:d}=e;return h.useEffect((()=>{if(!i||!t.current)return()=>{};let e=t.current,r=d(i,e,{showMain:()=>{},showError:({title:e,description:t})=>l(new Error(`${e} - ${t}`)),showException:e=>l(e)},{autoplay:c,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then((()=>r()))}}),[c,d,i]),o?a.createElement("pre",null,a.createElement(gu,{error:o})):a.createElement(a.Fragment,null,s?a.createElement("style",null,`#${yo(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&a.createElement(Cl,null),a.createElement("div",{ref:t,id:`${yo(e)}-inner`,"data-name":i.name}))},Y8=({story:e,height:t="500px"})=>a.createElement("div",{style:{width:"100%",height:t}},a.createElement(h0.Consumer,null,(({scale:t})=>a.createElement(q8,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:_u(W8,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:t,style:{width:"100%",height:"100%",border:"0 none"}})))),K8=e=>{let{inline:t}=e;return a.createElement("div",{id:yo(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?a.createElement(G8,{...e}):a.createElement(Y8,{...e}))},Cl=()=>a.createElement(ku,null),X8=_.div((({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==r?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout:e="padded"})=>"centered"===e||"padded"===e?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout:e="padded"})=>"centered"===e?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{})),os=_(Al)((({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content),color:e.color.lightest,button:{background:"light"===e.base?"rgba(0, 0, 0, 0.85)":et(.05,e.background.content)}}))),J8=_.div((({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...sa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar:e})=>e&&{paddingTop:40})),Q8=(e,t,r)=>{switch(!0){case!(!e||!e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:a.createElement(os,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:a.createElement(os,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function ex(e){if(1===h.Children.count(e)){let t=e;if(t.props)return t.props.id}return null}var tx=_(V8)({position:"absolute",top:0,left:0,right:0,height:40}),rx=_.div({overflow:"hidden",position:"relative"}),vo=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:l=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:u="padded",...d})=>{let[p,m]=h.useState(i),{source:f,actionItem:g}=Q8(o,p,m),[b,y]=h.useState(1),v=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[g]:[],[x,w]=h.useState(s?[...s]:[]),k=[...E,...x],{window:S}=Le,C=h.useCallback((async e=>{let{createCopyToClipboardFunction:t}=await Wt((()=>Promise.resolve().then((()=>Qh))),void 0,import.meta.url);t()}),[]);return a.createElement(J8,{withSource:o,withToolbar:l,...d,className:v.join(" ")},l&&a.createElement(tx,{isLoading:e,border:!0,zoom:e=>y(b*e),resetZoom:()=>y(1),storyId:ex(n),baseUrl:"./iframe.html"}),a.createElement(h0.Provider,{value:{scale:b}},a.createElement(rx,{className:"docs-story",onCopyCapture:o&&(e=>{let t=S.getSelection();t&&"Range"===t.type||(e.preventDefault(),0===x.filter((e=>"Copied"===e.title)).length&&C(f.props.code).then((()=>{w([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout((()=>w(x.filter((e=>"Copied"!==e.title)))),1500)})))})},a.createElement(X8,{isColumn:t||!Array.isArray(n),columns:r,layout:u},a.createElement(mu.Element,{scale:b},Array.isArray(n)?n.map(((e,t)=>a.createElement("div",{key:t},e))):a.createElement("div",null,n))),a.createElement(Zo,{actionItems:k}))),o&&p&&f)},nx=_(vo)((()=>({".docs-story":{paddingTop:32,paddingBottom:40}}))),ax=()=>a.createElement(nx,{isLoading:!0,withToolbar:!0},a.createElement(Cl,null)),ox=_.table((({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Et({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}}))),lx=({tags:e})=>{let t=(e.params||[]).filter((e=>e.description)),r=0!==t.length,n=null!=e.deprecated,o=null!=e.returns&&null!=e.returns.description;return r||o||n?a.createElement(a.Fragment,null,a.createElement(ox,null,a.createElement("tbody",null,n&&a.createElement("tr",{key:"deprecated"},a.createElement("td",{colSpan:2},a.createElement("strong",null,"Deprecated"),": ",e.deprecated)),r&&t.map((e=>a.createElement("tr",{key:e.name},a.createElement("td",null,a.createElement("code",null,e.name)),a.createElement("td",null,e.description)))),o&&a.createElement("tr",{key:"returns"},a.createElement("td",null,a.createElement("code",null,"Returns")),a.createElement("td",null,e.returns.description))))):null},Eo=8,ls=_.div((({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),ix=_.span(Et,(({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}}))),sx=_.button((({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),cx=_.div(Et,(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),ux=_.div((({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),dx=_(Ee)({height:10,width:10,minWidth:10,marginLeft:4}),px=()=>a.createElement("span",null,"-"),b0=({text:e,simple:t})=>a.createElement(ix,{simple:t},e),fx=Yt(1e3)((e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map((e=>e.length)))}ch`})),mx=e=>{if(!e)return[e];let t=e.split("|").map((e=>e.trim()));return fv(t)},is=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Eo)),r.map((e=>a.createElement(b0,{key:e,text:""===e?'""':e})))},gx=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,l]=h.useState(!1),[i,s]=h.useState(t||!1);if(null==r)return null;let c="function"==typeof r.toString?r.toString():r;if(null==n){if(/[(){}[\]<>]/.test(c))return a.createElement(b0,{text:c});let e=mx(c),t=e.length;return t>Eo?a.createElement(ls,{isExpanded:i},is(e,i),a.createElement(sx,{onClick:()=>s(!i)},i?"Show less...":`Show ${t-Eo} more...`)):a.createElement(ls,null,is(e))}return a.createElement(Eu,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:e=>{l(e)},tooltip:a.createElement(ux,{width:fx(n)},a.createElement(Qn,{language:"jsx",format:!1},n))},a.createElement(cx,{className:"sbdocs-expandable"},a.createElement("span",null,c),a.createElement(dx,{icon:o?"arrowup":"arrowdown"})))},Ia=({value:e,initialExpandedArgs:t})=>null==e?a.createElement(px,null):a.createElement(gx,{value:e,initialExpandedArgs:t}),hx=_.label((({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:te(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${fn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${fn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:fn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:"light"===e.base?`${fn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}}))),bx=e=>"true"===e,yx=({name:e,value:t,onChange:r,onBlur:n,onFocus:o})=>{let l=h.useCallback((()=>r(!1)),[r]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:l},"Set boolean");let i=qe(e),s="string"==typeof t?bx(t):t;return a.createElement(hx,{htmlFor:i,"aria-label":e},a.createElement("input",{id:i,type:"checkbox",onChange:e=>r(e.target.checked),checked:s,role:"switch",name:e,onBlur:n,onFocus:o}),a.createElement("span",{"aria-hidden":"true"},"False"),a.createElement("span",{"aria-hidden":"true"},"True"))},vx=e=>{let[t,r,a]=e.split("-"),n=new Date;return n.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(a,10)),n},Ex=e=>{let[t,r]=e.split(":"),a=new Date;return a.setHours(parseInt(t,10)),a.setMinutes(parseInt(r,10)),a},xx=e=>{let t=new Date(e);return`${`000${t.getFullYear()}`.slice(-4)}-${`0${t.getMonth()+1}`.slice(-2)}-${`0${t.getDate()}`.slice(-2)}`},wx=e=>{let t=new Date(e);return`${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`},Ax=_.div((({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===e.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Sx=({name:e,value:t,onChange:r,onFocus:n,onBlur:o})=>{let[l,i]=h.useState(!0),s=h.useRef(),c=h.useRef();h.useEffect((()=>{!1!==l&&(s&&s.current&&(s.current.value=xx(t)),c&&c.current&&(c.current.value=wx(t)))}),[t]);let u=qe(e);return a.createElement(Ax,null,a.createElement(ze.Input,{type:"date",max:"9999-12-31",ref:s,id:`${u}-date`,name:`${u}-date`,onChange:e=>{let a=vx(e.target.value),n=new Date(t);n.setFullYear(a.getFullYear(),a.getMonth(),a.getDate());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),a.createElement(ze.Input,{type:"time",id:`${u}-time`,name:`${u}-time`,ref:c,onChange:e=>{let a=Ex(e.target.value),n=new Date(t);n.setHours(a.getHours()),n.setMinutes(a.getMinutes());let o=n.getTime();o&&r(o),i(!!o)},onFocus:n,onBlur:o}),l?null:a.createElement("div",null,"invalid"))},Cx=_.label({display:"flex"}),kx=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},_x=({name:e,value:t,onChange:r,min:n,max:o,step:l,onBlur:i,onFocus:s})=>{let[c,u]=h.useState("number"==typeof t?t:""),[d,p]=h.useState(!1),[m,f]=h.useState(null),g=h.useCallback((e=>{u(e.target.value);let t=parseFloat(e.target.value);Number.isNaN(t)?f(new Error(`'${e.target.value}' is not a number`)):(r(t),f(null))}),[r,f]),b=h.useCallback((()=>{u("0"),r(0),p(!0)}),[p]),y=h.useRef(null);return h.useEffect((()=>{d&&y.current&&y.current.select()}),[d]),h.useEffect((()=>{c!==("number"==typeof t?t:"")&&u(t)}),[t]),d||void 0!==t?a.createElement(Cx,null,a.createElement(ze.Input,{ref:y,id:qe(e),type:"number",onChange:g,size:"flex",placeholder:"Edit number...",value:c,valid:m?"error":null,autoFocus:d,name:e,min:n,max:o,step:l,onFocus:s,onBlur:i})):a.createElement(ze.Button,{id:jn(e),onClick:b},"Set number")},y0=(e,t)=>{let r=t&&Object.entries(t).find((([t,r])=>r===e));return r?r[0]:void 0},xo=(e,t)=>e&&t?Object.entries(t).filter((t=>e.includes(t[1]))).map((e=>e[0])):[],v0=(e,t)=>e&&t&&e.map((e=>t[e])),Ox=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),Tx=_.span({}),Rx=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),ss=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Checkbox with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=xo(r,t),[i,s]=h.useState(l),c=e=>{let r=e.target.value,a=[...i];a.includes(r)?a.splice(a.indexOf(r),1):a.push(r),n(v0(a,t)),s(a)};h.useEffect((()=>{s(xo(r,t))}),[r]);let u=qe(e);return a.createElement(Ox,{isInline:o},Object.keys(t).map(((e,t)=>{let r=`${u}-${t}`;return a.createElement(Rx,{key:r,htmlFor:r},a.createElement("input",{type:"checkbox",id:r,name:r,value:e,onChange:c,checked:null==i?void 0:i.includes(e)}),a.createElement(Tx,null,e))})))},Fx=_.div((({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}})),$x=_.span({}),Dx=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),cs=({name:e,options:t,value:r,onChange:n,isInline:o})=>{if(!t)return wl.warn(`Radio with no options: ${e}`),a.createElement(a.Fragment,null,"-");let l=y0(r,t),i=qe(e);return a.createElement(Fx,{isInline:o},Object.keys(t).map(((e,r)=>{let o=`${i}-${r}`;return a.createElement(Dx,{key:o,htmlFor:o},a.createElement("input",{type:"radio",id:o,name:o,value:e,onChange:e=>n(t[e.currentTarget.value]),checked:e===l}),a.createElement($x,null,e))})))},Lx={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},E0=_.select(Lx,(({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),x0=_.span((({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}}))),us="Choose option...",Mx=({name:e,value:t,options:r,onChange:n})=>{let o=y0(t,r)||us,l=qe(e);return a.createElement(x0,null,a.createElement(Ee,{icon:"arrowdown"}),a.createElement(E0,{id:l,value:o,onChange:e=>{n(r[e.currentTarget.value])}},a.createElement("option",{key:"no-selection",disabled:!0},us),Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},Bx=({name:e,value:t,options:r,onChange:n})=>{let o=xo(t,r),l=qe(e);return a.createElement(x0,null,a.createElement(E0,{id:l,multiple:!0,value:o,onChange:e=>{let t=Array.from(e.currentTarget.options).filter((e=>e.selected)).map((e=>e.value));n(v0(t,r))}},Object.keys(r).map((e=>a.createElement("option",{key:e,value:e},e)))))},ds=e=>{let{name:t,options:r}=e;return r?e.isMulti?a.createElement(Bx,{...e}):a.createElement(Mx,{...e}):(wl.warn(`Select with no options: ${t}`),a.createElement(a.Fragment,null,"-"))},Ix=(e,t)=>Array.isArray(e)?e.reduce(((e,r)=>(e[(null==t?void 0:t[r])||String(r)]=r,e)),{}):e,Px={check:ss,"inline-check":ss,radio:cs,"inline-radio":cs,select:ds,"multi-select":ds},tr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,options:n?Ix(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=Px[t];if(l)return a.createElement(l,{...o});throw new Error(`Unknown options type: ${t}`)},kl="value",jx="key",Nx="Error",Hx="Object",Zx="Array",Vx="String",zx="Number",qx="Boolean",Ux="Date",Wx="Null",Gx="Undefined",Yx="Function",Kx="Symbol",w0="ADD_DELTA_TYPE",A0="REMOVE_DELTA_TYPE",S0="UPDATE_DELTA_TYPE";function kt(e){return null===e||"object"!=typeof e||Array.isArray(e)||"function"!=typeof e[Symbol.iterator]?Object.prototype.toString.call(e).slice(8,-1):"Iterable"}function C0(e,t){let r=kt(e),a=kt(t);return("Function"===r||"Function"===a)&&a!==r}var _l=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&"function"==typeof e.focus&&e.focus(),r&&t&&"function"==typeof t.focus&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.onSubmit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:a,deep:n}=this.props,{inputRefKey:o,inputRefValue:l}=this.state,i={};if(!t){if(!o.value)return;i.key=o.value}i.newValue=r(!1,a,n,i.key,l.value),e(i)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:l,deep:i}=this.props,s=h.cloneElement(r,{onClick:this.onSubmit}),c=h.cloneElement(n,{onClick:e}),u=o(kl,l,i),d=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue}),p=null;if(!t){let e=o(jx,l,i);p=h.cloneElement(e,{placeholder:"Key",ref:this.refInputKey})}return a.createElement("span",{className:"rejt-add-value-node"},p,d,c,s)}};_l.defaultProps={onlyValue:!1,addButtonElement:a.createElement("button",null,"+"),cancelButtonElement:a.createElement("button",null,"c")};var k0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:A0};a.splice(e,1),this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:a}=this.state,{beforeAddAction:n,logger:o}=this.props;n(t.length,r,a,e).then((()=>{let n=[...t,e];this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(r[r.length-1],n),l({type:w0,keyPath:r,deep:a,key:n.length-1,newValue:e})})).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:S0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r(void 0)})).catch(a)}))}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:l,getStyle:i,dataType:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,s),p=l(e,t,r,n,s),m=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",1===t.length?"item":"items"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,delimiter:O,ul:R,addForm:M}=d(e,t,r,n,p),T=u(e,t,r,n,p),L=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),j=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A});return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"["),!o&&L,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map(((e,t)=>a.createElement(ca,{key:t,name:t.toString(),data:e,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(t),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})))),!T&&o&&a.createElement("div",{className:"rejt-add-form",style:M},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"]"),!T&&j)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:l,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=i(e,r,n,o,l);return a.createElement("div",{className:"rejt-array-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};k0.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var _0=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{C0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,textareaElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=null,v=null,E=s(e,i,n,o,c);if(r&&!E){let t=m(kl,g,o,e,i,c),r=h.cloneElement(d,{onClick:this.handleEdit}),n=h.cloneElement(p,{onClick:this.handleCancelEdit}),l=h.cloneElement(t,{ref:this.refInput,defaultValue:i});y=a.createElement("span",{className:"rejt-edit-form",style:b.editForm},l," ",n,r),v=null}else{y=a.createElement("span",{className:"rejt-value",style:b.value,onClick:E?null:this.handleEditMode},t);let e=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});v=E?null:e}return a.createElement("li",{className:"rejt-function-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),y,v)}};_0.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var ca=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:l,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k}=this.props,S=()=>!0,C=kt(e);switch(C){case Nx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:S,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Hx:return a.createElement(wo,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Zx:return a.createElement(k0,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:l,onUpdate:s,onDeltaUpdate:c,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:E,beforeUpdateAction:x,logger:w,onSubmitValueParser:k});case Vx:return a.createElement(St,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case zx:return a.createElement(St,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case qx:return a.createElement(St,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Ux:return a.createElement(St,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Wx:return a.createElement(St,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Gx:return a.createElement(St,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Yx:return a.createElement(_0,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,textareaElementGenerator:g,minusMenuElement:b,logger:w,onSubmitValueParser:k});case Kx:return a.createElement(St,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:S,dataType:C,getStyle:d,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:f,minusMenuElement:b,logger:w,onSubmitValueParser:k});default:return null}}};ca.defaultProps={keyPath:[],deep:0};var wo=class extends h.Component{constructor(e){super(e);let t=-1===e.deep?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:a}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:n}=this.props;n(a[a.length-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:a,nextDeep:n}=this.state,{beforeAddAction:o,logger:l}=this.props;o(e,a,n,t).then((()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:o,onDeltaUpdate:l}=this.props;o(a[a.length-1],r),l({type:w0,keyPath:a,deep:n,key:e,newValue:t})})).catch(l.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:a,keyPath:n,nextDeep:o}=this.state,l=a[e];t(e,n,o,l).then((()=>{let t={keyPath:n,deep:o,key:e,oldValue:l,type:A0};delete a[e],this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(n[n.length-1],a),i(t)})).catch(r.error)}}handleCollapseMode(){this.setState((e=>({collapsed:!e.collapsed})))}handleEditValue({key:e,value:t}){return new Promise(((r,a)=>{let{beforeUpdateAction:n}=this.props,{data:o,keyPath:l,nextDeep:i}=this.state,s=o[e];n(e,l,i,s,t).then((()=>{o[e]=t,this.setState({data:o});let{onUpdate:a,onDeltaUpdate:n}=this.props;a(l[l.length-1],o),n({type:S0,keyPath:l,deep:i,key:e,newValue:t,oldValue:s}),r()})).catch(a)}))}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:l,dataType:i,getStyle:s,minusMenuElement:c}=this.props,{minus:u,collapsed:d}=s(e,n,t,r,i),p=Object.getOwnPropertyNames(n),m=l(e,n,t,r,i),f=h.cloneElement(c,{onClick:o,className:"rejt-minus-menu",style:u});return a.createElement("span",{className:"rejt-collapsed"},a.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",p.length," ",1===p.length?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:c,readOnly:u,getStyle:d,dataType:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C}=this.props,{minus:A,plus:_,addForm:O,ul:R,delimiter:M}=d(e,t,r,n,p),T=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=h.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),F=h.cloneElement(v,{onClick:s,className:"rejt-minus-menu",style:A}),N=T.map((e=>a.createElement(ca,{key:e,name:e,data:t[e],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(e),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:f,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:k,logger:S,onSubmitValueParser:C})));return a.createElement("span",{className:"rejt-not-collapsed"},a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"{"),!L&&j,a.createElement("ul",{className:"rejt-not-collapsed-list",style:R},N),!L&&l&&a.createElement("div",{className:"rejt-add-form",style:O},a.createElement(_l,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:C})),a.createElement("span",{className:"rejt-not-collapsed-delimiter",style:M},"}"),!L&&F)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:l,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),c=l(e,r,n,o,i);return a.createElement("div",{className:"rejt-object-node"},a.createElement("span",{onClick:this.handleCollapseMode},a.createElement("span",{className:"rejt-name",style:c.name},e," :"," ")),s)}};wo.defaultProps={keyPath:[],deep:0,minusMenuElement:a.createElement("span",null," - "),plusMenuElement:a.createElement("span",null," + ")};var St=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:a,keyPath:n,deep:o}=this.state,{readOnly:l,dataType:i}=this.props,s=l(r,a,n,o,i);e&&!s&&"function"==typeof t.focus&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||(("Enter"===e.code||"Enter"===e.key)&&(e.preventDefault(),this.handleEdit()),("Escape"===e.code||"Escape"===e.key)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:a,keyPath:n}=this.props,{inputRef:o,name:l,deep:i}=this.state;if(!o)return;let s=a(!0,n,i,l,o.value);e({value:s,key:l}).then((()=>{C0(t,s)||this.handleCancelEdit()})).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:l,originalValue:i,readOnly:s,dataType:c,getStyle:u,editButtonElement:d,cancelButtonElement:p,inputElementGenerator:m,minusMenuElement:f,keyPath:g}=this.props,b=u(e,i,n,o,c),y=s(e,i,n,o,c),v=r&&!y,E=m(kl,g,o,e,i,c),x=h.cloneElement(d,{onClick:this.handleEdit}),w=h.cloneElement(p,{onClick:this.handleCancelEdit}),k=h.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=h.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:b.minus});return a.createElement("li",{className:"rejt-value-node",style:b.li},a.createElement("span",{className:"rejt-name",style:b.name},e," : "),v?a.createElement("span",{className:"rejt-edit-form",style:b.editForm},k," ",w,x):a.createElement("span",{className:"rejt-value",style:b.value,onClick:y?null:this.handleEditMode},String(t)),!y&&!v&&S)}};St.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:a.createElement("button",null,"e"),cancelButtonElement:a.createElement("button",null,"c"),minusMenuElement:a.createElement("span",null," - ")};var Xx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Jx={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Qx={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function e9(e){let t=e;if(0===t.indexOf("function"))return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var O0=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElement:u,textareaElement:d,minusMenuElement:p,plusMenuElement:m,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y,fallback:v=null}=this.props,E=kt(e),x=o;"Boolean"===kt(o)&&(x=()=>o);let w=u;u&&"Function"!==kt(u)&&(w=()=>u);let k=d;return d&&"Function"!==kt(d)&&(k=()=>d),"Object"===E||"Array"===E?a.createElement("div",{className:"rejt-tree"},a.createElement(ca,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:x,getStyle:l,addButtonElement:i,cancelButtonElement:s,editButtonElement:c,inputElementGenerator:w,textareaElementGenerator:k,minusMenuElement:p,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:f,beforeUpdateAction:g,logger:b,onSubmitValueParser:y})):v}};O0.defaultProps={rootName:"root",isCollapsed:(e,t)=>-1!==t,getStyle:(e,t,r,a,n)=>{switch(n){case"Object":case"Error":return Xx;case"Array":return Jx;default:return Qx}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,a,n)=>e9(n),inputElement:()=>a.createElement("input",null),textareaElement:()=>a.createElement("textarea",null),fallback:null};var{window:t9}=Le,r9=_.div((({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}}))),Pa=_.button((({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9}))),ps=_(Ee)((({theme:e,icon:t,disabled:r})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:r?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":r?{}:{color:"subtract"===t?e.color.negative:e.color.ancillary},"svg + &":{marginLeft:0}}))),fs=_.input((({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===t?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}}))),n9=_(Ut)((({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),a9=_(ze.Textarea)((({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),o9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},l9=e=>{e.currentTarget.dispatchEvent(new t9.KeyboardEvent("keydown",o9))},i9=e=>{e.currentTarget.select()},s9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ms=({name:e,value:t,onChange:r})=>{let n=rp(),o=h.useMemo((()=>t&&J7(t)),[t]),l=null!=o,[i,s]=h.useState(!l),[c,u]=h.useState(null),d=h.useCallback((e=>{try{e&&r(JSON.parse(e)),u(void 0)}catch(t){u(t)}}),[r]),[p,m]=h.useState(!1),f=h.useCallback((()=>{r({}),m(!0)}),[m]),g=h.useRef(null);if(h.useEffect((()=>{p&&g.current&&g.current.select()}),[p]),!l)return a.createElement(ze.Button,{id:jn(e),onClick:f},"Set object");let b=a.createElement(a9,{ref:g,id:qe(e),name:e,defaultValue:null===t?"":JSON.stringify(t,null,2),onBlur:e=>d(e.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:c?"error":null});return a.createElement(r9,null,["Object","Array"].includes(kt(o))&&a.createElement(n9,{href:"#",onClick:e=>{e.preventDefault(),s((e=>!e))}},a.createElement(Ee,{icon:i?"eyeclose":"eye"}),a.createElement("span",null,"RAW")),i?b:a.createElement(O0,{data:o,rootName:e,onFullyUpdate:r,getStyle:s9(n),cancelButtonElement:a.createElement(Pa,{type:"button"},"Cancel"),editButtonElement:a.createElement(Pa,{type:"submit"},"Save"),addButtonElement:a.createElement(Pa,{type:"submit",primary:!0},"Save"),plusMenuElement:a.createElement(ps,{icon:"add"}),minusMenuElement:a.createElement(ps,{icon:"subtract"}),inputElement:(e,t,r,n)=>n?a.createElement(fs,{onFocus:i9,onBlur:l9}):a.createElement(fs,null),fallback:b}))},c9=_.input((({theme:e,min:t,max:r,value:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:at(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${at(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${et(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===e.base?`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${et(.02,e.input.background)} 100%)`:`linear-gradient(to right, \n ${e.color.green} 0%, ${e.color.green} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} ${(a-t)/(r-t)*100}%, \n ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${at(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),T0=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),u9=_(T0)((({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+2*t.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),d9=_.div({display:"flex",alignItems:"center",width:"100%"});function p9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var f9=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:l=1,onBlur:i,onFocus:s})=>{let c=void 0!==t,u=h.useMemo((()=>p9(l)),[l]);return a.createElement(d9,null,a.createElement(T0,null,n),a.createElement(c9,{id:qe(e),type:"range",onChange:e=>{r(kx(e.target.value))},name:e,value:t,min:n,max:o,step:l,onFocus:s,onBlur:i}),a.createElement(u9,{numberOFDecimalsPlaces:u,max:o},c?t.toFixed(u):"--"," / ",o))},m9=_.label({display:"flex"}),g9=_.div((({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0}))),h9=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:l})=>{let[i,s]=h.useState(!1),c=h.useCallback((()=>{r(""),s(!0)}),[s]);if(void 0===t)return a.createElement(ze.Button,{id:jn(e),onClick:c},"Set string");let u="string"==typeof t;return a.createElement(m9,null,a.createElement(ze.Textarea,{id:qe(e),maxLength:l,onChange:e=>{r(e.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:i,valid:u?null:"error",name:e,value:u?t:"",onFocus:n,onBlur:o}),l&&a.createElement(g9,{isMaxed:(null==t?void 0:t.length)===l},(null==t?void 0:t.length)??0," / ",l))},b9=_(ze.Input)({padding:10});function y9(e){e.forEach((e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}))}var v9=({onChange:e,name:t,accept:r="image/*",value:n})=>{let o=h.useRef(null);return h.useEffect((()=>{null==n&&o.current&&(o.current.value=null)}),[n,t]),a.createElement(b9,{ref:o,id:qe(t),type:"file",name:t,multiple:!0,onChange:function(t){if(!t.target.files)return;let r=Array.from(t.target.files).map((e=>URL.createObjectURL(e)));e(r),y9(n)},accept:r,size:"flex"})},E9=h.lazy((()=>Wt((()=>import("./Color-6VNJS4EI-DHGDfq5k.js")),__vite__mapDeps([14,2,10,1,3,4,5,6,7,8,9,11]),import.meta.url))),x9=e=>a.createElement(h.Suspense,{fallback:a.createElement("div",null)},a.createElement(E9,{...e})),w9={array:ms,object:ms,boolean:yx,color:x9,date:Sx,number:_x,check:tr,"inline-check":tr,radio:tr,"inline-radio":tr,select:tr,"multi-select":tr,range:f9,text:h9,file:v9},gs=()=>a.createElement(a.Fragment,null,"-"),A9=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:l}=e,[i,s]=h.useState(!1),[c,u]=h.useState({value:t});h.useEffect((()=>{i||u({value:t})}),[i,t]);let d=h.useCallback((e=>(u({value:e}),r({[o]:e}),e)),[r,o]),p=h.useCallback((()=>s(!1)),[]),m=h.useCallback((()=>s(!0)),[]);if(!l||l.disable)return n?a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):a.createElement(gs,null);let f={name:o,argType:e,value:c.value,onChange:d,onBlur:p,onFocus:m},g=w9[l.type]||gs;return a.createElement(g,{...f,...l,controlType:l.type})},S9=_.span({fontWeight:"bold"}),C9=_.span((({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"}))),k9=_.div((({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Et({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),_9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?4:0}))),O9=_.div((({theme:e,hasDescription:t})=>({color:"light"===e.base?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12}))),T9=_.td((({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"}))),hn=e=>{var t;let[r,n]=h.useState(!1),{row:o,updateArgs:l,compact:i,expandable:s,initialExpandedArgs:c}=e,{name:u,description:d}=o,p=o.table||{},m=p.type||o.type,f=p.defaultValue||o.defaultValue,g=null==(t=o.type)?void 0:t.required,b=null!=d&&""!==d;return a.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},a.createElement(T9,{expandable:s},a.createElement(S9,null,u),g?a.createElement(C9,{title:"Required"},"*"):null),i?null:a.createElement("td",null,b&&a.createElement(k9,null,a.createElement(Qu,null,d)),null!=p.jsDocTags?a.createElement(a.Fragment,null,a.createElement(O9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c})),a.createElement(lx,{tags:p.jsDocTags})):a.createElement(_9,{hasDescription:b},a.createElement(Ia,{value:m,initialExpandedArgs:c}))),i?null:a.createElement("td",null,a.createElement(Ia,{value:f,initialExpandedArgs:c})),l?a.createElement("td",null,a.createElement(A9,{...e,isHovered:r})):null)},R9=_(Ee)((({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===e.base?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"}))),F9=_.span((({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),$9=_.td((({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}}))),D9=_.td((({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app}))),L9=_.td((()=>({position:"relative"}))),M9=_.tr((({theme:e})=>({"&:hover > td":{backgroundColor:`${Nt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),hs=_.button((()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}))),ja=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[l,i]=h.useState(n),s="subsection"===e?D9:$9,c=(null==r?void 0:r.length)||0,u="subsection"===e?`${c} item${1!==c?"s":""}`:"",d=l?"arrowdown":"arrowright",p=`${l?"Hide":"Show"} ${"subsection"===e?c:t} item${1!==c?"s":""}`;return a.createElement(a.Fragment,null,a.createElement(M9,{title:p},a.createElement(s,{colSpan:1},a.createElement(hs,{onClick:e=>i(!l),tabIndex:0},p),a.createElement(F9,null,a.createElement(R9,{icon:d}),t)),a.createElement(L9,{colSpan:o-1},a.createElement(hs,{onClick:e=>i(!l),tabIndex:-1,style:{outline:"none"}},p),l?null:u)),l?r:null)},bn=_.div((({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}}))),ge=_.div((({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"}))),se=_.div((({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3}))),he=[2,4,2,2],B9=()=>a.createElement(a.Fragment,null,a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"}))),a.createElement(bn,null,a.createElement(ge,{numColumn:he[0]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[1]},a.createElement(se,{width:"80%"}),a.createElement(se,{width:"30%"})),a.createElement(ge,{numColumn:he[2]},a.createElement(se,{width:"60%"})),a.createElement(ge,{numColumn:he[3]},a.createElement(se,{width:"60%"})))),I9=_.div((({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),P9=_.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),j9=_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor}))),N9=_.div((({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor}))),H9=_.div((({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25}))),Z9=_.div((({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor}))),V9=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect((()=>{let e=setTimeout((()=>{r(!1)}),100);return()=>clearTimeout(e)}),[]),t?null:a.createElement(I9,{inAddonPanel:e},a.createElement(P9,null,a.createElement(j9,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),a.createElement(N9,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),a.createElement(H9,null,e&&a.createElement(a.Fragment,null,a.createElement(_t,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},a.createElement(Ee,{icon:"video"})," Watch 5m video"),a.createElement(Z9,null),a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&a.createElement(_t,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},z9=_.table((({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:"light"===e.base?te(.25,e.color.defaultText):te(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:"light"===e.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}}))),q9=_(Ut)((({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"}))),U9=_.span({display:"flex",justifyContent:"space-between"}),W9={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,a;return+!(null==(r=t.type)||!r.required)-+!(null==(a=e.type)||!a.required)||e.name.localeCompare(t.name)},none:void 0},G9=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach((([e,t])=>{let{category:a,subcategory:n}=(null==t?void 0:t.table)||{};if(a){let o=r.sections[a]||{ungrouped:[],subsections:{}};if(n){let r=o.subsections[n]||[];r.push({key:e,...t}),o.subsections[n]=r}else o.ungrouped.push({key:e,...t});r.sections[a]=o}else if(n){let a=r.ungroupedSubsections[n]||[];a.push({key:e,...t}),r.ungroupedSubsections[n]=a}else r.ungrouped.push({key:e,...t})}));let a=W9[t],n=e=>a?Object.keys(e).reduce(((t,r)=>({...t,[r]:e[r].sort(a)})),{}):e;return{ungrouped:r.ungrouped.sort(a),ungroupedSubsections:n(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce(((e,t)=>({...e,[t]:{ungrouped:r.sections[t].ungrouped.sort(a),subsections:n(r.sections[t].subsections)}})),{})}},Y9=(e,t,r)=>{try{return H0(e,t,r)}catch(a){return _8.warn(a.message),!1}},K9=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:l,sort:i="none",isLoading:s}=e;if("error"in e){let{error:t}=e;return a.createElement(g0,null,t,"\xa0",a.createElement(_t,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(s)return a.createElement(B9,null);let{rows:c,args:u,globals:d}="rows"in e&&e,p=G9(Ty(c,(e=>{var t;return!(null!=(t=null==e?void 0:e.table)&&t.disable)&&Y9(e,u||{},d||{})})),i),m=0===p.ungrouped.length,h=0===Object.entries(p.sections).length,f=0===Object.entries(p.ungroupedSubsections).length;if(m&&h&&f)return a.createElement(V9,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(p.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:l};return a.createElement(ol,null,a.createElement(z9,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},a.createElement("thead",{className:"docblock-argstable-head"},a.createElement("tr",null,a.createElement("th",null,a.createElement("span",null,"Name")),n?null:a.createElement("th",null,a.createElement("span",null,"Description")),n?null:a.createElement("th",null,a.createElement("span",null,"Default")),t?a.createElement("th",null,a.createElement(U9,null,"Control"," ",!s&&r&&a.createElement(q9,{onClick:()=>r(),title:"Reset controls"},a.createElement(Ee,{icon:"undo","aria-hidden":!0})))):null)),a.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(p.ungroupedSubsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y})))))),Object.entries(p.sections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"section",colSpan:g},t.ungrouped.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],...y}))),Object.entries(t.subsections).map((([e,t])=>a.createElement(ja,{key:e,label:e,level:"subsection",colSpan:g},t.map((e=>a.createElement(hn,{key:e.key,row:e,arg:u&&u[e.key],expandable:b,...y}))))))))))))};_.div((({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),_.div(re,(({theme:e})=>({...sa(e),margin:"25px 0 40px",padding:"30px 20px"}))),_.div((({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}))),_.div((({theme:e})=>({color:"light"===e.base?te(.2,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),_.div((({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),_.div({display:"flex",flexDirection:"row"}),_.div((({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}))),_.div((({theme:e})=>({...sa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}))),_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),_.div({flex:1,display:"flex",flexDirection:"row"}),_.div({display:"flex",alignItems:"flex-start"}),_.div({flex:"0 0 30%"}),_.div({flex:1}),_.div((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:"light"===e.base?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}))),_.div((({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}))),_.div((({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}))),_.div((({theme:e})=>({...sa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),_.div({display:"flex",flexFlow:"row wrap"});var X9=e=>`anchor--${e}`,R0=({storyId:e,children:t})=>a.createElement("div",{id:X9(e),className:"sb-anchor"},t);Le&&void 0===Le.__DOCS_CONTEXT__&&(Le.__DOCS_CONTEXT__=h.createContext(null),Le.__DOCS_CONTEXT__.displayName="DocsContext");var ke=Le?Le.__DOCS_CONTEXT__:h.createContext(null),nn=(e,t)=>h.useContext(ke).resolveOf(e,t);function J9(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Q9(e,t){let r=Ol([e],t);return r&&r[0]}function Ol(e,t){let[r,a]=h.useState({});return h.useEffect((()=>{Promise.all(e.map((async e=>{let r=await t.loadStory(e);a((t=>t[e]===r?t:{...t,[e]:r}))})))})),e.map((e=>{if(r[e])return r[e];try{return t.storyById(e)}catch{return null}}))}function F0(e){return h8(e)}var $0=h.createContext({sources:{}}),D0="--unknown--",ew=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect((()=>{let e=(e,t=null,r=!1)=>{let{id:a,args:o,source:l,format:i}="string"==typeof e?{id:e,source:t,format:r}:e,s=o?F0(o):D0;n((e=>({...e,[a]:{...e[a],[s]:{code:l,format:i}}})))};return t.on(Bl,e),()=>t.off(Bl,e)}),[]),a.createElement($0.Provider,{value:{sources:r}},e)},tw=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(tw||{}),rw=e=>{let t=e.map((e=>{var t,r;return null==(r=null==(t=e.parameters.docs)?void 0:t.source)?void 0:r.state})).filter(Boolean);return 0===t.length?"closed":t[0]},nw=(e,t,r)=>{let{sources:a}=r,n=null==a?void 0:a[e];return(null==n?void 0:n[F0(t)])||(null==n?void 0:n[D0])||{code:""}},aw=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:a})=>{var n,o,l,i,s,c;let{__isArgsStory:u}=t.parameters,d=(null==(n=t.parameters.docs)?void 0:n.source)||{},p=r||d.type||pa.AUTO;if(void 0!==d.code)return d.code;let m=p===pa.DYNAMIC||p===pa.AUTO&&e&&u?e:d.originalSource||"";return d.transformSource&&fe(we`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block `),null!=(o=t.parameters.docs)&&o.transformSource&&fe(we`The \`transformSource\` parameter at \`parameters.docs.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. diff --git a/storybook-static/assets/index-HxeQ2bN6.js.LICENSE.txt b/storybook-static/assets/index-BYSxpCNe.js.LICENSE.txt similarity index 100% rename from storybook-static/assets/index-HxeQ2bN6.js.LICENSE.txt rename to storybook-static/assets/index-BYSxpCNe.js.LICENSE.txt diff --git a/storybook-static/assets/preview-CABdhu2q.js b/storybook-static/assets/preview-C7NQYlOa.js similarity index 67% rename from storybook-static/assets/preview-CABdhu2q.js rename to storybook-static/assets/preview-C7NQYlOa.js index 0f3b98a65c..1b13362cf3 100644 --- a/storybook-static/assets/preview-CABdhu2q.js +++ b/storybook-static/assets/preview-C7NQYlOa.js @@ -1 +1 @@ -const __vite__mapDeps=(e,s=__vite__mapDeps,r=s.f||(s.f=["./DocsRenderer-NNNQARDV-DnPKK__Y.js","./iframe-BRhzNi2b.js","./index-BP8_t0zE.js","./react-18-Bze0iTLm.js","./index-BBRV8eG_.js","./index-HxeQ2bN6.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js"]))=>e.map((e=>r[e]));import{_ as e}from"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:s}=await e((()=>import("./DocsRenderer-NNNQARDV-DnPKK__Y.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);return new s}}};export{a as parameters}; \ No newline at end of file +const __vite__mapDeps=(e,s=__vite__mapDeps,r=s.f||(s.f=["./DocsRenderer-NNNQARDV-C89jQal3.js","./iframe-JYjbkGI-.js","./index-BP8_t0zE.js","./react-18-Bze0iTLm.js","./index-BBRV8eG_.js","./index-BYSxpCNe.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js","./index-D-8MO0q_.js","./extends-CF3RwP-h.js","./setPrototypeOf-NYsvoNVB.js","./inheritsLoose-CdQPfY07.js","./isNativeReflectConstruct-gwnEYaHE.js","./index-EEBIeVPD.js","./index-DrFu-skq.js"]))=>e.map((e=>r[e]));import{_ as e}from"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:s}=await e((()=>import("./DocsRenderer-NNNQARDV-C89jQal3.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);return new s}}};export{a as parameters}; \ No newline at end of file diff --git a/storybook-static/assets/syntaxhighlighter-MJWPISIS-WoEhMjQR.js b/storybook-static/assets/syntaxhighlighter-MJWPISIS-76l64ZtK.js similarity index 77% rename from storybook-static/assets/syntaxhighlighter-MJWPISIS-WoEhMjQR.js rename to storybook-static/assets/syntaxhighlighter-MJWPISIS-76l64ZtK.js index fc84733bfb..1532df3ddd 100644 --- a/storybook-static/assets/syntaxhighlighter-MJWPISIS-WoEhMjQR.js +++ b/storybook-static/assets/syntaxhighlighter-MJWPISIS-76l64ZtK.js @@ -1 +1 @@ -import{S as g,c as h,s as u}from"./index-HxeQ2bN6.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,h as createCopyToClipboardFunction,u as default}; \ No newline at end of file +import{S as g,c as h,s as u}from"./index-BYSxpCNe.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,h as createCopyToClipboardFunction,u as default}; \ No newline at end of file diff --git a/storybook-static/assets/welcome-BRtPITXs.js b/storybook-static/assets/welcome-CZk4nvlI.js similarity index 95% rename from storybook-static/assets/welcome-BRtPITXs.js rename to storybook-static/assets/welcome-CZk4nvlI.js index 73add69e14..1358d94aaa 100644 --- a/storybook-static/assets/welcome-BRtPITXs.js +++ b/storybook-static/assets/welcome-CZk4nvlI.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{M as a,d as r}from"./index-HxeQ2bN6.js";import{useMDXComponents as s}from"./index-gbZvCw43.js";import"./index-BP8_t0zE.js";import"./iframe-BRhzNi2b.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";const i="# Platform Components\n\nA collection of react components for reuse across the platform. Built with [Theme UI](https://theme-ui.com/) for styling.\n\nThese components are stored within the [Community Platform monorepo](https://github.com/ONEARMY/community-platform) and configured as a standalone package using [Yarn workspaces](https://yarnpkg.com/features/workspaces/). \nThe aim of packaging these components separately is to:\n\n1. Encourage separation between presentation layer and business logic\n2. Reduce the overhead for contributors looking to work **only** on the component layer without needing to spin up the entire application locally.\n\nWe are using [Storybook](https://storybook.js.org/) to provide a browser accessible interface for our components.\n\n> Storybook is a tool for UI development. It makes development faster and easier by isolating components. This allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.\n\n(Optional) For anyone unfamiliar with Storybook looking to better understand the tool, we recommend reading their guide on [What's a Story](https://storybook.js.org/docs/react/get-started/whats-a-story).\n\n## Getting started\n\nAfter [cloning the repo](https://github.com/ONEARMY/community-platform), you can start the Storybook instance, which will make the application available in your browser at [http://localhost:6006](http://localhost:6006/).\n\n```\ncd ./packages/components\nyarn install\nyarn start\n```\n\n## Creating a new Component\n\nYou can quickly create a new component using the command `yarn new-component MyNewComponentName`, which\nwill generate the following items:\n\n```\nsrc/\n MyNewComponentName/\n MyNewComponentName.tsx # Component\n MyNewComponentName.test.tsx # Storybook documentation\n MyNewComponentName.stories.tsx # Storybook documentation\n```\n";function e(t){return o.jsxs(o.Fragment,{children:[o.jsx(a,{title:"Welcome"}),"\n",o.jsx(r,{children:i})]})}function C(t={}){const{wrapper:n}=Object.assign({},s(),t.components);return n?o.jsx(n,Object.assign({},t,{children:o.jsx(e,t)})):e()}export{C as default}; \ No newline at end of file +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{M as a,d as r}from"./index-BYSxpCNe.js";import{useMDXComponents as s}from"./index-gbZvCw43.js";import"./index-BP8_t0zE.js";import"./iframe-JYjbkGI-.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-UWD3gXM2.js";import"./index-BBRV8eG_.js";import"./index-D-8MO0q_.js";import"./extends-CF3RwP-h.js";import"./setPrototypeOf-NYsvoNVB.js";import"./inheritsLoose-CdQPfY07.js";import"./isNativeReflectConstruct-gwnEYaHE.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";const i="# Platform Components\n\nA collection of react components for reuse across the platform. Built with [Theme UI](https://theme-ui.com/) for styling.\n\nThese components are stored within the [Community Platform monorepo](https://github.com/ONEARMY/community-platform) and configured as a standalone package using [Yarn workspaces](https://yarnpkg.com/features/workspaces/). \nThe aim of packaging these components separately is to:\n\n1. Encourage separation between presentation layer and business logic\n2. Reduce the overhead for contributors looking to work **only** on the component layer without needing to spin up the entire application locally.\n\nWe are using [Storybook](https://storybook.js.org/) to provide a browser accessible interface for our components.\n\n> Storybook is a tool for UI development. It makes development faster and easier by isolating components. This allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.\n\n(Optional) For anyone unfamiliar with Storybook looking to better understand the tool, we recommend reading their guide on [What's a Story](https://storybook.js.org/docs/react/get-started/whats-a-story).\n\n## Getting started\n\nAfter [cloning the repo](https://github.com/ONEARMY/community-platform), you can start the Storybook instance, which will make the application available in your browser at [http://localhost:6006](http://localhost:6006/).\n\n```\ncd ./packages/components\nyarn install\nyarn start\n```\n\n## Creating a new Component\n\nYou can quickly create a new component using the command `yarn new-component MyNewComponentName`, which\nwill generate the following items:\n\n```\nsrc/\n MyNewComponentName/\n MyNewComponentName.tsx # Component\n MyNewComponentName.test.tsx # Storybook documentation\n MyNewComponentName.stories.tsx # Storybook documentation\n```\n";function e(t){return o.jsxs(o.Fragment,{children:[o.jsx(a,{title:"Welcome"}),"\n",o.jsx(r,{children:i})]})}function C(t={}){const{wrapper:n}=Object.assign({},s(),t.components);return n?o.jsx(n,Object.assign({},t,{children:o.jsx(e,t)})):e()}export{C as default}; \ No newline at end of file diff --git a/storybook-static/iframe.html b/storybook-static/iframe.html index cc078d6fce..4a5e7e853d 100644 --- a/storybook-static/iframe.html +++ b/storybook-static/iframe.html @@ -359,7 +359,7 @@ } - + diff --git a/storybook-static/project.json b/storybook-static/project.json index 8295a401fd..121d5bd49c 100644 --- a/storybook-static/project.json +++ b/storybook-static/project.json @@ -1 +1 @@ -{"generatedAt":1732097153982,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.6.4"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.20","storybookVersionSpecifier":"^7.4.1","language":"typescript","storybookPackages":{"storybook":{"version":"7.6.20"},"@storybook/addon-actions":{"version":"7.6.20"},"@storybook/addon-essentials":{"version":"7.6.20"},"@storybook/addon-links":{"version":"7.6.20"},"@storybook/addon-mdx-gfm":{"version":"7.6.20"},"@storybook/addons":{"version":"7.6.20"},"@storybook/react":{"version":"7.6.20"},"@storybook/react-vite":{"version":"7.6.20"},"@storybook/theming":{"version":"7.6.20"},"eslint-plugin-storybook":{"version":"0.6.15"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null},"chromatic":{"version":"11.11.0","versionSpecifier":"^11.4.0"}}} +{"generatedAt":1732099794472,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.6.4"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.20","storybookVersionSpecifier":"^7.4.1","language":"typescript","storybookPackages":{"storybook":{"version":"7.6.20"},"@storybook/addon-actions":{"version":"7.6.20"},"@storybook/addon-essentials":{"version":"7.6.20"},"@storybook/addon-links":{"version":"7.6.20"},"@storybook/addon-mdx-gfm":{"version":"7.6.20"},"@storybook/addons":{"version":"7.6.20"},"@storybook/react":{"version":"7.6.20"},"@storybook/react-vite":{"version":"7.6.20"},"@storybook/theming":{"version":"7.6.20"},"eslint-plugin-storybook":{"version":"0.6.15"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null},"chromatic":{"version":"11.11.0","versionSpecifier":"^11.4.0"}}}