ghost 5.42.1 → 5.42.3

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 (119) hide show
  1. package/components/{tryghost-adapter-cache-memory-ttl-5.42.1.tgz → tryghost-adapter-cache-memory-ttl-5.42.3.tgz} +0 -0
  2. package/components/tryghost-adapter-cache-redis-5.42.3.tgz +0 -0
  3. package/components/{tryghost-adapter-manager-5.42.1.tgz → tryghost-adapter-manager-5.42.3.tgz} +0 -0
  4. package/components/tryghost-api-framework-5.42.3.tgz +0 -0
  5. package/components/{tryghost-api-version-compatibility-service-5.42.1.tgz → tryghost-api-version-compatibility-service-5.42.3.tgz} +0 -0
  6. package/components/{tryghost-audience-feedback-5.42.1.tgz → tryghost-audience-feedback-5.42.3.tgz} +0 -0
  7. package/components/tryghost-bootstrap-socket-5.42.3.tgz +0 -0
  8. package/components/tryghost-constants-5.42.3.tgz +0 -0
  9. package/components/{tryghost-custom-theme-settings-service-5.42.1.tgz → tryghost-custom-theme-settings-service-5.42.3.tgz} +0 -0
  10. package/components/{tryghost-data-generator-5.42.1.tgz → tryghost-data-generator-5.42.3.tgz} +0 -0
  11. package/components/tryghost-domain-events-5.42.3.tgz +0 -0
  12. package/components/tryghost-dynamic-routing-events-5.42.3.tgz +0 -0
  13. package/components/{tryghost-email-analytics-provider-mailgun-5.42.1.tgz → tryghost-email-analytics-provider-mailgun-5.42.3.tgz} +0 -0
  14. package/components/tryghost-email-analytics-service-5.42.3.tgz +0 -0
  15. package/components/tryghost-email-content-generator-5.42.3.tgz +0 -0
  16. package/components/{tryghost-email-events-5.42.1.tgz → tryghost-email-events-5.42.3.tgz} +0 -0
  17. package/components/tryghost-email-service-5.42.3.tgz +0 -0
  18. package/components/tryghost-email-suppression-list-5.42.3.tgz +0 -0
  19. package/components/{tryghost-event-aware-cache-wrapper-5.42.1.tgz → tryghost-event-aware-cache-wrapper-5.42.3.tgz} +0 -0
  20. package/components/{tryghost-express-dynamic-redirects-5.42.1.tgz → tryghost-express-dynamic-redirects-5.42.3.tgz} +0 -0
  21. package/components/{tryghost-external-media-inliner-5.42.1.tgz → tryghost-external-media-inliner-5.42.3.tgz} +0 -0
  22. package/components/{tryghost-extract-api-key-5.42.1.tgz → tryghost-extract-api-key-5.42.3.tgz} +0 -0
  23. package/components/tryghost-html-to-plaintext-5.42.3.tgz +0 -0
  24. package/components/tryghost-i18n-5.42.3.tgz +0 -0
  25. package/components/{tryghost-importer-handler-content-files-5.42.1.tgz → tryghost-importer-handler-content-files-5.42.3.tgz} +0 -0
  26. package/components/{tryghost-importer-revue-5.42.1.tgz → tryghost-importer-revue-5.42.3.tgz} +0 -0
  27. package/components/{tryghost-job-manager-5.42.1.tgz → tryghost-job-manager-5.42.3.tgz} +0 -0
  28. package/components/tryghost-link-redirects-5.42.3.tgz +0 -0
  29. package/components/tryghost-link-replacer-5.42.3.tgz +0 -0
  30. package/components/{tryghost-link-tracking-5.42.1.tgz → tryghost-link-tracking-5.42.3.tgz} +0 -0
  31. package/components/{tryghost-magic-link-5.42.1.tgz → tryghost-magic-link-5.42.3.tgz} +0 -0
  32. package/components/tryghost-mailgun-client-5.42.3.tgz +0 -0
  33. package/components/{tryghost-member-attribution-5.42.1.tgz → tryghost-member-attribution-5.42.3.tgz} +0 -0
  34. package/components/tryghost-member-events-5.42.3.tgz +0 -0
  35. package/components/{tryghost-members-api-5.42.1.tgz → tryghost-members-api-5.42.3.tgz} +0 -0
  36. package/components/{tryghost-members-csv-5.42.1.tgz → tryghost-members-csv-5.42.3.tgz} +0 -0
  37. package/components/{tryghost-members-events-service-5.42.1.tgz → tryghost-members-events-service-5.42.3.tgz} +0 -0
  38. package/components/tryghost-members-importer-5.42.3.tgz +0 -0
  39. package/components/tryghost-members-offers-5.42.3.tgz +0 -0
  40. package/components/{tryghost-members-payments-5.42.1.tgz → tryghost-members-payments-5.42.3.tgz} +0 -0
  41. package/components/tryghost-members-ssr-5.42.3.tgz +0 -0
  42. package/components/{tryghost-members-stripe-service-5.42.1.tgz → tryghost-members-stripe-service-5.42.3.tgz} +0 -0
  43. package/components/{tryghost-mentions-email-report-5.42.1.tgz → tryghost-mentions-email-report-5.42.3.tgz} +0 -0
  44. package/components/{tryghost-milestones-5.42.1.tgz → tryghost-milestones-5.42.3.tgz} +0 -0
  45. package/components/{tryghost-minifier-5.42.1.tgz → tryghost-minifier-5.42.3.tgz} +0 -0
  46. package/components/tryghost-mw-api-version-mismatch-5.42.3.tgz +0 -0
  47. package/components/tryghost-mw-cache-control-5.42.3.tgz +0 -0
  48. package/components/tryghost-mw-error-handler-5.42.3.tgz +0 -0
  49. package/components/tryghost-mw-session-from-token-5.42.3.tgz +0 -0
  50. package/components/tryghost-mw-update-user-last-seen-5.42.3.tgz +0 -0
  51. package/components/tryghost-mw-version-match-5.42.3.tgz +0 -0
  52. package/components/tryghost-mw-vhost-5.42.3.tgz +0 -0
  53. package/components/{tryghost-oembed-service-5.42.1.tgz → tryghost-oembed-service-5.42.3.tgz} +0 -0
  54. package/components/tryghost-package-json-5.42.3.tgz +0 -0
  55. package/components/tryghost-posts-service-5.42.3.tgz +0 -0
  56. package/components/tryghost-referrers-5.42.3.tgz +0 -0
  57. package/components/tryghost-security-5.42.3.tgz +0 -0
  58. package/components/tryghost-session-service-5.42.3.tgz +0 -0
  59. package/components/tryghost-settings-path-manager-5.42.3.tgz +0 -0
  60. package/components/{tryghost-slack-notifications-5.42.1.tgz → tryghost-slack-notifications-5.42.3.tgz} +0 -0
  61. package/components/{tryghost-staff-service-5.42.1.tgz → tryghost-staff-service-5.42.3.tgz} +0 -0
  62. package/components/{tryghost-stats-service-5.42.1.tgz → tryghost-stats-service-5.42.3.tgz} +0 -0
  63. package/components/{tryghost-tiers-5.42.1.tgz → tryghost-tiers-5.42.3.tgz} +0 -0
  64. package/components/{tryghost-update-check-service-5.42.1.tgz → tryghost-update-check-service-5.42.3.tgz} +0 -0
  65. package/components/tryghost-verification-trigger-5.42.3.tgz +0 -0
  66. package/components/{tryghost-version-notifications-data-service-5.42.1.tgz → tryghost-version-notifications-data-service-5.42.3.tgz} +0 -0
  67. package/components/{tryghost-webmentions-5.42.1.tgz → tryghost-webmentions-5.42.3.tgz} +0 -0
  68. package/core/built/admin/assets/{chunk.143.75bf7cec44ff1be6d281.js → chunk.143.d8ff82a24cae66011524.js} +5 -5
  69. package/core/built/admin/assets/{chunk.178.da3cd2eb1f532453497d.js → chunk.178.f6ada740ff9362d3ce09.js} +4 -4
  70. package/core/built/admin/assets/{chunk.580.ca53e3417715b59cfb59.js → chunk.234.b9c875c2897cfa768789.js} +589 -678
  71. package/core/built/admin/assets/ghost-190bf0eacd6acd718615616770dc8a99.css +1 -0
  72. package/core/built/admin/assets/{ghost-edad3e564faafe551e20323d82a23636.js → ghost-230f1ee812a92b7cd06bfa035994d093.js} +4529 -4449
  73. package/core/built/admin/assets/ghost-dark-79c98a102be37f72f679e924a51945bc.css +1 -0
  74. package/core/built/admin/assets/{vendor-fcd4f09ebc985b1bd9ea37bdf7954c18.js → vendor-da13470386c6ee05178d49830c64d7ab.js} +48 -51
  75. package/core/built/admin/index.html +5 -5
  76. package/core/frontend/public/ghost.min.css +1 -1
  77. package/core/server/api/endpoints/posts.js +45 -0
  78. package/core/server/api/endpoints/utils/serializers/output/posts.js +20 -0
  79. package/core/server/models/base/plugins/bulk-operations.js +21 -10
  80. package/core/server/web/api/endpoints/admin/routes.js +2 -0
  81. package/core/shared/config/defaults.json +1 -1
  82. package/package.json +160 -160
  83. package/yarn.lock +591 -350
  84. package/components/tryghost-adapter-cache-redis-5.42.1.tgz +0 -0
  85. package/components/tryghost-api-framework-5.42.1.tgz +0 -0
  86. package/components/tryghost-bootstrap-socket-5.42.1.tgz +0 -0
  87. package/components/tryghost-constants-5.42.1.tgz +0 -0
  88. package/components/tryghost-domain-events-5.42.1.tgz +0 -0
  89. package/components/tryghost-dynamic-routing-events-5.42.1.tgz +0 -0
  90. package/components/tryghost-email-analytics-service-5.42.1.tgz +0 -0
  91. package/components/tryghost-email-content-generator-5.42.1.tgz +0 -0
  92. package/components/tryghost-email-service-5.42.1.tgz +0 -0
  93. package/components/tryghost-email-suppression-list-5.42.1.tgz +0 -0
  94. package/components/tryghost-html-to-plaintext-5.42.1.tgz +0 -0
  95. package/components/tryghost-i18n-5.42.1.tgz +0 -0
  96. package/components/tryghost-link-redirects-5.42.1.tgz +0 -0
  97. package/components/tryghost-link-replacer-5.42.1.tgz +0 -0
  98. package/components/tryghost-mailgun-client-5.42.1.tgz +0 -0
  99. package/components/tryghost-member-events-5.42.1.tgz +0 -0
  100. package/components/tryghost-members-importer-5.42.1.tgz +0 -0
  101. package/components/tryghost-members-offers-5.42.1.tgz +0 -0
  102. package/components/tryghost-members-ssr-5.42.1.tgz +0 -0
  103. package/components/tryghost-mw-api-version-mismatch-5.42.1.tgz +0 -0
  104. package/components/tryghost-mw-cache-control-5.42.1.tgz +0 -0
  105. package/components/tryghost-mw-error-handler-5.42.1.tgz +0 -0
  106. package/components/tryghost-mw-session-from-token-5.42.1.tgz +0 -0
  107. package/components/tryghost-mw-update-user-last-seen-5.42.1.tgz +0 -0
  108. package/components/tryghost-mw-version-match-5.42.1.tgz +0 -0
  109. package/components/tryghost-mw-vhost-5.42.1.tgz +0 -0
  110. package/components/tryghost-package-json-5.42.1.tgz +0 -0
  111. package/components/tryghost-posts-service-5.42.1.tgz +0 -0
  112. package/components/tryghost-referrers-5.42.1.tgz +0 -0
  113. package/components/tryghost-security-5.42.1.tgz +0 -0
  114. package/components/tryghost-session-service-5.42.1.tgz +0 -0
  115. package/components/tryghost-settings-path-manager-5.42.1.tgz +0 -0
  116. package/components/tryghost-verification-trigger-5.42.1.tgz +0 -0
  117. package/core/built/admin/assets/ghost-0b2e282fd281b16ee656b554d7bc4863.css +0 -1
  118. package/core/built/admin/assets/ghost-dark-c05706ed6261cfa7944426e1ef933462.css +0 -1
  119. /package/core/built/admin/assets/{chunk.580.ca53e3417715b59cfb59.js.LICENSE.txt → chunk.234.b9c875c2897cfa768789.js.LICENSE.txt} +0 -0
