ghost 6.68.0 → 6.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ghost-storage-base-3.0.1.tgz +0 -0
- package/components/tryghost-adapter-base-cache-0.2.1.tgz +0 -0
- package/components/tryghost-adapter-base-scheduling-0.2.5.tgz +0 -0
- package/components/tryghost-adapter-base-sso-0.1.4.tgz +0 -0
- package/components/tryghost-app-contracts-0.0.0.tgz +0 -0
- package/components/tryghost-checkout-0.0.0.tgz +0 -0
- package/components/tryghost-i18n-0.0.0.tgz +0 -0
- package/components/tryghost-kg-card-factory-5.2.6.tgz +0 -0
- package/components/tryghost-kg-clean-basic-html-4.3.6.tgz +0 -0
- package/components/tryghost-kg-converters-1.2.6.tgz +0 -0
- package/components/tryghost-kg-default-cards-10.3.7.tgz +0 -0
- package/components/tryghost-kg-default-nodes-2.2.3.tgz +0 -0
- package/components/tryghost-kg-default-transforms-1.3.6.tgz +0 -0
- package/components/tryghost-kg-html-to-lexical-1.4.1.tgz +0 -0
- package/components/tryghost-kg-lexical-html-renderer-1.5.1.tgz +0 -0
- package/components/tryghost-kg-markdown-html-renderer-7.2.7.tgz +0 -0
- package/components/tryghost-kg-utils-1.1.6.tgz +0 -0
- package/components/tryghost-metafield-csv-0.0.0.tgz +0 -0
- package/components/tryghost-metafield-types-0.1.1.tgz +0 -0
- package/core/boot.js +6 -0
- package/core/built/admin/assets/{about-D_nwtf7X.js → about-Dxp30cNg.js} +1 -1
- package/core/built/admin/assets/{account-migration-BaecWw1T.js → account-migration-D05akW4q.js} +1 -1
- package/core/built/admin/assets/activitypub/{account-migration-4saTEZ6p.js → account-migration-BmiwuzXI.js} +6 -6
- package/core/built/admin/assets/activitypub/activitypub.js +2 -2
- package/core/built/admin/assets/activitypub/{bluesky-sharing-BHBNuZQH.js → bluesky-sharing-B1fzMdFb.js} +6 -6
- package/core/built/admin/assets/activitypub/{content-formatters-DVx9YktY.js → content-formatters-G0qBT5QE.js} +3 -3
- package/core/built/admin/assets/activitypub/{domain-rAmlMXBC.js → domain-B3UtdA1m.js} +7 -7
- package/core/built/admin/assets/activitypub/{edit-profile-CXYL4ZrS.js → edit-profile-9EodzviR.js} +4 -4
- package/core/built/admin/assets/activitypub/{explore-dqpEx3GA.js → explore-DmwPdxHI.js} +8 -8
- package/core/built/admin/assets/activitypub/{feed-Cb-wYNw9.js → feed-yauqnu7A.js} +5 -5
- package/core/built/admin/assets/activitypub/{field-JxegcPt6.js → field-CsrMjbg2.js} +2 -2
- package/core/built/admin/assets/activitypub/{inbox-2hXDJBn5.js → inbox-DV3RrpFH.js} +7 -7
- package/core/built/admin/assets/activitypub/{label-DRQzZ7lb.js → label-DPs40NLn.js} +2 -2
- package/core/built/admin/assets/activitypub/layout-CvOhndCA.js +1 -0
- package/core/built/admin/assets/activitypub/{moderation-BnYKcTXY.js → moderation-DGa6hVNH.js} +7 -7
- package/core/built/admin/assets/activitypub/{note-C6ucS3Wu.js → note-BVL6LVHF.js} +5 -5
- package/core/built/admin/assets/activitypub/{notifications-DgBW9wEC.js → notifications-CRUu_uMC.js} +5 -5
- package/core/built/admin/assets/activitypub/{onboarding-DGu6yG4L.js → onboarding-Dpm-nLkQ.js} +2 -2
- package/core/built/admin/assets/activitypub/{onboarding-Bq3fNf_a.js → onboarding-KtpJA-xb.js} +2 -2
- package/core/built/admin/assets/activitypub/{preferences-C3jI1eVN.js → preferences-CdFuVqIt.js} +7 -7
- package/core/built/admin/assets/activitypub/{profile-Cn3vRb5Z.js → profile-KnNAoHYu.js} +8 -8
- package/core/built/admin/assets/activitypub/{routes-DbrwlS9h.js → routes-BRndai50.js} +26 -26
- package/core/built/admin/assets/activitypub/{settings-D0BALDQu.js → settings-DU7ftJ8w.js} +4 -4
- package/core/built/admin/assets/activitypub/{site-BFGj8HuQ.js → site-D1ZYV3AT.js} +2 -2
- package/core/built/admin/assets/activitypub/{step-1-CaoPg0a5.js → step-1-9IHheE78.js} +4 -4
- package/core/built/admin/assets/activitypub/{step-3-5k0TkyC9.js → step-3-DBERnfa-.js} +3 -3
- package/core/built/admin/assets/activitypub/{tabs-BV4JU7Vg.js → tabs-CvkwStij.js} +4 -4
- package/core/built/admin/assets/activitypub/{topic-filter-71sX5nfN.js → topic-filter-CS0Jsf_4.js} +2 -2
- package/core/built/admin/assets/activitypub/{use-activity-pub-queries-B3srUuKt.js → use-activity-pub-queries-CGgtQrxL.js} +2 -2
- package/core/built/admin/assets/activitypub/{use-reply-chain-data-Cl6bGNy7.js → use-reply-chain-data-CLdUpx1t.js} +4 -4
- package/core/built/admin/assets/activitypub/{users-EcSPpds5.js → users-CyoMXlwX.js} +11 -3
- package/core/built/admin/assets/{add-integration-modal-DBFzeAUT.js → add-integration-modal-BVg-ec8i.js} +1 -1
- package/core/built/admin/assets/{add-newsletter-modal-CYJe-dTC.js → add-newsletter-modal-Du6th521.js} +1 -1
- package/core/built/admin/assets/{add-recommendation-modal-CgwGKH-_.js → add-recommendation-modal-BiCJ0-q5.js} +1 -1
- package/core/built/admin/assets/{analytics-CcXT_WqF.js → analytics-CQJzDDdJ.js} +1 -1
- package/core/built/admin/assets/{announcement-bar-modal-Ldcg-PB-.js → announcement-bar-modal-CskyZLzT.js} +1 -1
- package/core/built/admin/assets/{api-BLteQZ7W.js → api-BFocMbDg.js} +2 -2
- package/core/built/admin/assets/{api-keys-CoeerpwI.js → api-keys-CqKJHuAV.js} +1 -1
- package/core/built/admin/assets/{audience-Deg9lzfk.js → audience-Dn7LuH-r.js} +1 -1
- package/core/built/admin/assets/{auth-layout-CRaMX7g6.js → auth-layout-VLhXgXn5.js} +1 -1
- package/core/built/admin/assets/{automated-emails-WcjjRkRV.js → automated-emails-D5cFl1wr.js} +1 -1
- package/core/built/admin/assets/{automations-CbIdX0rd.js → automations-BpweKEcq.js} +1 -1
- package/core/built/admin/assets/automations-DBTYwNTJ.js +1 -0
- package/core/built/admin/assets/{bluesky-sharing-BJMNRwnU.js → bluesky-sharing-CrfpFHQ9.js} +1 -1
- package/core/built/admin/assets/{chart-helpers-D-3N170i.js → chart-helpers-BSuFLd6-.js} +1 -1
- package/core/built/admin/assets/{chunk.524.94ab17e1199b4c3f4615.js → chunk.524.e24d68bc6253b274b726.js} +4 -4
- package/core/built/admin/assets/{chunk.582.6f09b19a007e2805824e.js → chunk.582.47834285406dfa1abb29.js} +6 -6
- package/core/built/admin/assets/{chunk.476.53b5794a67d68111e0bf.js → chunk.837.e1454abc054e1fba1fe5.js} +5 -5
- package/core/built/admin/assets/{code-editor-view-DhTwpxxv.js → code-editor-view-BrGe3eS4.js} +1 -1
- package/core/built/admin/assets/{code-editor-view-C7wXGiuv.js → code-editor-view-CY6JCXNv.js} +1 -1
- package/core/built/admin/assets/{color-picker-field-Cjz2zY11.js → color-picker-field-DGe9HH6W.js} +1 -1
- package/core/built/admin/assets/{comments-DY-VLVxh.js → comments-iRbF6XiJ.js} +1 -1
- package/core/built/admin/assets/{config-B3HuCo0y.js → config-CRAZ4Civ.js} +1 -1
- package/core/built/admin/assets/{content-api-modal-2jt-jWiM.js → content-api-modal-B-XRbzeW.js} +1 -1
- package/core/built/admin/assets/{content-formatters-VqvNA7Pv.js → content-formatters-C08JJbUJ.js} +2 -2
- package/core/built/admin/assets/{context-menu-BWbk9nd5.js → context-menu-BxGXsgQO.js} +1 -1
- package/core/built/admin/assets/{custom-field-type-option-CIatEwIN.js → custom-field-type-option-C8Nt4X6x.js} +1 -1
- package/core/built/admin/assets/{custom-integration-modal-Cw0w2Tb3.js → custom-integration-modal-DzI16qjN.js} +1 -1
- package/core/built/admin/assets/{date-range-select-O-uA-BRV.js → date-range-select-BZqsYsGx.js} +1 -1
- package/core/built/admin/assets/{design-and-theme-modal-BLjNHRYN.js → design-and-theme-modal-1ty_KEkM.js} +2 -2
- package/core/built/admin/assets/{dist-DJhCsld6.js → dist-B4jqKAG5.js} +1 -1
- package/core/built/admin/assets/{dist-5Ol0DC_t.js → dist-Bmo2j_KH.js} +1 -1
- package/core/built/admin/assets/{dist-p52UDdoR.js → dist-C-_aTlvJ.js} +1 -1
- package/core/built/admin/assets/{dist-CcN1a5SB.js → dist-CWHIoxYn.js} +1 -1
- package/core/built/admin/assets/{dist-BcfsaiCV.js → dist-Cp2M5TzT.js} +1 -1
- package/core/built/admin/assets/{dist-kjTYGivb.js → dist-DQAAPbtg.js} +1 -1
- package/core/built/admin/assets/{dist-IMek6Acg.js → dist-DyO279y5.js} +1 -1
- package/core/built/admin/assets/{domain-DaPAeOFF.js → domain-DiFl_Z1A.js} +1 -1
- package/core/built/admin/assets/{edit-profile-BKO5qonH.js → edit-profile-PrLbJV3P.js} +1 -1
- package/core/built/admin/assets/editor-BBJDJL8U.js +8 -0
- package/core/built/admin/assets/{editor-screen-l4BUPE2o.js → editor-screen-nblrp808.js} +3 -3
- package/core/built/admin/assets/{email-previews-B1Ska3CF.js → email-previews-BKJxrW29.js} +1 -1
- package/core/built/admin/assets/{email-sending-status-provider-Bjn5KTy2.js → email-sending-status-provider-DB9ylBWk.js} +1 -1
- package/core/built/admin/assets/{emails-qxNbhO6X.js → emails-8YiSmC2X.js} +1 -1
- package/core/built/admin/assets/{embed-signup-form-modal-DSgds6Js.js → embed-signup-form-modal-CZmbYKfd.js} +1 -1
- package/core/built/admin/assets/{error-boundary-CJODV8Rg.js → error-boundary-DrxPFFO-.js} +1 -1
- package/core/built/admin/assets/{esm-CNLDtBMc.js → esm-_iCUCvbN.js} +1 -1
- package/core/built/admin/assets/{explore-C6V_JpUZ.js → explore-C69LSRVg.js} +1 -1
- package/core/built/admin/assets/{feed-B_TyFn9E.js → feed-B_0m7WhZ.js} +1 -1
- package/core/built/admin/assets/{feedback-gKOzmiGt.js → feedback-DW1DXdzT.js} +1 -1
- package/core/built/admin/assets/{filters-Bf6E1qAP.js → filters-Dr3vMnjZ.js} +1 -1
- package/core/built/admin/assets/{filters-DhsiEotO.js → filters-M2sRWPoF.js} +1 -1
- package/core/built/admin/assets/{first-promoter-modal-LmTXHr-z.js → first-promoter-modal-D43R2zhI.js} +1 -1
- package/core/built/admin/assets/{focus-koenig-editor-on-bottom-click-BAcLNJti.js → focus-koenig-editor-on-bottom-click-BzS8jiJf.js} +1 -1
- package/core/built/admin/assets/fullscreen-close-button-CWSp-MsK.js +1 -0
- package/core/built/admin/assets/{ghost-63bc7da4336844000c523a5a0819531e.js → ghost-ffde29676517b768b1aef5ec8d492418.js} +93 -96
- package/core/built/admin/assets/{gift-link-modal-uZtwRHzl.js → gift-link-modal-CNE7dfPD.js} +1 -1
- package/core/built/admin/assets/{gift-links-HVqaXear.js → gift-links-lQ7H_D8Z.js} +1 -1
- package/core/built/admin/assets/global-search-modal-DzRM3aON.js +1 -0
- package/core/built/admin/assets/{growth-BlPW4DHj.js → growth-CAi_5HIf.js} +1 -1
- package/core/built/admin/assets/{growth-CflU3vR0.js → growth-CMHbTWKE.js} +1 -1
- package/core/built/admin/assets/history-modal-BIz13vhr.js +1 -0
- package/core/built/admin/assets/{hooks-C-BDQ6Hs.js → hooks-0r7qxGEo.js} +2 -2
- package/core/built/admin/assets/{html-field-D6G0G1d_.js → html-field-vTe2q1be.js} +1 -1
- package/core/built/admin/assets/{iframe-buffering-DW-Axhvc.js → iframe-buffering-cu-yK7NA.js} +1 -1
- package/core/built/admin/assets/{images-BSUWxquu.js → images-DTZtaIAr.js} +1 -1
- package/core/built/admin/assets/{inbox-BkU3sg13.js → inbox-BHfpmmzn.js} +1 -1
- package/core/built/admin/assets/{index-z8-nEVdb.css → index-B02LJqc8.css} +1 -1
- package/core/built/admin/assets/{index-CuDhPtkB.js → index-RuRs_qGS.js} +3 -3
- package/core/built/admin/assets/{index.es-H6HOI4DG.js → index.es-rdb1skp_.js} +1 -1
- package/core/built/admin/assets/{integrations-BRo5DwA5.js → integrations-Deg9-u8X.js} +1 -1
- package/core/built/admin/assets/{invite-user-modal-CydBOG99.js → invite-user-modal-C4DeNcoO.js} +1 -1
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +10483 -10455
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +131 -131
- package/core/built/admin/assets/{koenig-lexical-CG_eb4dw.js → koenig-lexical-BhXu1__-.js} +96 -96
- package/core/built/admin/assets/{kpi-helpers-CyRx_yD6.js → kpi-helpers-H-Hl6h7h.js} +1 -1
- package/core/built/admin/assets/{kpi-tabs-V1_Nu9sh.js → kpi-tabs-k4A9-imn.js} +1 -1
- package/core/built/admin/assets/{label-picker-GTIIlBQ6.js → label-picker-DaivLdMw.js} +1 -1
- package/core/built/admin/assets/{labels-BVGLgdAj.js → labels-BCj6D_nl.js} +1 -1
- package/core/built/admin/assets/{layout-CG58T6P7.js → layout-_g2xhB0L.js} +1 -1
- package/core/built/admin/assets/{lib-Dkic19kH.js → lib-Bre6UXdJ.js} +2 -2
- package/core/built/admin/assets/{links-jD8AkkIu.js → links-C8RnEJVJ.js} +1 -1
- package/core/built/admin/assets/{member-activity-JggQ0VNQ.js → member-activity-DNJPUW5X.js} +1 -1
- package/core/built/admin/assets/{member-activity-feed-BBeCZmLM.js → member-activity-feed-CvKEetHS.js} +1 -1
- package/core/built/admin/assets/{member-custom-fields-DPsyP1Hq.js → member-custom-fields-CBdiwPD9.js} +1 -1
- package/core/built/admin/assets/{member-detail-D7qugPN7.js → member-detail-BIoyIIsl.js} +1 -1
- package/core/built/admin/assets/{members-Cj_BUZUL.js → members-CH6KeXQc.js} +1 -1
- package/core/built/admin/assets/{members-alDWPKDd.js → members-Dd9RczFK.js} +1 -1
- package/core/built/admin/assets/{migrate-2uKKakld.js → migrate-CVQIWsXO.js} +1 -1
- package/core/built/admin/assets/{moderation-pCUKsxbF.js → moderation-OtjZoNOc.js} +1 -1
- package/core/built/admin/assets/{navigation-modal-D0FBI5-m.js → navigation-modal-Bl02NjtO.js} +1 -1
- package/core/built/admin/assets/{newsletter-4urgCSR_.js → newsletter-BXyT7o69.js} +1 -1
- package/core/built/admin/assets/{newsletter-detail-modal-Chh1jvjH.js → newsletter-detail-modal-DxuKNu_1.js} +1 -1
- package/core/built/admin/assets/{newsletter-emails-CzVCiC2K.js → newsletter-emails-DicgmnMU.js} +1 -1
- package/core/built/admin/assets/{newsletters-eRQTtOBH.js → newsletters-By25FmUs.js} +1 -1
- package/core/built/admin/assets/{newsletters-BMEgeL2l.js → newsletters-CACa0VCx.js} +1 -1
- package/core/built/admin/assets/{note-dqog4Bua.js → note-CF4LrSmR.js} +1 -1
- package/core/built/admin/assets/{notifications-rcEVv-gx.js → notifications-BmHJmqIJ.js} +1 -1
- package/core/built/admin/assets/{offers-hV7zBtsI.js → offers-Df9Jzay5.js} +1 -1
- package/core/built/admin/assets/{offers-container-modal-DgZgkMsA.js → offers-container-modal-R0HRwugm.js} +1 -1
- package/core/built/admin/assets/{onboarding-4TxbZb90.js → onboarding-Bpo1yTzA.js} +1 -1
- package/core/built/admin/assets/{onboarding-SGscZLIc.js → onboarding-bMq3R8jB.js} +1 -1
- package/core/built/admin/assets/{onboarding-route-B3mN9l7E.js → onboarding-route-flf5YWti.js} +1 -1
- package/core/built/admin/assets/{overview-D4EanvDG.js → overview-C9WvmmOC.js} +1 -1
- package/core/built/admin/assets/{overview-CCwbHet8.js → overview-CDkHdIJM.js} +1 -1
- package/core/built/admin/assets/{page-header-Baymg6VR.js → page-header-CxTb0je5.js} +1 -1
- package/core/built/admin/assets/{pagemenu--UL0gW1x.js → pagemenu-DXr_U43J.js} +1 -1
- package/core/built/admin/assets/{pages-Cbq1M2kG.js → pages-Bm-zFXyP.js} +1 -1
- package/core/built/admin/assets/pages-route-LCw94aIO.js +1 -0
- package/core/built/admin/assets/{pintura-modal-D6HGlnJa.js → pintura-modal-B5sIPWcj.js} +1 -1
- package/core/built/admin/assets/{portal-modal-Bhqsevn_.js → portal-modal-DjOO3Unv.js} +1 -1
- package/core/built/admin/assets/{post-analytics-header-DX9fETdi.js → post-analytics-header-D2anehCj.js} +1 -1
- package/core/built/admin/assets/{post-analytics-provider-U7RtOle1.js → post-analytics-provider-BLQvV5C0.js} +1 -1
- package/core/built/admin/assets/{post-analytics-BJWDtC3a.js → post-analytics-wdu9gq8u.js} +1 -1
- package/core/built/admin/assets/{post-debug-D1b8Amju.js → post-debug-BnABXMfD.js} +1 -1
- package/core/built/admin/assets/{posts-Lg-p_ZHg.js → posts-CftunZgV.js} +1 -1
- package/core/built/admin/assets/{posts-list-screen-CmsW18e_.js → posts-list-screen-CwXmvY68.js} +2 -2
- package/core/built/admin/assets/posts-route-J74fMhCe.js +1 -0
- package/core/built/admin/assets/{preferences-CMlDfHfa.js → preferences-DFhf_pJF.js} +1 -1
- package/core/built/admin/assets/{preview-modal-D8om_cQv.js → preview-modal-BrZza3R_.js} +1 -1
- package/core/built/admin/assets/{profile-yFsIoZom.js → profile-CS4fP60N.js} +1 -1
- package/core/built/admin/assets/{radio-group-DwgLjwWB.js → radio-group-Xfp-frJz.js} +1 -1
- package/core/built/admin/assets/{referrers-DzP5QoXL.js → referrers-C8LJlrBm.js} +1 -1
- package/core/built/admin/assets/{reload-CZ-KP3IQ.js → reload-D0fnKoCm.js} +1 -1
- package/core/built/admin/assets/{reset-CCAa8v35.js → reset-CB-ATcLE.js} +1 -1
- package/core/built/admin/assets/{restore-screen-Ba0i2Y1K.js → restore-screen-EaZf4V8j.js} +1 -1
- package/core/built/admin/assets/{routes-DrnhmKTT.js → routes-DKfpFMfF.js} +2 -2
- package/core/built/admin/assets/search-index-sM3OjEUl.js +1 -0
- package/core/built/admin/assets/settings-BWzod-5X.js +4 -0
- package/core/built/admin/assets/{settings-lqWkfSmT.js → settings-DvgngbFt.js} +1 -1
- package/core/built/admin/assets/{setup-BopRPuaM.js → setup-CdHAchG5.js} +1 -1
- package/core/built/admin/assets/{signin-e8NgsU9M.js → signin-CUEEme88.js} +1 -1
- package/core/built/admin/assets/{signin-verify-CHkFJevb.js → signin-verify-CYRphSrj.js} +1 -1
- package/core/built/admin/assets/{signout-DRvQZuWa.js → signout-kLCJau9G.js} +1 -1
- package/core/built/admin/assets/{signup-DQHi7jZz.js → signup-J2Vjq7Gt.js} +1 -1
- package/core/built/admin/assets/{slack-modal-BuGESzgn.js → slack-modal-DKamr_94.js} +1 -1
- package/core/built/admin/assets/source-icon-DqBCPDIK.js +1 -0
- package/core/built/admin/assets/{stats-CHOikfoP.js → stats-BL_FJ7Ns.js} +1 -1
- package/core/built/admin/assets/{stats-view-DQZzKeEz.js → stats-view-BwbdkdOQ.js} +1 -1
- package/core/built/admin/assets/{step-1-C8XwHcKt.js → step-1-CLYhNmG9.js} +1 -1
- package/core/built/admin/assets/{step-2-BXaXAdwY.js → step-2-B2ujMlpa.js} +1 -1
- package/core/built/admin/assets/{step-3-DytbqpJi.js → step-3-DoaTWqqj.js} +1 -1
- package/core/built/admin/assets/{stripe-connect-modal-BhudjSeO.js → stripe-connect-modal-DytxH9DJ.js} +1 -1
- package/core/built/admin/assets/{tabs-CDb_TceL.js → tabs-fHs3A8WC.js} +1 -1
- package/core/built/admin/assets/{tag-detail-V72Zlro8.js → tag-detail-BcO46Ids.js} +2 -2
- package/core/built/admin/assets/{tag-picker-M3fC-yOF.js → tag-picker-Ct6NeqWK.js} +1 -1
- package/core/built/admin/assets/{tags-CXqE2A2T.js → tags-C1h3wCpW.js} +1 -1
- package/core/built/admin/assets/{tags-ZhqbPPc6.js → tags-OlmRJ6Ps.js} +1 -1
- package/core/built/admin/assets/{testimonials-modal-Cn8gvIFA.js → testimonials-modal-DMsQzSCB.js} +1 -1
- package/core/built/admin/assets/{themes-pOHHvnkt.js → themes-CPJSMo_W.js} +1 -1
- package/core/built/admin/assets/{tier-detail-modal-CeDla1OO.js → tier-detail-modal-DssSmhkF.js} +1 -1
- package/core/built/admin/assets/{tiers-D7aGzwZ-.js → tiers-DlvS8D6_.js} +1 -1
- package/core/built/admin/assets/{toggle-group-D7ly9OGa.js → toggle-group-BFWCtH3p.js} +1 -1
- package/core/built/admin/assets/{topic-filter-DQ3pr6AB.js → topic-filter-DAJ-DFPb.js} +1 -1
- package/core/built/admin/assets/{transistor-modal-4_Yx2vRo.js → transistor-modal-CtyFRsD0.js} +1 -1
- package/core/built/admin/assets/{unsplash-modal-Dm7R4k4k.js → unsplash-modal-DHnnTPmZ.js} +1 -1
- package/core/built/admin/assets/{use-activity-pub-queries-Gy9_locM.js → use-activity-pub-queries-BgR1USeY.js} +1 -1
- package/core/built/admin/assets/{use-analytics-data-oJ2o0pSS.js → use-analytics-data-Byf83QE-.js} +1 -1
- package/core/built/admin/assets/{use-availability-BqL7Dvn_.js → use-availability-CgZC6L_V.js} +1 -1
- package/core/built/admin/assets/{use-check-theme-limit-error-CxC9uKJz.js → use-check-theme-limit-error-DjprzKAN.js} +1 -1
- package/core/built/admin/assets/use-definitions-CJuXLSob.js +1 -0
- package/core/built/admin/assets/{use-email-sending-status-BFAg5TIb.js → use-email-sending-status-7kopNcza.js} +1 -1
- package/core/built/admin/assets/{use-filter-params-BOo9yZ5j.js → use-filter-params-DQ7uX-Zp.js} +1 -1
- package/core/built/admin/assets/{use-filterable-api-BnNLaS_r.js → use-filterable-api-CDrrxoGD.js} +1 -1
- package/core/built/admin/assets/{use-growth-stats-BS62uyyn.js → use-growth-stats-CCpnBgqS.js} +1 -1
- package/core/built/admin/assets/{use-host-limits-CNh4AAEs.js → use-host-limits-BZx7rzRI.js} +1 -1
- package/core/built/admin/assets/{use-limiter-DPKxoO1_.js → use-limiter-gF219BEg.js} +1 -1
- package/core/built/admin/assets/{use-pintura-config-CyVO62ZV.js → use-pintura-config-D-pmGkn2.js} +1 -1
- package/core/built/admin/assets/{use-pintura-editor-B5VBPbiO.js → use-pintura-editor-D_4zhlGE.js} +1 -1
- package/core/built/admin/assets/{use-post-referrers-nUPolSk7.js → use-post-referrers-Bc8eq4uy.js} +1 -1
- package/core/built/admin/assets/{use-post-top-links-DCH4eO11.js → use-post-top-links-DjltnQuI.js} +1 -1
- package/core/built/admin/assets/{use-reply-chain-data-UMzFbDvh.js → use-reply-chain-data-BiV3Cl0B.js} +1 -1
- package/core/built/admin/assets/use-sending-eta-gE-2B0Zw.js +1 -0
- package/core/built/admin/assets/{use-setting-group-Bf3vY8br.js → use-setting-group-YP84CqrJ.js} +1 -1
- package/core/built/admin/assets/{use-staff-users-CcQzTHqH.js → use-staff-users-CnwfdSx1.js} +1 -1
- package/core/built/admin/assets/{use-tinybird-query-CPy5ipAP.js → use-tinybird-query-BYbl5gKY.js} +1 -1
- package/core/built/admin/assets/{use-tinybird-token-DVNHuhu_.js → use-tinybird-token-Dz37zvb7.js} +1 -1
- package/core/built/admin/assets/{use-unsaved-changes-guard-Bvcp_Rny.js → use-unsaved-changes-guard-BkCuSlvU.js} +1 -1
- package/core/built/admin/assets/{use-upgrade-route-Bsxw9ZLN.js → use-upgrade-route-C-V-Xfak.js} +1 -1
- package/core/built/admin/assets/{use-url-input-DPJ592FB.js → use-url-input-BeYKYMGh.js} +1 -1
- package/core/built/admin/assets/{user-detail-modal-6UY6GdNy.js → user-detail-modal-CSoj7vOC.js} +1 -1
- package/core/built/admin/assets/{users-CzgQKbfO.js → users-CKJaAxEJ.js} +1 -1
- package/core/built/admin/assets/{view-site-DA_-zfGq.js → view-site-SpMx4P7G.js} +1 -1
- package/core/built/admin/assets/{web-Cq5YiD2r.js → web-CZf-k4F0.js} +1 -1
- package/core/built/admin/assets/{web-DqFIrOxt.js → web-uAqgYPK9.js} +1 -1
- package/core/built/admin/assets/{zapier-modal-DgqU-OBB.js → zapier-modal-DENbgTyE.js} +1 -1
- package/core/built/admin/index.html +24 -24
- package/core/frontend/helpers/color_to_rgba.js +15 -13
- package/core/frontend/helpers/facebook_url.js +27 -15
- package/core/frontend/services/assets-minification/card-assets.js +1 -1
- package/core/frontend/services/helpers/register-ghost-helpers.js +2 -2
- package/core/server/api/endpoints/app-installations.js +36 -0
- package/core/server/api/endpoints/automations.js +1 -1
- package/core/server/api/endpoints/index.js +4 -0
- package/core/server/data/exporter/table-lists.js +2 -0
- package/core/server/data/migrations/versions/6.69/2026-10-07-06-20-43-add-app-installation-permissions.js +40 -0
- package/core/server/data/schema/fixtures/fixtures.json +21 -0
- package/core/server/data/schema/in-development.js +1 -1
- package/core/server/data/schema/schema.js +53 -0
- package/core/server/lib/after-commit.js +20 -0
- package/core/server/models/action.js +6 -0
- package/core/server/services/app-installations/actions.js +44 -0
- package/core/server/services/app-installations/codec.js +20 -0
- package/core/server/services/app-installations/index.js +42 -0
- package/core/server/services/app-installations/schema.js +52 -0
- package/core/server/services/app-installations/service.js +160 -0
- package/core/server/services/automations/README.md +3 -3
- package/core/server/services/automations/automations-api.js +1 -1
- package/core/server/services/comments/comments-service-emails.js +8 -6
- package/core/server/services/email-service/README.md +16 -0
- package/core/server/services/email-service/email-service-wrapper.js +1 -0
- package/core/server/services/email-service/email-service.js +94 -53
- package/core/server/services/email-service/sending-status-serializers.js +4 -1
- package/core/server/services/email-service/sending-status-service.js +13 -0
- package/core/server/services/email-service/sending-status.js +12 -1
- package/core/server/services/members/members-api/repositories/member-repository.js +5 -23
- package/core/server/services/posts/post-email-handler.js +61 -28
- package/core/server/services/posts/posts-service.js +27 -2
- package/core/server/services/service-inventory.yaml +93 -7
- package/core/server/services/stats/stats-service.js +1 -5
- package/core/server/services/tinybird-sync/index.js +0 -3
- package/core/server/services/tinybird-sync/tinybird-sync-service.js +2 -6
- package/core/server/web/api/endpoints/admin/routes.js +25 -12
- package/core/shared/labs.js +4 -6
- package/package.json +11 -10
- package/pnpm-lock.yaml +112 -100
- package/pnpm-workspace.yaml +14 -12
- package/components/ghost-storage-base-3.0.0.tgz +0 -0
- package/components/tryghost-adapter-base-cache-0.2.0.tgz +0 -0
- package/components/tryghost-checkout-0.0.1.tgz +0 -0
- package/components/tryghost-kg-card-factory-5.2.4.tgz +0 -0
- package/components/tryghost-kg-clean-basic-html-4.3.4.tgz +0 -0
- package/components/tryghost-kg-converters-1.2.5.tgz +0 -0
- package/components/tryghost-kg-default-transforms-1.3.4.tgz +0 -0
- package/components/tryghost-kg-html-to-lexical-1.4.0.tgz +0 -0
- package/components/tryghost-kg-markdown-html-renderer-7.2.6.tgz +0 -0
- package/components/tryghost-kg-utils-1.1.4.tgz +0 -0
- package/components/tryghost-metafield-csv-0.0.1.tgz +0 -0
- package/core/built/admin/assets/activitypub/layout-QTbY0t8e.js +0 -1
- package/core/built/admin/assets/automations-DVToctfJ.js +0 -1
- package/core/built/admin/assets/editor-CMXR0YvR.js +0 -8
- package/core/built/admin/assets/fullscreen-close-button-DXssPeDB.js +0 -1
- package/core/built/admin/assets/global-search-modal-C8LVJmiz.js +0 -1
- package/core/built/admin/assets/history-modal-parBtjpz.js +0 -1
- package/core/built/admin/assets/pages-route-CDk3V9rq.js +0 -1
- package/core/built/admin/assets/posts-route-CexHhklY.js +0 -1
- package/core/built/admin/assets/settings-xqakrAWa.js +0 -4
- package/core/built/admin/assets/source-icon-BjVangBd.js +0 -1
- package/core/built/admin/assets/use-definitions-DMVU3mTG.js +0 -1
- package/core/built/admin/assets/use-sending-eta-BsnKdQhv.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, S as t, T as n, _ as r, a as i, c as a, d as o, g as s, i as c, l, p as u, r as d, s as f, t as p, u as m, v as h, w as g, x as _ } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { c as v, f as y, m as b, o as x, r as S, s as C, t as w, w as T } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
|
-
import { i as E } from "./users-
|
|
3
|
+
import { i as E } from "./users-CyoMXlwX.js";
|
|
4
4
|
import { A as D, B as O, C as k, D as A, H as j, I as M, J as N, L as P, M as ee, N as F, O as I, P as L, Q as te, T as ne, U as re, V as ie, Y as ae, Z as R, _ as oe, b as se, c as z, g as ce, h as B, i as le, j as ue, m as de, n as fe, o as V, p as H, q as pe, r as U, t as me, v as he, w as W, x as ge, y as _e, z as ve } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
5
|
-
import { A as ye, C as G, D as be, F as xe, J as Se, M as Ce, N as we, P as Te, Q as Ee, R as De, S as Oe, U as ke, X as Ae, Z as K, a as je, f as Me, j as Ne, p as Pe, t as Fe, x as Ie, y as Le, z as Re } from "./use-activity-pub-queries-
|
|
5
|
+
import { A as ye, C as G, D as be, F as xe, J as Se, M as Ce, N as we, P as Te, Q as Ee, R as De, S as Oe, U as ke, X as Ae, Z as K, a as je, f as Me, j as Ne, p as Pe, t as Fe, x as Ie, y as Le, z as Re } from "./use-activity-pub-queries-CGgtQrxL.js";
|
|
6
6
|
import { a as ze, i as Be, n as Ve, r as He, t as Ue } from "./x-Btb3VwR5.js";
|
|
7
|
-
import { c as We, d as Ge, i as Ke, l as qe, o as Je, s as Ye, u as q } from "./content-formatters-
|
|
7
|
+
import { c as We, d as Ge, i as Ke, l as qe, o as Je, s as Ye, u as q } from "./content-formatters-G0qBT5QE.js";
|
|
8
8
|
import { a as Xe, i as Ze, n as Qe, r as $e, t as et } from "./avatar-fujJqU9M.js";
|
|
9
|
-
import { n as tt, t as nt } from "./onboarding-
|
|
10
|
-
import "./onboarding-
|
|
9
|
+
import { n as tt, t as nt } from "./onboarding-Dpm-nLkQ.js";
|
|
10
|
+
import "./onboarding-KtpJA-xb.js";
|
|
11
11
|
//#region ../admin-x-framework/dist/utils/lazy-component.js
|
|
12
12
|
function J(e) {
|
|
13
13
|
return () => e().then(({ default: e }) => ({ Component: e }));
|
|
@@ -4838,95 +4838,95 @@ var $s = ({ children: e }) => /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
|
4838
4838
|
},
|
|
4839
4839
|
{
|
|
4840
4840
|
path: "reader",
|
|
4841
|
-
lazy: J(() => import("./inbox-
|
|
4841
|
+
lazy: J(() => import("./inbox-DV3RrpFH.js")),
|
|
4842
4842
|
pageTitle: "Reader"
|
|
4843
4843
|
},
|
|
4844
4844
|
{
|
|
4845
4845
|
path: "reader/:postId",
|
|
4846
|
-
lazy: J(() => import("./inbox-
|
|
4846
|
+
lazy: J(() => import("./inbox-DV3RrpFH.js")),
|
|
4847
4847
|
pageTitle: "Reader"
|
|
4848
4848
|
},
|
|
4849
4849
|
{
|
|
4850
4850
|
path: "notes",
|
|
4851
|
-
lazy: J(() => import("./feed-
|
|
4851
|
+
lazy: J(() => import("./feed-yauqnu7A.js")),
|
|
4852
4852
|
pageTitle: "Notes"
|
|
4853
4853
|
},
|
|
4854
4854
|
{
|
|
4855
4855
|
path: "notes/:postId",
|
|
4856
|
-
lazy: J(() => import("./note-
|
|
4856
|
+
lazy: J(() => import("./note-BVL6LVHF.js")),
|
|
4857
4857
|
pageTitle: "Note"
|
|
4858
4858
|
},
|
|
4859
4859
|
{
|
|
4860
4860
|
path: "notifications",
|
|
4861
|
-
lazy: J(() => import("./notifications-
|
|
4861
|
+
lazy: J(() => import("./notifications-CRUu_uMC.js")),
|
|
4862
4862
|
pageTitle: "Notifications"
|
|
4863
4863
|
},
|
|
4864
4864
|
{
|
|
4865
4865
|
path: "explore",
|
|
4866
|
-
lazy: J(() => import("./explore-
|
|
4866
|
+
lazy: J(() => import("./explore-DmwPdxHI.js")),
|
|
4867
4867
|
pageTitle: "Explore"
|
|
4868
4868
|
},
|
|
4869
4869
|
{
|
|
4870
4870
|
path: "explore/:topic",
|
|
4871
|
-
lazy: J(() => import("./explore-
|
|
4871
|
+
lazy: J(() => import("./explore-DmwPdxHI.js")),
|
|
4872
4872
|
pageTitle: "Explore"
|
|
4873
4873
|
},
|
|
4874
4874
|
{
|
|
4875
4875
|
path: "profile",
|
|
4876
|
-
lazy: J(() => import("./profile-
|
|
4876
|
+
lazy: J(() => import("./profile-KnNAoHYu.js")),
|
|
4877
4877
|
pageTitle: "Profile"
|
|
4878
4878
|
},
|
|
4879
4879
|
{
|
|
4880
4880
|
path: "profile/likes",
|
|
4881
|
-
lazy: J(() => import("./profile-
|
|
4881
|
+
lazy: J(() => import("./profile-KnNAoHYu.js")),
|
|
4882
4882
|
pageTitle: "Profile"
|
|
4883
4883
|
},
|
|
4884
4884
|
{
|
|
4885
4885
|
path: "profile/following",
|
|
4886
|
-
lazy: J(() => import("./profile-
|
|
4886
|
+
lazy: J(() => import("./profile-KnNAoHYu.js")),
|
|
4887
4887
|
pageTitle: "Profile"
|
|
4888
4888
|
},
|
|
4889
4889
|
{
|
|
4890
4890
|
path: "profile/followers",
|
|
4891
|
-
lazy: J(() => import("./profile-
|
|
4891
|
+
lazy: J(() => import("./profile-KnNAoHYu.js")),
|
|
4892
4892
|
pageTitle: "Profile"
|
|
4893
4893
|
},
|
|
4894
4894
|
{
|
|
4895
4895
|
path: "profile/:handle/:tab?",
|
|
4896
|
-
lazy: J(() => import("./profile-
|
|
4896
|
+
lazy: J(() => import("./profile-KnNAoHYu.js")),
|
|
4897
4897
|
pageTitle: "Profile"
|
|
4898
4898
|
},
|
|
4899
4899
|
{
|
|
4900
4900
|
path: "preferences",
|
|
4901
|
-
lazy: J(() => import("./preferences-
|
|
4901
|
+
lazy: J(() => import("./preferences-CdFuVqIt.js")),
|
|
4902
4902
|
pageTitle: "Preferences"
|
|
4903
4903
|
},
|
|
4904
4904
|
{
|
|
4905
4905
|
path: "preferences/moderation",
|
|
4906
|
-
lazy: J(() => import("./moderation-
|
|
4906
|
+
lazy: J(() => import("./moderation-DGa6hVNH.js")),
|
|
4907
4907
|
pageTitle: "Moderation",
|
|
4908
4908
|
showBackButton: !0
|
|
4909
4909
|
},
|
|
4910
4910
|
{
|
|
4911
4911
|
path: "preferences/bluesky-sharing",
|
|
4912
|
-
lazy: J(() => import("./bluesky-sharing-
|
|
4912
|
+
lazy: J(() => import("./bluesky-sharing-B1fzMdFb.js")),
|
|
4913
4913
|
showBackButton: !0
|
|
4914
4914
|
},
|
|
4915
4915
|
{
|
|
4916
4916
|
path: "preferences/move",
|
|
4917
|
-
lazy: J(() => import("./account-migration-
|
|
4917
|
+
lazy: J(() => import("./account-migration-BmiwuzXI.js")),
|
|
4918
4918
|
pageTitle: "Account migration",
|
|
4919
4919
|
showBackButton: !0
|
|
4920
4920
|
},
|
|
4921
4921
|
{
|
|
4922
4922
|
path: "preferences/handle",
|
|
4923
|
-
lazy: J(() => import("./domain-
|
|
4923
|
+
lazy: J(() => import("./domain-B3UtdA1m.js")),
|
|
4924
4924
|
pageTitle: "Handle",
|
|
4925
4925
|
showBackButton: !0
|
|
4926
4926
|
},
|
|
4927
4927
|
{
|
|
4928
4928
|
path: "welcome",
|
|
4929
|
-
lazy: J(() => import("./onboarding-
|
|
4929
|
+
lazy: J(() => import("./onboarding-KtpJA-xb.js").then((e) => e.t)),
|
|
4930
4930
|
pageTitle: "Welcome",
|
|
4931
4931
|
children: [
|
|
4932
4932
|
{
|
|
@@ -4938,7 +4938,7 @@ var $s = ({ children: e }) => /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
|
4938
4938
|
},
|
|
4939
4939
|
{
|
|
4940
4940
|
path: "1",
|
|
4941
|
-
lazy: J(() => import("./step-1-
|
|
4941
|
+
lazy: J(() => import("./step-1-9IHheE78.js"))
|
|
4942
4942
|
},
|
|
4943
4943
|
{
|
|
4944
4944
|
path: "2",
|
|
@@ -4946,7 +4946,7 @@ var $s = ({ children: e }) => /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
|
4946
4946
|
},
|
|
4947
4947
|
{
|
|
4948
4948
|
path: "3",
|
|
4949
|
-
lazy: J(() => import("./step-3-
|
|
4949
|
+
lazy: J(() => import("./step-3-DBERnfa-.js"))
|
|
4950
4950
|
},
|
|
4951
4951
|
{
|
|
4952
4952
|
path: "*",
|
|
@@ -4966,4 +4966,4 @@ var $s = ({ children: e }) => /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
|
4966
4966
|
//#endregion
|
|
4967
4967
|
export { Qr as $, lo as A, ba as B, ms as C, cs as D, us as E, ma as F, Fi as G, xa as H, Ca as I, Kr as J, Ii as K, wa as L, Aa as M, Ea as N, uo as O, Ta as P, $r as Q, va as R, ys as S, fs as T, ha as U, ya as V, Ni as W, Zr as X, Yr as Y, ti as Z, ws as _, Qs as a, ln as at, Ss as b, Ls as c, Nt as ct, As as d, gt as dt, ei as et, Ps as f, mt as ft, ks as g, at as gt, Ts as h, lt as ht, ec as i, _r as it, Na as j, co as k, Fs as l, At as lt, Ns as m, dt as mt, tc as n, vr as nt, Xs as o, Ht as ot, Ms as p, pt, Pi as q, $s as r, Z as rt, Us as s, It as st, rc as t, qr as tt, js as u, _t as ut, Cs as v, ps as w, bs as x, xs as y, Sa as z };
|
|
4968
4968
|
|
|
4969
|
-
//# sourceMappingURL=routes-
|
|
4969
|
+
//# sourceMappingURL=routes-BRndai50.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as e, _ as t, c as n, d as r, g as i, u as a, v as o, w as s } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { t as c, w as l } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
3
|
import { C as u, D as d, J as f, M as p, N as m, O as h, P as g, j as _, m as v, n as y, r as b, t as x } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
4
|
-
import { Z as S } from "./use-activity-pub-queries-
|
|
5
|
-
import { $ as C, J as w, X as T, et as E, ft as D, tt as O, ut as k } from "./routes-
|
|
6
|
-
import { t as A } from "./edit-profile-
|
|
4
|
+
import { Z as S } from "./use-activity-pub-queries-CGgtQrxL.js";
|
|
5
|
+
import { $ as C, J as w, X as T, et as E, ft as D, tt as O, ut as k } from "./routes-BRndai50.js";
|
|
6
|
+
import { t as A } from "./edit-profile-9EodzviR.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.11_@types+react-dom@18.3.7_@types+react@18.3.31__@types+_d63a01f8f2419583266dd4480c0aa94b/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
8
8
|
r();
|
|
9
9
|
var j = l();
|
|
@@ -311,4 +311,4 @@ var ce = ({ account: t, className: n = "" }) => {
|
|
|
311
311
|
//#endregion
|
|
312
312
|
export { J as a, oe as c, M as d, Q as i, z as l, Y as n, ce as o, X as r, se as s, Z as t, P as u };
|
|
313
313
|
|
|
314
|
-
//# sourceMappingURL=settings-
|
|
314
|
+
//# sourceMappingURL=settings-DU7ftJ8w.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./users-
|
|
1
|
+
import { r as e } from "./users-CyoMXlwX.js";
|
|
2
2
|
//#region ../admin-x-framework/dist/api/site.js
|
|
3
3
|
var t = e({
|
|
4
4
|
dataType: "SiteResponseType",
|
|
@@ -7,4 +7,4 @@ var t = e({
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { t };
|
|
9
9
|
|
|
10
|
-
//# sourceMappingURL=site-
|
|
10
|
+
//# sourceMappingURL=site-D1ZYV3AT.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as e, d as t } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { w as n } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
|
-
import { t as r } from "./users-
|
|
3
|
+
import { t as r } from "./users-CyoMXlwX.js";
|
|
4
4
|
import { r as i, t as a } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
5
|
-
import { X as o, a as s } from "./use-activity-pub-queries-
|
|
6
|
-
import { c, o as l, p as u, u as d } from "./content-formatters-
|
|
5
|
+
import { X as o, a as s } from "./use-activity-pub-queries-CGgtQrxL.js";
|
|
6
|
+
import { c, o as l, p as u, u as d } from "./content-formatters-G0qBT5QE.js";
|
|
7
7
|
import { t as f } from "./copy-DdEdc3XW.js";
|
|
8
8
|
//#region src/assets/images/onboarding/ap-nodes.png
|
|
9
9
|
t();
|
|
@@ -131,4 +131,4 @@ var p = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACiQAAAbiCAMAAACQEPi9AAACV
|
|
|
131
131
|
//#endregion
|
|
132
132
|
export { g as default };
|
|
133
133
|
|
|
134
|
-
//# sourceMappingURL=step-1-
|
|
134
|
+
//# sourceMappingURL=step-1-9IHheE78.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as e, d as t, v as n } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { w as r } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
3
|
import { o as i, r as a, t as o } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
4
|
-
import { F as s, J as c, a as l } from "./use-activity-pub-queries-
|
|
4
|
+
import { F as s, J as c, a as l } from "./use-activity-pub-queries-CGgtQrxL.js";
|
|
5
5
|
import { a as u, i as d, n as f, r as p, t as m } from "./x-Btb3VwR5.js";
|
|
6
6
|
import { t as h } from "./hash-CWPwnF98.js";
|
|
7
7
|
import { a as g, i as _, n as v, r as y, t as b } from "./avatar-fujJqU9M.js";
|
|
@@ -9,7 +9,7 @@ import { t as x } from "./inbox-D3nqiOcg.js";
|
|
|
9
9
|
import { n as S, r as C, t as w } from "./avatar-flipboard-DRS0uE0x.js";
|
|
10
10
|
import { t as T } from "./reply-DoY7pNcU.js";
|
|
11
11
|
import { t as E } from "./separator-B7iDBw5J.js";
|
|
12
|
-
import { n as D } from "./onboarding-
|
|
12
|
+
import { n as D } from "./onboarding-Dpm-nLkQ.js";
|
|
13
13
|
var O = i("a-large-small", [
|
|
14
14
|
["path", {
|
|
15
15
|
d: "m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16",
|
|
@@ -448,4 +448,4 @@ var k = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAjF
|
|
|
448
448
|
//#endregion
|
|
449
449
|
export { X as default };
|
|
450
450
|
|
|
451
|
-
//# sourceMappingURL=step-3-
|
|
451
|
+
//# sourceMappingURL=step-3-DBERnfa-.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as e, _ as t, c as n, d as r, g as i, r as a, u as o, v as s, w as c } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { w as l } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
3
|
import { C as u, D as d, I as f, J as p, M as m, N as h, O as g, P as _, _ as ee, b as v, c as te, g as y, h as b, j as x, k as S, m as C, o as ne, p as re, v as ie, w as ae, x as w, y as oe } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
4
|
-
import { at as T, ft as se, ht as E, it as ce, ot as le, st as ue } from "./routes-
|
|
5
|
-
import { p as D } from "./content-formatters-
|
|
6
|
-
import { c as de, d as fe, l as O, s as k, u as A } from "./settings-
|
|
4
|
+
import { at as T, ft as se, ht as E, it as ce, ot as le, st as ue } from "./routes-BRndai50.js";
|
|
5
|
+
import { p as D } from "./content-formatters-G0qBT5QE.js";
|
|
6
|
+
import { c as de, d as fe, l as O, s as k, u as A } from "./settings-DU7ftJ8w.js";
|
|
7
7
|
var pe = ne("circle", [["circle", {
|
|
8
8
|
cx: "12",
|
|
9
9
|
cy: "12",
|
|
@@ -1098,4 +1098,4 @@ ir.displayName = "TabsDropdownTrigger";
|
|
|
1098
1098
|
//#endregion
|
|
1099
1099
|
export { tr as a, er as i, rr as n, Qn as r, Xn as t };
|
|
1100
1100
|
|
|
1101
|
-
//# sourceMappingURL=tabs-
|
|
1101
|
+
//# sourceMappingURL=tabs-CvkwStij.js.map
|
package/core/built/admin/assets/activitypub/{topic-filter-71sX5nfN.js → topic-filter-CS0Jsf_4.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as e, d as t, v as n, w as r } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { w as i } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
3
|
import { r as a } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
4
|
-
import { F as o } from "./use-activity-pub-queries-
|
|
4
|
+
import { F as o } from "./use-activity-pub-queries-CGgtQrxL.js";
|
|
5
5
|
//#region src/components/topic-filter.tsx
|
|
6
6
|
t();
|
|
7
7
|
var s = i(), c = ({ currentTopic: t, onTopicChange: i, excludeTopics: c = [] }) => {
|
|
@@ -37,4 +37,4 @@ var s = i(), c = ({ currentTopic: t, onTopicChange: i, excludeTopics: c = [] })
|
|
|
37
37
|
//#endregion
|
|
38
38
|
export { c as t };
|
|
39
39
|
|
|
40
|
-
//# sourceMappingURL=topic-filter-
|
|
40
|
+
//# sourceMappingURL=topic-filter-CS0Jsf_4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as e, a as t, d as n, g as r, u as i, v as a } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { C as o, m as s, w as c } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
|
-
import { a as l, o as u, s as d } from "./users-
|
|
3
|
+
import { a as l, o as u, s as d } from "./users-CyoMXlwX.js";
|
|
4
4
|
import { J as f } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
5
5
|
//#region ../shade/es/components/primitives/text.js
|
|
6
6
|
n();
|
|
@@ -1997,4 +1997,4 @@ function Ke(e) {
|
|
|
1997
1997
|
//#endregion
|
|
1998
1998
|
export { ve as A, we as B, ze as C, ke as D, Pe as E, Ue as F, k as G, Ae as H, le as I, y as J, re as K, de as L, Be as M, _e as N, De as O, He as P, v as Q, he as R, ye as S, Ne as T, me as U, Le as V, Te as W, x as X, b as Y, S as Z, Ve as _, be as a, je as b, ue as c, Ke as d, Fe as f, We as g, Me as h, xe as i, fe as j, Ie as k, oe as l, Ge as m, Se as n, Ee as o, pe as p, E as q, Ce as r, ce as s, Re as t, se as u, Oe as v, Q as w, G as x, ge as y, K as z };
|
|
1999
1999
|
|
|
2000
|
-
//# sourceMappingURL=use-activity-pub-queries-
|
|
2000
|
+
//# sourceMappingURL=use-activity-pub-queries-CGgtQrxL.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as e, d as t, w as n } from "./_react-D4KM8XEu.js";
|
|
2
2
|
import { w as r } from "./chunk-OB3PAWPO-BZOqgbiV.js";
|
|
3
3
|
import { o as i, r as a } from "./use-navigate-with-base-path-CWS9sZhM.js";
|
|
4
|
-
import { G as o, U as s, k as c } from "./use-activity-pub-queries-
|
|
5
|
-
import { N as l, l as u } from "./routes-
|
|
6
|
-
import { c as d, l as f } from "./content-formatters-
|
|
4
|
+
import { G as o, U as s, k as c } from "./use-activity-pub-queries-CGgtQrxL.js";
|
|
5
|
+
import { N as l, l as u } from "./routes-BRndai50.js";
|
|
6
|
+
import { c as d, l as f } from "./content-formatters-G0qBT5QE.js";
|
|
7
7
|
var p = i("trash", [
|
|
8
8
|
["path", {
|
|
9
9
|
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
@@ -129,4 +129,4 @@ function v(e, t = {}) {
|
|
|
129
129
|
//#endregion
|
|
130
130
|
export { h as i, _ as n, g as r, v as t };
|
|
131
131
|
|
|
132
|
-
//# sourceMappingURL=use-reply-chain-data-
|
|
132
|
+
//# sourceMappingURL=use-reply-chain-data-CLdUpx1t.js.map
|
|
@@ -593,7 +593,11 @@ var Le = (e) => {
|
|
|
593
593
|
t.append(r, i);
|
|
594
594
|
}
|
|
595
595
|
return t;
|
|
596
|
-
}, Re = (e) => new Response(
|
|
596
|
+
}, Re = (e) => new Response([
|
|
597
|
+
204,
|
|
598
|
+
205,
|
|
599
|
+
304
|
|
600
|
+
].includes(e.status) ? null : e.response, {
|
|
597
601
|
status: e.status,
|
|
598
602
|
statusText: e.statusText,
|
|
599
603
|
headers: Le(e)
|
|
@@ -627,7 +631,11 @@ var Le = (e) => {
|
|
|
627
631
|
u.upload.onprogress = (t) => {
|
|
628
632
|
t.lengthComputable && e(t.loaded / t.total * 100);
|
|
629
633
|
}, u.onload = () => {
|
|
630
|
-
|
|
634
|
+
try {
|
|
635
|
+
s(Re(u));
|
|
636
|
+
} catch (e) {
|
|
637
|
+
c(e);
|
|
638
|
+
}
|
|
631
639
|
}, u.onerror = () => {
|
|
632
640
|
c(/* @__PURE__ */ TypeError("Network request failed"));
|
|
633
641
|
}, u.onabort = l;
|
|
@@ -907,4 +915,4 @@ Z({
|
|
|
907
915
|
//#endregion
|
|
908
916
|
export { z as a, $e as i, ot as n, R as o, et as r, L as s, at as t };
|
|
909
917
|
|
|
910
|
-
//# sourceMappingURL=users-
|
|
918
|
+
//# sourceMappingURL=users-CyoMXlwX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`1c677a2a-b11a-493b-af41-09a4a3363c7b`,e._sentryDebugIdIdentifier=`sentry-dbid-1c677a2a-b11a-493b-af41-09a4a3363c7b`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{g as n,y as r}from"./hooks-0r7qxGEo.js";import{t as i}from"./jsx-runtime-Bm2_KH-0.js";import{a,t as o}from"./button-CTHYSI-d.js";import{t as s}from"./use-limiter-gF219BEg.js";import{a as c,n as l,o as u,r as d,s as f,t as p}from"./dialog-BO1lcy8A.js";import{a as m,i as h,o as g,t as _}from"./field-DCPPrQDr.js";import{t as v}from"./input-BHb2A_DU.js";import{t as y}from"./use-settings-navigation-CO2nUqDW.js";import{n as b}from"./confirmation-context-By_jX_cA.js";import{t as x}from"./use-upgrade-route-C-V-Xfak.js";import{r as S}from"./integrations-Deg9-u8X.js";var C=e(t(),1),w=i();function T(){let{updateRoute:e}=y(),t=x(),[i,T]=(0,C.useState)(``),[E,D]=(0,C.useState)({name:``}),{mutateAsync:O,isPending:k}=S(),A=s(),j=n(),{showLimit:M}=b();(0,C.useEffect)(()=>{A?.isLimited(`customIntegrations`)&&A.errorIfWouldGoOverLimit(`customIntegrations`).catch(n=>{n instanceof r&&(M({prompt:n.message||`Your current plan doesn't support more custom integrations.`,onOk:()=>e({route:t,isExternal:!0})}),e(`integrations`))})},[A,M,e,t]);let N=async t=>{if(t.preventDefault(),!k){if(!i){D({name:`Name is required`});return}try{let t=await O({name:i});e({route:`integrations/${t.integrations[0].id}`})}catch(e){j(e)}}};return(0,w.jsx)(p,{open:!0,onOpenChange:t=>{t||e(`integrations`)},children:(0,w.jsx)(d,{"aria-describedby":void 0,"data-testid":`add-integration-modal`,asChild:!0,children:(0,w.jsxs)(`form`,{onSubmit:e=>void N(e),children:[(0,w.jsx)(u,{children:(0,w.jsx)(f,{children:`Add integration`})}),(0,w.jsx)(l,{asChild:!0,children:(0,w.jsx)(o,{"aria-label":`Close modal`,className:`absolute top-6 right-6 -m-2 opacity-50 hover:opacity-100 md:hidden`,size:`icon`,type:`button`,variant:`ghost`,children:(0,w.jsx)(a,{})})}),(0,w.jsx)(m,{className:`gap-8`,children:(0,w.jsxs)(_,{"data-invalid":!!E.name||void 0,children:[(0,w.jsx)(g,{htmlFor:`integration-name`,children:`Name`}),(0,w.jsx)(v,{"aria-invalid":!!E.name||void 0,id:`integration-name`,maxLength:191,placeholder:`Custom integration`,value:i,autoFocus:!0,onChange:e=>T(e.target.value),onInput:()=>E.name&&D({name:``})}),E.name&&(0,w.jsx)(h,{children:E.name})]})}),(0,w.jsxs)(c,{children:[(0,w.jsx)(o,{type:`button`,variant:`outline`,onClick:()=>e(`integrations`),children:`Cancel`}),(0,w.jsx)(o,{disabled:k,type:`submit`,children:`Add`})]})]})})})}export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4589993a-f511-4a41-b7c7-b5770e92559d`,e._sentryDebugIdIdentifier=`sentry-dbid-4589993a-f511-4a41-b7c7-b5770e92559d`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{g as n,y as r}from"./hooks-0r7qxGEo.js";import{t as i}from"./jsx-runtime-Bm2_KH-0.js";import{i as a}from"./members-CH6KeXQc.js";import{t as o}from"./use-form-ElCUnbKi.js";import{H as s}from"./shade-provider-DvrXKKQZ.js";import{t as c}from"./use-limiter-gF219BEg.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./field-DCPPrQDr.js";import{t as h}from"./input-BHb2A_DU.js";import{t as g}from"./switch-BppWscjz.js";import{t as _}from"./textarea-B_rfKtjs.js";import{n as v}from"./newsletters-CACa0VCx.js";import{t as y}from"./settings-modal-3x4v8abr.js";import{B as b}from"./index-RuRs_qGS.js";import{t as x}from"./use-settings-navigation-CO2nUqDW.js";import{n as S}from"./confirmation-context-By_jX_cA.js";import{t as C}from"./use-upgrade-route-C-V-Xfak.js";var w=e(t(),1),T=i(),E=()=>{let{updateRoute:e}=x(),t=C(),i=b(`automations`)?`emails`:`newsletters`,E=n(),{showLimit:D}=S(),[O,k]=(0,w.useState)(!0),[A,j]=(0,w.useState)(null),{data:M}=a({searchParams:{filter:`newsletters.status:active+email_disabled:0`,limit:`1`,page:`1`,include:`newsletters,labels`}}),{mutateAsync:N}=v(),{formState:P,updateForm:F,saveState:I,handleSave:L,errors:R,clearError:z}=o({initialState:{name:``,description:``,optInExistingSubscribers:!0},onSave:async()=>{let t=await N({name:P.name,description:P.description,opt_in_existing:P.optInExistingSubscribers,feedback_enabled:!0});e({route:`newsletters/${t.newsletters[0].id}`})},onSaveError:E,onValidate:()=>{let e={};return P.name||(e.name=`A name is required for your newsletter`),e}}),B=c();(0,w.useEffect)(()=>{if(!B){k(!1);return}B.errorIfWouldGoOverLimit(`newsletters`).catch(e=>{if(e instanceof r)j(e);else throw e}).finally(()=>{k(!1)})},[B]);let V=M?.meta?.pagination.total;return(0,w.useEffect)(()=>{A&&(D({prompt:A.message||`Your current plan doesn't support more newsletters.`,onOk:()=>e({route:t,isExternal:!0})}),e(i))},[A,i,e,D,t]),O||A?null:(0,T.jsx)(y,{backDropClick:!1,okDisabled:I===`saving`,okLabel:`Create`,okLoading:I===`saving`,okVariant:`default`,size:`sm`,testId:`add-newsletter-modal`,title:`Create newsletter`,onClose:()=>{e(i)},onOk:async()=>{await L()},children:(0,T.jsxs)(l,{className:`mt-10 gap-8`,children:[(0,T.jsxs)(m,{"data-invalid":!!R.name||void 0,children:[(0,T.jsx)(f,{htmlFor:`newsletter-name`,children:`Name`}),(0,T.jsx)(h,{"aria-invalid":!!R.name||void 0,id:`newsletter-name`,maxLength:191,placeholder:`Weekly roundup`,value:P.name,autoFocus:!0,onChange:e=>F(t=>({...t,name:e.target.value})),onKeyDown:()=>z(`name`)}),R.name&&(0,T.jsx)(u,{children:R.name})]}),(0,T.jsxs)(m,{children:[(0,T.jsx)(f,{htmlFor:`newsletter-description`,children:`Description`}),(0,T.jsx)(_,{id:`newsletter-description`,maxLength:2e3,value:P.description,onChange:e=>F(t=>({...t,description:e.target.value}))})]}),(0,T.jsxs)(m,{orientation:`horizontal`,children:[(0,T.jsxs)(d,{children:[(0,T.jsx)(f,{htmlFor:`opt-in-existing-subscribers`,children:`Opt-in existing subscribers`}),(0,T.jsx)(p,{children:P.optInExistingSubscribers?`This newsletter will be available to all members. Your ${V===void 0?``:s(V)} existing subscriber${M?.meta?.pagination.total===1?``:`s`} will also be opted-in to receive it.`:`The newsletter will be available to all new members. Existing members won’t be subscribed, but may visit their account area to opt-in to future emails.`})]}),(0,T.jsx)(g,{checked:P.optInExistingSubscribers,id:`opt-in-existing-subscribers`,onCheckedChange:e=>F(t=>({...t,optInExistingSubscribers:e}))})]})]})})};export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3e31ccb1-eecd-40d2-8ddf-d6e4adae34a8`,e._sentryDebugIdIdentifier=`sentry-dbid-3e31ccb1-eecd-40d2-8ddf-d6e4adae34a8`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{g as n,v as r}from"./hooks-0r7qxGEo.js";import{t as i}from"./jsx-runtime-Bm2_KH-0.js";import{n as a}from"./dist-pogVoW2G.js";import{t as o}from"./use-form-ElCUnbKi.js";import{_ as s}from"./chunk-OB3PAWPO-D3muQBsq.js";import{Fr as c,t as l}from"./button-CTHYSI-d.js";import{a as u,i as d,o as f,r as p,t as m}from"./field-DCPPrQDr.js";import{t as h}from"./input-BHb2A_DU.js";import{n as g}from"./loading-indicator-DaRyGrxv.js";import{t as _}from"./settings-modal-3x4v8abr.js";import{t as v}from"./use-settings-navigation-CO2nUqDW.js";import{i as y,n as b,r as x,s as S,t as C}from"./analytics-CQJzDDdJ.js";import{t as w}from"./format-url-BlDIp2kF.js";var T=e(t(),1),E=i(),D=({recommendation:e,onBack:t,onClose:r,onSaved:i})=>{let{mutateAsync:s}=y(),u=n(),{formState:d,updateForm:f,handleSave:p,saveState:m,errors:h,clearError:g,setErrors:v}=o({initialState:{...e},onSave:async e=>{await s(e),a.success(`Recommendation added`),C(`Recommendation Added`,{oneClickSubscribe:e.one_click_subscribe}),i()},onSaveError:u,onValidate:e=>x(e)}),S=`Add`,w=!1;return m===`saving`?w=!0:m===`saved`&&(S=`Added`),(0,E.jsx)(_,{animate:!1,backDropClick:!1,cancelLabel:`Cancel`,dirty:!0,leftButton:(0,E.jsxs)(l,{size:`sm`,type:`button`,variant:`ghost`,onClick:()=>{m!==`saving`&&t({...d})},children:[(0,E.jsx)(c,{}),`Back`]}),okLabel:S,okLoading:w,okVariant:`default`,size:`sm`,testId:`add-recommendation-modal`,title:`Add recommendation`,stickyFooter:!0,onCancel:()=>{m!==`saving`&&r()},onClose:r,onOk:async()=>{if(m!==`saving`){a.dismiss();try{await p({force:!0})}catch{a.error(`Something went wrong when adding this recommendation, please try again.`)}}},children:(0,E.jsx)(b,{clearError:g,errors:h,formState:d,setErrors:v,showURL:!1,updateForm:f})})},O=e=>w(e).save||``,k=function(e,t){try{new URL(t).hostname.includes(`.`)?delete e.url:e.url=`Enter a valid URL`}catch{e.url=`Enter a valid URL`}return e},A=()=>{let[e,t]=(0,T.useState)(!1),[n]=s(),{updateRoute:i}=v(),{mutateAsync:c}=S(),[l,y]=(0,T.useState)(`form`),[b,x]=(0,T.useState)(!0),C=n.get(`url`)??``,{save:A}=C?w(C):{save:``},j=T.useRef(!1),[M,N]=T.useState(!!A),{formState:P,updateForm:F,handleSave:I,errors:L,saveState:R,clearError:z}=o({initialState:{title:``,url:A||``,description:``,excerpt:null,featured_image:null,favicon:null,one_click_subscribe:!1},onSave:async()=>{let e=new URL(P.url),t=e.hostname.replace(`www.`,``),n={...P,url:e.toString()},{recommendations:i=[]}=await c(e);if(!i||i.length===0)return;let a=i[0];if(a.id)throw new r(`A recommendation with this URL already exists.`);n.title=a.title??t,n.excerpt=a.excerpt??n.excerpt,n.featured_image=a.featured_image??n.featured_image??null,n.favicon=a.favicon??n.favicon??null,n.one_click_subscribe=a.one_click_subscribe??n.one_click_subscribe??!1,n.description=n.excerpt||null,F(()=>n),N(!1),x(!1),y(`confirm`)},onValidate:()=>{let e={};return k(e,P.url),M&&N(Object.keys(e).length===0),e}}),B=T.useCallback(async()=>{if(R!==`saving`){a.dismiss();try{if(await I({force:!0}))return}catch(e){let t=e instanceof r?e.message:`Something went wrong while checking this URL, please try again.`;a.error(t)}M&&N(!1)}},[I,R,M,N]);return T.useEffect(()=>{M&&!j.current&&(j.current=!0,B())},[M,B]),(0,T.useEffect)(()=>{e&&(B(),t(!1))},[P]),l===`confirm`?(0,E.jsx)(D,{recommendation:P,onBack:e=>{F(()=>e),y(`form`)},onClose:()=>{i(`recommendations`)},onSaved:()=>{i(`recommendations`)}}):M?(0,E.jsx)(_,{animate:b,backDropClick:!1,footer:!1,header:!1,size:`sm`,onClose:()=>{i(`recommendations`)},children:(0,E.jsx)(`div`,{className:`flex flex-col items-center justify-center p-8`,children:(0,E.jsx)(`div`,{className:`flex h-64 items-center justify-center`,children:(0,E.jsx)(g,{size:`lg`})})})}):(0,E.jsxs)(_,{animate:b,backDropClick:!1,okLabel:`Next`,okLoading:R===`saving`,okVariant:`default`,size:`sm`,testId:`add-recommendation-modal`,title:`Add recommendation`,onClose:()=>{i(`recommendations`)},onOk:B,children:[(0,E.jsxs)(`p`,{className:`mt-4`,children:[`You can recommend `,(0,E.jsx)(`strong`,{children:`any site`}),` your audience will find valuable, not just those published on Ghost.`]}),(0,E.jsx)(u,{className:`mt-10 gap-8`,children:(0,E.jsxs)(m,{"data-invalid":!!L.url||void 0,children:[(0,E.jsx)(f,{htmlFor:`recommendation-url`,children:`URL`}),(0,E.jsx)(h,{"aria-invalid":!!L.url||void 0,id:`recommendation-url`,maxLength:2e3,placeholder:`https://www.example.com`,value:P.url,autoFocus:!0,onBlur:()=>{let e=O(P.url);F(t=>({...t,url:e}))},onChange:e=>{z?.(`url`),F(t=>({...t,url:e.target.value}))},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),F(e=>({...e,url:O(P.url)})),t(!0))}}),L.url?(0,E.jsx)(d,{children:L.url}):(0,E.jsxs)(p,{children:[`Need inspiration?`,` `,(0,E.jsx)(`a`,{className:`text-green`,href:`https://www.ghost.org/explore`,rel:`noopener noreferrer`,target:`_blank`,children:`Explore thousands of sites`}),` `,`to recommend`]})]})})]})};export{A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d64e4f77-c046-4fb0-89d4-7f1524b62c59`,e._sentryDebugIdIdentifier=`sentry-dbid-d64e4f77-c046-4fb0-89d4-7f1524b62c59`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{n,t as r}from"./hooks-
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d64e4f77-c046-4fb0-89d4-7f1524b62c59`,e._sentryDebugIdIdentifier=`sentry-dbid-d64e4f77-c046-4fb0-89d4-7f1524b62c59`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{n,t as r}from"./hooks-0r7qxGEo.js";import{t as i}from"./jsx-runtime-Bm2_KH-0.js";import{t as a}from"./analytics-CDjjaA4a.js";import{H as o}from"./shade-provider-DvrXKKQZ.js";import{t as s}from"./text-BnCSdzao.js";import{a as c,i as l,o as u,r as d,t as f}from"./field-DCPPrQDr.js";import{t as p}from"./input-BHb2A_DU.js";import{t as m}from"./textarea-B_rfKtjs.js";var h=e(t(),1),g=i(),_=({title:e,favicon:t,featured_image:n,isGhostSite:r})=>{let[i,a]=(0,h.useState)(t||n||null);return i?(0,g.jsxs)(`div`,{className:`relative size-6 shrink-0 rounded-sm`,title:r?`This is a Ghost site that supports one-click subscribe`:``,children:[(0,g.jsx)(`img`,{alt:e,className:`size-6 rounded-sm`,src:i,onError:()=>{a(null)}}),r&&(0,g.jsx)(`img`,{alt:`Ghost Logo`,className:`absolute right-[-3px] bottom-[-3px] size-[14px]`,src:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAA81BMVEUAAAAQEBAVFRUVFRgVFxkVFhoVFxkWFxkVFhoVFxoVFxoWFxoVFxkUFBgVFRsQGBgVFxsVFxkVFxoyNDZPUVNtbnBeX2FBQkVBQ0WKi43Excb////FxcaKi4xQUVMUGBgVFhkyNDenqKnx8fHw8fGYmZt7fX7i4uIUFxkjJSgUFhrS09Th4uOZmZokJiji4uPw8PHh4uLT09QTFRsTFxtsbnAUFhp7fH4UFxkUFhoWFxoVFxpAQkXT09O2triZmpq1tri2t7iZmpsXFxd7fX8QECB8fX4VGBgVFRsYGBgUGBoVFhoVGBgTFhkTFhoVFxkUFxrWJPvbAAAAUXRSTlMAEDBgkJ+/3+//z69vQF8gj4/f////////////////QKD/////////cP+A//////////9gkP+v/7/P3+//////////T/8Q/18wIIDPYFCf36+gOKr5AAACJ0lEQVR4AY3U1WLrMAwGYJX7l5mSMo6ZmRne/2nOnFqOm+N5/a5CiiQT6ULhSDQWTySS8CQTqXg6msmSWSgTT8IsnstTUDYOq9hiSKiAPxXJl09hCSWVJFRCQLlSrVXqCEiFaG6xnkaz5Uhuu2yqKg9Nh7/mmAo0XRJ6UPr8uWagZYkHEtSGjjByx9VKuTKR0dMaFNHFDKwpi1hRCQeOpwm2SkTxhe/XKtD11/0IrknVI95sIGBznqTm15Tlf23x9wFexDZ3HvZa4Oc7MNjc9TrD3B7tw1MRTw8gGfqQvUXpEJ6WIQGraClicpD64lkbvzgSb+ddHNMJhAlnNWup35XoVD1xVgBLUa4MSELwlgBgS7EN4YwgnMu2LCm4CeJ7c89sc8QtagEVWFwYAlZg0eIA7oGbWjKgbxskLmlFC8DoJwIWfTWscuIu1bCZXTnONc+0WhoTS4ItXsopOuFxtk3cjbb4DlVO80Twbh/w8t6XSS0pbh2/w1W1Rds/D2+N9e/q6+aOupB2+ThZdD909M0Ypgd/6xoiOruOsMNDfqYfZI2RmO+y4WQeNSAdE9Fq4HhwqysQVh75ZN5pgD0R0fP/h/euO7jecpirJX0hrkk68JLoRhP4YiTwOJlCdtsrYJyAeO5YY9LyxmbrZhKY+1eae3jDUlLEXpaKSL2Q7xV/ioZI99KD1XGXgl7ej5MwO34Nk9nzx+rn8ckXB359nXxHM90Qaf4BNjt9poiwMVcAAAAASUVORK5CYII=`})]}):(0,g.jsx)(`div`,{className:`relative size-6 shrink-0 rounded-sm`})},v=`RecommendationResponseType`,y=r({dataType:v,path:`/recommendations/`,returnData:e=>{let{pages:t}=e,n=t.flatMap(e=>e.recommendations);return n=n.filter((e,t)=>n.findIndex(({id:t})=>t===e.id)===t),{recommendations:n,meta:t[t.length-1].meta}}}),b=n({method:`DELETE`,path:e=>`/recommendations/${e.id}/`,invalidateQueries:{dataType:v}}),x=n({method:`PUT`,path:e=>`/recommendations/${e.id}/`,body:e=>({recommendations:[e]}),invalidateQueries:{dataType:v}}),S=n({method:`POST`,path:()=>`/recommendations/`,body:({...e})=>({recommendations:[e]}),invalidateQueries:{dataType:v}}),C=n({method:`POST`,path:()=>`/recommendations/check/`,body:e=>({recommendations:[{url:e.toString()}]})}),w=r({dataType:v,path:`/incoming_recommendations/`,returnData:e=>{let{pages:t}=e,n=t.flatMap(e=>e.recommendations);return n=n.filter((e,t)=>n.findIndex(({id:t})=>t===e.id)===t),{recommendations:n,meta:t[t.length-1].meta}}}),T=function(e,t,n){let r={...e};switch(t){case`title`:n?delete r.title:r.title=`Title is required`;break;case`description`:n&&n.length>200?r.description=`Description cannot be longer than 200 characters`:delete r.description;break;default:throw Error(`Unknown field ${String(t)}`)}return r},E=function(e){let t={};return t=T(t,`title`,e.title),t=T(t,`description`,e.description),t};function D({showURL:e,formState:t,updateForm:n,errors:r,clearError:i,setErrors:a}){let[v,y]=h.useState(t?.description?.length||0),b=v>200?`text-destructive`:`text-foreground`,x=h.useRef(!1);return h.useEffect(()=>{x.current||(x.current=!0,a(E(t)))},[t,a]),(0,g.jsxs)(c,{className:`mt-10 gap-8`,children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(s,{as:`h6`,className:`mb-2 block tracking-wider uppercase`,leading:`normal`,size:`xs`,tone:`secondary`,weight:`semibold`,children:`Preview`}),(0,g.jsx)(`div`,{className:`-mx-8 flex items-center justify-center overflow-hidden border-y border-gray-100 bg-gray-50 px-7 py-4 dark:border-gray-950 dark:bg-black`,children:(0,g.jsx)(`div`,{className:`w-full rounded bg-white py-3 shadow`,children:(0,g.jsx)(`div`,{className:``,children:(0,g.jsxs)(`a`,{className:`flex items-center justify-between bg-white px-5 py-3`,href:t.url,rel:`noopener noreferrer`,target:`_blank`,children:[(0,g.jsxs)(`div`,{className:`flex flex-col gap-[2px]`,children:[(0,g.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,g.jsx)(_,{...t}),(0,g.jsx)(`span`,{className:`text-[1.6rem] font-semibold text-gray-900`,children:t.title})]}),t.description&&(0,g.jsx)(`span`,{className:`pl-[31px] text-[1.35rem] leading-snug text-gray-700`,children:t.description})]}),t.one_click_subscribe&&(0,g.jsx)(`span`,{className:`flex pl-6 text-md font-semibold whitespace-nowrap text-green`,children:`Subscribe`})]})})})}),t.one_click_subscribe&&(0,g.jsx)(d,{className:`mt-1`,children:`This is a Ghost site, so your readers can subscribe with just one click`})]}),e&&(0,g.jsxs)(f,{"data-disabled":`true`,children:[(0,g.jsx)(u,{htmlFor:`recommendation-url`,children:`URL`}),(0,g.jsx)(p,{id:`recommendation-url`,value:t.url,disabled:!0})]}),(0,g.jsxs)(f,{"data-invalid":!!r.title||void 0,children:[(0,g.jsx)(u,{htmlFor:`recommendation-title`,children:`Title`}),(0,g.jsx)(p,{"aria-invalid":!!r.title||void 0,id:`recommendation-title`,maxLength:2e3,value:t.title??``,autoFocus:!0,onChange:e=>{i?.(`title`),n(t=>({...t,title:e.target.value}))}}),r.title&&(0,g.jsx)(l,{children:r.title})]}),(0,g.jsxs)(f,{"data-invalid":!!r.description||void 0,children:[(0,g.jsx)(u,{htmlFor:`recommendation-description`,children:`Short description`}),(0,g.jsx)(m,{"aria-invalid":!!r.description||void 0,id:`recommendation-description`,rows:4,value:t.description??``,onChange:e=>{i?.(`description`),y(e.target.value.length),n(t=>({...t,description:e.target.value}))}}),(0,g.jsxs)(d,{children:[`Max: `,(0,g.jsx)(`strong`,{children:o(200)}),` characters. You’ve used`,` `,(0,g.jsx)(`strong`,{className:b,children:o(v)})]})]})]})}var O=a;export{w as a,b as c,S as i,x as l,D as n,y as o,E as r,C as s,O as t,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`08c5a0fa-b7f3-4707-8325-d9ff118fa596`,e._sentryDebugIdIdentifier=`sentry-dbid-08c5a0fa-b7f3-4707-8325-d9ff118fa596`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{t as n}from"./jsx-runtime-Bm2_KH-0.js";import{n as r}from"./dist-pogVoW2G.js";import{r as i}from"./posts-CftunZgV.js";import{t as a}from"./stack-C3OmgpUv.js";import{t as o}from"./text-BnCSdzao.js";import{Y as s,in as c}from"./button-CTHYSI-d.js";import{t as l}from"./checkbox-DN_wUAjb.js";import{a as u,c as d,o as f,s as p,t as m}from"./field-DCPPrQDr.js";import{t as h}from"./preview-chrome-Dcu3p6mp.js";import{i as g,r as _,t as v}from"./tabs-fHs3A8WC.js";import{n as y,t as b}from"./toggle-group-BFWCtH3p.js";import{r as x}from"./color-picker-jiQKnLn-.js";import{$t as S,Ut as C,h as w}from"./index-RuRs_qGS.js";import{t as T}from"./use-settings-navigation-CO2nUqDW.js";import{n as E}from"./global-data-context-ogIy0FUG.js";import{t as D}from"./use-setting-group-YP84CqrJ.js";import{t as O}from"./debounce-Dg7iKwZN.js";import{t as k}from"./html-field-vTe2q1be.js";import{t as A}from"./preview-modal-BrZza3R_.js";import{t as j}from"./iframe-buffering-cu-yK7NA.js";var M=e(t(),1),N=n(),P=(e,t,n)=>{let r=new URLSearchParams;return r.append(`announcement_bg`,e||`accent`),r.append(`announcement`,t||``),n&&n.length>0&&r.append(`announcement_vis`,n?.join(`,`)||``),r.toString()},F=({announcementBackgroundColor:e,announcementContent:t,url:n,visibility:r})=>{let i=(0,M.useMemo)(()=>r,[r?.join(`,`)]);return(0,N.jsx)(j,{addDelay:!0,className:`absolute -top-px -left-px size-[calc(110%_+_3px)] origin-top-left scale-[.90909] bg-white max-[1600px]:size-[calc(130%_+_3px)] max-[1600px]:scale-[.76923]`,generateContent:(0,M.useCallback)(r=>{if(!n)return;let a=new URL(n);a.searchParams.set(`admin_toolbar`,`0`),fetch(a.toString(),{method:`POST`,headers:{"Content-Type":`text/html;charset=utf-8`,"x-ghost-preview":P(e,t,i),Accept:`text/html`},mode:`cors`,credentials:`include`}).then(e=>e.text()).then(e=>{let t=new DOMParser().parseFromString(e,`text/html`),n=t.querySelector(`style`);n.innerHTML=`${n.innerHTML}\n\nhtml { pointer-events: none; }`;let i=(t.doctype?new XMLSerializer().serializeToString(t.doctype):``)+t.documentElement.outerHTML;r.contentDocument?.open(),r.contentDocument?.write(i),r.contentDocument?.close()}).catch(()=>{})},[e,t,n,i]),height:`100%`,parentClassName:`relative h-full w-full overflow-hidden`,testId:`announcement-bar-preview-iframe`,width:`100%`})},I=({title:e,value:t,swatches:n,size:r=`md`,onChange:i})=>(0,N.jsxs)(a,{gap:`sm`,children:[e&&(0,N.jsx)(o,{weight:`semibold`,children:e}),(0,N.jsx)(x,{size:r,swatches:n,value:t,onSelect:i})]}),L=({announcementContent:e,announcementTextHandler:t,accentColor:n,announcementBackgroundColor:r,toggleColorSwatch:i,toggleVisibility:a,visibility:o=[],paidMembersEnabled:s,onBlur:c})=>{let h=[{label:`Public visitors`,onChange:e=>{a(`visitors`,e)},value:`visitors`,checked:o.includes(`visitors`)},{label:`Free members`,onChange:e=>{a(`free_members`,e)},value:`free_members`,checked:o.includes(`free_members`)},...s?[{label:`Paid members`,onChange:e=>{a(`paid_members`,e)},value:`paid_members`,checked:o.includes(`paid_members`)}]:[]];return(0,N.jsxs)(u,{className:`mb-10 gap-8`,children:[(0,N.jsx)(k,{nodes:`MINIMAL_NODES`,placeholder:`Highlight breaking news, offers or updates`,title:`Announcement`,value:e,onBlur:c,onChange:t}),(0,N.jsx)(I,{size:`lg`,swatches:[{hex:`#08090c`,title:`Dark`,value:`dark`},{hex:`#ffffff`,title:`Light`,value:`light`},{hex:n||`#ffdd00`,title:`Accent`,value:`accent`}],title:`Background color`,value:r,onChange:e=>{e!==null&&i(e)}}),(0,N.jsxs)(d,{children:[(0,N.jsx)(p,{variant:`label`,children:`Visibility`}),(0,N.jsx)(u,{"data-slot":`checkbox-group`,children:h.map(e=>(0,N.jsxs)(m,{orientation:`horizontal`,children:[(0,N.jsx)(l,{checked:e.checked,id:`announcement-${e.value}`,onCheckedChange:t=>e.onChange(t===!0)}),(0,N.jsx)(f,{htmlFor:`announcement-${e.value}`,children:e.label})]},e.value))})]})]})},R=()=>{let{siteData:e}=E(),{localSettings:t,updateSetting:n,handleSave:a,okProps:o}=D({savingDelay:500}),[l]=C(t,[`announcement_content`]),[u]=C(t,[`accent_color`]),[d]=C(t,[`announcement_background`]),[f]=C(t,[`announcement_visibility`]),p=S(),m=JSON.parse(f?.toString()||`[]`),{updateRoute:x}=T(),[k,j]=(0,M.useState)(`homepage`),[P,I]=(0,M.useState)(`desktop`),R=e=>{n(`announcement_background`,e)},z=(e,t)=>{let r=m.indexOf(e);r===-1&&t?m.push(e):m.splice(r,1),n(`announcement_visibility`,JSON.stringify(m))},B=(0,M.useRef)(O(e=>{n(`announcement_content`,e)},500)),V=(0,N.jsx)(L,{accentColor:u,announcementBackgroundColor:d,announcementContent:l,announcementTextHandler:e=>{B.current(e)},paidMembersEnabled:p,toggleColorSwatch:R,toggleVisibility:z,visibility:f,onBlur:()=>{}}),{data:{posts:[H]}={posts:[]}}=i({searchParams:{filter:`status:published`,order:`published_at DESC`,limit:`1`,fields:`id,url`}}),U=e=>{H&&j(e)},W=w(e);switch(k){case`homepage`:W=w(e);break;case`post`:W=H.url;break}let G=(0,N.jsx)(F,{announcementBackgroundColor:d,announcementContent:l,url:W,visibility:m}),K=P===`desktop`?(0,N.jsx)(h,{"data-testid":`preview-desktop`,device:`desktop`,children:G}):(0,N.jsx)(h,{"data-testid":`preview-mobile`,device:`mobile`,children:G}),q=H?(0,N.jsx)(v,{value:k,variant:`button`,onValueChange:U,children:(0,N.jsxs)(_,{children:[(0,N.jsx)(g,{value:`homepage`,children:`Homepage`}),(0,N.jsx)(g,{value:`post`,children:`Post`})]})}):void 0,J=(0,N.jsxs)(b,{size:`default`,type:`single`,value:P,onValueChange:e=>{(e===`desktop`||e===`mobile`)&&I(e)},children:[(0,N.jsx)(y,{"aria-label":`Desktop`,value:`desktop`,children:(0,N.jsx)(c,{})}),(0,N.jsx)(y,{"aria-label":`Mobile`,value:`mobile`,children:(0,N.jsx)(s,{})})]});return(0,N.jsx)(A,{buttonsDisabled:o.disabled,cancelLabel:`Close`,deviceSelector:J,dirty:!1,okLabel:o.label||`Save`,okVariant:o.variant,preview:K,previewBgColor:`greygradient`,previewToolbarTabs:q,sidebar:V,testId:`announcement-bar-modal`,title:`Announcement`,titleHeadingLevel:5,onClose:()=>{x(`announcement-bar`)},onOk:async()=>{await a({fakeWhenUnchanged:!0})||r.error(`An error occurred while saving your changes. Please try again.`)}})};export{R as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./post-analytics-provider-
|
|
2
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4e4ef858-3fc4-4152-8d31-8e63966fa5f8`,e._sentryDebugIdIdentifier=`sentry-dbid-4e4ef858-3fc4-4152-8d31-8e63966fa5f8`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{t as n}from"./react-dom-t7VxfrkA.js";import{i as r}from"./framework-provider-CIvHFnik.js";import{d as i,n as a,r as o}from"./hooks-C-BDQ6Hs.js";import{t as s}from"./jsx-runtime-Bm2_KH-0.js";import{n as c}from"./dist-pogVoW2G.js";import{t as l}from"./preload-helper-Ba4JejZL.js";import{L as u,c as ee}from"./shade-provider-DvrXKKQZ.js";import{t as d}from"./inline-Qoyy4r2g.js";import{t as f}from"./stack-C3OmgpUv.js";import{t as p}from"./lazy-component-DNJLzmpQ.js";import{a as te,t as ne}from"./button-CTHYSI-d.js";import{t as m}from"./list-return-state-B91WMz_J.js";var h=e(t(),1),g=(0,h.createContext)(void 0);function _(){let e=(0,h.useContext)(g);if(e===void 0)throw Error(`useEmberContext must be used within an EmberProvider`);return e}var v=s(),re=h.memo(function(){let e=(0,h.useRef)(null),{isFallbackPresent:t}=_();return(0,h.useLayoutEffect)(()=>{if(e.current){let t=document.getElementById(`ember-app`);if(t)e.current.appendChild(t);else throw Error(`Ember app not found`)}return()=>{let e=document.getElementById(`ember-app`);if(e)document.body.appendChild(e);else throw Error(`Ember app not found`)}},[]),(0,v.jsx)(`div`,{ref:e,className:`size-full`,hidden:!t})});function ie({children:e}){let[t,n]=(0,h.useState)(0),r=(0,h.useCallback)(()=>{n(e=>e+1)},[]),i=(0,h.useCallback)(()=>{n(e=>Math.max(0,e-1))},[]),a={isFallbackPresent:t>0,registerFallback:r,unregisterFallback:i};return(0,v.jsx)(g.Provider,{value:a,children:e})}function ae(){let{registerFallback:e,unregisterFallback:t}=_();return(0,h.useLayoutEffect)(()=>(e(),()=>{t()}),[e,t]),null}var oe=e(n(),1);function y({value:e}){return typeof e==`string`?e:(0,v.jsx)(`span`,{dangerouslySetInnerHTML:{__html:e.html}})}var b=`admin-alerts`,x={success:`border-current/20 bg-state-success text-state-success-foreground`,error:`border-current/20 bg-destructive text-destructive-foreground`,warn:`border-current/20 bg-surface-inverse text-surface-inverse-foreground`,info:`border-current/20 bg-surface-inverse text-surface-inverse-foreground`},S=`border-border-default bg-background text-foreground`;function C({store:e}){let t=(0,h.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),[n]=(0,h.useState)(()=>document.getElementById(b));return!n||t.length===0?null:(0,oe.createPortal)((0,v.jsx)(ee,{style:{width:`unset`,height:`unset`},children:(0,v.jsx)(f,{"data-testid":`admin-alerts`,gap:`none`,children:t.map(t=>(0,v.jsxs)(d,{align:`center`,className:u(`border-b px-4 py-3 text-md select-text [&_a]:text-current [&_a]:underline`,t.type&&x[t.type]||S),"data-testid":`admin-alert`,gap:`lg`,justify:`between`,role:t.type===`error`?`alert`:`status`,children:[(0,v.jsx)(`div`,{children:(0,v.jsx)(y,{value:t.message})}),(0,v.jsx)(ne,{"aria-label":`Close alert`,className:`shrink-0 text-current hover:bg-transparent hover:text-current hover:opacity-70 focus-visible:ring-2 focus-visible:ring-current enabled:active:bg-transparent enabled:active:shadow-none`,size:`icon-sm`,variant:`ghost`,onClick:()=>e.close(t.id),children:(0,v.jsx)(te,{})})]},t.id))})}),n)}function w(){let e=[],t=0,n=new Set,r=t=>{t.length===e.length&&t.every((t,n)=>t===e[n])||(e=t,n.forEach(e=>e()))};return{show:n=>{t+=1;let i=`alert-${t}`;return r([...e,{...n,id:i}]),i},close:t=>{let n=e.find(e=>e.id===t);n&&(r(e.filter(e=>e!==n)),n.onClose?.())},remove:t=>{r(e.filter(e=>!t(e)))},subscribe:e=>(n.add(e),()=>{n.delete(e)}),getSnapshot:()=>e}}function T(e){return typeof e==`string`?e:e.html}var E=o({dataType:`NotificationsResponseType`,path:`/notifications/`,permissions:[`Owner`,`Administrator`,`Editor`,`Super Editor`]}),D=a({method:`DELETE`,path:e=>`/notifications/${e}/`});function O(e){let{data:t}=E({defaultErrorHandler:!1}),{mutate:n}=D(),r=(0,h.useRef)(new Set);(0,h.useEffect)(()=>{if(!t)return;let i=new Map;for(let e of t.notifications)e.custom&&i.set(e.location,e);for(let t of i.values()){if(r.current.has(t.id))continue;r.current.add(t.id);let i=t.location;e.remove(e=>e.key===i),e.show({type:t.type,message:{html:t.message},key:i,onClose:()=>n(t.id)})}},[t,n,e])}var k={"upgrade-required":{key:`api-error.upgrade-required`,message:`Ghost has been upgraded, please copy any unsaved data and refresh the page to continue.`},maintenance:{key:`api-error.under-maintenance`,message:`Sorry, Ghost is currently undergoing maintenance, please wait a moment then try again.`}};function A(e){let t=(0,h.useRef)(new Set);(0,h.useEffect)(()=>i(n=>{if(t.current.has(n))return;t.current.add(n);let{key:r,message:i}=k[n];e.remove(e=>e.key===r),e.show({type:`error`,key:r,message:i})}),[e])}var j={integration:`IntegrationsResponseType`,invite:`InvitesResponseType`,offer:`OffersResponseType`,newsletter:`NewslettersResponseType`,recommendation:`RecommendationResponseType`,setting:`SettingsResponseType`,theme:`ThemesResponseType`,tier:`TiersResponseType`,user:`UsersResponseType`,post:`PostsResponseType`,page:`PagesResponseType`,member:`MembersResponseType`,tag:`TagsResponseType`,label:`LabelsResponseType`,snippet:`SnippetsResponseType`};function M(e){if(typeof window>`u`)return()=>{};if(window.EmberBridge?.state)return e(window.EmberBridge.state),()=>{};let t=setInterval(()=>{window.EmberBridge?.state&&(clearInterval(t),e(window.EmberBridge.state))},100);return()=>clearInterval(t)}function N(e,t,n){let r=null,i=!0,a=M(a=>{i&&(a.on(e,t),r=()=>a.off(e,t),n?.())});return()=>{i=!1,a(),r?.()}}function P(){let e=r();(0,h.useEffect)(()=>N(`emberDataChange`,t=>{let{modelName:n}=t,r=j[n];if(!r)return;let i=new Set([r,...n===`post`||n===`page`?[`TagsResponseType`]:[]]);e.invalidateQueries({predicate:e=>i.has(e.queryKey[0])})}),[e])}function F(){let e=r();(0,h.useEffect)(()=>N(`emberAuthChange`,t=>{t.isAuthenticated&&e.invalidateQueries()}),[e])}function I(){(0,h.useEffect)(()=>N(`restoreListState`,({path:e})=>{let t=m(e);if(!t)return;let n=window.history.state,r=n?.usr;window.history.replaceState({...n,usr:{...r&&typeof r==`object`?r:{},...t}},``)}),[])}function L(){let[e,t]=(0,h.useState)(null);return(0,h.useEffect)(()=>N(`subscriptionChange`,e=>{t(e)}),[]),e}function R(e){let t=(0,h.useCallback)(e=>N(`featureFlagsChange`,e,e),[]),n=(0,h.useCallback)(()=>{let t=window.EmberBridge?.state;if(t?.isFeatureEnabled)return t.isFeatureEnabled(e)??null},[e]);return(0,h.useSyncExternalStore)(t,n,n)}function z(e){let t,n=M(n=>{let r=n.connectAdminTheme?.();r&&(t=r.disconnect,e(r))});return()=>{n(),t?.()}}function B(e){let t=window.EmberBridge?.state;return t?.navigateToBillingSubRoute?(t.navigateToBillingSubRoute(e),!0):!1}async function V(e){await window.EmberBridge?.state.applyBillingSubscriptionUpdate?.(e)}function H(e){window.EmberBridge?.state.captureBillingAppLoadFailure?.(e)}function U(e,t){return M(n=>{n.setPostListQueryParams?.(e,t)})}function se(e){return M(t=>{t.setReactFullScreen?.(e)})}function W(e){return M(t=>{t.setReactRoutePattern?.(e)})}function G(e){let t,n=!0,r=M(r=>{n&&(t=r.connectNotificationsHost?.(e))});return()=>{n=!1,r(),t?.()}}var K={onFeatureFlagOverridesChange:()=>M(e=>{e.refreshFeatureFlagOverrides?.()}),onUpdate:(e,t)=>{window.EmberBridge?.state.onUpdate(e,t)},onInvalidate:e=>{window.EmberBridge?.state.onInvalidate(e)},onDelete:(e,t)=>{window.EmberBridge?.state.onDelete(e,t)}};function ce(e){return N(`sidebarVisibilityChange`,e)}function q(){return window.EmberBridge?.state.sidebarVisible??!0}function le(){return(0,h.useSyncExternalStore)(ce,q,q)}var J=0;function Y(e,t){let n=t.split(`.`).slice(0,2).join(`.`);return!!e?.startsWith(n)}function ue(e,t,n){let{type:r,message:i,description:a,actions:o}=e,s={id:t,description:a||o?(0,v.jsxs)(f,{className:`[&_a]:underline`,gap:`sm`,children:[a&&(0,v.jsx)(`p`,{children:(0,v.jsx)(y,{value:a})}),o&&(0,v.jsx)(`span`,{className:`text-text-secondary`,children:(0,v.jsx)(y,{value:o})})]}):void 0,onDismiss:n,onAutoClose:n},l=(0,v.jsx)(y,{value:i});r===`error`?c.error(l,s):r===`warn`?c.warning(l,s):r===`info`?c.info(l,s):c.success(l,s)}function de(e){let t=new Map,n=e=>{for(let[n,r]of t)e(r)&&(t.delete(n),c.dismiss(n))},r=(t,r)=>{t===`alert`?e.remove(e=>!r||Y(e.key,r)):n(e=>!r||Y(e.key,r))};return{show(i){i.key&&r(i.status,i.key);let a=T(i.message);if(e.remove(e=>T(e.message)===a),n(e=>e.text===a),i.status===`alert`){e.show({type:i.type,message:i.message,key:i.key});return}J+=1;let o=`ember-toast-${J}`;t.set(o,{key:i.key,text:a}),ue(i,o,()=>t.delete(o))},remove:r,clearAll(){e.remove(()=>!0),n(()=>!0)}}}function fe(e){(0,h.useEffect)(()=>G(de(e)),[e])}var pe=async()=>{let[{default:e},{default:t},{default:n}]=await Promise.all([l(()=>import(`./post-analytics-provider-U7RtOle1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]),import.meta.url),l(()=>import(`./email-sending-status-provider-Bjn5KTy2.js`),__vite__mapDeps([65,1,5,2,4,6,7,3,8,66,11,12,13,14,15,16,10,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,67,68,69,70,71,63,72]),import.meta.url),l(()=>import(`./post-analytics-BJWDtC3a.js`),__vite__mapDeps([73,1,2,3,4,5,6,7,8,74,9,10,18,75,20,76,11,12,13,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,77,78,79,80]),import.meta.url)]);return{element:(0,v.jsx)(e,{children:(0,v.jsx)(t,{children:(0,v.jsx)(n,{})})})}},me=[{path:``,lazy:p(()=>l(()=>import(`./overview-D4EanvDG.js`),__vite__mapDeps([81,1,2,82,4,5,6,7,78,11,12,13,14,15,16,10,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,3,8,54,55,56,57,58,59,60,61,62,83,84,85,86,87,88,89,90,91,92,93,77,94,69,63,95,96,97,98,99,100,74,101,102,79,80,103,104,105,106,107,108,67,109,110,111,71,64,112,113]),import.meta.url))},{path:`web`,lazy:p(()=>l(()=>import(`./web-DqFIrOxt.js`),__vite__mapDeps([114,1,2,82,4,5,6,7,78,11,12,13,14,15,16,10,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,3,8,54,55,56,57,58,59,60,61,62,97,98,99,100,84,85,86,87,88,89,115,74,116,117,118,67,93,77,119,120,121,91,122,63,96,83,101,102,79,80,69,103,104,105,106,112,113]),import.meta.url))},{path:`growth`,lazy:p(()=>l(()=>import(`./growth-BlPW4DHj.js`),__vite__mapDeps([123,1,2,113,27,18,7,6,9,10,17,5,19,20,21,84,51,42,124,11,4,12,13,14,15,16,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,52,53,3,8,54,55,56,57,58,59,60,61,62,92,93,77,78,95,96,97,82,98,99,100,74,83,101,102,79,80,69,63,103,104,105,106,107,108,67]),import.meta.url))},{path:`newsletter`,lazy:p(()=>l(()=>import(`./newsletter-4urgCSR_.js`),__vite__mapDeps([125,1,2,6,7,9,10,17,5,18,19,20,21,31,23,27,33,84,89,40,41,42,43,126,120,25,11,4,12,13,14,15,16,22,24,26,28,29,30,32,34,35,36,37,38,39,44,45,46,47,48,49,50,51,52,53,3,8,54,55,56,57,58,59,60,61,62,67,69,70,71,63,95,96,97,82,78,98,99,100,74,83,101,77,102,79,80,103,104,105,106,64,109,87,86,88,110,111,94]),import.meta.url))}],X=[`type`,`featured`,`visibility`,`author`,`tag`,`order`],Z=new Map;function Q(e,t){let n=$(t);if(Object.keys(n).length===0){Z.delete(e);return}Z.set(e,ge(n))}function he(e){let t=Z.get(e);return`/${e}${t?`?${t}`:``}`}function $(e){let t=new URLSearchParams(e),n={};return X.forEach(e=>{let r=t.get(e);r!==null&&r!==``&&(n[e]=r)}),n}function ge(e){let t=new URLSearchParams;return X.forEach(n=>{e[n]!==void 0&&t.set(n,e[n])}),t.toString()}function _e(e,t){return X.every(n=>(t[n]??null)===(e[n]??null))}function ve(e,t,n){if(t===`/${e}`)return e;let r=Z.get(e);if(!r)return e;let i=$(`?${r}`);return n.some(e=>_e(i,e))?e:`${e}?${r}`}var ye=()=>l(()=>import(`./posts-route-CexHhklY.js`),__vite__mapDeps([127,2,1,128,5,4,6,7,13,3,8,10,9,17,18,19,20,21,75,76,22,23,27,32,29,28,129,100,41,35,36,37,130,11,12,14,15,16,24,25,26,30,31,33,34,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,98,99,116,117,118,67,79,80,131,132,133,134,135,136,72,68,105,106,137,138,139,140]),import.meta.url),be=()=>l(()=>import(`./pages-route-CDk3V9rq.js`),__vite__mapDeps([141,2,1,128,5,4,6,7,13,3,8,10,9,17,18,19,20,21,75,76,22,23,27,32,29,28,129,100,41,35,36,37,130,11,12,14,15,16,24,25,26,30,31,33,34,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,98,99,116,117,118,67,79,80,131,132,133,134,135,136,72,68,105,106,137,138,139,140]),import.meta.url),xe=()=>l(()=>import(`./post-debug-D1b8Amju.js`),__vite__mapDeps([142,1,4,5,2,6,7,3,8,9,10,17,18,19,20,21,22,23,26,25,27,33,34,84,143,38,40,41,43,42,98,31,99,28,100,37,11,12,13,14,15,16,24,29,30,32,35,36,39,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,124,120,90,91,102,144,68]),import.meta.url);export{ie as A,L as C,w as D,O as E,C as O,I as S,A as T,U as _,ve as a,P as b,pe as c,V as d,z as f,se as g,H as h,he as i,re as j,ae as k,me as l,B as m,xe as n,Q as o,K as p,ye as r,X as s,be as t,fe as u,W as v,le as w,R as x,F as y};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./post-analytics-provider-BLQvV5C0.js","./react-C9lG_SsT.js","./jsx-runtime-Bm2_KH-0.js","./posts-CftunZgV.js","./hooks-0r7qxGEo.js","./framework-provider-CIvHFnik.js","./dist-pogVoW2G.js","./react-dom-t7VxfrkA.js","./tags-OlmRJ6Ps.js","./chunk-OB3PAWPO-D3muQBsq.js","./preload-helper-Ba4JejZL.js","./index-RuRs_qGS.js","./members-CH6KeXQc.js","./src-BwdakGcc.js","./users-CKJaAxEJ.js","./update-queries-sbOKc6_E.js","./config-CRAZ4Civ.js","./router-provider-Cf-bcYZr.js","./shade-provider-DvrXKKQZ.js","./stack-C3OmgpUv.js","./types-1riS5y4E.js","./feature-flag-overrides-context-o_oxK9Lh.js","./inline-Qoyy4r2g.js","./text-BnCSdzao.js","./lazy-component-DNJLzmpQ.js","./dist-xChRm5l0.js","./accordion-BB5V0RD1.js","./button-CTHYSI-d.js","./es2015-8TGMBpHz.js","./dist-DH_36i66.js","./routes-DKfpFMfF.js","./heading-Ch2Mb19A.js","./alert-dialog-CAPLqwVs.js","./avatar-YbECDnBI.js","./badge-DuMiqyUH.js","./dialog-BO1lcy8A.js","./popover-r_3DwMi9.js","./overlay-escape-DzyuD9tc.js","./dist-sRp1p0JK.js","./hover-card-Bt4FXKiL.js","./input-BHb2A_DU.js","./input-surface-DoDPknjt.js","./skeleton-C1s6yr9e.js","./loading-indicator-DaRyGrxv.js","./no-value-label-CKNmidLC.js","./use-navigate-with-base-path-pweMCFf6.js","./content-formatters-C08JJbUJ.js","./use-activity-pub-queries-BgR1USeY.js","./onboarding-bMq3R8jB.js","./onboarding-Bpo1yTzA.js","./index.module-CnPepLB9.js","./empty-indicator-BhVwqSVH.js","./input-group-DL5EFP5r.js","./label-picker-DaivLdMw.js","./multi-select-combobox-BzBMUFst.js","./labels-BCj6D_nl.js","./pages-Bm-zFXyP.js","./tiers-DlvS8D6_.js","./schemas-21VB7GGY.js","./iso-B3K0cJod.js","./themes-CPJSMo_W.js","./reload-D0fnKoCm.js","./index-B02LJqc8.css","./post-analytics-context-v4FXmVDC.js","./email-stats-polling-DCLzZSEX.js","./email-sending-status-provider-DB9ylBWk.js","./post-utils-Cj-QlpPF.js","./stats-BL_FJ7Ns.js","./emails-8YiSmC2X.js","./email-sending-status-context-7yrRlgjQ.js","./feedback-DW1DXdzT.js","./links-C8RnEJVJ.js","./use-email-sending-status-7kopNcza.js","./post-analytics-wdu9gq8u.js","./analytics-CDjjaA4a.js","./box-BOIwAOVT.js","./container-DakAbO79.js","./use-analytics-data-Byf83QE-.js","./use-tinybird-token-Dz37zvb7.js","./post-share-modal-Z_oAYgWz.js","./share-modal-CdHbFNEw.js","./overview-C9WvmmOC.js","./use-tinybird-query-BYbl5gKY.js","./post-helpers-DC_rgYgU.js","./card-Cd6xB_Ok.js","./gh-chart-Boqv6SC0.js","./_baseAssignValue-cSgMM8MI.js","./chart-DnWIZbyZ.js","./prop-types-CzCMRA6w.js","./data-list-CNs61th8.js","./kpi-card-BLsrKWhX.js","./trend-badge-CL6py50y.js","./disabled-sources-indicator-DSRkkSw-.js","./chart-helpers-BSuFLd6-.js","./clean-tracked-url-iZ-wi2Sn.js","./kpi-card-Djsroynj.js","./post-analytics-header-D2anehCj.js","./pagemenu-DXr_U43J.js","./page-header-CxTb0je5.js","./select-DeloOYCg.js","./dist-C4Jqtl6e.js","./breadcrumb-BO_Xhq8u.js","./get-site-timezone-BnQQpb6P.js","./gift-link-modal-CNE7dfPD.js","./gift-links-lQ7H_D8Z.js","./use-sending-eta-gE-2B0Zw.js","./grid-BYJO9x_v.js","./use-post-referrers-Bc8eq4uy.js","./currency-DgOqjQBh.js","./use-post-top-links-DjltnQuI.js","./PolarAngleAxis-DQPGiC26.js","./RadialBarChart-DRBFj-Lg.js","./kpi-helpers-H-Hl6h7h.js","./source-icon-DqBCPDIK.js","./web-uAqgYPK9.js","./use-filter-params-DQ7uX-Zp.js","./filters-Dr3vMnjZ.js","./calendar-BPNNrGa9.js","./switch-BppWscjz.js","./audience-Dn7LuH-r.js","./tabs-fHs3A8WC.js","./kpi-tabs-k4A9-imn.js","./date-range-select-BZqsYsGx.js","./growth-CAi_5HIf.js","./table-DQ63Yu4a.js","./newsletter-BXyT7o69.js","./use-simple-pagination-B5sHbw5y.js","./posts-route-J74fMhCe.js","./posts-list-screen-CwXmvY68.js","./checkbox-DN_wUAjb.js","./context-menu-BxGXsgQO.js","./feature-image-placeholder-moUV4yhR.js","./list-page-BnOuLOBb.js","./virtual-list-qPFukjyT.js","./list-return-state-B91WMz_J.js","./tag-picker-Ct6NeqWK.js","./sortable.esm-ERukM7Vc.js","./nql-Cjj71Bsg.js","./nql-lang-Ce6O11W_.js","./luxon-DQA_K_Nr.js","./__vite-browser-external-DTzigvMC.js","./pages-route-LCw94aIO.js","./post-debug-BnABXMfD.js","./label-CxXFmzcd.js","./classApi-CI9ayKdZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7d6302d6-8d99-483a-9a95-8277e59d5502`,e._sentryDebugIdIdentifier=`sentry-dbid-7d6302d6-8d99-483a-9a95-8277e59d5502`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{t as n}from"./react-dom-t7VxfrkA.js";import{i as r}from"./framework-provider-CIvHFnik.js";import{d as i,n as a,r as o}from"./hooks-0r7qxGEo.js";import{t as s}from"./jsx-runtime-Bm2_KH-0.js";import{n as c}from"./dist-pogVoW2G.js";import{t as l}from"./preload-helper-Ba4JejZL.js";import{L as u,c as ee}from"./shade-provider-DvrXKKQZ.js";import{t as d}from"./inline-Qoyy4r2g.js";import{t as f}from"./stack-C3OmgpUv.js";import{t as p}from"./lazy-component-DNJLzmpQ.js";import{a as te,t as ne}from"./button-CTHYSI-d.js";import{t as m}from"./list-return-state-B91WMz_J.js";var h=e(t(),1),g=(0,h.createContext)(void 0);function _(){let e=(0,h.useContext)(g);if(e===void 0)throw Error(`useEmberContext must be used within an EmberProvider`);return e}var v=s(),re=h.memo(function(){let e=(0,h.useRef)(null),{isFallbackPresent:t}=_();return(0,h.useLayoutEffect)(()=>{if(e.current){let t=document.getElementById(`ember-app`);if(t)e.current.appendChild(t);else throw Error(`Ember app not found`)}return()=>{let e=document.getElementById(`ember-app`);if(e)document.body.appendChild(e);else throw Error(`Ember app not found`)}},[]),(0,v.jsx)(`div`,{ref:e,className:`size-full`,hidden:!t})});function ie({children:e}){let[t,n]=(0,h.useState)(0),r=(0,h.useCallback)(()=>{n(e=>e+1)},[]),i=(0,h.useCallback)(()=>{n(e=>Math.max(0,e-1))},[]),a={isFallbackPresent:t>0,registerFallback:r,unregisterFallback:i};return(0,v.jsx)(g.Provider,{value:a,children:e})}function ae(){let{registerFallback:e,unregisterFallback:t}=_();return(0,h.useLayoutEffect)(()=>(e(),()=>{t()}),[e,t]),null}var oe=e(n(),1);function y({value:e}){return typeof e==`string`?e:(0,v.jsx)(`span`,{dangerouslySetInnerHTML:{__html:e.html}})}var b=`admin-alerts`,x={success:`border-current/20 bg-state-success text-state-success-foreground`,error:`border-current/20 bg-destructive text-destructive-foreground`,warn:`border-current/20 bg-surface-inverse text-surface-inverse-foreground`,info:`border-current/20 bg-surface-inverse text-surface-inverse-foreground`},S=`border-border-default bg-background text-foreground`;function C({store:e}){let t=(0,h.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),[n]=(0,h.useState)(()=>document.getElementById(b));return!n||t.length===0?null:(0,oe.createPortal)((0,v.jsx)(ee,{style:{width:`unset`,height:`unset`},children:(0,v.jsx)(f,{"data-testid":`admin-alerts`,gap:`none`,children:t.map(t=>(0,v.jsxs)(d,{align:`center`,className:u(`border-b px-4 py-3 text-md select-text [&_a]:text-current [&_a]:underline`,t.type&&x[t.type]||S),"data-testid":`admin-alert`,gap:`lg`,justify:`between`,role:t.type===`error`?`alert`:`status`,children:[(0,v.jsx)(`div`,{children:(0,v.jsx)(y,{value:t.message})}),(0,v.jsx)(ne,{"aria-label":`Close alert`,className:`shrink-0 text-current hover:bg-transparent hover:text-current hover:opacity-70 focus-visible:ring-2 focus-visible:ring-current enabled:active:bg-transparent enabled:active:shadow-none`,size:`icon-sm`,variant:`ghost`,onClick:()=>e.close(t.id),children:(0,v.jsx)(te,{})})]},t.id))})}),n)}function w(){let e=[],t=0,n=new Set,r=t=>{t.length===e.length&&t.every((t,n)=>t===e[n])||(e=t,n.forEach(e=>e()))};return{show:n=>{t+=1;let i=`alert-${t}`;return r([...e,{...n,id:i}]),i},close:t=>{let n=e.find(e=>e.id===t);n&&(r(e.filter(e=>e!==n)),n.onClose?.())},remove:t=>{r(e.filter(e=>!t(e)))},subscribe:e=>(n.add(e),()=>{n.delete(e)}),getSnapshot:()=>e}}function T(e){return typeof e==`string`?e:e.html}var E=o({dataType:`NotificationsResponseType`,path:`/notifications/`,permissions:[`Owner`,`Administrator`,`Editor`,`Super Editor`]}),D=a({method:`DELETE`,path:e=>`/notifications/${e}/`});function O(e){let{data:t}=E({defaultErrorHandler:!1}),{mutate:n}=D(),r=(0,h.useRef)(new Set);(0,h.useEffect)(()=>{if(!t)return;let i=new Map;for(let e of t.notifications)e.custom&&i.set(e.location,e);for(let t of i.values()){if(r.current.has(t.id))continue;r.current.add(t.id);let i=t.location;e.remove(e=>e.key===i),e.show({type:t.type,message:{html:t.message},key:i,onClose:()=>n(t.id)})}},[t,n,e])}var k={"upgrade-required":{key:`api-error.upgrade-required`,message:`Ghost has been upgraded, please copy any unsaved data and refresh the page to continue.`},maintenance:{key:`api-error.under-maintenance`,message:`Sorry, Ghost is currently undergoing maintenance, please wait a moment then try again.`}};function A(e){let t=(0,h.useRef)(new Set);(0,h.useEffect)(()=>i(n=>{if(t.current.has(n))return;t.current.add(n);let{key:r,message:i}=k[n];e.remove(e=>e.key===r),e.show({type:`error`,key:r,message:i})}),[e])}var j={integration:`IntegrationsResponseType`,invite:`InvitesResponseType`,offer:`OffersResponseType`,newsletter:`NewslettersResponseType`,recommendation:`RecommendationResponseType`,setting:`SettingsResponseType`,theme:`ThemesResponseType`,tier:`TiersResponseType`,user:`UsersResponseType`,post:`PostsResponseType`,page:`PagesResponseType`,member:`MembersResponseType`,tag:`TagsResponseType`,label:`LabelsResponseType`,snippet:`SnippetsResponseType`};function M(e){if(typeof window>`u`)return()=>{};if(window.EmberBridge?.state)return e(window.EmberBridge.state),()=>{};let t=setInterval(()=>{window.EmberBridge?.state&&(clearInterval(t),e(window.EmberBridge.state))},100);return()=>clearInterval(t)}function N(e,t,n){let r=null,i=!0,a=M(a=>{i&&(a.on(e,t),r=()=>a.off(e,t),n?.())});return()=>{i=!1,a(),r?.()}}function P(){let e=r();(0,h.useEffect)(()=>N(`emberDataChange`,t=>{let{modelName:n}=t,r=j[n];if(!r)return;let i=new Set([r,...n===`post`||n===`page`?[`TagsResponseType`]:[]]);e.invalidateQueries({predicate:e=>i.has(e.queryKey[0])})}),[e])}function F(){let e=r();(0,h.useEffect)(()=>N(`emberAuthChange`,t=>{t.isAuthenticated&&e.invalidateQueries()}),[e])}function I(){(0,h.useEffect)(()=>N(`restoreListState`,({path:e})=>{let t=m(e);if(!t)return;let n=window.history.state,r=n?.usr;window.history.replaceState({...n,usr:{...r&&typeof r==`object`?r:{},...t}},``)}),[])}function L(){let[e,t]=(0,h.useState)(null);return(0,h.useEffect)(()=>N(`subscriptionChange`,e=>{t(e)}),[]),e}function R(e){let t=(0,h.useCallback)(e=>N(`featureFlagsChange`,e,e),[]),n=(0,h.useCallback)(()=>{let t=window.EmberBridge?.state;if(t?.isFeatureEnabled)return t.isFeatureEnabled(e)??null},[e]);return(0,h.useSyncExternalStore)(t,n,n)}function z(e){let t,n=M(n=>{let r=n.connectAdminTheme?.();r&&(t=r.disconnect,e(r))});return()=>{n(),t?.()}}function B(e){let t=window.EmberBridge?.state;return t?.navigateToBillingSubRoute?(t.navigateToBillingSubRoute(e),!0):!1}async function V(e){await window.EmberBridge?.state.applyBillingSubscriptionUpdate?.(e)}function H(e){window.EmberBridge?.state.captureBillingAppLoadFailure?.(e)}function U(e,t){return M(n=>{n.setPostListQueryParams?.(e,t)})}function se(e){return M(t=>{t.setReactFullScreen?.(e)})}function W(e){return M(t=>{t.setReactRoutePattern?.(e)})}function G(e){let t,n=!0,r=M(r=>{n&&(t=r.connectNotificationsHost?.(e))});return()=>{n=!1,r(),t?.()}}var K={onFeatureFlagOverridesChange:()=>M(e=>{e.refreshFeatureFlagOverrides?.()}),onUpdate:(e,t)=>{window.EmberBridge?.state.onUpdate(e,t)},onInvalidate:e=>{window.EmberBridge?.state.onInvalidate(e)},onDelete:(e,t)=>{window.EmberBridge?.state.onDelete(e,t)}};function ce(e){return N(`sidebarVisibilityChange`,e)}function q(){return window.EmberBridge?.state.sidebarVisible??!0}function le(){return(0,h.useSyncExternalStore)(ce,q,q)}var J=0;function Y(e,t){let n=t.split(`.`).slice(0,2).join(`.`);return!!e?.startsWith(n)}function ue(e,t,n){let{type:r,message:i,description:a,actions:o}=e,s={id:t,description:a||o?(0,v.jsxs)(f,{className:`[&_a]:underline`,gap:`sm`,children:[a&&(0,v.jsx)(`p`,{children:(0,v.jsx)(y,{value:a})}),o&&(0,v.jsx)(`span`,{className:`text-text-secondary`,children:(0,v.jsx)(y,{value:o})})]}):void 0,onDismiss:n,onAutoClose:n},l=(0,v.jsx)(y,{value:i});r===`error`?c.error(l,s):r===`warn`?c.warning(l,s):r===`info`?c.info(l,s):c.success(l,s)}function de(e){let t=new Map,n=e=>{for(let[n,r]of t)e(r)&&(t.delete(n),c.dismiss(n))},r=(t,r)=>{t===`alert`?e.remove(e=>!r||Y(e.key,r)):n(e=>!r||Y(e.key,r))};return{show(i){i.key&&r(i.status,i.key);let a=T(i.message);if(e.remove(e=>T(e.message)===a),n(e=>e.text===a),i.status===`alert`){e.show({type:i.type,message:i.message,key:i.key});return}J+=1;let o=`ember-toast-${J}`;t.set(o,{key:i.key,text:a}),ue(i,o,()=>t.delete(o))},remove:r,clearAll(){e.remove(()=>!0),n(()=>!0)}}}function fe(e){(0,h.useEffect)(()=>G(de(e)),[e])}var pe=async()=>{let[{default:e},{default:t},{default:n}]=await Promise.all([l(()=>import(`./post-analytics-provider-BLQvV5C0.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]),import.meta.url),l(()=>import(`./email-sending-status-provider-DB9ylBWk.js`),__vite__mapDeps([65,1,5,2,4,6,7,3,8,66,11,12,13,14,15,16,10,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,67,68,69,70,71,63,72]),import.meta.url),l(()=>import(`./post-analytics-wdu9gq8u.js`),__vite__mapDeps([73,1,2,3,4,5,6,7,8,74,9,10,18,75,20,76,11,12,13,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,77,78,79,80]),import.meta.url)]);return{element:(0,v.jsx)(e,{children:(0,v.jsx)(t,{children:(0,v.jsx)(n,{})})})}},me=[{path:``,lazy:p(()=>l(()=>import(`./overview-C9WvmmOC.js`),__vite__mapDeps([81,1,2,82,4,5,6,7,78,11,12,13,14,15,16,10,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,3,8,54,55,56,57,58,59,60,61,62,83,84,85,86,87,88,89,90,91,92,93,77,94,69,63,95,96,97,98,99,100,74,101,102,79,80,103,104,105,106,107,108,67,109,110,111,71,64,112,113]),import.meta.url))},{path:`web`,lazy:p(()=>l(()=>import(`./web-uAqgYPK9.js`),__vite__mapDeps([114,1,2,82,4,5,6,7,78,11,12,13,14,15,16,10,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,3,8,54,55,56,57,58,59,60,61,62,97,98,99,100,84,85,86,87,88,89,115,74,116,117,118,67,93,77,119,120,121,91,122,63,96,83,101,102,79,80,69,103,104,105,106,112,113]),import.meta.url))},{path:`growth`,lazy:p(()=>l(()=>import(`./growth-CAi_5HIf.js`),__vite__mapDeps([123,1,2,113,27,18,7,6,9,10,17,5,19,20,21,84,51,42,124,11,4,12,13,14,15,16,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,52,53,3,8,54,55,56,57,58,59,60,61,62,92,93,77,78,95,96,97,82,98,99,100,74,83,101,102,79,80,69,63,103,104,105,106,107,108,67]),import.meta.url))},{path:`newsletter`,lazy:p(()=>l(()=>import(`./newsletter-BXyT7o69.js`),__vite__mapDeps([125,1,2,6,7,9,10,17,5,18,19,20,21,31,23,27,33,84,89,40,41,42,43,126,120,25,11,4,12,13,14,15,16,22,24,26,28,29,30,32,34,35,36,37,38,39,44,45,46,47,48,49,50,51,52,53,3,8,54,55,56,57,58,59,60,61,62,67,69,70,71,63,95,96,97,82,78,98,99,100,74,83,101,77,102,79,80,103,104,105,106,64,109,87,86,88,110,111,94]),import.meta.url))}],X=[`type`,`featured`,`visibility`,`author`,`tag`,`order`],Z=new Map;function Q(e,t){let n=$(t);if(Object.keys(n).length===0){Z.delete(e);return}Z.set(e,ge(n))}function he(e){let t=Z.get(e);return`/${e}${t?`?${t}`:``}`}function $(e){let t=new URLSearchParams(e),n={};return X.forEach(e=>{let r=t.get(e);r!==null&&r!==``&&(n[e]=r)}),n}function ge(e){let t=new URLSearchParams;return X.forEach(n=>{e[n]!==void 0&&t.set(n,e[n])}),t.toString()}function _e(e,t){return X.every(n=>(t[n]??null)===(e[n]??null))}function ve(e,t,n){if(t===`/${e}`)return e;let r=Z.get(e);if(!r)return e;let i=$(`?${r}`);return n.some(e=>_e(i,e))?e:`${e}?${r}`}var ye=()=>l(()=>import(`./posts-route-J74fMhCe.js`),__vite__mapDeps([127,2,1,128,5,4,6,7,13,3,8,10,9,17,18,19,20,21,75,76,22,23,27,32,29,28,129,100,41,35,36,37,130,11,12,14,15,16,24,25,26,30,31,33,34,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,98,99,116,117,118,67,79,80,131,132,133,134,135,136,72,68,105,106,137,138,139,140]),import.meta.url),be=()=>l(()=>import(`./pages-route-LCw94aIO.js`),__vite__mapDeps([141,2,1,128,5,4,6,7,13,3,8,10,9,17,18,19,20,21,75,76,22,23,27,32,29,28,129,100,41,35,36,37,130,11,12,14,15,16,24,25,26,30,31,33,34,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,98,99,116,117,118,67,79,80,131,132,133,134,135,136,72,68,105,106,137,138,139,140]),import.meta.url),xe=()=>l(()=>import(`./post-debug-BnABXMfD.js`),__vite__mapDeps([142,1,4,5,2,6,7,3,8,9,10,17,18,19,20,21,22,23,26,25,27,33,34,84,143,38,40,41,43,42,98,31,99,28,100,37,11,12,13,14,15,16,24,29,30,32,35,36,39,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,124,120,90,91,102,144,68]),import.meta.url);export{ie as A,L as C,w as D,O as E,C as O,I as S,A as T,U as _,ve as a,P as b,pe as c,V as d,z as f,se as g,H as h,he as i,re as j,ae as k,me as l,B as m,xe as n,Q as o,K as p,ye as r,X as s,be as t,fe as u,W as v,le as w,R as x,F as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`1fb36810-0c37-4088-a735-2ccd1ade2e0d`,e._sentryDebugIdIdentifier=`sentry-dbid-1fb36810-0c37-4088-a735-2ccd1ade2e0d`)}catch{}})();import{n as e}from"./hooks-0r7qxGEo.js";import{t}from"./integrations-Deg9-u8X.js";var n=e({method:`POST`,path:({integrationId:e,apiKeyId:t})=>`/integrations/${e}/api_key/${t}/refresh/`,body:({integrationId:e})=>({integrations:[{id:e}]}),updateQueries:{emberUpdateType:`createOrUpdate`,dataType:t,update:(e,t)=>t&&{...t,integrations:t.integrations.map(t=>e.integrations.find(({id:e})=>e===t.id)||t)}}});export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`fe1e158e-3b59-44a1-ae35-a7dda89b2562`,e._sentryDebugIdIdentifier=`sentry-dbid-fe1e158e-3b59-44a1-ae35-a7dda89b2562`)}catch{}})();import{H as e,U as t,V as n}from"./index-
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`fe1e158e-3b59-44a1-ae35-a7dda89b2562`,e._sentryDebugIdIdentifier=`sentry-dbid-fe1e158e-3b59-44a1-ae35-a7dda89b2562`)}catch{}})();import{H as e,U as t,V as n}from"./index-RuRs_qGS.js";var r=e=>!e||e.length===0?n:t.filter(t=>e.includes(t.value)).reduce((e,t)=>e|t.bit,0)||n,i=n=>{let r=[];return(n&e.PUBLIC)!==0&&r.push(t[0].value),(n&e.FREE)!==0&&r.push(t[1].value),(n&e.PAID)!==0&&r.push(t[2].value),r.join(`,`)};export{i as n,r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`40aefadc-d4c9-461e-8b96-d3a03060ac05`,e._sentryDebugIdIdentifier=`sentry-dbid-40aefadc-d4c9-461e-8b96-d3a03060ac05`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{t as n}from"./jsx-runtime-Bm2_KH-0.js";import{L as r}from"./shade-provider-DvrXKKQZ.js";import{t as i}from"./stack-C3OmgpUv.js";import{t as a}from"./button-CTHYSI-d.js";import{n as o}from"./loading-indicator-DaRyGrxv.js";import{g as s}from"./index-
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`40aefadc-d4c9-461e-8b96-d3a03060ac05`,e._sentryDebugIdIdentifier=`sentry-dbid-40aefadc-d4c9-461e-8b96-d3a03060ac05`)}catch{}})();import{s as e,t}from"./react-C9lG_SsT.js";import{t as n}from"./jsx-runtime-Bm2_KH-0.js";import{L as r}from"./shade-provider-DvrXKKQZ.js";import{t as i}from"./stack-C3OmgpUv.js";import{t as a}from"./button-CTHYSI-d.js";import{n as o}from"./loading-indicator-DaRyGrxv.js";import{g as s}from"./index-RuRs_qGS.js";var c=e(t(),1),l=n(),u=`https://static.ghost.org/v4.0.0/images/ghost-orb-2.png`;function d(){let{data:e}=s({defaultErrorHandler:!1}),t=e?.site.accent_color;(0,c.useLayoutEffect)(()=>{if(!t)return;let{style:e}=document.documentElement,n=e.getPropertyValue(`--accent-color`);return e.setProperty(`--accent-color`,t),()=>{n?e.setProperty(`--accent-color`,n):e.removeProperty(`--accent-color`)}},[t])}function f({children:e}){return d(),(0,l.jsx)(`div`,{className:`flex min-h-screen w-full flex-col items-center overflow-y-auto bg-sidebar px-6 [--control-height:var(--control-height-lg)] [&_input]:text-control-lg`,children:(0,l.jsx)(i,{className:`my-auto w-full max-w-[400px] py-12`,gap:`xl`,children:e})})}function p({title:e,children:t}){let{data:n}=s({defaultErrorHandler:!1});return(0,l.jsxs)(`header`,{className:`mb-4 flex flex-col items-center gap-5 text-center`,children:[(0,l.jsx)(`img`,{alt:``,className:`size-15 rounded-sm`,src:n?.site.icon||u}),(0,l.jsx)(`h1`,{className:`text-4xl leading-tight font-bold tracking-tighter text-foreground`,children:e}),t]})}function m({error:e,children:t}){return(0,l.jsxs)(`p`,{className:r(`min-h-5 text-center text-base`,e?`text-destructive`:`text-muted-foreground`),children:[t,`\xA0`]})}function h({state:e,label:t,runningLabel:n,accent:i=!1,showRetry:s=!0}){let c=s&&e===`failed`;return(0,l.jsx)(a,{className:r(`mt-4 h-(--control-height) w-full`,i&&!c&&`bg-ghostaccent text-primary-foreground hover:bg-ghostaccent/90`),disabled:e===`running`,size:`lg`,type:`submit`,variant:c&&i?`destructive`:`default`,children:e===`running`?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{color:`light`,size:`sm`}),n??(0,l.jsx)(`span`,{className:`sr-only`,children:t})]}):c?`Retry`:t})}export{h as i,f as n,m as r,p as t};
|