ghost 6.37.1 → 6.38.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/tryghost-i18n-0.0.0.tgz +0 -0
- package/core/boot.js +13 -9
- package/core/bridge.js +10 -6
- package/core/built/admin/assets/{PolarAngleAxis-Cavik65s.js → PolarAngleAxis-CB-FJBDa.js} +1 -1
- package/core/built/admin/assets/{_baseAssignValue-CnqN6ZMT.js → _baseAssignValue-BEAjPAfy.js} +1 -1
- package/core/built/admin/assets/{a-large-small-Wi4LtZX-.js → a-large-small-L1BJa6mG.js} +1 -1
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +1 -1
- package/core/built/admin/assets/admin-x-settings/{code-editor-view-Cf8T5Jfd.mjs → code-editor-view-bOZzJ3a1.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-BMWEh-vR.mjs → index-BRuMxaCz.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-Aj-hFSnY.mjs → index-CTAQj489.mjs} +5 -5
- package/core/built/admin/assets/admin-x-settings/{index-DjBJrXYn.mjs → index-WoKKBOe4.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{modals-8WpWZZdI.mjs → modals-BQ5M-RTA.mjs} +3 -3
- package/core/built/admin/assets/{arrow-right-BiAOKOto.js → arrow-right-B2j-ecEK.js} +1 -1
- package/core/built/admin/assets/{at-sign-z5gBMxDW.js → at-sign-CtAw8_lw.js} +1 -1
- package/core/built/admin/assets/{audience-DxNilLIv.js → audience-CvSOqHuo.js} +1 -1
- package/core/built/admin/assets/automations-BVUNuVOh.js +1 -0
- package/core/built/admin/assets/automations-Bi9RJq5E.js +1 -0
- package/core/built/admin/assets/{avatar-flipboard-5OzseZFV.js → avatar-flipboard-DocLTXLh.js} +1 -1
- package/core/built/admin/assets/{bluesky-sharing-D9YcSpW8.js → bluesky-sharing-DafX2lE1.js} +1 -1
- package/core/built/admin/assets/chart-BRQeD9eh.js +67 -0
- package/core/built/admin/assets/{chevron-up-DVt6fhV3.js → chevron-up-v4_QwmnL.js} +1 -1
- package/core/built/admin/assets/{chunk.524.fcd26ef812d73e2b0620.js → chunk.524.c3d844070c24d7984fd7.js} +4 -4
- package/core/built/admin/assets/{chunk.582.b61ffaad1c2fa4aba820.js → chunk.582.0e0ede1eac12926acceb.js} +6 -6
- package/core/built/admin/assets/{chunk.383.adb5a3fe32b6b98c43ff.js → chunk.995.4b32363ab39da3e7f5d7.js} +3 -3
- package/core/built/admin/assets/circle-alert-Dbz54fYb.js +1 -0
- package/core/built/admin/assets/{code-editor-view-CbQIqTrK.js → code-editor-view-D-pYCcdu.js} +1 -1
- package/core/built/admin/assets/comments-DSv09jRn.js +1 -0
- package/core/built/admin/assets/{content-helpers-jANWGIfA.js → content-helpers-DQdPPDGb.js} +1 -1
- package/core/built/admin/assets/{copy-BBLeLEnG.js → copy-BULQsPZ4.js} +1 -1
- package/core/built/admin/assets/{data-list-BveeOSGI.js → data-list-WxXC0iKE.js} +1 -1
- package/core/built/admin/assets/{deleted-feed-item-DupAEk4P.js → deleted-feed-item-ZBLfgRkK.js} +1 -1
- package/core/built/admin/assets/{dropzone-D3PSdAHN.js → dropzone-B8mAoWrn.js} +1 -1
- package/core/built/admin/assets/{edit-profile-NrCR9_bi.js → edit-profile-Bj3th8H0.js} +1 -1
- package/core/built/admin/assets/editor-BZV40eAE.css +1 -0
- package/core/built/admin/assets/editor-u20VuPzn.js +7 -0
- package/core/built/admin/assets/{empty-indicator-Dhi_KeYX.js → empty-indicator-P3IsUguf.js} +1 -1
- package/core/built/admin/assets/{en-BontI3SP.js → en-C9bUnuy7.js} +1 -1
- package/core/built/admin/assets/{feed-B3Kfiz5R.js → feed-B94mO944.js} +1 -1
- package/core/built/admin/assets/{filter-query-core-Dwh4Qulu.js → filter-query-core-CM0KKIr2.js} +1 -1
- package/core/built/admin/assets/filters-D52FTE0z.js +1 -0
- package/core/built/admin/assets/gh-chart-Xa6Nvzwz.js +1 -0
- package/core/built/admin/assets/{ghost-c25434d5bbf5a5429883d4c3590f1946.js → ghost-82f1c4ffe0e1cd058ce4b66b5253b620.js} +159 -201
- package/core/built/admin/assets/{ghost-dark-52df27573e5f2a75e6cf4b1d06eea9e4.css → ghost-dark-9897cf5102772faedf566e5e54d4fbee.css} +1 -1
- package/core/built/admin/assets/{ghost-fcf460028e04192f392f16e173f2e3a8.css → ghost-e11f1814be0f38e98bb77b49eba11178.css} +1 -1
- package/core/built/admin/assets/{growth-DRH8zUIJ.js → growth-D3TW3JIB.js} +1 -1
- package/core/built/admin/assets/{hash-UvX5iOa9.js → hash-CstXS-iB.js} +1 -1
- package/core/built/admin/assets/{header-G1a38jnf.js → header-StkTITw-.js} +1 -1
- package/core/built/admin/assets/{inbox-By7HZskI.js → inbox-D1RM3kVF.js} +1 -1
- package/core/built/admin/assets/index-BEkJ9xtY.css +1 -0
- package/core/built/admin/assets/{index-CS_ZmI8F.js → index-BJx5Uas5.js} +1 -1
- package/core/built/admin/assets/index-BKzg6OE7.js +1 -0
- package/core/built/admin/assets/{index-D7JyKf1m.js → index-BM-MBdD0.js} +1 -1
- package/core/built/admin/assets/index-BRzvVuXt.js +2 -0
- package/core/built/admin/assets/index-B_3xqeM9.js +1 -0
- package/core/built/admin/assets/{index-ydyrczVl.js → index-C-OdR2wJ.js} +1 -1
- package/core/built/admin/assets/{index-X-MG1ikg.js → index-C59QlJqT.js} +1 -1
- package/core/built/admin/assets/{index-CJo0Qh4V.js → index-CCq_1tCo.js} +1 -1
- package/core/built/admin/assets/{index-qHUvPjQB.js → index-CYyEyBYw.js} +11 -11
- package/core/built/admin/assets/{index-CX4ztLSk.js → index-DHbiBjyq.js} +1 -1
- package/core/built/admin/assets/{index-BP6hBbPK.js → index-DTVgSMyL.js} +2 -2
- package/core/built/admin/assets/{index-vZMbI8e8.js → index-DiUjEgRw.js} +1 -1
- package/core/built/admin/assets/{index-YM4ZplGj.js → index-DugxKzA6.js} +1 -1
- package/core/built/admin/assets/{index-D8InZCr2.js → index-DzVHlhO1.js} +1 -1
- package/core/built/admin/assets/{index-D4b7U6K-.js → index-LsaD9Cq7.js} +1 -1
- package/core/built/admin/assets/{index-DRUPF8nN.js → index-x0hNfyqU.js} +1 -1
- package/core/built/admin/assets/{inline-Bc9zHR7e.js → inline-B4cWemrJ.js} +1 -1
- package/core/built/admin/assets/{koenig-lexical-B-ZnqRE1.js → koenig-lexical-BOdeH3QJ.js} +1 -1
- package/core/built/admin/assets/{kpi-card-zyi5Onb0.js → kpi-card-P7zSpcx0.js} +1 -1
- package/core/built/admin/assets/{kpi-card-CzlPIEPE.js → kpi-card-plhYOEtA.js} +1 -1
- package/core/built/admin/assets/{kpi-tabs-Dsa5ldXK.js → kpi-tabs-DZw2Qktb.js} +1 -1
- package/core/built/admin/assets/{kpis-Cw5ZRQhk.js → kpis-CDHM0xhW.js} +1 -1
- package/core/built/admin/assets/{label-BvxmsD1M.js → label-Ckacdx14.js} +1 -1
- package/core/built/admin/assets/{links-CiS5BPKS.js → links-BtXE5d0Y.js} +1 -1
- package/core/built/admin/assets/{list-filter-zmkB7rg4.js → list-filter-DLjjiktn.js} +1 -1
- package/core/built/admin/assets/{list-header-Cp779e3H.js → list-header-Cc7Ia3nr.js} +1 -1
- package/core/built/admin/assets/loader-circle-DLJd-dNm.js +1 -0
- package/core/built/admin/assets/{mail-i2qs8CIG.js → mail-B97w28e2.js} +1 -1
- package/core/built/admin/assets/{main-layout-KCvKOX8F.js → main-layout-bwWvzc9B.js} +1 -1
- package/core/built/admin/assets/{members-w601v5JJ.js → members-CokS8MI2.js} +5 -5
- package/core/built/admin/assets/{message-square-text-bG9IoWIt.js → message-square-text-D3rsjDFR.js} +1 -1
- package/core/built/admin/assets/minus-BzXQVmMw.js +1 -0
- package/core/built/admin/assets/{modals-lNzhiL0o.js → modals-D0lip-iy.js} +2 -2
- package/core/built/admin/assets/{moderation-CyfNRSWj.js → moderation-Dv7AadCV.js} +1 -1
- package/core/built/admin/assets/newsletter-BazC5rIj.js +1 -0
- package/core/built/admin/assets/{newsletters-B8xSXSr_.js → newsletters-m6HQgU5J.js} +1 -1
- package/core/built/admin/assets/{note-dNfKEpxw.js → note-CCGiEKz-.js} +1 -1
- package/core/built/admin/assets/{onboarding-route-Drbw0QtT.js → onboarding-route-Cbt7qWNE.js} +1 -1
- package/core/built/admin/assets/overview-TN50tzUh.js +1 -0
- package/core/built/admin/assets/{pagemenu-VJXMoMB4.js → pagemenu-BXrHWtsU.js} +1 -1
- package/core/built/admin/assets/{pencil-DHNmlLjO.js → pencil-BL1r8KVy.js} +1 -1
- package/core/built/admin/assets/{post-analytics-PsqLsS2e.js → post-analytics-BqEXi6Ps.js} +1 -1
- package/core/built/admin/assets/{post-analytics-context-QLZsZCFg.js → post-analytics-context-DekYNlb3.js} +1 -1
- package/core/built/admin/assets/{post-analytics-header-PecXsIT-.js → post-analytics-header-AkNbn6uc.js} +1 -1
- package/core/built/admin/assets/{post-share-modal-B4Rvo7W1.js → post-share-modal-CXDGVKoQ.js} +1 -1
- package/core/built/admin/assets/posts/{app-utils-DIc5TmxO.mjs → app-utils-DxA7edI_.mjs} +2 -2
- package/core/built/admin/assets/posts/{automations-BZpT35kJ.mjs → automations-Cwu_gHl4.mjs} +64 -67
- package/core/built/admin/assets/posts/automations-D81hV_2c.mjs +13 -0
- package/core/built/admin/assets/posts/{avatar-K63cvqSS.mjs → avatar-IkjEzEjI.mjs} +19 -19
- package/core/built/admin/assets/posts/{button-ufGBCcsV.mjs → button-KaJZKcou.mjs} +21 -21
- package/core/built/admin/assets/posts/{check-IcEnuTpD.mjs → check-Cf74RvZ1.mjs} +21 -21
- package/core/built/admin/assets/posts/{comments-CyJU9Ums.mjs → comments-pdKhYbYG.mjs} +54 -52
- package/core/built/admin/assets/posts/createLucideIcon-Cj7h3r9g.mjs +320 -0
- package/core/built/admin/assets/posts/{dialog-D6_lBvtT.mjs → dialog-Ci3W8fjx.mjs} +71 -76
- package/core/built/admin/assets/posts/{dropdown-menu-BSSmAory.mjs → dropdown-menu-DZ9XCHSw.mjs} +5 -5
- package/core/built/admin/assets/posts/editor-Bb-xle0o.mjs +6084 -0
- package/core/built/admin/assets/posts/ellipsis-ChhZo9aT.mjs +10 -0
- package/core/built/admin/assets/posts/{empty-indicator-DvGCvRAX.mjs → empty-indicator-DnFs7hDy.mjs} +2 -2
- package/core/built/admin/assets/posts/{filters-BLBaHhJz.mjs → filters-CO_FUPX-.mjs} +42 -40
- package/core/built/admin/assets/posts/get-site-timezone-C21yKZT_.mjs +87 -0
- package/core/built/admin/assets/posts/{growth-Bz1ChJNB.mjs → growth-CtX9Efm2.mjs} +12 -12
- package/core/built/admin/assets/posts/heading-DZ_KtDTL.mjs +138 -0
- package/core/built/admin/assets/posts/{hooks-BEngBys9.mjs → hooks-DVhBDVlA.mjs} +3 -2
- package/core/built/admin/assets/posts/{index-BAF0YXsp.mjs → index-B4db8w_H.mjs} +181 -172
- package/core/built/admin/assets/posts/{inline-C2YFQAdU.mjs → inline-BfB-SNk0.mjs} +2 -2
- package/core/built/admin/assets/posts/{input-surface-TqJlNSp_.mjs → input-surface-CNwZJloi.mjs} +2 -2
- package/core/built/admin/assets/posts/{kpis-DAX5_0-Q.mjs → kpis-BvY_5Y1u.mjs} +8792 -8803
- package/core/built/admin/assets/posts/{links-A1YTsBbF.mjs → links-Ck-h7SKg.mjs} +57 -57
- package/core/built/admin/assets/posts/{loading-indicator-BZsjmp8g.mjs → loading-indicator-B_rU9Lie.mjs} +3 -3
- package/core/built/admin/assets/posts/mail-DiZ3oKEW.mjs +9 -0
- package/core/built/admin/assets/posts/{main-layout-D_HHTP_n.mjs → main-layout-aYo6qOBZ.mjs} +2 -2
- package/core/built/admin/assets/posts/{newsletter-BRzgjOIa.mjs → newsletter-BQc53TF2.mjs} +31 -30
- package/core/built/admin/assets/posts/{overview-C41VFjn7.mjs → overview-blz9Ak9q.mjs} +42 -41
- package/core/built/admin/assets/posts/plus-YVjtYaK3.mjs +15 -0
- package/core/built/admin/assets/posts/{post-analytics-DGgMkFaf.mjs → post-analytics-BQbWGoeu.mjs} +6 -6
- package/core/built/admin/assets/posts/{post-analytics-context-B1r3HBrp.mjs → post-analytics-context-Be7THgnd.mjs} +7 -7
- package/core/built/admin/assets/posts/{post-analytics-header-DTWSO0Aq.mjs → post-analytics-header-iDFy7Bao.mjs} +2762 -2764
- package/core/built/admin/assets/posts/{post-share-modal-ohHwk0Yt.mjs → post-share-modal-akP16idN.mjs} +50 -48
- package/core/built/admin/assets/posts/posts.js +2 -1
- package/core/built/admin/assets/posts/{settings-CZYL6Jhr.mjs → settings-BdQhfHxY.mjs} +2 -2
- package/core/built/admin/assets/posts/{sheet-D7YesQJE.mjs → sheet-3dBlKeXf.mjs} +14 -13
- package/core/built/admin/assets/posts/{skeleton-S1k58YKa.mjs → skeleton-DMgSvYqr.mjs} +11 -11
- package/core/built/admin/assets/posts/{source-icon-DnpCy5N4.mjs → source-icon-Bp5Qxq1E.mjs} +4 -4
- package/core/built/admin/assets/posts/{stats-CbOpowXb.mjs → stats-DJx9qc_u.mjs} +4 -4
- package/core/built/admin/assets/posts/{table-Cw3Wxf1C.mjs → table-BpVwuzeH.mjs} +2 -2
- package/core/built/admin/assets/posts/{data-list-BnZARP88.mjs → tabs-CbZCpxfI.mjs} +4885 -5284
- package/core/built/admin/assets/posts/{tags-BoMt6Ce3.mjs → tags-CNtvDS6f.mjs} +33 -33
- package/core/built/admin/assets/posts/{tags-CNdsvTtZ.mjs → tags-DFOoFZ_3.mjs} +2 -2
- package/core/built/admin/assets/posts/{tooltip-CTcyINxz.mjs → tooltip-Cc_09RDU.mjs} +106 -117
- package/core/built/admin/assets/posts/value-CwGM7M-1.mjs +410 -0
- package/core/built/admin/assets/posts/{virtual-list-window-Bs88yrut.mjs → virtual-list-window-D6nRoL0y.mjs} +5 -5
- package/core/built/admin/assets/posts/{web-Bsd8eTP6.mjs → web-yfPssEt8.mjs} +1042 -1040
- package/core/built/admin/assets/posts/x-DrUGcpfp.mjs +9 -0
- package/core/built/admin/assets/posts/zap-DAN0ur-o.mjs +24 -0
- package/core/built/admin/assets/posts-D-jyPPE6.js +1 -0
- package/core/built/admin/assets/power-Cc5ncYVl.js +1 -0
- package/core/built/admin/assets/{referrers-kcBT5smx.js → referrers-qnXsKsuv.js} +1 -1
- package/core/built/admin/assets/{repeat-Cn2sKd-L.js → repeat-BGIBynZH.js} +1 -1
- package/core/built/admin/assets/{reply-D7E-ZMd5.js → reply-DOKdAsL_.js} +1 -1
- package/core/built/admin/assets/{rocket-DnH0XAGW.js → rocket-CAN2NB82.js} +1 -1
- package/core/built/admin/assets/{select-f0MMMQWu.js → select-8S9kYGSM.js} +1 -1
- package/core/built/admin/assets/{settings-BAQNP3gU.js → settings-DeD-bmZc.js} +4 -4
- package/core/built/admin/assets/{settings-ORttG1jT.js → settings-e4IB9sx6.js} +1 -1
- package/core/built/admin/assets/{share-modal-CXU4tGY8.js → share-modal-CBavk20I.js} +1 -1
- package/core/built/admin/assets/{sort-button-BXMrChFu.js → sort-button-DlSKBzUq.js} +1 -1
- package/core/built/admin/assets/{source-icon-cjy79jGT.js → source-icon-27VIJSXr.js} +1 -1
- package/core/built/admin/assets/{sprout-DZ4tZ78G.js → sprout-D66nqc79.js} +1 -1
- package/core/built/admin/assets/{square-vOzqJf7x.js → square-DccaXQWe.js} +1 -1
- package/core/built/admin/assets/stats/{audience-5NeJICtP.mjs → audience-B84ClTDM.mjs} +3 -3
- package/core/built/admin/assets/stats/{content-helpers-DFSTl3uB.mjs → content-helpers-CBAddUg7.mjs} +4 -4
- package/core/built/admin/assets/stats/{index-C4T7u699.mjs → index-Bz5oVpED.mjs} +5 -5
- package/core/built/admin/assets/stats/{index-B8bp6qe2.mjs → index-Cs8i1uR4.mjs} +74 -75
- package/core/built/admin/assets/stats/{index-wvi17m79.mjs → index-DEsP_Tbd.mjs} +8 -8
- package/core/built/admin/assets/stats/{index-CFfAYHdD.mjs → index-Ds-pM47x.mjs} +5 -5
- package/core/built/admin/assets/stats/{index-Chqk7VlR.mjs → index-Wzk1IcAz.mjs} +6 -6
- package/core/built/admin/assets/stats/{kpi-tabs-Df9yOI2P.mjs → kpi-tabs-Cs4l8B_M.mjs} +7 -7
- package/core/built/admin/assets/stats/{sort-button-Doi8OgMU.mjs → sort-button-rR-GA9Hu.mjs} +3 -3
- package/core/built/admin/assets/stats/{stats-FXeCefyd.mjs → stats-RFpEJpEq.mjs} +34 -34
- package/core/built/admin/assets/stats/stats.js +1 -1
- package/core/built/admin/assets/stats/{use-growth-stats-93C_3EZk.mjs → use-growth-stats-DwgFzbq9.mjs} +3 -3
- package/core/built/admin/assets/{stats-CIGz2Win.js → stats-B4OybenW.js} +1 -1
- package/core/built/admin/assets/{stats-view-BTKRxYTQ.js → stats-view-BuExwFXa.js} +1 -1
- package/core/built/admin/assets/{step-1-BSMHbT-q.js → step-1-D_5LOQrC.js} +1 -1
- package/core/built/admin/assets/{step-2-_YC0LCZv.js → step-2-BZLBj8cj.js} +1 -1
- package/core/built/admin/assets/{step-3-DWMqP2bO.js → step-3-s5uNbcOH.js} +1 -1
- package/core/built/admin/assets/{table-mHKjXQba.js → table-pGS7EeJe.js} +1 -1
- package/core/built/admin/assets/{tabs-B93IVRBz.js → tabs-CjdKssUe.js} +1 -1
- package/core/built/admin/assets/{tags-DCb-x2ZB.js → tags-B0vRk0A6.js} +1 -1
- package/core/built/admin/assets/{tags-kUHJ1MZo.js → tags-Dso4-FA_.js} +1 -1
- package/core/built/admin/assets/{textarea-DswCtM7_.js → textarea-DzFnun0_.js} +1 -1
- package/core/built/admin/assets/{tiers-DueraQKd.js → tiers-4Vkr_D-L.js} +1 -1
- package/core/built/admin/assets/{toggle-group-ChTo8MPD.js → toggle-group-hDsr47IB.js} +1 -1
- package/core/built/admin/assets/{topic-filter-DrW3fYWo.js → topic-filter-C7TpPe1G.js} +1 -1
- package/core/built/admin/assets/{trash-B2ESGftj.js → trash-DCVuk7ZX.js} +1 -1
- package/core/built/admin/assets/{underline-vo-bPRac.js → underline-CjK8la2G.js} +1 -1
- package/core/built/admin/assets/{upload-DXQRkBBq.js → upload-CPYhmtWZ.js} +1 -1
- package/core/built/admin/assets/{use-growth-stats-CoB8-lsd.js → use-growth-stats-CaFSgp_R.js} +1 -1
- package/core/built/admin/assets/{use-simple-pagination-Y_Wv2N6g.js → use-simple-pagination-D0vJBMvF.js} +1 -1
- package/core/built/admin/assets/{user-round-check-Dp9a2x-e.js → user-round-check-CzQQeFd8.js} +1 -1
- package/core/built/admin/assets/{user-round-x-DwCTGlxc.js → user-round-x-BDFm8yQj.js} +1 -1
- package/core/built/admin/assets/value-BGBiTkF3.js +1 -0
- package/core/built/admin/assets/{vendor-17f3b979ba6f3898d1a8c5249cc22ff1.js → vendor-ce3fc901ccbcf37f36eb791b4e454138.js} +29 -31
- package/core/built/admin/assets/{virtual-list-window-BF7IvGMC.js → virtual-list-window-EKtWZ5cP.js} +1 -1
- package/core/built/admin/assets/{wallet-cards-IEmcxJvG.js → wallet-cards-C1NOBbWE.js} +1 -1
- package/core/built/admin/assets/web-DCA7HR1S.js +1 -0
- package/core/built/admin/index.html +8 -8
- package/core/frontend/helpers/social_accounts.js +91 -0
- package/core/frontend/services/sitemap/handler.js +14 -2
- package/core/frontend/services/sitemap/site-map-manager.js +133 -9
- package/core/frontend/web/middleware/handle-image-sizes.js +4 -0
- package/core/server/api/endpoints/automations.js +38 -45
- package/core/server/models/member.js +30 -25
- package/core/server/services/automations/automations-api.js +58 -0
- package/core/server/services/automations/automations-api.ts +71 -0
- package/core/server/services/automations/automations-repository.js +2 -0
- package/core/server/services/automations/automations-repository.ts +63 -0
- package/core/server/services/automations/fake-database-automations-repository.js +210 -0
- package/core/server/services/automations/fake-database-automations-repository.ts +273 -0
- package/core/server/services/automations/temporary-fake-database.js +5 -4
- package/core/server/services/gifts/email-templates/gift-purchase-confirmation.hbs +10 -32
- package/core/server/services/gifts/email-templates/gift-purchase-confirmation.js +6 -8
- package/core/server/services/gifts/email-templates/gift-purchase-confirmation.ts +6 -8
- package/core/server/services/gifts/email-templates/gift-reminder.hbs +12 -37
- package/core/server/services/gifts/email-templates/gift-reminder.js +5 -9
- package/core/server/services/gifts/email-templates/gift-reminder.ts +5 -9
- package/core/server/services/gifts/gift-service.js +1 -1
- package/core/server/services/gifts/gift-service.ts +2 -2
- package/core/server/services/member-welcome-emails/service.js +0 -1
- package/core/server/services/members/members-api/controllers/router-controller.js +52 -7
- package/core/server/services/members/members-api/services/member-bread-service.js +0 -8
- package/core/server/services/route-settings/route-settings.js +18 -2
- package/core/server/services/staff/email-templates/gift.hbs +1 -1
- package/core/server/services/staff/email-templates/gift.txt.js +1 -1
- package/core/server/services/staff/email-templates/new-gift-subscription.hbs +1 -1
- package/core/server/services/staff/email-templates/new-gift-subscription.txt.js +1 -1
- package/core/server/services/staff/staff-service-emails.js +1 -1
- package/core/server/services/url/index.js +16 -1
- package/core/server/services/url/lazy-find-resource.js +49 -0
- package/core/server/services/url/lazy-find-resource.ts +62 -0
- package/core/server/services/url/lazy-url-service.js +220 -0
- package/core/server/services/url/lazy-url-service.ts +265 -0
- package/core/server/web/api/endpoints/admin/routes.js +1 -0
- package/core/server/web/gift-preview/Inter.ttf +0 -0
- package/core/server/web/gift-preview/controller.js +56 -6
- package/core/server/web/gift-preview/gift-card-noise.png +0 -0
- package/core/server/web/gift-preview/gift-card-orb.png +0 -0
- package/core/server/web/gift-preview/image.js +170 -43
- package/core/shared/config/defaults.json +1 -0
- package/core/shared/one-at-a-time.js +28 -33
- package/core/shared/one-at-a-time.ts +58 -0
- package/package.json +18 -16
- package/pnpm-lock.yaml +989 -356
- package/core/built/admin/assets/automations-D1uMjd06.js +0 -1
- package/core/built/admin/assets/chart-_EXssQtm.js +0 -67
- package/core/built/admin/assets/comments-E00h1SbR.js +0 -1
- package/core/built/admin/assets/filters-CC7XfjOS.js +0 -1
- package/core/built/admin/assets/gh-chart-B9_ywrJJ.js +0 -1
- package/core/built/admin/assets/index-AsV-aY0z.css +0 -1
- package/core/built/admin/assets/index-B0y_ynZw.js +0 -1
- package/core/built/admin/assets/index-Bs6wWbLA.js +0 -2
- package/core/built/admin/assets/index-Cb4641XW.js +0 -1
- package/core/built/admin/assets/loader-circle-B5UPqSok.js +0 -1
- package/core/built/admin/assets/minus-DWx9VUtr.js +0 -1
- package/core/built/admin/assets/newsletter-fkQye9OK.js +0 -1
- package/core/built/admin/assets/overview-CZ-VrnXy.js +0 -1
- package/core/built/admin/assets/posts/createLucideIcon-DcUfTBt_.mjs +0 -454
- package/core/built/admin/assets/posts/get-site-timezone-DlXmHA3y.mjs +0 -93
- package/core/built/admin/assets/posts-Bx1RWrub.js +0 -1
- package/core/built/admin/assets/web-DSME3e8c.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ar as o}from"./index-
|
|
1
|
+
import{ar as o}from"./index-CYyEyBYw.js";const e=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],r=o("chevron-up",e);export{r as C};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var __ember_auto_import__;(()=>{var e,r,t,n,o,i={32186(e){"use strict"
|
|
2
2
|
e.exports=require("@ember/test-waiters")},80032(e){"use strict"
|
|
3
|
-
e.exports=require("ember-tracked-storage-polyfill")},
|
|
3
|
+
e.exports=require("ember-tracked-storage-polyfill")},97818(e,r,t){e.exports=function(){var e=_eai_d,r=_eai_r
|
|
4
4
|
function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",[],function(){return n(t(77931))}),e("@sentry/core",[],function(){return n(t(80630))}),e("@sentry/integrations",[],function(){return n(t(92549))}),e("@sentry/replay",[],function(){return n(t(3586))}),e("@sentry/utils",[],function(){return n(t(67342))}),e("@tryghost/admin-x-framework/hooks",[],function(){return n(t(79220))}),e("@tryghost/color-utils",[],function(){return n(t(5569))}),e("@tryghost/kg-clean-basic-html",[],function(){return n(t(86150))}),e("@tryghost/kg-converters",[],function(){return n(t(10088))}),e("@tryghost/limit-service",[],function(){return n(t(64528))}),e("@tryghost/nql",[],function(){return n(t(76442))}),e("@tryghost/string",[],function(){return n(t(29897))}),e("@tryghost/timezone-data",[],function(){return n(t(96140))}),e("element-resize-detector",[],function(){return n(t(16012))}),e("ember-assign-helper/helpers/assign",[],function(){return n(t(146))}),e("ember-css-transitions/modifiers/css-transition",["@ember/test-waiters"],function(){return n(t(35471))}),e("ember-keyboard/helpers/if-key.js",[],function(){return n(t(65305))}),e("ember-keyboard/helpers/on-key.js",[],function(){return n(t(4111))}),e("ember-keyboard/modifiers/on-key.js",[],function(){return n(t(98590))}),e("ember-keyboard/services/keyboard.js",[],function(){return n(t(88863))}),e("ember-modifier",[],function(){return n(t(7607))}),e("ember-moment/helpers/-base",[],function(){return n(t(60863))}),e("ember-moment/helpers/is-after",[],function(){return n(t(15998))}),e("ember-moment/helpers/is-before",[],function(){return n(t(13477))}),e("ember-moment/helpers/is-between",[],function(){return n(t(22056))}),e("ember-moment/helpers/is-same",[],function(){return n(t(97132))}),e("ember-moment/helpers/is-same-or-after",[],function(){return n(t(88607))}),e("ember-moment/helpers/is-same-or-before",[],function(){return n(t(18262))}),e("ember-moment/helpers/moment",[],function(){return n(t(29385))}),e("ember-moment/helpers/moment-add",[],function(){return n(t(9783))}),e("ember-moment/helpers/moment-calendar",[],function(){return n(t(83288))}),e("ember-moment/helpers/moment-diff",[],function(){return n(t(1945))}),e("ember-moment/helpers/moment-duration",[],function(){return n(t(70826))}),e("ember-moment/helpers/moment-format",[],function(){return n(t(69617))}),e("ember-moment/helpers/moment-from",[],function(){return n(t(39794))}),e("ember-moment/helpers/moment-from-now",[],function(){return n(t(28699))}),e("ember-moment/helpers/moment-subtract",[],function(){return n(t(36502))}),e("ember-moment/helpers/moment-to",[],function(){return n(t(93511))}),e("ember-moment/helpers/moment-to-date",[],function(){return n(t(9784))}),e("ember-moment/helpers/moment-to-now",[],function(){return n(t(82882))}),e("ember-moment/helpers/now",[],function(){return n(t(30189))}),e("ember-moment/helpers/unix",[],function(){return n(t(38199))}),e("ember-moment/helpers/utc",[],function(){return n(t(3567))}),e("ember-moment/services/moment",[],function(){return n(t(59766))}),e("fast-deep-equal",[],function(){return n(t(52369))}),e("flexsearch",[],function(){return n(t(1850))}),e("focus-trap",[],function(){return n(t(26479))}),e("intersection-observer-admin",[],function(){return n(t(72959))}),e("microdiff",[],function(){return n(t(75917))}),e("moment-timezone",[],function(){return n(t(60104))}),e("raf-pool",[],function(){return n(t(33795))}),e("react",[],function(){return n(t(14523))}),e("react-dom",[],function(){return n(t(35740))}),e("react-dom/client",[],function(){return n(t(10437))}),e("react/jsx-runtime",[],function(){return n(t(34475))}),e("tooltip.js",[],function(){return n(t(92376))}),e("tracked-built-ins",["ember-tracked-storage-polyfill"],function(){return n(t(41284))}),e("validator",[],function(){return n(t(44267))}),e("_eai_dyn_@sentry/browser",[],function(){return Promise.resolve().then(t.bind(t,77931))})}()}},u={}
|
|
5
5
|
function m(e){var r=u[e]
|
|
6
6
|
if(void 0!==r)return r.exports
|
|
@@ -39,8 +39,8 @@ var r=(r,t)=>{var n,o,[i,u,s]=t,a=0
|
|
|
39
39
|
if(i.some(r=>0!==e[r])){for(n in u)m.o(u,n)&&(m.m[n]=u[n])
|
|
40
40
|
if(s)var c=s(m)}for(r&&r(t);a<i.length;a++)o=i[a],m.o(e,o)&&e[o]&&e[o][0](),e[o]=0
|
|
41
41
|
return m.O(c)},t=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
|
|
42
|
-
t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),m.nc=void 0,m.O(void 0,[343,
|
|
43
|
-
var s=m.O(void 0,[343,
|
|
42
|
+
t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),m.nc=void 0,m.O(void 0,[343,995],()=>m(m.s=91759))
|
|
43
|
+
var s=m.O(void 0,[343,995],()=>m(m.s=97818))
|
|
44
44
|
s=m.O(s),__ember_auto_import__=s})()
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=chunk.524.
|
|
46
|
+
//# sourceMappingURL=chunk.524.c3d844070c24d7984fd7.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var __ember_auto_import__;(()=>{var e,r,t,n,o,m={32186(e){"use strict"
|
|
2
2
|
e.exports=require("@ember/test-waiters")},80032(e){"use strict"
|
|
3
|
-
e.exports=require("ember-tracked-storage-polyfill")},
|
|
4
|
-
function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",EAI_DISCOVERED_EXTERNALS("@sentry/browser"),function(){return n(t(77931))}),e("@sentry/core",EAI_DISCOVERED_EXTERNALS("@sentry/core"),function(){return n(t(80630))}),e("@sentry/integrations",EAI_DISCOVERED_EXTERNALS("@sentry/integrations"),function(){return n(t(92549))}),e("@sentry/replay",EAI_DISCOVERED_EXTERNALS("@sentry/replay"),function(){return n(t(3586))}),e("@sentry/utils",EAI_DISCOVERED_EXTERNALS("@sentry/utils"),function(){return n(t(67342))}),e("@tryghost/admin-x-framework/hooks",EAI_DISCOVERED_EXTERNALS("@tryghost/admin-x-framework/hooks"),function(){return n(t(79220))}),e("@tryghost/color-utils",EAI_DISCOVERED_EXTERNALS("@tryghost/color-utils"),function(){return n(t(5569))}),e("@tryghost/kg-clean-basic-html",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-clean-basic-html"),function(){return n(t(86150))}),e("@tryghost/kg-converters",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-converters"),function(){return n(t(10088))}),e("@tryghost/limit-service",EAI_DISCOVERED_EXTERNALS("@tryghost/limit-service"),function(){return n(t(64528))}),e("@tryghost/nql",EAI_DISCOVERED_EXTERNALS("@tryghost/nql"),function(){return n(t(76442))}),e("@tryghost/string",EAI_DISCOVERED_EXTERNALS("@tryghost/string"),function(){return n(t(29897))}),e("@tryghost/timezone-data",EAI_DISCOVERED_EXTERNALS("@tryghost/timezone-data"),function(){return n(t(96140))}),e("element-resize-detector",EAI_DISCOVERED_EXTERNALS("element-resize-detector"),function(){return n(t(16012))}),e("ember-assign-helper/helpers/assign",EAI_DISCOVERED_EXTERNALS("ember-assign-helper/helpers/assign"),function(){return n(t(146))}),e("ember-css-transitions/modifiers/css-transition",EAI_DISCOVERED_EXTERNALS("ember-css-transitions/modifiers/css-transition"),function(){return n(t(35471))}),e("ember-keyboard/helpers/if-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/if-key.js"),function(){return n(t(65305))}),e("ember-keyboard/helpers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/on-key.js"),function(){return n(t(4111))}),e("ember-keyboard/modifiers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/modifiers/on-key.js"),function(){return n(t(98590))}),e("ember-keyboard/services/keyboard.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/services/keyboard.js"),function(){return n(t(88863))}),e("ember-modifier",EAI_DISCOVERED_EXTERNALS("ember-modifier"),function(){return n(t(7607))}),e("ember-moment/helpers/-base",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/-base"),function(){return n(t(60863))}),e("ember-moment/helpers/is-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-after"),function(){return n(t(15998))}),e("ember-moment/helpers/is-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-before"),function(){return n(t(13477))}),e("ember-moment/helpers/is-between",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-between"),function(){return n(t(22056))}),e("ember-moment/helpers/is-same",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same"),function(){return n(t(97132))}),e("ember-moment/helpers/is-same-or-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-after"),function(){return n(t(88607))}),e("ember-moment/helpers/is-same-or-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-before"),function(){return n(t(18262))}),e("ember-moment/helpers/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment"),function(){return n(t(29385))}),e("ember-moment/helpers/moment-add",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-add"),function(){return n(t(9783))}),e("ember-moment/helpers/moment-calendar",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-calendar"),function(){return n(t(83288))}),e("ember-moment/helpers/moment-diff",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-diff"),function(){return n(t(1945))}),e("ember-moment/helpers/moment-duration",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-duration"),function(){return n(t(70826))}),e("ember-moment/helpers/moment-format",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-format"),function(){return n(t(69617))}),e("ember-moment/helpers/moment-from",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from"),function(){return n(t(39794))}),e("ember-moment/helpers/moment-from-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from-now"),function(){return n(t(28699))}),e("ember-moment/helpers/moment-subtract",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-subtract"),function(){return n(t(36502))}),e("ember-moment/helpers/moment-to",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to"),function(){return n(t(93511))}),e("ember-moment/helpers/moment-to-date",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-date"),function(){return n(t(9784))}),e("ember-moment/helpers/moment-to-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-now"),function(){return n(t(82882))}),e("ember-moment/helpers/now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/now"),function(){return n(t(30189))}),e("ember-moment/helpers/unix",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/unix"),function(){return n(t(38199))}),e("ember-moment/helpers/utc",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/utc"),function(){return n(t(3567))}),e("ember-moment/services/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/services/moment"),function(){return n(t(59766))}),e("fast-deep-equal",EAI_DISCOVERED_EXTERNALS("fast-deep-equal"),function(){return n(t(52369))}),e("flexsearch",EAI_DISCOVERED_EXTERNALS("flexsearch"),function(){return n(t(1850))}),e("focus-trap",EAI_DISCOVERED_EXTERNALS("focus-trap"),function(){return n(t(26479))}),e("intersection-observer-admin",EAI_DISCOVERED_EXTERNALS("intersection-observer-admin"),function(){return n(t(72959))}),e("microdiff",EAI_DISCOVERED_EXTERNALS("microdiff"),function(){return n(t(75917))}),e("moment-timezone",EAI_DISCOVERED_EXTERNALS("moment-timezone"),function(){return n(t(60104))}),e("raf-pool",EAI_DISCOVERED_EXTERNALS("raf-pool"),function(){return n(t(33795))}),e("react",EAI_DISCOVERED_EXTERNALS("react"),function(){return n(t(14523))}),e("react-dom",EAI_DISCOVERED_EXTERNALS("react-dom"),function(){return n(t(35740))}),e("react-dom/client",EAI_DISCOVERED_EXTERNALS("react-dom/client"),function(){return n(t(10437))}),e("react/jsx-runtime",EAI_DISCOVERED_EXTERNALS("react/jsx-runtime"),function(){return n(t(34475))}),e("tooltip.js",EAI_DISCOVERED_EXTERNALS("tooltip.js"),function(){return n(t(92376))}),e("tracked-built-ins",EAI_DISCOVERED_EXTERNALS("tracked-built-ins"),function(){return n(t(41284))}),e("validator",EAI_DISCOVERED_EXTERNALS("validator"),function(){return n(t(44267))}),e("_eai_dyn_@sentry/browser",[],function(){return Promise.resolve().then(t.bind(t,77931))})}()},
|
|
3
|
+
e.exports=require("ember-tracked-storage-polyfill")},97818(e,r,t){e.exports=function(){var e=_eai_d,r=_eai_r
|
|
4
|
+
function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",EAI_DISCOVERED_EXTERNALS("@sentry/browser"),function(){return n(t(77931))}),e("@sentry/core",EAI_DISCOVERED_EXTERNALS("@sentry/core"),function(){return n(t(80630))}),e("@sentry/integrations",EAI_DISCOVERED_EXTERNALS("@sentry/integrations"),function(){return n(t(92549))}),e("@sentry/replay",EAI_DISCOVERED_EXTERNALS("@sentry/replay"),function(){return n(t(3586))}),e("@sentry/utils",EAI_DISCOVERED_EXTERNALS("@sentry/utils"),function(){return n(t(67342))}),e("@tryghost/admin-x-framework/hooks",EAI_DISCOVERED_EXTERNALS("@tryghost/admin-x-framework/hooks"),function(){return n(t(79220))}),e("@tryghost/color-utils",EAI_DISCOVERED_EXTERNALS("@tryghost/color-utils"),function(){return n(t(5569))}),e("@tryghost/kg-clean-basic-html",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-clean-basic-html"),function(){return n(t(86150))}),e("@tryghost/kg-converters",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-converters"),function(){return n(t(10088))}),e("@tryghost/limit-service",EAI_DISCOVERED_EXTERNALS("@tryghost/limit-service"),function(){return n(t(64528))}),e("@tryghost/nql",EAI_DISCOVERED_EXTERNALS("@tryghost/nql"),function(){return n(t(76442))}),e("@tryghost/string",EAI_DISCOVERED_EXTERNALS("@tryghost/string"),function(){return n(t(29897))}),e("@tryghost/timezone-data",EAI_DISCOVERED_EXTERNALS("@tryghost/timezone-data"),function(){return n(t(96140))}),e("element-resize-detector",EAI_DISCOVERED_EXTERNALS("element-resize-detector"),function(){return n(t(16012))}),e("ember-assign-helper/helpers/assign",EAI_DISCOVERED_EXTERNALS("ember-assign-helper/helpers/assign"),function(){return n(t(146))}),e("ember-css-transitions/modifiers/css-transition",EAI_DISCOVERED_EXTERNALS("ember-css-transitions/modifiers/css-transition"),function(){return n(t(35471))}),e("ember-keyboard/helpers/if-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/if-key.js"),function(){return n(t(65305))}),e("ember-keyboard/helpers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/on-key.js"),function(){return n(t(4111))}),e("ember-keyboard/modifiers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/modifiers/on-key.js"),function(){return n(t(98590))}),e("ember-keyboard/services/keyboard.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/services/keyboard.js"),function(){return n(t(88863))}),e("ember-modifier",EAI_DISCOVERED_EXTERNALS("ember-modifier"),function(){return n(t(7607))}),e("ember-moment/helpers/-base",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/-base"),function(){return n(t(60863))}),e("ember-moment/helpers/is-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-after"),function(){return n(t(15998))}),e("ember-moment/helpers/is-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-before"),function(){return n(t(13477))}),e("ember-moment/helpers/is-between",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-between"),function(){return n(t(22056))}),e("ember-moment/helpers/is-same",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same"),function(){return n(t(97132))}),e("ember-moment/helpers/is-same-or-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-after"),function(){return n(t(88607))}),e("ember-moment/helpers/is-same-or-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-before"),function(){return n(t(18262))}),e("ember-moment/helpers/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment"),function(){return n(t(29385))}),e("ember-moment/helpers/moment-add",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-add"),function(){return n(t(9783))}),e("ember-moment/helpers/moment-calendar",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-calendar"),function(){return n(t(83288))}),e("ember-moment/helpers/moment-diff",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-diff"),function(){return n(t(1945))}),e("ember-moment/helpers/moment-duration",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-duration"),function(){return n(t(70826))}),e("ember-moment/helpers/moment-format",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-format"),function(){return n(t(69617))}),e("ember-moment/helpers/moment-from",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from"),function(){return n(t(39794))}),e("ember-moment/helpers/moment-from-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from-now"),function(){return n(t(28699))}),e("ember-moment/helpers/moment-subtract",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-subtract"),function(){return n(t(36502))}),e("ember-moment/helpers/moment-to",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to"),function(){return n(t(93511))}),e("ember-moment/helpers/moment-to-date",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-date"),function(){return n(t(9784))}),e("ember-moment/helpers/moment-to-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-now"),function(){return n(t(82882))}),e("ember-moment/helpers/now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/now"),function(){return n(t(30189))}),e("ember-moment/helpers/unix",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/unix"),function(){return n(t(38199))}),e("ember-moment/helpers/utc",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/utc"),function(){return n(t(3567))}),e("ember-moment/services/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/services/moment"),function(){return n(t(59766))}),e("fast-deep-equal",EAI_DISCOVERED_EXTERNALS("fast-deep-equal"),function(){return n(t(52369))}),e("flexsearch",EAI_DISCOVERED_EXTERNALS("flexsearch"),function(){return n(t(1850))}),e("focus-trap",EAI_DISCOVERED_EXTERNALS("focus-trap"),function(){return n(t(26479))}),e("intersection-observer-admin",EAI_DISCOVERED_EXTERNALS("intersection-observer-admin"),function(){return n(t(72959))}),e("microdiff",EAI_DISCOVERED_EXTERNALS("microdiff"),function(){return n(t(75917))}),e("moment-timezone",EAI_DISCOVERED_EXTERNALS("moment-timezone"),function(){return n(t(60104))}),e("raf-pool",EAI_DISCOVERED_EXTERNALS("raf-pool"),function(){return n(t(33795))}),e("react",EAI_DISCOVERED_EXTERNALS("react"),function(){return n(t(14523))}),e("react-dom",EAI_DISCOVERED_EXTERNALS("react-dom"),function(){return n(t(35740))}),e("react-dom/client",EAI_DISCOVERED_EXTERNALS("react-dom/client"),function(){return n(t(10437))}),e("react/jsx-runtime",EAI_DISCOVERED_EXTERNALS("react/jsx-runtime"),function(){return n(t(34475))}),e("tooltip.js",EAI_DISCOVERED_EXTERNALS("tooltip.js"),function(){return n(t(92376))}),e("tracked-built-ins",EAI_DISCOVERED_EXTERNALS("tracked-built-ins"),function(){return n(t(41284))}),e("validator",EAI_DISCOVERED_EXTERNALS("validator"),function(){return n(t(44267))}),e("_eai_dyn_@sentry/browser",[],function(){return Promise.resolve().then(t.bind(t,77931))})}()},73044(e,r,t){e.exports=function(){_eai_d
|
|
5
5
|
var e=_eai_r
|
|
6
|
-
window.emberAutoImportDynamic=function(r){return 1===arguments.length?e("_eai_dyn_"+r):e("_eai_dynt_"+r)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(r){return e("_eai_sync_"+r)(Array.prototype.slice.call(arguments,1))},t(
|
|
6
|
+
window.emberAutoImportDynamic=function(r){return 1===arguments.length?e("_eai_dyn_"+r):e("_eai_dynt_"+r)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(r){return e("_eai_sync_"+r)(Array.prototype.slice.call(arguments,1))},t(97818)}()}},E={}
|
|
7
7
|
function i(e){var r=E[e]
|
|
8
8
|
if(void 0!==r)return r.exports
|
|
9
9
|
var t=E[e]={id:e,loaded:!1,exports:{}}
|
|
@@ -41,8 +41,8 @@ var r=(r,t)=>{var n,o,[m,E,s]=t,u=0
|
|
|
41
41
|
if(m.some(r=>0!==e[r])){for(n in E)i.o(E,n)&&(i.m[n]=E[n])
|
|
42
42
|
if(s)var a=s(i)}for(r&&r(t);u<m.length;u++)o=m[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0
|
|
43
43
|
return i.O(a)},t=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
|
|
44
|
-
t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i.O(void 0,[343,
|
|
45
|
-
var s=i.O(void 0,[343,
|
|
44
|
+
t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i.O(void 0,[343,995],()=>i(i.s=91759))
|
|
45
|
+
var s=i.O(void 0,[343,995],()=>i(i.s=73044))
|
|
46
46
|
s=i.O(s),__ember_auto_import__=s})()
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=chunk.582.
|
|
48
|
+
//# sourceMappingURL=chunk.582.0e0ede1eac12926acceb.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[
|
|
1
|
+
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[995],{54551(e,t,r){var o={"./af":33008,"./af.js":33008,"./ar":96332,"./ar-dz":1347,"./ar-dz.js":1347,"./ar-kw":53879,"./ar-kw.js":53879,"./ar-ly":78782,"./ar-ly.js":78782,"./ar-ma":71447,"./ar-ma.js":71447,"./ar-ps":20344,"./ar-ps.js":20344,"./ar-sa":24621,"./ar-sa.js":24621,"./ar-tn":80871,"./ar-tn.js":80871,"./ar.js":96332,"./az":15892,"./az.js":15892,"./be":36278,"./be.js":36278,"./bg":63660,"./bg.js":63660,"./bm":94718,"./bm.js":94718,"./bn":40731,"./bn-bd":86390,"./bn-bd.js":86390,"./bn.js":40731,"./bo":92788,"./bo.js":92788,"./br":99367,"./br.js":99367,"./bs":75216,"./bs.js":75216,"./ca":68539,"./ca.js":68539,"./cs":63181,"./cs.js":63181,"./cv":77538,"./cv.js":77538,"./cy":20195,"./cy.js":20195,"./da":696,"./da.js":696,"./de":84900,"./de-at":55528,"./de-at.js":55528,"./de-ch":19134,"./de-ch.js":19134,"./de.js":84900,"./dv":36733,"./dv.js":36733,"./el":44598,"./el.js":44598,"./en-au":38343,"./en-au.js":38343,"./en-ca":94909,"./en-ca.js":94909,"./en-gb":47872,"./en-gb.js":47872,"./en-ie":70975,"./en-ie.js":70975,"./en-il":81792,"./en-il.js":81792,"./en-in":80010,"./en-in.js":80010,"./en-nz":46041,"./en-nz.js":46041,"./en-sg":91695,"./en-sg.js":91695,"./eo":98419,"./eo.js":98419,"./es":97551,"./es-do":18901,"./es-do.js":18901,"./es-mx":96205,"./es-mx.js":96205,"./es-us":63300,"./es-us.js":63300,"./es.js":97551,"./et":59694,"./et.js":59694,"./eu":4045,"./eu.js":4045,"./fa":60486,"./fa.js":60486,"./fi":12942,"./fi.js":12942,"./fil":64392,"./fil.js":64392,"./fo":32792,"./fo.js":32792,"./fr":68019,"./fr-ca":28232,"./fr-ca.js":28232,"./fr-ch":54103,"./fr-ch.js":54103,"./fr.js":68019,"./fy":82462,"./fy.js":82462,"./ga":18871,"./ga.js":18871,"./gd":13900,"./gd.js":13900,"./gl":33460,"./gl.js":33460,"./gom-deva":91365,"./gom-deva.js":91365,"./gom-latn":92798,"./gom-latn.js":92798,"./gu":7939,"./gu.js":7939,"./he":58456,"./he.js":58456,"./hi":24156,"./hi.js":24156,"./hr":91869,"./hr.js":91869,"./hu":72520,"./hu.js":72520,"./hy-am":21087,"./hy-am.js":21087,"./id":76562,"./id.js":76562,"./is":50731,"./is.js":50731,"./it":7298,"./it-ch":444,"./it-ch.js":444,"./it.js":7298,"./ja":60546,"./ja.js":60546,"./jv":85723,"./jv.js":85723,"./ka":42579,"./ka.js":42579,"./kk":17469,"./kk.js":17469,"./km":13503,"./km.js":13503,"./kn":6706,"./kn.js":6706,"./ko":90689,"./ko.js":90689,"./ku":12199,"./ku-kmr":55512,"./ku-kmr.js":55512,"./ku.js":12199,"./ky":39243,"./ky.js":39243,"./lb":16777,"./lb.js":16777,"./lo":91278,"./lo.js":91278,"./lt":34560,"./lt.js":34560,"./lv":27669,"./lv.js":27669,"./me":38581,"./me.js":38581,"./mi":48961,"./mi.js":48961,"./mk":30143,"./mk.js":30143,"./ml":23294,"./ml.js":23294,"./mn":35092,"./mn.js":35092,"./mr":28912,"./mr.js":28912,"./ms":35783,"./ms-my":12806,"./ms-my.js":12806,"./ms.js":35783,"./mt":64518,"./mt.js":64518,"./my":27857,"./my.js":27857,"./nb":45531,"./nb.js":45531,"./ne":17906,"./ne.js":17906,"./nl":46521,"./nl-be":77147,"./nl-be.js":77147,"./nl.js":46521,"./nn":15959,"./nn.js":15959,"./oc-lnc":57999,"./oc-lnc.js":57999,"./pa-in":36922,"./pa-in.js":36922,"./pl":52719,"./pl.js":52719,"./pt":34999,"./pt-br":508,"./pt-br.js":508,"./pt.js":34999,"./ro":40804,"./ro.js":40804,"./ru":5942,"./ru.js":5942,"./sd":760,"./sd.js":760,"./se":63919,"./se.js":63919,"./si":16035,"./si.js":16035,"./sk":59173,"./sk.js":59173,"./sl":58672,"./sl.js":58672,"./sq":98555,"./sq.js":98555,"./sr":29758,"./sr-cyrl":15937,"./sr-cyrl.js":15937,"./sr.js":29758,"./ss":62973,"./ss.js":62973,"./sv":42642,"./sv.js":42642,"./sw":96545,"./sw.js":96545,"./ta":34248,"./ta.js":34248,"./te":18452,"./te.js":18452,"./tet":3506,"./tet.js":3506,"./tg":20382,"./tg.js":20382,"./th":36823,"./th.js":36823,"./tk":35370,"./tk.js":35370,"./tl-ph":49672,"./tl-ph.js":49672,"./tlh":81195,"./tlh.js":81195,"./tr":76529,"./tr.js":76529,"./tzl":94961,"./tzl.js":94961,"./tzm":27074,"./tzm-latn":82786,"./tzm-latn.js":82786,"./tzm.js":27074,"./ug-cn":66845,"./ug-cn.js":66845,"./uk":94631,"./uk.js":94631,"./ur":3848,"./ur.js":3848,"./uz":352,"./uz-latn":40928,"./uz-latn.js":40928,"./uz.js":352,"./vi":36126,"./vi.js":36126,"./x-pseudo":26510,"./x-pseudo.js":26510,"./yo":43879,"./yo.js":43879,"./zh-cn":31303,"./zh-cn.js":31303,"./zh-hk":34823,"./zh-hk.js":34823,"./zh-mo":2370,"./zh-mo.js":2370,"./zh-tw":33199,"./zh-tw.js":33199}
|
|
2
2
|
function n(e){var t=l(e)
|
|
3
3
|
return r(t)}function l(e){if(!r.o(o,e)){var t=new Error("Cannot find module '"+e+"'")
|
|
4
|
-
throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=l,e.exports=n,n.id=54551},60366(){},21901(){},
|
|
4
|
+
throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=l,e.exports=n,n.id=54551},60366(){},21901(){},91759(e,t){window._eai_r=require,window._eai_d=define},77906(e,t,r){"use strict"
|
|
5
5
|
Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})
|
|
6
6
|
const o="ConfigResponseType",n=o,l=r(44963).createQuery({dataType:o,path:"/config/"})
|
|
7
7
|
t.configDataType=n,t.hasSendingDomain=e=>{const t=e?.hostSettings?.managedEmail?.sendingDomain
|
|
@@ -574,4 +574,4 @@ if(!e)throw new Error("useFocusContext must be used within a FocusProvider")
|
|
|
574
574
|
return e},u=({fetchKoenigLexical:e,darkMode:t,children:r})=>{const[c,d]=(0,l.useState)(!1)
|
|
575
575
|
return(0,o.jsx)(i.Provider,{value:{isAnyTextFieldFocused:c,setFocusState:e=>{d(e)},fetchKoenigLexical:e,darkMode:t},children:(0,o.jsxs)(a.y,{children:[(0,o.jsx)(s.l$,{}),(0,o.jsx)(n.Ay.Provider,{children:r})]})})}}}])
|
|
576
576
|
|
|
577
|
-
//# sourceMappingURL=chunk.
|
|
577
|
+
//# sourceMappingURL=chunk.995.4b32363ab39da3e7f5d7.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ar as e}from"./index-CYyEyBYw.js";const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],y=e("circle-alert",c);export{y as C};
|
package/core/built/admin/assets/{code-editor-view-CbQIqTrK.js → code-editor-view-D-pYCcdu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,t as S,aF as N,j as t}from"./index-
|
|
1
|
+
import{r,t as S,aF as N,j as t}from"./index-CYyEyBYw.js";import{u as z,R as H,H as L,a as B}from"./settings-DeD-bmZc.js";import"./tabs-CjdKssUe.js";import"./newsletters-m6HQgU5J.js";import"./posts-D-jyPPE6.js";import"./typeof-QjJsDpFa.js";import"./tiers-4Vkr_D-L.js";import"./dropzone-B8mAoWrn.js";import"./index-x0hNfyqU.js";import"./referrers-qnXsKsuv.js";import"./select-8S9kYGSM.js";import"./chevron-up-v4_QwmnL.js";import"./underline-CjK8la2G.js";import"./toggle-group-hDsr47IB.js";import"./textarea-DzFnun0_.js";const M=["[&_.cm-editor]:bg-transparent","[&_.cm-editor]:border-transparent","[&_.cm-scroller]:font-mono","[&_.cm-scroller]:border-transparent","[&_.cm-activeLine]:bg-transparent","[&_.cm-activeLineGutter]:bg-transparent","[&_.cm-gutters]:bg-grey-75 dark:[&_.cm-gutters]:bg-grey-950","[&_.cm-gutters]:text-grey-600 dark:[&_.cm-gutters]:text-grey-500","[&_.cm-gutters]:border-grey-500 dark:[&_.cm-gutters]:border-grey-800","[&_.cm-cursor]:border-grey-900 dark:[&_.cm-cursor]:border-grey-75","dark:[&_.cm-tooltip-autocomplete.cm-tooltip_ul_li:not([aria-selected])]:bg-grey-975"].join(" "),Z=r.forwardRef(function({title:o,value:p,height:s="200px",error:a,hint:c,clearBg:g=!0,extensions:n,onChange:f,onFocus:l,onBlur:d,className:b,...x},_){const y=r.useId(),i=r.useRef(null),[v,h]=r.useState(100),[u,j]=S.useState(null),[w,R]=r.useState({crosshairCursor:!1}),{setFocusState:m}=z(),E=e=>{l?.(e),m(!0)},k=e=>{d?.(e),m(!1)};r.useEffect(()=>{Promise.all(n).then(j),R(e=>({setup:e,searchKeymap:!1}))},[n]),r.useEffect(()=>{const e=new ResizeObserver(([F])=>{h(F.contentRect.width)});return e.observe(i.current),()=>e.disconnect()},[]);const C=N("peer order-2 w-full max-w-full overflow-hidden rounded-sm border",g?"bg-transparent":"bg-grey-75",a?"border-red":"border-grey-500 dark:border-grey-800",o&&"mt-2",s==="full"&&"h-full",M,b);return t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:i}),u&&t.jsxs("div",{className:s==="full"?"h-full":"",style:{width:v},children:[t.jsx(H,{ref:_,basicSetup:w,className:C,extensions:u,height:s==="full"?"100%":s,value:p,onBlur:k,onChange:f,onFocus:E,...x}),o&&t.jsx(L,{className:"order-1 text-grey-700! peer-focus:text-black!",htmlFor:y,useLabelTag:!0,children:o}),c&&t.jsx(B,{className:"order-3",color:a?"red":"",children:c})]})]})});export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,j as e,a0 as De,z as g,t as y,d1 as Fe,cz as Me,bW as ce,d2 as ze,X as Oe,B as j,br as $e,aj as Ie,ai as de,ae as W,cj as A,ck as U,cl as Q,cm as q,cy as L,cQ as Be,D as G,v as Y,w as Z,x as J,af as He,ag as X,d3 as Ae,d4 as Ue,aM as Qe,aO as qe,b5 as Ve,aN as Ke,b7 as F,y as We,d5 as Ge,bJ as _,cx as M,e as k,bD as me,bU as S,ap as Ye,G as ee,bM as Ze,bO as Je,bP as Xe,bQ as es,aZ as ss,d6 as V,aI as ts}from"./index-CYyEyBYw.js";import{F as as,c as rs}from"./filters-D52FTE0z.js";import{d as ns,D as is,a as ls,s as B,t as os,b as cs,e as ds,g as ms,c as us,f as xs,h as hs,u as ps,i as fs,p as ue,j as js,k as gs,l as bs,m as vs,n as Ns,o as Cs}from"./filter-query-core-CM0KKIr2.js";import{C as ws,F as ys,a as _s,E as xe}from"./loader-circle-DLJd-dNm.js";import{F as se,M as ks,a as he,D as te,E as pe}from"./message-square-text-D3rsjDFR.js";import{H as ie}from"./header-StkTITw-.js";import{M as Ss}from"./main-layout-bwWvzc9B.js";import{C as Ps}from"./chevron-up-v4_QwmnL.js";import{C as fe,a as Es}from"./index-DugxKzA6.js";import{L as Ls}from"./label-Ckacdx14.js";import{R as Rs}from"./reply-DOKdAsL_.js";import{E as K}from"./empty-indicator-P3IsUguf.js";import{u as Ts,a as Ds,L as Fs}from"./virtual-list-window-EKtWZ5cP.js";import{g as Ms}from"./get-site-timezone-BDBAcjmq.js";import"./circle-alert-Dbz54fYb.js";import"./posts-D-jyPPE6.js";import"./index-DzVHlhO1.js";import"./typeof-QjJsDpFa.js";import"./inline-B4cWemrJ.js";const je=m.forwardRef(({className:s,...t},a)=>e.jsx(fe,{ref:a,className:g("grid place-content-center peer h-4 w-4 shrink-0 rounded-xs border border-primary shadow focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-focus-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...t,children:e.jsx(Es,{className:g("grid place-content-center text-current"),children:e.jsx(De,{className:"size-4"})})}));je.displayName=fe.displayName;const ge=({children:s,className:t,...a})=>e.jsx("section",{className:g("flex gap-6 flex-col p-4 lg:p-8 size-full grow",t),...a,children:s}),zs={parse(s,t){const a=ds(s);return!a||a.field!=="count.reports"?null:a.operator==="$eq"&&a.value===0?{field:t.key,operator:"is",values:["false"]}:a.operator==="$gt"&&a.value===0?{field:t.key,operator:"is",values:["true"]}:null},serialize(s){const t=s.values[0];return s.operator!=="is"?null:t==="true"?["count.reports:>0"]:t==="false"?["count.reports:0"]:null}},z=ns({status:{operators:["is"],ui:{label:"Status",type:"select",searchable:!1,hideOperatorSelect:!0},options:[{value:"published",label:"Published"},{value:"hidden",label:"Hidden"}],codec:B()},created_at:{operators:ls,ui:{label:"Date",defaultOperator:is,type:"date"},codec:cs()},body:{operators:["contains","does-not-contain"],parseKeys:["html"],ui:{label:"Text",type:"text",placeholder:"Search comment text...",defaultOperator:"contains",className:"w-full max-w-48",popoverContentClassName:"w-full max-w-48"},codec:os({field:"html"})},post:{operators:["is","is-not"],parseKeys:["post_id"],ui:{label:"Post",type:"select",searchable:!0,className:"w-full max-w-80",popoverContentClassName:"w-full max-w-[calc(100vw-32px)] max-w-80"},codec:B({field:"post_id"})},author:{operators:["is","is-not"],parseKeys:["member_id"],ui:{label:"Author",type:"select",searchable:!0,className:"w-80",popoverContentClassName:"w-80"},codec:B({field:"member_id"})},reported:{operators:["is"],parseKeys:["count.reports"],ui:{label:"Reported",type:"select",searchable:!1,hideOperatorSelect:!0},options:[{value:"true",label:"Yes"},{value:"false",label:"No"}],codec:zs}}),Os=["author","post","body","status","reported","created_at"];function $s(s){switch(s){case"author":return y.createElement(ce,{className:"size-4"});case"post":return y.createElement(Me,{className:"size-4"});case"body":return y.createElement(ks,{className:"size-4"});case"status":return y.createElement(Fe,{className:"size-4"});case"reported":return y.createElement(se,{className:"size-4"});case"created_at":return y.createElement(ws,{className:"size-4"});default:return}}function Is({postValueSource:s,memberValueSource:t,siteTimezone:a="UTC"}){return m.useMemo(()=>{const r=ms(a);return Os.map(n=>{const l=z[n];return{key:n,...l.ui,icon:$s(n),operators:us(l.operators,{labels:xs}),..."options"in l&&l.options?{options:l.options}:{},...n==="created_at"?{defaultValue:r}:{},...n==="author"?{valueSource:t}:{},...n==="post"?{valueSource:s}:{}}})},[t,s,a])}function Bs(s){return{value:s.id,label:s.name||"Unknown name",detail:s.email??"(Unknown email)"}}const Hs=hs({id:"posts.members.remote",buildBrowseSearchParams:s=>({limit:"100",order:"created_at DESC",...s?{search:s}:{}}),getMissingSelectedOption:s=>({value:s,label:`ID: ${s}`}),selectItems:s=>s?.members,useQuery:({enabled:s,searchParams:t})=>ze({enabled:s,keepPreviousData:!0,searchParams:t}),toOption:Bs});function As(){return Hs()}const Us=({filters:s,siteTimezone:t,onFiltersChange:a})=>{const r=ps(),n=As(),l=Is({memberValueSource:n,postValueSource:r,siteTimezone:t}),i=s.length>0,o=g("flex flex-row",!i&&"[grid-area:actions] pt-5 justify-start sm:justify-end sm:pt-0",i&&"col-start-1 col-end-4 row-start-3 pt-5");return e.jsx("div",{className:o,children:e.jsx(as,{addButtonIcon:i?e.jsx(ys,{}):e.jsx(_s,{}),addButtonText:i?"Add filter":"Filter",allowMultiple:!1,className:`[&>button]:order-last ${i?"[&>button]:border-none":"w-auto"}`,clearButtonClassName:"font-normal text-muted-foreground",clearButtonIcon:e.jsx(Oe,{}),clearButtonText:"Clear",fields:l,filters:s,keyboardShortcut:"f",popoverAlign:i?"start":"end",showClearButton:i,showSearchInput:!1,onChange:a})})},be=({children:s})=>e.jsxs(ie,{className:"relative pb-6! md:sticky",variant:"inline-nav",children:[e.jsx(ie.Title,{children:"Comments"}),s]}),ve=({children:s})=>e.jsx(Ss,{children:e.jsx("div",{className:"grid w-full grow",children:e.jsx("div",{className:"flex h-full flex-col","data-testid":"comments-page",children:s})})});function Qs({onClick:s,expanded:t}){return e.jsxs(j,{className:"shrink-0 gap-0.5 self-start p-0 text-base hover:bg-transparent",variant:"ghost",onClick:s,children:[t?"Show less":"Show more",t?e.jsx(Ps,{}):e.jsx($e,{})]})}function Ne({item:s}){const t=m.useRef(null),[a,r]=m.useState(!1),[n,l]=m.useState(!1);return m.useEffect(()=>{if(n)return;const i=()=>{t.current&&r(t.current.scrollHeight>t.current.clientHeight)};return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[s.html,n]),e.jsx("div",{className:"mt-1 flex flex-col gap-2",children:e.jsxs("div",{className:`flex max-w-full flex-col items-start ${s.status==="hidden"&&"opacity-50"}`,children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:s.html||""},ref:t,className:g("prose flex-1 text-base max-w-[80ch] balance leading-[1.5em] [&_*]:leading-[1.5em] [&_*]:text-base [&_*]:font-normal [&_blockquote]:border-l-[3px] [&_blockquote]:border-foreground [&_blockquote]:p-0 [&_blockquote]:pl-3 [&_blockquote_p]:mt-0 [&_a]:underline",n?"-mb-1 [&_p]:mb-[0.85em]":"line-clamp-2 [&_p]:m-0 [&_blockquote+p]:mt-1 mb-1")}),a&&e.jsx(Qs,{expanded:n,onClick:()=>l(!n)})]})})}const O="CommentsResponseType",qs=Ie({dataType:O,path:"/comments/",defaultNextPageParams:(s,t)=>s.meta?.pagination.next?{...t,page:(s.meta?.pagination.next||1).toString()}:void 0,returnData:s=>{const{pages:t}=s,a=t.flatMap(n=>n.comments),r=t[t.length-1].meta;return{comments:a,meta:r,isEnd:r?r.pagination.pages===r.pagination.page:!0}}}),Ce=s=>qs({...s,searchParams:{limit:"100",order:"created_at desc",include:"member,post,parent",...s?.searchParams}}),we=de({method:"PUT",path:({id:s})=>`/comments/${s}/`,body:({id:s})=>({comments:[{id:s,status:"hidden"}]}),invalidateQueries:{dataType:O}}),ye=de({method:"PUT",path:({id:s})=>`/comments/${s}/`,body:({id:s})=>({comments:[{id:s,status:"published"}]}),invalidateQueries:{dataType:O}}),Vs=W({dataType:O,path:s=>`/comments/${s}/`,defaultSearchParams:{include:"member,post,count.replies,count.direct_replies,count.likes,count.reports,parent,in_reply_to"}}),Ks=W({dataType:"CommentReportsResponseType",path:s=>`/comments/${s}/reports/`}),Ws=(s,t)=>Ks(s,{...t}),Gs=W({dataType:"CommentLikesResponseType",path:s=>`/comments/${s}/likes/`,defaultSearchParams:{include:"member",limit:"100",order:"created_at desc"}}),Ys=(s,t)=>Gs(s,{...t}),Zs=(s,t)=>Ce({...t,searchParams:{filter:`(parent_id:${s}+in_reply_to_id:null),in_reply_to_id:${s}`,order:"created_at asc",include:"member,post,count.direct_replies,count.likes,count.reports,parent,in_reply_to",limit:"100"}});function Js(s){const t=new Date(s);return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(t).replace(/(\d+),(\s+\d{4})/,"$1$2")}function _e({memberName:s,memberId:t,createdAt:a,isHidden:r,canComment:n,onAuthorClick:l,postTitle:i,onPostClick:o,className:c}){return e.jsxs("div",{className:g("flex items-baseline gap-4",c),children:[e.jsxs("div",{className:g("mb-1 flex min-w-0 items-center gap-x-1 text-sm",r&&"opacity-50"),children:[e.jsx("div",{className:"whitespace-nowrap",children:t&&l?e.jsx(j,{className:"flex h-auto items-center gap-1.5 truncate p-0 font-semibold text-primary hover:opacity-70",variant:"link",onClick:l,children:s||"Unknown"}):e.jsx("span",{className:"block truncate font-semibold",children:s||"Unknown"})}),n===!1&&e.jsx(A,{children:e.jsxs(U,{children:[e.jsx(Q,{asChild:!0,children:e.jsx("span",{"data-testid":"commenting-disabled-indicator",children:e.jsx(he,{className:"size-3.5 text-muted-foreground"})})}),e.jsx(q,{children:"Comments disabled"})]})}),e.jsx(te,{className:"shrink-0 text-muted-foreground/50",size:16}),e.jsx("div",{className:"shrink-0 whitespace-nowrap",children:a&&e.jsx(A,{children:e.jsxs(U,{children:[e.jsx(Q,{asChild:!0,children:e.jsx("span",{className:"cursor-default text-sm text-muted-foreground",children:L(a)})}),e.jsx(q,{children:Js(a)})]})})}),i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"shrink-0 text-muted-foreground",children:"on"}),e.jsx("div",{className:"min-w-0 truncate",children:o?e.jsx(j,{className:"block h-auto w-full cursor-pointer truncate p-0 text-left font-medium text-gray-800 hover:opacity-70 dark:text-gray-400",variant:"link",onClick:o,children:i}):e.jsx("span",{className:"font-medium text-gray-800 dark:text-gray-400",children:i})})]})]}),r&&e.jsx(Be,{variant:"secondary",children:"Hidden"})]})}function Xs({open:s,memberName:t,onOpenChange:a,onConfirm:r}){const[n,l]=m.useState(!1),i=c=>{c||l(!1),a(c)},o=()=>{r(n),l(!1)};return e.jsx(G,{open:s,onOpenChange:i,children:e.jsxs(Y,{className:"gap-5",children:[e.jsxs(Z,{children:[e.jsx(J,{children:"Disable comments"}),e.jsxs(He,{children:[t||"This member"," won't be able to comment in the future. You can re-enable commenting anytime."]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(je,{checked:n,id:"hide-comments",onCheckedChange:c=>l(c===!0)}),e.jsx(Ls,{htmlFor:"hide-comments",children:"Hide all previous comments"})]}),e.jsxs(X,{children:[e.jsx(j,{variant:"outline",onClick:()=>i(!1),children:"Cancel"}),e.jsx(j,{onClick:o,children:"Disable comments"})]})]})})}function ke({comment:s}){const{mutate:t}=Ae(),{mutate:a}=Ue(),[r,n]=m.useState(!1),{id:l,post:i,member:o}=s,c=i?.url,u=o?.id,p=o?.can_comment,b=h=>{u&&(t({id:u,reason:`Disabled from comment ${l}`,hideComments:h}),n(!1))},x=()=>{u&&a({id:u})};return e.jsxs(e.Fragment,{children:[e.jsxs(Qe,{children:[e.jsx(qe,{asChild:!0,children:e.jsx(j,{className:"relative z-10 text-gray-800 hover:bg-secondary [&_svg]:size-4",size:"sm",variant:"ghost",children:e.jsx(Ve,{})})}),e.jsxs(Ke,{align:"start",children:[c&&e.jsx(F,{asChild:!0,children:e.jsxs("a",{href:`${c}#ghost-comments-${l}`,rel:"noopener noreferrer",target:"_blank",children:[e.jsx(We,{className:"size-4"}),"View on post"]})}),u&&e.jsx(F,{asChild:!0,children:e.jsxs("a",{href:`#/members/${u}`,children:[e.jsx(ce,{className:"size-4"}),"View member"]})}),u&&(p!==!1?e.jsxs(F,{onClick:()=>n(!0),children:[e.jsx(he,{className:"size-4"}),"Disable commenting"]}):e.jsxs(F,{onClick:x,children:[e.jsx(Ge,{className:"size-4"}),"Enable commenting"]}))]})]}),e.jsx(Xs,{memberName:o?.name,open:r,onConfirm:b,onOpenChange:n})]})}function et({comment:s,open:t,onOpenChange:a}){const{data:r,isLoading:n}=Ys(s.id,{enabled:t}),l=r?.comment_likes??[],i=s.count?.likes??0,o=i-l.length;return e.jsx(G,{open:t,onOpenChange:a,children:e.jsxs(Y,{"aria-describedby":void 0,children:[e.jsx(Z,{children:e.jsxs(J,{children:[i," ",i===1?"like":"likes"]})}),e.jsx("div",{className:"overflow-hidden rounded-md border p-3",children:e.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[e.jsx(_,{className:"shrink-0",email:s.member?.email,name:s.member?.name,src:s.member?.avatar_image}),e.jsxs("div",{className:"flex min-w-0 flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1 text-sm",children:[e.jsx("span",{className:"shrink-0 font-semibold",children:s.member?M(s.member):"Deleted member"}),e.jsx(te,{className:"shrink-0 text-muted-foreground/50",size:16}),e.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.created_at&&L(s.created_at)}),e.jsx("span",{className:"shrink-0 text-muted-foreground",children:"on"}),e.jsx("span",{className:"min-w-0 truncate font-medium text-gray-800 dark:text-gray-400",children:s.post?.title||"Unknown post"})]}),e.jsx("div",{dangerouslySetInnerHTML:{__html:s.html||""},className:"prose mt-2 line-clamp-2 text-sm [&_*]:text-sm [&_*]:leading-[1.5em] [&_p]:m-0"})]})]})}),e.jsx("div",{className:"-mx-1 max-h-64 overflow-y-auto px-1",children:n?e.jsx("div",{className:"flex justify-center py-4",children:e.jsx(k,{size:"md"})}):e.jsxs("div",{className:"flex flex-col gap-3 pb-1",children:[l.map(c=>e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsx(_,{email:c.member?.email,name:c.member?.name,src:c.member?.avatar_image}),e.jsx("div",{className:"absolute -right-0.5 -bottom-0.5 flex size-4 items-center justify-center rounded-full bg-pink-500 text-white",children:e.jsx(me,{className:"size-2.5",fill:"currentColor"})})]}),e.jsx("span",{className:"font-medium",children:c.member?M(c.member):"Deleted member"})]}),e.jsx("span",{className:"shrink-0 text-sm text-muted-foreground",children:L(c.created_at)})]},c.id)),o>0&&e.jsxs("div",{className:"pt-1 text-center text-sm text-muted-foreground",children:["and ",o," more"]})]})}),e.jsx(X,{children:e.jsx(j,{onClick:()=>a(!1),children:"OK"})})]})})}function st({comment:s,open:t,onOpenChange:a}){const{data:r,isLoading:n}=Ws(s.id,{enabled:t}),l=r?.comment_reports??[],i=s.count?.reports??l.length;return e.jsx(G,{open:t,onOpenChange:a,children:e.jsxs(Y,{"aria-describedby":void 0,children:[e.jsx(Z,{children:e.jsxs(J,{children:[i," ",i===1?"report":"reports"]})}),e.jsx("div",{className:"overflow-hidden rounded-md border p-3",children:e.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[e.jsx(_,{className:"shrink-0",email:s.member?.email,name:s.member?.name,src:s.member?.avatar_image}),e.jsxs("div",{className:"flex min-w-0 flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1 text-sm",children:[e.jsx("span",{className:"shrink-0 font-semibold",children:s.member?M(s.member):"Deleted member"}),e.jsx(te,{className:"shrink-0 text-muted-foreground/50",size:16}),e.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.created_at&&L(s.created_at)}),e.jsx("span",{className:"shrink-0 text-muted-foreground",children:"on"}),e.jsx("span",{className:"min-w-0 truncate font-medium text-gray-800 dark:text-gray-400",children:s.post?.title||"Unknown post"})]}),e.jsx("div",{dangerouslySetInnerHTML:{__html:s.html||""},className:"prose mt-2 line-clamp-2 text-sm [&_*]:text-sm [&_*]:leading-[1.5em] [&_p]:m-0"})]})]})}),e.jsx("div",{className:"-mx-1 max-h-64 overflow-y-auto px-1",children:n?e.jsx("div",{className:"flex justify-center py-4",children:e.jsx(k,{size:"md"})}):e.jsx("div",{className:"flex flex-col gap-3 pb-1",children:l.map(o=>e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsx(_,{email:o.member?.email,name:o.member?.name,src:o.member?.avatar_image}),e.jsx("div",{className:"absolute -right-0.5 -bottom-0.5 flex size-4 items-center justify-center rounded-full bg-red text-white",children:e.jsx(se,{className:"size-2.5",fill:"currentColor"})})]}),e.jsx("span",{className:"font-medium",children:o.member?M(o.member):"Deleted member"})]}),e.jsx("span",{className:"shrink-0 text-sm text-muted-foreground",children:L(o.created_at)})]},o.id))})}),e.jsx(X,{children:e.jsx(j,{onClick:()=>a(!1),children:"OK"})})]})})}function H({icon:s,count:t,label:a,to:r,onClick:n,className:l,testId:i}){const o=g("flex items-center gap-1 text-xs text-gray-800",l),c=e.jsxs(e.Fragment,{children:[s,e.jsx("span",{children:Ye(t)})]}),u=r||n;return e.jsx(A,{children:e.jsxs(U,{children:[e.jsx(Q,{asChild:!0,children:r?e.jsx(ee,{className:g(o,"cursor-pointer hover:opacity-70"),"data-testid":i,to:r,onClick:p=>{p.stopPropagation()},children:c}):n?e.jsx("button",{className:g(o,"cursor-pointer hover:opacity-70"),"data-testid":i,type:"button",onClick:p=>{p.stopPropagation(),n()},children:c}):e.jsx("div",{className:o,"data-testid":i,children:c})}),e.jsx(q,{children:u?`View ${a.toLowerCase()}`:a})]})})}function ae(s,t){if(!t)return;const a=new URLSearchParams(s);return a.set("thread",`is:${t}`),`?${a.toString()}`}function Se({comment:s,className:t}){const[a]=S(),[r,n]=m.useState(!1),[l,i]=m.useState(!1),o=ae(a,s.id),c=s.count?.direct_replies??s.count?.replies??s.replies?.length??0,u=s.count?.likes??0,p=s.count?.reports??0,b=c>0,x=u>0,h=p>0;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:g("flex items-center gap-6",t),children:[e.jsx(H,{count:c,icon:e.jsx(Rs,{size:16,strokeWidth:1.5}),label:"Replies",testId:"replies-metric",to:b?o:void 0}),e.jsx(H,{count:u,icon:e.jsx(me,{size:16,strokeWidth:1.5}),label:"Likes",onClick:x?()=>n(!0):void 0}),e.jsx(H,{className:h?"font-semibold text-red":void 0,count:p,icon:e.jsx(se,{size:16,strokeWidth:1.5}),label:"Reports",onClick:h?()=>i(!0):void 0})]}),e.jsx(et,{comment:s,open:r,onOpenChange:n}),e.jsx(st,{comment:s,open:l,onOpenChange:i})]})}function tt({hasReplies:s}){return s?e.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-muted-foreground/20 from-70% to-transparent","data-testid":"replies-line"}):null}function Pe({comment:s,isReply:t=!1,isSelectedComment:a=!1,selectedCommentId:r}){const[n]=S(),{mutate:l}=we(),{mutate:i}=ye(),o=(s.replies?.length??0)>0||(s.count?.direct_replies??s.count?.replies??0)>0,c=!o||t?"mb-7":"mb-0";return e.jsxs("div",{className:`flex w-full flex-row ${c}`,children:[e.jsxs("div",{className:"mr-2 flex shrink-0 flex-col items-center justify-start md:mr-3",children:[e.jsx(_,{className:g("mb-3 size-6 md:mb-4 md:size-8",s.status==="hidden"&&"opacity-50"),email:s.member?.email,name:s.member?.name,src:s.member?.avatar_image}),e.jsx(tt,{hasReplies:o&&!t})]}),e.jsx("div",{className:"grow",children:e.jsxs("div",{className:"w-full","data-testid":`comment-thread-row-${s.id}`,children:[e.jsxs("div",{className:"flex min-w-0 flex-col",children:[e.jsx(_e,{canComment:s.member?.can_comment,createdAt:s.created_at,isHidden:s.status==="hidden",memberId:s.member?.id,memberName:s.member?.name}),s.in_reply_to_snippet&&a&&e.jsxs("div",{className:`mb-1 line-clamp-1 text-sm ${s.status==="hidden"&&"opacity-50"}`,children:[e.jsx("span",{className:"text-muted-foreground",children:"Replied to:"})," ",e.jsx(ee,{className:"text-sm font-normal text-muted-foreground hover:text-foreground","data-testid":"replied-to-link",to:ae(n,s.in_reply_to_id||s.parent_id)||"",onClick:u=>{u.stopPropagation()},children:s.in_reply_to_snippet})]}),e.jsx(Ne,{item:s}),e.jsxs("div",{className:"mt-4 flex flex-row flex-wrap items-center gap-3",children:[s.status==="published"&&e.jsxs(j,{className:"text-gray-800",size:"sm",variant:"outline",onClick:()=>l({id:s.id}),children:[e.jsx(pe,{}),e.jsx("span",{className:"max-md:hidden",children:"Hide"})]}),s.status==="hidden"&&e.jsxs(j,{className:"text-gray-800",size:"sm",variant:"outline",onClick:()=>i({id:s.id}),children:[e.jsx(xe,{}),e.jsx("span",{className:"max-md:hidden",children:"Show"})]}),e.jsx(Se,{comment:s}),e.jsx(ke,{comment:s})]})]}),o&&s.replies&&e.jsx("div",{className:"mt-7 mb-4 -ml-2 pl-2 md:mt-8 md:mb-0 md:-ml-3 md:pl-3",children:s.replies.map(u=>e.jsx(Pe,{comment:u,isReply:!0,selectedCommentId:r},u.id))})]})})]})}const at=({selectedComment:s,replies:t,selectedCommentId:a,fetchNextPage:r,hasNextPage:n,isFetchingNextPage:l})=>{const i={...s,replies:t};return e.jsxs("div",{className:"flex flex-col","data-testid":"comment-thread-list",children:[e.jsx(Pe,{comment:i,isSelectedComment:!0,selectedCommentId:a}),n&&e.jsx("div",{className:"flex justify-center pb-4",children:e.jsx(j,{disabled:l,variant:"outline",onClick:()=>r(),children:l?e.jsxs(e.Fragment,{children:[e.jsx(k,{size:"sm"}),"Loading..."]}):"Load more replies"})})]})},rt=({commentId:s,open:t,onOpenChange:a})=>{const{data:r,isLoading:n,isError:l,fetchNextPage:i,hasNextPage:o,isFetchingNextPage:c}=Zs(s??"",{enabled:t&&!!s}),{data:u,isLoading:p,isError:b}=Vs(s??"",{enabled:t&&!!s}),x=n||p,h=b||l&&!u,f=u?.comments?.[0],v=r?.comments||[];return e.jsx(Ze,{open:t,onOpenChange:a,children:e.jsxs(Je,{className:"overflow-y-auto px-6 pt-0 sm:max-w-[600px]",children:[e.jsx(Xe,{className:"sticky top-0 z-40 -mx-6 bg-background/60 p-6 backdrop-blur",children:e.jsx(es,{className:"text-md",children:"Thread"})}),f?.post&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"line-clamp-1 text-xl font-semibold text-foreground",children:f.post.title}),f.post.excerpt&&e.jsx("p",{className:"mt-1 line-clamp-2 text-sm text-muted-foreground",children:f.post.excerpt})]}),f.post.feature_image&&e.jsx("img",{alt:f.post.title||"Post feature image",className:"hidden aspect-video h-18 shrink-0 rounded object-cover lg:block",src:f.post.feature_image})]}),e.jsx(ss,{className:"-mx-6 my-6 w-auto"})]}),e.jsx("div",{children:x?e.jsx("div",{className:"flex h-full items-center justify-center py-8",children:e.jsx(k,{size:"lg"})}):h||!f?e.jsx("div",{className:"flex h-full items-center justify-center py-8",children:e.jsx(K,{actions:e.jsx(j,{variant:"outline",onClick:()=>a(!1),children:"Back to comments"}),description:"This thread may have been deleted or doesn't exist.",title:"Thread not found",children:e.jsx(V,{})})}):e.jsx(at,{fetchNextPage:i,hasNextPage:o,isFetchingNextPage:c,replies:v,selectedComment:f,selectedCommentId:s??""})})]})})},le=({height:s})=>e.jsx("div",{"aria-hidden":"true",className:"flex",children:e.jsx("div",{className:"flex",style:{height:s}})}),nt=m.forwardRef(function(t,a){return e.jsx("div",{ref:a,...t,"aria-hidden":"true",className:"relative flex flex-col",children:e.jsx("div",{className:"relative z-10 h-24 animate-pulse",children:e.jsx("div",{className:"h-full rounded-md bg-muted","data-testid":"loading-placeholder"})})})});function it({items:s,totalItems:t,hasNextPage:a,isFetchingNextPage:r,fetchNextPage:n,resetKey:l,onAddFilter:i,isLoading:o}){const c=m.useRef(null),{visibleItemCount:u,canLoadMore:p,loadMore:b}=Ts(t,{resetKey:l}),[x,h]=S(),[f,v]=m.useState(!1),[P,E]=m.useState(null),{mutate:$}=we(),{mutate:R}=ye(),T=N=>{if(v(N),!N){const C=new URLSearchParams(x);C.delete("thread"),h(C,{replace:!0})}};m.useEffect(()=>{const N=x.get("thread");if(N){const C=N.match(/^is:(.+)$/);if(C&&C[1]){const d=C[1];E(d),v(!0)}else v(!1),E(null)}else v(!1),E(null)},[x]),fs({parentRef:c,isLoading:o});const{visibleItems:I,spaceBefore:D,spaceAfter:w}=Ds({items:s,totalItems:u,hasNextPage:a,isFetchingNextPage:r,fetchNextPage:n,parentRef:c});return e.jsxs("div",{ref:c,className:"overflow-hidden",children:[e.jsx("div",{className:"flex flex-col","data-testid":"comments-list",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx(le,{height:D}),I.map(({key:N,virtualItem:C,item:d,props:ne})=>C.index>s.length-1?e.jsx(nt,{...ne},N):e.jsxs("div",{...ne,className:"grid w-full grid-cols-1 items-start justify-between gap-4 border-b p-3 hover:bg-muted/50 md:p-5 lg:grid-cols-[minmax(0,1fr)_144px]","data-testid":"comment-list-row",onClick:()=>{f&&T(!1)},children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(_,{className:g("size-6 md:size-8",d.status==="hidden"&&"opacity-50"),email:d.member?.email,name:d.member?.name,src:d.member?.avatar_image}),e.jsxs("div",{className:"flex min-w-0 flex-col",children:[e.jsx(_e,{canComment:d.member?.can_comment,createdAt:d.created_at,isHidden:d.status==="hidden",memberId:d.member?.id,memberName:d.member?.name,postTitle:d.post?.title,onAuthorClick:d.member?.id?()=>i("author",d.member.id):void 0,onPostClick:d.post?.id?()=>i("post",d.post.id):void 0}),d.in_reply_to_snippet&&e.jsxs("div",{className:`mb-1 line-clamp-1 max-w-3xl text-sm ${d.status==="hidden"&&"opacity-50"}`,children:[e.jsx("span",{className:"text-muted-foreground",children:"Replied to:"})," ",e.jsx(ee,{className:"text-sm font-normal text-muted-foreground hover:text-foreground","data-testid":"replied-to-link",to:ae(x,d.in_reply_to_id||d.parent_id)||"",onClick:Te=>{Te.stopPropagation()},children:d.in_reply_to_snippet})]}),e.jsx(Ne,{item:d}),e.jsxs("div",{className:"mt-4 flex flex-row flex-nowrap items-center gap-3",children:[d.status==="published"&&e.jsxs(j,{className:"text-foreground",size:"sm",variant:"outline",onClick:()=>$({id:d.id}),children:[e.jsx(pe,{}),"Hide"]}),d.status==="hidden"&&e.jsxs(j,{className:"text-foreground",size:"sm",variant:"outline",onClick:()=>R({id:d.id}),children:[e.jsx(xe,{}),"Show"]}),e.jsx(Se,{className:"ml-2",comment:d}),e.jsx(ke,{comment:d})]})]})]}),e.jsx("div",{children:d.post?.feature_image?e.jsx("img",{alt:d.post.title||"Post feature image",className:`hidden aspect-video w-36 rounded object-cover lg:block ${d.status==="hidden"&&"opacity-50"}`,src:d.post.feature_image}):null})]},N)),e.jsx(le,{height:w})]})}),p&&e.jsx(Fs,{isLoading:r,onClick:b}),e.jsx(rt,{commentId:P,open:f,onOpenChange:T})]})}const lt=Ns(z,"date");function Ee(s,t){return Array.isArray(s.$and)?s.$and.flatMap(a=>Ee(a,t)):vs([s],z,t)}function ot(s,t){const a=ue(s??"");return a?bs(Ee(a,t)):[]}function ct(s){const t=ue(s??"");return t?js(t,lt):!1}function re(s,t){return gs(s,z,t)}const Le=["status","created_at","body","post","author","reported"],dt={is_not:"is-not",not_contains:"does-not-contain",before:"is-less",after:"is-greater",on_or_before:"is-or-less",on_or_after:"is-or-greater"};function mt(s){const t=s.indexOf(":");if(t<=0)return null;const a=s.substring(0,t),r=s.substring(t+1);return r?{operator:dt[a]??a,value:r}:null}function ut(s){const t=[];for(const[a,r]of s.entries()){if(!Le.includes(a))continue;const n=mt(r);n&&t.push({id:`${a}:${t.length+1}`,field:a,operator:n.operator,values:[n.value]})}return t}function Re(s){Le.forEach(t=>s.delete(t))}function oe(s,t,a){const r=new URLSearchParams(s),n=re(t,a);return r.delete("filter"),Re(r),n&&r.set("filter",n),r}function xt(s,t,a=!t){return!!s&&a&&!t&&ct(s)}function ht(s){const[t,a]=S(),r=m.useRef(null),n=m.useMemo(()=>t.get("filter")??void 0,[t]),l=m.useMemo(()=>t.toString(),[t]),i=m.useMemo(()=>n!==void 0?ot(n,s):ut(t),[n,t,s]),[o,c]=m.useState(i),u=m.useMemo(()=>re(o,s),[o,s]);m.useEffect(()=>{l!==r.current&&(c(i),r.current=l)},[l,i]),m.useEffect(()=>{if(r.current!==null&&l!==r.current)return;const x=oe(t,o,s),h=x.toString();h!==l&&(r.current=h,a(x,{replace:!0}))},[l,o,t,a,s]);const p=m.useCallback((x,h={})=>{const f=typeof x=="function"?x(o):x,v=oe(t,f,s),P=h.replace??!0;c(f),r.current=v.toString(),a(v,{replace:P})},[o,t,a,s]),b=m.useCallback(({replace:x=!0}={})=>{const h=new URLSearchParams(t);h.delete("filter"),Re(h),c([]),r.current=h.toString(),a(h,{replace:x})},[t,a]);return{filters:o,nql:u,setFilters:p,clearFilters:b}}function pt(s){return s.get("id")?.match(/^is:(.+)$/)?.[1]}const ft=({timezone:s,singleCommentId:t})=>{const[a,r]=S(),{filters:n,nql:l,setFilters:i}=ht(s),o=m.useCallback((R,T,I="is")=>{const D=[...n.filter(C=>C.field!==R),rs(R,I,[T])];if(!t){i(D,{replace:!1});return}const w=new URLSearchParams(a),N=re(D,s);w.delete("id"),w.delete("filter"),N&&w.set("filter",N),r(w,{replace:!1})},[n,a,i,r,t,s]),c=m.useMemo(()=>t?`id:${Cs(t)}`:l,[l,t]),u=m.useCallback(()=>{r(new URLSearchParams,{replace:!1})},[r]),{data:p,isError:b,isFetching:x,isFetchingNextPage:h,isRefetching:f,fetchNextPage:v,hasNextPage:P}=Ce({searchParams:{...c?{filter:c}:{}},keepPreviousData:!0}),E=x&&!h&&!f,$=c??"";return e.jsxs(ve,{children:[e.jsx(be,{children:!t&&e.jsx(Us,{filters:n,siteTimezone:s,onFiltersChange:i})}),e.jsx(ge,{children:E?e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(k,{size:"lg"})}):b?e.jsxs("div",{className:"mb-16 flex h-full flex-col items-center justify-center",children:[e.jsx("h2",{className:"mb-2 text-xl font-medium",children:"Error loading comments"}),e.jsx("p",{className:"mb-4 text-muted-foreground",children:"Please reload the page to try again"}),e.jsx(j,{onClick:()=>window.location.reload(),children:"Reload page"})]}):p?.comments.length?e.jsxs(e.Fragment,{children:[e.jsx(it,{fetchNextPage:v,hasNextPage:P,isFetchingNextPage:h,isLoading:x&&!h,items:p?.comments??[],resetKey:$,totalItems:p?.meta?.pagination?.total??0,onAddFilter:o}),t&&e.jsx("div",{className:"flex justify-center py-8",children:e.jsx(j,{variant:"outline",onClick:u,children:"Show all comments"})})]}):e.jsx("div",{className:"flex h-full items-center justify-center",children:t?e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(K,{title:"Comment not found",children:e.jsx(V,{})}),e.jsx(j,{className:"mt-4",variant:"outline",onClick:u,children:"Show all comments"})]}):e.jsx(K,{title:"No comments yet",children:e.jsx(V,{})})})})]})},Ot=()=>{const[s]=S(),{data:t,isLoading:a}=ts({}),r=m.useMemo(()=>pt(s),[s]),n=s.get("filter")??void 0;if(!r&&xt(n,!!t,a))return e.jsxs(ve,{children:[e.jsx(be,{}),e.jsx(ge,{children:e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(k,{size:"lg"})})})]});const i=Ms(t?.settings??[]);return e.jsx(ft,{singleCommentId:r,timezone:i})};export{Ot as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./index-
|
|
1
|
+
import{j as o}from"./index-CYyEyBYw.js";import{M as h}from"./mail-B97w28e2.js";const a=({defaultSourceIconUrl:e,displayName:s,iconSrc:t})=>o.jsx(o.Fragment,{children:s.trim().toLowerCase().endsWith("newsletter")?o.jsx(h,{"aria-label":"Newsletter",className:"size-4 text-muted-foreground"}):o.jsx("img",{alt:"",className:"size-4",src:t,onError:c=>{c.currentTarget.src=e}})}),r={POSTS:"posts",PAGES:"pages",POSTS_AND_PAGES:"posts_and_pages",SOURCES:"sources"},p=e=>{switch(e){case r.POSTS:return"Top posts";case r.PAGES:return"Top pages";case r.SOURCES:return"Top sources";default:return"Top content"}},i=(e,s,t)=>{switch(e){case r.POSTS:return`Your highest viewed posts ${t(s)}`;case r.PAGES:return`Your highest viewed pages ${t(s)}`;case r.POSTS_AND_PAGES:return`Your highest viewed posts or pages ${t(s)}`;case r.SOURCES:return`How readers found your site ${t(s)}`;default:return`Your highest viewed posts or pages ${t(s)}`}},u=(e,s,t)=>{switch(e){case r.POSTS:return`Which posts drove the most growth ${t(s)}`;case r.PAGES:return`Which pages drove the most growth ${t(s)}`;case r.POSTS_AND_PAGES:return`Which posts or pages drove the most growth ${t(s)}`;case r.SOURCES:return`Which sources drove the most growth ${t(s)}`;default:return`Which posts drove the most growth ${t(s)}`}};export{r as C,a as S,i as a,u as b,p as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ar as c}from"./index-
|
|
1
|
+
import{ar as c}from"./index-CYyEyBYw.js";const e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],t=c("copy",e);export{t as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r,j as i,z as o}from"./index-
|
|
1
|
+
import{t as r,j as i,z as o}from"./index-CYyEyBYw.js";const l=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("flex flex-col items-stretch",e),...t,children:a}));l.displayName="DataList";const n=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("flex uppercase items-center justify-between gap-2 border-b p-2 text-xs tracking-wide font-medium text-muted-foreground",e),...t,children:a}));n.displayName="DataListHeader";const p=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("",e),...t,children:a}));p.displayName="DataListHead";const u=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("flex flex-col items-stretch pt-1.5",e),...t,children:a}));u.displayName="DataListBody";const c=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("group/row py-0.5 relative flex items-center justify-between gap-3 before:absolute before:z-0 before:-inset-x-0.5 before:inset-y-0.5 before:bg-muted/60 before:opacity-0 hover:before:opacity-100 before:rounded-[6px]",e),...t,children:a}));c.displayName="DataListRow";const m=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("absolute inset-x-0 inset-y-1 z-0 origin-left rounded-[4px] bg-state-info/10 group-hover/row:bg-state-info/25 dark:bg-state-info/20 dark:group-hover/row:bg-state-info/35 transition-all",e),...t,children:a}));m.displayName="DataListBar";const f=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("text-sm p-2 font-medium relative z-10 flex min-w-0 max-w-[calc(100%-32px)] items-center transition-[max-width] duration-300 ease-in-out group-hover/datalist:max-w-[calc(100%-100px)]",e),...t,children:a}));f.displayName="DataListItemContent";const x=r.forwardRef(({children:a,className:e,...t},s)=>{const d=r.Children.toArray(a).length>1;return i.jsx("div",{ref:s,className:o("z-10 flex items-center",d&&'[&>[data-type="value-abs"]]:transition-transform [&>[data-type="value-abs"]]:duration-300 [&>[data-type="value-abs"]]:group-hover/datalist:-translate-x-14',d&&'[&>[data-type="value-perc"]]:invisible [&>[data-type="value-perc"]]:absolute [&>[data-type="value-perc"]]:right-0 [&>[data-type="value-perc"]]:translate-x-14 [&>[data-type="value-perc"]]:opacity-0 [&>[data-type="value-perc"]]:transition-all [&>[data-type="value-perc"]]:duration-300 [&>[data-type="value-perc"]]:group-hover/datalist:visible [&>[data-type="value-perc"]]:group-hover/datalist:translate-x-0 [&>[data-type="value-perc"]]:group-hover/datalist:opacity-100',e),...t,children:a})});x.displayName="DataListItemValue";const y=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("z-10 px-2 text-sm font-mono",e),"data-type":"value-abs",...t,children:a}));y.displayName="DataListItemValueAbs";const v=r.forwardRef(({children:a,className:e,...t},s)=>i.jsx("div",{ref:s,className:o("px-3 text-sm font-mono text-muted-foreground",e),"data-type":"value-perc",...t,children:a}));v.displayName="DataListItemValuePerc";export{l as D,u as a,c as b,m as c,f as d,x as e,y as f,v as g,n as h,p as i};
|
package/core/built/admin/assets/{deleted-feed-item-DupAEk4P.js → deleted-feed-item-ZBLfgRkK.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,j as e,B as y,e as b,bB as j,bC as p,by as v,g as w,A as R,bt as N}from"./index-
|
|
1
|
+
import{r as u,j as e,B as y,e as b,bB as j,bC as p,by as v,g as w,A as R,bt as N}from"./index-CYyEyBYw.js";import{T}from"./trash-DCVuk7ZX.js";const M=({count:t,onClick:l,variant:d="default",preserveScroll:r=!0,loading:c=!1})=>{const n=u.useRef(null),i=()=>{if(t&&t>0)return`Show ${t} more ${t===1?"reply":"replies"}`;switch(d){case"expand":return"Show replies";case"loadMore":return"Show more replies";default:return"Show replies"}},a=()=>{if(r){const s=document.querySelector("[data-scrollable-container]"),o=s?s.scrollTop:window.scrollY;l(),setTimeout(()=>{s?s.scrollTop=o:window.scrollTo(0,o)},0)}else l()};return e.jsxs("div",{ref:n,className:"mt-[-7px] flex items-center pb-3",children:[e.jsxs("div",{className:"flex w-10 flex-col items-center justify-center gap-1",children:[e.jsx("div",{className:"size-0.5 rounded-sm bg-gray-300"}),e.jsx("div",{className:"size-0.5 rounded-sm bg-gray-300"}),e.jsx("div",{className:"size-0.5 rounded-sm bg-gray-300"})]}),e.jsx(y,{className:"text-sm font-medium text-blue-600 hover:text-blue-800",variant:"ghost",onClick:s=>{s.preventDefault(),s.stopPropagation(),s.target.blur(),a()},children:c?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(b,{size:"sm"}),e.jsx("span",{children:"Loading..."})]}):i()})]})};function A(t,l={}){const{includeAncestors:d=!1}=l,{data:r,isLoading:c,loadMoreChildren:n,loadMoreChildReplies:i,hasMoreChildren:a,hasMoreChildReplies:s}=j("index",t),o=d?r?.ancestors?.chain?.map(p)||[]:[],x=r?.post?p(r.post):void 0,h=(r?.children??[]).map(m=>{const f=p(m.post),g=m.chain?m.chain.map(p):[];return{mainReply:f,chain:g}});return{threadParents:o,post:x,processedReplies:h,isLoading:c,loadMoreChildren:n,loadMoreChildReplies:i,hasMoreChildren:a,hasMoreChildReplies:s}}const z=({object:t,onReply:l,onReplyError:d,className:r,...c})=>{const{data:n}=v("index"),[i,a]=u.useState(!1);if(!n)return null;const s=t.attributedTo;let o="Reply...";return s?.preferredUsername&&s?.id&&(o=`Reply to ${w(s)}...`),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`flex w-full cursor-pointer gap-x-3 py-6 ${r||""}`,onClick:()=>a(!0),...c,children:[e.jsx(R,{author:n}),e.jsx("div",{className:"flex w-full items-center",children:e.jsx("div",{className:"w-full text-[1.5rem] text-gray-500 transition-colors dark:text-gray-400",children:o})})]}),i&&e.jsx(N,{open:i,replyTo:{object:t,actor:t.attributedTo},onOpenChange:x=>{a(x)},onReply:()=>{l?.(),a(!1)},onReplyError:()=>{d?.()}})]})},B=({last:t})=>e.jsxs("div",{className:"relative mt-[-5px] py-5",children:[e.jsxs("div",{className:"flex h-12 grow items-center gap-2 rounded-lg border border-gray-200 p-2 px-[10px] text-gray-600",children:[e.jsx(T,{size:18,strokeWidth:1.25}),"This post has been deleted"]}),!t&&e.jsx("div",{className:"absolute top-[70px] bottom-0 left-[18px] z-0 mb-[-13px] w-[2px] rounded-sm bg-gray-200"})]});export{z as A,B as D,M as S,A as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ae as vr,ai as Xe,aq as yr,ad as br,ak as hr,cG as Dr,cH as z,cI as M,cJ as Le,cK as $e,ch as Ar,r as l,t as Or,z as wr,j as Ke}from"./index-CYyEyBYw.js";import{P as f}from"./index-x0hNfyqU.js";const N="OffersResponseType",Ot=()=>{const e=Dr();return()=>e.invalidateQueries([N])},wt=br({dataType:N,path:"/offers/",defaultSearchParams:{}}),Et=vr({dataType:N,path:e=>`/offers/${e}/`}),Ft=Xe({method:"PUT",path:e=>`/offers/${e.id}/`,body:e=>({offers:[e]}),updateQueries:{dataType:N,emberUpdateType:"createOrUpdate",update:hr("offers")}}),xt=Xe({method:"POST",path:()=>"/offers/",body:e=>({offers:[e]}),updateQueries:{dataType:N,emberUpdateType:"createOrUpdate",update:yr("offers")}});var Er=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Q(e,r){var t=Fr(e);if(typeof t.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(t,"path",{value:typeof r=="string"?r:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return t}function Fr(e){var r=e.name,t=r&&r.lastIndexOf(".")!==-1;if(t&&!e.type){var n=r.split(".").pop().toLowerCase(),i=Er.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var xr=[".DS_Store","Thumbs.db"];function jr(e){return z(this,void 0,void 0,function(){return M(this,function(r){return ie(e)&&_r(e.dataTransfer)?[2,Ir(e.dataTransfer,e.type)]:Pr(e)?[2,Cr(e)]:Array.isArray(e)&&e.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,Tr(e)]:[2,[]]})})}function _r(e){return ie(e)}function Pr(e){return ie(e)&&ie(e.target)}function ie(e){return typeof e=="object"&&e!==null}function Cr(e){return De(e.target.files).map(function(r){return Q(r)})}function Tr(e){return z(this,void 0,void 0,function(){var r;return M(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return r=t.sent(),[2,r.map(function(n){return Q(n)})]}})})}function Ir(e,r){return z(this,void 0,void 0,function(){var t,n;return M(this,function(i){switch(i.label){case 0:return e.items?(t=De(e.items).filter(function(a){return a.kind==="file"}),r!=="drop"?[2,t]:[4,Promise.all(t.map(Sr))]):[3,2];case 1:return n=i.sent(),[2,Be(Ze(n))];case 2:return[2,Be(De(e.files).map(function(a){return Q(a)}))]}})})}function Be(e){return e.filter(function(r){return xr.indexOf(r.name)===-1})}function De(e){if(e===null)return[];for(var r=[],t=0;t<e.length;t++){var n=e[t];r.push(n)}return r}function Sr(e){if(typeof e.webkitGetAsEntry!="function")return He(e);var r=e.webkitGetAsEntry();return r&&r.isDirectory?er(r):He(e)}function Ze(e){return e.reduce(function(r,t){return Le(Le([],$e(r),!1),$e(Array.isArray(t)?Ze(t):[t]),!1)},[])}function He(e){var r=e.getAsFile();if(!r)return Promise.reject("".concat(e," is not a File"));var t=Q(r);return Promise.resolve(t)}function Rr(e){return z(this,void 0,void 0,function(){return M(this,function(r){return[2,e.isDirectory?er(e):kr(e)]})})}function er(e){var r=e.createReader();return new Promise(function(t,n){var i=[];function a(){var c=this;r.readEntries(function(s){return z(c,void 0,void 0,function(){var g,b,O;return M(this,function(y){switch(y.label){case 0:if(s.length)return[3,5];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return g=y.sent(),t(g),[3,4];case 3:return b=y.sent(),n(b),[3,4];case 4:return[3,6];case 5:O=Promise.all(s.map(Rr)),i.push(O),a(),y.label=6;case 6:return[2]}})})},function(s){n(s)})}a()})}function kr(e){return z(this,void 0,void 0,function(){return M(this,function(r){return[2,new Promise(function(t,n){e.file(function(i){var a=Q(i,e.fullPath);t(a)},function(i){n(i)})})]})})}var ne={},We;function zr(){return We||(We=1,ne.__esModule=!0,ne.default=function(e,r){if(e&&r){var t=Array.isArray(r)?r:r.split(",");if(t.length===0)return!0;var n=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return t.some(function(c){var s=c.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0}),ne}var Mr=zr();const Lr=Ar(Mr);function Ue(e){return Br(e)||Kr(e)||tr(e)||$r()}function $r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Br(e){if(Array.isArray(e))return Ae(e)}function Ne(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Qe(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ne(Object(t),!0).forEach(function(n){rr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ne(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function rr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function U(e,r){return Ur(e)||Wr(e,r)||tr(e,r)||Hr()}function Hr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tr(e,r){if(e){if(typeof e=="string")return Ae(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ae(e,r)}}function Ae(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Wr(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n=[],i=!0,a=!1,c,s;try{for(t=t.call(e);!(i=(c=t.next()).done)&&(n.push(c.value),!(r&&n.length===r));i=!0);}catch(g){a=!0,s=g}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw s}}return n}}function Ur(e){if(Array.isArray(e))return e}var Nr="file-invalid-type",Qr="file-too-large",qr="file-too-small",Gr="too-many-files",Yr=function(r){r=Array.isArray(r)&&r.length===1?r[0]:r;var t=Array.isArray(r)?"one of ".concat(r.join(", ")):r;return{code:Nr,message:"File type must be ".concat(t)}},qe=function(r){return{code:Qr,message:"File is larger than ".concat(r," ").concat(r===1?"byte":"bytes")}},Ge=function(r){return{code:qr,message:"File is smaller than ".concat(r," ").concat(r===1?"byte":"bytes")}},Jr={code:Gr,message:"Too many files"};function nr(e,r){var t=e.type==="application/x-moz-file"||Lr(e,r);return[t,t?null:Yr(r)]}function or(e,r,t){if(T(e.size))if(T(r)&&T(t)){if(e.size>t)return[!1,qe(t)];if(e.size<r)return[!1,Ge(r)]}else{if(T(r)&&e.size<r)return[!1,Ge(r)];if(T(t)&&e.size>t)return[!1,qe(t)]}return[!0,null]}function T(e){return e!=null}function Vr(e){var r=e.files,t=e.accept,n=e.minSize,i=e.maxSize,a=e.multiple,c=e.maxFiles,s=e.validator;return!a&&r.length>1||a&&c>=1&&r.length>c?!1:r.every(function(g){var b=nr(g,t),O=U(b,1),y=O[0],j=or(g,n,i),E=U(j,1),_=E[0],F=s?s(g):null;return y&&_&&!F})}function ae(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function oe(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Ye(e){e.preventDefault()}function Xr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Zr(e){return e.indexOf("Edge/")!==-1}function et(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Xr(e)||Zr(e)}function w(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return r.some(function(s){return!ae(n)&&s&&s.apply(void 0,[n].concat(a)),ae(n)})}}function rt(){return"showOpenFilePicker"in window}function tt(e){if(T(e)){var r=Object.entries(e).filter(function(t){var n=U(t,2),i=n[0],a=n[1],c=!0;return ir(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),c=!1),(!Array.isArray(a)||!a.every(ar))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),c=!1),c}).reduce(function(t,n){var i=U(n,2),a=i[0],c=i[1];return Qe(Qe({},t),{},rr({},a,c))},{});return[{description:"Files",accept:r}]}return e}function nt(e){if(T(e))return Object.entries(e).reduce(function(r,t){var n=U(t,2),i=n[0],a=n[1];return[].concat(Ue(r),[i],Ue(a))},[]).filter(function(r){return ir(r)||ar(r)}).join(",")}function ot(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function it(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ir(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function ar(e){return/^.*\.[\w]+$/.test(e)}var at=["children"],ut=["open"],st=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ct=["refKey","onChange","onClick"];function lt(e){return dt(e)||pt(e)||ur(e)||ft()}function ft(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dt(e){if(Array.isArray(e))return Oe(e)}function he(e,r){return vt(e)||mt(e,r)||ur(e,r)||gt()}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|