@@ -9114,32 +9114,27 @@ return t("ui.ember.route.after_model",this.fullRouteName,super.afterModel.bind(t
9114
9114
  return t("ui.ember.route.setup_controller",this.fullRouteName,super.setupController.bind(this),r)}}}[e.name]}
9115
9115
  const a=i
9116
9116
  e.init=a})),define("@sentry/ember/instance-initializers/sentry-performance",["exports","@sentry/browser","@sentry/ember","@sentry/utils"],(function(e,t,r,n){"use strict"
9117
- function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
9118
- var r=e[Symbol.toPrimitive]
9119
- if(void 0!==r){var n=r.call(e,t||"default")
9120
- if("object"!=typeof n)return n
9121
- throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
9122
- return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){const e=n.GLOBAL_OBJ
9117
+ function i(){const e=n.GLOBAL_OBJ
9123
9118
  e.__sentryEmberConfig=e.__sentryEmberConfig??{}
9124
9119
  const t={disablePerformance:!0,sentry:{}}
9125
- return t.sentry||(t.sentry={browserTracingOptions:{}}),Object.assign(t.sentry,e.__sentryEmberConfig),t}function a(e){const t=e.lookup("service:fastboot")
9120
+ return t.sentry||(t.sentry={browserTracingOptions:{}}),Object.assign(t.sentry,e.__sentryEmberConfig),t}function o(e){const t=e.lookup("service:fastboot")
9126
9121
  if(t?.isFastBoot)return
9127
- if(o().disablePerformance)return
9128
- h(e)}function s(){return Ember.run.backburner||Ember.run.backburner?Ember.run.backburner:{on(){},off(){}}}function l(e,t,r,n,i){const{disableRunloopPerformance:o}=r
9129
- let a,l
9122
+ if(i().disablePerformance)return
9123
+ d(e)}function a(){return Ember.run.backburner||Ember.run.backburner?Ember.run.backburner:{on(){},off(){}}}function s(e,t,r,n,i){const{disableRunloopPerformance:o}=r
9124
+ let s,l
9130
9125
  const u=function(e){if(!e||!e.getURL||!e.formatURL)return""
9131
9126
  const t=e.formatURL(e.getURL())
9132
9127
  return"hash"===e.implementation?`${e.rootURL}${t}`:t}(t.location)
9133
9128
  if(i&&u){const t=e.recognize(u)
9134
- a=n({name:`route:${t.name}`,op:"pageload",tags:{url:u,toRoute:t.name,"routing.instrumentation":"@sentry/ember"}})}const c=function(e,t){t||(a.finish(),s().off("end",c))}
9129
+ s=n({name:`route:${t.name}`,op:"pageload",tags:{url:u,toRoute:t.name,"routing.instrumentation":"@sentry/ember"}})}const c=function(e,t){t||(s.finish(),a().off("end",c))}
9135
9130
  return e.on("routeWillChange",(t=>{const{fromRoute:r,toRoute:i}=function(e,t){const r=e?.from?.name
9136
9131
  return{fromRoute:r,toRoute:e&&e.to?e.to.name:t.currentRouteName}}(t,e)
9137
- a?.finish(),a=n({name:`route:${i}`,op:"navigation",tags:{fromRoute:r,toRoute:i,"routing.instrumentation":"@sentry/ember"}}),l=a.startChild({op:"ui.ember.transition",description:`route:${r} -> route:${i}`})})),e.on("routeDidChange",(()=>{l&&a&&(l.finish(),o?a.finish():s().on("end",c))})),{startTransaction:n}}function u(e,t){const r={payload:e,now:(0,n.timestampWithMs)()}
9138
- t[e.object]=r}function c(e,t,i,o){const a=t[e.object]
9132
+ s?.finish(),s=n({name:`route:${i}`,op:"navigation",tags:{fromRoute:r,toRoute:i,"routing.instrumentation":"@sentry/ember"}}),l=s.startChild({op:"ui.ember.transition",description:`route:${r} -> route:${i}`})})),e.on("routeDidChange",(()=>{l&&s&&(l.finish(),o?s.finish():a().on("end",c))})),{startTransaction:n}}function l(e,t){const r={payload:e,now:(0,n.timestampWithMs)()}
9133
+ t[e.object]=r}function u(e,t,i,o){const a=t[e.object]
9139
9134
  if(!a)return
9140
9135
  const s=(0,n.timestampWithMs)()
9141
9136
  if(1e3*(s-a.now)>=o){const t=(0,r.getActiveTransaction)()
9142
- t?.startChild({op:i,description:e.containerKey||e.object,startTimestamp:a.now,endTimestamp:s})}}function d(e){const t="@sentry/ember:initial-load-start",i="@sentry/ember:initial-load-end"
9137
+ t?.startChild({op:i,description:e.containerKey||e.object,startTimestamp:a.now,endTimestamp:s})}}function c(e){const t="@sentry/ember:initial-load-start",i="@sentry/ember:initial-load-end"
9143
9138
  let{HAS_PERFORMANCE:o,HAS_PERFORMANCE_TIMING:a}=function(){const e=window.performance,t=Boolean(e&&e.clearMarks&&e.clearMeasures),r=Boolean(e.measure&&e.getEntriesByName&&void 0!==n.browserPerformanceTimeOrigin)
9144
9139
  return{HAS_PERFORMANCE:t,HAS_PERFORMANCE_TIMING:r}}()
9145
9140
  if(!o)return
@@ -9150,23 +9145,22 @@ const l="@sentry/ember:initial-load",u=s.getEntriesByName(t).length>0,c=s.getEnt
9150
9145
  if(!u||!c)return
9151
9146
  s.measure(l,t,i)
9152
9147
  const d=s.getEntriesByName(l)[0],h=(d.startTime+n.browserPerformanceTimeOrigin)/1e3,p=h+d.duration/1e3,f=(0,r.getActiveTransaction)(),m=f?.startChild({op:"ui.ember.init",startTimestamp:h})
9153
- m?.finish(p),s.clearMarks(t),s.clearMarks(i),s.clearMeasures(l)}async function h(e){const a=o(),h=a.sentry,p=a.browserTracingOptions||a.sentry.browserTracingOptions||{},{BrowserTracing:f}=await emberAutoImportDynamic("@sentry/browser"),m=a.transitionTimeout||5e3,g=h.integrations||[]
9154
- h.integrations=[...g,new f({routingInstrumentation:(t,r)=>{const n=e.lookup("router:main")
9148
+ m?.finish(p),s.clearMarks(t),s.clearMarks(i),s.clearMeasures(l)}async function d(e){const o=i(),d=(o.sentry,o.browserTracingOptions||o.sentry.browserTracingOptions||{}),{BrowserTracing:h}=await emberAutoImportDynamic("@sentry/browser"),p=new h({routingInstrumentation:(t,r)=>{const n=e.lookup("router:main")
9155
9149
  let i=e.lookup("service:router")
9156
- i.externalRouter&&(i=i.externalRouter),i._hasMountedSentryPerformanceRouting||i.recognize&&(i._hasMountedSentryPerformanceRouting=!0,l(i,n,a,t,r))},idleTimeout:m,...p})]
9157
- class v{constructor(){i(this,"name",v.id)}setupOnce(){}}i(v,"id","BrowserTracing"),t.init(h),function(e){const{disableRunloopPerformance:t,minimumRunloopQueueDuration:i}=e
9150
+ i.externalRouter&&(i=i.externalRouter),i._hasMountedSentryPerformanceRouting||i.recognize&&(i._hasMountedSentryPerformanceRouting=!0,s(i,n,o,t,r))},idleTimeout:o.transitionTimeout||5e3,...d}),f=t.getCurrentHub().getClient()
9151
+ f&&f.addIntegration&&f.addIntegration(p),function(e){const{disableRunloopPerformance:t,minimumRunloopQueueDuration:i}=e
9158
9152
  if(t)return
9159
- let o,a
9153
+ let o,s
9160
9154
  const l=["actions","routerTransitions","render","afterRender","destroy"]
9161
- s().on("begin",((e,t)=>{if(t)return
9162
- const s=(0,r.getActiveTransaction)()
9163
- s&&(a&&a.finish(),o=(0,n.timestampWithMs)(),l.forEach((e=>{Ember.run.scheduleOnce(e,null,(()=>{Ember.run.scheduleOnce(e,null,(()=>{if(o){const t=(0,n.timestampWithMs)()
9164
- 1e3*(t-o)>=(i??5)&&s?.startChild({op:`ui.ember.runloop.${e}`,startTimestamp:o,endTimestamp:t}).finish(),o=void 0}(0,r.getActiveTransaction)()&&(o=(0,n.timestampWithMs)())}))}))})))})),s().on("end",((e,t)=>{t||a&&(a.finish(),a=void 0)}))}(a),function(e){const{disableInstrumentComponents:t,minimumComponentRenderDuration:r,enableComponentDefinitions:n}=e
9155
+ a().on("begin",((e,t)=>{if(t)return
9156
+ const a=(0,r.getActiveTransaction)()
9157
+ a&&(s&&s.finish(),o=(0,n.timestampWithMs)(),l.forEach((e=>{Ember.run.scheduleOnce(e,null,(()=>{Ember.run.scheduleOnce(e,null,(()=>{if(o){const t=(0,n.timestampWithMs)()
9158
+ 1e3*(t-o)>=(i??5)&&a?.startChild({op:`ui.ember.runloop.${e}`,startTimestamp:o,endTimestamp:t}).finish(),o=void 0}(0,r.getActiveTransaction)()&&(o=(0,n.timestampWithMs)())}))}))})))})),a().on("end",((e,t)=>{t||s&&(s.finish(),s=void 0)}))}(o),function(e){const{disableInstrumentComponents:t,minimumComponentRenderDuration:r,enableComponentDefinitions:n}=e
9165
9159
  if(t)return
9166
9160
  const i=r??2,o={},a={}
9167
- Ember.Instrumentation.subscribe("render.component",{before(e,t,r){u(r,o)},after(e,t,r,n){c(r,o,"ui.ember.component.render",i)}}),n&&Ember.Instrumentation.subscribe("render.getComponentDefinition",{before(e,t,r){u(r,a)},after(e,t,r,n){c(r,a,"ui.ember.component.definition",0)}})}(a),d(a)}Object.defineProperty(e,"__esModule",{value:!0}),e._instrumentEmberRouter=l,e.default=void 0,e.initialize=a,e.instrumentForPerformance=h
9168
- var p={initialize:a}
9169
- e.default=p})),define("@sentry/ember/types",["exports"],(function(e){"use strict"
9161
+ Ember.Instrumentation.subscribe("render.component",{before(e,t,r){l(r,o)},after(e,t,r,n){u(r,o,"ui.ember.component.render",i)}}),n&&Ember.Instrumentation.subscribe("render.getComponentDefinition",{before(e,t,r){l(r,a)},after(e,t,r,n){u(r,a,"ui.ember.component.definition",0)}})}(o),c(o)}Object.defineProperty(e,"__esModule",{value:!0}),e._instrumentEmberRouter=s,e.default=void 0,e.initialize=o,e.instrumentForPerformance=d
9162
+ var h={initialize:o}
9163
+ e.default=h})),define("@sentry/ember/types",["exports"],(function(e){"use strict"
9170
9164
  Object.defineProperty(e,"__esModule",{value:!0})})),define("@tryghost/ember-promise-modals/components/modal-container",["exports","@tryghost/ember-promise-modals/templates/components/modal-container"],(function(e,t){"use strict"
9171
9165
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
9172
9166
  var r=Ember.Component.extend({layout:t.default,tagName:"",modals:Ember.inject.service()})
@@ -11872,7 +11866,9 @@ e.default={content:'<circle cx="20" cy="20" r="20" fill="#51B1EF"/><path d="M30.
11872
11866
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11873
11867
  e.default={content:'<rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="translate(0 -40)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(30 124.641 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.08333333333333333s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(60 84.641 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.16666666666666666s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(90 70 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.25s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(120 61.547 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.3333333333333333s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(150 55.359 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.4166666666666667s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(180 50 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.5s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(-150 44.641 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.5833333333333334s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(-120 38.453 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.6666666666666666s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(-90 30 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.75s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(-60 15.359 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.8333333333333334s" repeatCount="indefinite"/></rect><rect x="46.5" y="40" width="7" height="20" rx="5" ry="5" fill="#fefefe" transform="rotate(-30 -24.641 70)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="0.9166666666666666s" repeatCount="indefinite"/></rect>',attrs:{viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",class:"spinner_svg__uil-default"}}})),define("ember-svg-jar/inlined/staff",["exports"],(function(e){"use strict"
11874
11868
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11875
- e.default={content:'<defs><style>.staff_svg__cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class="staff_svg__cls-1" d="M22.63 14.869L15 22.5l-3.75.75.75-3.75 7.63-7.631a2.116 2.116 0 012.992 0l.008.009a2.113 2.113 0 010 2.991z"/><circle class="staff_svg__cls-1" cx="7.5" cy="4.875" r="4.125"/><path class="staff_svg__cls-1" d="M13.338 13.919A6.729 6.729 0 00.75 17.25"/>',attrs:{id:"staff_svg__Regular",viewBox:"0 0 24 24"}}})),define("ember-svg-jar/inlined/stats",["exports"],(function(e){"use strict"
11869
+ e.default={content:'<defs><style>.staff_svg__cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class="staff_svg__cls-1" d="M22.63 14.869L15 22.5l-3.75.75.75-3.75 7.63-7.631a2.116 2.116 0 012.992 0l.008.009a2.113 2.113 0 010 2.991z"/><circle class="staff_svg__cls-1" cx="7.5" cy="4.875" r="4.125"/><path class="staff_svg__cls-1" d="M13.338 13.919A6.729 6.729 0 00.75 17.25"/>',attrs:{id:"staff_svg__Regular",viewBox:"0 0 24 24"}}})),define("ember-svg-jar/inlined/star",["exports"],(function(e){"use strict"
11870
+ Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11871
+ e.default={content:'<path d="M23.56 8.73a1.51 1.51 0 00-1.41-1h-6.09a.5.5 0 01-.47-.33l-2.18-6.2A1.52 1.52 0 0012 .25a1.49 1.49 0 00-1.4 1L8.41 7.42a.5.5 0 01-.47.33H1.85a1.5 1.5 0 00-1.41 1 1.52 1.52 0 00.45 1.65l5.18 4.3a.5.5 0 01.16.54l-2.18 6.53a1.5 1.5 0 002.31 1.69l5.34-3.92a.49.49 0 01.59 0l5.35 3.92A1.5 1.5 0 0020 21.77l-2.18-6.53a.5.5 0 01.16-.54l5.19-4.31a1.51 1.51 0 00.39-1.66z"/>',attrs:{viewBox:"0 0 24 24",fill:"currentColor"}}})),define("ember-svg-jar/inlined/stats",["exports"],(function(e){"use strict"
11876
11872
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11877
11873
  e.default={content:'<path d="M14 3h-4v18h4V3zM5 14H1v7h4v-7zm18-5h-4v12h4V9z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>',attrs:{fill:"none",viewBox:"0 0 24 24"}}})),define("ember-svg-jar/inlined/stripe-verified-partner-badge",["exports"],(function(e){"use strict"
11878
11874
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
@@ -11880,10 +11876,10 @@ e.default={content:'<g fill="none"><rect fill="#FFF" width="174" height="28" rx=
11880
11876
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11881
11877
  e.default={content:'<g fill="none" fill-rule="evenodd"><path d="M.5.5h173v119H.5z"/><path d="M141.406 39.442a58.61 58.61 0 013.626 20.359c0 32.453-26.347 58.8-58.8 58.8-32.453 0-58.801-26.347-58.801-58.8 0-5.592.782-11.003 2.244-16.13m13.228-23.605C53.655 8.35 69.092 1 86.232 1A58.52 58.52 0 01111.3 6.604" stroke="#9BAEB8"/><path d="M28.25 67.39c1.17-.677 1.966-1.134 3.137-1.134 4.495 0 8.99 6.742 13.485 6.742.256 0 .512-.022.768-.063m3.392-1.466c3.108-1.989 6.217-5.213 9.325-5.213 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.486-6.742 4.495 0 8.99 6.742 13.485 6.742 4.495 0 8.99-6.742 13.485-6.742 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.485-6.742 1.747 0 3.216 1.018 4.963 2.263M29.134 73.677c.75-.314 1.502-.502 2.253-.502 4.495 0 8.99 6.742 13.485 6.742.643 0 1.287-.138 1.93-.375m3.328-1.9c2.742-1.957 5.485-4.467 8.227-4.467 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.486-6.742 4.495 0 8.99 6.742 13.485 6.742 4.495 0 8.99-6.742 13.485-6.742 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.485-6.742 1.292 0 2.584.557 3.876 1.35M31.387 80.934c4.495 0 8.99 6.743 13.485 6.743 1.088 0 2.176-.395 3.264-.994m3.236-2.196c2.329-1.744 4.657-3.553 6.985-3.553 4.495 0 8.99 6.743 13.485 6.743 4.496 0 8.99-6.743 13.486-6.743 4.495 0 8.99 6.743 13.485 6.743 4.495 0 8.99-6.743 13.485-6.743 4.495 0 8.99 6.743 13.485 6.743 4.496 0 8.99-6.743 13.485-6.743.599 0 1.197.12 1.796.327" opacity=".6" stroke="#9BAEB8" stroke-linecap="round" stroke-linejoin="round"/><path d="M37.5 91.958H49m3.648 0h82.802" stroke="#9BAEB8" stroke-linecap="round" stroke-linejoin="round"/><path d="M62.934 98.943h2.915m-2.915 12.633h2.915m-9.658-5.891h2.915m18.072-6.643h2.915m-2.915 12.633h2.915m-9.658-5.891h2.915m18.072-6.644h2.914m-2.914 12.634h2.914m-9.657-5.891h2.915m18.071-6.643h2.915m-2.915 12.633h2.915m-9.657-5.891h2.915m18.072-6.644h2.915m-9.659 6.742h2.916" opacity=".6" stroke="#9BAEB8" stroke-linecap="round" stroke-linejoin="round"/><path d="M124.204 2.259c12.425 0 22.513 10.088 22.513 22.513 0 12.426-10.088 22.514-22.513 22.514-12.426 0-22.514-10.088-22.514-22.514 0-12.425 10.088-22.513 22.514-22.513zM40.658 45.534l9.62 52.937 3.57.033-9.607-53.532" stroke="#9BAEB8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M1 54.092s4.315-6.154 9.489-7.083c5.173-.929 11.36 3.341 11.36 3.341s4.234-6.14 9.488-7.083c5.254-.942 11.36 3.341 11.36 3.341s4.276-6.147 9.488-7.082c5.213-.936 11.36 3.34 11.36 3.34s4.885-6.256 9.488-7.082c4.604-.826 11.36 3.341 11.36 3.341S65.225 15.665 38.02 20.548C10.813 25.431 1 54.092 1 54.092z" stroke="#9BAEB8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.138 49.682s.187-10.218 3.941-17.137c3.754-6.918 8.836-8.89 12.421-11.407" stroke="#9BAEB8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M63.025 42.198s-3.728-9.515-9.654-14.696c-5.926-5.182-14.612-6.364-15.871-6.364m1.007 0l4.027 24.802" stroke="#9BAEB8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g>',attrs:{viewBox:"0 0 174 120"}}})),define("ember-svg-jar/inlined/sun",["exports"],(function(e){"use strict"
11882
11878
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11883
- e.default={content:'<defs><style>.sun_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class="sun_svg__a" cx="12" cy="12" r="4.5"/><path class="sun_svg__a" d="M12 .75V4.5m0 15v3.75M23.25 12H19.5m-15 0H.75m19.5-8.25l-3 3m-10.5 10.5l-3 3m16.5 0l-3-3M6.75 6.75l-3-3"/>',attrs:{viewBox:"0 0 24 24"}}})),define("ember-svg-jar/inlined/suppression-notice-bounced",["exports"],(function(e){"use strict"
11879
+ e.default={content:'<defs><style>.sun_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class="sun_svg__a" cx="12" cy="12" r="4.5"/><path class="sun_svg__a" d="M12 .75V4.5m0 15v3.75M23.25 12H19.5m-15 0H.75m19.5-8.25l-3 3m-10.5 10.5l-3 3m16.5 0l-3-3M6.75 6.75l-3-3"/>',attrs:{viewBox:"0 0 24 24"}}}))
11880
+ define("ember-svg-jar/inlined/suppression-notice-bounced",["exports"],(function(e){"use strict"
11884
11881
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11885
- e.default={content:'<path d="M37.2 37.127l12.237 12.238M37.2 49.362l12.237-12.237" stroke="red" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"/><path d="M31.316 53.983l-7.99-7.956-8.58 4.433.334-12.717m0 0L5.033 27.697a4.033 4.033 0 01-1.1-3.667 4.106 4.106 0 012.713-3.15L45.98 7.757a4.106 4.106 0 015.28 5.276L45 30m-29.92 7.743l35.006-29.18" stroke="#CAD1D8" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>',attrs:{fill:"none",viewBox:"0 0 60 60"}}}))
11886
- define("ember-svg-jar/inlined/suppression-notice-flagged",["exports"],(function(e){"use strict"
11882
+ e.default={content:'<path d="M37.2 37.127l12.237 12.238M37.2 49.362l12.237-12.237" stroke="red" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round"/><path d="M31.316 53.983l-7.99-7.956-8.58 4.433.334-12.717m0 0L5.033 27.697a4.033 4.033 0 01-1.1-3.667 4.106 4.106 0 012.713-3.15L45.98 7.757a4.106 4.106 0 015.28 5.276L45 30m-29.92 7.743l35.006-29.18" stroke="#CAD1D8" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>',attrs:{fill:"none",viewBox:"0 0 60 60"}}})),define("ember-svg-jar/inlined/suppression-notice-flagged",["exports"],(function(e){"use strict"
11887
11883
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
11888
11884
  e.default={content:'<path d="M31.316 53.983l-7.99-7.956-8.58 4.433.334-12.717m0 0L5.033 27.697a4.033 4.033 0 01-1.1-3.667 4.106 4.106 0 012.713-3.15L45.98 7.757a4.106 4.106 0 015.28 5.276L45 30m-29.92 7.743l35.006-29.18" stroke="#CAD1D8" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/><path d="M41.474 37.2v7.65" stroke="#F50B23" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/><circle cx="41.399" cy="51.1" r="1.5" fill="#F50B23"/>',attrs:{fill:"none",viewBox:"0 0 60 60"}}})),define("ember-svg-jar/inlined/sync",["exports"],(function(e){"use strict"
11889
11885
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
@@ -12023,11 +12019,11 @@ if(!this.isDestroying&&!this.isDestroyed&&t){for(var r=arguments.length,n=new Ar
12023
12019
  t(...n)}},_cleanupTimers(){Ember.run.cancel(this.get("_showTimer")),cancelAnimationFrame(this._spacingRequestId)}})
12024
12020
  function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
12025
12021
  const r=Object.keys(e),n=Object.keys(t),i=[].concat(r,n).reduce(((e,t)=>(-1===e.indexOf(t)&&e.push(t),e)),[]),o={...e}
12026
- return i.forEach((i=>{-1!==r.indexOf(i)&&-1!==n.indexOf(i)?o[i]={...e[i],...t[i]}:-1!==n.indexOf(i)&&(o[i]=t[i])})),o}e.default=s})),define("ember-tooltips/components/ember-tooltip",["exports","ember-tooltips/components/ember-tooltip-base"],(function(e,t){"use strict"
12022
+ return i.forEach((i=>{-1!==r.indexOf(i)&&-1!==n.indexOf(i)?o[i]={...e[i],...t[i]}:-1!==n.indexOf(i)&&(o[i]=t[i])})),o}e.default=s}))
12023
+ define("ember-tooltips/components/ember-tooltip",["exports","ember-tooltips/components/ember-tooltip-base"],(function(e,t){"use strict"
12027
12024
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
12028
12025
  var r=t.default.extend({_tooltipVariantClass:"ember-tooltip"})
12029
- e.default=r}))
12030
- define("ember-tooltips/templates/components/ember-tooltip-base",["exports"],(function(e){"use strict"
12026
+ e.default=r})),define("ember-tooltips/templates/components/ember-tooltip-base",["exports"],(function(e){"use strict"
12031
12027
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
12032
12028
  var t=Ember.HTMLBars.template({id:"wPl1S7tp",block:'{"symbols":["&default"],"statements":[[6,[37,0],[[32,0,["_awaitingTooltipElementRendered"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[12],[2,"\\n"],[6,[37,0],[[32,0,["_shouldRenderContent"]]],null,[["default"],[{"statements":[[6,[37,0],[[27,[32,1]]],null,[["default","else"],[{"statements":[[2," "],[18,1,[[32,0]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,0,["text"]]],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,2],[[30,[36,1],[[32,0,["_renderElement"]]],null]],[["guid","insertBefore"],["%cursor:0%",[29]]],[["default"],[{"statements":[[2," "],[10,"div"],[12],[2,"\\n"],[6,[37,0],[[27,[32,1]]],null,[["default","else"],[{"statements":[[2," "],[18,1,[[32,0]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,0,["text"]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]]],"hasEval":false,"upvars":["if","-in-el-null","in-element"]}',moduleName:"ember-tooltips/templates/components/ember-tooltip-base.hbs"})
12033
12029
  e.default=t})),define("ember-tooltips/utils/ember-popover",["exports"],(function(e){"use strict"
@@ -12185,10 +12181,11 @@ this._isRenderingEditor=!0,e.render(t),this._isRenderingEditor=!1}}willDestroyEl
12185
12181
  e.isCollapsed&&!t||!e.headSection.isMarkerable||this.set("linkRange",e)}cancelEditLink(){this.set("linkRange",null)}focusIn(e){this._hasFocus||(this._hasFocus=!0,Ember.run.scheduleOnce("actions",this,this.onFocus,e))}focusOut(e){e.relatedTarget&&this.element.contains(e.relatedTarget)||(this._hasFocus=!1,Ember.run.scheduleOnce("actions",this,this.onBlur,e))}handlePaste(e){e.preventDefault(),e.stopImmediatePropagation()
12186
12182
  let{editor:t,editor:{range:r}}=this
12187
12183
  if(!t.cursor.isAddressable(e.target))return
12188
- r.isCollapsed||t.performDelete(),t.post.isBlank&&t._insertEmptyMarkupSectionAtCursor()
12184
+ t.post.isBlank&&t._insertEmptyMarkupSectionAtCursor()
12189
12185
  const{text:n}=(0,l.getContentFromPasteEvent)(e)
12190
12186
  if(n&&o.default.isURL(n)&&r&&!r.isCollapsed&&r.headSection===r.tailSection&&r.headSection.isMarkerable){let e=t.builder.createMarkup("a",{href:n})
12191
- return t.run((t=>{t.addMarkupToRange(r,e)})),void t.selectRange(r.tail)}const i=t.range.head,a=e.shiftKey?"text":"html",s=(0,l.parsePostFromPaste)(e,t,{targetFormat:a})
12187
+ return t.run((t=>{t.addMarkupToRange(r,e)})),void t.selectRange(r.tail)}r.isCollapsed||t.performDelete()
12188
+ const i=t.range.head,a=e.shiftKey?"text":"html",s=(0,l.parsePostFromPaste)(e,t,{targetFormat:a})
12192
12189
  for(s.sections.forEach((e=>{e.isMarkerable||e.isListSection||s.sections.remove(e)}));s.sections.length>1;)s.sections.remove(s.sections.tail)
