ghost 6.0.5 → 6.0.6

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.
Files changed (25) hide show
  1. package/components/tryghost-i18n-6.0.6.tgz +0 -0
  2. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +1 -1
  3. package/core/built/admin/assets/admin-x-activitypub/{index-DBxGycCG.mjs → index-BRzGrD-C.mjs} +7465 -7424
  4. package/core/built/admin/assets/admin-x-activitypub/{index-Db9aLAi4.mjs → index-Co80faUx.mjs} +2 -2
  5. package/core/built/admin/assets/{chunk.524.0e2bff9b664f925d7af7.js → chunk.524.56bb70d3e8660d34aef1.js} +5 -5
  6. package/core/built/admin/assets/{chunk.582.a8f6c436bbec6f9ba678.js → chunk.582.ae0341229e71a85d0b2d.js} +9 -9
  7. package/core/built/admin/assets/{ghost-2b02de85a93ec9a5623180b373cece35.js → ghost-2bcbd118a8ad45fed5401e84a7e87c9a.js} +31 -28
  8. package/core/built/admin/assets/posts/posts.js +23734 -23709
  9. package/core/built/admin/assets/stats/stats.js +22831 -22812
  10. package/core/built/admin/index.html +3 -3
  11. package/core/server/data/tinybird/datasources/analytics_events.datasource +3 -2
  12. package/core/server/data/tinybird/datasources/analytics_events_test.datasource +3 -2
  13. package/core/server/data/tinybird/scripts/configure-ghost.sh +4 -2
  14. package/core/server/services/lib/magic-link/MagicLink.js +88 -8
  15. package/core/server/services/members/SingleUseTokenProvider.js +61 -1
  16. package/core/server/services/members/api.js +18 -8
  17. package/core/server/services/members/emails/signin.js +38 -4
  18. package/core/server/services/members/members-api/controllers/RouterController.js +14 -3
  19. package/core/server/services/members/members-api/members-api.js +4 -3
  20. package/core/server/services/stats/PostsStatsService.js +26 -9
  21. package/core/server/services/stats/StatsService.js +1 -1
  22. package/package.json +7 -7
  23. package/tsconfig.tsbuildinfo +1 -1
  24. package/yarn.lock +172 -276
  25. package/components/tryghost-i18n-6.0.5.tgz +0 -0