12193
12190
  if(s.sections.head&&s.sections.head.isListSection){let e=s.sections.head,r=e.items.head.markers.map((e=>e.clone())),n=t.builder.createMarkupSection("p",r)
12194
12191
  s.sections.remove(e),s.sections.append(n)}t.run((e=>{const t=e.insertPost(i,s)
@@ -12252,7 +12249,8 @@ Object.keys(t).forEach((r=>{e.registerKeyCommand({str:r,run:()=>t[r](e,r)})})),t
12252
12249
  e.target.matches('[data-kg="editor"]')&&n&&!n._hasFocus()&&r.isPrintableKey()&&!r.isEnter()&&(n.focus(),n.run((e=>{e.insertText(n.post.tailPosition(),r.toString())})),e.preventDefault())}_enter(){this.send("handleEnter")}_escape(e){e.element.blur(),this.deselectCard(),this.selectCard()}_upOrLeft(e,t){let{isCollapsed:r,head:n}=e.range
12253
12250
  return r&&n.isEqual(n.section.headPosition())?this.moveCursorToPrevSection():!(!r||"UP"!==t)&&e.selectRange(n.section.headPosition().toRange())}_rightOrDown(e,t){let{isCollapsed:r,tail:n}=e.range
12254
12251
  return r&&n.isEqual(n.section.tailPosition())?this.moveCursorToNextSection():!(!r||"DOWN"!==t)&&e.selectRange(n.section.tailPosition().toRange())}},h=f(d.prototype,"koenigUi",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(d.prototype,"figCaptionClass",[s],Object.getOwnPropertyDescriptor(d.prototype,"figCaptionClass"),d.prototype),f(d.prototype,"registerEditor",[l],Object.getOwnPropertyDescriptor(d.prototype,"registerEditor"),d.prototype),f(d.prototype,"handleEnter",[u],Object.getOwnPropertyDescriptor(d.prototype,"handleEnter"),d.prototype),c=d))||c)||c)
12255
- e.default=g,Ember._setComponentTemplate(m,g)})),define("koenig-editor/components/koenig-card-audio",["exports","@glimmer/component","koenig-editor/utils/extract-audio-metadata","koenig-editor/utils/prettify-file-name","ghost-admin/components/gh-image-uploader","tracked-built-ins","ember-concurrency"],(function(e,t,r,n,i,o,a){"use strict"
12252
+ e.default=g,Ember._setComponentTemplate(m,g)}))
12253
+ define("koenig-editor/components/koenig-card-audio",["exports","@glimmer/component","koenig-editor/utils/extract-audio-metadata","koenig-editor/utils/prettify-file-name","ghost-admin/components/gh-image-uploader","tracked-built-ins","ember-concurrency"],(function(e,t,r,n,i,o,a){"use strict"
12256
12254
  var s,l,u,c,d,h,p,f,m,g,v,b,y,_,k,E,w,x,O,C,S,T,P,M,A,R,j,D,I,N,L,F
12257
12255
  function z(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function B(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
12258
12256
  var r=e[Symbol.toPrimitive]
@@ -12287,8 +12285,7 @@ r.append("file",t,`media-thumbnail-${Ember.guidFor(this)}.jpg`),r.append("url",e
12287
12285
  const n=`${this.ghostPaths.apiRoot}/media/thumbnail/upload/`
12288
12286
  return(yield this.ajax.put(n,{data:r,processData:!1,contentType:!1,dataType:"json"})).media[0].url}toggleLoop(){this.updatePayloadAttr("loop",!this.args.payload.loop)}updatePayloadAttr(e,t){const{payload:r}=this.args
12289
12287
  Ember.set(r,e,t),this.args.saveCard(r,!1)}dragOver(e){e.dataTransfer&&(e.stopPropagation(),e.preventDefault(),this.isDraggedOver=!0)}dragLeave(e){e.preventDefault(),this.isDraggedOver=!1}drop(e){e.preventDefault(),e.stopPropagation(),this.isDraggedOver=!1,e.dataTransfer.files&&(this.args.payload.src?this.thumbnailFiles=[e.dataTransfer.files[0]]:this.files=[e.dataTransfer.files[0]])}},R=H(A.prototype,"ajax",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=H(A.prototype,"ghostPaths",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=H(A.prototype,"files",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=H(A.prototype,"thumbnailFiles",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=H(A.prototype,"isDraggedOver",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L=H(A.prototype,"previewThumbnailSrc",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=H(A.prototype,"previewPayload",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new o.TrackedObject({})}}),H(A.prototype,"didInsert",[f],Object.getOwnPropertyDescriptor(A.prototype,"didInsert"),A.prototype),H(A.prototype,"registerAudioFileInput",[m],Object.getOwnPropertyDescriptor(A.prototype,"registerAudioFileInput"),A.prototype),H(A.prototype,"registerAudioThumbnailFileInput",[g],Object.getOwnPropertyDescriptor(A.prototype,"registerAudioThumbnailFileInput"),A.prototype),H(A.prototype,"triggerAudioFileDialog",[v],Object.getOwnPropertyDescriptor(A.prototype,"triggerAudioFileDialog"),A.prototype),H(A.prototype,"triggerThumbnailFileDialog",[b],Object.getOwnPropertyDescriptor(A.prototype,"triggerThumbnailFileDialog"),A.prototype),H(A.prototype,"deleteThumbnail",[y],Object.getOwnPropertyDescriptor(A.prototype,"deleteThumbnail"),A.prototype),H(A.prototype,"extractAudioMetadataTask",[a.task],Object.getOwnPropertyDescriptor(A.prototype,"extractAudioMetadataTask"),A.prototype),H(A.prototype,"audioUploadStarted",[_],Object.getOwnPropertyDescriptor(A.prototype,"audioUploadStarted"),A.prototype),H(A.prototype,"audioUploadCompleted",[k],Object.getOwnPropertyDescriptor(A.prototype,"audioUploadCompleted"),A.prototype),H(A.prototype,"audioThumbnailUploadCompleted",[E],Object.getOwnPropertyDescriptor(A.prototype,"audioThumbnailUploadCompleted"),A.prototype),H(A.prototype,"audioUploadFailed",[w],Object.getOwnPropertyDescriptor(A.prototype,"audioUploadFailed"),A.prototype),H(A.prototype,"setAudioTitle",[x],Object.getOwnPropertyDescriptor(A.prototype,"setAudioTitle"),A.prototype),H(A.prototype,"audioThumbnailUploadFailed",[O],Object.getOwnPropertyDescriptor(A.prototype,"audioThumbnailUploadFailed"),A.prototype),H(A.prototype,"uploadThumbnailFromBlobTask",[a.task],Object.getOwnPropertyDescriptor(A.prototype,"uploadThumbnailFromBlobTask"),A.prototype),H(A.prototype,"toggleLoop",[C],Object.getOwnPropertyDescriptor(A.prototype,"toggleLoop"),A.prototype),H(A.prototype,"updatePayloadAttr",[S],Object.getOwnPropertyDescriptor(A.prototype,"updatePayloadAttr"),A.prototype),H(A.prototype,"dragOver",[T],Object.getOwnPropertyDescriptor(A.prototype,"dragOver"),A.prototype),H(A.prototype,"dragLeave",[P],Object.getOwnPropertyDescriptor(A.prototype,"dragLeave"),A.prototype),H(A.prototype,"drop",[M],Object.getOwnPropertyDescriptor(A.prototype,"drop"),A.prototype),A)
12290
- e.default=W,Ember._setComponentTemplate(U,W)}))
12291
- define("koenig-editor/components/koenig-card-bookmark",["exports","koenig-editor/components/koenig-editor","@tryghost/helpers","ember-concurrency"],(function(e,t,r,n){"use strict"
12288
+ e.default=W,Ember._setComponentTemplate(U,W)})),define("koenig-editor/components/koenig-card-bookmark",["exports","koenig-editor/components/koenig-editor","@tryghost/helpers","ember-concurrency"],(function(e,t,r,n){"use strict"
12292
12289
  var i,o,a,s,l,u,c,d,h,p,f,m,g,v,b
12293
12290
  function y(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
12294
12291
  var r=e[Symbol.toPrimitive]
@@ -13051,7 +13048,8 @@ o+t.width>window.innerWidth-20&&(o=window.innerWidth-t.width-20),e.style.top=`${
13051
13048
  const i=e.getBoundingClientRect(),o=i.top<0,a=i.bottom>window.innerHeight
13052
13049
  if(o&&a)return{x:r,y:n}
13053
13050
  if(o){return{x:r,y:n+(Math.abs(i.top)+10)}}if(a){return{x:r,y:n+(-Math.abs(i.bottom-window.innerHeight)-10)}}return{x:r,y:n}}},l(s.prototype,"registerAndPosition",[n],Object.getOwnPropertyDescriptor(s.prototype,"registerAndPosition"),s.prototype),l(s.prototype,"positionPanel",[i],Object.getOwnPropertyDescriptor(s.prototype,"positionPanel"),s.prototype),l(s.prototype,"debounceWindowResizeTask",[o],Object.getOwnPropertyDescriptor(s.prototype,"debounceWindowResizeTask"),s.prototype),l(s.prototype,"calculateResizeAdjustment",[a],Object.getOwnPropertyDescriptor(s.prototype,"calculateResizeAdjustment"),s.prototype),s)
13054
- e.default=c,Ember._setComponentTemplate(u,c)})),define("koenig-editor/components/koenig-slash-menu",["exports","@glimmer/component","mobiledoc-kit/parsers/mobiledoc"],(function(e,t,r){"use strict"
13051
+ e.default=c,Ember._setComponentTemplate(u,c)}))
13052
+ define("koenig-editor/components/koenig-slash-menu",["exports","@glimmer/component","mobiledoc-kit/parsers/mobiledoc"],(function(e,t,r){"use strict"
13055
13053
  var n,i,o,a,s,l,u,c,d,h,p,f,m,g
13056
13054
  function v(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
13057
13055
  var r=e[Symbol.toPrimitive]
@@ -13088,8 +13086,7 @@ if(Ember.isEmpty(t))return
13088
13086
  let i=t.length-1,o=t[r].length-1
13089
13087
  "right"===e?(n+=1,n>o&&(r<i?r+=1:r=0,n=0)):"left"===e?(n-=1,n<0&&(r>0?r-=1:r=t.length-1,n=t[r].length-1)):"up"===e?(r-=1,r<0&&(r=i)):"down"===e&&(r+=1,r>i&&(r=0)),n>t[r].length-1&&(n=t[r].length-1),this.selectedRowIndex=r,this.selectedColumnIndex=n}_performAction(){this.selectedItem&&this.itemClicked(this.selectedItem)}_handleWindowMousedown(e){e.target.closest(`#${this.containerElement.id}, .fullscreen-modal-container`)?e.target.closest('[data-kg="cardmenu-card"]')||e.preventDefault():this._hideMenu()}_registerEditorKeyboardNavHandlers(){let{editor:e}=this.args
13090
13088
  e.registerKeyCommand({str:"ESC",name:"slash-menu",run:Ember.run.bind(this,this._hideMenu)}),e.registerKeyCommand({str:"ENTER",name:"slash-menu",run:Ember.run.bind(this,this._performAction)}),e.registerKeyCommand({str:"UP",name:"slash-menu",run:Ember.run.bind(this,this._moveSelection,"up")}),e.registerKeyCommand({str:"DOWN",name:"slash-menu",run:Ember.run.bind(this,this._moveSelection,"down")}),e.registerKeyCommand({str:"LEFT",name:"slash-menu",run:Ember.run.bind(this,this._moveSelection,"left")}),e.registerKeyCommand({str:"RIGHT",name:"slash-menu",run:Ember.run.bind(this,this._moveSelection,"right")})}_unregisterEditorKeyboardNavHandlers(){this.args.editor.unregisterKeyCommands("slash-menu")}},p=y(h.prototype,"itemSections",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=y(h.prototype,"showMenu",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=y(h.prototype,"selectedRowIndex",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),g=y(h.prototype,"selectedColumnIndex",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),y(h.prototype,"updateItemSections",[s],Object.getOwnPropertyDescriptor(h.prototype,"updateItemSections"),h.prototype),y(h.prototype,"registerContainerElement",[l],Object.getOwnPropertyDescriptor(h.prototype,"registerContainerElement"),h.prototype),y(h.prototype,"registerEditor",[u],Object.getOwnPropertyDescriptor(h.prototype,"registerEditor"),h.prototype),y(h.prototype,"handleCursorChange",[c],Object.getOwnPropertyDescriptor(h.prototype,"handleCursorChange"),h.prototype),y(h.prototype,"itemClicked",[d],Object.getOwnPropertyDescriptor(h.prototype,"itemClicked"),h.prototype),h)
13091
- e.default=k,Ember._setComponentTemplate(_,k)}))
13092
- define("koenig-editor/components/koenig-snippet-input",["exports","@glimmer/component","koenig-editor/utils/get-scroll-parent","koenig-editor/components/koenig-toolbar"],(function(e,t,r,n){"use strict"
13089
+ e.default=k,Ember._setComponentTemplate(_,k)})),define("koenig-editor/components/koenig-snippet-input",["exports","@glimmer/component","koenig-editor/utils/get-scroll-parent","koenig-editor/components/koenig-toolbar"],(function(e,t,r,n){"use strict"
13093
13090
  var i,o,a,s,l,u,c,d,h,p,f
13094
13091
  function m(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function g(e,t,r,n,i){var o={}
13095
13092
  return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
@@ -13529,12 +13526,12 @@ Object.defineProperty(e,"__esModule",{value:!0}),e.getLinkMarkupFromRange=functi
13529
13526
  if(t&&(t===r||t.next===r))return r.markups.findBy("tagName","a")}})),define("koenig-editor/utils/prettify-file-name",["exports"],(function(e){"use strict"
13530
13527
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(!e||"string"!=typeof e)return""
13531
13528
  let t=e.split(".").slice(0,-1).join(".").replace(/[-_]/g," ").replace(/[^\w\s]+/g,"").replace(/\s\s+/g," ")
13532
- return t.charAt(0).toUpperCase()+t.slice(1)}})),define("koenig-editor/utils/reading-time",["exports"],(function(e){"use strict"
13529
+ return t.charAt(0).toUpperCase()+t.slice(1)}}))
13530
+ define("koenig-editor/utils/reading-time",["exports"],(function(e){"use strict"
13533
13531
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{wordCount:t,imageCount:r}=e,n=t/(275/60)
13534
13532
  for(var i=12;i>12-r;i-=1)n+=Math.max(i,3)
13535
13533
  let o=Math.round(n/60)
13536
- return o<1?"1 min read":"% min read".replace("%",o)}}))
13537
- define("koenig-editor/utils/snippet-icon",["exports"],(function(e){"use strict"
13534
+ return o<1?"1 min read":"% min read".replace("%",o)}})),define("koenig-editor/utils/snippet-icon",["exports"],(function(e){"use strict"
13538
13535
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{mobiledoc:t}=e
13539
13536
  if(0===t.cards.length)return"koenig/kg-card-type-snippet-text"
13540
13537
  if(t.sections.some((e=>10!==e[0])))return"koenig/kg-card-type-snippet-combination"
@@ -13732,14 +13729,14 @@ var o=r
13732
13729
  e.default=o})),define("liquid-fire/promise",["exports"],(function(e){"use strict"
13733
13730
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
13734
13731
  var t=Ember.RSVP.Promise
13735
- e.default=t})),define("liquid-fire/rule",["exports","liquid-fire/action","liquid-fire/constraint"],(function(e,t,r){"use strict"
13732
+ e.default=t}))
13733
+ define("liquid-fire/rule",["exports","liquid-fire/action","liquid-fire/constraint"],(function(e,t,r){"use strict"
13736
13734
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
13737
13735
  e.default=class{constructor(){this.constraints=Ember.A(),this.use=null,this.reverse=null}add(e){if(e instanceof t.default){let t="use"
13738
13736
  if(e.reversed&&(t="reverse"),this[t])throw new Error(`More than one "${t}" statement in the same transition rule is not allowed`)
13739
13737
  this[t]=e}else"debug"===e?this.debug=!0:this.constraints.push(e)}validate(e){if(!this.use)throw new Error('Every transition rule must include a "use" statement')
13740
13738
  this.use.validateHandler(e),this.reverse&&this.reverse.validateHandler(e),this.constraints.find((e=>"firstTime"===e.target))||this.constraints.push(new r.default("firstTime","no"))}invert(){let e=new this.constructor
13741
- return e.use=this.reverse,e.reverse=this.use,e.constraints=this.constraints.map((e=>e.invert())),e.debug=this.debug,e}}}))
13742
- define("liquid-fire/running-transition",["exports","jquery"],(function(e,t){"use strict"
13739
+ return e.use=this.reverse,e.reverse=this.use,e.constraints=this.constraints.map((e=>e.invert())),e.debug=this.debug,e}}})),define("liquid-fire/running-transition",["exports","jquery"],(function(e,t){"use strict"
13743
13740
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
13744
13741
  function r(e,r,n){let i=null
13745
13742
  n.view&&(i=(0,t.default)(n.view.element))
@@ -13887,7 +13884,8 @@ function c(e,t,r,n,i){var o={}
13887
13884
  return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
13888
13885
  let d=(i=(0,t.tagName)(""),o=(0,t.layout)(r.default),a=Ember._action,s=Ember._action,i(l=o((c((u=class extends Ember.Component{_didUpdate(e){if(this.replaceNodes){const t=this.nodes;(0,n.default)(e).children().remove(),(0,n.default)(e).append(t)}}_didInsert(e){const t=this.notify,r=this.nodes
13889
13886
  t&&t.willAppendNodes&&t.willAppendNodes(e),(0,n.default)(e).append(r),t&&t.didAppendNodes&&t.didAppendNodes(e)}}).prototype,"_didUpdate",[a],Object.getOwnPropertyDescriptor(u.prototype,"_didUpdate"),u.prototype),c(u.prototype,"_didInsert",[s],Object.getOwnPropertyDescriptor(u.prototype,"_didInsert"),u.prototype),l=u))||l)||l)
13890
- e.default=d})),define("liquid-wormhole/components/liquid-destination",["exports","@ember-decorators/component","perf-primitives/hash-map","liquid-wormhole/templates/components/liquid-destination"],(function(e,t,r,n){"use strict"
13887
+ e.default=d}))
13888
+ define("liquid-wormhole/components/liquid-destination",["exports","@ember-decorators/component","perf-primitives/hash-map","liquid-wormhole/templates/components/liquid-destination"],(function(e,t,r,n){"use strict"
13891
13889
  var i,o,a,s,l,u,c,d,h,p,f
13892
13890
  function m(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
13893
13891
  var r=e[Symbol.toPrimitive]
@@ -13910,8 +13908,7 @@ if(this.isDestroying||this.isDestroyed)return
13910
13908
  const n=r.element.querySelector(".liquid-wormhole-element")
13911
13909
  if(n&&(n.style.visibility="visible"),null===t){const e=this.stacks,t=r.get("parentView.stackName"),n=this.stackMap.get(t)
13912
13910
  e.removeObject(n),this.stackMap.delete(t)}}},p=v(h.prototype,"liquidWormholeService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(h.prototype,"hasWormholes",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v(h.prototype,"willTransition",[l],Object.getOwnPropertyDescriptor(h.prototype,"willTransition"),h.prototype),v(h.prototype,"afterChildInsertion",[u],Object.getOwnPropertyDescriptor(h.prototype,"afterChildInsertion"),h.prototype),v(h.prototype,"afterTransition",[c],Object.getOwnPropertyDescriptor(h.prototype,"afterTransition"),h.prototype),d=h))||d)||d)
13913
- e.default=b}))
13914
- define("liquid-wormhole/components/liquid-wormhole",["exports","@ember-decorators/component","@embroider/util","liquid-wormhole/templates/components/liquid-wormhole","jquery"],(function(e,t,r,n,i){"use strict"
13911
+ e.default=b})),define("liquid-wormhole/components/liquid-wormhole",["exports","@ember-decorators/component","@embroider/util","liquid-wormhole/templates/components/liquid-wormhole","jquery"],(function(e,t,r,n,i){"use strict"
13915
13912
  var o,a,s,l,u,c,d
13916
13913
  function h(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
13917
13914
  var r=e[Symbol.toPrimitive]
@@ -14071,4 +14068,4 @@ return void 0===n&&(n=(0,t.createStorage)(null,(()=>!1)),r.set(e,n)),n}dirtyStor
14071
14068
  r&&(0,t.setValue)(r,null)}constructor(e){o(this,"storages",new WeakMap),o(this,"vals",void 0),this.vals=new WeakSet(e)}has(e){return(0,t.getValue)(this.storageFor(e)),this.vals.has(e)}add(e){return this.vals.add(e),this.dirtyStorageFor(e),this}delete(e){return this.dirtyStorageFor(e),this.vals.delete(e)}get[i](){return this.vals[Symbol.toStringTag]}}e.TrackedWeakSet=s,Object.setPrototypeOf(s.prototype,WeakSet.prototype)})),define("tracked-built-ins/index",["exports","tracked-built-ins/-private/decorator","tracked-built-ins/-private/array","tracked-built-ins/-private/object","tracked-built-ins/-private/map","tracked-built-ins/-private/set"],(function(e,t,r,n,i,o){"use strict"
14072
14069
  Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TrackedArray",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"TrackedMap",{enumerable:!0,get:function(){return i.TrackedMap}}),Object.defineProperty(e,"TrackedObject",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"TrackedSet",{enumerable:!0,get:function(){return o.TrackedSet}}),Object.defineProperty(e,"TrackedWeakMap",{enumerable:!0,get:function(){return i.TrackedWeakMap}}),Object.defineProperty(e,"TrackedWeakSet",{enumerable:!0,get:function(){return o.TrackedWeakSet}}),Object.defineProperty(e,"tracked",{enumerable:!0,get:function(){return t.default}})}))
14073
14070
 
14074
- //# sourceMappingURL=vendor-fcd4f09ebc985b1bd9ea37bdf7954c18.map
14071
+ //# sourceMappingURL=vendor-da13470386c6ee05178d49830c64d7ab.map
@@ -37,7 +37,7 @@
37
37
  </style>
38
38
 
39
39
  <link integrity="" rel="stylesheet" href="assets/vendor-3e6947aa681f0fb82b193090e520dc73.css">
40
- <link integrity="" rel="stylesheet" href="assets/ghost-0b2e282fd281b16ee656b554d7bc4863.css" title="light">
40
+ <link integrity="" rel="stylesheet" href="assets/ghost-190bf0eacd6acd718615616770dc8a99.css" title="light">
41
41
 
42
42
 
43
43
  </head>
@@ -56,9 +56,9 @@
56
56
 
57
57
  <div id="ember-basic-dropdown-wormhole"></div>
58
58
 
59
- <script src="assets/vendor-fcd4f09ebc985b1bd9ea37bdf7954c18.js"></script>
60
- <script src="assets/chunk.580.ca53e3417715b59cfb59.js"></script>
61
- <script src="assets/chunk.143.75bf7cec44ff1be6d281.js"></script>
62
- <script src="assets/ghost-edad3e564faafe551e20323d82a23636.js"></script>
59
+ <script src="assets/vendor-da13470386c6ee05178d49830c64d7ab.js"></script>
60
+ <script src="assets/chunk.234.b9c875c2897cfa768789.js"></script>
61
+ <script src="assets/chunk.143.d8ff82a24cae66011524.js"></script>
62
+ <script src="assets/ghost-230f1ee812a92b7cd06bfa035994d093.js"></script>
63
63
  </body>
64
64
  </html>
@@ -1 +1 @@
1
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;font-family:sans-serif}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.black{color:#15171a}.darkgrey{color:#394047}.midgrey{color:#7c8b9a}.lightgrey{color:#ced4d9}.blue{color:#14b8ff}.red{color:#f50b23}.orange{color:#ffb41f}.green{color:#30cf43}.darkgrey-hover:hover{color:#394047}.midgrey-hover:hover{color:#7c8b9a}.lightgrey-hover:hover{color:#ced4d9}.blue-hover:hover{color:#14b8ff}.red-hover:hover{color:#f50b23}.orange-hover:hover{color:#ffb41f}.green-hover:hover{color:#30cf43}*,:after,:before{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:62.5%;letter-spacing:.2px;line-height:1.65;overflow:hidden}body,html{height:100%;width:100%}body{color:#343f44;font-size:1.4rem;overflow:auto;overflow-x:hidden}.gh-view{-ms-flex-positive:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;flex-grow:1}h1,h2{color:#343f44;font-size:2.9rem;line-height:1.15em;margin:0 0 .3em;text-indent:-1px;text-rendering:optimizeLegibility}@media (max-width:500px){h1{font-size:2.4rem}}.gh-input{-webkit-appearance:none;border:1px solid #d6e3eb;border-radius:4px;color:#4b5b62;display:block;font-size:1.6rem;font-weight:300;height:40px;line-height:1em;padding:10px 12px;transition:border-color .15s linear;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;width:100%}.gh-input:focus{border-color:#b4cbda;outline:0}.gh-btn{fill:#829aa8;-webkit-font-smoothing:subpixel-antialiased;border:1px solid #d6e3eb;border-radius:5px;color:#829aa8;display:inline-block;outline:none;text-decoration:none!important;transition:all .2s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gh-btn span{border-radius:4px;display:block;font-size:1.3rem;font-weight:400;height:33px;letter-spacing:.2px;line-height:33px;padding:0 12px;text-align:center}.gh-btn:hover{border-color:#b4cbda}.gh-btn-hover-blue:hover{border-color:#3eb0ef;color:#3eb0ef}.gh-btn-blue{fill:#fff;background:linear-gradient(#3da1d6,#2288bf);border:0;box-shadow:0 1px 0 rgba(0,0,0,.12);color:#fff;padding:1px;text-shadow:0 -1px 0 rgba(0,0,0,.1);transition:none!important}.gh-btn-blue span{background:linear-gradient(#4ab6f0,#2fa5e4 60%,#2fa5e4 90%,#38a9e5);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.1)}.gh-btn-blue:active,.gh-btn-blue:focus{background:#1e78a9}.gh-btn-blue:active span,.gh-btn-blue:focus span{background:#29a0e0;box-shadow:none}.gh-btn-block{display:block;width:100%}.gh-input-icon{display:block;position:relative}.gh-input-icon svg{fill:color(var(--midgrey) l(15%));height:14px;left:10px;position:absolute;top:50%;transform:translateY(-7px);width:auto;z-index:2}.gh-input-icon input{padding-left:35px}.gh-app{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:hidden}.gh-viewport{max-height:100%;overflow:hidden}.gh-main,.gh-viewport{-ms-flex-positive:1;display:-ms-flexbox;display:flex;flex-grow:1}.gh-main{background:#fff;overflow-y:auto;position:relative}.gh-flow{background:linear-gradient(315deg,#efefef,#fff);min-height:100%;overflow-y:auto}.gh-flow,.gh-flow-content-wrap{display:flex;flex-direction:column;flex-grow:1}.gh-flow-content-wrap{align-items:center;flex-shrink:0;justify-content:center;margin:0 24px;padding-bottom:8vh}.gh-flow-content-wrap .site-icon{border-radius:3px;height:70px;width:70px}.gh-flow-content{background:#fff;border-radius:3px;box-shadow:0 2.8px 2.2px rgba(0,0,0,.02),0 6.7px 5.3px rgba(0,0,0,.02),0 12.5px 10px rgba(0,0,0,.02),0 22.3px 17.9px rgba(0,0,0,.03),0 41.8px 33.4px rgba(0,0,0,.03),0 100px 80px rgba(0,0,0,.05);color:var(--darkgrey);display:flex;flex-direction:column;font-size:1.9rem;font-weight:300;line-height:1.5em;margin:4rem 0 6rem;max-width:520px;padding:40px;width:100%}.gh-flow-content.unsubscribe{align-items:center;justify-content:center;margin:4rem 0;max-width:560px;min-height:200px;text-align:center}@media (max-width:500px){.gh-flow-content{background:transparent;box-shadow:none;padding:0}}.gh-flow-content header{align-items:center;display:flex;flex-direction:column}.gh-flow-content h1{color:#15171a;font-size:4.1rem;font-weight:700;line-height:1.15em;margin-bottom:24px}.gh-flow-content.unsubscribe h1{font-size:3.2rem}@media (max-width:600px){.gh-flow-content h1,.gh-flow-content.unsubscribe h1{font-size:6vw}}.gh-flow-content.unsubscribe p{color:#394047;font-size:1.8rem;margin:0 0 .4em}@media (max-width:500px){.gh-flow-content.unsubscribe p{font-size:1.6rem;line-height:1.5}}.gh-flow-content .gh-btn{display:block;margin:20px auto 0;max-width:400px}.gh-flow-content .form-group{margin-bottom:2.5rem;position:relative}.gh-flow-content .form-group.error .gh-input{border-color:#f50b23;box-shadow:0 0 0 3px rgba(239,24,24,.15)}.gh-flow-content .main-error{color:#7c8b9a;font-size:1.35rem;font-weight:400;margin:0;position:absolute;right:0;text-align:center;user-select:text}.gh-flow-em{font-weight:500}.unsubscribe-footer{font-size:1.5rem;text-align:center}@media (max-width:500px){.unsubscribe-footer{font-size:1.4rem;line-height:1.4em;padding:0 24px}}.unsubscribe-footer p{color:#7c8b9a;margin:0 0 .4rem}.unsubscribe-footer a{color:#15171a;text-decoration:none}.unsubscribe-footer a:hover{text-decoration:underline}.gh-signin{margin-bottom:1.5rem}.gh-signin .gh-input,.gh-signin .gh-input:-webkit-autofill:first-line{border-radius:8px;font-size:1.8rem;height:54px;padding:12px 16px}.gh-signin .gh-input::placeholder{color:#abb4be;font-weight:400;opacity:1}.gh-signin .gh-input::-webkit-input-placeholder{color:#abb4be;font-weight:400}.gh-signin .gh-input:-ms-input-placeholder{color:#abb4be;font-weight:400}.gh-signin .gh-input::-moz-placeholder{color:#abb4be;font-weight:400;opacity:1}.gh-signin .gh-input:focus{border-color:#30cf43;box-shadow:0 0 0 3px rgba(26,170,96,.15)}.gh-signin .gh-btn{-webkit-font-smoothing:subpixel-antialiased;background:#15171a;border-radius:8px;font-weight:300;height:54px;line-height:54px;margin:0;margin-top:32px;max-width:unset;transition:all .4s ease;width:100%}.gh-signin .gh-btn span{color:#fff;font-size:1.8rem}.error-content{flex-grow:1;justify-content:center;padding:8vw;user-select:text}.error-content,.error-details{align-items:center;display:flex}.error-details{margin-bottom:4rem}.error-ghost{height:115px;margin:15px}@media (max-width:630px){.error-ghost{display:none}}.error-code{color:#c5d2d9;font-size:10vw;font-weight:600;letter-spacing:-.4vw;line-height:.9em;margin:0}.error-description{border:none;color:#54666d;font-size:2.3rem;font-weight:300;line-height:1.3em;margin:0;padding:0}.error-message{align-items:center;display:flex;flex-direction:column;margin:15px}.error-message a{font-size:1.4rem;line-height:1;margin:8px 0}.error-link{background-color:transparent;color:#5ba4e5;text-decoration:none;transition:background .3s,color .3s}.error-stack{background-color:hsla(0,0%,100%,.3);margin:1rem auto;max-width:800px;padding:2rem}.error-stack-list{list-style-type:none;margin:0;padding:0}.error-stack-list li{display:block}.error-stack-list li:before{color:#bbb;content:"\21AA";display:inline-block;font-size:1.2rem;margin-right:.5rem}.error-stack-function{font-weight:700}
1
+ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.black{color:#15171a}.darkgrey{color:#394047}.midgrey{color:#7c8b9a}.lightgrey{color:#ced4d9}.blue{color:#14b8ff}.red{color:#f50b23}.orange{color:#ffb41f}.green{color:#30cf43}.darkgrey-hover:hover{color:#394047}.midgrey-hover:hover{color:#7c8b9a}.lightgrey-hover:hover{color:#ced4d9}.blue-hover:hover{color:#14b8ff}.red-hover:hover{color:#f50b23}.orange-hover:hover{color:#ffb41f}.green-hover:hover{color:#30cf43}*,:after,:before{box-sizing:border-box}html{overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:62.5%;line-height:1.65;letter-spacing:.2px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body,html{width:100%;height:100%}body{overflow:auto;overflow-x:hidden;color:#343f44;font-size:1.4rem}.gh-view{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}h1,h2{margin:0 0 .3em;color:#343f44;line-height:1.15em;text-rendering:optimizeLegibility;text-indent:-1px;font-size:2.9rem}@media (max-width:500px){h1{font-size:2.4rem}}.gh-input{display:block;padding:10px 12px;width:100%;height:40px;border:1px solid #d6e3eb;border-radius:4px;color:#4b5b62;font-size:1.6rem;line-height:1em;font-weight:300;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;transition:border-color .15s linear;-webkit-appearance:none}.gh-input:focus{outline:0;border-color:#b4cbda}.gh-btn{display:inline-block;outline:none;border:1px solid #d6e3eb;color:#829aa8;text-decoration:none!important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#829aa8;border-radius:5px;transition:all .2s ease;-webkit-font-smoothing:subpixel-antialiased}.gh-btn span{display:block;padding:0 12px;height:33px;font-size:1.3rem;line-height:33px;font-weight:400;text-align:center;letter-spacing:.2px;border-radius:4px}.gh-btn:hover{border-color:#b4cbda}.gh-btn-hover-blue:hover{border-color:#3eb0ef;color:#3eb0ef}.gh-btn-blue{padding:1px;border:0;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.1);fill:#fff;background:linear-gradient(#3da1d6,#2288bf);box-shadow:0 1px 0 rgba(0,0,0,.12);transition:none!important}.gh-btn-blue span{background:linear-gradient(#4ab6f0,#2fa5e4 60%,#2fa5e4 90%,#38a9e5);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.1)}.gh-btn-blue:active,.gh-btn-blue:focus{background:#1e78a9}.gh-btn-blue:active span,.gh-btn-blue:focus span{background:#29a0e0;box-shadow:none}.gh-btn-block{display:block;width:100%}.gh-input-icon{position:relative;display:block}.gh-input-icon svg{position:absolute;top:50%;left:10px;z-index:2;height:14px;width:auto;fill:color(var(--midgrey) l(15%));transform:translateY(-7px)}.gh-input-icon input{padding-left:35px}.gh-app{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;height:100%}.gh-viewport{overflow:hidden;max-height:100%}.gh-main,.gh-viewport{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex}.gh-main{position:relative;background:#fff;overflow-y:auto}.gh-flow{overflow-y:auto;min-height:100%;background:linear-gradient(315deg,#efefef,#fff)}.gh-flow,.gh-flow-content-wrap{flex-grow:1;display:flex;flex-direction:column}.gh-flow-content-wrap{flex-shrink:0;justify-content:center;align-items:center;margin:0 24px;padding-bottom:8vh}.gh-flow-content-wrap .site-icon{width:70px;height:70px;border-radius:3px}.gh-flow-content{display:flex;flex-direction:column;max-width:520px;width:100%;margin:4rem 0 6rem;padding:40px;background:#fff;color:var(--darkgrey);font-size:1.9rem;line-height:1.5em;font-weight:300;border-radius:3px;box-shadow:0 2.8px 2.2px rgba(0,0,0,.02),0 6.7px 5.3px rgba(0,0,0,.02),0 12.5px 10px rgba(0,0,0,.02),0 22.3px 17.9px rgba(0,0,0,.03),0 41.8px 33.4px rgba(0,0,0,.03),0 100px 80px rgba(0,0,0,.05)}.gh-flow-content.unsubscribe{align-items:center;justify-content:center;max-width:560px;min-height:200px;margin:4rem 0;text-align:center}@media (max-width:500px){.gh-flow-content{padding:0;background:transparent;box-shadow:none}}.gh-flow-content header{display:flex;flex-direction:column;align-items:center}.gh-flow-content h1{margin-bottom:24px;color:#15171a;font-size:4.1rem;font-weight:700;line-height:1.15em}.gh-flow-content.unsubscribe h1{font-size:3.2rem}@media (max-width:600px){.gh-flow-content.unsubscribe h1,.gh-flow-content h1{font-size:6vw}}.gh-flow-content.unsubscribe p{margin:0 0 .4em;color:#394047;font-size:1.8rem}@media (max-width:500px){.gh-flow-content.unsubscribe p{font-size:1.6rem;line-height:1.5}}.gh-flow-content .gh-btn{display:block;margin:20px auto 0;max-width:400px}.gh-flow-content .form-group{position:relative;margin-bottom:2.5rem}.gh-flow-content .form-group.error .gh-input{border-color:#f50b23;box-shadow:0 0 0 3px rgba(239,24,24,.15)}.gh-flow-content .main-error{position:absolute;right:0;margin:0;color:#7c8b9a;font-size:1.35rem;font-weight:400;text-align:center;user-select:text}.gh-flow-em{font-weight:500}.unsubscribe-footer{text-align:center;font-size:1.5rem}@media (max-width:500px){.unsubscribe-footer{padding:0 24px;font-size:1.4rem;line-height:1.4em}}.unsubscribe-footer p{color:#7c8b9a;margin:0 0 .4rem}.unsubscribe-footer a{color:#15171a;text-decoration:none}.unsubscribe-footer a:hover{text-decoration:underline}.gh-signin{margin-bottom:1.5rem}.gh-signin .gh-input,.gh-signin .gh-input:-webkit-autofill:first-line{height:54px;padding:12px 16px;font-size:1.8rem;border-radius:8px}.gh-signin .gh-input::placeholder{color:#abb4be;font-weight:400;opacity:1}.gh-signin .gh-input::-webkit-input-placeholder{color:#abb4be;font-weight:400}.gh-signin .gh-input:-ms-input-placeholder{color:#abb4be;font-weight:400}.gh-signin .gh-input::-moz-placeholder{color:#abb4be;font-weight:400;opacity:1}.gh-signin .gh-input:focus{border-color:#30cf43;box-shadow:0 0 0 3px rgba(26,170,96,.15)}.gh-signin .gh-btn{margin:0;width:100%;height:54px;max-width:unset;margin-top:32px;background:#15171a;font-weight:300;line-height:54px;border-radius:8px;transition:all .4s ease;-webkit-font-smoothing:subpixel-antialiased}.gh-signin .gh-btn span{color:#fff;font-size:1.8rem}.error-content{flex-grow:1;justify-content:center;user-select:text;padding:8vw}.error-content,.error-details{display:flex;align-items:center}.error-details{margin-bottom:4rem}.error-ghost{margin:15px;height:115px}@media (max-width:630px){.error-ghost{display:none}}.error-code{margin:0;color:#c5d2d9;font-size:10vw;font-weight:600;line-height:.9em;letter-spacing:-.4vw}.error-description{margin:0;padding:0;border:none;color:#54666d;font-size:2.3rem;font-weight:300;line-height:1.3em}.error-message{display:flex;flex-direction:column;margin:15px;align-items:center}.error-message a{font-size:1.4rem;line-height:1;margin:8px 0}.error-link{background-color:transparent;color:#5ba4e5;transition:background .3s,color .3s;text-decoration:none}.error-stack{margin:1rem auto;padding:2rem;max-width:800px;background-color:hsla(0,0%,100%,.3)}.error-stack-list{margin:0;padding:0;list-style-type:none}.error-stack-list li{display:block}.error-stack-list li:before{content:"\21AA";display:inline-block;margin-right:.5rem;color:#bbb;font-size:1.2rem}.error-stack-function{font-weight:700}
@@ -203,6 +203,51 @@ module.exports = {
203
203
  }
204
204
  },
205
205
 
206
+ bulkEdit: {
207
+ statusCode: 200,
208
+ headers: {},
209
+ options: [
210
+ 'filter'
211
+ ],
212
+ data: [
213
+ 'action',
214
+ 'meta'
215
+ ],
216
+ validation: {
217
+ data: {
218
+ action: {
219
+ required: true,
220
+ values: ['feature', 'unfeature']
221
+ }
222
+ },
223
+ options: {
224
+ filter: {
225
+ required: true
226
+ }
227
+ }
228
+ },
229
+ permissions: {
230
+ method: 'edit'
231
+ },
232
+ async query(frame) {
233
+ return await postsService.bulkEdit(frame.data.bulk, frame.options);
234
+ }
235
+ },
236
+
237
+ bulkDestroy: {
238
+ statusCode: 200,
239
+ headers: {},
240
+ options: [
241
+ 'filter'
242
+ ],
243
+ permissions: {
244
+ method: 'destroy'
245
+ },
246
+ async query(frame) {
247
+ return await postsService.bulkDestroy(frame.options);
248
+ }
249
+ },
250
+
206
251
  destroy: {
207
252
  statusCode: 204,
208
253
  headers: {
@@ -37,5 +37,25 @@ module.exports = {
37
37
 
38
38
  exportCSV(models, apiConfig, frame) {
39
39
  frame.response = papaparse.unparse(models.data);
40
+ },
41
+
42
+ bulkEdit(bulkActionResult, _apiConfig, frame) {
43
+ frame.response = {
44
+ bulk: {
45
+ action: frame.data.action,
46
+ meta: {
47
+ stats: {
48
+ successful: bulkActionResult.successful,
49
+ unsuccessful: bulkActionResult.unsuccessful
50
+ },
51
+ errors: bulkActionResult.errors,
52
+ unsuccessfulData: bulkActionResult.unsuccessfulData
53
+ }
54
+ }
55
+ };
56
+ },
57
+
58
+ bulkDestroy(bulkActionResult, _apiConfig, frame) {
59
+ frame.response = bulkActionResult;
40
60
  }
41
61
  };
@@ -18,6 +18,9 @@ function createBulkOperation(singular, multiple) {
18
18
  await multiple(knex, table, chunkedData, options);
19
19
  result.successful += chunkedData.length;
20
20
  } catch (errToIgnore) {
21
+ if (options.throwErrors) {
22
+ throw errToIgnore;
23
+ }
21
24
  for (const singularData of chunkedData) {
22
25
  try {
23
26
  await singular(knex, table, singularData, options);
@@ -54,7 +57,11 @@ async function editMultiple(knex, table, chunk, options) {
54
57
 
55
58
  async function delSingle(knex, table, id, options) {
56
59
  try {
57
- await knex(table).where(options.column ?? 'id', id).del();
60
+ let k = knex(table);
61
+ if (options.transacting) {
62
+ k = k.transacting(options.transacting);
63
+ }
64
+ await k.where(options.column ?? 'id', id).del();
58
65
  } catch (err) {
59
66
  const importError = new errors.DataImportError({
60
67
  message: `Failed to remove entry from ${table}`,
@@ -67,7 +74,11 @@ async function delSingle(knex, table, id, options) {
67
74
  }
68
75
 
69
76
  async function delMultiple(knex, table, chunk, options) {
70
- await knex(table).whereIn(options.column ?? 'id', chunk).del();
77
+ let k = knex(table);
78
+ if (options.transacting) {
79
+ k = k.transacting(options.transacting);
80
+ }
81
+ await k.whereIn(options.column ?? 'id', chunk).del();
71
82
  }
72
83
 
73
84
  const insert = createBulkOperation(insertSingle, insertMultiple);
@@ -85,23 +96,23 @@ module.exports = function (Bookshelf) {
85
96
  return insert(Bookshelf.knex, tableName, data);
86
97
  },
87
98
 
88
- bulkEdit: function bulkEdit(data, tableName, options) {
99
+ bulkEdit: async function bulkEdit(data, tableName, options) {
89
100
  tableName = tableName || this.prototype.tableName;
90
101
 
91
- return edit(Bookshelf.knex, tableName, data, options);
102
+ return await edit(Bookshelf.knex, tableName, data, options);
92
103
  },
93
104
 
94
105
  /**
95
- *
106
+ *
96
107
  * @param {string[]} data List of ids to delete
97
- * @param {*} tableName
98
- * @param {Object} [options]
108
+ * @param {*} tableName
109
+ * @param {Object} [options]
99
110
  * @param {string} [options.column] Delete the rows where this column equals the ids in `data` (defaults to 'id')
100
- * @returns
111
+ * @returns
101
112
  */
102
- bulkDestroy: function bulkDestroy(data, tableName, options = {}) {
113
+ bulkDestroy: async function bulkDestroy(data, tableName, options = {}) {
103
114
  tableName = tableName || this.prototype.tableName;
104
- return del(Bookshelf.knex, tableName, data, options);
115
+ return await del(Bookshelf.knex, tableName, data, options);
105
116
  }
106
117
  });
107
118
  };
@@ -29,6 +29,8 @@ module.exports = function apiRoutes() {
29
29
  router.get('/posts/export', mw.authAdminApi, http(api.posts.exportCSV));
30
30
 
31
31
  router.post('/posts', mw.authAdminApi, http(api.posts.add));
32
+ router.del('/posts', mw.authAdminApi, http(api.posts.bulkDestroy));
33
+ router.put('/posts/bulk', mw.authAdminApi, http(api.posts.bulkEdit));
32
34
  router.get('/posts/:id', mw.authAdminApi, http(api.posts.read));
33
35
  router.get('/posts/slug/:slug', mw.authAdminApi, http(api.posts.read));
34
36
  router.put('/posts/:id', mw.authAdminApi, http(api.posts.edit));
@@ -176,7 +176,7 @@
176
176
  },
177
177
  "portal": {
178
178
  "url": "https://cdn.jsdelivr.net/ghost/portal@~{version}/umd/portal.min.js",
179
- "version": "2.27"
179
+ "version": "2.28"
180
180
  },
181
181
  "sodoSearch": {
182
182
  "url": "https://cdn.jsdelivr.net/ghost/sodo-search@~{version}/umd/sodo-search.min.js",