@@ -1,4 +1,4 @@
1
- import { f as q, u as C, a as E, b as Q, c as T, d as K, e as tt, g as et, C as it, v as st, h as X } from "./index-DBxGycCG.mjs";
1
+ import { f as q, u as C, a as E, b as Q, c as T, d as K, e as tt, g as et, C as it, v as st, h as X } from "./index-BRzGrD-C.mjs";
2
2
  const nt = (n, t) => n == null ? t : t == null ? n : Math.max(n, t), A = /* @__PURE__ */ new WeakMap(), Et = {
3
3
  onUpdate(n, t, e) {
4
4
  if (A.set(e, void 0), !e.computedTrend)
@@ -596,4 +596,4 @@ export {
596
596
  bt as useIsSupported,
597
597
  St as usePrefersReducedMotion
598
598
  };
599
- //# sourceMappingURL=index-Db9aLAi4.mjs.map
599
+ //# sourceMappingURL=index-Co80faUx.mjs.map
@@ -1,9 +1,9 @@
1
1
  var __ember_auto_import__;(()=>{var e,r={31048:()=>{},32186:e=>{"use strict"
2
- e.exports=require("@ember/test-waiters")},38722:(e,r,n)=>{e.exports=function(){var e=_eai_d,r=_eai_r
2
+ e.exports=require("@ember/test-waiters")},51347:(e,r,n)=>{e.exports=function(){var e=_eai_d,r=_eai_r
3
3
  function t(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 t(n(32314))}),e("@sentry/core",[],function(){return t(n(67723))}),e("@sentry/integrations",[],function(){return t(n(20080))}),e("@sentry/replay",[],function(){return t(n(51633))}),e("@sentry/utils",[],function(){return t(n(5423))}),e("@tryghost/color-utils",[],function(){return t(n(86797))}),e("@tryghost/kg-clean-basic-html",[],function(){return t(n(3414))}),e("@tryghost/kg-converters",[],function(){return t(n(23075))}),e("@tryghost/limit-service",[],function(){return t(n(55983))}),e("@tryghost/members-csv/lib/unparse",[],function(){return t(n(17246))}),e("@tryghost/nql",[],function(){return t(n(39365))}),e("@tryghost/nql-lang",[],function(){return t(n(716))}),e("@tryghost/string",[],function(){return t(n(96107))}),e("@tryghost/timezone-data",[],function(){return t(n(27019))}),e("animejs/lib/anime.es.js",[],function(){return t(n(62282))}),e("element-resize-detector",[],function(){return t(n(29540))}),e("ember-assign-helper/helpers/assign",[],function(){return t(n(31113))}),e("ember-css-transitions/modifiers/css-transition",["@ember/test-waiters"],function(){return t(n(95895))}),e("ember-keyboard/helpers/if-key.js",[],function(){return t(n(10530))}),e("ember-keyboard/helpers/on-key.js",[],function(){return t(n(13692))}),e("ember-keyboard/modifiers/on-key.js",[],function(){return t(n(40985))}),e("ember-keyboard/services/keyboard.js",[],function(){return t(n(89697))}),e("ember-modifier",[],function(){return t(n(37777))}),e("ember-moment/helpers/-base",[],function(){return t(n(91366))}),e("ember-moment/helpers/is-after",[],function(){return t(n(91461))}),e("ember-moment/helpers/is-before",[],function(){return t(n(61e3))}),e("ember-moment/helpers/is-between",[],function(){return t(n(447))}),e("ember-moment/helpers/is-same",[],function(){return t(n(64193))}),e("ember-moment/helpers/is-same-or-after",[],function(){return t(n(7916))}),e("ember-moment/helpers/is-same-or-before",[],function(){return t(n(54351))}),e("ember-moment/helpers/moment",[],function(){return t(n(41678))}),e("ember-moment/helpers/moment-add",[],function(){return t(n(50080))}),e("ember-moment/helpers/moment-calendar",[],function(){return t(n(96625))}),e("ember-moment/helpers/moment-diff",[],function(){return t(n(85340))}),e("ember-moment/helpers/moment-duration",[],function(){return t(n(42967))}),e("ember-moment/helpers/moment-format",[],function(){return t(n(10536))}),e("ember-moment/helpers/moment-from",[],function(){return t(n(50727))}),e("ember-moment/helpers/moment-from-now",[],function(){return t(n(706))}),e("ember-moment/helpers/moment-subtract",[],function(){return t(n(54651))}),e("ember-moment/helpers/moment-to",[],function(){return t(n(84818))}),e("ember-moment/helpers/moment-to-date",[],function(){return t(n(81183))}),e("ember-moment/helpers/moment-to-now",[],function(){return t(n(17083))}),e("ember-moment/helpers/now",[],function(){return t(n(34980))}),e("ember-moment/helpers/unix",[],function(){return t(n(79272))}),e("ember-moment/helpers/utc",[],function(){return t(n(36022))}),e("ember-moment/services/moment",[],function(){return t(n(39879))}),e("fast-deep-equal",[],function(){return t(n(25383))}),e("flexsearch",[],function(){return t(n(12248))}),e("focus-trap",[],function(){return t(n(39632))}),e("intersection-observer-admin",[],function(){return t(n(21431))}),e("microdiff",[],function(){return t(n(59086))}),e("moment-timezone",[],function(){return t(n(41101))}),e("papaparse",[],function(){return t(n(78695))}),e("raf-pool",[],function(){return t(n(60695))}),e("react",[],function(){return t(n(72854))}),e("react-dom",[],function(){return t(n(95303))}),e("react-dom/client",[],function(){return t(n(70816))}),e("semver/functions/coerce",[],function(){return t(n(18576))}),e("semver/functions/lt",[],function(){return t(n(32817))}),e("semver/functions/parse",[],function(){return t(n(47898))}),e("tooltip.js",[],function(){return t(n(85557))}),e("tracked-built-ins",["ember-tracked-storage-polyfill"],function(){return t(n(67708))}),e("validator",[],function(){return t(n(29119))}),e("_eai_dyn_@sentry/browser",[],function(){return Promise.resolve().then(n.bind(n,32314))})}()},56857:(e,r,n)=>{var t={"./af":58547,"./af.js":58547,"./ar":28167,"./ar-dz":35298,"./ar-dz.js":35298,"./ar-kw":11314,"./ar-kw.js":11314,"./ar-ly":66455,"./ar-ly.js":66455,"./ar-ma":15998,"./ar-ma.js":15998,"./ar-sa":55388,"./ar-sa.js":55388,"./ar-tn":73358,"./ar-tn.js":73358,"./ar.js":28167,"./az":92367,"./az.js":92367,"./be":9161,"./be.js":9161,"./bg":359,"./bg.js":359,"./bm":32625,"./bm.js":32625,"./bn":52984,"./bn.js":52984,"./bo":87343,"./bo.js":87343,"./br":87948,"./br.js":87948,"./bs":88211,"./bs.js":88211,"./ca":34700,"./ca.js":34700,"./cs":27430,"./cs.js":27430,"./cv":55913,"./cv.js":55913,"./cy":16004,"./cy.js":16004,"./da":26839,"./da.js":26839,"./de":22131,"./de-at":6729,"./de-at.js":6729,"./de-ch":74743,"./de-ch.js":74743,"./de.js":22131,"./dv":14598,"./dv.js":14598,"./el":38737,"./el.js":38737,"./en-SG":94978,"./en-SG.js":94978,"./en-au":22606,"./en-au.js":22606,"./en-ca":60052,"./en-ca.js":60052,"./en-gb":17305,"./en-gb.js":17305,"./en-ie":76390,"./en-ie.js":76390,"./en-il":89549,"./en-il.js":89549,"./en-nz":67584,"./en-nz.js":67584,"./eo":24408,"./eo.js":24408,"./es":45644,"./es-do":21888,"./es-do.js":21888,"./es-us":23537,"./es-us.js":23537,"./es.js":45644,"./et":27257,"./et.js":27257,"./eu":57002,"./eu.js":57002,"./fa":90241,"./fa.js":90241,"./fi":74009,"./fi.js":74009,"./fo":81267,"./fo.js":81267,"./fr":71160,"./fr-ca":39433,"./fr-ca.js":39433,"./fr-ch":20130,"./fr-ch.js":20130,"./fr.js":71160,"./fy":20553,"./fy.js":20553,"./ga":18232,"./ga.js":18232,"./gd":33771,"./gd.js":33771,"./gl":99747,"./gl.js":99747,"./gom-latn":80289,"./gom-latn.js":80289,"./gu":148,"./gu.js":148,"./he":68247,"./he.js":68247,"./hi":39835,"./hi.js":39835,"./hr":69734,"./hr.js":69734,"./hu":40999,"./hu.js":40999,"./hy-am":95002,"./hy-am.js":95002,"./id":23021,"./id.js":23021,"./is":96232,"./is.js":96232,"./it":15581,"./it-ch":4809,"./it-ch.js":4809,"./it.js":15581,"./ja":45981,"./ja.js":45981,"./jv":12568,"./jv.js":12568,"./ka":17924,"./ka.js":17924,"./kk":1062,"./kk.js":1062,"./km":65456,"./km.js":65456,"./kn":15817,"./kn.js":15817,"./ko":45306,"./ko.js":45306,"./ku":39016,"./ku.js":39016,"./ky":71308,"./ky.js":71308,"./lb":67330,"./lb.js":67330,"./lo":18949,"./lo.js":18949,"./lt":58804,"./lt.js":58804,"./lv":47006,"./lv.js":47006,"./me":83346,"./me.js":83346,"./mi":630,"./mi.js":630,"./mk":88876,"./mk.js":88876,"./ml":86841,"./ml.js":86841,"./mn":93847,"./mn.js":93847,"./mr":57515,"./mr.js":57515,"./ms":51844,"./ms-my":44391,"./ms-my.js":44391,"./ms.js":51844,"./mt":81969,"./mt.js":81969,"./my":34982,"./my.js":34982,"./nb":41632,"./nb.js":41632,"./ne":81781,"./ne.js":81781,"./nl":14910,"./nl-be":72506,"./nl-be.js":72506,"./nl.js":14910,"./nn":12980,"./nn.js":12980,"./pa-in":33791,"./pa-in.js":33791,"./pl":1872,"./pl.js":1872,"./pt":9064,"./pt-br":85273,"./pt-br.js":85273,"./pt.js":9064,"./ro":63167,"./ro.js":63167,"./ru":28649,"./ru.js":28649,"./sd":14823,"./sd.js":14823,"./se":90672,"./se.js":90672,"./si":26244,"./si.js":26244,"./sk":40654,"./sk.js":40654,"./sl":44335,"./sl.js":44335,"./sq":79116,"./sq.js":79116,"./sr":60693,"./sr-cyrl":1436,"./sr-cyrl.js":1436,"./sr.js":60693,"./ss":51734,"./ss.js":51734,"./sv":37945,"./sv.js":37945,"./sw":41514,"./sw.js":41514,"./ta":1991,"./ta.js":1991,"./te":95011,"./te.js":95011,"./tet":19463,"./tet.js":19463,"./tg":43109,"./tg.js":43109,"./th":97144,"./th.js":97144,"./tl-ph":70401,"./tl-ph.js":70401,"./tlh":26678,"./tlh.js":26678,"./tr":28682,"./tr.js":28682,"./tzl":59084,"./tzl.js":59084,"./tzm":64307,"./tzm-latn":68869,"./tzm-latn.js":68869,"./tzm.js":64307,"./ug-cn":78812,"./ug-cn.js":78812,"./uk":25812,"./uk.js":25812,"./ur":25411,"./ur.js":25411,"./uz":59435,"./uz-latn":94589,"./uz-latn.js":94589,"./uz.js":59435,"./vi":50569,"./vi.js":50569,"./x-pseudo":85241,"./x-pseudo.js":85241,"./yo":96972,"./yo.js":96972,"./zh-cn":18422,"./zh-cn.js":18422,"./zh-hk":84106,"./zh-hk.js":84106,"./zh-tw":69362,"./zh-tw.js":69362}
4
4
  function s(e){var r=o(e)
5
5
  return n(r)}function o(e){if(!n.o(t,e)){var r=new Error("Cannot find module '"+e+"'")
6
- throw r.code="MODULE_NOT_FOUND",r}return t[e]}s.keys=function(){return Object.keys(t)},s.resolve=o,e.exports=s,s.id=56857},71079:function(e,r){window._eai_r=require,window._eai_d=define},80032:e=>{"use strict"
6
+ throw r.code="MODULE_NOT_FOUND",r}return t[e]}s.keys=function(){return Object.keys(t)},s.resolve=o,e.exports=s,s.id=56857},67358:function(e,r){window._eai_r=require,window._eai_d=define},80032:e=>{"use strict"
7
7
  e.exports=require("ember-tracked-storage-polyfill")},86625:()=>{}},n={}
8
8
  function t(e){var s=n[e]
9
9
  if(void 0!==s)return s.exports
@@ -21,8 +21,8 @@ var r=(r,n)=>{var s,o,[i,u,m]=n,a=0
21
21
  if(i.some(r=>0!==e[r])){for(s in u)t.o(u,s)&&(t.m[s]=u[s])
22
22
  if(m)var c=m(t)}for(r&&r(n);a<i.length;a++)o=i[a],t.o(e,o)&&e[o]&&e[o][0](),e[o]=0
23
23
  return t.O(c)},n=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
24
- n.forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n))})(),t.O(void 0,[397],()=>t(t.s=71079))
25
- var s=t.O(void 0,[397],()=>t(t.s=38722))
24
+ n.forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n))})(),t.O(void 0,[397],()=>t(t.s=67358))
25
+ var s=t.O(void 0,[397],()=>t(t.s=51347))
26
26
  s=t.O(s),__ember_auto_import__=s})()
27
27
 
28
- //# sourceMappingURL=chunk.524.0e2bff9b664f925d7af7.map
28
+ //# sourceMappingURL=chunk.524.56bb70d3e8660d34aef1.map
@@ -1,12 +1,12 @@
1
- var __ember_auto_import__;(()=>{var e,r={27100:(e,r,t)=>{e.exports=function(){_eai_d
2
- var e=_eai_r
3
- 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(38722)}()},31048:()=>{},32186:e=>{"use strict"
4
- e.exports=require("@ember/test-waiters")},38722:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r
1
+ var __ember_auto_import__;(()=>{var e,r={31048:()=>{},32186:e=>{"use strict"
2
+ e.exports=require("@ember/test-waiters")},51347:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r
5
3
  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(32314))}),e("@sentry/core",EAI_DISCOVERED_EXTERNALS("@sentry/core"),function(){return n(t(67723))}),e("@sentry/integrations",EAI_DISCOVERED_EXTERNALS("@sentry/integrations"),function(){return n(t(20080))}),e("@sentry/replay",EAI_DISCOVERED_EXTERNALS("@sentry/replay"),function(){return n(t(51633))}),e("@sentry/utils",EAI_DISCOVERED_EXTERNALS("@sentry/utils"),function(){return n(t(5423))}),e("@tryghost/color-utils",EAI_DISCOVERED_EXTERNALS("@tryghost/color-utils"),function(){return n(t(86797))}),e("@tryghost/kg-clean-basic-html",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-clean-basic-html"),function(){return n(t(3414))}),e("@tryghost/kg-converters",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-converters"),function(){return n(t(23075))}),e("@tryghost/limit-service",EAI_DISCOVERED_EXTERNALS("@tryghost/limit-service"),function(){return n(t(55983))}),e("@tryghost/members-csv/lib/unparse",EAI_DISCOVERED_EXTERNALS("@tryghost/members-csv/lib/unparse"),function(){return n(t(17246))}),e("@tryghost/nql",EAI_DISCOVERED_EXTERNALS("@tryghost/nql"),function(){return n(t(39365))}),e("@tryghost/nql-lang",EAI_DISCOVERED_EXTERNALS("@tryghost/nql-lang"),function(){return n(t(716))}),e("@tryghost/string",EAI_DISCOVERED_EXTERNALS("@tryghost/string"),function(){return n(t(96107))}),e("@tryghost/timezone-data",EAI_DISCOVERED_EXTERNALS("@tryghost/timezone-data"),function(){return n(t(27019))}),e("animejs/lib/anime.es.js",EAI_DISCOVERED_EXTERNALS("animejs/lib/anime.es.js"),function(){return n(t(62282))}),e("element-resize-detector",EAI_DISCOVERED_EXTERNALS("element-resize-detector"),function(){return n(t(29540))}),e("ember-assign-helper/helpers/assign",EAI_DISCOVERED_EXTERNALS("ember-assign-helper/helpers/assign"),function(){return n(t(31113))}),e("ember-css-transitions/modifiers/css-transition",EAI_DISCOVERED_EXTERNALS("ember-css-transitions/modifiers/css-transition"),function(){return n(t(95895))}),e("ember-keyboard/helpers/if-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/if-key.js"),function(){return n(t(10530))}),e("ember-keyboard/helpers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/on-key.js"),function(){return n(t(13692))}),e("ember-keyboard/modifiers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/modifiers/on-key.js"),function(){return n(t(40985))}),e("ember-keyboard/services/keyboard.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/services/keyboard.js"),function(){return n(t(89697))}),e("ember-modifier",EAI_DISCOVERED_EXTERNALS("ember-modifier"),function(){return n(t(37777))}),e("ember-moment/helpers/-base",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/-base"),function(){return n(t(91366))}),e("ember-moment/helpers/is-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-after"),function(){return n(t(91461))}),e("ember-moment/helpers/is-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-before"),function(){return n(t(61e3))}),e("ember-moment/helpers/is-between",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-between"),function(){return n(t(447))}),e("ember-moment/helpers/is-same",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same"),function(){return n(t(64193))}),e("ember-moment/helpers/is-same-or-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-after"),function(){return n(t(7916))}),e("ember-moment/helpers/is-same-or-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-before"),function(){return n(t(54351))}),e("ember-moment/helpers/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment"),function(){return n(t(41678))}),e("ember-moment/helpers/moment-add",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-add"),function(){return n(t(50080))}),e("ember-moment/helpers/moment-calendar",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-calendar"),function(){return n(t(96625))}),e("ember-moment/helpers/moment-diff",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-diff"),function(){return n(t(85340))}),e("ember-moment/helpers/moment-duration",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-duration"),function(){return n(t(42967))}),e("ember-moment/helpers/moment-format",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-format"),function(){return n(t(10536))}),e("ember-moment/helpers/moment-from",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from"),function(){return n(t(50727))}),e("ember-moment/helpers/moment-from-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from-now"),function(){return n(t(706))}),e("ember-moment/helpers/moment-subtract",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-subtract"),function(){return n(t(54651))}),e("ember-moment/helpers/moment-to",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to"),function(){return n(t(84818))}),e("ember-moment/helpers/moment-to-date",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-date"),function(){return n(t(81183))}),e("ember-moment/helpers/moment-to-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-now"),function(){return n(t(17083))}),e("ember-moment/helpers/now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/now"),function(){return n(t(34980))}),e("ember-moment/helpers/unix",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/unix"),function(){return n(t(79272))}),e("ember-moment/helpers/utc",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/utc"),function(){return n(t(36022))}),e("ember-moment/services/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/services/moment"),function(){return n(t(39879))}),e("fast-deep-equal",EAI_DISCOVERED_EXTERNALS("fast-deep-equal"),function(){return n(t(25383))}),e("flexsearch",EAI_DISCOVERED_EXTERNALS("flexsearch"),function(){return n(t(12248))}),e("focus-trap",EAI_DISCOVERED_EXTERNALS("focus-trap"),function(){return n(t(39632))}),e("intersection-observer-admin",EAI_DISCOVERED_EXTERNALS("intersection-observer-admin"),function(){return n(t(21431))}),e("microdiff",EAI_DISCOVERED_EXTERNALS("microdiff"),function(){return n(t(59086))}),e("moment-timezone",EAI_DISCOVERED_EXTERNALS("moment-timezone"),function(){return n(t(41101))}),e("papaparse",EAI_DISCOVERED_EXTERNALS("papaparse"),function(){return n(t(78695))}),e("raf-pool",EAI_DISCOVERED_EXTERNALS("raf-pool"),function(){return n(t(60695))}),e("react",EAI_DISCOVERED_EXTERNALS("react"),function(){return n(t(72854))}),e("react-dom",EAI_DISCOVERED_EXTERNALS("react-dom"),function(){return n(t(95303))}),e("react-dom/client",EAI_DISCOVERED_EXTERNALS("react-dom/client"),function(){return n(t(70816))}),e("semver/functions/coerce",EAI_DISCOVERED_EXTERNALS("semver/functions/coerce"),function(){return n(t(18576))}),e("semver/functions/lt",EAI_DISCOVERED_EXTERNALS("semver/functions/lt"),function(){return n(t(32817))}),e("semver/functions/parse",EAI_DISCOVERED_EXTERNALS("semver/functions/parse"),function(){return n(t(47898))}),e("tooltip.js",EAI_DISCOVERED_EXTERNALS("tooltip.js"),function(){return n(t(85557))}),e("tracked-built-ins",EAI_DISCOVERED_EXTERNALS("tracked-built-ins"),function(){return n(t(67708))}),e("validator",EAI_DISCOVERED_EXTERNALS("validator"),function(){return n(t(29119))}),e("_eai_dyn_@sentry/browser",[],function(){return Promise.resolve().then(t.bind(t,32314))})}()},56857:(e,r,t)=>{var n={"./af":58547,"./af.js":58547,"./ar":28167,"./ar-dz":35298,"./ar-dz.js":35298,"./ar-kw":11314,"./ar-kw.js":11314,"./ar-ly":66455,"./ar-ly.js":66455,"./ar-ma":15998,"./ar-ma.js":15998,"./ar-sa":55388,"./ar-sa.js":55388,"./ar-tn":73358,"./ar-tn.js":73358,"./ar.js":28167,"./az":92367,"./az.js":92367,"./be":9161,"./be.js":9161,"./bg":359,"./bg.js":359,"./bm":32625,"./bm.js":32625,"./bn":52984,"./bn.js":52984,"./bo":87343,"./bo.js":87343,"./br":87948,"./br.js":87948,"./bs":88211,"./bs.js":88211,"./ca":34700,"./ca.js":34700,"./cs":27430,"./cs.js":27430,"./cv":55913,"./cv.js":55913,"./cy":16004,"./cy.js":16004,"./da":26839,"./da.js":26839,"./de":22131,"./de-at":6729,"./de-at.js":6729,"./de-ch":74743,"./de-ch.js":74743,"./de.js":22131,"./dv":14598,"./dv.js":14598,"./el":38737,"./el.js":38737,"./en-SG":94978,"./en-SG.js":94978,"./en-au":22606,"./en-au.js":22606,"./en-ca":60052,"./en-ca.js":60052,"./en-gb":17305,"./en-gb.js":17305,"./en-ie":76390,"./en-ie.js":76390,"./en-il":89549,"./en-il.js":89549,"./en-nz":67584,"./en-nz.js":67584,"./eo":24408,"./eo.js":24408,"./es":45644,"./es-do":21888,"./es-do.js":21888,"./es-us":23537,"./es-us.js":23537,"./es.js":45644,"./et":27257,"./et.js":27257,"./eu":57002,"./eu.js":57002,"./fa":90241,"./fa.js":90241,"./fi":74009,"./fi.js":74009,"./fo":81267,"./fo.js":81267,"./fr":71160,"./fr-ca":39433,"./fr-ca.js":39433,"./fr-ch":20130,"./fr-ch.js":20130,"./fr.js":71160,"./fy":20553,"./fy.js":20553,"./ga":18232,"./ga.js":18232,"./gd":33771,"./gd.js":33771,"./gl":99747,"./gl.js":99747,"./gom-latn":80289,"./gom-latn.js":80289,"./gu":148,"./gu.js":148,"./he":68247,"./he.js":68247,"./hi":39835,"./hi.js":39835,"./hr":69734,"./hr.js":69734,"./hu":40999,"./hu.js":40999,"./hy-am":95002,"./hy-am.js":95002,"./id":23021,"./id.js":23021,"./is":96232,"./is.js":96232,"./it":15581,"./it-ch":4809,"./it-ch.js":4809,"./it.js":15581,"./ja":45981,"./ja.js":45981,"./jv":12568,"./jv.js":12568,"./ka":17924,"./ka.js":17924,"./kk":1062,"./kk.js":1062,"./km":65456,"./km.js":65456,"./kn":15817,"./kn.js":15817,"./ko":45306,"./ko.js":45306,"./ku":39016,"./ku.js":39016,"./ky":71308,"./ky.js":71308,"./lb":67330,"./lb.js":67330,"./lo":18949,"./lo.js":18949,"./lt":58804,"./lt.js":58804,"./lv":47006,"./lv.js":47006,"./me":83346,"./me.js":83346,"./mi":630,"./mi.js":630,"./mk":88876,"./mk.js":88876,"./ml":86841,"./ml.js":86841,"./mn":93847,"./mn.js":93847,"./mr":57515,"./mr.js":57515,"./ms":51844,"./ms-my":44391,"./ms-my.js":44391,"./ms.js":51844,"./mt":81969,"./mt.js":81969,"./my":34982,"./my.js":34982,"./nb":41632,"./nb.js":41632,"./ne":81781,"./ne.js":81781,"./nl":14910,"./nl-be":72506,"./nl-be.js":72506,"./nl.js":14910,"./nn":12980,"./nn.js":12980,"./pa-in":33791,"./pa-in.js":33791,"./pl":1872,"./pl.js":1872,"./pt":9064,"./pt-br":85273,"./pt-br.js":85273,"./pt.js":9064,"./ro":63167,"./ro.js":63167,"./ru":28649,"./ru.js":28649,"./sd":14823,"./sd.js":14823,"./se":90672,"./se.js":90672,"./si":26244,"./si.js":26244,"./sk":40654,"./sk.js":40654,"./sl":44335,"./sl.js":44335,"./sq":79116,"./sq.js":79116,"./sr":60693,"./sr-cyrl":1436,"./sr-cyrl.js":1436,"./sr.js":60693,"./ss":51734,"./ss.js":51734,"./sv":37945,"./sv.js":37945,"./sw":41514,"./sw.js":41514,"./ta":1991,"./ta.js":1991,"./te":95011,"./te.js":95011,"./tet":19463,"./tet.js":19463,"./tg":43109,"./tg.js":43109,"./th":97144,"./th.js":97144,"./tl-ph":70401,"./tl-ph.js":70401,"./tlh":26678,"./tlh.js":26678,"./tr":28682,"./tr.js":28682,"./tzl":59084,"./tzl.js":59084,"./tzm":64307,"./tzm-latn":68869,"./tzm-latn.js":68869,"./tzm.js":64307,"./ug-cn":78812,"./ug-cn.js":78812,"./uk":25812,"./uk.js":25812,"./ur":25411,"./ur.js":25411,"./uz":59435,"./uz-latn":94589,"./uz-latn.js":94589,"./uz.js":59435,"./vi":50569,"./vi.js":50569,"./x-pseudo":85241,"./x-pseudo.js":85241,"./yo":96972,"./yo.js":96972,"./zh-cn":18422,"./zh-cn.js":18422,"./zh-hk":84106,"./zh-hk.js":84106,"./zh-tw":69362,"./zh-tw.js":69362}
6
4
  function s(e){var r=o(e)
7
5
  return t(r)}function o(e){if(!t.o(n,e)){var r=new Error("Cannot find module '"+e+"'")
8
- throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=56857},71079:function(e,r){window._eai_r=require,window._eai_d=define},80032:e=>{"use strict"
9
- e.exports=require("ember-tracked-storage-polyfill")},86625:()=>{}},t={}
6
+ throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=56857},67358:function(e,r){window._eai_r=require,window._eai_d=define},80032:e=>{"use strict"
7
+ e.exports=require("ember-tracked-storage-polyfill")},82161:(e,r,t)=>{e.exports=function(){_eai_d
8
+ var e=_eai_r
9
+ 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(51347)}()},86625:()=>{}},t={}
10
10
  function n(e){var s=t[e]
11
11
  if(void 0!==s)return s.exports
12
12
  var o=t[e]={id:e,loaded:!1,exports:{}}
@@ -23,8 +23,8 @@ var r=(r,t)=>{var s,o,[m,E,i]=t,u=0
23
23
  if(m.some(r=>0!==e[r])){for(s in E)n.o(E,s)&&(n.m[s]=E[s])
24
24
  if(i)var a=i(n)}for(r&&r(t);u<m.length;u++)o=m[u],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0
25
25
  return n.O(a)},t=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
26
- t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[397],()=>n(n.s=71079))
27
- var s=n.O(void 0,[397],()=>n(n.s=27100))
26
+ t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[397],()=>n(n.s=67358))
27
+ var s=n.O(void 0,[397],()=>n(n.s=82161))
28
28
  s=n.O(s),__ember_auto_import__=s})()
29
29
 
30
- //# sourceMappingURL=chunk.582.a8f6c436bbec6f9ba678.map
30
+ //# sourceMappingURL=chunk.582.ae0341229e71a85d0b2d.map
@@ -98,46 +98,49 @@ return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enum
98
98
  return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
99
99
  const c=Ember.HTMLBars.template({id:"9waEGro0",block:'{"symbols":[],"statements":[[11,"div"],[4,[38,0],[[32,0,["ReactComponent"]]],null],[12],[13]],"hasEval":false,"upvars":["react-render"]}',moduleName:"ghost-admin/components/admin-x/activitypub.hbs"})
100
100
  let p=e.default=(i=Ember.inject.service,r=Ember.inject.service,o=class extends t.default{constructor(...e){super(...e),l(this,"upgradeStatus",a,this),l(this,"settings",s,this),u(this,"additionalProps",()=>({activityPubEnabled:this.settings.socialWebEnabled}))}},u(o,"packageName","@tryghost/admin-x-activitypub"),a=d((n=o).prototype,"upgradeStatus",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(n.prototype,"settings",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)
101
- Ember._setComponentTemplate(c,p)}),define("ghost-admin/components/admin-x/admin-x-component",["exports","@sentry/ember","@glimmer/component","react","ghost-admin/config/environment","ghost-admin/utils/fetch-koenig-lexical","ghost-admin/utils/ghost-paths","ghost-admin/decorators/inject"],function(e,t,i,r,n,a,s,o){var l,u,d,c,p,m,h,b,f,g,v,y,w,E,k,P,_,O,j,T,z,x,S
102
- function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
103
- for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},C.apply(null,arguments)}function M(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function D(e,t,i,r,n){var a={}
104
- return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}function A(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
101
+ Ember._setComponentTemplate(c,p)}),define("ghost-admin/components/admin-x/admin-x-component",["exports","@sentry/ember","@glimmer/component","react","ghost-admin/config/environment","fetch","ghost-admin/utils/fetch-koenig-lexical","ghost-admin/utils/ghost-paths","ghost-admin/decorators/inject"],function(e,t,i,r,n,a,s,o,l){var u,d,c,p,m,h,b,f,g,v,y,w,E,k,P,_,O,j,T,z,x,S,C
102
+ function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
103
+ for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},M.apply(null,arguments)}function D(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function A(e,t,i,r,n){var a={}
104
+ return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}function I(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
105
105
  var i=e[Symbol.toPrimitive]
106
106
  if(void 0!==i){var r=i.call(e,t||"default")
107
107
  if("object"!=typeof r)return r
108
108
  throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
109
109
  return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.importComponent=e.defaultUnsplashHeaders=e.default=void 0
110
- const I=e.defaultUnsplashHeaders={Authorization:"Client-ID 8672af113b0a8573edae3aa3713886265d9bb741d707f6c01a486cde8c278980","Accept-Version":"v1","Content-Type":"application/json","App-Pragma":"no-cache","X-Unsplash-Cache":!0}
111
- class L extends r.default.Component{constructor(...e){super(...e),A(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?r.default.createElement("div",{className:"admin-x-container-error"},r.default.createElement("div",{className:"admin-x-error"},r.default.createElement("h1",null,"Loading interrupted"),r.default.createElement("p",null,"They say life is a series of trials and tribulations. This moment right here? It's a tribulation. Our app was supposed to load, and yet here we are. Loadless. Click back to the dashboard to try again."),r.default.createElement("a",{href:(0,s.default)().adminRoot},"← Back to the dashboard"))):this.props.children}}const N=async e=>{if(window[e])return window[e]
110
+ const L=e.defaultUnsplashHeaders={Authorization:"Client-ID 8672af113b0a8573edae3aa3713886265d9bb741d707f6c01a486cde8c278980","Accept-Version":"v1","Content-Type":"application/json","App-Pragma":"no-cache","X-Unsplash-Cache":!0}
111
+ class N extends r.default.Component{constructor(...e){super(...e),I(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?r.default.createElement("div",{className:"admin-x-container-error"},r.default.createElement("div",{className:"admin-x-error"},r.default.createElement("h1",null,"Loading interrupted"),r.default.createElement("p",null,"They say life is a series of trials and tribulations. This moment right here? It's a tribulation. Our app was supposed to load, and yet here we are. Loadless. Click back to the dashboard to try again."),r.default.createElement("a",{href:(0,o.default)().adminRoot},"← Back to the dashboard"))):this.props.children}}const R=async e=>{if(window[e])return window[e]
112
112
  const t=e.replace("@tryghost/",""),i=Ember.String.camelize(t)
113
113
  if(!n.default[`${i}Filename`]||!n.default[`${i}Hash`])throw new Error(`Missing config for ${e}. Add it in asset delivery.`)
114
- const r=n.default.cdnUrl?`${n.default.cdnUrl}assets/`:(0,s.default)().assetRootWithHost
115
- let a=new URL(`${r}${t}/${n.default[`${i}Filename`]}?v=${n.default[`${i}Hash`]}`)
116
- const o=n.default[`${i}CustomUrl`]
117
- return o&&(a=new URL(o)),"http:"===a.protocol?window[e]=await import(`http://${a.host}${a.pathname}${a.search}`):window[e]=await import(`https://${a.host}${a.pathname}${a.search}`),window[e]}
118
- e.importComponent=N
119
- const R={IntegrationsResponseType:{type:"integration"},InvitesResponseType:{type:"invite"},OffersResponseType:{type:"offer"},NewslettersResponseType:{type:"newsletter"},RecommendationResponseType:{type:"recommendation"},SettingsResponseType:{type:"setting",singleton:!0},ThemesResponseType:{type:"theme"},TiersResponseType:{type:"tier"},UsersResponseType:{type:"user"},CustomThemeSettingsResponseType:null}
120
- e.default=(l=Ember.inject.service,u=Ember.inject.service,d=Ember.inject.service,c=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,f=Ember.inject.service,g=Ember._tracked,v=Ember._action,y=class extends i.default{constructor(...e){super(...e),M(this,"ajax",w,this),M(this,"feature",E,this),M(this,"ghostPaths",k,this),M(this,"session",P,this),M(this,"store",_,this),M(this,"settings",O,this),M(this,"router",j,this),M(this,"membersUtils",T,this),M(this,"themeManagement",z,this),M(this,"config",x,this),M(this,"display",S,this),A(this,"onUpdate",(e,t)=>{if(!(e in R))throw new Error(`A mutation updating ${e} succeeded in AdminX but there is no mapping to an Ember type. Add one to emberDataTypeMapping`)
121
- if(null===R[e])return
122
- const{type:i,singleton:r}=R[e]
114
+ const r=n.default.cdnUrl?`${n.default.cdnUrl}assets/`:(0,o.default)().assetRootWithHost
115
+ let s=new URL(`${r}${t}/${n.default[`${i}Filename`]}?v=${n.default[`${i}Hash`]}`)
116
+ const l=n.default[`${i}CustomUrl`]
117
+ l&&(s=new URL(l))
118
+ const u=n.default[`${i}RemoteConfigUrl`]
119
+ if(u)try{const e=await(0,a.default)(u,window.location),t=(await e.json()).client
120
+ t&&t.cdnUrl&&(s=new URL(t.cdnUrl))}catch(d){}return"http:"===s.protocol?window[e]=await import(`http://${s.host}${s.pathname}${s.search}`):window[e]=await import(`https://${s.host}${s.pathname}${s.search}`),window[e]}
121
+ e.importComponent=R
122
+ const F={IntegrationsResponseType:{type:"integration"},InvitesResponseType:{type:"invite"},OffersResponseType:{type:"offer"},NewslettersResponseType:{type:"newsletter"},RecommendationResponseType:{type:"recommendation"},SettingsResponseType:{type:"setting",singleton:!0},ThemesResponseType:{type:"theme"},TiersResponseType:{type:"tier"},UsersResponseType:{type:"user"},CustomThemeSettingsResponseType:null}
123
+ e.default=(u=Ember.inject.service,d=Ember.inject.service,c=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,f=Ember.inject.service,g=Ember.inject.service,v=Ember._tracked,y=Ember._action,w=class extends i.default{constructor(...e){super(...e),D(this,"ajax",E,this),D(this,"feature",k,this),D(this,"ghostPaths",P,this),D(this,"session",_,this),D(this,"store",O,this),D(this,"settings",j,this),D(this,"router",T,this),D(this,"membersUtils",z,this),D(this,"themeManagement",x,this),D(this,"config",S,this),D(this,"display",C,this),I(this,"onUpdate",(e,t)=>{if(!(e in F))throw new Error(`A mutation updating ${e} succeeded in AdminX but there is no mapping to an Ember type. Add one to emberDataTypeMapping`)
124
+ if(null===F[e])return
125
+ const{type:i,singleton:r}=F[e]
123
126
  if(r?this.store.push(this.store.serializerFor(i).normalizeSingleResponse(this.store,this.store.modelFor(i),t,null,"queryRecord")):this.store.pushPayload(i,t),"SettingsResponseType"===e&&(this.config.blogTitle=t.settings.find(e=>"title"===e.key).value,this.settings.reload()),"TiersResponseType"===e&&this.membersUtils.reload(),"ThemesResponseType"===e){const e=t.themes.find(e=>e.active)
124
127
  if(e){const t=this.store.peekAll("theme").find(t=>t.active&&t.name!==e.name)
125
128
  t?.set("active",!1)
126
129
  const i=this.store.peekAll("theme").filterBy("name",e.name).firstObject
127
- i?.set("active",!0),this.themeManagement.activeTheme=i}}}),A(this,"onInvalidate",e=>{if(!(e in R))throw new Error(`A mutation invalidating ${e} succeeded in AdminX but there is no mapping to an Ember type. Add one to emberDataTypeMapping`)
128
- if(null===R[e])return
129
- const{type:t,singleton:i}=R[e]
130
- i?console.warn(`An AdminX mutation invalidated ${e}, but this is is marked as a singleton and cannot be reloaded in Ember. You probably wanted to use updateQueries instead of invalidateQueries`):(Ember.run(()=>this.store.unloadAll(t)),"TiersResponseType"===e&&this.membersUtils.reload())}),A(this,"onDelete",(e,t)=>{if(!(e in R))throw new Error(`A mutation deleting ${e} succeeded in AdminX but there is no mapping to an Ember type. Add one to emberDataTypeMapping`)
131
- if(null===R[e])return
132
- const{type:i}=R[e],r=this.store.peekRecord(i,t)
133
- r&&r.unloadRecord()}),A(this,"externalNavigate",({route:e,models:t=[]})=>{e.startsWith("/")||(e=`/${e}`),this.router.transitionTo(e,...t)}),A(this,"resource",function(e){if(!e)throw new Error("Unknown package name. Make sure you set a static packageName property on your AdminX component class")
130
+ i?.set("active",!0),this.themeManagement.activeTheme=i}}}),I(this,"onInvalidate",e=>{if(!(e in F))throw new Error(`A mutation invalidating ${e} succeeded in AdminX but there is no mapping to an Ember type. Add one to emberDataTypeMapping`)
131
+ if(null===F[e])return
132
+ const{type:t,singleton:i}=F[e]
133
+ i?console.warn(`An AdminX mutation invalidated ${e}, but this is is marked as a singleton and cannot be reloaded in Ember. You probably wanted to use updateQueries instead of invalidateQueries`):(Ember.run(()=>this.store.unloadAll(t)),"TiersResponseType"===e&&this.membersUtils.reload())}),I(this,"onDelete",(e,t)=>{if(!(e in F))throw new Error(`A mutation deleting ${e} succeeded in AdminX but there is no mapping to an Ember type. Add one to emberDataTypeMapping`)
134
+ if(null===F[e])return
135
+ const{type:i}=F[e],r=this.store.peekRecord(i,t)
136
+ r&&r.unloadRecord()}),I(this,"externalNavigate",({route:e,models:t=[]})=>{e.startsWith("/")||(e=`/${e}`),this.router.transitionTo(e,...t)}),I(this,"resource",function(e){if(!e)throw new Error("Unknown package name. Make sure you set a static packageName property on your AdminX component class")
134
137
  let t,i="pending"
135
- const r=N(e).then(e=>{i="success",t=e},e=>{i="error",t=e})
138
+ const r=R(e).then(e=>{i="success",t=e},e=>{i="error",t=e})
136
139
  return{read:()=>{switch(i){case"pending":throw r
137
140
  case"error":throw t
138
- default:return t}}}}(this.constructor.packageName)),A(this,"AdminXApp",e=>{const{AdminXApp:t}=this.resource.read()
139
- return r.default.createElement(t,e)}),A(this,"additionalProps",()=>({})),A(this,"ReactComponent",()=>{const e=r.default.createElement("div",{className:"admin-x-settings-container--loading",style:{width:"100%",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8vh"}},r.default.createElement("video",{width:"100",height:"100",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,preload:"metadata",style:{width:"100px",height:"100px"}},r.default.createElement("source",{src:"assets/videos/logo-loader-d91f93ba1dbf0f52a22815b5a571bd31.mp4",type:"video/mp4"}),r.default.createElement("div",{className:"gh-loading-spinner"})))
140
- return r.default.createElement("div",{className:["admin-x-settings-container-",this.args.className].filter(Boolean).join(" ")},r.default.createElement(L,null,r.default.createElement(r.Suspense,{fallback:e},r.default.createElement(this.AdminXApp,C({framework:{ghostVersion:n.default.APP.version,externalNavigate:this.externalNavigate,unsplashConfig:I,sentryDSN:this.config.sentry_dsn??null,onUpdate:this.onUpdate,onInvalidate:this.onInvalidate,onDelete:this.onDelete},designSystem:{fetchKoenigLexical:a.default,darkMode:this.feature.nightShift}},this.additionalProps())))))})}onError(e){console.error(e),this.config.sentry_dsn&&t.captureException(e)}},w=D(y.prototype,"ajax",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=D(y.prototype,"feature",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=D(y.prototype,"ghostPaths",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=D(y.prototype,"session",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=D(y.prototype,"store",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=D(y.prototype,"settings",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=D(y.prototype,"router",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=D(y.prototype,"membersUtils",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=D(y.prototype,"themeManagement",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=D(y.prototype,"config",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=D(y.prototype,"display",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"none"}}),D(y.prototype,"onError",[v],Object.getOwnPropertyDescriptor(y.prototype,"onError"),y.prototype),y)}),define("ghost-admin/components/admin-x/demo",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
141
+ default:return t}}}}(this.constructor.packageName)),I(this,"AdminXApp",e=>{const{AdminXApp:t}=this.resource.read()
142
+ return r.default.createElement(t,e)}),I(this,"additionalProps",()=>({})),I(this,"ReactComponent",()=>{const e=r.default.createElement("div",{className:"admin-x-settings-container--loading",style:{width:"100%",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8vh"}},r.default.createElement("video",{width:"100",height:"100",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,preload:"metadata",style:{width:"100px",height:"100px"}},r.default.createElement("source",{src:"assets/videos/logo-loader-d91f93ba1dbf0f52a22815b5a571bd31.mp4",type:"video/mp4"}),r.default.createElement("div",{className:"gh-loading-spinner"})))
143
+ return r.default.createElement("div",{className:["admin-x-settings-container-",this.args.className].filter(Boolean).join(" ")},r.default.createElement(N,null,r.default.createElement(r.Suspense,{fallback:e},r.default.createElement(this.AdminXApp,M({framework:{ghostVersion:n.default.APP.version,externalNavigate:this.externalNavigate,unsplashConfig:L,sentryDSN:this.config.sentry_dsn??null,onUpdate:this.onUpdate,onInvalidate:this.onInvalidate,onDelete:this.onDelete},designSystem:{fetchKoenigLexical:s.default,darkMode:this.feature.nightShift}},this.additionalProps())))))})}onError(e){console.error(e),this.config.sentry_dsn&&t.captureException(e)}},E=A(w.prototype,"ajax",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=A(w.prototype,"feature",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=A(w.prototype,"ghostPaths",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=A(w.prototype,"session",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=A(w.prototype,"store",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=A(w.prototype,"settings",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=A(w.prototype,"router",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=A(w.prototype,"membersUtils",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=A(w.prototype,"themeManagement",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=A(w.prototype,"config",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=A(w.prototype,"display",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"none"}}),A(w.prototype,"onError",[y],Object.getOwnPropertyDescriptor(w.prototype,"onError"),w.prototype),w)}),define("ghost-admin/components/admin-x/demo",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
141
144
  const t=Ember.HTMLBars.template({id:"MvB0+BrI",block:'{"symbols":[],"statements":[[11,"div"],[4,[38,0],[[32,0,["ReactComponent"]]],null],[12],[13]],"hasEval":false,"upvars":["react-render"]}',moduleName:"ghost-admin/components/admin-x/demo.hbs"})
142
145
  e.default=Ember._setComponentTemplate(t,Ember._templateOnlyComponent())}),define("ghost-admin/components/admin-x/posts",["exports","ghost-admin/components/admin-x/admin-x-component"],function(e,t){var i,r,n,a
143
146
  function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
@@ -4370,7 +4373,7 @@ const e=await this.ajax.request("/ghost/api/admin/identities/"),t=e?.identities?
4370
4373
  if(!t)return this.count=0,0
4371
4374
  const i=await this.ajax.request("/ghost/api/admin/site"),r=i?.site?.url
4372
4375
  if(!r)return this.count=0,0
4373
- const n=new URL("/.ghost/activitypub/v1/notifications/unread/count",r).toString(),a=await this.ajax.request(n,{headers:{Authorization:`Bearer ${t}`,Accept:"application/activity+json"}})
4376
+ const n=new URL("/.ghost/activitypub/stable/notifications/unread/count",r).toString(),a=await this.ajax.request(n,{headers:{Authorization:`Bearer ${t}`,Accept:"application/activity+json"}})
4374
4377
  return this.count=a.count||0,this.count}catch(e){return this.count=0,0}finally{this.isLoading=!1}}updateCount(e){this.count=e}},s=c(a.prototype,"ajax",[t],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=c(a.prototype,"session",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=c(a.prototype,"count",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=c(a.prototype,"isLoading",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a)}),define("ghost-admin/services/notifications",["exports","@sentry/ember","tracked-built-ins","ghost-admin/decorators/inject","ghost-admin/services/ajax"],function(e,t,i,r,n){var a,s,o,l,u,d,c,p
4375
4378
  function m(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function h(e,t,i,r,n){var a={}
4376
4379
  return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GENERIC_ERROR_MESSAGE=void 0
@@ -4836,4 +4839,4 @@ e.default=t.default.create({properties:["name","event","targetUrl","secret"],nam
4836
4839
  e.default=Ember.Component.extend({})}),define("ghost-admin/config/environment",[],function(){try{var e="ghost-admin/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),i={default:JSON.parse(decodeURIComponent(t))}
4837
4840
  return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("ghost-admin/app").default.create({version:"6.0",name:"ghost-admin"})
4838
4841
 
4839
- //# sourceMappingURL=ghost-e3abd6c9a244e3d022f226cb47e55170.map
4842
+ //# sourceMappingURL=ghost-507b970056f85756cdc9e16e5bcea9d5.map