ghost 5.25.3 → 5.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/tryghost-adapter-manager-5.25.5.tgz +0 -0
- package/components/tryghost-api-framework-5.25.5.tgz +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.25.3.tgz → tryghost-api-version-compatibility-service-5.25.5.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.25.5.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.25.5.tgz +0 -0
- package/components/tryghost-constants-5.25.5.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.25.5.tgz +0 -0
- package/components/{tryghost-data-generator-5.25.3.tgz → tryghost-data-generator-5.25.5.tgz} +0 -0
- package/components/tryghost-domain-events-5.25.5.tgz +0 -0
- package/components/{tryghost-email-analytics-provider-mailgun-5.25.3.tgz → tryghost-email-analytics-provider-mailgun-5.25.5.tgz} +0 -0
- package/components/tryghost-email-analytics-service-5.25.5.tgz +0 -0
- package/components/{tryghost-email-content-generator-5.25.3.tgz → tryghost-email-content-generator-5.25.5.tgz} +0 -0
- package/components/{tryghost-email-events-5.25.3.tgz → tryghost-email-events-5.25.5.tgz} +0 -0
- package/components/tryghost-email-service-5.25.5.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.25.5.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.25.5.tgz +0 -0
- package/components/{tryghost-extract-api-key-5.25.3.tgz → tryghost-extract-api-key-5.25.5.tgz} +0 -0
- package/components/tryghost-html-to-plaintext-5.25.5.tgz +0 -0
- package/components/tryghost-job-manager-5.25.5.tgz +0 -0
- package/components/tryghost-link-redirects-5.25.5.tgz +0 -0
- package/components/tryghost-link-replacer-5.25.5.tgz +0 -0
- package/components/tryghost-link-tracking-5.25.5.tgz +0 -0
- package/components/tryghost-magic-link-5.25.5.tgz +0 -0
- package/components/tryghost-mailgun-client-5.25.5.tgz +0 -0
- package/components/tryghost-member-attribution-5.25.5.tgz +0 -0
- package/components/{tryghost-member-events-5.25.3.tgz → tryghost-member-events-5.25.5.tgz} +0 -0
- package/components/{tryghost-members-api-5.25.3.tgz → tryghost-members-api-5.25.5.tgz} +0 -0
- package/components/tryghost-members-csv-5.25.5.tgz +0 -0
- package/components/tryghost-members-events-service-5.25.5.tgz +0 -0
- package/components/{tryghost-members-importer-5.25.3.tgz → tryghost-members-importer-5.25.5.tgz} +0 -0
- package/components/tryghost-members-offers-5.25.5.tgz +0 -0
- package/components/tryghost-members-payments-5.25.5.tgz +0 -0
- package/components/tryghost-members-ssr-5.25.5.tgz +0 -0
- package/components/{tryghost-members-stripe-service-5.25.3.tgz → tryghost-members-stripe-service-5.25.5.tgz} +0 -0
- package/components/{tryghost-minifier-5.25.3.tgz → tryghost-minifier-5.25.5.tgz} +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.25.5.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.25.5.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.25.5.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.25.5.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.25.5.tgz +0 -0
- package/components/tryghost-mw-vhost-5.25.5.tgz +0 -0
- package/components/tryghost-oembed-service-5.25.5.tgz +0 -0
- package/components/tryghost-package-json-5.25.5.tgz +0 -0
- package/components/tryghost-referrers-5.25.5.tgz +0 -0
- package/components/tryghost-security-5.25.5.tgz +0 -0
- package/components/tryghost-session-service-5.25.5.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.25.5.tgz +0 -0
- package/components/{tryghost-staff-service-5.25.3.tgz → tryghost-staff-service-5.25.5.tgz} +0 -0
- package/components/tryghost-stats-service-5.25.5.tgz +0 -0
- package/components/tryghost-tiers-5.25.5.tgz +0 -0
- package/components/tryghost-update-check-service-5.25.5.tgz +0 -0
- package/components/tryghost-verification-trigger-5.25.5.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.25.5.tgz +0 -0
- package/content/themes/casper/assets/built/casper.js +1 -1
- package/content/themes/casper/assets/built/casper.js.map +1 -1
- package/content/themes/casper/assets/built/screen.css +1 -1
- package/content/themes/casper/assets/built/screen.css.map +1 -1
- package/content/themes/casper/assets/css/screen.css +52 -5
- package/content/themes/casper/assets/js/dropdown.js +1 -1
- package/content/themes/casper/assets/js/infinite-scroll.js +2 -0
- package/content/themes/casper/author.hbs +57 -51
- package/content/themes/casper/default.hbs +10 -7
- package/content/themes/casper/index.hbs +2 -0
- package/content/themes/casper/package.json +1 -1
- package/content/themes/casper/tag.hbs +3 -0
- package/core/built/admin/assets/{chunk.143.37f5727f90df66ade091.js → chunk.143.ce979d0e79756c847be1.js} +20 -20
- package/core/built/admin/assets/{chunk.178.fbba40422427964e79c9.js → chunk.178.20fd180216b1dde2c738.js} +4 -4
- package/core/built/admin/assets/{chunk.507.f7ed7e0b5ac069083e0c.js → chunk.507.18a4d11e74a0b6e03a69.js} +107 -102
- package/core/built/admin/assets/{chunk.613.551c7c3e872b9a811863.js → chunk.613.7e15b585f6a677d191bb.js} +157 -151
- package/core/built/admin/assets/{chunk.613.551c7c3e872b9a811863.js.LICENSE.txt → chunk.613.7e15b585f6a677d191bb.js.LICENSE.txt} +0 -0
- package/core/built/admin/assets/{ghost-15f77300dbb6762873d6692e0485a37a.js → ghost-04991abb5f64c0b3442a093dbfa55a67.js} +55 -52
- package/core/built/admin/assets/img/themes/Alto-0dfe76694ed222d6d96fc9c8db979a38.png +0 -0
- package/core/built/admin/assets/img/themes/Bulletin-d66dec818ad0ba2965dd7eb3130c621c.png +0 -0
- package/core/built/admin/assets/img/themes/Casper-9a0ce71df3a1c589c1414ad2aa5b8aeb.png +0 -0
- package/core/built/admin/assets/img/themes/Dawn-302fbfdbc352098a256137159bd83dd8.png +0 -0
- package/core/built/admin/assets/img/themes/Digest-698e78d8e8481daff8ae4a8647528dc9.png +0 -0
- package/core/built/admin/assets/img/themes/Dope-d099dfca697adae16baa76f89520c5b3.png +0 -0
- package/core/built/admin/assets/img/themes/Ease-7075f809892f10c58892e15a57a4aae4.png +0 -0
- package/core/built/admin/assets/img/themes/Edge-1e5e0eec6941d7bdca02cebb66187357.png +0 -0
- package/core/built/admin/assets/img/themes/Edition-10111a2b8458168dcff81b7fb151be70.png +0 -0
- package/core/built/admin/assets/img/themes/Episode-e4c86d1f75ef1d8a77791d7fd519fdd4.png +0 -0
- package/core/built/admin/assets/img/themes/Headline-f70eaf49b9fcae1ddfe3d4496d8be54d.png +0 -0
- package/core/built/admin/assets/img/themes/Journal-07d35b2311501d2738bad1907ba2f7e1.png +0 -0
- package/core/built/admin/assets/img/themes/London-4e042390da16fecef947f3a7001d03db.png +0 -0
- package/core/built/admin/assets/img/themes/Ruby-b896885448e0f28ca62c6dcd56c732aa.png +0 -0
- package/core/built/admin/assets/img/themes/Solo-0292eb9ae0ca7b578cff50824d40cc86.png +0 -0
- package/core/built/admin/assets/img/themes/Taste-a24d2a786900d9caff7e773ca0040991.png +0 -0
- package/core/built/admin/assets/img/themes/Wave-b98fadfd3ed16e8b2e383dd8e8e5dca2.png +0 -0
- package/core/built/admin/assets/{vendor-0d29a566ca9747f2cfba9d7c98e39f53.js → vendor-a5908fe1facfc5cd41d8b915a996bfed.js} +5 -4
- package/core/built/admin/index.html +4 -4
- package/core/frontend/helpers/get.js +67 -16
- package/core/server/api/endpoints/db.js +1 -1
- package/core/server/api/endpoints/utils/serializers/output/mappers/newsletters.js +1 -0
- package/core/server/data/importer/importers/data/data-importer.js +1 -1
- package/core/server/services/mega/mega.js +10 -4
- package/core/server/services/members/middleware.js +18 -3
- package/core/server/services/members-events/index.js +4 -1
- package/core/server/services/stripe/service.js +3 -1
- package/core/shared/config/defaults.json +14 -6
- package/package.json +139 -138
- package/yarn.lock +678 -439
- package/components/tryghost-adapter-manager-5.25.3.tgz +0 -0
- package/components/tryghost-api-framework-5.25.3.tgz +0 -0
- package/components/tryghost-audience-feedback-5.25.3.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.25.3.tgz +0 -0
- package/components/tryghost-constants-5.25.3.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.25.3.tgz +0 -0
- package/components/tryghost-domain-events-5.25.3.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.25.3.tgz +0 -0
- package/components/tryghost-email-service-5.25.3.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.25.3.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.25.3.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.25.3.tgz +0 -0
- package/components/tryghost-job-manager-5.25.3.tgz +0 -0
- package/components/tryghost-link-redirects-5.25.3.tgz +0 -0
- package/components/tryghost-link-replacer-5.25.3.tgz +0 -0
- package/components/tryghost-link-tracking-5.25.3.tgz +0 -0
- package/components/tryghost-magic-link-5.25.3.tgz +0 -0
- package/components/tryghost-mailgun-client-5.25.3.tgz +0 -0
- package/components/tryghost-member-attribution-5.25.3.tgz +0 -0
- package/components/tryghost-members-csv-5.25.3.tgz +0 -0
- package/components/tryghost-members-events-service-5.25.3.tgz +0 -0
- package/components/tryghost-members-offers-5.25.3.tgz +0 -0
- package/components/tryghost-members-payments-5.25.3.tgz +0 -0
- package/components/tryghost-members-ssr-5.25.3.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.25.3.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.25.3.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.25.3.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.25.3.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.25.3.tgz +0 -0
- package/components/tryghost-mw-vhost-5.25.3.tgz +0 -0
- package/components/tryghost-oembed-service-5.25.3.tgz +0 -0
- package/components/tryghost-package-json-5.25.3.tgz +0 -0
- package/components/tryghost-referrers-5.25.3.tgz +0 -0
- package/components/tryghost-security-5.25.3.tgz +0 -0
- package/components/tryghost-session-service-5.25.3.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.25.3.tgz +0 -0
- package/components/tryghost-stats-service-5.25.3.tgz +0 -0
- package/components/tryghost-tiers-5.25.3.tgz +0 -0
- package/components/tryghost-update-check-service-5.25.3.tgz +0 -0
- package/components/tryghost-verification-trigger-5.25.3.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.25.3.tgz +0 -0
- package/core/built/admin/assets/img/themes/Alto-f4db5af43ca9771c7ac1f754de3ddf2f.png +0 -0
- package/core/built/admin/assets/img/themes/Bulletin-57d45b992ff0e26e0acdce7ed4cccd67.png +0 -0
- package/core/built/admin/assets/img/themes/Casper-19b7267aac5acc6abfaaed7e41eddae8.jpg +0 -0
- package/core/built/admin/assets/img/themes/Dawn-be81aa8c8caae8fcfb5d5fbec823fdcc.png +0 -0
- package/core/built/admin/assets/img/themes/Digest-d3467ac22a290e1ad3a543014758286e.png +0 -0
- package/core/built/admin/assets/img/themes/Dope-6f8e0bbc199ce4af9a60859e9e6a74ad.png +0 -0
- package/core/built/admin/assets/img/themes/Ease-9c279ea6cec3c0f1823f81c9dd24b116.png +0 -0
- package/core/built/admin/assets/img/themes/Edge-0258906309e11fd075a1d9880aa09b20.png +0 -0
- package/core/built/admin/assets/img/themes/Edition-d8f508e93bc24bdf2716ae6f8b3d44f8.png +0 -0
- package/core/built/admin/assets/img/themes/Headline-c5070cf549e797a6a72b87237caa1617.jpg +0 -0
- package/core/built/admin/assets/img/themes/Journal-accf0031bbae0919900a049061e65a04.png +0 -0
- package/core/built/admin/assets/img/themes/London-3f07efcee9e5bfb9a33827064eb77e70.jpg +0 -0
- package/core/built/admin/assets/img/themes/Ruby-11a53c62015612f4b3aca8f503121225.png +0 -0
- package/core/built/admin/assets/img/themes/Solo-8634b5681d888995e0f5fe8ac1a27ba0.png +0 -0
- package/core/built/admin/assets/img/themes/Wave-86e8044c2d76cb57a9030e4c24ac9520.png +0 -0
|
@@ -530,10 +530,12 @@ const a=Ember.HTMLBars.template({id:"HoiavaQO",block:'{"symbols":["api","&defaul
|
|
|
530
530
|
let s=(i=Ember.inject.service,n=class extends t.default{constructor(){var e,t,i,n
|
|
531
531
|
super(...arguments),e=this,t="dropdown",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),this.dropdown.on("close",this,this.close)}willDestroy(){this.dropdown.off("close",this,this.close)}},o=n.prototype,l="dropdown",u=[i],d={configurable:!0,enumerable:!0,writable:!0,initializer:null},p={},Object.keys(d).forEach((function(e){p[e]=d[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(o,l,e)||e}),p),c&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(c):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(o,l,p),p=null),r=p,n)
|
|
532
532
|
var o,l,u,d,c,p,m=Ember._setComponentTemplate(a,s)
|
|
533
|
-
e.default=m})),define("ghost-admin/components/gh-benefit-item",["exports","
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
533
|
+
e.default=m})),define("ghost-admin/components/gh-benefit-item",["exports","@glimmer/component"],(function(e,t){var i,n,r,a
|
|
534
|
+
function s(e,t,i,n,r){var a={}
|
|
535
|
+
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
536
|
+
const o=Ember.HTMLBars.template({id:"TrYW2qwZ",block:'{"symbols":["@benefitItem","@deleteItem","@addItem","&attrs"],"statements":[[11,"div"],[16,0,[31,["gh-blognav-item ",[30,[36,3],[[32,1,["isNew"]],"gh-blognav-item--sortable"],null]]]],[17,4],[4,[38,4],null,[["errorClass","errors"],["gh-blognav-item--error",[32,1,["errors"]]]]],[12],[2,"\\n"],[6,[37,3],[[32,1,["isNew"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-blognav-grab"],[12],[2,"\\n "],[1,[30,[36,2],["grab"],null]],[2,"\\n "],[10,"span"],[14,0,"sr-only"],[12],[2,"Reorder"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[15,0,[31,["gh-blognav-line ",[30,[36,3],[[32,1,["name"]],"placeholder"],null]]]],[12],[2,"\\n "],[1,[30,[36,2],["check-2"],null]],[2,"\\n "],[11,"span"],[24,0,"gh-blognav-label"],[4,[38,4],null,[["errors","property","hasValidated"],[[32,1,["errors"]],"name",[32,1,["hasValidated"]]]]],[12],[2,"\\n "],[8,"gh-trim-focus-input",[[24,"data-test-input","benefit-label"]],[["@shouldFocus","@placeholder","@value","@input","@keyPress","@stopEnterKeyDownPropagation","@focus-out"],[[32,1,["last"]],[30,[36,5],[[32,0,["isFreeTier"]],"Access to all public posts","Expert analysis"],null],[30,[36,6],[[32,1,["name"]]],null],[32,0,["handleLabelInput"]],[32,0,["clearLabelErrors"]],true,[30,[36,0],[[32,0,["updateLabel"]],[32,1,["name"]]],null]]],null],[2,"\\n\\n "],[8,"gh-error-message",[[24,"data-test-error","benefit-label"]],[["@errors","@property"],[[32,1,["errors"]],"name"]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,5],[[32,1,["isNew"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-blognav-add"],[24,"data-test-button","add-benefit"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],[[32,3],[32,1]],null]],null],[12],[2,"\\n "],[1,[30,[36,2],["plus"],null]],[10,"span"],[14,0,"sr-only"],[12],[2,"Add"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-blognav-delete"],[24,"data-test-button","delete-benefit"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],[[32,2],[32,1]],null]],null],[12],[2,"\\n "],[1,[30,[36,2],["trash"],null]],[10,"span"],[14,0,"sr-only"],[12],[2,"Delete"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[13]],"hasEval":false,"upvars":["fn","on","svg-jar","unless","validation-status","if","readonly"]}',moduleName:"ghost-admin/components/gh-benefit-item.hbs"})
|
|
537
|
+
let l=(i=Ember._action,n=Ember._action,r=Ember._action,s((a=class extends t.default{handleLabelInput(e){this.updateLabel(e.target.value)}updateLabel(e){this.args.updateLabel(e,this.args.benefitItem)}clearLabelErrors(){this.args.benefitItem.errors?.remove("name")}}).prototype,"handleLabelInput",[i],Object.getOwnPropertyDescriptor(a.prototype,"handleLabelInput"),a.prototype),s(a.prototype,"updateLabel",[n],Object.getOwnPropertyDescriptor(a.prototype,"updateLabel"),a.prototype),s(a.prototype,"clearLabelErrors",[r],Object.getOwnPropertyDescriptor(a.prototype,"clearLabelErrors"),a.prototype),a)
|
|
538
|
+
e.default=l,Ember._setComponentTemplate(o,l)})),define("ghost-admin/components/gh-billing-iframe",["exports","@glimmer/component","ghost-admin/decorators/inject"],(function(e,t,i){var n,r,a,s,o,l,u,d,c,p,m,h,b,g,f,v
|
|
537
539
|
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function w(e,t,i,n,r){var a={}
|
|
538
540
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
539
541
|
const k=Ember.HTMLBars.template({id:"Mp073491",block:'{"symbols":["&attrs"],"statements":[[11,"iframe"],[24,1,"billing-frame"],[24,0,"billing-frame"],[24,"frameborder","0"],[24,"title","Billing"],[17,1],[4,[38,0],[[32,0,["setup"]]],null],[12],[13]],"hasEval":false,"upvars":["did-insert"]}',moduleName:"ghost-admin/components/gh-billing-iframe.hbs"})
|
|
@@ -912,7 +914,7 @@ e=e.trim(),n.includes(e.toLowerCase())||(t=this._findLabelByName(e),t||(t=this.s
|
|
|
912
914
|
e.default=c,Ember._setComponentTemplate(d,c)})),define("ghost-admin/components/gh-member-settings-form",["exports","@glimmer/component","moment-timezone","ghost-admin/utils/currency","ember-concurrency"],(function(e,t,i,n,r){var a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N
|
|
913
915
|
function U(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function F(e,t,i,n,r){var a={}
|
|
914
916
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
915
|
-
const B=Ember.HTMLBars.template({id:"+J2Q5uiy",block:'{"symbols":["tier","sub","index","sub","index","&attrs","@member","@onLabelEdit"],"statements":[[11,"div"],[24,0,"gh-member-settings"],[17,6],[4,[38,16],[[32,0,["setup"]]],null],[12],[2,"\\n "],[10,"section"],[14,0,"gh-main-section columns-3"],[12],[2,"\\n "],[8,"gh-member-details",[],[["@member"],[[32,7]]],null],[2,"\\n\\n "],[10,"div"],[14,0,"gh-main-section-block span-2"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-cp-member-email-name"],[12],[2,"\\n "],[8,"gh-form-group",[[24,0,"max-width"]],[["@errors","@hasValidated","@property"],[[32,0,["member","errors"]],[32,0,["member","hasValidated"]],"name"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","member-name"],[12],[2,"Name"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","member-name"]],[["@id","@name","@value","@tabindex","@shouldFocus","@focus-out"],["member-name","name",[32,0,["scratchMember","name"]],"1",[31,[[30,[36,3],[[32,0,["member","isNew"]],true],null]]],[30,[36,4],[[32,0,["setProperty"]],"name",[32,0,["scratchMember","name"]]],null]]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["member","errors"]],"name"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"max-width"]],[["@errors","@hasValidated","@property"],[[32,0,["member","errors"]],[32,0,["member","hasValidated"]],"email"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","member-email"],[12],[2,"Email"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","member-email"]],[["@value","@id","@name","@tabindex","@autocapitalize","@autocorrect","@autocomplete","@focus-out"],[[32,0,["scratchMember","email"]],"member-email","email","2","off","off","off",[30,[36,4],[[32,0,["setProperty"]],"email",[32,0,["scratchMember","email"]]],null]]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["member","errors"]],"email"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"gh-member-labels"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","label-input"],[12],[2,"Labels"],[13],[2,"\\n "],[8,"gh-member-label-input",[[24,"data-test-input",""]],[["@onChange","@allowEdit","@onLabelEdit","@labels","@triggerId"],[[32,0,["setLabels"]],true,[32,8],[32,0,["member","labels"]],"label-input"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"mb0 gh-member-note"]],[["@errors","@hasValidated","@property"],[[32,0,["member","errors"]],[32,0,["member","hasValidated"]],"note"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","member-note"],[12],[2,"Note "],[10,"span"],[14,0,"midgrey-d1 fw4"],[12],[2,"(not visible to member)"],[13],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-input","member-note"],[4,[38,1],["input",[32,0,["updateProperty"]]],null]],[["@id","@name","@class","@tabindex","@value"],["member-note","note","gh-member-details-textarea","3",[32,0,["scratchMember","note"]]]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["member","errors"]],"note"]],null],[2,"\\n "],[10,"p"],[12],[2," Maximum: "],[10,"b"],[12],[2,"500"],[13],[2," characters. You’ve used\\n "],[1,[30,[36,17],[[32,0,["scratchMember","note"]],500],null]],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[32,0,["canShowSingleNewsletter"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,0,"gh-members-subscribed-checkbox mb0"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex justify-between items-center"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-setting-title m"],[12],[2,"Subscribed to newsletter"],[13],[2,"\\n "],[10,"p"],[14,0,"gh-setting-desc"],[12],[2,"If disabled, member will "],[10,"em"],[12],[2,"not"],[13],[2," receive newsletter emails"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"for-switch"],[12],[2,"\\n "],[10,"label"],[14,0,"switch"],[14,"for","subscribed-checkbox"],[12],[2,"\\n "],[8,"input",[[24,1,"subscribed-checkbox"],[24,3,"subscribed"],[24,"data-test-checkbox","member-subscribed"],[4,[38,1],["click",[32,0,["updateNewsletterPreference"]]],null]],[["@checked","@type"],[[32,0,["member","subscribed"]],"checkbox"]],null],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,3],[[32,0,["canShowMultipleNewsletters"]]],null,[["default"],[{"statements":[[2," "],[8,"member/newsletter-preference",[],[["@member","@newsletters","@setMemberNewsletters"],[[32,0,["member"]],[32,0,["newslettersList"]],[32,0,["setMemberNewsletters"]]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[32,0,["membersUtils","paidMembersEnabled"]]],null,[["default"],[{"statements":[[2," "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Subscriptions"],[13],[2,"\\n\\n"],[6,[37,15],[[32,0,["tiers"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-cp-membertier-notier"],[12],[2,"\\n"],[6,[37,15],[[32,0,["isCreatingComplimentary"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-members-no-data gh-members-no-subs"],[12],[2,"\\n "],[10,"span"],[14,0,"lightgrey"],[12],[1,[30,[36,2],["no-data-subscription"],null]],[13],[2,"\\n "],[10,"h4"],[12],[2,"No subscriptions"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[32,0,["isAddComplimentaryAllowed"]]],null,[["default"],[{"statements":[[6,[37,3],[[32,0,["isCreatingComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-loading-spinner",[],[[],[]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-text green gh-btn-icon gh-btn-addtier"],[24,"data-test-button","add-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],["showMemberTierModal",[32,0]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,2],["plus"],null]],[2," Add complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,0,["tiers"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-main-section-content grey gh-member-tier-container"],[15,"data-test-tier",[32,1,["id"]]],[12],[2,"\\n"],[6,[37,3],[[30,[36,14],["sourceAttribution"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[15,0,[31,["gh-main-content-card gh-cp-membertier gh-cp-membertier-attribution gh-membertier-subscription ",[30,[36,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null],"multiple-subs",""],null]]]],[12],[2,"\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,1,["subscriptions"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-tier-card-header flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[1,[32,4,["price","currencySymbol"]]],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,4,["price","nonDecimalAmount"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[1,[30,[36,3],[[30,[36,9],[[32,4,["price","interval"]],"year"],null],"yearly","monthly"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,5,"margin-left: 16px; flex-grow: 1;"],[12],[2,"\\n "],[10,"h3"],[14,0,"gh-membertier-name"],[14,"data-test-text","tier-name"],[14,5,"align-items:center !important; justify-content:flex-start !important;"],[12],[2,"\\n "],[1,[32,1,["name"]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,4,["status"]],"canceled"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["compExpiry"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[6,[37,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-membertier-subcount"],[12],[1,[32,1,["subscriptions","length"]]],[2," subscriptions"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n"],[6,[37,3],[[32,4,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Free trial "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[30,[36,6],[[30,[36,9],[[32,4,["price","nickname"]],"Monthly"],null],[30,[36,9],[[32,4,["price","nickname"]],"Yearly"],null]],null]],null,[["default","else"],[{"statements":[],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[1,[32,4,["price","nickname"]]],[13],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2," –"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,4,["status"]],"canceled"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ended "],[1,[32,4,["validUntil"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Has access until "],[1,[32,4,["validUntil"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["compExpiry"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Expires "],[1,[32,4,["compExpiry"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ends "],[1,[32,4,["trialUntil"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Renews "],[1,[32,4,["validUntil"]]],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[8,"member/subscription-detail-box",[],[["@sub","@index"],[[32,4],[32,5]]],null],[2,"\\n "],[13],[2,"\\n"],[6,[37,3],[[32,4,["isComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[[24,"data-test-button","subscription-actions"]],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","remove-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[30,[36,6],[[32,1,["id"]],[32,1,["tier_id"]]],null]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],[[31,["subscription-menu-",[32,4,["id"]]]],"gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],[[31,["subscription-menu-",[32,4,["id"]]]],"ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/customers/",[32,4,["customer","id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe customer\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[12],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/subscriptions/",[32,4,["id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe subscription\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n"],[6,[37,3],[[30,[36,5],[[32,4,["status"]],"canceled"],null]],null,[["default"],[{"statements":[[6,[37,3],[[32,4,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["continueSubscription"]],[32,4,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Continue subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["cancelSubscription"]],[32,4,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Cancel subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[4,5]}]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,1,["subscriptions","length"]],0],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-subscription"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Complimentary"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[12],[2,"Active"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-membertier-created"],[12],[2,"Created on"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[2,"$"],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"0"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[2,"yearly"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[32,1,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[15,0,[31,["gh-main-content-card gh-cp-membertier ",[30,[36,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null],"multiple-subs",""],null]]]],[12],[2,"\\n "],[10,"h3"],[14,0,"gh-membertier-name"],[14,"data-test-text","tier-name"],[12],[2,"\\n "],[1,[32,1,["name"]]],[2,"\\n"],[6,[37,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-membertier-subcount"],[12],[1,[32,1,["subscriptions","length"]]],[2," subscriptions"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,1,["subscriptions"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-subscription"],[15,"data-test-subscription",[32,3]],[12],[2,"\\n "],[10,"div"],[14,0,"gh-membertier-details-container"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n"],[6,[37,3],[[32,2,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Free trial"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[1,[32,2,["price","nickname"]]],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n –\\n"],[6,[37,3],[[30,[36,9],[[32,2,["status"]],"canceled"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ended "],[1,[32,2,["validUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,2,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Has access until "],[1,[32,2,["validUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,2,["compExpiry"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Expires "],[1,[32,2,["compExpiry"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,2,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ends "],[1,[32,2,["trialUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Renews "],[1,[32,2,["validUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,3],[[32,2,["cancellationReason"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-cancelreason"],[12],[10,"span"],[14,0,"fw6"],[12],[2,"Cancellation reason:"],[13],[2," "],[1,[32,2,["cancellationReason"]]],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,3],[[32,2,["offer"]]],null,[["default"],[{"statements":[[6,[37,3],[[30,[36,9],[[32,2,["offer","type"]],"trial"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2," "],[1,[32,2,["offer","name"]]],[2," "],[13],[2,"\\n offer\\n ("],[1,[32,2,["offer","amount"]]],[2," days free)\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2," "],[1,[32,2,["offer","name"]]],[2," "],[13],[2,"\\n offer\\n"],[6,[37,3],[[30,[36,9],[[32,2,["offer","type"]],"fixed"],null]],null,[["default","else"],[{"statements":[[2," ("],[1,[30,[36,7],[[32,2,["offer","currency"]]],null]],[1,[30,[36,8],[[32,2,["offer","amount"]]],null]],[2," off)\\n"]],"parameters":[]},{"statements":[[2," ("],[1,[32,2,["offer","amount"]]],[2,"% off)\\n"]],"parameters":[]}]]],[2," applied to subscription\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-membertier-details"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-membertier-created"],[12],[2,"Created on "],[1,[32,2,["startDate"]]],[13],[2,"\\n"],[6,[37,3],[[30,[36,10],[[32,2,["attribution"]],[32,2,["attribution","url"]],[32,2,["attribution","title"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-membertier-separator"],[12],[2,"·"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-membertier-started"],[12],[2,"Subscribed on "],[10,"a"],[15,6,[31,[[32,2,["attribution","url"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[32,2,["attribution","title"]]],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-membertier-price-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[1,[32,2,["price","currencySymbol"]]],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,2,["price","nonDecimalAmount"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[1,[30,[36,3],[[30,[36,9],[[32,2,["price","interval"]],"year"],null],"yearly","monthly"],null]],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,3],[[32,2,["isComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[[24,"data-test-button","subscription-actions"]],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","remove-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[30,[36,6],[[32,1,["id"]],[32,1,["tier_id"]]],null]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],[[31,["subscription-menu-",[32,2,["id"]]]],"gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],[[31,["subscription-menu-",[32,2,["id"]]]],"ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/customers/",[32,2,["customer","id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe customer\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[12],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/subscriptions/",[32,2,["id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe subscription\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n"],[6,[37,3],[[30,[36,5],[[32,2,["status"]],"canceled"],null]],null,[["default"],[{"statements":[[6,[37,3],[[32,2,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["continueSubscription"]],[32,2,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Continue subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["cancelSubscription"]],[32,2,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Cancel subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[2,3]}]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,1,["subscriptions","length"]],0],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-subscription"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Complimentary"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[12],[2,"Active"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-membertier-created"],[12],[2,"Created on"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[2,"$"],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"0"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[2,"yearly"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[32,1,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[1]}]]],[2,"\\n"],[6,[37,3],[[30,[36,10],[[32,0,["tiers"]],[32,0,["isAddComplimentaryAllowed"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[15,0,[31,["gh-membertier-list-footer ",[30,[36,3],[[32,0,["isCreatingComplimentary"]],"min-height",""],null]]]],[12],[2,"\\n"],[6,[37,3],[[32,0,["isCreatingComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-loading-spinner",[],[[],[]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-text green gh-btn-icon gh-btn-addtier"],[24,"data-test-button","add-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],["showMemberTierModal",[32,0]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,2],["plus"],null]],[2," Add complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n "],[8,"member/activity-feed",[],[["@member"],[[32,0,["member"]]]],null],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n\\n"],[13],[2,"\\n\\n"],[6,[37,3],[[32,0,["showMemberTierModal"]]],null,[["default"],[{"statements":[[8,"gh-fullscreen-modal",[],[["@modifier"],["action wide member-tier"]],[["default"],[{"statements":[[2,"\\n "],[8,"modal-member-tier",[],[["@model","@confirm","@closeModal"],[[32,0,["member"]],[32,0,["addTier"]],[32,0,["closeMemberTierModal"]]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]]],"hasEval":false,"upvars":["toggle-action","on","svg-jar","if","fn","not-eq","or","currency-symbol","gh-price-amount","eq","and","gt","-track-array","each","feature","unless","did-insert","gh-count-down-characters"]}',moduleName:"ghost-admin/components/gh-member-settings-form.hbs"})
|
|
917
|
+
const B=Ember.HTMLBars.template({id:"3gxDjmAV",block:'{"symbols":["tier","sub","index","sub","index","&attrs","@member","@onLabelEdit"],"statements":[[11,"div"],[24,0,"gh-member-settings"],[17,6],[4,[38,16],[[32,0,["setup"]]],null],[12],[2,"\\n "],[10,"section"],[14,0,"gh-main-section columns-3"],[12],[2,"\\n "],[8,"gh-member-details",[],[["@member"],[[32,7]]],null],[2,"\\n\\n "],[10,"div"],[14,0,"gh-main-section-block span-2"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-cp-member-email-name"],[12],[2,"\\n "],[8,"gh-form-group",[[24,0,"max-width"]],[["@errors","@hasValidated","@property"],[[32,0,["member","errors"]],[32,0,["member","hasValidated"]],"name"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","member-name"],[12],[2,"Name"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","member-name"]],[["@id","@name","@value","@tabindex","@shouldFocus","@focus-out"],["member-name","name",[32,0,["scratchMember","name"]],"1",[31,[[30,[36,3],[[32,0,["member","isNew"]],true],null]]],[30,[36,4],[[32,0,["setProperty"]],"name",[32,0,["scratchMember","name"]]],null]]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["member","errors"]],"name"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"max-width"]],[["@errors","@hasValidated","@property"],[[32,0,["member","errors"]],[32,0,["member","hasValidated"]],"email"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","member-email"],[12],[2,"Email"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","member-email"]],[["@value","@id","@name","@tabindex","@autocapitalize","@autocorrect","@autocomplete","@focus-out"],[[32,0,["scratchMember","email"]],"member-email","email","2","off","off","off",[30,[36,4],[[32,0,["setProperty"]],"email",[32,0,["scratchMember","email"]]],null]]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["member","errors"]],"email"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"gh-member-labels"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","label-input"],[12],[2,"Labels"],[13],[2,"\\n "],[8,"gh-member-label-input",[[24,"data-test-input",""]],[["@onChange","@allowEdit","@onLabelEdit","@labels","@triggerId"],[[32,0,["setLabels"]],true,[32,8],[32,0,["member","labels"]],"label-input"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"mb0 gh-member-note"]],[["@errors","@hasValidated","@property"],[[32,0,["member","errors"]],[32,0,["member","hasValidated"]],"note"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","member-note"],[12],[2,"Note "],[10,"span"],[14,0,"midgrey-d1 fw4"],[12],[2,"(not visible to member)"],[13],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-input","member-note"],[4,[38,1],["input",[32,0,["updateProperty"]]],null]],[["@id","@name","@class","@tabindex","@value"],["member-note","note","gh-member-details-textarea","3",[32,0,["scratchMember","note"]]]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["member","errors"]],"note"]],null],[2,"\\n "],[10,"p"],[12],[2," Maximum: "],[10,"b"],[12],[2,"500"],[13],[2," characters. You’ve used\\n "],[1,[30,[36,17],[[32,0,["scratchMember","note"]],500],null]],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[32,0,["canShowSingleNewsletter"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,0,"gh-members-subscribed-checkbox mb0"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex justify-between items-center"],[14,"data-test-member-settings-switch",""],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-setting-title m"],[12],[2,"Subscribed to newsletter"],[13],[2,"\\n "],[10,"p"],[14,0,"gh-setting-desc"],[12],[2,"If disabled, member will "],[10,"em"],[12],[2,"not"],[13],[2," receive newsletter emails"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"for-switch"],[12],[2,"\\n "],[10,"label"],[14,0,"switch"],[14,"for","subscribed-checkbox"],[12],[2,"\\n "],[8,"input",[[24,1,"subscribed-checkbox"],[24,3,"subscribed"],[24,"data-test-checkbox","member-subscribed"],[4,[38,1],["click",[32,0,["updateNewsletterPreference"]]],null]],[["@checked","@type"],[[32,0,["member","subscribed"]],"checkbox"]],null],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,3],[[32,0,["canShowMultipleNewsletters"]]],null,[["default"],[{"statements":[[2," "],[8,"member/newsletter-preference",[],[["@member","@newsletters","@setMemberNewsletters"],[[32,0,["member"]],[32,0,["newslettersList"]],[32,0,["setMemberNewsletters"]]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[32,0,["membersUtils","paidMembersEnabled"]]],null,[["default"],[{"statements":[[2," "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Subscriptions"],[13],[2,"\\n\\n"],[6,[37,15],[[32,0,["tiers"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-cp-membertier-notier"],[12],[2,"\\n"],[6,[37,15],[[32,0,["isCreatingComplimentary"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-members-no-data gh-members-no-subs"],[12],[2,"\\n "],[10,"span"],[14,0,"lightgrey"],[12],[1,[30,[36,2],["no-data-subscription"],null]],[13],[2,"\\n "],[10,"h4"],[12],[2,"No subscriptions"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[32,0,["isAddComplimentaryAllowed"]]],null,[["default"],[{"statements":[[6,[37,3],[[32,0,["isCreatingComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-loading-spinner",[],[[],[]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-text green gh-btn-icon gh-btn-addtier"],[24,"data-test-button","add-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],["showMemberTierModal",[32,0]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,2],["plus"],null]],[2," Add complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,0,["tiers"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-main-section-content grey gh-member-tier-container"],[15,"data-test-tier",[32,1,["id"]]],[12],[2,"\\n"],[6,[37,3],[[30,[36,14],["sourceAttribution"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[15,0,[31,["gh-main-content-card gh-cp-membertier gh-cp-membertier-attribution gh-membertier-subscription ",[30,[36,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null],"multiple-subs",""],null]]]],[12],[2,"\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,1,["subscriptions"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-tier-card-header flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[1,[32,4,["price","currencySymbol"]]],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,4,["price","nonDecimalAmount"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[1,[30,[36,3],[[30,[36,9],[[32,4,["price","interval"]],"year"],null],"yearly","monthly"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,5,"margin-left: 16px; flex-grow: 1;"],[12],[2,"\\n "],[10,"h3"],[14,0,"gh-membertier-name"],[14,"data-test-text","tier-name"],[14,5,"align-items:center !important; justify-content:flex-start !important;"],[12],[2,"\\n "],[1,[32,1,["name"]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,4,["status"]],"canceled"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["compExpiry"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[6,[37,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-membertier-subcount"],[12],[1,[32,1,["subscriptions","length"]]],[2," subscriptions"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n"],[6,[37,3],[[32,4,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Free trial "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[30,[36,6],[[30,[36,9],[[32,4,["price","nickname"]],"Monthly"],null],[30,[36,9],[[32,4,["price","nickname"]],"Yearly"],null]],null]],null,[["default","else"],[{"statements":[],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[1,[32,4,["price","nickname"]]],[13],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2," –"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,4,["status"]],"canceled"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ended "],[1,[32,4,["validUntil"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Has access until "],[1,[32,4,["validUntil"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["compExpiry"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Expires "],[1,[32,4,["compExpiry"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,4,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ends "],[1,[32,4,["trialUntil"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Renews "],[1,[32,4,["validUntil"]]],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[8,"member/subscription-detail-box",[],[["@sub","@index"],[[32,4],[32,5]]],null],[2,"\\n "],[13],[2,"\\n"],[6,[37,3],[[32,4,["isComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[[24,"data-test-button","subscription-actions"]],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","remove-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[30,[36,6],[[32,1,["id"]],[32,1,["tier_id"]]],null]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],[[31,["subscription-menu-",[32,4,["id"]]]],"gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],[[31,["subscription-menu-",[32,4,["id"]]]],"ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/customers/",[32,4,["customer","id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe customer\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[12],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/subscriptions/",[32,4,["id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe subscription\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n"],[6,[37,3],[[30,[36,5],[[32,4,["status"]],"canceled"],null]],null,[["default"],[{"statements":[[6,[37,3],[[32,4,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["continueSubscription"]],[32,4,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Continue subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["cancelSubscription"]],[32,4,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Cancel subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[4,5]}]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,1,["subscriptions","length"]],0],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-subscription"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Complimentary"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[12],[2,"Active"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-membertier-created"],[12],[2,"Created on"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[2,"$"],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"0"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[2,"yearly"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[32,1,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[15,0,[31,["gh-main-content-card gh-cp-membertier ",[30,[36,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null],"multiple-subs",""],null]]]],[12],[2,"\\n "],[10,"h3"],[14,0,"gh-membertier-name"],[14,"data-test-text","tier-name"],[12],[2,"\\n "],[1,[32,1,["name"]]],[2,"\\n"],[6,[37,3],[[30,[36,11],[[32,1,["subscriptions","length"]],1],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-membertier-subcount"],[12],[1,[32,1,["subscriptions","length"]]],[2," subscriptions"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,1,["subscriptions"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-subscription"],[15,"data-test-subscription",[32,3]],[12],[2,"\\n "],[10,"div"],[14,0,"gh-membertier-details-container"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n"],[6,[37,3],[[32,2,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Free trial"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[1,[32,2,["price","nickname"]]],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n –\\n"],[6,[37,3],[[30,[36,9],[[32,2,["status"]],"canceled"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ended "],[1,[32,2,["validUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,2,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Has access until "],[1,[32,2,["validUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge archived"],[14,"data-test-text","member-subscription-status"],[12],[2,"Cancelled"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,2,["compExpiry"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Expires "],[1,[32,2,["compExpiry"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[32,2,["trialUntil"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Ends "],[1,[32,2,["trialUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"gh-cp-membertier-renewal"],[12],[2,"Renews "],[1,[32,2,["validUntil"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[14,"data-test-text","member-subscription-status"],[12],[2,"Active"],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,3],[[32,2,["cancellationReason"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-cancelreason"],[12],[10,"span"],[14,0,"fw6"],[12],[2,"Cancellation reason:"],[13],[2," "],[1,[32,2,["cancellationReason"]]],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,3],[[32,2,["offer"]]],null,[["default"],[{"statements":[[6,[37,3],[[30,[36,9],[[32,2,["offer","type"]],"trial"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2," "],[1,[32,2,["offer","name"]]],[2," "],[13],[2,"\\n offer\\n ("],[1,[32,2,["offer","amount"]]],[2," days free)\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2," "],[1,[32,2,["offer","name"]]],[2," "],[13],[2,"\\n offer\\n"],[6,[37,3],[[30,[36,9],[[32,2,["offer","type"]],"fixed"],null]],null,[["default","else"],[{"statements":[[2," ("],[1,[30,[36,7],[[32,2,["offer","currency"]]],null]],[1,[30,[36,8],[[32,2,["offer","amount"]]],null]],[2," off)\\n"]],"parameters":[]},{"statements":[[2," ("],[1,[32,2,["offer","amount"]]],[2,"% off)\\n"]],"parameters":[]}]]],[2," applied to subscription\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-membertier-details"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-membertier-created"],[12],[2,"Created on "],[1,[32,2,["startDate"]]],[13],[2,"\\n"],[6,[37,3],[[30,[36,10],[[32,2,["attribution"]],[32,2,["attribution","url"]],[32,2,["attribution","title"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-membertier-separator"],[12],[2,"·"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-membertier-started"],[12],[2,"Subscribed on "],[10,"a"],[15,6,[31,[[32,2,["attribution","url"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[32,2,["attribution","title"]]],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-membertier-price-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[1,[32,2,["price","currencySymbol"]]],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,2,["price","nonDecimalAmount"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[1,[30,[36,3],[[30,[36,9],[[32,2,["price","interval"]],"year"],null],"yearly","monthly"],null]],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,3],[[32,2,["isComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[[24,"data-test-button","subscription-actions"]],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","remove-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[30,[36,6],[[32,1,["id"]],[32,1,["tier_id"]]],null]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],[[31,["subscription-menu-",[32,2,["id"]]]],"gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],[[31,["subscription-menu-",[32,2,["id"]]]],"ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/customers/",[32,2,["customer","id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe customer\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[12],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/subscriptions/",[32,2,["id"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n View Stripe subscription\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n"],[6,[37,3],[[30,[36,5],[[32,2,["status"]],"canceled"],null]],null,[["default"],[{"statements":[[6,[37,3],[[32,2,["cancel_at_period_end"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["continueSubscription"]],[32,2,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Continue subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["cancelSubscription"]],[32,2,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Cancel subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[2,3]}]]],[2,"\\n"],[6,[37,3],[[30,[36,9],[[32,1,["subscriptions","length"]],0],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-membertier-subscription"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-cp-membertier-pricelabel"],[12],[2,"Complimentary"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-badge active"],[12],[2,"Active"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-membertier-created"],[12],[2,"Created on"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-card-price"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-symbol"],[12],[2,"$"],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"0"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"period"],[12],[2,"yearly"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"action-menu"],[12],[2,"\\n "],[8,"gh-dropdown-button",[],[["@dropdownName","@classNames","@title"],["subscription-menu-complimentary","gh-btn gh-btn-outline gh-btn-icon fill gh-btn-subscription-action icon-only","Actions"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"\\n "],[1,[30,[36,2],["dotdotdot"],null]],[2,"\\n "],[10,"span"],[14,0,"hidden"],[12],[2,"Subscription menu"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-dropdown",[],[["@name","@tagName","@classNames"],["subscription-menu-complimentary","ul","tier-actions-menu dropdown-menu dropdown-align-right"]],[["default"],[{"statements":[[2,"\\n "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,4,"button"],[4,[38,1],["click",[30,[36,4],[[32,0,["removeComplimentary"]],[32,1,["id"]]],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[2,"Remove complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[1]}]]],[2,"\\n"],[6,[37,3],[[30,[36,10],[[32,0,["tiers"]],[32,0,["isAddComplimentaryAllowed"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[15,0,[31,["gh-membertier-list-footer ",[30,[36,3],[[32,0,["isCreatingComplimentary"]],"min-height",""],null]]]],[12],[2,"\\n"],[6,[37,3],[[32,0,["isCreatingComplimentary"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-loading-spinner",[],[[],[]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-text green gh-btn-icon gh-btn-addtier"],[24,"data-test-button","add-complimentary"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],["showMemberTierModal",[32,0]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,2],["plus"],null]],[2," Add complimentary subscription"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n "],[8,"member/activity-feed",[],[["@member"],[[32,0,["member"]]]],null],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n\\n"],[13],[2,"\\n\\n"],[6,[37,3],[[32,0,["showMemberTierModal"]]],null,[["default"],[{"statements":[[8,"gh-fullscreen-modal",[],[["@modifier"],["action wide member-tier"]],[["default"],[{"statements":[[2,"\\n "],[8,"modal-member-tier",[],[["@model","@confirm","@closeModal"],[[32,0,["member"]],[32,0,["addTier"]],[32,0,["closeMemberTierModal"]]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]]],"hasEval":false,"upvars":["toggle-action","on","svg-jar","if","fn","not-eq","or","currency-symbol","gh-price-amount","eq","and","gt","-track-array","each","feature","unless","did-insert","gh-count-down-characters"]}',moduleName:"ghost-admin/components/gh-member-settings-form.hbs"})
|
|
916
918
|
var V=Ember._setComponentTemplate(B,(a=Ember.inject.service,s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,d=Ember.inject.service,c=Ember._tracked,p=Ember._tracked,m=Ember._tracked,h=Ember._action,b=Ember._action,g=Ember._action,f=Ember._action,v=Ember._action,y=Ember._action,w=Ember._action,k=Ember._action,E=Ember._action,O=Ember._action,P=(0,r.task)({drop:!0}),_=(0,r.task)({drop:!0}),j=(0,r.task)({drop:!0}),T=(0,r.task)({drop:!0}),z=(0,r.task)({drop:!0}),x=class extends t.default{constructor(){super(...arguments),U(this,"membersUtils",S,this),U(this,"ghostPaths",C,this),U(this,"ajax",M,this),U(this,"store",D,this),U(this,"feature",A,this),U(this,"settings",I,this),U(this,"showMemberTierModal",L,this),U(this,"tiersList",R,this),U(this,"newslettersList",N,this),this.member=this.args.member,this.scratchMember=this.args.scratchMember}get isAddComplimentaryAllowed(){if(!this.membersUtils.paidMembersEnabled)return!1
|
|
917
919
|
if(this.member.get("isNew"))return!1
|
|
918
920
|
if(this.member.get("tiers")?.length>0)return!1
|
|
@@ -1039,17 +1041,17 @@ return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumera
|
|
|
1039
1041
|
const y=Ember.HTMLBars.template({id:"5a5MFZyA",block:'{"symbols":["dropdown","menuItem"],"statements":[[10,"div"],[14,0,"gh-nav-bottom"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-center justify-between"],[12],[2,"\\n "],[10,"div"],[14,0,"pe-all"],[12],[2,"\\n "],[8,"gh-basic-dropdown",[],[["@horizontalPosition","@verticalPosition","@calculatePosition"],["left","above",[32,0,["userDropdownPosition"]]]],[["default"],[{"statements":[[2,"\\n "],[8,[32,1,["Trigger"]],[[24,0,"outline-0 pointer"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex-auto flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-user-avatar relative"],[15,5,[30,[36,5],[[32,0,["session","user","profileImageUrl"]]],null]],[12],[2,"\\n "],[6,[37,1],[[32,0,["whatsNew","hasNew"]]],null,[["default"],[{"statements":[[10,"span"],[14,0,"absolute dib ba b--white br-100 gh-whats-new-badge-account"],[12],[13]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,0],["arrow-down"],[["class"],["w3 mr1 fill-darkgrey"]]]],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,[32,1,["Content"]],[[16,0,[31,["gh-nav-menu-dropdown ",[30,[36,1],[[32,0,["session","user","isContributor"]],"gh-nav-menu-dropdown-contributor"],null]]]]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"ul"],[14,0,"dropdown-menu dropdown-triangle-top"],[14,"role","menu"],[12],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-account-menu-header"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-user-avatar relative"],[15,5,[30,[36,5],[[32,0,["session","user","profileImageUrl"]]],null]],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-user-info"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-user-name"],[12],[1,[32,0,["session","user","name"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-user-email"],[12],[1,[32,0,["session","user","email"]]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n \\n"],[6,[37,1],[[32,0,["session","user","isContributor"]]],null,[["default","else"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item"],[24,"tabindex","-1"],[24,"data-test-nav","posts"]],[["@route","@query","@role"],["posts",[30,[36,4],null,[["entry"],[null]]],"menuitem"]],[["default"],[{"statements":[[2,"\\n Posts\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[32,0,["config","blogUrl"]],"/"]]],[14,0,"dropdown-item"],[14,"role","menuitem"],[14,"tabindex","-1"],[14,"title","Open site in new tab"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"View site"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item"],[24,"tabindex","-1"],[24,"data-test-nav","whatsnew"]],[["@route","@query","@role"],["whatsnew",[30,[36,4],null,[["entry"],[null]]],"menuitem"]],[["default"],[{"statements":[[2,"\\n What\'s new?\\n"],[6,[37,1],[[32,0,["whatsNew","hasNew"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"flex-grow-1 flex justify-end"],[12],[10,"span"],[14,0,"dib w2 h2 top-0 right-0 bg-green br-100"],[12],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item"],[24,"tabindex","-1"],[24,"data-test-nav","user-profile"]],[["@route","@model","@role"],["settings.staff.user",[32,0,["session","user","slug"]],"menuitem"]],[["default"],[{"statements":[[2,"\\n Your profile\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n \\n"],[6,[37,6],[[32,0,["session","user","isContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[14,0,"dropdown-item"],[14,"role","menuitem"],[14,"tabindex","-1"],[14,6,"https://ghost.org/help?utm_source=admin&utm_campaign=help"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Help center\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[14,0,"dropdown-item"],[14,"role","menuitem"],[14,"tabindex","-1"],[14,6,"https://ghost.org/resources?utm_source=admin&utm_campaign=resources"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Resources & guides\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["showDropdownExtension"]]],null,[["default"],[{"statements":[[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["config","clientExtensions","dropdown","items"]]],null]],null]],null,[["default"],[{"statements":[[6,[37,1],[[32,2,["divider"]]],null,[["default","else"],[{"statements":[[2," "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[32,2,["href"]]]]],[14,"target","_blank"],[15,0,[31,["dropdown-item ",[32,2,["classes"]]]]],[14,"role","menuitem"],[14,"tabindex","-1"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[1,[32,2,["text"]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[2]}]]]],"parameters":[]}]]],[2," "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item user-menu-signout"],[24,"tabindex","-1"]],[["@route","@role"],["signout","menuitem"]],[["default"],[{"statements":[[2,"\\n Sign out\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "]],"parameters":[1]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center pe-all"],[12],[2,"\\n"],[6,[37,1],[[30,[36,7],[[32,0,["session","user"]]],null]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"gh-nav-bottom-tabicon"],[24,"data-test-nav","settings"]],[["@route","@current-when"],["settings",[32,0,["isSettingsRoute"]]]],[["default"],[{"statements":[[1,[30,[36,0],["settings"],null]]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[6,[37,1],[[32,0,["session","user","isEditor"]]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"gh-nav-bottom-tabicon"],[24,"data-test-nav","settings"]],[["@route","@current-when"],["settings.staff",[32,0,["isSettingsRoute"]]]],[["default"],[{"statements":[[1,[30,[36,0],["settings"],null]]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"nightshift-toggle-container"],[12],[2,"\\n "],[11,"div"],[16,0,[31,["nightshift-toggle ",[30,[36,1],[[32,0,["feature","nightShift"]],"on"],null]]]],[4,[38,9],[[32,0],[30,[36,8],["nightShift",[32,0,["feature"]]],null]],null],[12],[2,"\\n "],[10,"div"],[14,0,"sun"],[12],[1,[30,[36,0],["sun"],null]],[13],[2,"\\n "],[10,"div"],[14,0,"moon"],[12],[1,[30,[36,0],["moon"],null]],[13],[2,"\\n "],[10,"div"],[14,0,"thumb"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["svg-jar","if","-track-array","each","hash","background-image-style","unless","gh-user-can-admin","toggle","action"]}',moduleName:"ghost-admin/components/gh-nav-menu/footer.hbs"})
|
|
1040
1042
|
let w=(n=Ember.inject.service,r=Ember.inject.service,a=Ember.inject.service,s=Ember.inject.service,o=Ember.computed.and("config.clientExtensions.dropdown","session.user.isOwnerOnly"),l=Ember.computed.match("router.currentRouteName",/^settings/),u=class extends Ember.Component{constructor(){super(...arguments),f(this,"session",d,this),f(this,"router",c,this),f(this,"whatsNew",p,this),f(this,"feature",m,this),f(this,"config",h,this),f(this,"showDropdownExtension",b,this),f(this,"isSettingsRoute",g,this)}userDropdownPosition(e,i){let{horizontalPosition:n,verticalPosition:r,style:a}=(0,t.default)(...arguments),{width:s}=i.firstElementChild.getBoundingClientRect()
|
|
1041
1043
|
return a.right+=s-20,a["z-index"]="1100",{horizontalPosition:n,verticalPosition:r,style:a}}},d=v(u.prototype,"session",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=v(u.prototype,"router",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=v(u.prototype,"whatsNew",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=v(u.prototype,"feature",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=v(u.prototype,"config",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=v(u.prototype,"showDropdownExtension",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=v(u.prototype,"isSettingsRoute",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)
|
|
1042
|
-
e.default=w,Ember._setComponentTemplate(y,w)})),define("ghost-admin/components/gh-nav-menu/main",["exports","ghost-admin/components/modals/search","ghost-admin/mixins/shortcuts","ghost-admin/utils/ctrl-or-cmd","ghost-admin/decorators/inject","@ember-decorators/component","ember-concurrency"],(function(e,t,i,n,r,a,s){var o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J
|
|
1044
|
+
e.default=w,Ember._setComponentTemplate(y,w)})),define("ghost-admin/components/gh-nav-menu/main",["exports","ghost-admin/components/modals/search","ghost-admin/mixins/shortcuts","ghost-admin/utils/ctrl-or-cmd","ghost-admin/decorators/inject","@ember-decorators/component","ember-concurrency"],(function(e,t,i,n,r,a,s){var o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J
|
|
1043
1045
|
function X(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function Q(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ee(e,t,i,n,r){var a={}
|
|
1044
1046
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1045
1047
|
const te=Ember.HTMLBars.template({id:"uaL1qNBE",block:'{"symbols":["menuItem","view","view","&attrs","@firstRender"],"statements":[[11,"div"],[24,0,"flex flex-column h-100"],[24,"data-test-nav-menu","main"],[17,4],[4,[38,13],[[30,[36,6],[[32,5],"gh-nav-main"],null]],null],[12],[2,"\\n\\n"],[6,[37,6],[[32,0,["session","user","isContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"header"],[14,0,"gh-nav-menu"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-nav-menu-details"],[12],[2,"\\n "],[10,"div"],[15,0,[31,["gh-nav-menu-icon ",[32,0,["iconClass"]]]]],[15,5,[32,0,["iconStyle"]]],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-nav-menu-details-sitetitle"],[12],[1,[32,0,["config","blogTitle"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-nav-menu-search"],[12],[2,"\\n "],[11,"button"],[24,0,"gh-nav-btn-search"],[24,"title","Search site (Ctrl/⌘ + K)"],[24,4,"button"],[4,[38,10],["click",[30,[36,4],[[32,0],"openSearchModal"],null]],null],[12],[10,"span"],[12],[1,[30,[36,0],["search"],null]],[13],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"section"],[14,0,"gh-nav-body"],[12],[2,"\\n\\n"],[6,[37,6],[[32,0,["session","user","isContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-nav-top"],[12],[2,"\\n "],[10,"ul"],[14,0,"gh-nav-list gh-nav-main"],[12],[2,"\\n"],[6,[37,1],[[30,[36,12],[[32,0,["session","user"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"relative"],[12],[2,"\\n "],[8,"link-to",[[24,"title","Dashboard"],[24,"data-test-nav","dashboard"]],[["@route","@alt"],["dashboard","Dashboard"]],[["default"],[{"statements":[[1,[30,[36,0],["house"],null]],[2," Dashboard"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"li"],[14,0,"relative"],[12],[2,"\\n "],[11,"span"],[4,[38,4],[[32,0],"transitionToOrRefreshSite"],[["on"],["click"]]],[12],[2,"\\n "],[8,"link-to",[[24,"data-test-nav","site"]],[["@route","@current-when","@preventDefault"],["site",[32,0,["isOnSite"]],false]],[["default"],[{"statements":[[2,"\\n "],[1,[30,[36,0],["view-site"],null]],[2," View site\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"a"],[15,6,[31,[[32,0,["config","blogUrl"]],"/"]]],[14,0,"gh-secondary-action"],[14,"title","Open site in new tab"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,0],["external"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[6,[37,1],[[30,[36,12],[[32,0,["session","user"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"relative"],[12],[2,"\\n "],[8,"link-to",[[24,"title","Ghost Explore"],[24,"data-test-nav","explore"]],[["@route"],["explore"]],[["default"],[{"statements":[[1,[30,[36,0],["globe-simple"],null]],[2," Explore"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"ul"],[14,0,"gh-nav-list gh-nav-manage"],[12],[2,"\\n "],[10,"li"],[14,0,"gh-nav-list-new relative"],[12],[2,"\\n "],[8,"gh-link-to-custom-views-index",[[24,"data-test-nav","posts"]],[["@route","@query"],["posts",[30,[36,7],["posts"],null]]],[["default"],[{"statements":[[1,[30,[36,0],["posts"],null]],[2,"Posts"]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-secondary-action gh-nav-new-post"],[24,"title","New post"],[24,"data-test-nav","new-story"]],[["@route","@model","@alt"],["editor.new","post","New post"]],[["default"],[{"statements":[[10,"span"],[12],[1,[30,[36,0],["plus"],null]],[13]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,0,["session","user","isAuthorOrContributor"]]],null,[["default","else"],[{"statements":[[6,[37,1],[[32,0,["customViews","forPosts"]]],null,[["default"],[{"statements":[[2," "],[10,"ul"],[14,0,"gh-nav-view-list"],[12],[2,"\\n"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["customViews","forPosts"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[16,"data-test-nav-custom",[31,[[32,3,["route"]],"-",[32,3,["name"]]]]],[16,"title",[31,[[32,3,["name"]]]]]],[["@route","@query"],["posts",[30,[36,7],["posts",[32,3,["filter"]]],null]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-nav-viewname"],[12],[1,[32,3,["name"]]],[13],[2,"\\n "],[10,"span"],[15,0,[31,["flex items-center svg-",[32,3,["color"]]]]],[12],[2,"\\n"],[6,[37,6],[[32,3,["icon"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"absolute circle"],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[3]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]},{"statements":[[6,[37,1],[[32,0,["customViews","forPosts"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[16,0,[31,["gh-nav-button-expand ",[30,[36,1],[[32,0,["navigation","settings","expanded","posts"]],"expanded"],null]]]],[16,"aria-label",[31,[[30,[36,1],[[32,0,["navigation","settings","expanded","posts"]],"Collapse custom post types","Expand custom post types"],null]]]],[24,4,"button"],[4,[38,10],["click",[30,[36,9],[[32,0,["navigation","toggleExpansion"]],"posts"],null]],null],[12],[2,"\\n "],[1,[30,[36,0],[[30,[36,1],[[32,0,["navigation","settings","expanded","posts"]],"arrow-down-stroke","arrow-right-stroke"],null]],null]],[2,"\\n "],[13],[2,"\\n"],[6,[37,11],[[32,0,["navigation","settings","expanded","posts"]]],null,[["default"],[{"statements":[[2," "],[10,"ul"],[14,0,"gh-nav-view-list"],[12],[2,"\\n"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["customViews","forPosts"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[16,"data-test-nav-custom",[31,[[32,2,["route"]],"-",[32,2,["name"]]]]],[16,"title",[31,[[32,2,["name"]]]]]],[["@route","@query"],["posts",[30,[36,7],["posts",[32,2,["filter"]]],null]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-nav-viewname"],[12],[1,[32,2,["name"]]],[13],[2,"\\n "],[10,"span"],[15,0,[31,["flex items-center svg-",[32,2,["color"]]]]],[12],[2,"\\n"],[6,[37,6],[[32,2,["icon"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"absolute circle"],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[2]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n"],[6,[37,1],[[30,[36,8],[[32,0,["router","currentRouteName"]],"pages"],null]],null,[["default","else"],[{"statements":[[2," "],[8,"link-to",[[24,0,"active"],[24,"data-test-nav","pages"]],[["@route","@query"],["pages",[30,[36,7],["pages"],null]]],[["default"],[{"statements":[[1,[30,[36,0],["page"],null]],[2,"Pages"]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"link-to",[[24,"data-test-nav","pages"]],[["@route"],["pages"]],[["default"],[{"statements":[[1,[30,[36,0],["page"],null]],[2,"Pages"]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,1],[[32,0,["showTagsNavigation"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[8,"link-to",[[24,"data-test-nav","tags"]],[["@route","@current-when"],["tags","tags tag tag.new"]],[["default"],[{"statements":[[1,[30,[36,0],["tag"],null]],[2,"Tags"]],"parameters":[]}]]],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,1],[[30,[36,12],[[32,0,["session","user"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"relative"],[12],[2,"\\n"],[6,[37,1],[[30,[36,8],[[32,0,["router","currentRouteName"]],"members.index"],null]],null,[["default","else"],[{"statements":[[2," "],[8,"link-to",[[24,"data-test-nav","members"]],[["@route","@current-when","@query"],["members","members member member.new",[30,[36,7],["members.index"],null]]],[["default"],[{"statements":[[1,[30,[36,0],["members"],null]],[2,"Members\\n"],[6,[37,6],[[32,0,["memberCountLoading"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-nav-member-count"],[12],[1,[30,[36,5],[[32,0,["membersStats","memberCount"]]],null]],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"link-to",[[24,"data-test-nav","members"]],[["@route","@current-when"],["members","members member member.new"]],[["default"],[{"statements":[[1,[30,[36,0],["members"],null]],[2,"Members\\n"],[6,[37,6],[[32,0,["memberCountLoading"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-nav-member-count"],[12],[1,[30,[36,5],[[32,0,["membersStats","memberCount"]]],null]],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["settings","paidMembersEnabled"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,"data-test-nav","offers"]],[["@route","@current-when","@alt"],["offers","offers offer offer.new","Offers"]],[["default"],[{"statements":[[1,[30,[36,0],["percentage"],null]],[2,"Offers"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["session","user","isOwnerOnly"]]],null,[["default"],[{"statements":[[2," "],[10,"ul"],[14,0,"gh-nav-list"],[12],[2,"\\n"],[6,[37,1],[[32,0,["showBilling"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"relative"],[12],[2,"\\n "],[11,"a"],[24,6,"javascript:void(0)"],[16,0,[30,[36,1],[[32,0,["billing","billingWindowOpen"]],"active"],null]],[24,"data-test-nav","billing"],[4,[38,4],[[32,0],"toggleBillingModal"],null],[12],[2,"\\n "],[1,[30,[36,0],["credit-card"],null]],[2," Ghost(Pro)\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"relative gh-nav-pro"],[12],[2,"\\n "],[8,"gh-billing-update-button",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,0,["showMenuExtension"]]],null,[["default"],[{"statements":[[2," "],[10,"ul"],[14,0,"gh-nav-list gh-nav-settings"],[12],[2,"\\n"],[6,[37,1],[[32,0,["config","clientExtensions","menu","title"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"gh-nav-list-h"],[12],[1,[32,0,["config","clientExtensions","menu","title"]]],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["config","clientExtensions","menu","items"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[32,1,["href"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,[36,0],[[32,1,["icon"]]],null]],[1,[32,1,["text"]]],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,0,["showScriptExtension"]]],null,[["default"],[{"statements":[[2," "],[2,[32,0,["config","clientExtensions","script","container"]]],[2,"\\n "],[10,"script"],[15,"src",[31,[[32,0,["config","clientExtensions","script","src"]]]]],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[8,"gh-nav-menu/footer",[],[[],[]],null],[2,"\\n\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["svg-jar","if","-track-array","each","action","format-number","unless","reset-query-params","eq","fn","on","liquid-if","gh-user-can-admin","css-transition"]}',moduleName:"ghost-admin/components/gh-nav-menu/main.hbs"})
|
|
1046
|
-
let ie=(o=(0,a.tagName)(""),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,g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.computed.match("router.currentRouteName",/^settings\.integration/),k=Ember.computed.equal("router.currentRouteName","site"),E=Ember.computed.or("session.user.isAdmin","session.user.isEditor"),O=Ember.computed.and("config.clientExtensions.menu","session.user.isOwnerOnly"),P=Ember.computed.and("config.clientExtensions.script","session.user.isOwnerOnly"),_=Ember.computed.reads("config.hostSettings.billing.enabled"),j=Ember._action,T=Ember._action,z=Ember._action,x=(0,s.task)((function*(){try{this.set("memberCountLoading",!0),yield this.membersStats.fetchMemberCount(),this.set("memberCountLoading",!1)}catch(e){return!1}})),o((C=class extends(Ember.Component.extend(i.default)){constructor(){super(...arguments),X(this,"billing",M,this),X(this,"customViews",D,this),X(this,"feature",A,this),X(this,"ghostPaths",I,this),X(this,"modals",L,this),X(this,"navigation",R,this),X(this,"router",N,this),X(this,"session",U,this),X(this,"ui",F,this),X(this,"whatsNew",B,this),X(this,"membersStats",V,this),X(this,"settings",H,this),X(this,"config",q,this),Q(this,"iconStyle",""),Q(this,"iconClass",""),Q(this,"memberCountLoading",!0),Q(this,"shortcuts",null),X(this,"isIntegrationRoute",$,this),X(this,"isOnSite",Y,this),X(this,"showTagsNavigation",W,this),X(this,"showMenuExtension",G,this),X(this,"showScriptExtension",K,this),X(this,"showBilling",
|
|
1048
|
+
let ie=(o=(0,a.tagName)(""),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,g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.computed.match("router.currentRouteName",/^settings\.integration/),k=Ember.computed.equal("router.currentRouteName","site"),E=Ember.computed.or("session.user.isAdmin","session.user.isEditor"),O=Ember.computed.and("config.clientExtensions.menu","session.user.isOwnerOnly"),P=Ember.computed.and("config.clientExtensions.script","session.user.isOwnerOnly"),_=Ember.computed.reads("config.hostSettings.billing.enabled"),j=Ember._action,T=Ember._action,z=Ember._action,x=(0,s.task)((function*(){try{this.set("memberCountLoading",!0),yield this.membersStats.fetchMemberCount(),this.set("memberCountLoading",!1)}catch(e){return!1}})),o((C=class extends(Ember.Component.extend(i.default)){constructor(){super(...arguments),X(this,"billing",M,this),X(this,"customViews",D,this),X(this,"feature",A,this),X(this,"ghostPaths",I,this),X(this,"modals",L,this),X(this,"navigation",R,this),X(this,"router",N,this),X(this,"session",U,this),X(this,"ui",F,this),X(this,"whatsNew",B,this),X(this,"membersStats",V,this),X(this,"settings",H,this),X(this,"config",q,this),Q(this,"iconStyle",""),Q(this,"iconClass",""),Q(this,"memberCountLoading",!0),Q(this,"shortcuts",null),X(this,"isIntegrationRoute",$,this),X(this,"isOnSite",Y,this),X(this,"showTagsNavigation",W,this),X(this,"showMenuExtension",G,this),X(this,"showScriptExtension",K,this),X(this,"showBilling",Z,this),X(this,"_loadMemberCountsTask",J,this)}init(){super.init(...arguments)
|
|
1047
1049
|
let e={}
|
|
1048
1050
|
e[`${n.default}+k`]={action:"openSearchModal"},this.shortcuts=e}didReceiveAttrs(){super.didReceiveAttrs(...arguments),this._setIconStyle(),this._loadMemberCountsTask.perform()}didInsertElement(){super.didInsertElement(...arguments),this.registerShortcuts()}willDestroyElement(){this.removeShortcuts(),super.willDestroyElement(...arguments)}transitionToOrRefreshSite(){let{currentRouteName:e}=this.router
|
|
1049
1051
|
"site"===e?Ember.getOwner(this).lookup(`route:${e}`).refresh():this.session.user.isContributor?this.router.transitionTo("posts"):this.router.transitionTo("site")}openSearchModal(){return this.modals.open(t.default)}toggleBillingModal(){this.billing.openBillingWindow(this.router.currentURL)}_setIconStyle(){let e=this.icon
|
|
1050
1052
|
if(e===this._icon)return
|
|
1051
1053
|
if(this._icon=e,e&&e.match(/^https?:\/\//i))return this.set("iconClass",""),void this.set("iconStyle",Ember.String.htmlSafe(`background-image: url(${e})`))
|
|
1052
|
-
this.set("iconStyle",Ember.String.htmlSafe("background-image: url(https://static.ghost.org/v4.0.0/images/ghost-orb-1.png)")),this.set("iconClass","gh-nav-logo-default")}},M=ee(C.prototype,"billing",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=ee(C.prototype,"customViews",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=ee(C.prototype,"feature",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=ee(C.prototype,"ghostPaths",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=ee(C.prototype,"modals",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=ee(C.prototype,"navigation",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=ee(C.prototype,"router",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=ee(C.prototype,"session",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=ee(C.prototype,"ui",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=ee(C.prototype,"whatsNew",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=ee(C.prototype,"membersStats",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=ee(C.prototype,"settings",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=ee(C.prototype,"config",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=ee(C.prototype,"isIntegrationRoute",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=ee(C.prototype,"isOnSite",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=ee(C.prototype,"showTagsNavigation",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=ee(C.prototype,"showMenuExtension",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=ee(C.prototype,"showScriptExtension",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),
|
|
1054
|
+
this.set("iconStyle",Ember.String.htmlSafe("background-image: url(https://static.ghost.org/v4.0.0/images/ghost-orb-1.png)")),this.set("iconClass","gh-nav-logo-default")}},M=ee(C.prototype,"billing",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=ee(C.prototype,"customViews",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=ee(C.prototype,"feature",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=ee(C.prototype,"ghostPaths",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=ee(C.prototype,"modals",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=ee(C.prototype,"navigation",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=ee(C.prototype,"router",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=ee(C.prototype,"session",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=ee(C.prototype,"ui",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=ee(C.prototype,"whatsNew",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=ee(C.prototype,"membersStats",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=ee(C.prototype,"settings",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=ee(C.prototype,"config",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=ee(C.prototype,"isIntegrationRoute",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=ee(C.prototype,"isOnSite",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=ee(C.prototype,"showTagsNavigation",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=ee(C.prototype,"showMenuExtension",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=ee(C.prototype,"showScriptExtension",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=ee(C.prototype,"showBilling",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee(C.prototype,"transitionToOrRefreshSite",[j],Object.getOwnPropertyDescriptor(C.prototype,"transitionToOrRefreshSite"),C.prototype),ee(C.prototype,"openSearchModal",[T],Object.getOwnPropertyDescriptor(C.prototype,"openSearchModal"),C.prototype),ee(C.prototype,"toggleBillingModal",[z],Object.getOwnPropertyDescriptor(C.prototype,"toggleBillingModal"),C.prototype),J=ee(C.prototype,"_loadMemberCountsTask",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=C))||S)
|
|
1053
1055
|
e.default=ie,Ember._setComponentTemplate(te,ie)})),define("ghost-admin/components/gh-notification",["exports","@glimmer/component"],(function(e,t){var i,n,r,a,s
|
|
1054
1056
|
function o(e,t,i,n,r){var a={}
|
|
1055
1057
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -1078,11 +1080,11 @@ return e?`/${e.name}`:""}get tierOptions(){return this.tiers?this.tiers.map((e=>
|
|
|
1078
1080
|
e.default=x,Ember._setComponentTemplate(z,x)})),define("ghost-admin/components/gh-post-bookmark",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1079
1081
|
const t=Ember.HTMLBars.template({id:"EPqVhGxu",block:'{"symbols":["imageUrl","@post"],"statements":[[10,"div"],[14,0,"gh-post-bookmark-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-post-bookmark"],[12],[2,"\\n"],[6,[37,4],[[30,[36,3],[[32,2,["featureImage"]],[30,[36,0],["coverImage"],null]],null]],null,[["default"],[{"statements":[[6,[37,1],[[32,1]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-post-bookmark-image"],[12],[2,"\\n "],[10,"img"],[15,"src",[32,1]],[14,"alt",""],[14,"role","presentation"],[12],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[15,0,[31,["gh-post-bookmark-content ",[30,[36,1],[[32,1],"","no-image"],null]]]],[12],[2,"\\n "],[10,"div"],[14,0,"gh-post-bookmark-title"],[12],[1,[32,2,["title"]]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-post-bookmark-text truncate"],[12],[1,[32,2,["excerpt"]]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-post-bookmark-details"],[12],[2,"\\n"],[6,[37,1],[[30,[36,0],["icon"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-post-bookmark-site-icon"],[12],[10,"img"],[15,"src",[30,[36,0],["icon"],null]],[14,"alt",""],[14,"role","presentation"],[12],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-post-bookmark-site-title"],[12],[1,[30,[36,0],["title"],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-post-bookmark-authors"],[12],[1,[30,[36,2],[[32,2]],null]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["get-setting","if","post-author-names","or","let"]}',moduleName:"ghost-admin/components/gh-post-bookmark.hbs"})
|
|
1080
1082
|
var i=Ember._setComponentTemplate(t,Ember._templateOnlyComponent())
|
|
1081
|
-
e.default=i})),define("ghost-admin/components/gh-post-settings-menu",["exports","ghost-admin/utils/bound-one-way","moment-timezone","ghost-admin/decorators/inject","@ember-decorators/component"],(function(e,t,i,n,r){var a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
1083
|
+
e.default=i})),define("ghost-admin/components/gh-post-settings-menu",["exports","ghost-admin/utils/bound-one-way","moment-timezone","ghost-admin/decorators/inject","@ember-decorators/component"],(function(e,t,i,n,r){var a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,de,ce,pe,me,he,be,ge,fe,ve,ye,we,ke,Ee,Oe,Pe,_e,je,Te,ze,xe,Se,Ce,Me,De,Ae,Ie,Le,Re,Ne,Ue,Fe,Be,Ve,He
|
|
1082
1084
|
function qe(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function $e(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ye(e,t,i,n,r){var a={}
|
|
1083
1085
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1084
|
-
const We=Ember.HTMLBars.template({id:"JWuU6YIk",block:'{"symbols":["@post"],"statements":[[11,"div"],[16,0,[31,["settings-menu-container ",[30,[36,7],[[30,[36,15],[[32,0,["isViewingSubview"]],[30,[36,14],[[30,[36,11],[[32,0,["subview"]],"email-settings"],null]],null]],null],"settings-menu-container-wide"],null]]]],[4,[38,16],[[32,0,["setSidebarWidthFromElement"]]],null],[4,[38,17],[[32,0,["setSidebarWidthFromElement"]],[32,0,["isViewingSubview"]]],null],[12],[2,"\\n "],[10,"div"],[14,1,"entry-controls"],[12],[2,"\\n "],[10,"div"],[14,0,"settings-menu settings-menu-pane settings-menu-pane-main"],[12],[2,"\\n "],[10,"div"],[14,0,"settings-menu-header"],[12],[2,"\\n "],[10,"h4"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," settings"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n "],[10,"form"],[14,"aria-label","Post settings"],[12],[2,"\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[14,"for","url"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," URL"],[13],[2,"\\n"],[6,[37,12],[[32,0,["post","isNew"]]],null,[["default"],[{"statements":[[6,[37,7],[[30,[36,13],[[32,0,["post","isPublished"]],[32,0,["post","isSent"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"a"],[14,0,"post-view-link"],[14,"target","_blank"],[15,6,[31,[[32,0,["post","url"]]]]],[14,"rel","noopener noreferrer"],[12],[2,"\\n View "],[1,[32,0,["post","displayName"]]],[2," "],[1,[30,[36,1],["external"],null]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,7],[[32,0,["post","isScheduled"]]],null,[["default"],[{"statements":[[2," "],[10,"a"],[14,0,"post-view-link"],[14,"target","_blank"],[15,6,[31,[[32,0,["post","previewUrl"]]]]],[14,"rel","noopener noreferrer"],[12],[2,"\\n Preview "],[1,[30,[36,1],["external"],null]],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-input-icon gh-icon-link"],[12],[2,"\\n "],[1,[30,[36,1],["link"],null]],[2,"\\n "],[8,"gh-text-input",[],[["@class","@id","@name","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-slug","url","post-setting-slug",[30,[36,6],[[32,0,["slugValue"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["slugValue"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"updateSlug",[32,0,["slugValue"]]],null],true]],null],[2,"\\n "],[13],[2,"\\n"],[6,[37,7],[[32,0,["post","isSent"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-url-preview",[],[["@prefix","@slug","@tagName","@classNames"],["email",[32,0,["uuidValue"]],"p","description"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"gh-url-preview",[],[["@slug","@tagName","@classNames"],[[32,0,["slugValue"]],"p","description"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n"],[6,[37,7],[[30,[36,13],[[32,0,["post","isDraft"]],[32,0,["post","isPublished"]],[32,0,["post","pastScheduledTime"]],[32,0,["post","isSent"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"label"],[12],[2,"Publish date"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"label"],[12],[2,"Scheduled date"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[8,"gh-date-time-picker",[],[["@date","@time","@setDate","@setTime","@errors","@dateErrorProperty","@timeErrorProperty","@maxDate","@disabled","@isActive"],[[32,0,["post","publishedAtBlogDate"]],[32,0,["post","publishedAtBlogTime"]],[30,[36,0],[[32,0],"setPublishedAtBlogDate"],null],[30,[36,0],[[32,0],"setPublishedAtBlogTime"],null],[32,0,["post","errors"]],"publishedAtBlogDate","publishedAtBlogTime","now",[32,0,["post","isScheduled"]],[30,[36,14],[[32,0,["isViewingSubview"]]],null]]],null],[2,"\\n"],[6,[37,12],[[30,[36,13],[[32,0,["post","isDraft"]],[32,0,["post","isPublished"]],[32,0,["post","pastScheduledTime"]],[32,0,["post","isSent"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"p"],[12],[2,"Use the publish menu to re-schedule"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,12],[[32,0,["session","user","isContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[14,"for","tag-input"],[12],[2,"Tags"],[13],[2,"\\n "],[8,"gh-psm-tags-input",[],[["@post","@triggerId"],[[32,0,["post"]],"tag-input"]],null],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[32,0,["showVisibilityInput"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"visibility"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","visibility-input"],[12],[1,[30,[36,2],[[32,1,["displayName"]]],null]],[2," access"],[13],[2,"\\n "],[8,"gh-psm-visibility-input",[],[["@post","@triggerId"],[[32,0,["post"]],"visibility-input"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n"],[6,[37,7],[[30,[36,11],[[32,0,["post","visibility"]],"tiers"],null]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,0,"nt3"]],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"tiers"]],[["default"],[{"statements":[[2,"\\n "],[8,"gh-post-settings-menu/visibility-segment-select",[],[["@tiers","@onChange","@renderInPlace","@hideOptionsWhenAllSelected"],[[32,0,["post","tiers"]],[30,[36,0],[[32,0],"setVisibility"],null],true,true]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","tiers"]],[["@errors","@property"],[[32,0,["post","errors"]],"tiers"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"customExcerpt"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","custom-excerpt"],[12],[2,"Excerpt"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","custom-excerpt"]],[["@class","@id","@name","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-custom-excerpt","custom-excerpt","post-setting-custom-excerpt",[30,[36,6],[[32,0,["customExcerptScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["customExcerptScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setCustomExcerpt",[32,0,["customExcerptScratch"]]],null],"true"]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","custom-excerpt"]],[["@errors","@property"],[[32,0,["post","errors"]],"customExcerpt"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n"],[6,[37,12],[[32,0,["session","user","isAuthorOrContributor"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,0,"for-select"],[24,"data-test-input","authors"]],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"authors"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","author-list"],[12],[2,"Authors"],[13],[2,"\\n "],[8,"gh-psm-authors-input",[],[["@selectedAuthors","@updateAuthors","@triggerId"],[[32,0,["post","authors"]],[30,[36,0],[[32,0],"changeAuthors"],null],"author-list"]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","authors"]],[["@errors","@property"],[[32,0,["post","errors"]],"authors"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"ul"],[14,0,"nav-list nav-list-block"],[12],[2,"\\n "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","meta-data"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","meta-data"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Meta data"],[13],[2,"\\n "],[10,"span"],[12],[2,"Extra content for search engines"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","twitter-data"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","twitter-data"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Twitter card"],[13],[2,"\\n "],[10,"span"],[12],[2,"Customize structured data for Twitter"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","facebook-data"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","facebook-data"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Facebook card"],[13],[2,"\\n "],[10,"span"],[12],[2,"Customize Open Graph data"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n"],[6,[37,7],[[30,[36,15],[[32,0,["post","isPost"]],[32,0,["showEmailNewsletter"]],[30,[36,18],[[32,0,["settings","membersSignupAccess"]],"none"],null],[30,[36,18],[[32,0,["settings","editorDefaultEmailRecipients"]],"disabled"],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","email-settings"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","email-settings"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Email newsletter"],[13],[2,"\\n "],[10,"span"],[12],[2,"Customize email settings"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","codeinjection"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","codeinjection"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Code injection"],[13],[2,"\\n "],[10,"span"],[12],[2,"Add styles/scripts to the header & footer"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,12],[[32,0,["session","user","isAuthorOrContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"form-group for-checkbox"],[12],[2,"\\n "],[11,"label"],[24,0,"checkbox"],[24,"for","featured"],[4,[38,0],[[32,0],"toggleFeatured"],[["bubbles"],["false"]]],[12],[2,"\\n "],[10,"input"],[15,"checked",[32,0,["post","featured"]]],[14,0,"gh-input post-settings-featured"],[15,"onclick",[30,[36,0],[[32,0],[30,[36,3],[[32,0,["post","featured"]]],null]],[["value"],["target.checked"]]]],[14,"data-test-checkbox","featured"],[14,4,"checkbox"],[12],[13],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component"],[12],[13],[2,"\\n "],[10,"p"],[12],[2,"Feature this "],[1,[32,0,["post","displayName"]]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[8,"gh-psm-template-select",[],[["@post","@onTemplateSelect"],[[32,0,["post"]],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["post","customTemplate"]]],null]],null]]],null],[2,"\\n\\n"],[6,[37,12],[[32,0,["post","isNew"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-hover-red gh-btn-icon settings-menu-delete-button"],[24,4,"button"],[4,[38,0],[[32,0],"deletePostInternal"],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["trash"],null]],[2," Delete "],[1,[32,0,["post","displayName"]]],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,7],[[32,0,["isViewingSubview"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[15,0,[31,["settings-menu settings-menu-pane ",[30,[36,12],[[30,[36,11],[[32,0,["subview"]],"email-settings"],null],"settings-menu-pane-wide"],null]]]],[12],[2,"\\n "],[10,"div"],[14,0,"active"],[12],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"meta-data"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close meta data panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Meta data"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n "],[11,"form"],[24,"aria-label","Meta data settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"metaTitle"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","meta-title"],[12],[2,"Meta title"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","meta-title"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-meta-title","meta-title","post-setting-meta-title",[32,0,["seoTitle"]],[30,[36,6],[[32,0,["metaTitleScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["metaTitleScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setMetaTitle",[32,0,["metaTitleScratch"]]],null],true]],null],[2,"\\n "],[10,"p"],[12],[2,"Recommended: "],[10,"b"],[12],[2,"60"],[13],[2," characters. You’ve used "],[1,[30,[36,8],[[32,0,["metaTitleScratch"]],60],null]],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["post","errors"]],"meta-title"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"metaDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","meta-description"],[12],[2,"Meta description"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","meta-description"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-meta-description","meta-description","post-setting-meta-description",[30,[36,5],[[32,0,["seoDescription"]],150],null],[30,[36,6],[[32,0,["metaDescriptionScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["metaDescriptionScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setMetaDescription",[32,0,["metaDescriptionScratch"]]],null],"true"]],null],[2,"\\n "],[10,"p"],[12],[2,"Recommended: "],[10,"b"],[12],[2,"145"],[13],[2," characters. You’ve used "],[1,[30,[36,8],[[32,0,["metaDescriptionScratch"]],145],null]],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["post","errors"]],"meta-description"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"canonicalUrl"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","canonicalUrl"],[12],[2,"Canonical URL"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","canonicalUrl"]],[["@class","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-canonicalUrl","post-setting-canonicalUrl",[32,0,["post","url"]],[30,[36,6],[[32,0,["canonicalUrlScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["canonicalUrlScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setCanonicalUrl",[32,0,["canonicalUrlScratch"]]],null],"true"]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["post","errors"]],"canonicalUrl"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[12],[2,"Search Engine Result Preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview"],[12],[2,"\\n "],[10,"div"],[14,0,"flex mb7"],[12],[2,"\\n "],[1,[30,[36,1],["google"],null]],[2,"\\n "],[10,"div"],[14,0,"gh-seo-search-bar"],[12],[1,[30,[36,1],["google-search"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview-link"],[12],[1,[32,0,["seoURL"]]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview-title"],[12],[1,[30,[36,5],[[32,0,["seoTitle"]],60],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview-desc"],[12],[1,[30,[36,10],[[30,[36,9],null,null],"DD MMM YYYY"],null]],[2," — "],[1,[30,[36,5],[[32,0,["seoDescription"]],149],null]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"twitter-data"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close Twitter card panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Twitter card"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n\\n "],[11,"form"],[24,"aria-label","Twitter card settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-image-uploader-with-preview",[],[["@image","@text","@allowUnsplash","@update","@remove"],[[32,0,["post","twitterImage"]],"Add Twitter image",true,[30,[36,0],[[32,0],"setTwitterImage"],null],[30,[36,0],[[32,0],"clearTwitterImage"],null]]],null],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"twitterTitle"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","twitter-title"],[12],[2,"Twitter title"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","twitter-title"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-twitter-title","twitter-title","post-setting-twitter-title",[30,[36,5],[[32,0,["twitterTitle"]],40],null],[30,[36,6],[[32,0,["twitterTitleScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["twitterTitleScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setTwitterTitle",[32,0,["twitterTitleScratch"]]],null],true]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","twitter-title"]],[["@errors","@property"],[[32,0,["post","errors"]],"twitterTitle"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"twitterDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","twitter-description"],[12],[2,"Twitter description"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","twitter-description"]],[["@class","@id","@name","@placeholder","@stopEnterKeyDownPropagation","@value","@input","@focus-out"],["post-setting-twitter-description","twitter-description","post-setting-twitter-description",[30,[36,5],[[32,0,["twitterDescription"]],150],null],"true",[30,[36,6],[[32,0,["twitterDescriptionScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["twitterDescriptionScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setTwitterDescription",[32,0,["twitterDescriptionScratch"]]],null]]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","twitter-description"]],[["@errors","@property"],[[32,0,["post","errors"]],"twitterDescription"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[12],[2,"Twitter preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-post-preview"],[12],[2,"\\n"],[6,[37,7],[[32,0,["twitterImage"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-social-twitter-preview-image"],[15,5,[30,[36,4],[[32,0,["twitterImage"]]],null]],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-social-twitter-preview-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-preview-title"],[12],[1,[32,0,["twitterTitle"]]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-preview-desc"],[12],[1,[30,[36,5],[[32,0,["twitterDescription"]]],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-preview-meta"],[12],[2,"\\n "],[1,[30,[36,1],["twitter-link"],null]],[2,"\\n "],[1,[32,0,["config","blogDomain"]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"email-settings"],null]],null,[["default"],[{"statements":[[2," "],[8,"gh-post-settings-menu/email",[],[["@post","@savePostTask","@close"],[[32,0,["post"]],[32,0,["savePostTask"]],[30,[36,0],[[32,0],"closeSubview"],null]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"facebook-data"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close Facebook card panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Facebook card"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n "],[11,"form"],[24,"aria-label","Facebook card settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-image-uploader-with-preview",[],[["@image","@text","@allowUnsplash","@update","@remove"],[[32,0,["post","ogImage"]],"Add Facebook image",true,[30,[36,0],[[32,0],"setOgImage"],null],[30,[36,0],[[32,0],"clearOgImage"],null]]],null],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"ogTitle"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","og-title"],[12],[2,"Facebook title"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","og-title"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-og-title","og-title","post-setting-og-title",[30,[36,5],[[32,0,["facebookTitle"]],40],null],[30,[36,6],[[32,0,["ogTitleScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["ogTitleScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setOgTitle",[32,0,["ogTitleScratch"]]],null],true]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","og-title"]],[["@errors","@property"],[[32,0,["post","errors"]],"ogTitle"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"ogDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","og-description"],[12],[2,"Facebook description"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","og-description"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-og-description","og-description","post-setting-og-description",[30,[36,5],[[32,0,["facebookDescription"]],150],null],[30,[36,6],[[32,0,["ogDescriptionScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["ogDescriptionScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setOgDescription",[32,0,["ogDescriptionScratch"]]],null],"true"]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","og-description"]],[["@errors","@property"],[[32,0,["post","errors"]],"ogDescription"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[12],[2,"Facebook preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview no-container"],[12],[2,"\\n"],[6,[37,7],[[32,0,["facebookImage"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-social-og-preview-image"],[15,5,[30,[36,4],[[32,0,["facebookImage"]]],null]],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-social-og-preview-bookmark"],[12],[2,"\\n"],[2," "],[10,"div"],[14,0,"gh-social-og-preview-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview-meta"],[12],[2,"\\n "],[1,[32,0,["config","blogDomain"]]],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview-title"],[12],[1,[30,[36,5],[[32,0,["facebookTitle"]]],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview-desc"],[12],[1,[30,[36,5],[[32,0,["facebookDescription"]]],null]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"codeinjection"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close code injection panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Code injection"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content settings-menu-content-codeinjection"],[12],[2,"\\n "],[11,"form"],[24,"aria-label","Code injection settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"codeinjectionHead"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","codeinjection-head"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," header "],[10,"code"],[12],[2,"{{ghost_head}}"],[13],[13],[2,"\\n "],[8,"gh-cm-editor",[[24,"data-test-field","codeinjection-head"]],[["@value","@id","@class","@name","@focusOut","@stopEnterKeyDownPropagation","@update"],[[32,0,["codeinjectionHeadScratch"]],"post-setting-codeinjection-head","post-setting-codeinjection","post-setting-codeinjection-head",[30,[36,0],[[32,0],"setHeaderInjection",[32,0,["codeinjectionHeadScratch"]]],null],"true",[30,[36,0],[[32,0],[30,[36,3],[[32,0,["codeinjectionHeadScratch"]]],null]],null]]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","codeinjection-head"]],[["@errors","@property"],[[32,0,["post","errors"]],"codeinjectionHead"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"codeinjectionFoot"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","codeinjection-foot"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," footer "],[10,"code"],[12],[2,"{{ghost_foot}}"],[13],[13],[2,"\\n "],[8,"gh-cm-editor",[[24,"data-test-field","codeinjection-foot"]],[["@value","@id","@class","@name","@focusOut","@stopEnterKeyDownPropagation","@update"],[[32,0,["codeinjectionFootScratch"]],"post-setting-codeinjection-foot","post-setting-codeinjection","post-setting-codeinjection-foot",[30,[36,0],[[32,0],"setFooterInjection",[32,0,["codeinjectionFootScratch"]]],null],"true",[30,[36,0],[[32,0],[30,[36,3],[[32,0,["codeinjectionFootScratch"]]],null]],null]]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","codeinjection-foot"]],[["@errors","@property"],[[32,0,["post","errors"]],"codeinjectionFoot"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action","svg-jar","capitalize","mut","background-image-style","truncate","readonly","if","gh-count-down-characters","now","moment-format","eq","unless","or","not","and","did-insert","did-update","not-eq"]}',moduleName:"ghost-admin/components/gh-post-settings-menu.hbs"})
|
|
1085
|
-
let Ge=(a=(0,r.tagName)(""),s=Ember.inject.service,o=Ember.inject.service,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.computed.alias("post.canonicalUrlScratch"),g=Ember.computed.alias("post.customExcerptScratch"),f=Ember.computed.alias("post.codeinjectionFootScratch"),v=Ember.computed.alias("post.codeinjectionHeadScratch"),y=Ember.computed.alias("post.metaDescriptionScratch"),w=Ember.computed.alias("post.metaTitleScratch"),k=Ember.computed.alias("post.ogDescriptionScratch"),E=Ember.computed.alias("post.ogTitleScratch"),O=Ember.computed.alias("post.twitterDescriptionScratch"),P=Ember.computed.alias("post.twitterTitleScratch"),_=(0,t.default)("post.slug"),j=(0,t.default)("post.uuid"),T=Ember.computed.or("metaDescriptionScratch","customExcerptScratch","post.excerpt"),z=Ember.computed.or("ogDescriptionScratch","customExcerptScratch","seoDescription","post.excerpt","settings.description",""),x=Ember.computed.or("post.ogImage","post.featureImage","settings.ogImage","settings.coverImage"),S=Ember.computed.or("ogTitleScratch","seoTitle"),C=Ember.computed.or("twitterDescriptionScratch","customExcerptScratch","seoDescription","post.excerpt","settings.description",""),M=Ember.computed.or("post.twitterImage","post.featureImage","settings.twitterImage","settings.coverImage"),D=Ember.computed.or("twitterTitleScratch","seoTitle"),A=Ember.computed.or("session.user.isOwnerOnly","session.user.isAdminOnly","session.user.isEditor"),I=Ember.computed.or("session.user.isOwnerOnly","session.user.isAdminOnly","session.user.isEditor"),L=Ember.computed("metaTitleScratch","post.titleScratch"),R=Ember.computed("post.{slug,canonicalUrl}","config.blogUrl"),N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,
|
|
1086
|
+
const We=Ember.HTMLBars.template({id:"qBBXaanT",block:'{"symbols":["@post"],"statements":[[11,"div"],[16,0,[31,["settings-menu-container ",[30,[36,7],[[30,[36,15],[[32,0,["isViewingSubview"]],[30,[36,14],[[30,[36,11],[[32,0,["subview"]],"email-settings"],null]],null]],null],"settings-menu-container-wide"],null]]]],[4,[38,16],[[32,0,["setSidebarWidthFromElement"]]],null],[4,[38,17],[[32,0,["setSidebarWidthFromElement"]],[32,0,["isViewingSubview"]]],null],[12],[2,"\\n "],[10,"div"],[14,1,"entry-controls"],[12],[2,"\\n "],[10,"div"],[14,0,"settings-menu settings-menu-pane settings-menu-pane-main"],[12],[2,"\\n "],[10,"div"],[14,0,"settings-menu-header"],[12],[2,"\\n "],[10,"h4"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," settings"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n "],[10,"form"],[14,"aria-label","Post settings"],[12],[2,"\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[14,"for","url"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," URL"],[13],[2,"\\n"],[6,[37,12],[[32,0,["post","isNew"]]],null,[["default"],[{"statements":[[6,[37,7],[[30,[36,13],[[32,0,["post","isPublished"]],[32,0,["post","isSent"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"a"],[14,0,"post-view-link"],[14,"target","_blank"],[15,6,[31,[[32,0,["post","url"]]]]],[14,"rel","noopener noreferrer"],[12],[2,"\\n View "],[1,[32,0,["post","displayName"]]],[2," "],[1,[30,[36,1],["external"],null]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,7],[[32,0,["post","isScheduled"]]],null,[["default"],[{"statements":[[2," "],[10,"a"],[14,0,"post-view-link"],[14,"target","_blank"],[15,6,[31,[[32,0,["post","previewUrl"]]]]],[14,"rel","noopener noreferrer"],[12],[2,"\\n Preview "],[1,[30,[36,1],["external"],null]],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-input-icon gh-icon-link"],[12],[2,"\\n "],[1,[30,[36,1],["link"],null]],[2,"\\n "],[8,"gh-text-input",[],[["@class","@id","@name","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-slug","url","post-setting-slug",[30,[36,6],[[32,0,["slugValue"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["slugValue"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"updateSlug",[32,0,["slugValue"]]],null],true]],null],[2,"\\n "],[13],[2,"\\n"],[6,[37,7],[[32,0,["post","isSent"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-url-preview",[],[["@prefix","@slug","@tagName","@classNames"],["email",[32,0,["uuidValue"]],"p","description"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"gh-url-preview",[],[["@slug","@tagName","@classNames"],[[32,0,["slugValue"]],"p","description"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n"],[6,[37,7],[[30,[36,13],[[32,0,["post","isDraft"]],[32,0,["post","isPublished"]],[32,0,["post","pastScheduledTime"]],[32,0,["post","isSent"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"label"],[12],[2,"Publish date"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"label"],[12],[2,"Scheduled date"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[8,"gh-date-time-picker",[],[["@date","@time","@setDate","@setTime","@errors","@dateErrorProperty","@timeErrorProperty","@maxDate","@disabled","@isActive"],[[32,0,["post","publishedAtBlogDate"]],[32,0,["post","publishedAtBlogTime"]],[30,[36,0],[[32,0],"setPublishedAtBlogDate"],null],[30,[36,0],[[32,0],"setPublishedAtBlogTime"],null],[32,0,["post","errors"]],"publishedAtBlogDate","publishedAtBlogTime","now",[32,0,["post","isScheduled"]],[30,[36,14],[[32,0,["isViewingSubview"]]],null]]],null],[2,"\\n"],[6,[37,12],[[30,[36,13],[[32,0,["post","isDraft"]],[32,0,["post","isPublished"]],[32,0,["post","pastScheduledTime"]],[32,0,["post","isSent"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"p"],[12],[2,"Use the publish menu to re-schedule"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,12],[[32,0,["session","user","isContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[14,"for","tag-input"],[12],[2,"Tags"],[13],[2,"\\n "],[8,"gh-psm-tags-input",[],[["@post","@triggerId"],[[32,0,["post"]],"tag-input"]],null],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[32,0,["showVisibilityInput"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"visibility"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","visibility-input"],[12],[1,[30,[36,2],[[32,1,["displayName"]]],null]],[2," access"],[13],[2,"\\n "],[8,"gh-psm-visibility-input",[],[["@post","@triggerId"],[[32,0,["post"]],"visibility-input"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n"],[6,[37,7],[[30,[36,11],[[32,0,["post","visibility"]],"tiers"],null]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,0,"nt3"],[24,"data-test-visibility-segment-select",""]],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"tiers"]],[["default"],[{"statements":[[2,"\\n "],[8,"gh-post-settings-menu/visibility-segment-select",[],[["@tiers","@onChange","@renderInPlace","@hideOptionsWhenAllSelected"],[[32,0,["post","tiers"]],[30,[36,0],[[32,0],"setVisibility"],null],true,true]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","tiers"]],[["@errors","@property"],[[32,0,["post","errors"]],"tiers"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"customExcerpt"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","custom-excerpt"],[12],[2,"Excerpt"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","custom-excerpt"]],[["@class","@id","@name","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-custom-excerpt","custom-excerpt","post-setting-custom-excerpt",[30,[36,6],[[32,0,["customExcerptScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["customExcerptScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setCustomExcerpt",[32,0,["customExcerptScratch"]]],null],"true"]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","custom-excerpt"]],[["@errors","@property"],[[32,0,["post","errors"]],"customExcerpt"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n"],[6,[37,12],[[32,0,["session","user","isAuthorOrContributor"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,0,"for-select"],[24,"data-test-input","authors"]],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"authors"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","author-list"],[12],[2,"Authors"],[13],[2,"\\n "],[8,"gh-psm-authors-input",[],[["@selectedAuthors","@updateAuthors","@triggerId"],[[32,0,["post","authors"]],[30,[36,0],[[32,0],"changeAuthors"],null],"author-list"]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","authors"]],[["@errors","@property"],[[32,0,["post","errors"]],"authors"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"ul"],[14,0,"nav-list nav-list-block"],[12],[2,"\\n "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","meta-data"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","meta-data"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Meta data"],[13],[2,"\\n "],[10,"span"],[12],[2,"Extra content for search engines"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","twitter-data"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","twitter-data"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Twitter card"],[13],[2,"\\n "],[10,"span"],[12],[2,"Customize structured data for Twitter"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","facebook-data"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","facebook-data"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Facebook card"],[13],[2,"\\n "],[10,"span"],[12],[2,"Customize Open Graph data"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n"],[6,[37,7],[[30,[36,15],[[32,0,["post","isPost"]],[32,0,["showEmailNewsletter"]],[30,[36,18],[[32,0,["settings","membersSignupAccess"]],"none"],null],[30,[36,18],[[32,0,["settings","editorDefaultEmailRecipients"]],"disabled"],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","email-settings"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","email-settings"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Email newsletter"],[13],[2,"\\n "],[10,"span"],[12],[2,"Customize email settings"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"li"],[14,0,"nav-list-item"],[12],[2,"\\n "],[11,"button"],[24,"data-test-button","codeinjection"],[24,4,"button"],[4,[38,0],[[32,0],"showSubview","codeinjection"],null],[12],[2,"\\n "],[10,"b"],[12],[2,"Code injection"],[13],[2,"\\n "],[10,"span"],[12],[2,"Add styles/scripts to the header & footer"],[13],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,1],["arrow-right"],null]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,12],[[32,0,["session","user","isAuthorOrContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"form-group for-checkbox"],[12],[2,"\\n "],[11,"label"],[24,0,"checkbox"],[24,"for","featured"],[4,[38,0],[[32,0],"toggleFeatured"],[["bubbles"],["false"]]],[12],[2,"\\n "],[10,"input"],[15,"checked",[32,0,["post","featured"]]],[14,0,"gh-input post-settings-featured"],[15,"onclick",[30,[36,0],[[32,0],[30,[36,3],[[32,0,["post","featured"]]],null]],[["value"],["target.checked"]]]],[14,"data-test-checkbox","featured"],[14,4,"checkbox"],[12],[13],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component"],[12],[13],[2,"\\n "],[10,"p"],[12],[2,"Feature this "],[1,[32,0,["post","displayName"]]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[8,"gh-psm-template-select",[],[["@post","@onTemplateSelect"],[[32,0,["post"]],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["post","customTemplate"]]],null]],null]]],null],[2,"\\n\\n"],[6,[37,12],[[32,0,["post","isNew"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-hover-red gh-btn-icon settings-menu-delete-button"],[24,4,"button"],[4,[38,0],[[32,0],"deletePostInternal"],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["trash"],null]],[2," Delete "],[1,[32,0,["post","displayName"]]],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,7],[[32,0,["isViewingSubview"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[15,0,[31,["settings-menu settings-menu-pane ",[30,[36,12],[[30,[36,11],[[32,0,["subview"]],"email-settings"],null],"settings-menu-pane-wide"],null]]]],[12],[2,"\\n "],[10,"div"],[14,0,"active"],[12],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"meta-data"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close meta data panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Meta data"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n "],[11,"form"],[24,"aria-label","Meta data settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"metaTitle"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","meta-title"],[12],[2,"Meta title"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","meta-title"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-meta-title","meta-title","post-setting-meta-title",[32,0,["seoTitle"]],[30,[36,6],[[32,0,["metaTitleScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["metaTitleScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setMetaTitle",[32,0,["metaTitleScratch"]]],null],true]],null],[2,"\\n "],[10,"p"],[12],[2,"Recommended: "],[10,"b"],[12],[2,"60"],[13],[2," characters. You’ve used "],[1,[30,[36,8],[[32,0,["metaTitleScratch"]],60],null]],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["post","errors"]],"meta-title"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"metaDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","meta-description"],[12],[2,"Meta description"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","meta-description"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-meta-description","meta-description","post-setting-meta-description",[30,[36,5],[[32,0,["seoDescription"]],150],null],[30,[36,6],[[32,0,["metaDescriptionScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["metaDescriptionScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setMetaDescription",[32,0,["metaDescriptionScratch"]]],null],"true"]],null],[2,"\\n "],[10,"p"],[12],[2,"Recommended: "],[10,"b"],[12],[2,"145"],[13],[2," characters. You’ve used "],[1,[30,[36,8],[[32,0,["metaDescriptionScratch"]],145],null]],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["post","errors"]],"meta-description"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"canonicalUrl"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","canonicalUrl"],[12],[2,"Canonical URL"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","canonicalUrl"]],[["@class","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-canonicalUrl","post-setting-canonicalUrl",[32,0,["post","url"]],[30,[36,6],[[32,0,["canonicalUrlScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["canonicalUrlScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setCanonicalUrl",[32,0,["canonicalUrlScratch"]]],null],"true"]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["post","errors"]],"canonicalUrl"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[12],[2,"Search Engine Result Preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview"],[12],[2,"\\n "],[10,"div"],[14,0,"flex mb7"],[12],[2,"\\n "],[1,[30,[36,1],["google"],null]],[2,"\\n "],[10,"div"],[14,0,"gh-seo-search-bar"],[12],[1,[30,[36,1],["google-search"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview-link"],[12],[1,[32,0,["seoURL"]]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview-title"],[12],[1,[30,[36,5],[[32,0,["seoTitle"]],60],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-seo-preview-desc"],[12],[1,[30,[36,10],[[30,[36,9],null,null],"DD MMM YYYY"],null]],[2," — "],[1,[30,[36,5],[[32,0,["seoDescription"]],149],null]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"twitter-data"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close Twitter card panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Twitter card"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n\\n "],[11,"form"],[24,"aria-label","Twitter card settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-image-uploader-with-preview",[],[["@image","@text","@allowUnsplash","@update","@remove"],[[32,0,["post","twitterImage"]],"Add Twitter image",true,[30,[36,0],[[32,0],"setTwitterImage"],null],[30,[36,0],[[32,0],"clearTwitterImage"],null]]],null],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"twitterTitle"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","twitter-title"],[12],[2,"Twitter title"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","twitter-title"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-twitter-title","twitter-title","post-setting-twitter-title",[30,[36,5],[[32,0,["twitterTitle"]],40],null],[30,[36,6],[[32,0,["twitterTitleScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["twitterTitleScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setTwitterTitle",[32,0,["twitterTitleScratch"]]],null],true]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","twitter-title"]],[["@errors","@property"],[[32,0,["post","errors"]],"twitterTitle"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"twitterDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","twitter-description"],[12],[2,"Twitter description"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","twitter-description"]],[["@class","@id","@name","@placeholder","@stopEnterKeyDownPropagation","@value","@input","@focus-out"],["post-setting-twitter-description","twitter-description","post-setting-twitter-description",[30,[36,5],[[32,0,["twitterDescription"]],150],null],"true",[30,[36,6],[[32,0,["twitterDescriptionScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["twitterDescriptionScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setTwitterDescription",[32,0,["twitterDescriptionScratch"]]],null]]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","twitter-description"]],[["@errors","@property"],[[32,0,["post","errors"]],"twitterDescription"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[12],[2,"Twitter preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-post-preview"],[12],[2,"\\n"],[6,[37,7],[[32,0,["twitterImage"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-social-twitter-preview-image"],[15,5,[30,[36,4],[[32,0,["twitterImage"]]],null]],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-social-twitter-preview-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-preview-title"],[12],[1,[32,0,["twitterTitle"]]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-preview-desc"],[12],[1,[30,[36,5],[[32,0,["twitterDescription"]]],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-twitter-preview-meta"],[12],[2,"\\n "],[1,[30,[36,1],["twitter-link"],null]],[2,"\\n "],[1,[32,0,["config","blogDomain"]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"email-settings"],null]],null,[["default"],[{"statements":[[2," "],[8,"gh-post-settings-menu/email",[],[["@post","@savePostTask","@close"],[[32,0,["post"]],[32,0,["savePostTask"]],[30,[36,0],[[32,0],"closeSubview"],null]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"facebook-data"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close Facebook card panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Facebook card"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content"],[12],[2,"\\n "],[11,"form"],[24,"aria-label","Facebook card settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-image-uploader-with-preview",[],[["@image","@text","@allowUnsplash","@update","@remove"],[[32,0,["post","ogImage"]],"Add Facebook image",true,[30,[36,0],[[32,0],"setOgImage"],null],[30,[36,0],[[32,0],"clearOgImage"],null]]],null],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"ogTitle"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","og-title"],[12],[2,"Facebook title"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-field","og-title"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-og-title","og-title","post-setting-og-title",[30,[36,5],[[32,0,["facebookTitle"]],40],null],[30,[36,6],[[32,0,["ogTitleScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["ogTitleScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setOgTitle",[32,0,["ogTitleScratch"]]],null],true]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","og-title"]],[["@errors","@property"],[[32,0,["post","errors"]],"ogTitle"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"ogDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","og-description"],[12],[2,"Facebook description"],[13],[2,"\\n "],[8,"gh-textarea",[[24,"data-test-field","og-description"]],[["@class","@id","@name","@placeholder","@value","@input","@focus-out","@stopEnterKeyDownPropagation"],["post-setting-og-description","og-description","post-setting-og-description",[30,[36,5],[[32,0,["facebookDescription"]],150],null],[30,[36,6],[[32,0,["ogDescriptionScratch"]]],null],[30,[36,0],[[32,0],[30,[36,3],[[32,0,["ogDescriptionScratch"]]],null]],[["value"],["target.value"]]],[30,[36,0],[[32,0],"setOgDescription",[32,0,["ogDescriptionScratch"]]],null],"true"]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","og-description"]],[["@errors","@property"],[[32,0,["post","errors"]],"ogDescription"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[14,0,"form-group"],[12],[2,"\\n "],[10,"label"],[12],[2,"Facebook preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview no-container"],[12],[2,"\\n"],[6,[37,7],[[32,0,["facebookImage"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-social-og-preview-image"],[15,5,[30,[36,4],[[32,0,["facebookImage"]]],null]],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-social-og-preview-bookmark"],[12],[2,"\\n"],[2," "],[10,"div"],[14,0,"gh-social-og-preview-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview-meta"],[12],[2,"\\n "],[1,[32,0,["config","blogDomain"]]],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview-title"],[12],[1,[30,[36,5],[[32,0,["facebookTitle"]]],null]],[13],[2,"\\n "],[10,"div"],[14,0,"gh-social-og-preview-desc"],[12],[1,[30,[36,5],[[32,0,["facebookDescription"]]],null]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,7],[[30,[36,11],[[32,0,["subview"]],"codeinjection"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"settings-menu-header subview"],[12],[2,"\\n "],[11,"button"],[24,"aria-label","Close code injection panel"],[24,0,"back settings-menu-header-action"],[24,"data-test-button","close-psm-subview"],[24,4,"button"],[4,[38,0],[[32,0],"closeSubview"],null],[12],[1,[30,[36,1],["arrow-left"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Back"],[13],[13],[2,"\\n "],[10,"h4"],[12],[2,"Code injection"],[13],[2,"\\n "],[10,"div"],[14,5,"width:23px;"],[12],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"settings-menu-content settings-menu-content-codeinjection"],[12],[2,"\\n "],[11,"form"],[24,"aria-label","Code injection settings"],[4,[38,0],[[32,0],"discardEnter"],[["on"],["submit"]]],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"codeinjectionHead"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","codeinjection-head"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," header "],[10,"code"],[12],[2,"{{ghost_head}}"],[13],[13],[2,"\\n "],[8,"gh-cm-editor",[[24,"data-test-field","codeinjection-head"]],[["@value","@id","@class","@name","@focusOut","@stopEnterKeyDownPropagation","@update"],[[32,0,["codeinjectionHeadScratch"]],"post-setting-codeinjection-head","post-setting-codeinjection","post-setting-codeinjection-head",[30,[36,0],[[32,0],"setHeaderInjection",[32,0,["codeinjectionHeadScratch"]]],null],"true",[30,[36,0],[[32,0],[30,[36,3],[[32,0,["codeinjectionHeadScratch"]]],null]],null]]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","codeinjection-head"]],[["@errors","@property"],[[32,0,["post","errors"]],"codeinjectionHead"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["post","errors"]],[32,0,["post","hasValidated"]],"codeinjectionFoot"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","codeinjection-foot"],[12],[1,[30,[36,2],[[32,0,["post","displayName"]]],null]],[2," footer "],[10,"code"],[12],[2,"{{ghost_foot}}"],[13],[13],[2,"\\n "],[8,"gh-cm-editor",[[24,"data-test-field","codeinjection-foot"]],[["@value","@id","@class","@name","@focusOut","@stopEnterKeyDownPropagation","@update"],[[32,0,["codeinjectionFootScratch"]],"post-setting-codeinjection-foot","post-setting-codeinjection","post-setting-codeinjection-foot",[30,[36,0],[[32,0],"setFooterInjection",[32,0,["codeinjectionFootScratch"]]],null],"true",[30,[36,0],[[32,0],[30,[36,3],[[32,0,["codeinjectionFootScratch"]]],null]],null]]],null],[2,"\\n "],[8,"gh-error-message",[[24,"data-test-error","codeinjection-foot"]],[["@errors","@property"],[[32,0,["post","errors"]],"codeinjectionFoot"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action","svg-jar","capitalize","mut","background-image-style","truncate","readonly","if","gh-count-down-characters","now","moment-format","eq","unless","or","not","and","did-insert","did-update","not-eq"]}',moduleName:"ghost-admin/components/gh-post-settings-menu.hbs"})
|
|
1087
|
+
let Ge=(a=(0,r.tagName)(""),s=Ember.inject.service,o=Ember.inject.service,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.computed.alias("post.canonicalUrlScratch"),g=Ember.computed.alias("post.customExcerptScratch"),f=Ember.computed.alias("post.codeinjectionFootScratch"),v=Ember.computed.alias("post.codeinjectionHeadScratch"),y=Ember.computed.alias("post.metaDescriptionScratch"),w=Ember.computed.alias("post.metaTitleScratch"),k=Ember.computed.alias("post.ogDescriptionScratch"),E=Ember.computed.alias("post.ogTitleScratch"),O=Ember.computed.alias("post.twitterDescriptionScratch"),P=Ember.computed.alias("post.twitterTitleScratch"),_=(0,t.default)("post.slug"),j=(0,t.default)("post.uuid"),T=Ember.computed.or("metaDescriptionScratch","customExcerptScratch","post.excerpt"),z=Ember.computed.or("ogDescriptionScratch","customExcerptScratch","seoDescription","post.excerpt","settings.description",""),x=Ember.computed.or("post.ogImage","post.featureImage","settings.ogImage","settings.coverImage"),S=Ember.computed.or("ogTitleScratch","seoTitle"),C=Ember.computed.or("twitterDescriptionScratch","customExcerptScratch","seoDescription","post.excerpt","settings.description",""),M=Ember.computed.or("post.twitterImage","post.featureImage","settings.twitterImage","settings.coverImage"),D=Ember.computed.or("twitterTitleScratch","seoTitle"),A=Ember.computed.or("session.user.isOwnerOnly","session.user.isAdminOnly","session.user.isEditor"),I=Ember.computed.or("session.user.isOwnerOnly","session.user.isAdminOnly","session.user.isEditor"),L=Ember.computed("metaTitleScratch","post.titleScratch"),R=Ember.computed("post.{slug,canonicalUrl}","config.blogUrl"),N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,Z=Ember._action,J=Ember._action,X=Ember._action,Q=Ember._action,ee=Ember._action,te=Ember._action,ie=Ember._action,ne=Ember._action,re=Ember._action,ae=Ember._action,se=Ember._action,oe=Ember._action,le=Ember._action,ue=Ember._action,de=Ember._action,a((pe=class extends Ember.Component{constructor(){super(...arguments),qe(this,"feature",me,this),qe(this,"store",he,this),qe(this,"ajax",be,this),qe(this,"ghostPaths",ge,this),qe(this,"notifications",fe,this),qe(this,"slugGenerator",ve,this),qe(this,"session",ye,this),qe(this,"settings",we,this),qe(this,"ui",ke,this),qe(this,"config",Ee,this),$e(this,"post",null),$e(this,"isViewingSubview",!1),qe(this,"canonicalUrlScratch",Oe,this),qe(this,"customExcerptScratch",Pe,this),qe(this,"codeinjectionFootScratch",_e,this),qe(this,"codeinjectionHeadScratch",je,this),qe(this,"metaDescriptionScratch",Te,this),qe(this,"metaTitleScratch",ze,this),qe(this,"ogDescriptionScratch",xe,this),qe(this,"ogTitleScratch",Se,this),qe(this,"twitterDescriptionScratch",Ce,this),qe(this,"twitterTitleScratch",Me,this),qe(this,"slugValue",De,this),qe(this,"uuidValue",Ae,this),qe(this,"seoDescription",Ie,this),qe(this,"facebookDescription",Le,this),qe(this,"facebookImage",Re,this),qe(this,"facebookTitle",Ne,this),qe(this,"twitterDescription",Ue,this)
|
|
1086
1088
|
qe(this,"twitterImage",Fe,this),qe(this,"twitterTitle",Be,this),qe(this,"showVisibilityInput",Ve,this),qe(this,"showEmailNewsletter",He,this)}get seoTitle(){return this.metaTitleScratch||this.post.titleScratch||"(Untitled)"}get seoURL(){const e=[]
|
|
1087
1089
|
if(this.post.canonicalUrl)try{const t=new URL(this.post.canonicalUrl)
|
|
1088
1090
|
e.push(t.host),e.push(...t.pathname.split("/").reject((e=>!e)))}catch(t){}else{const t=new URL(this.config.blogUrl)
|
|
@@ -1105,7 +1107,7 @@ if(t.get("ogDescription")!==e)return t.set("ogDescription",e),t.validate({proper
|
|
|
1105
1107
|
if(t.get("twitterTitle")!==e)return t.set("twitterTitle",e),t.validate({property:"twitterTitle"}).then((()=>{if(!t.get("isNew"))return this.savePostTask.perform()}))}setTwitterDescription(e){let t=this.post
|
|
1106
1108
|
if(t.get("twitterDescription")!==e)return t.set("twitterDescription",e),t.validate({property:"twitterDescription"}).then((()=>{if(!t.get("isNew"))return this.savePostTask.perform()}))}setCoverImage(e){this.set("post.featureImage",e),this.get("post.isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),this.post.rollbackAttributes()}))}clearCoverImage(){this.set("post.featureImage",""),this.get("post.isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),this.post.rollbackAttributes()}))}setOgImage(e){this.set("post.ogImage",e),this.get("post.isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),this.post.rollbackAttributes()}))}clearOgImage(){this.set("post.ogImage",""),this.get("post.isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),this.post.rollbackAttributes()}))}setTwitterImage(e){this.set("post.twitterImage",e),this.get("post.isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),this.post.rollbackAttributes()}))}clearTwitterImage(){this.set("post.twitterImage",""),this.get("post.isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),this.post.rollbackAttributes()}))}changeAuthors(e){let t=this.post
|
|
1107
1109
|
e.mapBy("id").join()!==t.get("authors").mapBy("id").join()&&(t.set("authors",e),t.validate({property:"authors"}),t.get("isNew")||this.savePostTask.perform().catch((e=>{this.showError(e),t.rollbackAttributes()})))}deletePostInternal(){this.deletePost&&this.deletePost()}setSidebarWidthFromElement(e){const t=e.getBoundingClientRect().width
|
|
1108
|
-
this.setSidebarWidthVariable(t)}showError(e){e&&this.notifications.showAPIError(e)}setSidebarWidthVariable(e){document.documentElement.style.setProperty("--editor-sidebar-width",`${e}px`)}},me=Ye(pe.prototype,"feature",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Ye(pe.prototype,"store",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Ye(pe.prototype,"ajax",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Ye(pe.prototype,"ghostPaths",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Ye(pe.prototype,"notifications",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Ye(pe.prototype,"slugGenerator",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Ye(pe.prototype,"session",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Ye(pe.prototype,"settings",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Ye(pe.prototype,"ui",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Ye(pe.prototype,"config",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Ye(pe.prototype,"canonicalUrlScratch",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Ye(pe.prototype,"customExcerptScratch",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Ye(pe.prototype,"codeinjectionFootScratch",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),je=Ye(pe.prototype,"codeinjectionHeadScratch",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=Ye(pe.prototype,"metaDescriptionScratch",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=Ye(pe.prototype,"metaTitleScratch",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe=Ye(pe.prototype,"ogDescriptionScratch",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=Ye(pe.prototype,"ogTitleScratch",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ce=Ye(pe.prototype,"twitterDescriptionScratch",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=Ye(pe.prototype,"twitterTitleScratch",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=Ye(pe.prototype,"slugValue",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=Ye(pe.prototype,"uuidValue",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=Ye(pe.prototype,"seoDescription",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Le=Ye(pe.prototype,"facebookDescription",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Ye(pe.prototype,"facebookImage",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ne=Ye(pe.prototype,"facebookTitle",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ue=Ye(pe.prototype,"twitterDescription",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=Ye(pe.prototype,"twitterImage",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=Ye(pe.prototype,"twitterTitle",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve=Ye(pe.prototype,"showVisibilityInput",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),He=Ye(pe.prototype,"showEmailNewsletter",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ye(pe.prototype,"seoTitle",[L],Object.getOwnPropertyDescriptor(pe.prototype,"seoTitle"),pe.prototype),Ye(pe.prototype,"seoURL",[R],Object.getOwnPropertyDescriptor(pe.prototype,"seoURL"),pe.prototype),Ye(pe.prototype,"showSubview",[N],Object.getOwnPropertyDescriptor(pe.prototype,"showSubview"),pe.prototype),Ye(pe.prototype,"closeSubview",[U],Object.getOwnPropertyDescriptor(pe.prototype,"closeSubview"),pe.prototype),Ye(pe.prototype,"discardEnter",[F],Object.getOwnPropertyDescriptor(pe.prototype,"discardEnter"),pe.prototype),Ye(pe.prototype,"toggleFeatured",[B],Object.getOwnPropertyDescriptor(pe.prototype,"toggleFeatured"),pe.prototype),Ye(pe.prototype,"updateSlug",[V],Object.getOwnPropertyDescriptor(pe.prototype,"updateSlug"),pe.prototype),Ye(pe.prototype,"setPublishedAtBlogDate",[H],Object.getOwnPropertyDescriptor(pe.prototype,"setPublishedAtBlogDate"),pe.prototype),Ye(pe.prototype,"setVisibility",[q],Object.getOwnPropertyDescriptor(pe.prototype,"setVisibility"),pe.prototype),Ye(pe.prototype,"setPublishedAtBlogTime",[$],Object.getOwnPropertyDescriptor(pe.prototype,"setPublishedAtBlogTime"),pe.prototype),Ye(pe.prototype,"setCustomExcerpt",[Y],Object.getOwnPropertyDescriptor(pe.prototype,"setCustomExcerpt"),pe.prototype),Ye(pe.prototype,"setHeaderInjection",[W],Object.getOwnPropertyDescriptor(pe.prototype,"setHeaderInjection"),pe.prototype),Ye(pe.prototype,"setFooterInjection",[G],Object.getOwnPropertyDescriptor(pe.prototype,"setFooterInjection"),pe.prototype),Ye(pe.prototype,"setMetaTitle",[K],Object.getOwnPropertyDescriptor(pe.prototype,"setMetaTitle"),pe.prototype),Ye(pe.prototype,"setMetaDescription",[
|
|
1110
|
+
this.setSidebarWidthVariable(t)}showError(e){e&&this.notifications.showAPIError(e)}setSidebarWidthVariable(e){document.documentElement.style.setProperty("--editor-sidebar-width",`${e}px`)}},me=Ye(pe.prototype,"feature",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Ye(pe.prototype,"store",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Ye(pe.prototype,"ajax",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Ye(pe.prototype,"ghostPaths",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Ye(pe.prototype,"notifications",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Ye(pe.prototype,"slugGenerator",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Ye(pe.prototype,"session",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Ye(pe.prototype,"settings",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Ye(pe.prototype,"ui",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Ye(pe.prototype,"config",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Ye(pe.prototype,"canonicalUrlScratch",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Ye(pe.prototype,"customExcerptScratch",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Ye(pe.prototype,"codeinjectionFootScratch",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),je=Ye(pe.prototype,"codeinjectionHeadScratch",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=Ye(pe.prototype,"metaDescriptionScratch",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=Ye(pe.prototype,"metaTitleScratch",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe=Ye(pe.prototype,"ogDescriptionScratch",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=Ye(pe.prototype,"ogTitleScratch",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ce=Ye(pe.prototype,"twitterDescriptionScratch",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=Ye(pe.prototype,"twitterTitleScratch",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=Ye(pe.prototype,"slugValue",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=Ye(pe.prototype,"uuidValue",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=Ye(pe.prototype,"seoDescription",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Le=Ye(pe.prototype,"facebookDescription",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Ye(pe.prototype,"facebookImage",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ne=Ye(pe.prototype,"facebookTitle",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ue=Ye(pe.prototype,"twitterDescription",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=Ye(pe.prototype,"twitterImage",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=Ye(pe.prototype,"twitterTitle",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve=Ye(pe.prototype,"showVisibilityInput",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),He=Ye(pe.prototype,"showEmailNewsletter",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ye(pe.prototype,"seoTitle",[L],Object.getOwnPropertyDescriptor(pe.prototype,"seoTitle"),pe.prototype),Ye(pe.prototype,"seoURL",[R],Object.getOwnPropertyDescriptor(pe.prototype,"seoURL"),pe.prototype),Ye(pe.prototype,"showSubview",[N],Object.getOwnPropertyDescriptor(pe.prototype,"showSubview"),pe.prototype),Ye(pe.prototype,"closeSubview",[U],Object.getOwnPropertyDescriptor(pe.prototype,"closeSubview"),pe.prototype),Ye(pe.prototype,"discardEnter",[F],Object.getOwnPropertyDescriptor(pe.prototype,"discardEnter"),pe.prototype),Ye(pe.prototype,"toggleFeatured",[B],Object.getOwnPropertyDescriptor(pe.prototype,"toggleFeatured"),pe.prototype),Ye(pe.prototype,"updateSlug",[V],Object.getOwnPropertyDescriptor(pe.prototype,"updateSlug"),pe.prototype),Ye(pe.prototype,"setPublishedAtBlogDate",[H],Object.getOwnPropertyDescriptor(pe.prototype,"setPublishedAtBlogDate"),pe.prototype),Ye(pe.prototype,"setVisibility",[q],Object.getOwnPropertyDescriptor(pe.prototype,"setVisibility"),pe.prototype),Ye(pe.prototype,"setPublishedAtBlogTime",[$],Object.getOwnPropertyDescriptor(pe.prototype,"setPublishedAtBlogTime"),pe.prototype),Ye(pe.prototype,"setCustomExcerpt",[Y],Object.getOwnPropertyDescriptor(pe.prototype,"setCustomExcerpt"),pe.prototype),Ye(pe.prototype,"setHeaderInjection",[W],Object.getOwnPropertyDescriptor(pe.prototype,"setHeaderInjection"),pe.prototype),Ye(pe.prototype,"setFooterInjection",[G],Object.getOwnPropertyDescriptor(pe.prototype,"setFooterInjection"),pe.prototype),Ye(pe.prototype,"setMetaTitle",[K],Object.getOwnPropertyDescriptor(pe.prototype,"setMetaTitle"),pe.prototype),Ye(pe.prototype,"setMetaDescription",[Z],Object.getOwnPropertyDescriptor(pe.prototype,"setMetaDescription"),pe.prototype),Ye(pe.prototype,"setCanonicalUrl",[J],Object.getOwnPropertyDescriptor(pe.prototype,"setCanonicalUrl"),pe.prototype),Ye(pe.prototype,"setOgTitle",[X],Object.getOwnPropertyDescriptor(pe.prototype,"setOgTitle"),pe.prototype),Ye(pe.prototype,"setOgDescription",[Q],Object.getOwnPropertyDescriptor(pe.prototype,"setOgDescription"),pe.prototype),Ye(pe.prototype,"setTwitterTitle",[ee],Object.getOwnPropertyDescriptor(pe.prototype,"setTwitterTitle"),pe.prototype),Ye(pe.prototype,"setTwitterDescription",[te],Object.getOwnPropertyDescriptor(pe.prototype,"setTwitterDescription"),pe.prototype),Ye(pe.prototype,"setCoverImage",[ie],Object.getOwnPropertyDescriptor(pe.prototype,"setCoverImage"),pe.prototype),Ye(pe.prototype,"clearCoverImage",[ne],Object.getOwnPropertyDescriptor(pe.prototype,"clearCoverImage"),pe.prototype),Ye(pe.prototype,"setOgImage",[re],Object.getOwnPropertyDescriptor(pe.prototype,"setOgImage"),pe.prototype),Ye(pe.prototype,"clearOgImage",[ae],Object.getOwnPropertyDescriptor(pe.prototype,"clearOgImage"),pe.prototype),Ye(pe.prototype,"setTwitterImage",[se],Object.getOwnPropertyDescriptor(pe.prototype,"setTwitterImage"),pe.prototype),Ye(pe.prototype,"clearTwitterImage",[oe],Object.getOwnPropertyDescriptor(pe.prototype,"clearTwitterImage"),pe.prototype),Ye(pe.prototype,"changeAuthors",[le],Object.getOwnPropertyDescriptor(pe.prototype,"changeAuthors"),pe.prototype),Ye(pe.prototype,"deletePostInternal",[ue],Object.getOwnPropertyDescriptor(pe.prototype,"deletePostInternal"),pe.prototype),Ye(pe.prototype,"setSidebarWidthFromElement",[de],Object.getOwnPropertyDescriptor(pe.prototype,"setSidebarWidthFromElement"),pe.prototype),ce=pe))||ce)
|
|
1109
1111
|
e.default=Ge,Ember._setComponentTemplate(We,Ge)})),define("ghost-admin/components/gh-post-settings-menu/email",["exports","ghost-admin/errors/email-failed-error","validator","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r){var a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C
|
|
1110
1112
|
function M(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function D(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function A(e,t,i,n,r){var a={}
|
|
1111
1113
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -1354,7 +1356,7 @@ super(...arguments),e=this,t="internal",n=this,(i=c)&&Object.defineProperty(e,t,
|
|
|
1354
1356
|
e.default=h,Ember._setComponentTemplate(m,h)})),define("ghost-admin/components/gh-token-input/trigger",["exports","ember-power-select/components/power-select-multiple/trigger"],(function(e,t){var i,n,r,a,s
|
|
1355
1357
|
function o(e,t,i,n,r){var a={}
|
|
1356
1358
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1357
|
-
const l=Ember.HTMLBars.template({id:"
|
|
1359
|
+
const l=Ember.HTMLBars.template({id:"alOK7aci",block:'{"symbols":["opt","idx","@select","@listboxId","@tabindex","@onFocus","@onBlur","@placeholder","@searchEnabled","&default","@selectedItemComponent","@extra"],"statements":[[8,"sortable-objects",[],[["@tagName","@id","@class","@sortableObjectList","@enableSort","@useSwap","@sortEndAction"],["ul",[30,[36,9],["ember-power-select-multiple-options-",[32,3,["uniqueId"]]],null],"ember-power-select-multiple-options",[32,3,["selected"]],true,false,[30,[36,11],[[32,0],"reorderItems"],null]]],[["default"],[{"statements":[[2,"\\n"],[6,[37,13],[[30,[36,12],[[30,[36,12],[[32,3,["selected"]]],null]],null]],null,[["default","else"],[{"statements":[[6,[37,7],[[30,[36,10],[[32,12,["tokenComponent"]],"draggable-object"],null]],[["tagName","class","select","content","idx","isSortable","mouseDown","touchStart"],["li",[30,[36,9],["ember-power-select-multiple-option",[30,[36,4],[[32,1,["class"]],[30,[36,9],[" token-",[32,1,["class"]]],null]],null]],null],[32,3],[30,[36,6],[[32,1]],null],[32,2],true,[32,0,["handleOptionMouseDown"]],[32,0,["handleOptionTouchStart"]]]],[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"ember-power-select-multiple-inner-text"],[14,"data-test-selected-token",""],[12],[2,"\\n"],[6,[37,4],[[32,11]],null,[["default","else"],[{"statements":[[2," "],[1,[30,[36,7],[[32,11]],[["option","select"],[[30,[36,6],[[32,1]],null],[30,[36,6],[[32,3]],null]]]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[18,10,[[32,1],[32,3]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,8],[[32,3,["disabled"]]],null,[["default"],[{"statements":[[2," "],[11,"span"],[24,"role","button"],[24,"aria-label","remove element"],[24,0,"ember-power-select-multiple-remove-btn"],[16,"data-selected-index",[32,2]],[4,[38,0],["mousedown",[32,0,["handleOptionMouseDown"]]],null],[12],[2,"\\n "],[1,[30,[36,5],["close"],[["data-selected-index"],[[32,2]]]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[1,2]},{"statements":[[6,[37,4],[[30,[36,3],[[32,8],[30,[36,2],[[32,9]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"ember-power-select-placeholder"],[12],[1,[32,8]],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[6,[37,4],[[32,9]],null,[["default"],[{"statements":[[2," "],[11,"input"],[24,0,"ember-power-select-trigger-multiple-input"],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,"spellcheck","false"],[16,1,[31,["ember-power-select-trigger-multiple-input-",[32,3,["uniqueId"]]]]],[16,2,[32,3,["searchText"]]],[16,"aria-controls",[32,4]],[16,5,[32,0,["triggerMultipleInputStyle"]]],[16,"placeholder",[32,0,["maybePlaceholder"]]],[16,"disabled",[32,3,["disabled"]]],[16,"tabindex",[32,5]],[24,4,"search"],[4,[38,0],["focus",[32,6]],null],[4,[38,0],["blur",[32,7]],null],[4,[38,0],["input",[32,0,["handleInput"]]],null],[4,[38,0],["keydown",[32,0,["handleKeydown"]]],null],[4,[38,1],[[32,0,["storeInputStyles"]]],null],[12],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[10,"span"],[14,0,"ember-power-select-status-icon"],[12],[13],[2,"\\n"]],"hasEval":false,"upvars":["on","did-insert","not","and","if","svg-jar","readonly","component","unless","concat","or","action","-track-array","each"]}',moduleName:"ghost-admin/components/gh-token-input/trigger.hbs"})
|
|
1358
1360
|
let u=(i=Ember._action,n=Ember._action,r=Ember._action,a=Ember._action,o((s=class extends t.default{handleOptionMouseDown(e){if(e.stopPropagation(),this.args.select.actions.close(),!e.target.closest("[data-selected-index]")){let t=this.args.extra.optionMouseDown
|
|
1359
1361
|
if(t)return t(e)}return this.chooseOption(e)}handleOptionTouchStart(e){let t=this.args.extra.optionTouchStart
|
|
1360
1362
|
if(t)return t(e)}reorderItems(){let e=this.args.select.selected.slice()
|
|
@@ -1554,7 +1556,7 @@ e.target.querySelector("span").style.transform="translateX(0)",t.classList.remov
|
|
|
1554
1556
|
e.default=d,Ember._setComponentTemplate(u,d)})),define("ghost-admin/components/member/newsletter-preference",["exports","@glimmer/component","moment-timezone"],(function(e,t,i){var n,r,a,s
|
|
1555
1557
|
function o(e,t,i,n,r){var a={}
|
|
1556
1558
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1557
|
-
const l=Ember.HTMLBars.template({id:"
|
|
1559
|
+
const l=Ember.HTMLBars.template({id:"YYz1quwZ",block:'{"symbols":["newsletter"],"statements":[[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Newsletters"],[13],[2,"\\n"],[10,"div"],[15,0,[31,["gh-main-section-content grey ",[30,[36,2],[[30,[36,4],[[30,[36,3],["suppressionList"],null],[30,[36,9],[[32,0,["suppressionData","suppressed"]]],null]],null],"gh-member-newsletter-section"],null]]]],[12],[2,"\\n"],[6,[37,10],[[32,0,["suppressionData","suppressed"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-member-newsletters"],[12],[2,"\\n"],[6,[37,8],[[30,[36,7],[[30,[36,7],[[32,0,["newsletters"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-member-newsletter-row"],[14,"data-test-member-settings-switch",""],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-member-newsletter-title"],[12],[1,[32,1,["name"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[15,0,[31,["for-switch ",[30,[36,2],[[30,[36,4],[[30,[36,3],["suppressionList"],null],[32,0,["suppressionData","suppressed"]]],null],"disabled"],null]]]],[12],[2,"\\n "],[10,"label"],[14,0,"switch"],[15,"for",[32,1,["forId"]]],[12],[2,"\\n "],[8,"input",[[16,1,[32,1,["forId"]]],[24,3,"subscribed"],[24,"data-test-checkbox","member-subscribed"],[4,[38,6],["click",[30,[36,5],[[32,0,["updateNewsletterPreference"]],[32,1]],null]],null]],[["@checked","@type"],[[32,1,["subscribed"]],"checkbox"]],null],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[30,[36,4],[[30,[36,3],["suppressionList"],null],[32,0,["suppressionData","suppressed"]]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-members-no-data gh-member-newsletter-no-data"],[12],[2,"\\n"],[6,[37,2],[[30,[36,1],[[32,0,["suppressionData","reason"]],"fail"],null]],null,[["default"],[{"statements":[[2," "],[1,[30,[36,0],["suppression-notice-bounced"],[["class"],["gh-member-newsletter-icon"]]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[30,[36,1],[[32,0,["suppressionData","reason"]],"spam"],null]],null,[["default"],[{"statements":[[2," "],[1,[30,[36,0],["suppression-notice-flagged"],[["class"],["gh-member-newsletter-icon"]]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"h4"],[12],[2,"Email disabled"],[13],[2,"\\n\\n "],[10,"p"],[12],[2,"\\n"],[6,[37,2],[[30,[36,1],[[32,0,["suppressionData","reason"]],"fail"],null]],null,[["default"],[{"statements":[[2," Bounced on "],[1,[32,0,["suppressionData","date"]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[30,[36,1],[[32,0,["suppressionData","reason"]],"spam"],null]],null,[["default"],[{"statements":[[2," Flagged as spam on "],[1,[32,0,["suppressionData","date"]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"a"],[14,0,"midgrey"],[14,6,"https://ghost.org/help/disabled-emails"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"Learn more"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[30,[36,4],[[30,[36,3],["suppressionList"],null],[30,[36,9],[[32,0,["suppressionData","suppressed"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-member-newsletter-footer midgrey"],[12],[2,"\\n If disabled, member will "],[10,"em"],[12],[2,"not"],[13],[2," receive newsletter emails\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"]],"hasEval":false,"upvars":["svg-jar","eq","if","feature","and","fn","on","-track-array","each","not","unless"]}',moduleName:"ghost-admin/components/member/newsletter-preference.hbs"})
|
|
1558
1560
|
let u=(n=Ember._tracked,r=Ember._action,a=class extends t.default{constructor(){var e,t,i,n
|
|
1559
1561
|
super(...arguments),e=this,t="filterValue",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get newsletters(){return this.args.newsletters?.length>0?this.args.newsletters.map((e=>({name:e.name,description:e.description,subscribed:!!this.args.member?.newsletters?.find((t=>t.id===e.id)),id:e.id,forId:`${e.id}-checkbox`}))):[]}get suppressionData(){const{emailSuppression:e}=this.args.member,t=e?.info?.timestamp,n=t?(0,i.default)(new Date(t)).format("D MMM YYYY"):null
|
|
1560
1562
|
return{suppressed:e?.suppressed,reason:e?.info?.reason,date:n}}updateNewsletterPreference(e,t){let i=[]
|
|
@@ -1617,7 +1619,7 @@ let K=(o=Ember._tracked,l=Ember._tracked,u=Ember._tracked,d=Ember._tracked,p=Y((
|
|
|
1617
1619
|
let t=e.properties.relationOptions[0].name
|
|
1618
1620
|
"date"===e.properties.valueType&&(t="is-or-less")
|
|
1619
1621
|
let n=""
|
|
1620
|
-
"options"===e.properties.valueType&&e.properties.options.length>0?n=e.properties.options[0].name:"array"===e.properties.valueType?n=[]:"date"===e.properties.valueType&&(n=(0,i.default)(i.default.tz(this.timezone).format("YYYY-MM-DD")).toDate()),this.relation=e.relation??t,this.value=e.value??n,"date"===this.properties.valueType&&"string"==typeof this.value&&(this.value=(0,i.default)(i.default.tz(i.default.utc(e.value),this.timezone).format("YYYY-MM-DD")).toDate()),"options"===e.properties.valueType&&(e.properties.options.find((e=>e.name===this.value))||(this.value=n)),this.resource=null}get valueType(){return this.properties.valueType}get type(){return this.properties.name}get isResourceFilter(){return"string"==typeof this.properties.resource&&"string"===this.properties.valueType}get relationOptions(){return this.properties.relationOptions}get options(){return this.properties.options??[]}get isValid(){return Array.isArray(this.value)?!!this.value.length:!!this.value}}).prototype,"value",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=Y(c.prototype,"relation",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=Y(c.prototype,"properties",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=Y(c.prototype,"resource",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c),
|
|
1622
|
+
"options"===e.properties.valueType&&e.properties.options.length>0?n=e.properties.options[0].name:"array"===e.properties.valueType?n=[]:"date"===e.properties.valueType&&(n=(0,i.default)(i.default.tz(this.timezone).format("YYYY-MM-DD")).toDate()),this.relation=e.relation??t,this.value=e.value??n,"date"===this.properties.valueType&&"string"==typeof this.value&&(this.value=(0,i.default)(i.default.tz(i.default.utc(e.value),this.timezone).format("YYYY-MM-DD")).toDate()),"options"===e.properties.valueType&&(e.properties.options.find((e=>e.name===this.value))||(this.value=n)),this.resource=null}get valueType(){return this.properties.valueType}get type(){return this.properties.name}get isResourceFilter(){return"string"==typeof this.properties.resource&&"string"===this.properties.valueType}get relationOptions(){return this.properties.relationOptions}get options(){return this.properties.options??[]}get isValid(){return Array.isArray(this.value)?!!this.value.length:!!this.value}}).prototype,"value",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=Y(c.prototype,"relation",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=Y(c.prototype,"properties",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=Y(c.prototype,"resource",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c),Z=(g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember._tracked,E=Ember._action,O=Ember._action,P=Ember._action,_=Ember._action,j=Ember._action,T=Ember._action,z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=(0,s.task)({drop:!0}),R=(0,s.task)({restartable:!0}),N=class extends t.default{get filterProperties(){let e=G
|
|
1621
1623
|
return e=e.filter((e=>!e.feature||this.feature[e.feature])),e=e.filter((e=>!e.setting||this.settings[e.setting])),e=e.filter((e=>!e.excludeForFeature||!this.feature[e.excludeForFeature])),e}get availableFilterProperties(){let e=this.filterProperties
|
|
1622
1624
|
const t=this.membersUtils.hasMultipleTiers
|
|
1623
1625
|
return e=e.filter((e=>"tier"!==e.name||t)),this.settings.paidMembersEnabled||(e=e.reject((e=>"Subscription"===e.group))),"disabled"===this.settings.editorDefaultEmailRecipients&&(e=e.reject((e=>"Email"===e.group))),e}get totalFilters(){return this.filters?.length}constructor(){super(...arguments),$(this,"feature",U,this),$(this,"session",F,this),$(this,"settings",B,this),$(this,"store",V,this),$(this,"membersUtils",H,this),$(this,"filters",q,this),this.parseDefaultFilters(),this.fetchTiers.perform()}parseDefaultFilters(){if(this.args.defaultFilterParam){const e=this.validFilters
|
|
@@ -1657,7 +1659,7 @@ for(const t of this.filters)t.isResourceFilter&&t.value&&!e.includes(t.value)&&e
|
|
|
1657
1659
|
if(e.length>0){const t=yield this.store.query("post",{limit:"all",filter:`id:[${e.join(",")}]`})
|
|
1658
1660
|
for(const e of this.filters)if(e.isResourceFilter&&e.value){const i=t.find((t=>t.id===e.value))
|
|
1659
1661
|
i&&(e.resource=i)}}}},U=Y(N.prototype,"feature",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=Y(N.prototype,"session",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=Y(N.prototype,"settings",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=Y(N.prototype,"store",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=Y(N.prototype,"membersUtils",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=Y(N.prototype,"filters",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new a.TrackedArray([new K({properties:r.NAME_FILTER})])}}),Y(N.prototype,"parseDefaultFilters",[E],Object.getOwnPropertyDescriptor(N.prototype,"parseDefaultFilters"),N.prototype),Y(N.prototype,"addFilter",[O],Object.getOwnPropertyDescriptor(N.prototype,"addFilter"),N.prototype),Y(N.prototype,"onDropdownClose",[P],Object.getOwnPropertyDescriptor(N.prototype,"onDropdownClose"),N.prototype),Y(N.prototype,"handleSubmitKeyup",[_],Object.getOwnPropertyDescriptor(N.prototype,"handleSubmitKeyup"),N.prototype),Y(N.prototype,"deleteFilter",[j],Object.getOwnPropertyDescriptor(N.prototype,"deleteFilter"),N.prototype),Y(N.prototype,"setFilterType",[T],Object.getOwnPropertyDescriptor(N.prototype,"setFilterType"),N.prototype),Y(N.prototype,"setFilterRelation",[z],Object.getOwnPropertyDescriptor(N.prototype,"setFilterRelation"),N.prototype),Y(N.prototype,"setFilterValue",[x],Object.getOwnPropertyDescriptor(N.prototype,"setFilterValue"),N.prototype),Y(N.prototype,"setResourceValue",[S],Object.getOwnPropertyDescriptor(N.prototype,"setResourceValue"),N.prototype),Y(N.prototype,"applySoftFilter",[C],Object.getOwnPropertyDescriptor(N.prototype,"applySoftFilter"),N.prototype),Y(N.prototype,"applyFilter",[M],Object.getOwnPropertyDescriptor(N.prototype,"applyFilter"),N.prototype),Y(N.prototype,"applyFiltersPressed",[D],Object.getOwnPropertyDescriptor(N.prototype,"applyFiltersPressed"),N.prototype),Y(N.prototype,"applyParsedFilter",[A],Object.getOwnPropertyDescriptor(N.prototype,"applyParsedFilter"),N.prototype),Y(N.prototype,"resetFilter",[I],Object.getOwnPropertyDescriptor(N.prototype,"resetFilter"),N.prototype),Y(N.prototype,"fetchTiers",[L],Object.getOwnPropertyDescriptor(N.prototype,"fetchTiers"),N.prototype),Y(N.prototype,"fetchFilterResourcesTask",[R],Object.getOwnPropertyDescriptor(N.prototype,"fetchFilterResourcesTask"),N.prototype),N)
|
|
1660
|
-
e.default=
|
|
1662
|
+
e.default=Z,Ember._setComponentTemplate(W,Z)})),define("ghost-admin/components/members/filters/audience-feedback",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AUDIENCE_FEEDBACK_FILTER=void 0
|
|
1661
1663
|
const t={label:"Responded with feedback",name:"newsletter_feedback",valueType:"string",resource:"email",relationOptions:[{label:"More like this",name:1},{label:"Less like this",name:0}],feature:"audienceFeedback",buildNqlFilter:e=>`(feedback.post_id:${e.value}+feedback.score:${e.relation})`,parseNqlFilter:e=>{if(e.$and)return 2===e.$and.length&&e.$and[0]["feedback.post_id"]&&void 0!==e.$and[1]["feedback.score"]?{relation:parseInt(e.$and[1]["feedback.score"]),value:e.$and[0]["feedback.post_id"]}:void 0},getColumns:e=>[{label:"Email",getValue:()=>({class:"",text:e.resource?.title??""})},{label:"Feedback",getValue:()=>({class:"gh-members-list-feedback",text:1===e.relation?"More like this":"Less like this",icon:1===e.relation?"event-more-like-this":"event-less-like-this"})}]}
|
|
1662
1664
|
e.AUDIENCE_FEEDBACK_FILTER=t})),define("ghost-admin/components/members/filters/columns/date-column",["exports","moment-timezone"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.getDateColumnValue=function(e,i){if(!e)return null
|
|
1663
1665
|
return{class:"",text:e?t.default.tz(e,i.timezone).format("DD MMM YYYY"):"",subtext:(0,t.default)(e).from((0,t.default)()),subtextClass:"gh-members-list-subscribed-moment"}}})),define("ghost-admin/components/members/filters/created-at",["exports","ghost-admin/components/members/filters/relation-options"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.CREATED_AT_FILTER=void 0
|
|
@@ -1888,11 +1890,11 @@ function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,config
|
|
|
1888
1890
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1889
1891
|
const h=Ember.HTMLBars.template({id:"31zcI7Eh",block:'{"symbols":[],"statements":[[11,"header"],[24,0,"modal-header"],[24,"data-test-modal","webhook-form"],[4,[38,2],[[32,0,["reset"]]],null],[12],[2,"\\n "],[10,"h1"],[14,"data-test-text","title"],[12],[2,"Connect with Stripe"],[13],[2,"\\n"],[13],[2,"\\n"],[11,"button"],[24,0,"close"],[24,6,""],[24,"title","Close"],[24,4,"button"],[4,[38,0],[[32,0],"closeModal"],null],[4,[38,0],[[32,0],[30,[36,1],[[32,0,["noop"]]],null]],[["on"],["mouseDown"]]],[12],[2,"\\n "],[1,[30,[36,3],["close"],null]],[2,"\\n"],[13],[2,"\\n\\n"],[10,"form"],[12],[2,"\\n"],[11,"div"],[24,0,"modal-body"],[4,[38,4],[[32,0,["updateSuccessModifier"]]],null],[12],[2,"\\n "],[8,"settings/members/stripe-settings-form",[],[["@setStripeConnectIntegrationTokenSetting","@onConnected","@onDisconnected"],[[32,0,["setStripeConnectIntegrationTokenSetting"]],[32,0,["updateSuccessModifier"]],[32,0,["updateSuccessModifier"]]]],null],[2,"\\n"],[13],[2,"\\n"],[13],[2,"\\n\\n"],[10,"div"],[14,0,"modal-footer"],[12],[2,"\\n"],[6,[37,6],[[30,[36,5],[[32,0,["membersUtils","isStripeEnabled"]],[32,0,["settings","stripeConnectAccountId"]]],null]],null,[["default"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-black"],[24,"data-test-button","stripe-connect-ok"],[24,4,"button"],[4,[38,0],[[32,0],"confirm"],null],[4,[38,0],[[32,0],[30,[36,1],[[32,0,["noop"]]],null]],[["on"],["mouseDown"]]],[12],[2,"\\n "],[10,"span"],[12],[2,"OK"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"]],"hasEval":false,"upvars":["action","optional","will-destroy","svg-jar","did-insert","and","if"]}',moduleName:"ghost-admin/components/modal-stripe-connect.hbs"})
|
|
1890
1892
|
let b=(i=Ember.inject.service,n=Ember.inject.service,r=Ember._action,a=Ember._action,s=Ember._action,o=Ember._action,l=Ember._action,u=class extends t.default{constructor(){super(...arguments),p(this,"settings",d,this),p(this,"membersUtils",c,this),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"actions",{confirm(){if(this.settings.stripeConnectAccountId)return this.confirmAction()},closeModal(){this.close()}})}setStripeConnectIntegrationTokenSetting(e){this.settings.stripeConnectIntegrationToken=e}reset(){this.settings.stripeConnectIntegrationToken=void 0}close(e){e?.preventDefault?.(),this.closeModal()}confirmAction(){this.confirm(),this.close()}updateSuccessModifier(){this.membersUtils.get("isStripeEnabled")&&this.settings.stripeConnectAccountId?-1===this.modifier?.indexOf("stripe-connected")&&this.updateModifier(`${this.modifier} stripe-connected`):-1!==this.modifier?.indexOf("stripe-connected")&&this.updateModifier(this.modifier.replace(/\s?stripe-connected/,""))}},d=m(u.prototype,"settings",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(u.prototype,"membersUtils",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(u.prototype,"setStripeConnectIntegrationTokenSetting",[r],Object.getOwnPropertyDescriptor(u.prototype,"setStripeConnectIntegrationTokenSetting"),u.prototype),m(u.prototype,"reset",[a],Object.getOwnPropertyDescriptor(u.prototype,"reset"),u.prototype),m(u.prototype,"close",[s],Object.getOwnPropertyDescriptor(u.prototype,"close"),u.prototype),m(u.prototype,"confirmAction",[o],Object.getOwnPropertyDescriptor(u.prototype,"confirmAction"),u.prototype),m(u.prototype,"updateSuccessModifier",[l],Object.getOwnPropertyDescriptor(u.prototype,"updateSuccessModifier"),u.prototype),u)
|
|
1891
|
-
e.default=b,Ember._setComponentTemplate(h,b)})),define("ghost-admin/components/modal-tier",["exports","ghost-admin/components/modal-base","ghost-admin/models/tier-benefit-item","ghost-admin/utils/currency","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r,a){var s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
1893
|
+
e.default=b,Ember._setComponentTemplate(h,b)})),define("ghost-admin/components/modal-tier",["exports","ghost-admin/components/modal-base","ghost-admin/models/tier-benefit-item","ghost-admin/utils/currency","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r,a){var s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X
|
|
1892
1894
|
function Q(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function ee(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function te(e,t,i,n,r){var a={}
|
|
1893
1895
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1894
1896
|
const ie=Ember.HTMLBars.template({id:"BILfhc9t",block:'{"symbols":["benefitItem","benefitItem","index"],"statements":[[11,"button"],[24,0,"close"],[24,6,""],[24,"title","Close"],[24,4,"button"],[4,[38,8],["click",[32,0,["closeModal"]]],null],[12],[2,"\\n "],[1,[30,[36,0],["close"],null]],[2,"\\n"],[13],[2,"\\n\\n"],[10,"div"],[14,0,"gh-tier-modal-content"],[14,"data-test-modal","edit-tier"],[12],[2,"\\n "],[10,"header"],[14,0,"modal-header"],[12],[2,"\\n "],[10,"h1"],[14,"data-test-text","title"],[12],[1,[32,0,["title"]]],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"form"],[12],[2,"\\n "],[10,"div"],[14,0,"modal-body gh-form-edit-tier gh-tier-settings"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section columns-3"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block span-2"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Basic"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey gh-tier-priceform-block"],[12],[2,"\\n"],[6,[37,12],[[32,0,["isFreeTier"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[[24,"data-test-formgroup","name"]],[["@errors","@hasValidated","@property"],[[32,0,["tier","errors"]],[32,0,["tier","hasValidated"]],"name"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","name"],[14,0,"fw6"],[12],[2,"Name"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","tier-name"]],[["@value","@input","@name","@autofocus","@placeholder","@id","@class"],[[30,[36,10],[[32,0,["tier","name"]]],null],[30,[36,9],[[32,0],[30,[36,11],[[32,0,["tier","name"]]],null]],[["value"],["target.value"]]],"name",true,"Bronze","name","gh-input"]],null],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["tier","errors"]],"name"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[8,"gh-form-group",[[24,"data-test-formgroup","description"]],[["@errors","@property"],[[32,0,["tier","errors"]],"description"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","description"],[14,0,"fw6"],[12],[2,"Description"],[13],[2,"\\n"],[6,[37,1],[[32,0,["isFreeTier"]]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-text-input",[[24,"data-test-input","free-tier-description"]],[["@value","@input","@name","@placeholder","@id","@class"],[[30,[36,10],[[32,0,["tier","description"]]],null],[30,[36,9],[[32,0],[30,[36,11],[[32,0,["tier","description"]]],null]],[["value"],["target.value"]]],"description",[31,["Free preview of ",[32,0,["settings","title"]]]],"description","gh-input"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"gh-text-input",[[24,"data-test-input","tier-description"]],[["@value","@input","@name","@placeholder","@id","@class"],[[30,[36,10],[[32,0,["tier","description"]]],null],[30,[36,9],[[32,0],[30,[36,11],[[32,0,["tier","description"]]],null]],[["value"],["target.value"]]],"description","Full access to premium content","description","gh-input"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["tier","errors"]],"description"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n"],[6,[37,12],[[32,0,["isFreeTier"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-settings-members-pricetrialcont"],[12],[2,"\\n "],[8,"gh-form-group",[[24,"data-test-formgroup","prices"]],[["@errors","@hasValidated","@property"],[[32,0,["settings","errors"]],[32,0,["settings","hasValidated"]],"prices"]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"gh-settings-members-pricelabelcont free-trial-enabled"],[12],[2,"\\n "],[10,"label"],[14,"for","monthlyPrice"],[14,0,"fw6"],[12],[2,"Prices"],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-setting-members-currency gh-select"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-setting-members-currencylabel"],[12],[2,"\\n "],[10,"span"],[12],[1,[32,0,["currency"]]],[13],[2,"\\n "],[1,[30,[36,0],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"one-way-select",[[24,1,"currency"],[24,3,"currency"]],[["@value","@options","@optionValuePath","@optionLabelPath","@update"],[[32,0,["selectedCurrency"]],[30,[36,10],[[32,0,["allCurrencies"]]],null],"value","label",[30,[36,9],[[32,0],"setCurrency"],null]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-setting-members-prices free-trial-enabled"],[12],[2,"\\n\\n "],[10,"div"],[14,0,"gh-input-group"],[12],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","monthly-price"]],[["@id","@value","@type","@input","@focus-out"],["monthlyPrice",[30,[36,10],[[32,0,["stripeMonthlyAmount"]]],null],"number",[30,[36,9],[[32,0],[30,[36,11],[[32,0,["stripeMonthlyAmount"]]],null]],[["value"],["target.value"]]],[32,0,["validateStripePlans"]]]],null],[2,"\\n "],[10,"span"],[14,0,"gh-input-append"],[12],[10,"span"],[14,0,"ttu"],[12],[1,[32,0,["currency"]]],[13],[2,"/month"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-input-group"],[12],[2,"\\n "],[8,"gh-text-input",[[16,"data-test-title-input",true],[24,"data-test-input","yearly-price"]],[["@id","@value","@type","@input","@focus-out","@placeholder"],["yearlyPrice",[30,[36,10],[[32,0,["stripeYearlyAmount"]]],null],"number",[30,[36,9],[[32,0],[30,[36,11],[[32,0,["stripeYearlyAmount"]]],null]],[["value"],["target.value"]]],[32,0,["validateStripePlans"]],""]],null],[2,"\\n "],[10,"span"],[14,0,"gh-input-append"],[12],[10,"span"],[14,0,"ttu"],[12],[1,[32,0,["currency"]]],[13],[2,"/year"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[6,[37,1],[[32,0,["stripePlanError"]]],null,[["default"],[{"statements":[[2," "],[10,"p"],[14,0,"response w-100"],[12],[10,"span"],[14,0,"red"],[12],[1,[32,0,["stripePlanError"]]],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n \\n "],[8,"gh-form-group",[[24,"data-test-formgroup","trialDays"]],[["@errors","@property"],[[32,0,["tier","errors"]],"trialDays"]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex justify-between items-center mb2"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-tier-setting-title"],[12],[2,"Add a free trial"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"for-switch small"],[12],[2,"\\n "],[10,"label"],[14,0,"switch"],[14,"for","free-trial"],[12],[2,"\\n "],[8,"input",[[24,1,"free-trial"],[24,3,"free-trial"],[4,[38,8],["click",[32,0,["setFreeTrialEnabled"]]],null]],[["@checked","@type"],[[32,0,["freeTrialEnabled"]],"checkbox"]],null],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[15,0,[31,["gh-input-group ",[30,[36,12],[[32,0,["freeTrialEnabled"]],"gh-input-group-tier-trial-disabled"],null]]]],[12],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","tier-trial"],[4,[38,8],["input",[32,0,["setTrialDays"]]],null]],[["@value","@type","@name","@id","@class","@disabled"],[[30,[36,10],[[32,0,["tier","trialDays"]]],null],"number","trial","trial","gh-input",[30,[36,12],[[32,0,["freeTrialEnabled"]],"true"],null]]],null],[2,"\\n "],[10,"span"],[14,0,"gh-input-append"],[12],[2,"days"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"Members will be subscribed at full price once the trial ends. "],[10,"a"],[14,0,"trial-docs-link"],[14,6,"https://ghost.org/help/free-trials"],[12],[2,"Learn more"],[13],[13],[2,"\\n"],[6,[37,1],[[32,0,["hasTrialDaysError"]]],null,[["default"],[{"statements":[[2," "],[10,"p"],[14,0,"response w-100"],[12],[10,"span"],[14,0,"red"],[12],[2,"Free trial must be at least 1 day"],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n \\n "],[8,"gh-form-group",[],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","welcomePage"],[14,0,"fw6"],[12],[2,"Welcome page"],[13],[2,"\\n "],[8,"gh-url-input",[],[["@id","@value","@baseUrl","@setResult","@validateUrl","@placeholder"],["welcomePage",[30,[36,10],[[32,0,["model","tier","welcomePageURL"]]],null],[30,[36,10],[[32,0,["siteUrl"]]],null],[32,0,["setWelcomePageURL"]],[32,0,["validateWelcomePageURL"]],[30,[36,10],[[32,0,["siteUrl"]]],null]]],null],[2,"\\n"],[6,[37,1],[[32,0,["isFreeTier"]]],null,[["default","else"],[{"statements":[[2," "],[10,"p"],[12],[2,"Redirect to this URL after signup for a free membership"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"p"],[12],[2,"Redirect to this URL after signup for premium membership"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Benefits"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey gh-tier-form-benefits"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-benefits"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-blognav"],[12],[2,"\\n "],[8,"sortable-objects",[],[["@sortableObjectList","@useSwap","@sortEndAction"],[[32,0,["benefits"]],false,[30,[36,9],[[32,0],"reorderItems"],null]]],[["default"],[{"statements":[[2,"\\n"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["benefits"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[8,"draggable-object",[],[["@content","@dragHandle","@isSortable"],[[32,2],".gh-blognav-grab",true]],[["default"],[{"statements":[[2,"\\n "],[8,"gh-benefit-item",[[16,"data-test-benefit-item",[32,3]]],[["@benefitItem","@addItem","@focusItem","@deleteItem","@updateLabel"],[[32,2],[30,[36,9],[[32,0],"addBenefit"],null],[30,[36,9],[[32,0],"focusItem"],null],[30,[36,9],[[32,0],"deleteBenefit"],null],[30,[36,9],[[32,0],"updateLabel"],null]]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[2,3]}]]],[2," "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-benefit-item",[[24,"data-test-benefit-item","new"]],[["@isFreeTier","@benefitItem","@addItem","@deleteItem","@updateLabel"],[[32,0,["isFreeTier"]],[32,0,["newBenefit"]],[30,[36,9],[[32,0],"addBenefit"],null],[30,[36,9],[[32,0],"deleteBenefit"],null],[30,[36,9],[[32,0],"updateLabel"],null]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block gh-tier-form-tierpreview"],[14,"data-test-tierpreview",""],[12],[2,"\\n "],[10,"div"],[14,0,"gh-tier-form-tierpreview-content"],[12],[2,"\\n"],[6,[37,1],[[32,0,["isFreeTier"]]],null,[["default","else"],[{"statements":[[2," "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[14,"data-test-tierpreview-title",""],[12],[2,"Free Membership Preview"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"gh-tier-form-tierpreivew-cadence"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[14,"data-test-tierpreview-title",""],[12],[2,"Tier Preview"],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[11,"button"],[16,0,[31,["gh-btn ",[30,[36,1],[[30,[36,6],[[32,0,["previewCadence"]],"monthly"],null],"selected"],null]]]],[24,4,"button"],[4,[38,8],["click",[30,[36,7],[[32,0,["changeCadence"]],"monthly"],null]],null],[12],[10,"span"],[12],[2,"Monthly"],[13],[13],[2,"\\n "],[11,"button"],[16,0,[31,["gh-btn ",[30,[36,1],[[30,[36,6],[[32,0,["previewCadence"]],"yearly"],null],"selected"],null]]]],[24,4,"button"],[4,[38,8],["click",[30,[36,7],[[32,0,["changeCadence"]],"yearly"],null]],null],[12],[10,"span"],[12],[2,"Yearly"],[13],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"gh-main-section-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-portal-tier-card-header"],[12],[2,"\\n"],[6,[37,1],[[32,0,["tier","name"]]],null,[["default","else"],[{"statements":[[2," "],[10,"h4"],[14,0,"gh-portal-tier-name"],[14,"data-test-tierpreview-name",""],[15,5,[32,0,["accentColorStyle"]]],[12],[1,[32,0,["tier","name"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"h4"],[14,0,"placeholder gh-portal-tier-name"],[15,5,[32,0,["accentColorStyle"]]],[14,"data-test-tierpreview-name",""],[12],[2,"Bronze"],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-portal-tier-card-pricecontainer"],[14,"data-test-tierpreview-price",""],[12],[2,"\\n"],[6,[37,1],[[32,0,["isFreeTier"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-price"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-sign"],[12],[1,[30,[36,4],[[32,0,["currency"]]],null]],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"0"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,1],[[32,0,["stripeYearlyAmount"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-price"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-sign"],[12],[1,[30,[36,4],[[32,0,["currency"]]],null]],[13],[2,"\\n"],[6,[37,1],[[30,[36,6],[[32,0,["previewCadence"]],"monthly"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[14,0,"amount"],[12],[2,"\\n "],[1,[30,[36,5],[[32,0,["stripeMonthlyAmount"]]],null]],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"billing-period"],[12],[2,"/month"],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"amount"],[12],[2,"\\n "],[1,[30,[36,5],[[32,0,["stripeYearlyAmount"]]],null]],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"billing-period"],[12],[2,"/year"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,1],[[32,0,["isFreeTrialEnabled"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-portal-discount-label"],[12],[2,"\\n "],[10,"span"],[15,5,[31,["background-color: ",[32,0,["settings","accentColor"]]]]],[12],[13],[2,"\\n "],[1,[32,0,["tier","trialDays"]]],[2," days free"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-price placeholder"],[12],[2,"\\n "],[10,"span"],[14,0,"currency-sign"],[12],[1,[30,[36,4],[[32,0,["currency"]]],null]],[13],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"0"],[13],[2,"\\n "],[10,"span"],[14,0,"billing-period"],[12],[2,"/year"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,1],[[30,[36,14],[[30,[36,6],[[32,0,["previewCadence"]],"yearly"],null],[30,[36,13],[[32,0,["discountValue"]],0],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-portal-discount-label-trial"],[15,5,[32,0,["accentColorStyle"]]],[12],[2,"\\n "],[1,[32,0,["discountValue"]]],[2,"% discount\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-portal-tier-card-details"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-portal-tier-card-detaildata"],[12],[2,"\\n"],[6,[37,1],[[32,0,["tier","description"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-description"],[14,"data-test-tierpreview-description",""],[12],[1,[32,0,["tier","description"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,1],[[32,0,["isFreeTier"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"placeholder gh-portal-tier-description"],[14,"data-test-tierpreview-description",""],[12],[2,"Free preview of "],[1,[32,0,["settings","title"]]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"placeholder gh-portal-tier-description"],[14,"data-test-tierpreview-description",""],[12],[2,"Full access to premium content"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,0,["benefits"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-benefits"],[14,"data-test-tierpreview-benefits",""],[12],[2,"\\n"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["benefits"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-benefit"],[12],[1,[30,[36,0],["check-2"],null]],[2,"\\n "],[10,"div"],[14,0,"gh-portal-benefit-title"],[12],[1,[32,1,["name"]]],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"placeholder gh-portal-tier-benefits"],[14,"data-test-tierpreview-benefits",""],[12],[2,"\\n"],[6,[37,1],[[32,0,["isFreeTier"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-benefit"],[12],[1,[30,[36,0],["check-2"],null]],[2,"\\n "],[10,"div"],[14,0,"gh-portal-benefit-title"],[12],[2,"\\n Access to all public posts\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"gh-portal-tier-benefit"],[12],[2,"\\n "],[1,[30,[36,0],["check-2"],null]],[2,"\\n "],[10,"div"],[14,0,"gh-portal-benefit-title"],[12],[2,"Expert analysis"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n\\n"],[10,"div"],[14,0,"modal-footer top-shadow items-center"],[12],[2,"\\n "],[11,"button"],[24,0,"gh-btn"],[24,"data-test-button","cancel-webhook"],[24,4,"button"],[4,[38,9],[[32,0],"closeModal"],null],[4,[38,9],[[32,0],[30,[36,15],[[32,0,["noop"]]],null]],[["on"],["mouseDown"]]],[12],[2,"\\n "],[10,"span"],[12],[2,"Cancel"],[13],[2,"\\n "],[13],[2,"\\n "],[8,"gh-task-button",[[24,"data-test-button","save-tier"]],[["@buttonText","@successText","@task","@idleClass","@class"],[[31,[[30,[36,1],[[32,0,["isExistingTier"]],"Save","Add tier"],null]]],[32,0,["successText"]],[32,0,["saveTier"]],"gh-btn-primary",[31,["gh-btn ",[30,[36,1],[[32,0,["isExistingTier"]],"gh-btn-black","gh-btn-green"],null]," gh-btn-icon"]]]],null],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["svg-jar","if","-track-array","each","currency-symbol","format-number","eq","fn","on","action","readonly","mut","unless","gt","and","optional"]}',moduleName:"ghost-admin/components/modal-tier.hbs"}),ne=n.currencies.map((e=>({value:e.isoCode.toLowerCase(),label:`${e.isoCode} - ${e.name}`,isoCode:e.isoCode})))
|
|
1895
|
-
let re=(s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember._tracked,d=Ember._tracked,c=Ember._tracked,p=Ember._tracked,m=Ember._tracked,h=Ember._tracked,b=Ember._tracked,g=Ember._tracked,f=Ember._tracked,v=Ember._tracked,y=Ember._tracked,w=Ember._tracked,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._action,_=Ember._action,j=Ember._action,T=Ember._action,z=(0,a.task)({drop:!0}),x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=class extends t.default{constructor(){super(...arguments),Q(this,"feature",A,this),Q(this,"settings",I,this),Q(this,"membersUtils",L,this),Q(this,"config",R,this),Q(this,"model",N,this),Q(this,"tier",U,this),Q(this,"periodVal",F,this),Q(this,"stripeMonthlyAmount",B,this),Q(this,"stripeYearlyAmount",V,this),Q(this,"currency",H,this),Q(this,"stripePlanError",q,this),Q(this,"benefits",$,this),Q(this,"newBenefit",Y,this),Q(this,"welcomePageURL",W,this),Q(this,"previewCadence",G,this),Q(this,"discountValue",K,this),Q(this,"hasSaved",
|
|
1897
|
+
let re=(s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember._tracked,d=Ember._tracked,c=Ember._tracked,p=Ember._tracked,m=Ember._tracked,h=Ember._tracked,b=Ember._tracked,g=Ember._tracked,f=Ember._tracked,v=Ember._tracked,y=Ember._tracked,w=Ember._tracked,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._action,_=Ember._action,j=Ember._action,T=Ember._action,z=(0,a.task)({drop:!0}),x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=class extends t.default{constructor(){super(...arguments),Q(this,"feature",A,this),Q(this,"settings",I,this),Q(this,"membersUtils",L,this),Q(this,"config",R,this),Q(this,"model",N,this),Q(this,"tier",U,this),Q(this,"periodVal",F,this),Q(this,"stripeMonthlyAmount",B,this),Q(this,"stripeYearlyAmount",V,this),Q(this,"currency",H,this),Q(this,"stripePlanError",q,this),Q(this,"benefits",$,this),Q(this,"newBenefit",Y,this),Q(this,"welcomePageURL",W,this),Q(this,"previewCadence",G,this),Q(this,"discountValue",K,this),Q(this,"hasSaved",Z,this),Q(this,"freeTrialEnabled",J,this),Q(this,"savedBenefits",X,this),ee(this,"accentColorStyle",""),ee(this,"actions",{addBenefit(e){return e.validate().then((()=>{this.addNewBenefitItem(e)}))},focusItem(){},deleteBenefit(e){e&&this.benefits.removeObject(e)},reorderItems(){this.tier.set("benefits",this.benefits)},updateLabel(e,t){t&&t.get("name")!==e&&t.set("name",e)},confirm(){},setAmount(e){this.price.amount=isNaN(e)?0:parseInt(e)},setCurrency(e){const t=e.value
|
|
1896
1898
|
this.currency=t},closeModal(){this.close()}})}confirm(){}get isFreeTier(){return"free"===this.tier.type}get hasTrialDaysError(){const e=this.tier.get("trialDays")
|
|
1897
1899
|
return this.freeTrialEnabled&&(!e||e<1)}get allCurrencies(){return(0,n.getCurrencyOptions)()}get selectedCurrency(){return ne.findBy("value",this.currency)}get isFreeTrialEnabled(){return this.freeTrialEnabled&&this.tier.get("trialDays")>0}init(){super.init(...arguments),this.tier=this.model.tier,this.savedBenefits=this.model.tier?.get("benefits")
|
|
1898
1900
|
const e=this.tier.get("monthlyPrice"),t=this.tier.get("yearlyPrice")
|
|
@@ -1910,7 +1912,7 @@ if(!e||e<1||!t||t<1)throw new TypeError(`Subscription amount must be at least ${
|
|
|
1910
1912
|
this.discountValue=e>0?e:0}changeCadence(e){this.previewCadence=e}setTrialDays(e){const t=parseInt(e.target.value)
|
|
1911
1913
|
this.tier.set("trialDays",t)}setFreeTrialEnabled(e){this.freeTrialEnabled=e.target.checked,e.target.checked&&!this.tier.get("trialDays")&&this.tier.set("trialDays",7)}validateStripePlans(){this.calculateDiscount(),this.stripePlanError=void 0
|
|
1912
1914
|
try{const e=this.stripeYearlyAmount,t=this.stripeMonthlyAmount,i=(0,n.getSymbol)(this.currency)
|
|
1913
|
-
if(!e||e<1||!t||t<1)throw new TypeError(`Subscription amount must be at least ${i}1.00`)}catch(e){this.stripePlanError=e.message}}},A=te(D.prototype,"feature",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=te(D.prototype,"settings",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=te(D.prototype,"membersUtils",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=te(D.prototype,"config",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=te(D.prototype,"model",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=te(D.prototype,"tier",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=te(D.prototype,"periodVal",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=te(D.prototype,"stripeMonthlyAmount",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),V=te(D.prototype,"stripeYearlyAmount",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),H=te(D.prototype,"currency",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"usd"}}),q=te(D.prototype,"stripePlanError",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),$=te(D.prototype,"benefits",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),Y=te(D.prototype,"newBenefit",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=te(D.prototype,"welcomePageURL",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=te(D.prototype,"previewCadence",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"yearly"}}),K=te(D.prototype,"discountValue",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),
|
|
1915
|
+
if(!e||e<1||!t||t<1)throw new TypeError(`Subscription amount must be at least ${i}1.00`)}catch(e){this.stripePlanError=e.message}}},A=te(D.prototype,"feature",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=te(D.prototype,"settings",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=te(D.prototype,"membersUtils",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=te(D.prototype,"config",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=te(D.prototype,"model",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=te(D.prototype,"tier",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=te(D.prototype,"periodVal",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=te(D.prototype,"stripeMonthlyAmount",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),V=te(D.prototype,"stripeYearlyAmount",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),H=te(D.prototype,"currency",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"usd"}}),q=te(D.prototype,"stripePlanError",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),$=te(D.prototype,"benefits",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),Y=te(D.prototype,"newBenefit",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=te(D.prototype,"welcomePageURL",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=te(D.prototype,"previewCadence",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"yearly"}}),K=te(D.prototype,"discountValue",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Z=te(D.prototype,"hasSaved",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),J=te(D.prototype,"freeTrialEnabled",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X=te(D.prototype,"savedBenefits",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te(D.prototype,"validateWelcomePageURL",[P],Object.getOwnPropertyDescriptor(D.prototype,"validateWelcomePageURL"),D.prototype),te(D.prototype,"close",[_],Object.getOwnPropertyDescriptor(D.prototype,"close"),D.prototype),te(D.prototype,"setCurrency",[j],Object.getOwnPropertyDescriptor(D.prototype,"setCurrency"),D.prototype),te(D.prototype,"setWelcomePageURL",[T],Object.getOwnPropertyDescriptor(D.prototype,"setWelcomePageURL"),D.prototype),te(D.prototype,"saveTier",[z],Object.getOwnPropertyDescriptor(D.prototype,"saveTier"),D.prototype),te(D.prototype,"changeCadence",[x],Object.getOwnPropertyDescriptor(D.prototype,"changeCadence"),D.prototype),te(D.prototype,"setTrialDays",[S],Object.getOwnPropertyDescriptor(D.prototype,"setTrialDays"),D.prototype),te(D.prototype,"setFreeTrialEnabled",[C],Object.getOwnPropertyDescriptor(D.prototype,"setFreeTrialEnabled"),D.prototype),te(D.prototype,"validateStripePlans",[M],Object.getOwnPropertyDescriptor(D.prototype,"validateStripePlans"),D.prototype),D)
|
|
1914
1916
|
e.default=re,Ember._setComponentTemplate(ie,re)})),define("ghost-admin/components/modal-unsubscribe-members",["exports","ghost-admin/components/modal-base","ember-concurrency"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1915
1917
|
const n=Ember.HTMLBars.template({id:"3j56O3sd",block:'{"symbols":[],"statements":[[10,"header"],[14,0,"modal-header"],[14,"data-test-modal","unsubscribe-members"],[12],[2,"\\n "],[10,"h1"],[12],[2,"Unsubscribe members from email?"],[13],[2,"\\n"],[13],[2,"\\n"],[11,"a"],[24,0,"close"],[24,6,""],[24,"role","button"],[24,"title","Close"],[4,[38,0],[[32,0],"closeModal"],null],[12],[1,[30,[36,2],["close"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Close"],[13],[13],[2,"\\n\\n"],[6,[37,3],[[32,0,["confirmed"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-content-box pa"],[14,"data-test-state","unsubscribe-complete"],[12],[2,"\\n"],[6,[37,3],[[32,0,["error"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"flex items-center"],[12],[2,"\\n "],[1,[30,[36,2],["warning"],[["class"],["w4 h4 fill-red mr2 nudge-top--3"]]]],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"p"],[14,0,"ma0 pa0"],[12],[2,"\\n "],[10,"span"],[14,0,"fw5"],[14,"data-test-text","unsubscribe-error"],[12],[1,[32,0,["error"]]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"flex items-center"],[12],[2,"\\n "],[1,[30,[36,2],["check-circle"],[["class"],["w4 h4 stroke-green mr2"]]]],[2,"\\n "],[10,"p"],[14,0,"ma0 pa0"],[12],[2,"\\n "],[10,"span"],[14,0,"fw6"],[14,"data-test-text","unsubscribe-count"],[12],[1,[30,[36,1],[[32,0,["response","stats","successful"]],"member"],null]],[13],[2,"\\n successfully unsubscribed\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[6,[37,3],[[32,0,["response","stats","unsuccessful"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"flex items-start mt2"],[14,"data-test-bulk-delete-errors",""],[12],[2,"\\n "],[1,[30,[36,2],["warning"],[["class"],["w4 h4 fill-red mr2 nudge-top--3"]]]],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"p"],[14,0,"ma0 pa0"],[12],[2,"\\n "],[10,"span"],[14,0,"fw5"],[14,"data-test-text","invalid-count"],[12],[1,[30,[36,1],[[32,0,["response","stats","unsuccessful"]],"member"],null]],[13],[2,"\\n failed to unsubscribe\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"modal-body"],[14,"data-test-state","unsubscribe-unconfirmed"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n You\'re about to unsubscribe\\n "],[10,"strong"],[14,"data-test-text","unsubscribe-count"],[12],[1,[30,[36,1],[[32,0,["model","memberCount"]],"member"],null]],[13],[2," from email newsletters.\\n Are you sure?\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[10,"div"],[14,0,"modal-footer"],[12],[2,"\\n"],[6,[37,3],[[32,0,["confirmed"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-black"],[24,"data-test-button","close-modal"],[24,4,"button"],[4,[38,0],[[32,0],"closeModal"],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Close"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn"],[24,"data-test-button","cancel"],[24,4,"button"],[4,[38,0],[[32,0],"closeModal"],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Cancel"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[8,"gh-task-button",[[24,"data-test-button","confirm"]],[["@buttonText","@successText","@task","@class"],["Unsubscribe members","Unsubscribed",[32,0,["unsubscribeMemberTask"]],"gh-btn gh-btn-red gh-btn-icon"]],null],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"]],"hasEval":false,"upvars":["action","gh-pluralize","svg-jar","if"]}',moduleName:"ghost-admin/components/modal-unsubscribe-members.hbs"})
|
|
1916
1918
|
var r=Ember._setComponentTemplate(n,t.default.extend({membersStats:Ember.inject.service(),shouldCancelSubscriptions:!1,confirm:()=>{},member:Ember.computed.alias("model"),actions:{confirm(){this.unsubscribeMemberTask.perform()}},unsubscribeMemberTask:(0,i.task)((function*(){try{const e=yield this.confirm()
|
|
@@ -2046,7 +2048,7 @@ super(...arguments),e=this,t="settings",n=this,(i=d)&&Object.defineProperty(e,t,
|
|
|
2046
2048
|
e.default=m,Ember._setComponentTemplate(p,m)})),define("ghost-admin/components/modals/newsletters/new",["exports","@glimmer/component","ember-concurrency"],(function(e,t,i){var n,r,a,s,o,l,u,d,c,p,m
|
|
2047
2049
|
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function b(e,t,i,n,r){var a={}
|
|
2048
2050
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2049
|
-
const g=Ember.HTMLBars.template({id:"
|
|
2051
|
+
const g=Ember.HTMLBars.template({id:"qCEgTNKn",block:'{"symbols":["countFetcher","@close","@data"],"statements":[[10,"div"],[14,0,"modal-content"],[14,"data-test-modal","create-newsletter"],[12],[2,"\\n "],[10,"header"],[14,0,"modal-header"],[12],[2,"\\n "],[10,"h1"],[12],[2,"Create newsletter"],[13],[2,"\\n "],[13],[2,"\\n "],[11,"button"],[24,0,"close"],[24,"title","Close"],[24,4,"button"],[4,[38,5],["click",[32,2]],null],[12],[1,[30,[36,6],["close"],null]],[10,"span"],[14,0,"hidden"],[12],[2,"Close"],[13],[13],[2,"\\n\\n "],[10,"div"],[14,0,"modal-body"],[12],[2,"\\n "],[10,"fieldset"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,3,["newsletter","errors"]],[32,3,["newsletter","hasValidated"]],"name"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","newsletter-title"],[14,0,"modal-fullsettings-title"],[12],[2,"Name"],[13],[2,"\\n "],[11,"input"],[24,1,"newsletter-title"],[24,0,"gh-input miw-100 form-text"],[16,2,[32,3,["newsletter","name"]]],[24,"placeholder","Weekly Roundup"],[24,"data-test-newsletter-title-input",""],[24,4,"text"],[4,[38,5],["input",[30,[36,7],[[32,0,["onInput"]],"name"],null]],null],[12],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,3,["newsletter","errors"]],"name"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,3,["newsletter","errors"]],[32,3,["newsletter","hasValidated"]],"description"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","newsletter-description"],[14,0,"modal-fullsettings-title"],[12],[2,"Description"],[13],[2,"\\n "],[11,"textarea"],[24,1,"newsletter-description"],[24,0,"gh-input miw-100 form-text"],[4,[38,5],["input",[30,[36,7],[[32,0,["onInput"]],"description"],null]],null],[12],[1,[32,3,["newsletter","description"]]],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,3,["newsletter","errors"]],"description"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-form-group",[[24,0,"flex justify-between items-start mb2"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"mr3"],[12],[2,"\\n "],[10,"label"],[14,"for","opt-in-existing"],[14,0,"modal-fullsettings-title"],[12],[2,"Opt-in existing subscribers"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n"],[6,[37,0],[[32,0,["optInExisting"]]],null,[["default","else"],[{"statements":[[6,[37,4],[[30,[36,3],null,[["query"],[[30,[36,2],null,[["filter"],["newsletters.status:active"]]]]]]],null,[["default"],[{"statements":[[2," This newsletter will be available to "],[10,"strong"],[12],[2,"all members"],[13],[2,". Your "],[6,[37,0],[[32,1,["count"]]],null,[["default"],[{"statements":[[10,"strong"],[12],[1,[32,1,["count"]]],[13]],"parameters":[]}]]],[2," existing subscriber"],[6,[37,0],[[30,[36,1],[[32,1,["count"]],1],null]],null,[["default"],[{"statements":[[2,"s"]],"parameters":[]}]]],[2," will also be opted-in to receive it.\\n"]],"parameters":[1]}]]]],"parameters":[]},{"statements":[[2," The newsletter will be available to "],[10,"strong"],[12],[2,"all new members"],[13],[2,". Existing members won’t be subscribed, but may visit their account area to opt-in to future emails.\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"for-switch small"],[12],[2,"\\n "],[10,"div"],[14,0,"container"],[12],[2,"\\n "],[11,"input"],[24,1,"opt-in-existing"],[16,"checked",[32,0,["optInExisting"]]],[24,4,"checkbox"],[4,[38,5],["check",[32,0,["setOptInExisting"]]],null],[12],[13],[2,"\\n "],[11,"button"],[24,0,"input-toggle-component"],[24,4,"button"],[4,[38,5],["click",[32,0,["toggleOptInExisting"]]],null],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"modal-footer"],[12],[2,"\\n "],[11,"button"],[24,0,"gh-btn"],[24,4,"button"],[4,[38,5],["click",[32,2]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Cancel"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[8,"gh-task-button",[[24,"data-test-button","save-newsletter"],[4,[38,8],["cmd+s",[32,0,["saveViaKeyboard"]]],[["priority"],[1]]],[4,[38,8],["Enter",[32,0,["saveViaKeyboard"]]],[["priority"],[1]]]],[["@buttonText","@runningText","@successText","@task","@idleClass","@class"],["Create","Creating","Created",[32,0,["saveTask"]],"gh-btn-primary","gh-btn gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["if","gt","hash","members-count-fetcher","let","on","svg-jar","fn","on-key"]}',moduleName:"ghost-admin/components/modals/newsletters/new.hbs"})
|
|
2050
2052
|
let f=(n=Ember.inject.service,r=Ember.inject.service,a=Ember._tracked,s=Ember._action,o=Ember._action,l=Ember._action,u=Ember._action,d=class extends t.default{constructor(){super(...arguments),h(this,"modals",c,this),h(this,"store",p,this),h(this,"optInExisting",m,this)}willDestroy(){super.willDestroy(...arguments),this.args.data.newsletter.rollbackAttributes()}onInput(e,t){this.args.data.newsletter[e]=t.target.value}saveViaKeyboard(e,t){t.stopPropagation(),e.preventDefault(),this.saveTask.perform()}setOptInExisting(e){this.optInExisting=e.target.value}toggleOptInExisting(){this.optInExisting=!this.optInExisting}*saveTask(){const e=this.args.data.newsletter
|
|
2051
2053
|
try{yield e.validate({})
|
|
2052
2054
|
const t=yield e.save({adapterOptions:{optInExisting:this.optInExisting}})
|
|
@@ -2366,8 +2368,8 @@ return!!e.active}get tier(){return this.args.tier}handleArchiveTier(){this.tier.
|
|
|
2366
2368
|
e.default=h,Ember._setComponentTemplate(m,h)})),define("ghost-admin/components/settings/members/stripe-settings-form",["exports","@glimmer/component","ghost-admin/utils/currency","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r){var a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$
|
|
2367
2369
|
function Y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function W(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function G(e,t,i,n,r){var a={}
|
|
2368
2370
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2369
|
-
const K=Ember.HTMLBars.template({id:"pGAZxzfv",block:'{"symbols":[],"statements":[[10,"div"],[14,0,"gh-main-section"],[12],[2,"\\n"],[6,[37,1],[[32,0,["stripeDirect"]]],null,[["default","else"],[{"statements":[[2," "],[10,"section"],[12],[2,"\\n "],[10,"div"],[14,0,"flex flex-column flex-row-l items-start justify-between"],[12],[2,"\\n "],[10,"div"],[14,0,"w-100 w-50-l"],[12],[2,"\\n "],[10,"div"],[14,0,"mb4"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6 f8"],[14,"for","stripe-publishable-key"],[12],[2,"Stripe Publishable key"],[13],[2,"\\n "],[11,"input"],[24,1,"stripe-publishable-key"],[24,0,"gh-input mt1 password"],[16,2,[32,0,["stripeDirectPublicKey"]]],[24,4,"text"],[4,[38,2],["input",[32,0,["setStripeDirectPublicKey"]]],null],[12],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"nudge-top--3"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6 f8 mt4"],[14,"for","stripe-secret-key"],[12],[2,"Stripe Secret key"],[13],[2,"\\n "],[11,"input"],[24,1,"stripe-secret-key"],[24,0,"gh-input mt1 password"],[16,2,[32,0,["stripeDirectSecretKey"]]],[24,4,"text"],[4,[38,2],["input",[32,0,["setStripeDirectSecretKey"]]],null],[12],[13],[2,"\\n "],[10,"a"],[14,6,"https://dashboard.stripe.com/account/apikeys"],[14,"target","_blank"],[14,0,"mt1 fw4 f8"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Find your Stripe API keys here »\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"ml0 ml5-l mt6"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info-header"],[12],[2,"\\n "],[10,"h4"],[12],[2,"How you get paid"],[13],[2,"\\n "],[1,[30,[36,3],["stripe-verified-partner-badge"],[["class"],["gh-members-stripe-badge"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"f8 mt2 mb0"],[12],[2,"\\n Stripe is our exclusive direct payments partner."],[10,"br"],[12],[13],[2,"\\n Ghost collects "],[10,"strong"],[12],[2,"no fees"],[13],[2," on any payments! If you don’t have a Stripe account yet, you can "],[10,"a"],[14,6,"https://stripe.com"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"gh-members-stripe-link"],[12],[2,"sign up here"],[13],[2,".\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"mb4 mt4 flex justify-end"],[12],[2,"\\n "],[8,"gh-task-button",[[24,"data-test-button","save-members-settings"]],[["@buttonText","@task","@successText","@runningText","@class"],["Save settings",[32,0,["saveSettingsTask"]],"Saved","Saving","gh-btn gh-btn-primary gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n\\n"]],"parameters":[]},{"statements":[[2,"\\n"],[6,[37,1],[[30,[36,7],[[32,0,["stripeConnectAccountId"]],[30,[36,6],[[32,0,["saveStripeSettings","isRunning"]]],null]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-stripe-connected-container"],[12],[2,"\\n "],[1,[30,[36,3],["check-circle-stroke"],[["class"],["check-circle"]]]],[2,"\\n "],[10,"h1"],[12],[2,"You are connected to Stripe"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-stripe-connected-info"],[12],[2,"\\n "],[10,"p"],[12],[2,"Connected to "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/",[32,0,["stripeConnectAccountId"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[32,0,["stripeConnectAccountName"]]],[13],[13],[2,"\\n"],[6,[37,5],[[32,0,["stripeConnectLivemode"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-members-connect-testmodelabel"],[12],[2,"Test mode"],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,0,["hasActiveStripeSubscriptions"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-stripe-error-hasactivesub"],[12],[2,"\\n Cannot disconnect while there are members with active Stripe subscriptions.\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[11,"button"],[24,0,"gh-btn gh-btn-stripe-disconnect"],[24,4,"button"],[4,[38,2],["click",[32,0,["openDisconnectStripeModal"]]],null],[12],[10,"span"],[12],[2,"Disconnect"],[13],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"flex flex-column flex-row-l items-start justify-between"],[12],[2,"\\n "],[10,"div"],[14,0,"w-100 w-50-l"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6 f8"],[12],[2,"Generate secure key"],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center mb4 justify-between gh-members-connectbutton-container mt2"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[30,[36,1],[[32,0,["stripeConnectTestMode"]],[32,0,["testStripeConnectAuthUrl"]],[32,0,["liveStripeConnectAuthUrl"]]],null]]]],[14,0,"stripe-connect"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[10,"span"],[12],[2,"Connect with Stripe"],[13],[13],[2,"\\n "],[10,"div"],[14,0,"ml2 flex items-center flex-nowrap"],[12],[2,"\\n "],[10,"span"],[15,0,[31,["mr2 f8 midgrey nowrap ",[30,[36,1],[[32,0,["stripeConnectTestMode"]],"gh-members-connect-testmodeon"],null]]]],[12],[1,[30,[36,1],[[32,0,["stripeConnectTestMode"]],"Using","Use"],null]],[2," test mode"],[13],[2,"\\n "],[10,"div"],[14,0,"for-switch small"],[12],[2,"\\n "],[10,"label"],[14,0,"switch"],[14,"for","stripe-connect-test-mode"],[12],[2,"\\n "],[11,"input"],[24,1,"stripe-connect-test-mode"],[24,0,"gh-input"],[16,"checked",[32,0,["stripeConnectTestMode"]]],[24,"aria-label","Use Stripe test mode"],[24,"data-test-checkbox","stripe-connect-test-mode"],[24,4,"checkbox"],[4,[38,2],["input",[32,0,["setStripeConnectTestMode"]]],null],[12],[13],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component mt1"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"nudge-top--3"],[12],[2,"\\n "],[11,"textarea"],[24,0,"gh-input gh-members-stripe-connect-token"],[24,"placeholder","Paste your secure key here"],[24,"aria-label","Stripe connect secure key"],[4,[38,2],["input",[32,0,["setStripeConnectIntegrationToken"]]],null],[12],[13],[2,"\\n "],[6,[37,1],[[32,0,["stripeConnectError"]]],null,[["default"],[{"statements":[[10,"p"],[14,0,"mb0 mt2 f8 red"],[12],[1,[32,0,["stripeConnectError"]]],[13]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"mt5 mt5-m mt8-l ml0 ml5-l"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info-header"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Getting paid"],[13],[2,"\\n "],[1,[30,[36,3],["stripe-verified-partner-badge"],[["class"],["gh-members-stripe-badge"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"f8 mt2 mb0"],[12],[2,"\\n Stripe is our exclusive direct payments partner."],[10,"br"],[12],[13],[2,"\\n Ghost collects "],[10,"strong"],[12],[2,"no fees"],[13],[2," on any payments! If you don’t have a Stripe account yet, you can "],[10,"a"],[14,6,"https://stripe.com"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"gh-members-stripe-link"],[12],[2,"sign up here"],[13],[2,".\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[15,0,[31,["gh-members-connect-savecontainer ",[30,[36,1],[[32,0,["settings","stripeConnectIntegrationToken"]],"expanded"],null]]]],[12],[2,"\\n "],[8,"gh-task-button",[],[["@buttonText","@task","@unlinkedTask","@successText","@disabled","@runningText","@class"],["Save Stripe settings",[32,0,["saveStripeSettingsTask"]],true,"Saved",[30,[36,4],[[32,0,["settings","stripeConnectIntegrationToken"]]],null],"Saving","gh-btn gh-btn-green gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["showDisconnectStripeConnectModal"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-fullscreen-modal",[],[["@modal","@model","@confirm","@close","@modifier"],["disconnect-stripe",[30,[36,0],null,[["stripeConnectAccountName"],[[32,0,["stripeConnectAccountName"]]]]],[32,0,["disconnectStripeConnectIntegration"]],[32,0,["closeDisconnectStripeModal"]],"action wide"]],null],[2,"\\n"]],"parameters":[]}]]]],"hasEval":false,"upvars":["hash","if","on","svg-jar","is-empty","unless","not","and"]}',moduleName:"ghost-admin/components/settings/members/stripe-settings-form.hbs"}),
|
|
2370
|
-
let
|
|
2371
|
+
const K=Ember.HTMLBars.template({id:"pGAZxzfv",block:'{"symbols":[],"statements":[[10,"div"],[14,0,"gh-main-section"],[12],[2,"\\n"],[6,[37,1],[[32,0,["stripeDirect"]]],null,[["default","else"],[{"statements":[[2," "],[10,"section"],[12],[2,"\\n "],[10,"div"],[14,0,"flex flex-column flex-row-l items-start justify-between"],[12],[2,"\\n "],[10,"div"],[14,0,"w-100 w-50-l"],[12],[2,"\\n "],[10,"div"],[14,0,"mb4"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6 f8"],[14,"for","stripe-publishable-key"],[12],[2,"Stripe Publishable key"],[13],[2,"\\n "],[11,"input"],[24,1,"stripe-publishable-key"],[24,0,"gh-input mt1 password"],[16,2,[32,0,["stripeDirectPublicKey"]]],[24,4,"text"],[4,[38,2],["input",[32,0,["setStripeDirectPublicKey"]]],null],[12],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"nudge-top--3"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6 f8 mt4"],[14,"for","stripe-secret-key"],[12],[2,"Stripe Secret key"],[13],[2,"\\n "],[11,"input"],[24,1,"stripe-secret-key"],[24,0,"gh-input mt1 password"],[16,2,[32,0,["stripeDirectSecretKey"]]],[24,4,"text"],[4,[38,2],["input",[32,0,["setStripeDirectSecretKey"]]],null],[12],[13],[2,"\\n "],[10,"a"],[14,6,"https://dashboard.stripe.com/account/apikeys"],[14,"target","_blank"],[14,0,"mt1 fw4 f8"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Find your Stripe API keys here »\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"ml0 ml5-l mt6"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info-header"],[12],[2,"\\n "],[10,"h4"],[12],[2,"How you get paid"],[13],[2,"\\n "],[1,[30,[36,3],["stripe-verified-partner-badge"],[["class"],["gh-members-stripe-badge"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"f8 mt2 mb0"],[12],[2,"\\n Stripe is our exclusive direct payments partner."],[10,"br"],[12],[13],[2,"\\n Ghost collects "],[10,"strong"],[12],[2,"no fees"],[13],[2," on any payments! If you don’t have a Stripe account yet, you can "],[10,"a"],[14,6,"https://stripe.com"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"gh-members-stripe-link"],[12],[2,"sign up here"],[13],[2,".\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"mb4 mt4 flex justify-end"],[12],[2,"\\n "],[8,"gh-task-button",[[24,"data-test-button","save-members-settings"]],[["@buttonText","@task","@successText","@runningText","@class"],["Save settings",[32,0,["saveSettingsTask"]],"Saved","Saving","gh-btn gh-btn-primary gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n\\n"]],"parameters":[]},{"statements":[[2,"\\n"],[6,[37,1],[[30,[36,7],[[32,0,["stripeConnectAccountId"]],[30,[36,6],[[32,0,["saveStripeSettings","isRunning"]]],null]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-stripe-connected-container"],[12],[2,"\\n "],[1,[30,[36,3],["check-circle-stroke"],[["class"],["check-circle"]]]],[2,"\\n "],[10,"h1"],[12],[2,"You are connected to Stripe"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-stripe-connected-info"],[12],[2,"\\n "],[10,"p"],[12],[2,"Connected to "],[10,"a"],[15,6,[31,["https://dashboard.stripe.com/",[32,0,["stripeConnectAccountId"]]]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[32,0,["stripeConnectAccountName"]]],[13],[13],[2,"\\n"],[6,[37,5],[[32,0,["stripeConnectLivemode"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-members-connect-testmodelabel"],[12],[2,"Test mode"],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,0,["hasActiveStripeSubscriptions"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-stripe-error-hasactivesub"],[12],[2,"\\n Cannot disconnect while there are members with active Stripe subscriptions.\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[11,"button"],[24,0,"gh-btn gh-btn-stripe-disconnect"],[24,4,"button"],[4,[38,2],["click",[32,0,["openDisconnectStripeModal"]]],null],[12],[10,"span"],[12],[2,"Disconnect"],[13],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"flex flex-column flex-row-l items-start justify-between"],[12],[2,"\\n "],[10,"div"],[14,0,"w-100 w-50-l"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6 f8"],[12],[2,"Generate secure key"],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center mb4 justify-between gh-members-connectbutton-container mt2"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[30,[36,1],[[32,0,["stripeConnectTestMode"]],[32,0,["testStripeConnectAuthUrl"]],[32,0,["liveStripeConnectAuthUrl"]]],null]]]],[14,0,"stripe-connect"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[10,"span"],[12],[2,"Connect with Stripe"],[13],[13],[2,"\\n "],[10,"div"],[14,0,"ml2 flex items-center flex-nowrap"],[12],[2,"\\n "],[10,"span"],[15,0,[31,["mr2 f8 midgrey nowrap ",[30,[36,1],[[32,0,["stripeConnectTestMode"]],"gh-members-connect-testmodeon"],null]]]],[12],[1,[30,[36,1],[[32,0,["stripeConnectTestMode"]],"Using","Use"],null]],[2," test mode"],[13],[2,"\\n "],[10,"div"],[14,0,"for-switch small"],[12],[2,"\\n "],[10,"label"],[14,0,"switch"],[14,"for","stripe-connect-test-mode"],[12],[2,"\\n "],[11,"input"],[24,1,"stripe-connect-test-mode"],[24,0,"gh-input"],[16,"checked",[32,0,["stripeConnectTestMode"]]],[24,"aria-label","Use Stripe test mode"],[24,"data-test-checkbox","stripe-connect-test-mode"],[24,4,"checkbox"],[4,[38,2],["input",[32,0,["setStripeConnectTestMode"]]],null],[12],[13],[2,"\\n "],[10,"span"],[14,0,"input-toggle-component mt1"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"nudge-top--3"],[12],[2,"\\n "],[11,"textarea"],[24,0,"gh-input gh-members-stripe-connect-token"],[24,"placeholder","Paste your secure key here"],[24,"aria-label","Stripe connect secure key"],[4,[38,2],["input",[32,0,["setStripeConnectIntegrationToken"]]],null],[12],[13],[2,"\\n "],[6,[37,1],[[32,0,["stripeConnectError"]]],null,[["default"],[{"statements":[[10,"p"],[14,0,"mb0 mt2 f8 red"],[12],[1,[32,0,["stripeConnectError"]]],[13]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"mt5 mt5-m mt8-l ml0 ml5-l"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-members-stripe-info-header"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Getting paid"],[13],[2,"\\n "],[1,[30,[36,3],["stripe-verified-partner-badge"],[["class"],["gh-members-stripe-badge"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"f8 mt2 mb0"],[12],[2,"\\n Stripe is our exclusive direct payments partner."],[10,"br"],[12],[13],[2,"\\n Ghost collects "],[10,"strong"],[12],[2,"no fees"],[13],[2," on any payments! If you don’t have a Stripe account yet, you can "],[10,"a"],[14,6,"https://stripe.com"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"gh-members-stripe-link"],[12],[2,"sign up here"],[13],[2,".\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[15,0,[31,["gh-members-connect-savecontainer ",[30,[36,1],[[32,0,["settings","stripeConnectIntegrationToken"]],"expanded"],null]]]],[12],[2,"\\n "],[8,"gh-task-button",[],[["@buttonText","@task","@unlinkedTask","@successText","@disabled","@runningText","@class"],["Save Stripe settings",[32,0,["saveStripeSettingsTask"]],true,"Saved",[30,[36,4],[[32,0,["settings","stripeConnectIntegrationToken"]]],null],"Saving","gh-btn gh-btn-green gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["showDisconnectStripeConnectModal"]]],null,[["default"],[{"statements":[[2," "],[8,"gh-fullscreen-modal",[],[["@modal","@model","@confirm","@close","@modifier"],["disconnect-stripe",[30,[36,0],null,[["stripeConnectAccountName"],[[32,0,["stripeConnectAccountName"]]]]],[32,0,["disconnectStripeConnectIntegration"]],[32,0,["closeDisconnectStripeModal"]],"action wide"]],null],[2,"\\n"]],"parameters":[]}]]]],"hasEval":false,"upvars":["hash","if","on","svg-jar","is-empty","unless","not","and"]}',moduleName:"ghost-admin/components/settings/members/stripe-settings-form.hbs"}),Z=1e3
|
|
2372
|
+
let J=(a=Ember.inject.service,s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,d=Ember._tracked,c=Ember._tracked,p=Ember._tracked,m=Ember._tracked,h=Ember._tracked,b=Ember._tracked,g=Ember._tracked,f=Ember._tracked,v=Ember._action,y=Ember._action,w=Ember._action,k=Ember._action,E=Ember._action,O=Ember._action,P=Ember._action,_=Ember._action,j=Ember._action,T=Ember._action,z=(0,r.task)({drop:!0}),x=(0,r.task)({drop:!0}),S=(0,r.task)({drop:!0}),C=class extends t.default{get stripeDirectPublicKey(){return this.settings.stripePublishableKey}get stripeDirectSecretKey(){return this.settings.stripeSecretKey}get stripeConnectAccountId(){return this.settings.stripeConnectAccountId}get stripeConnectAccountName(){return this.settings.stripeConnectDisplayName}get stripeConnectLivemode(){return this.settings.stripeConnectLivemode}get selectedCurrency(){return this.currencies.findBy("value",this.stripePlans.monthly.currency)||this.topCurrencies.findBy("value",this.stripePlans.monthly.currency)}get stripePlans(){const e=this.settings.stripePlans,t=e.find((e=>"month"===e.interval)),i=e.find((e=>"year"===e.interval&&"Complimentary"!==e.name))
|
|
2371
2373
|
return{monthly:{amount:parseInt(t.amount)/100||5,currency:t.currency},yearly:{amount:parseInt(i.amount)/100||50,currency:i.currency}}}get liveStripeConnectAuthUrl(){return this.ghostPaths.url.api("members/stripe_connect")+"?mode=live"}get testStripeConnectAuthUrl(){return this.ghostPaths.url.api("members/stripe_connect")+"?mode=test"}constructor(){super(...arguments),Y(this,"ghostPaths",M,this),Y(this,"ajax",D,this),Y(this,"settings",A,this),Y(this,"membersUtils",I,this),Y(this,"store",L,this),Y(this,"config",R,this),Y(this,"hasActiveStripeSubscriptions",N,this),Y(this,"showDisconnectStripeConnectModal",U,this),Y(this,"stripeConnectError",F,this),Y(this,"stripeConnectTestMode",B,this),Y(this,"stripeDirect",V,this),Y(this,"stripePlanInvalidAmount",H,this),Y(this,"_scratchStripeYearlyAmount",q,this),Y(this,"_scratchStripeMonthlyAmount",$,this),W(this,"topCurrencies",i.currencies.slice(0,5).map((e=>({value:e.isoCode.toLowerCase(),label:`${e.isoCode} - ${e.name}`,isoCode:e.isoCode})))),W(this,"currencies",i.currencies.slice(5,i.currencies.length).map((e=>({value:e.isoCode.toLowerCase(),label:`${e.isoCode} - ${e.name}`,isoCode:e.isoCode})))),W(this,"allCurrencies",[{groupName:"—",options:this.topCurrencies},{groupName:"—",options:this.currencies}]),this.updateStripeDirect()}setStripeDirectPublicKey(e){this.settings.stripeProductName=this.settings.title,this.settings.stripePublishableKey=e.target.value}setStripeDirectSecretKey(e){this.settings.stripeProductName=this.settings.title,this.settings.stripeSecretKey=e.target.value}setStripeConnectTestMode(e){this.stripeConnectTestMode=e.target.checked}setStripePlansCurrency(e){const t=e.value,i=this.settings.stripePlans.map((e=>"Complimentary"!==e.name?Object.assign({},e,{currency:t}):e))
|
|
2372
2374
|
i.find((t=>"Complimentary"===t.name&&t.currency===e.value))||i.push({name:"Complimentary",currency:e.value,interval:"year",amount:0}),this.settings.stripePlans=i,this._scratchStripeYearlyAmount=null,this._scratchStripeMonthlyAmount=null,this.validateStripePlans()}setStripeConnectIntegrationToken(e){this.settings.stripeProductName=this.settings.title,this.args.setStripeConnectIntegrationTokenSetting(e.target.value)}openDisconnectStripeModal(){this.openDisconnectStripeConnectModalTask.perform()}closeDisconnectStripeModal(){this.showDisconnectStripeConnectModal=!1}disconnectStripeConnectIntegration(){this.disconnectStripeConnectIntegrationTask.perform()}updateStripeDirect(){this.stripeDirect=this.config.stripeDirect||this.membersUtils.isStripeEnabled&&!this.settings.stripeConnectAccountId}validateStripePlans(){this.settings.errors.remove("stripePlans"),this.settings.hasValidated.removeObject("stripePlans"),null===this._scratchStripeYearlyAmount&&(this._scratchStripeYearlyAmount=this.stripePlans.yearly.amount),null===this._scratchStripeMonthlyAmount&&(this._scratchStripeMonthlyAmount=this.stripePlans.monthly.amount)
|
|
2373
2375
|
try{const e=this.selectedCurrency,t=parseInt(this._scratchStripeYearlyAmount),i=parseInt(this._scratchStripeMonthlyAmount)
|
|
@@ -2380,13 +2382,13 @@ const e=this.ghostPaths.url.api("/members/")+"?filter=status:paid&limit=0"
|
|
|
2380
2382
|
yield this.ajax.delete(e),yield this.settings.reload(),this.args.onDisconnected?.()}*saveTier(){const e=(yield this.store.query("tier",{filter:"type:paid",include:"monthly_price, yearly_price"})).firstObject
|
|
2381
2383
|
if(e){e.monthlyPrice=500,e.yearlyPrice=5e3,e.currency="usd"
|
|
2382
2384
|
let i=0
|
|
2383
|
-
for(;i<15e3;){yield(0,r.timeout)(
|
|
2385
|
+
for(;i<15e3;){yield(0,r.timeout)(Z)
|
|
2384
2386
|
try{const t=yield e.save()
|
|
2385
|
-
return this.membersUtils.reload(),t}catch(t){if(t.payload?.errors&&"STRIPE_NOT_CONFIGURED"===t.payload.errors[0].code){i+=
|
|
2387
|
+
return this.membersUtils.reload(),t}catch(t){if(t.payload?.errors&&"STRIPE_NOT_CONFIGURED"===t.payload.errors[0].code){i+=Z
|
|
2386
2388
|
continue}throw t}}}return e}*saveStripeSettingsTask(){if(this.stripeConnectError=null,this.settings.stripeConnectIntegrationToken)try{let e=yield this.settings.save()
|
|
2387
2389
|
return yield this.saveTier.perform(),this.settings.portalPlans=["free","monthly","yearly"],e=yield this.settings.save(),this.args.onConnected?.(),e}catch(e){if(e.payload&&e.payload.errors)return this.stripeConnectError="Invalid secure key",!1
|
|
2388
2390
|
throw e}else this.stripeConnectError="Please enter a secure key"}*saveSettingsTask(){return yield this.settings.save(),this.updateStripeDirect(),this.settings}},M=G(C.prototype,"ghostPaths",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=G(C.prototype,"ajax",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=G(C.prototype,"settings",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=G(C.prototype,"membersUtils",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=G(C.prototype,"store",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=G(C.prototype,"config",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=G(C.prototype,"hasActiveStripeSubscriptions",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),U=G(C.prototype,"showDisconnectStripeConnectModal",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=G(C.prototype,"stripeConnectError",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=G(C.prototype,"stripeConnectTestMode",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V=G(C.prototype,"stripeDirect",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=G(C.prototype,"stripePlanInvalidAmount",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q=G(C.prototype,"_scratchStripeYearlyAmount",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=G(C.prototype,"_scratchStripeMonthlyAmount",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G(C.prototype,"setStripeDirectPublicKey",[v],Object.getOwnPropertyDescriptor(C.prototype,"setStripeDirectPublicKey"),C.prototype),G(C.prototype,"setStripeDirectSecretKey",[y],Object.getOwnPropertyDescriptor(C.prototype,"setStripeDirectSecretKey"),C.prototype),G(C.prototype,"setStripeConnectTestMode",[w],Object.getOwnPropertyDescriptor(C.prototype,"setStripeConnectTestMode"),C.prototype),G(C.prototype,"setStripePlansCurrency",[k],Object.getOwnPropertyDescriptor(C.prototype,"setStripePlansCurrency"),C.prototype),G(C.prototype,"setStripeConnectIntegrationToken",[E],Object.getOwnPropertyDescriptor(C.prototype,"setStripeConnectIntegrationToken"),C.prototype),G(C.prototype,"openDisconnectStripeModal",[O],Object.getOwnPropertyDescriptor(C.prototype,"openDisconnectStripeModal"),C.prototype),G(C.prototype,"closeDisconnectStripeModal",[P],Object.getOwnPropertyDescriptor(C.prototype,"closeDisconnectStripeModal"),C.prototype),G(C.prototype,"disconnectStripeConnectIntegration",[_],Object.getOwnPropertyDescriptor(C.prototype,"disconnectStripeConnectIntegration"),C.prototype),G(C.prototype,"updateStripeDirect",[j],Object.getOwnPropertyDescriptor(C.prototype,"updateStripeDirect"),C.prototype),G(C.prototype,"validateStripePlans",[T],Object.getOwnPropertyDescriptor(C.prototype,"validateStripePlans"),C.prototype),G(C.prototype,"openDisconnectStripeConnectModalTask",[z],Object.getOwnPropertyDescriptor(C.prototype,"openDisconnectStripeConnectModalTask"),C.prototype),G(C.prototype,"disconnectStripeConnectIntegrationTask",[r.task],Object.getOwnPropertyDescriptor(C.prototype,"disconnectStripeConnectIntegrationTask"),C.prototype),G(C.prototype,"saveTier",[r.task],Object.getOwnPropertyDescriptor(C.prototype,"saveTier"),C.prototype),G(C.prototype,"saveStripeSettingsTask",[x],Object.getOwnPropertyDescriptor(C.prototype,"saveStripeSettingsTask"),C.prototype),G(C.prototype,"saveSettingsTask",[S],Object.getOwnPropertyDescriptor(C.prototype,"saveSettingsTask"),C.prototype),C)
|
|
2389
|
-
e.default=
|
|
2391
|
+
e.default=J,Ember._setComponentTemplate(K,J)})),define("ghost-admin/components/settings/navigation/nav-item-url-input",["exports","validator","@ember-decorators/component"],(function(e,t,i){var n,r,a,s
|
|
2390
2392
|
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2391
2393
|
const{URI:o}=window
|
|
2392
2394
|
let l=(n=(0,i.classNames)("gh-input"),r=Ember.computed("baseUrl","value"),n((s=class extends Ember.TextField{update(){}clearErrors(){}get isBaseUrl(){return this.baseUrl===this.value}didReceiveAttrs(){super.didReceiveAttrs(...arguments),this.set("value",this._makeAbsoluteUrl(this.url))}focusIn(e){this.set("hasFocus",!0),this.isBaseUrl&&Ember.run.next((function(e){let{length:t}=e.value
|
|
@@ -2547,14 +2549,14 @@ return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumera
|
|
|
2547
2549
|
const d=[{name:"7 Days",value:7},{name:"30 Days",value:31},{name:"90 Days",value:91}]
|
|
2548
2550
|
let c=(i=Ember.inject.service,n=Ember.inject.service,r=Ember._action,a=class extends Ember.Controller{constructor(){super(...arguments),l(this,"dashboardStats",s,this),l(this,"membersUtils",o,this),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"daysOptions",d)}*loadSiteStatusTask(){return yield this.dashboardStats.loadSiteStatus(),{}}onDaysChange(e){this.days=e.value}get days(){return this.dashboardStats.chartDays}set days(e){this.dashboardStats.chartDays=e}get selectedDaysOption(){return this.daysOptions.find((e=>e.value===this.days))}get isLoading(){return null===this.dashboardStats.siteStatus}get totalMembers(){return this.dashboardStats.memberCounts?.total??0}get isTotalMembersZero(){return this.dashboardStats.memberCounts&&0===this.totalMembers}get hasPaidTiers(){return this.dashboardStats.siteStatus?.hasPaidTiers}get areNewslettersEnabled(){return this.dashboardStats.siteStatus?.newslettersEnabled}get areMembersEnabled(){return this.dashboardStats.siteStatus?.membersEnabled}},s=u(a.prototype,"dashboardStats",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=u(a.prototype,"membersUtils",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(a.prototype,"loadSiteStatusTask",[t.task],Object.getOwnPropertyDescriptor(a.prototype,"loadSiteStatusTask"),a.prototype),u(a.prototype,"onDaysChange",[r],Object.getOwnPropertyDescriptor(a.prototype,"onDaysChange"),a.prototype),a)
|
|
2549
2551
|
e.default=c})),define("ghost-admin/controllers/designsandbox",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2550
|
-
class t extends Ember.Controller{}e.default=t})),define("ghost-admin/controllers/editor",["exports","ghost-admin/components/modals/editor/confirm-leave","ghost-admin/components/modals/delete-post","ghost-admin/components/editor/modals/delete-snippet","ghost-admin/models/post","ghost-admin/components/modals/limits/publish-limit","ghost-admin/components/editor/modals/re-authenticate","ghost-admin/components/editor/modals/update-snippet","ghost-admin/utils/bound-one-way","ghost-admin/config/environment","ghost-admin/utils/isNumber","moment-timezone","ghost-admin/services/notifications","ember-concurrency","ghost-admin/decorators/inject","ghost-admin/services/ajax","ember-ajax/errors"],(function(e,t,i,n,r,a,s,o,l,u,d,c,p,m,h,b,g){var f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
2552
|
+
class t extends Ember.Controller{}e.default=t})),define("ghost-admin/controllers/editor",["exports","ghost-admin/components/modals/editor/confirm-leave","ghost-admin/components/modals/delete-post","ghost-admin/components/editor/modals/delete-snippet","ghost-admin/models/post","ghost-admin/components/modals/limits/publish-limit","ghost-admin/components/editor/modals/re-authenticate","ghost-admin/components/editor/modals/update-snippet","ghost-admin/utils/bound-one-way","ghost-admin/config/environment","ghost-admin/utils/isNumber","moment-timezone","ghost-admin/services/notifications","ember-concurrency","ghost-admin/decorators/inject","ghost-admin/services/ajax","ember-ajax/errors"],(function(e,t,i,n,r,a,s,o,l,u,d,c,p,m,h,b,g){var f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,de,ce,pe,me,he,be,ge,fe,ve,ye,we,ke,Ee,Oe,Pe,_e,je,Te
|
|
2551
2553
|
function ze(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function xe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Se(e,t,i,n,r){var a={}
|
|
2552
2554
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2553
2555
|
const Ce="(Untitled)"
|
|
2554
2556
|
let Me=["post.scratch","post.titleScratch","post.hasDirtyAttributes","post.tags.[]","post.isError"]
|
|
2555
2557
|
r.default.eachAttribute((function(e){Me.push(`post.${e}`)}))
|
|
2556
2558
|
const De={errors:{post:{published:{published:"Update failed",draft:"Saving failed",scheduled:"Scheduling failed"},draft:{published:"Publish failed",draft:"Saving failed",scheduled:"Scheduling failed"},scheduled:{scheduled:"Update failed",draft:"Unscheduling failed",published:"Publish failed"}}},success:{post:{published:{published:"Updated",draft:"Saved",scheduled:"Scheduled",sent:"Sent"},draft:{published:"Published",draft:"Saved",scheduled:"Scheduled",sent:"Sent"},scheduled:{scheduled:"Updated",draft:"Unscheduled",published:"Published",sent:"Sent"},sent:{sent:"Updated"}}}}
|
|
2557
|
-
let Ae=(f=Ember.inject.controller,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember.inject.service,E=Ember.inject.service,O=Ember.inject.service,P=Ember.inject.service,_=Ember.inject.service,j=Ember.inject.service,T=Ember.computed.alias("model"),z=(0,l.default)("post.isPublished"),x=(0,l.default)("post.isScheduled"),S=(0,m.taskGroup)().enqueue(),C=Ember.computed.mapBy("post.tags","name"),M=Ember.computed(...Me),D=Ember.computed,A=Ember.computed("_snippets.@each.{name,isNew}"),I=Ember.computed("session.user.{isAdmin,isEditor}"),L=Ember.computed("_autosaveTask.isRunning","_timedSaveTask.isRunning"),R=Ember.computed("post.isDraft"),N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,
|
|
2559
|
+
let Ae=(f=Ember.inject.controller,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember.inject.service,E=Ember.inject.service,O=Ember.inject.service,P=Ember.inject.service,_=Ember.inject.service,j=Ember.inject.service,T=Ember.computed.alias("model"),z=(0,l.default)("post.isPublished"),x=(0,l.default)("post.isScheduled"),S=(0,m.taskGroup)().enqueue(),C=Ember.computed.mapBy("post.tags","name"),M=Ember.computed(...Me),D=Ember.computed,A=Ember.computed("_snippets.@each.{name,isNew}"),I=Ember.computed("session.user.{isAdmin,isEditor}"),L=Ember.computed("_autosaveTask.isRunning","_timedSaveTask.isRunning"),R=Ember.computed("post.isDraft"),N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,Z=Ember._action,J=Ember._action,X=Ember._action,Q=Ember._action,ee=Ember._action,te=Ember._action,ie=Ember._action,ne=(0,m.task)({group:"saveTasks"}),re=(0,m.task)({group:"saveTasks"}),ae=(0,m.task)({group:"saveTasks"}),se=Ember._action,oe=(0,m.task)((function*(){if(this._canAutosave){if(this.get("post.isNew"))return this.autosaveTask.perform()
|
|
2558
2560
|
yield(0,m.timeout)(3e3),this.autosaveTask.perform()}})).restartable(),le=(0,m.task)((function*(){if(this._canAutosave)for(;"test"!==u.default.environment;)yield(0,m.timeout)(6e4),this.autosaveTask.perform()})).drop(),ue=class extends Ember.Controller{constructor(){super(...arguments),ze(this,"application",de,this),ze(this,"feature",ce,this),ze(this,"membersCountCache",pe,this),ze(this,"modals",me,this),ze(this,"notifications",he,this),ze(this,"router",be,this),ze(this,"slugGenerator",ge,this),ze(this,"session",fe,this),ze(this,"settings",ve,this),ze(this,"ui",ye,this),ze(this,"config",we,this),xe(this,"shouldFocusTitle",!1),xe(this,"showSettingsMenu",!1),xe(this,"fromAnalytics",!1),xe(this,"wordcount",null),xe(this,"_leaveConfirmed",!1),xe(this,"_previousTagNames",null),ze(this,"post",ke,this),ze(this,"willPublish",Ee,this),ze(this,"willSchedule",Oe,this),ze(this,"saveTasks",Pe,this),ze(this,"_tagNames",_e,this),ze(this,"_autosaveTask",je,this),ze(this,"_timedSaveTask",Te,this)}get hasDirtyAttributes(){return this._hasDirtyAttributes()}set hasDirtyAttributes(e){return e}get _snippets(){return this.store.peekAll("snippet")}get snippets(){return this._snippets.reject((e=>e.get("isNew"))).sort(((e,t)=>e.name.localeCompare(t.name)))}get canManageSnippets(){let{user:e}=this.session
|
|
2559
2561
|
return!(!e.get("isAdmin")&&!e.get("isEditor"))}get _autosaveRunning(){let e=this.get("_autosaveTask.isRunning"),t=this.get("_timedSaveTask.isRunning")
|
|
2560
2562
|
return e||t}get _canAutosave(){return"test"!==u.default.environment&&this.get("post.isDraft")}updateScratch(e){this.set("post.scratch",e),this._autosaveTask.perform(),this._timedSaveTask.perform()}updateTitleScratch(e){this.set("post.titleScratch",e)}setSaveType(e){"publish"===e?(this.set("willPublish",!0),this.set("willSchedule",!1)):"draft"===e?(this.set("willPublish",!1),this.set("willSchedule",!1)):"schedule"===e&&(this.set("willSchedule",!0),this.set("willPublish",!1))}save(e){return this.saveTask.perform(e)}cancelAutosave(){this._autosaveTask.cancelAll(),this._timedSaveTask.cancelAll()}leaveEditor(){let e=this.leaveEditorTransition
|
|
@@ -2588,7 +2590,7 @@ t&&i&&i===t||!t&&!i||(this.set("hasDirtyAttributes",!0),(e.get("isNew")&&!t||t==
|
|
|
2588
2590
|
if(e!==Ce||!this.get("post.slug"))try{let t=yield this.slugGenerator.generateSlug("post",e)
|
|
2589
2591
|
Ember.isBlank(t)||this.set("post.slug",t)}catch(t){(0,b.isVersionMismatchError)(t)&&this.notifications.showAPIError(t)}}*backgroundLoaderTask(){yield this.store.query("snippet",{limit:"all"})}setPost(e){e!==this.post?(this.reset(),this.set("post",e),this.backgroundLoaderTask.perform(),this.set("shouldFocusTitle",e.get("isNew")),e.set("titleScratch",e.get("title")),e.set("scratch",e.get("mobiledoc")),this._previousTagNames=this._tagNames,window.onbeforeunload=()=>{if(this.hasDirtyAttributes)return"==============================\n\nHey there! It looks like you're in the middle of writing something and you haven't saved all of your content.\n\nSave before you go!\n\n=============================="}):this.set("shouldFocusTitle",e.get("isNew"))}async willTransition(e){let i=this.post
|
|
2590
2592
|
if(!i)return
|
|
2591
|
-
this._koenig&&i.isDraft&&this._koenig.cleanup()
|
|
2593
|
+
if(this._koenig&&i.isDraft&&this._koenig.cleanup(),this.updateSlugTask.isRunning)return e.abort(),await this.updateSlugTask.last,e.retry()
|
|
2592
2594
|
let n=this.hasDirtyAttributes,r=i.getProperties("isDeleted","isSaving","hasDirtyAttributes","isNew"),a="editor.new"===this.router.currentRouteName&&"editor.edit"===e.targetName&&e.intent.contexts&&e.intent.contexts[0]&&e.intent.contexts[0].id===i.id,s=r.isDeleted&&(r.isSaving||!r.hasDirtyAttributes)
|
|
2593
2595
|
if(!this._leaveConfirmed&&!a&&!s&&n){if(e.abort(),this.saveTasks.isRunning)return await this.saveTasks.last,e.retry()
|
|
2594
2596
|
if(this._autosaveRunning)return this.cancelAutosave(),this.autosaveTask.cancelAll(),await this.autosaveTask.perform(),e.retry()
|
|
@@ -2617,7 +2619,7 @@ else if(i&&(o=i,"[object String]"===toString.call(o)))r=i
|
|
|
2617
2619
|
else if(i&&Ember.isArray(i))r=i[0]
|
|
2618
2620
|
else{if(i&&i.payload&&i.payload.errors&&i.payload.errors[0].message)return this.notifications.showAPIError(i,{key:"post.save"})
|
|
2619
2621
|
r="Unknown Error"}var o
|
|
2620
|
-
a+=`: ${r}`,a=Ember.String.htmlSafe(a),s.showAlert(a,{type:"error",delayed:n,key:"post.save"})}},de=Se(ue.prototype,"application",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=Se(ue.prototype,"feature",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Se(ue.prototype,"membersCountCache",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Se(ue.prototype,"modals",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Se(ue.prototype,"notifications",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Se(ue.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Se(ue.prototype,"slugGenerator",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Se(ue.prototype,"session",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Se(ue.prototype,"settings",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Se(ue.prototype,"ui",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Se(ue.prototype,"config",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Se(ue.prototype,"post",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Se(ue.prototype,"willPublish",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Se(ue.prototype,"willSchedule",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Se(ue.prototype,"saveTasks",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Se(ue.prototype,"_tagNames",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se(ue.prototype,"hasDirtyAttributes",[M],Object.getOwnPropertyDescriptor(ue.prototype,"hasDirtyAttributes"),ue.prototype),Se(ue.prototype,"_snippets",[D],Object.getOwnPropertyDescriptor(ue.prototype,"_snippets"),ue.prototype),Se(ue.prototype,"snippets",[A],Object.getOwnPropertyDescriptor(ue.prototype,"snippets"),ue.prototype),Se(ue.prototype,"canManageSnippets",[I],Object.getOwnPropertyDescriptor(ue.prototype,"canManageSnippets"),ue.prototype),Se(ue.prototype,"_autosaveRunning",[L],Object.getOwnPropertyDescriptor(ue.prototype,"_autosaveRunning"),ue.prototype),Se(ue.prototype,"_canAutosave",[R],Object.getOwnPropertyDescriptor(ue.prototype,"_canAutosave"),ue.prototype),Se(ue.prototype,"updateScratch",[N],Object.getOwnPropertyDescriptor(ue.prototype,"updateScratch"),ue.prototype),Se(ue.prototype,"updateTitleScratch",[U],Object.getOwnPropertyDescriptor(ue.prototype,"updateTitleScratch"),ue.prototype),Se(ue.prototype,"setSaveType",[F],Object.getOwnPropertyDescriptor(ue.prototype,"setSaveType"),ue.prototype),Se(ue.prototype,"save",[B],Object.getOwnPropertyDescriptor(ue.prototype,"save"),ue.prototype),Se(ue.prototype,"cancelAutosave",[V],Object.getOwnPropertyDescriptor(ue.prototype,"cancelAutosave"),ue.prototype),Se(ue.prototype,"leaveEditor",[H],Object.getOwnPropertyDescriptor(ue.prototype,"leaveEditor"),ue.prototype),Se(ue.prototype,"openDeletePostModal",[q],Object.getOwnPropertyDescriptor(ue.prototype,"openDeletePostModal"),ue.prototype),Se(ue.prototype,"openUpgradeModal",[$],Object.getOwnPropertyDescriptor(ue.prototype,"openUpgradeModal"),ue.prototype),Se(ue.prototype,"setKoenigEditor",[Y],Object.getOwnPropertyDescriptor(ue.prototype,"setKoenigEditor"),ue.prototype),Se(ue.prototype,"updateWordCount",[W],Object.getOwnPropertyDescriptor(ue.prototype,"updateWordCount"),ue.prototype),Se(ue.prototype,"setFeatureImage",[G],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImage"),ue.prototype),Se(ue.prototype,"clearFeatureImage",[K],Object.getOwnPropertyDescriptor(ue.prototype,"clearFeatureImage"),ue.prototype),Se(ue.prototype,"setFeatureImageAlt",[
|
|
2622
|
+
a+=`: ${r}`,a=Ember.String.htmlSafe(a),s.showAlert(a,{type:"error",delayed:n,key:"post.save"})}},de=Se(ue.prototype,"application",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=Se(ue.prototype,"feature",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Se(ue.prototype,"membersCountCache",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Se(ue.prototype,"modals",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Se(ue.prototype,"notifications",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Se(ue.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Se(ue.prototype,"slugGenerator",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Se(ue.prototype,"session",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Se(ue.prototype,"settings",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Se(ue.prototype,"ui",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Se(ue.prototype,"config",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Se(ue.prototype,"post",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Se(ue.prototype,"willPublish",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Se(ue.prototype,"willSchedule",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Se(ue.prototype,"saveTasks",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Se(ue.prototype,"_tagNames",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se(ue.prototype,"hasDirtyAttributes",[M],Object.getOwnPropertyDescriptor(ue.prototype,"hasDirtyAttributes"),ue.prototype),Se(ue.prototype,"_snippets",[D],Object.getOwnPropertyDescriptor(ue.prototype,"_snippets"),ue.prototype),Se(ue.prototype,"snippets",[A],Object.getOwnPropertyDescriptor(ue.prototype,"snippets"),ue.prototype),Se(ue.prototype,"canManageSnippets",[I],Object.getOwnPropertyDescriptor(ue.prototype,"canManageSnippets"),ue.prototype),Se(ue.prototype,"_autosaveRunning",[L],Object.getOwnPropertyDescriptor(ue.prototype,"_autosaveRunning"),ue.prototype),Se(ue.prototype,"_canAutosave",[R],Object.getOwnPropertyDescriptor(ue.prototype,"_canAutosave"),ue.prototype),Se(ue.prototype,"updateScratch",[N],Object.getOwnPropertyDescriptor(ue.prototype,"updateScratch"),ue.prototype),Se(ue.prototype,"updateTitleScratch",[U],Object.getOwnPropertyDescriptor(ue.prototype,"updateTitleScratch"),ue.prototype),Se(ue.prototype,"setSaveType",[F],Object.getOwnPropertyDescriptor(ue.prototype,"setSaveType"),ue.prototype),Se(ue.prototype,"save",[B],Object.getOwnPropertyDescriptor(ue.prototype,"save"),ue.prototype),Se(ue.prototype,"cancelAutosave",[V],Object.getOwnPropertyDescriptor(ue.prototype,"cancelAutosave"),ue.prototype),Se(ue.prototype,"leaveEditor",[H],Object.getOwnPropertyDescriptor(ue.prototype,"leaveEditor"),ue.prototype),Se(ue.prototype,"openDeletePostModal",[q],Object.getOwnPropertyDescriptor(ue.prototype,"openDeletePostModal"),ue.prototype),Se(ue.prototype,"openUpgradeModal",[$],Object.getOwnPropertyDescriptor(ue.prototype,"openUpgradeModal"),ue.prototype),Se(ue.prototype,"setKoenigEditor",[Y],Object.getOwnPropertyDescriptor(ue.prototype,"setKoenigEditor"),ue.prototype),Se(ue.prototype,"updateWordCount",[W],Object.getOwnPropertyDescriptor(ue.prototype,"updateWordCount"),ue.prototype),Se(ue.prototype,"setFeatureImage",[G],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImage"),ue.prototype),Se(ue.prototype,"clearFeatureImage",[K],Object.getOwnPropertyDescriptor(ue.prototype,"clearFeatureImage"),ue.prototype),Se(ue.prototype,"setFeatureImageAlt",[Z],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImageAlt"),ue.prototype),Se(ue.prototype,"setFeatureImageCaption",[J],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImageCaption"),ue.prototype),Se(ue.prototype,"toggleSettingsMenu",[X],Object.getOwnPropertyDescriptor(ue.prototype,"toggleSettingsMenu"),ue.prototype),Se(ue.prototype,"closeSettingsMenu",[Q],Object.getOwnPropertyDescriptor(ue.prototype,"closeSettingsMenu"),ue.prototype),Se(ue.prototype,"saveSnippet",[ee],Object.getOwnPropertyDescriptor(ue.prototype,"saveSnippet"),ue.prototype),Se(ue.prototype,"confirmUpdateSnippet",[te],Object.getOwnPropertyDescriptor(ue.prototype,"confirmUpdateSnippet"),ue.prototype),Se(ue.prototype,"confirmDeleteSnippet",[ie],Object.getOwnPropertyDescriptor(ue.prototype,"confirmDeleteSnippet"),ue.prototype),Se(ue.prototype,"autosaveTask",[m.dropTask],Object.getOwnPropertyDescriptor(ue.prototype,"autosaveTask"),ue.prototype),Se(ue.prototype,"saveTask",[ne],Object.getOwnPropertyDescriptor(ue.prototype,"saveTask"),ue.prototype),Se(ue.prototype,"beforeSaveTask",[m.task],Object.getOwnPropertyDescriptor(ue.prototype,"beforeSaveTask"),ue.prototype),Se(ue.prototype,"updateSlugTask",[re],Object.getOwnPropertyDescriptor(ue.prototype,"updateSlugTask"),ue.prototype),Se(ue.prototype,"savePostTask",[ae],Object.getOwnPropertyDescriptor(ue.prototype,"savePostTask"),ue.prototype),Se(ue.prototype,"_savePostTask",[m.task],Object.getOwnPropertyDescriptor(ue.prototype,"_savePostTask"),ue.prototype),Se(ue.prototype,"afterSave",[se],Object.getOwnPropertyDescriptor(ue.prototype,"afterSave"),ue.prototype),Se(ue.prototype,"saveTitleTask",[m.task],Object.getOwnPropertyDescriptor(ue.prototype,"saveTitleTask"),ue.prototype),Se(ue.prototype,"generateSlugTask",[m.enqueueTask],Object.getOwnPropertyDescriptor(ue.prototype,"generateSlugTask"),ue.prototype),Se(ue.prototype,"backgroundLoaderTask",[m.restartableTask],Object.getOwnPropertyDescriptor(ue.prototype,"backgroundLoaderTask"),ue.prototype),je=Se(ue.prototype,"_autosaveTask",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=Se(ue.prototype,"_timedSaveTask",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue)
|
|
2621
2623
|
e.default=Ae})),define("ghost-admin/controllers/editor/edit-loading",["exports"],(function(e){var t,i,n
|
|
2622
2624
|
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2623
2625
|
let r=(t=Ember.inject.service,i=class extends Ember.Controller{constructor(){var e,t,i,r
|
|
@@ -2636,14 +2638,14 @@ Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
|
2636
2638
|
let r=(t=Ember._tracked,i=class extends Ember.Controller{constructor(){var e,t,i,r
|
|
2637
2639
|
super(...arguments),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"queryParams",["firstStart"]),e=this,t="firstStart",r=this,(i=n)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}},a=i.prototype,s="firstStart",o=[t],l={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},d={},Object.keys(l).forEach((function(e){d[e]=l[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=o.slice().reverse().reduce((function(e,t){return t(a,s,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(a,s,d),d=null),n=d,i)
|
|
2638
2640
|
var a,s,o,l,u,d
|
|
2639
|
-
e.default=r})),define("ghost-admin/controllers/lexical-editor",["exports","ghost-admin/components/modals/editor/confirm-leave","ghost-admin/components/modals/delete-post","ghost-admin/components/editor/modals/delete-snippet","ghost-admin/models/post","ghost-admin/components/modals/limits/publish-limit","ghost-admin/components/editor/modals/re-authenticate","ghost-admin/components/editor/modals/update-snippet","ghost-admin/utils/bound-one-way","ghost-admin/config/environment","ghost-admin/utils/isNumber","moment-timezone","ghost-admin/services/notifications","ember-concurrency","ghost-admin/decorators/inject","ghost-admin/services/ajax","ember-ajax/errors"],(function(e,t,i,n,r,a,s,o,l,u,d,c,p,m,h,b,g){var f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
2641
|
+
e.default=r})),define("ghost-admin/controllers/lexical-editor",["exports","ghost-admin/components/modals/editor/confirm-leave","ghost-admin/components/modals/delete-post","ghost-admin/components/editor/modals/delete-snippet","ghost-admin/models/post","ghost-admin/components/modals/limits/publish-limit","ghost-admin/components/editor/modals/re-authenticate","ghost-admin/components/editor/modals/update-snippet","ghost-admin/utils/bound-one-way","ghost-admin/config/environment","ghost-admin/utils/isNumber","moment-timezone","ghost-admin/services/notifications","ember-concurrency","ghost-admin/decorators/inject","ghost-admin/services/ajax","ember-ajax/errors"],(function(e,t,i,n,r,a,s,o,l,u,d,c,p,m,h,b,g){var f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,de,ce,pe,me,he,be,ge,fe,ve,ye,we,ke,Ee,Oe,Pe,_e,je,Te
|
|
2640
2642
|
function ze(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function xe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Se(e,t,i,n,r){var a={}
|
|
2641
2643
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2642
2644
|
const Ce="(Untitled)"
|
|
2643
2645
|
let Me=["post.lexicalScratch","post.titleScratch","post.hasDirtyAttributes","post.tags.[]","post.isError"]
|
|
2644
2646
|
r.default.eachAttribute((function(e){Me.push(`post.${e}`)}))
|
|
2645
2647
|
const De={errors:{post:{published:{published:"Update failed",draft:"Saving failed",scheduled:"Scheduling failed"},draft:{published:"Publish failed",draft:"Saving failed",scheduled:"Scheduling failed"},scheduled:{scheduled:"Update failed",draft:"Unscheduling failed",published:"Publish failed"}}},success:{post:{published:{published:"Updated",draft:"Saved",scheduled:"Scheduled",sent:"Sent"},draft:{published:"Published",draft:"Saved",scheduled:"Scheduled",sent:"Sent"},scheduled:{scheduled:"Updated",draft:"Unscheduled",published:"Published",sent:"Sent"},sent:{sent:"Updated"}}}}
|
|
2646
|
-
let Ae=(f=Ember.inject.controller,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember.inject.service,E=Ember.inject.service,O=Ember.inject.service,P=Ember.inject.service,_=Ember.inject.service,j=Ember.inject.service,T=Ember.computed.alias("model"),z=(0,l.default)("post.isPublished"),x=(0,l.default)("post.isScheduled"),S=(0,m.taskGroup)().enqueue(),C=Ember.computed.mapBy("post.tags","name"),M=Ember.computed(...Me),D=Ember.computed,A=Ember.computed("_snippets.@each.{name,isNew}"),I=Ember.computed("session.user.{isAdmin,isEditor}"),L=Ember.computed("_autosaveTask.isRunning","_timedSaveTask.isRunning"),R=Ember.computed("post.isDraft"),N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,
|
|
2648
|
+
let Ae=(f=Ember.inject.controller,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember.inject.service,E=Ember.inject.service,O=Ember.inject.service,P=Ember.inject.service,_=Ember.inject.service,j=Ember.inject.service,T=Ember.computed.alias("model"),z=(0,l.default)("post.isPublished"),x=(0,l.default)("post.isScheduled"),S=(0,m.taskGroup)().enqueue(),C=Ember.computed.mapBy("post.tags","name"),M=Ember.computed(...Me),D=Ember.computed,A=Ember.computed("_snippets.@each.{name,isNew}"),I=Ember.computed("session.user.{isAdmin,isEditor}"),L=Ember.computed("_autosaveTask.isRunning","_timedSaveTask.isRunning"),R=Ember.computed("post.isDraft"),N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,Z=Ember._action,J=Ember._action,X=Ember._action,Q=Ember._action,ee=Ember._action,te=Ember._action,ie=Ember._action,ne=(0,m.task)({group:"saveTasks"}),re=(0,m.task)({group:"saveTasks"}),ae=(0,m.task)({group:"saveTasks"}),se=Ember._action,oe=(0,m.task)((function*(){if(this._canAutosave){if(this.get("post.isNew"))return this.autosaveTask.perform()
|
|
2647
2649
|
yield(0,m.timeout)(3e3),this.autosaveTask.perform()}})).restartable(),le=(0,m.task)((function*(){if(this._canAutosave)for(;"test"!==u.default.environment;)yield(0,m.timeout)(6e4),this.autosaveTask.perform()})).drop(),ue=class extends Ember.Controller{constructor(){super(...arguments),ze(this,"application",de,this),ze(this,"feature",ce,this),ze(this,"membersCountCache",pe,this),ze(this,"modals",me,this),ze(this,"notifications",he,this),ze(this,"router",be,this),ze(this,"slugGenerator",ge,this),ze(this,"session",fe,this),ze(this,"settings",ve,this),ze(this,"ui",ye,this),ze(this,"config",we,this),xe(this,"shouldFocusTitle",!1),xe(this,"showSettingsMenu",!1),xe(this,"fromAnalytics",!1),xe(this,"wordcount",null),xe(this,"_leaveConfirmed",!1),xe(this,"_previousTagNames",null),ze(this,"post",ke,this),ze(this,"willPublish",Ee,this),ze(this,"willSchedule",Oe,this),ze(this,"saveTasks",Pe,this),ze(this,"_tagNames",_e,this),ze(this,"_autosaveTask",je,this),ze(this,"_timedSaveTask",Te,this)}get hasDirtyAttributes(){return this._hasDirtyAttributes()}set hasDirtyAttributes(e){return e}get _snippets(){return this.store.peekAll("snippet")}get snippets(){return this._snippets.reject((e=>e.get("isNew"))).sort(((e,t)=>e.name.localeCompare(t.name)))}get canManageSnippets(){let{user:e}=this.session
|
|
2648
2650
|
return!(!e.get("isAdmin")&&!e.get("isEditor"))}get _autosaveRunning(){let e=this.get("_autosaveTask.isRunning"),t=this.get("_timedSaveTask.isRunning")
|
|
2649
2651
|
return e||t}get _canAutosave(){return"test"!==u.default.environment&&this.get("post.isDraft")}updateScratch(e){this.set("post.lexicalScratch",JSON.stringify(e)),this._autosaveTask.perform(),this._timedSaveTask.perform()}updateTitleScratch(e){this.set("post.titleScratch",e)}setSaveType(e){"publish"===e?(this.set("willPublish",!0),this.set("willSchedule",!1)):"draft"===e?(this.set("willPublish",!1),this.set("willSchedule",!1)):"schedule"===e&&(this.set("willSchedule",!0),this.set("willPublish",!1))}save(e){return this.saveTask.perform(e)}cancelAutosave(){this._autosaveTask.cancelAll(),this._timedSaveTask.cancelAll()}leaveEditor(){let e=this.leaveEditorTransition
|
|
@@ -2677,6 +2679,7 @@ t&&i&&i===t||!t&&!i||(this.set("hasDirtyAttributes",!0),(e.get("isNew")&&!t||t==
|
|
|
2677
2679
|
if(e!==Ce||!this.get("post.slug"))try{let t=yield this.slugGenerator.generateSlug("post",e)
|
|
2678
2680
|
Ember.isBlank(t)||this.set("post.slug",t)}catch(t){(0,b.isVersionMismatchError)(t)&&this.notifications.showAPIError(t)}}*backgroundLoaderTask(){yield this.store.query("snippet",{limit:"all"})}setPost(e){e!==this.post?(this.reset(),this.set("post",e),this.backgroundLoaderTask.perform(),this.set("shouldFocusTitle",e.get("isNew")),e.set("titleScratch",e.get("title")),e.set("lexicalScratch",e.get("lexical")),this._previousTagNames=this._tagNames,window.onbeforeunload=()=>{if(this.hasDirtyAttributes)return"==============================\n\nHey there! It looks like you're in the middle of writing something and you haven't saved all of your content.\n\nSave before you go!\n\n=============================="}):this.set("shouldFocusTitle",e.get("isNew"))}async willTransition(e){let i=this.post
|
|
2679
2681
|
if(!i)return
|
|
2682
|
+
if(this.updateSlugTask.isRunning)return e.abort(),await this.updateSlugTask.last,e.retry()
|
|
2680
2683
|
let n=this.hasDirtyAttributes,r=i.getProperties("isDeleted","isSaving","hasDirtyAttributes","isNew"),a="lexical-editor.new"===this.router.currentRouteName&&"lexical-editor.edit"===e.targetName&&e.intent.contexts&&e.intent.contexts[0]&&e.intent.contexts[0].id===i.id,s=r.isDeleted&&(r.isSaving||!r.hasDirtyAttributes)
|
|
2681
2684
|
if(!this._leaveConfirmed&&!a&&!s&&n){if(e.abort(),this.saveTasks.isRunning)return await this.saveTasks.last,e.retry()
|
|
2682
2685
|
if(this._autosaveRunning)return this.cancelAutosave(),this.autosaveTask.cancelAll(),await this.autosaveTask.perform(),e.retry()
|
|
@@ -2705,7 +2708,7 @@ else if(i&&(o=i,"[object String]"===toString.call(o)))r=i
|
|
|
2705
2708
|
else if(i&&Ember.isArray(i))r=i[0]
|
|
2706
2709
|
else{if(i&&i.payload&&i.payload.errors&&i.payload.errors[0].message)return this.notifications.showAPIError(i,{key:"post.save"})
|
|
2707
2710
|
r="Unknown Error"}var o
|
|
2708
|
-
a+=`: ${r}`,a=Ember.String.htmlSafe(a),s.showAlert(a,{type:"error",delayed:n,key:"post.save"})}},de=Se(ue.prototype,"application",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=Se(ue.prototype,"feature",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Se(ue.prototype,"membersCountCache",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Se(ue.prototype,"modals",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Se(ue.prototype,"notifications",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Se(ue.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Se(ue.prototype,"slugGenerator",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Se(ue.prototype,"session",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Se(ue.prototype,"settings",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Se(ue.prototype,"ui",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Se(ue.prototype,"config",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Se(ue.prototype,"post",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Se(ue.prototype,"willPublish",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Se(ue.prototype,"willSchedule",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Se(ue.prototype,"saveTasks",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Se(ue.prototype,"_tagNames",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se(ue.prototype,"hasDirtyAttributes",[M],Object.getOwnPropertyDescriptor(ue.prototype,"hasDirtyAttributes"),ue.prototype),Se(ue.prototype,"_snippets",[D],Object.getOwnPropertyDescriptor(ue.prototype,"_snippets"),ue.prototype),Se(ue.prototype,"snippets",[A],Object.getOwnPropertyDescriptor(ue.prototype,"snippets"),ue.prototype),Se(ue.prototype,"canManageSnippets",[I],Object.getOwnPropertyDescriptor(ue.prototype,"canManageSnippets"),ue.prototype),Se(ue.prototype,"_autosaveRunning",[L],Object.getOwnPropertyDescriptor(ue.prototype,"_autosaveRunning"),ue.prototype),Se(ue.prototype,"_canAutosave",[R],Object.getOwnPropertyDescriptor(ue.prototype,"_canAutosave"),ue.prototype),Se(ue.prototype,"updateScratch",[N],Object.getOwnPropertyDescriptor(ue.prototype,"updateScratch"),ue.prototype),Se(ue.prototype,"updateTitleScratch",[U],Object.getOwnPropertyDescriptor(ue.prototype,"updateTitleScratch"),ue.prototype),Se(ue.prototype,"setSaveType",[F],Object.getOwnPropertyDescriptor(ue.prototype,"setSaveType"),ue.prototype),Se(ue.prototype,"save",[B],Object.getOwnPropertyDescriptor(ue.prototype,"save"),ue.prototype),Se(ue.prototype,"cancelAutosave",[V],Object.getOwnPropertyDescriptor(ue.prototype,"cancelAutosave"),ue.prototype),Se(ue.prototype,"leaveEditor",[H],Object.getOwnPropertyDescriptor(ue.prototype,"leaveEditor"),ue.prototype),Se(ue.prototype,"openDeletePostModal",[q],Object.getOwnPropertyDescriptor(ue.prototype,"openDeletePostModal"),ue.prototype),Se(ue.prototype,"openUpgradeModal",[$],Object.getOwnPropertyDescriptor(ue.prototype,"openUpgradeModal"),ue.prototype),Se(ue.prototype,"setKoenigEditor",[Y],Object.getOwnPropertyDescriptor(ue.prototype,"setKoenigEditor"),ue.prototype),Se(ue.prototype,"updateWordCount",[W],Object.getOwnPropertyDescriptor(ue.prototype,"updateWordCount"),ue.prototype),Se(ue.prototype,"setFeatureImage",[G],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImage"),ue.prototype),Se(ue.prototype,"clearFeatureImage",[K],Object.getOwnPropertyDescriptor(ue.prototype,"clearFeatureImage"),ue.prototype),Se(ue.prototype,"setFeatureImageAlt",[
|
|
2711
|
+
a+=`: ${r}`,a=Ember.String.htmlSafe(a),s.showAlert(a,{type:"error",delayed:n,key:"post.save"})}},de=Se(ue.prototype,"application",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=Se(ue.prototype,"feature",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Se(ue.prototype,"membersCountCache",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Se(ue.prototype,"modals",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Se(ue.prototype,"notifications",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Se(ue.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Se(ue.prototype,"slugGenerator",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Se(ue.prototype,"session",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Se(ue.prototype,"settings",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Se(ue.prototype,"ui",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Se(ue.prototype,"config",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Se(ue.prototype,"post",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Se(ue.prototype,"willPublish",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Se(ue.prototype,"willSchedule",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Se(ue.prototype,"saveTasks",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Se(ue.prototype,"_tagNames",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se(ue.prototype,"hasDirtyAttributes",[M],Object.getOwnPropertyDescriptor(ue.prototype,"hasDirtyAttributes"),ue.prototype),Se(ue.prototype,"_snippets",[D],Object.getOwnPropertyDescriptor(ue.prototype,"_snippets"),ue.prototype),Se(ue.prototype,"snippets",[A],Object.getOwnPropertyDescriptor(ue.prototype,"snippets"),ue.prototype),Se(ue.prototype,"canManageSnippets",[I],Object.getOwnPropertyDescriptor(ue.prototype,"canManageSnippets"),ue.prototype),Se(ue.prototype,"_autosaveRunning",[L],Object.getOwnPropertyDescriptor(ue.prototype,"_autosaveRunning"),ue.prototype),Se(ue.prototype,"_canAutosave",[R],Object.getOwnPropertyDescriptor(ue.prototype,"_canAutosave"),ue.prototype),Se(ue.prototype,"updateScratch",[N],Object.getOwnPropertyDescriptor(ue.prototype,"updateScratch"),ue.prototype),Se(ue.prototype,"updateTitleScratch",[U],Object.getOwnPropertyDescriptor(ue.prototype,"updateTitleScratch"),ue.prototype),Se(ue.prototype,"setSaveType",[F],Object.getOwnPropertyDescriptor(ue.prototype,"setSaveType"),ue.prototype),Se(ue.prototype,"save",[B],Object.getOwnPropertyDescriptor(ue.prototype,"save"),ue.prototype),Se(ue.prototype,"cancelAutosave",[V],Object.getOwnPropertyDescriptor(ue.prototype,"cancelAutosave"),ue.prototype),Se(ue.prototype,"leaveEditor",[H],Object.getOwnPropertyDescriptor(ue.prototype,"leaveEditor"),ue.prototype),Se(ue.prototype,"openDeletePostModal",[q],Object.getOwnPropertyDescriptor(ue.prototype,"openDeletePostModal"),ue.prototype),Se(ue.prototype,"openUpgradeModal",[$],Object.getOwnPropertyDescriptor(ue.prototype,"openUpgradeModal"),ue.prototype),Se(ue.prototype,"setKoenigEditor",[Y],Object.getOwnPropertyDescriptor(ue.prototype,"setKoenigEditor"),ue.prototype),Se(ue.prototype,"updateWordCount",[W],Object.getOwnPropertyDescriptor(ue.prototype,"updateWordCount"),ue.prototype),Se(ue.prototype,"setFeatureImage",[G],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImage"),ue.prototype),Se(ue.prototype,"clearFeatureImage",[K],Object.getOwnPropertyDescriptor(ue.prototype,"clearFeatureImage"),ue.prototype),Se(ue.prototype,"setFeatureImageAlt",[Z],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImageAlt"),ue.prototype),Se(ue.prototype,"setFeatureImageCaption",[J],Object.getOwnPropertyDescriptor(ue.prototype,"setFeatureImageCaption"),ue.prototype),Se(ue.prototype,"toggleSettingsMenu",[X],Object.getOwnPropertyDescriptor(ue.prototype,"toggleSettingsMenu"),ue.prototype),Se(ue.prototype,"closeSettingsMenu",[Q],Object.getOwnPropertyDescriptor(ue.prototype,"closeSettingsMenu"),ue.prototype),Se(ue.prototype,"saveSnippet",[ee],Object.getOwnPropertyDescriptor(ue.prototype,"saveSnippet"),ue.prototype),Se(ue.prototype,"confirmUpdateSnippet",[te],Object.getOwnPropertyDescriptor(ue.prototype,"confirmUpdateSnippet"),ue.prototype),Se(ue.prototype,"confirmDeleteSnippet",[ie],Object.getOwnPropertyDescriptor(ue.prototype,"confirmDeleteSnippet"),ue.prototype),Se(ue.prototype,"autosaveTask",[m.dropTask],Object.getOwnPropertyDescriptor(ue.prototype,"autosaveTask"),ue.prototype),Se(ue.prototype,"saveTask",[ne],Object.getOwnPropertyDescriptor(ue.prototype,"saveTask"),ue.prototype),Se(ue.prototype,"beforeSaveTask",[m.task],Object.getOwnPropertyDescriptor(ue.prototype,"beforeSaveTask"),ue.prototype),Se(ue.prototype,"updateSlugTask",[re],Object.getOwnPropertyDescriptor(ue.prototype,"updateSlugTask"),ue.prototype),Se(ue.prototype,"savePostTask",[ae],Object.getOwnPropertyDescriptor(ue.prototype,"savePostTask"),ue.prototype),Se(ue.prototype,"_savePostTask",[m.task],Object.getOwnPropertyDescriptor(ue.prototype,"_savePostTask"),ue.prototype),Se(ue.prototype,"afterSave",[se],Object.getOwnPropertyDescriptor(ue.prototype,"afterSave"),ue.prototype),Se(ue.prototype,"saveTitleTask",[m.task],Object.getOwnPropertyDescriptor(ue.prototype,"saveTitleTask"),ue.prototype),Se(ue.prototype,"generateSlugTask",[m.enqueueTask],Object.getOwnPropertyDescriptor(ue.prototype,"generateSlugTask"),ue.prototype),Se(ue.prototype,"backgroundLoaderTask",[m.restartableTask],Object.getOwnPropertyDescriptor(ue.prototype,"backgroundLoaderTask"),ue.prototype),je=Se(ue.prototype,"_autosaveTask",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=Se(ue.prototype,"_timedSaveTask",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue)
|
|
2709
2712
|
e.default=Ae})),define("ghost-admin/controllers/lexical-editor/edit-loading",["exports"],(function(e){var t,i,n
|
|
2710
2713
|
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2711
2714
|
let r=(t=Ember.inject.service,i=class extends Ember.Controller{constructor(){var e,t,i,r
|
|
@@ -2736,11 +2739,11 @@ function w(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,config
|
|
|
2736
2739
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2737
2740
|
let E=(r=Ember.inject.service,a=Ember.inject.service,s=Ember.inject.service,o=Ember.inject.service,l=Ember._tracked,u=Ember._tracked,d=Ember._action,c=Ember._action,p=class extends Ember.Controller{constructor(){super(...arguments),w(this,"router",m,this),w(this,"settings",h,this),w(this,"store",b,this),w(this,"feature",g,this),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"queryParams",["excludedEvents","member"]),w(this,"excludedEvents",f,this),w(this,"member",v,this),w(this,"memberRecord",y,this)}get hiddenEvents(){const e=[]
|
|
2738
2741
|
return this.member?this.feature.get("suppressionList")||e.push("email_sent_event"):e.push(...i.EMAIL_EVENTS),e.push("aggregated_click_event"),"disabled"===this.settings.editorDefaultEmailRecipients&&e.push(...i.EMAIL_EVENTS,...i.NEWSLETTER_EVENTS),e}get fullExcludedEvents(){return(this.excludedEvents||"").split(",").concat(this.hiddenEvents)}changeExcludedEvents(e){this.router.transitionTo({queryParams:{excludedEvents:e}})}changeMember(e){this.router.transitionTo({queryParams:{member:e?.id}})}},m=k(p.prototype,"router",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=k(p.prototype,"settings",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=k(p.prototype,"store",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=k(p.prototype,"feature",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=k(p.prototype,"excludedEvents",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=k(p.prototype,"member",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=k(p.prototype,"memberRecord",[n.use],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new t.default((()=>[this.member]))}}),k(p.prototype,"changeExcludedEvents",[d],Object.getOwnPropertyDescriptor(p.prototype,"changeExcludedEvents"),p.prototype),k(p.prototype,"changeMember",[c],Object.getOwnPropertyDescriptor(p.prototype,"changeMember"),p.prototype),p)
|
|
2739
|
-
e.default=E})),define("ghost-admin/controllers/members",["exports","ghost-admin/components/members/modals/bulk-add-label","ghost-admin/components/members/modals/bulk-delete","ghost-admin/components/members/modals/bulk-remove-label","ghost-admin/components/members/modals/bulk-unsubscribe","ghost-admin/utils/ghost-paths","moment-timezone","ghost-admin/helpers/gh-pluralize","ghost-admin/decorators/inject","ghost-admin/helpers/reset-query-params","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l,u,d){var c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
2742
|
+
e.default=E})),define("ghost-admin/controllers/members",["exports","ghost-admin/components/members/modals/bulk-add-label","ghost-admin/components/members/modals/bulk-delete","ghost-admin/components/members/modals/bulk-remove-label","ghost-admin/components/members/modals/bulk-unsubscribe","ghost-admin/utils/ghost-paths","moment-timezone","ghost-admin/helpers/gh-pluralize","ghost-admin/decorators/inject","ghost-admin/helpers/reset-query-params","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l,u,d){var c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,de,ce,pe,me,he,be,ge,fe,ve,ye,we,ke,Ee,Oe,Pe,_e,je
|
|
2740
2743
|
function Te(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function ze(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function xe(e,t,i,n,r){var a={}
|
|
2741
2744
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2742
2745
|
const Se=[{name:"All members",value:null},{name:"Free members",value:"false"},{name:"Paid members",value:"true"}]
|
|
2743
|
-
let Ce=(c=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=Ember._tracked,j=Ember._tracked,T=Ember._tracked,z=Ember._tracked,x=Ember._tracked,S=Ember._tracked,C=Ember._tracked,M=Ember._tracked,D=Ember._tracked,A=Ember._tracked,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,
|
|
2746
|
+
let Ce=(c=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=Ember._tracked,j=Ember._tracked,T=Ember._tracked,z=Ember._tracked,x=Ember._tracked,S=Ember._tracked,C=Ember._tracked,M=Ember._tracked,D=Ember._tracked,A=Ember._tracked,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=Ember._action,K=Ember._action,Z=Ember._action,J=Ember._action,X=Ember._action,Q=(0,d.task)({restartable:!0}),ee=(0,d.task)({restartable:!0}),te=class extends Ember.Controller{constructor(){super(...arguments),Te(this,"ajax",ie,this),Te(this,"ellaSparse",ne,this),Te(this,"feature",re,this),Te(this,"ghostPaths",ae,this),Te(this,"membersStats",se,this),Te(this,"modals",oe,this),Te(this,"router",le,this),Te(this,"store",ue,this),Te(this,"utils",de,this),Te(this,"settings",ce,this),Te(this,"config",pe,this),ze(this,"queryParams",["label",{paidParam:"paid"},{searchParam:"search"},{orderParam:"order"},{filterParam:"filter"}]),Te(this,"members",me,this),Te(this,"searchParam",he,this),Te(this,"searchIsFocused",be,this),Te(this,"filterParam",ge,this),Te(this,"softFilterParam",fe,this),Te(this,"paidParam",ve,this),Te(this,"label",ye,this),Te(this,"orderParam",we,this),Te(this,"modalLabel",ke,this),Te(this,"showLabelModal",Ee,this),Te(this,"filters",Oe,this),Te(this,"softFilters",Pe,this),Te(this,"_availableLabels",_e,this),Te(this,"parseFilterParamCounter",je,this),ze(this,"fromAnalytics",null),ze(this,"paidParams",Se),this._availableLabels=this.store.peekAll("label")}get listHeader(){let{searchParam:e,selectedLabel:t,members:i}=this
|
|
2744
2747
|
if(i.loading)return"Loading..."
|
|
2745
2748
|
if(e)return"Search result"
|
|
2746
2749
|
let n=(0,o.ghPluralize)(i.length,"member")
|
|
@@ -2759,17 +2762,17 @@ let{label:i,paidParam:n,searchParam:r,orderParam:a,filterParam:o}=void 0===e?thi
|
|
|
2759
2762
|
if(this._lastLabel=i,this._lastPaidParam=n,this._lastSearchParam=r,this._lastOrderParam=a,this._lastFilterParam=o,!u&&this._startDate&&!(this._startDate-l>6e4))return this.members
|
|
2760
2763
|
this._startDate=l,this.members=yield this.ellaSparse.array((function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
|
|
2761
2764
|
const r=t.getApiQueryObject({params:e,extraFilters:[`created_at:<='${s.default.utc(t._startDate).format("YYYY-MM-DD HH:mm:ss")}'`]}),o=a?`${a} desc`:"created_at desc",l=["labels","tiers"]
|
|
2762
|
-
return n=Object.assign({include:l.join(","),order:o,limit:i.length,page:i.page},r,n),t.store.query("member",n).then((e=>({data:e,total:e.meta.pagination.total})))}),{limit:50})}resetFilters(e){e?.filterParam?(this.filterParam=e.filterParam,this.parseFilterParamCounter+=1):(this.filters=Ember.A([]),this.softFilterParam=null,this.softFilters=Ember.A([]))}reload(e){this.membersStats.invalidate(),this.membersStats.fetchCounts(),this.fetchMembersTask.perform(e)}},ie=xe(te.prototype,"ajax",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=xe(te.prototype,"ellaSparse",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=xe(te.prototype,"feature",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=xe(te.prototype,"ghostPaths",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=xe(te.prototype,"membersStats",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=xe(te.prototype,"modals",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=xe(te.prototype,"router",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=xe(te.prototype,"store",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=xe(te.prototype,"utils",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=xe(te.prototype,"settings",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=xe(te.prototype,"config",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=xe(te.prototype,"members",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),he=xe(te.prototype,"searchParam",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),be=xe(te.prototype,"searchIsFocused",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge=xe(te.prototype,"filterParam",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fe=xe(te.prototype,"softFilterParam",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ve=xe(te.prototype,"paidParam",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ye=xe(te.prototype,"label",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),we=xe(te.prototype,"orderParam",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ke=xe(te.prototype,"modalLabel",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ee=xe(te.prototype,"showLabelModal",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Oe=xe(te.prototype,"filters",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),Pe=xe(te.prototype,"softFilters",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),_e=xe(te.prototype,"_availableLabels",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),je=xe(te.prototype,"parseFilterParamCounter",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),xe(te.prototype,"refreshData",[I],Object.getOwnPropertyDescriptor(te.prototype,"refreshData"),te.prototype),xe(te.prototype,"changeOrder",[L],Object.getOwnPropertyDescriptor(te.prototype,"changeOrder"),te.prototype),xe(te.prototype,"applyFilter",[R],Object.getOwnPropertyDescriptor(te.prototype,"applyFilter"),te.prototype),xe(te.prototype,"applyParsedFilter",[N],Object.getOwnPropertyDescriptor(te.prototype,"applyParsedFilter"),te.prototype),xe(te.prototype,"applySoftFilter",[U],Object.getOwnPropertyDescriptor(te.prototype,"applySoftFilter"),te.prototype),xe(te.prototype,"resetSoftFilter",[F],Object.getOwnPropertyDescriptor(te.prototype,"resetSoftFilter"),te.prototype),xe(te.prototype,"resetFilter",[B],Object.getOwnPropertyDescriptor(te.prototype,"resetFilter"),te.prototype),xe(te.prototype,"search",[V],Object.getOwnPropertyDescriptor(te.prototype,"search"),te.prototype),xe(te.prototype,"exportData",[H],Object.getOwnPropertyDescriptor(te.prototype,"exportData"),te.prototype),xe(te.prototype,"changeLabel",[q],Object.getOwnPropertyDescriptor(te.prototype,"changeLabel"),te.prototype),xe(te.prototype,"editLabel",[$],Object.getOwnPropertyDescriptor(te.prototype,"editLabel"),te.prototype),xe(te.prototype,"toggleLabelModal",[Y],Object.getOwnPropertyDescriptor(te.prototype,"toggleLabelModal"),te.prototype),xe(te.prototype,"bulkAddLabel",[W],Object.getOwnPropertyDescriptor(te.prototype,"bulkAddLabel"),te.prototype),xe(te.prototype,"bulkRemoveLabel",[G],Object.getOwnPropertyDescriptor(te.prototype,"bulkRemoveLabel"),te.prototype),xe(te.prototype,"bulkUnsubscribe",[K],Object.getOwnPropertyDescriptor(te.prototype,"bulkUnsubscribe"),te.prototype),xe(te.prototype,"resetAndReloadMembers",[
|
|
2765
|
+
return n=Object.assign({include:l.join(","),order:o,limit:i.length,page:i.page},r,n),t.store.query("member",n).then((e=>({data:e,total:e.meta.pagination.total})))}),{limit:50})}resetFilters(e){e?.filterParam?(this.filterParam=e.filterParam,this.parseFilterParamCounter+=1):(this.filters=Ember.A([]),this.softFilterParam=null,this.softFilters=Ember.A([]))}reload(e){this.membersStats.invalidate(),this.membersStats.fetchCounts(),this.fetchMembersTask.perform(e)}},ie=xe(te.prototype,"ajax",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=xe(te.prototype,"ellaSparse",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=xe(te.prototype,"feature",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=xe(te.prototype,"ghostPaths",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=xe(te.prototype,"membersStats",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=xe(te.prototype,"modals",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=xe(te.prototype,"router",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=xe(te.prototype,"store",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=xe(te.prototype,"utils",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=xe(te.prototype,"settings",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=xe(te.prototype,"config",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=xe(te.prototype,"members",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),he=xe(te.prototype,"searchParam",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),be=xe(te.prototype,"searchIsFocused",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge=xe(te.prototype,"filterParam",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fe=xe(te.prototype,"softFilterParam",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ve=xe(te.prototype,"paidParam",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ye=xe(te.prototype,"label",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),we=xe(te.prototype,"orderParam",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ke=xe(te.prototype,"modalLabel",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ee=xe(te.prototype,"showLabelModal",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Oe=xe(te.prototype,"filters",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),Pe=xe(te.prototype,"softFilters",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),_e=xe(te.prototype,"_availableLabels",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),je=xe(te.prototype,"parseFilterParamCounter",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),xe(te.prototype,"refreshData",[I],Object.getOwnPropertyDescriptor(te.prototype,"refreshData"),te.prototype),xe(te.prototype,"changeOrder",[L],Object.getOwnPropertyDescriptor(te.prototype,"changeOrder"),te.prototype),xe(te.prototype,"applyFilter",[R],Object.getOwnPropertyDescriptor(te.prototype,"applyFilter"),te.prototype),xe(te.prototype,"applyParsedFilter",[N],Object.getOwnPropertyDescriptor(te.prototype,"applyParsedFilter"),te.prototype),xe(te.prototype,"applySoftFilter",[U],Object.getOwnPropertyDescriptor(te.prototype,"applySoftFilter"),te.prototype),xe(te.prototype,"resetSoftFilter",[F],Object.getOwnPropertyDescriptor(te.prototype,"resetSoftFilter"),te.prototype),xe(te.prototype,"resetFilter",[B],Object.getOwnPropertyDescriptor(te.prototype,"resetFilter"),te.prototype),xe(te.prototype,"search",[V],Object.getOwnPropertyDescriptor(te.prototype,"search"),te.prototype),xe(te.prototype,"exportData",[H],Object.getOwnPropertyDescriptor(te.prototype,"exportData"),te.prototype),xe(te.prototype,"changeLabel",[q],Object.getOwnPropertyDescriptor(te.prototype,"changeLabel"),te.prototype),xe(te.prototype,"editLabel",[$],Object.getOwnPropertyDescriptor(te.prototype,"editLabel"),te.prototype),xe(te.prototype,"toggleLabelModal",[Y],Object.getOwnPropertyDescriptor(te.prototype,"toggleLabelModal"),te.prototype),xe(te.prototype,"bulkAddLabel",[W],Object.getOwnPropertyDescriptor(te.prototype,"bulkAddLabel"),te.prototype),xe(te.prototype,"bulkRemoveLabel",[G],Object.getOwnPropertyDescriptor(te.prototype,"bulkRemoveLabel"),te.prototype),xe(te.prototype,"bulkUnsubscribe",[K],Object.getOwnPropertyDescriptor(te.prototype,"bulkUnsubscribe"),te.prototype),xe(te.prototype,"resetAndReloadMembers",[Z],Object.getOwnPropertyDescriptor(te.prototype,"resetAndReloadMembers"),te.prototype),xe(te.prototype,"bulkDelete",[J],Object.getOwnPropertyDescriptor(te.prototype,"bulkDelete"),te.prototype),xe(te.prototype,"changePaidParam",[X],Object.getOwnPropertyDescriptor(te.prototype,"changePaidParam"),te.prototype),xe(te.prototype,"searchTask",[Q],Object.getOwnPropertyDescriptor(te.prototype,"searchTask"),te.prototype),xe(te.prototype,"fetchLabelsTask",[d.task],Object.getOwnPropertyDescriptor(te.prototype,"fetchLabelsTask"),te.prototype),xe(te.prototype,"fetchMembersTask",[ee],Object.getOwnPropertyDescriptor(te.prototype,"fetchMembersTask"),te.prototype),te)
|
|
2763
2766
|
e.default=Ce})),define("ghost-admin/controllers/members/import",["exports","ghost-admin/helpers/reset-query-params"],(function(e,t){var i,n,r,a,s,o,l
|
|
2764
2767
|
function u(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i,n,r){var a={}
|
|
2765
2768
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2766
2769
|
let c=(i=Ember.inject.service,n=Ember.inject.controller,r=Ember._action,a=Ember._action,s=class extends Ember.Controller{constructor(){super(...arguments),u(this,"router",o,this),u(this,"members",l,this)}refreshMembers(){let{label:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
2767
2770
|
if(e){let i=Object.assign((0,t.resetQueryParams)("members.index"),{filter:`label:[${e.slug}]`})
|
|
2768
2771
|
this.router.transitionTo({queryParams:i})}this.members.refreshData()}close(){this.router.transitionTo("members")}},o=d(s.prototype,"router",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=d(s.prototype,"members",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(s.prototype,"refreshMembers",[r],Object.getOwnPropertyDescriptor(s.prototype,"refreshMembers"),s.prototype),d(s.prototype,"close",[a],Object.getOwnPropertyDescriptor(s.prototype,"close"),s.prototype),s)
|
|
2769
|
-
e.default=c})),define("ghost-admin/controllers/offer",["exports","ghost-admin/components/modals/offers/archive","ghost-admin/components/modals/offers/unarchive","ghost-admin/config/environment","ghost-admin/utils/copy-text-to-clipboard","ghost-admin/utils/currency","ghost-admin/decorators/inject","@tryghost/string","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l){var u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
2772
|
+
e.default=c})),define("ghost-admin/controllers/offer",["exports","ghost-admin/components/modals/offers/archive","ghost-admin/components/modals/offers/unarchive","ghost-admin/config/environment","ghost-admin/utils/copy-text-to-clipboard","ghost-admin/utils/currency","ghost-admin/decorators/inject","@tryghost/string","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l){var u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,de,ce
|
|
2770
2773
|
function pe(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function me(e,t,i,n,r){var a={}
|
|
2771
2774
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2772
|
-
let he=(u=Ember.inject.controller,d=Ember.inject.service,c=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,g=Ember._tracked,f=Ember._tracked,v=Ember._tracked,y=Ember._tracked,w=Ember._tracked,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=(0,l.task)({drop:!0}),j=(0,l.task)({drop:!0}),T=(0,l.task)({drop:!0}),z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=class extends Ember.Controller{constructor(){super(...arguments),pe(this,"offers",K,this),pe(this,"settings",
|
|
2775
|
+
let he=(u=Ember.inject.controller,d=Ember.inject.service,c=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,g=Ember._tracked,f=Ember._tracked,v=Ember._tracked,y=Ember._tracked,w=Ember._tracked,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=(0,l.task)({drop:!0}),j=(0,l.task)({drop:!0}),T=(0,l.task)({drop:!0}),z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=class extends Ember.Controller{constructor(){super(...arguments),pe(this,"offers",K,this),pe(this,"settings",Z,this),pe(this,"store",J,this),pe(this,"modals",X,this),pe(this,"feature",Q,this),pe(this,"membersUtils",ee,this),pe(this,"notifications",te,this),pe(this,"config",ie,this),pe(this,"cadences",ne,this),pe(this,"tiers",re,this),pe(this,"portalPreviewUrl",ae,this),pe(this,"defaultSiteUrl",se,this),pe(this,"durations",oe,this),pe(this,"offertypes",le,this),pe(this,"defaultProps",ue,this),pe(this,"isDisplayTitleEdited",de,this),pe(this,"isOfferCodeEdited",ce,this),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"portalPreviewGuid",Date.now().valueOf()),void 0===this.isTesting&&(this.isTesting="test"===n.default.environment)}get offer(){return this.model}set offer(e){this.model=e}get scratchOffer(){return{...this.offer}}get isTrialOffer(){return"trial"===this.offer?.type}get isDiscountOffer(){return"trial"!==this.offer?.type}get cadence(){if(this.offer.tier&&this.offer.cadence){const e=this.tiers.findBy("id",this.offer.tier.id)
|
|
2773
2776
|
return`${this.offer.tier.id}-${this.offer.cadence}-${e?.currency}`}if(this.defaultProps){const e=this.tiers.findBy("id",this.defaultProps.tier.id)
|
|
2774
2777
|
return`${this.defaultProps.tier.id}-${this.defaultProps.cadence}-${e?.currency}`}return""}get isDiscountSectionDisabled(){return!this.offer.isNew}*fetchTiers(){this.tiers=yield this.store.query("tier",{filter:"type:paid+active:true",include:"monthly_price,yearly_price"}),this.tiers=this.tiers.filter((e=>e.monthlyPrice&&e.yearlyPrice))
|
|
2775
2778
|
const e=[]
|
|
@@ -2789,7 +2792,7 @@ if(e){return`${this.config.blogUrl}/${(0,o.slugify)(e)}`}return""}get displayCur
|
|
|
2789
2792
|
if(!e)return"$"
|
|
2790
2793
|
const t=this.tiers.findBy("id",e)?.currency||"usd"
|
|
2791
2794
|
return(0,a.getSymbol)(t)}get currencyLength(){return this.displayCurrency.length}updateDurations(e){e&&("month"===e?this.durations=[{label:"First-payment",duration:"once"},{label:"Multiple-months",duration:"repeating"},{label:"Forever",duration:"forever"}]:(this.durations=[{label:"First-payment",duration:"once"},{label:"Forever",duration:"forever"}],"repeating"===this.offer.duration&&this._saveOfferProperty("duration","once")))}changeType(e){"trial"===e?(this._saveOfferProperty("type","trial"),this._saveOfferProperty("amount",7),this._saveOfferProperty("duration","trial")):(this._saveOfferProperty("type","percent"),this._saveOfferProperty("amount",0),this._saveOfferProperty("duration","once"))}updateCadence(e,t){if(t=t||this.offer,e){const[i,n,r]=e.split("-")
|
|
2792
|
-
t.tier={id:i},t.cadence=n,t.currency=r,this.offertypes=[{label:"%",offertype:"percent"},{label:r.toUpperCase(),offertype:"fixed"}],this.updateDurations(n),this.updatePortalPreview({forceRefresh:!1})}}updateDuration(e){this._saveOfferProperty("duration",e)}_saveOfferProperty(e,t){let i=this.offer[e];(!1===t||t||i)&&(this.offer[e]=t,this.updatePortalPreview({forceRefresh:!1}))}},K=me(G.prototype,"offers",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),
|
|
2795
|
+
t.tier={id:i},t.cadence=n,t.currency=r,this.offertypes=[{label:"%",offertype:"percent"},{label:r.toUpperCase(),offertype:"fixed"}],this.updateDurations(n),this.updatePortalPreview({forceRefresh:!1})}}updateDuration(e){this._saveOfferProperty("duration",e)}_saveOfferProperty(e,t){let i=this.offer[e];(!1===t||t||i)&&(this.offer[e]=t,this.updatePortalPreview({forceRefresh:!1}))}},K=me(G.prototype,"offers",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=me(G.prototype,"settings",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=me(G.prototype,"store",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=me(G.prototype,"modals",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=me(G.prototype,"feature",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=me(G.prototype,"membersUtils",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=me(G.prototype,"notifications",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=me(G.prototype,"config",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=me(G.prototype,"cadences",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),re=me(G.prototype,"tiers",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ae=me(G.prototype,"portalPreviewUrl",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),se=me(G.prototype,"defaultSiteUrl",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.config.blogUrl}}),oe=me(G.prototype,"durations",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{label:"Forever",duration:"forever"},{label:"First-payment",duration:"once"},{label:"Multiple-months",duration:"repeating"}]}}),le=me(G.prototype,"offertypes",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{label:"%",offertype:"percent"},{label:"USD",offertype:"fixed"}]}}),ue=me(G.prototype,"defaultProps",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),de=me(G.prototype,"isDisplayTitleEdited",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ce=me(G.prototype,"isOfferCodeEdited",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),me(G.prototype,"fetchTiers",[_],Object.getOwnPropertyDescriptor(G.prototype,"fetchTiers"),G.prototype),me(G.prototype,"copyOfferUrl",[j],Object.getOwnPropertyDescriptor(G.prototype,"copyOfferUrl"),G.prototype),me(G.prototype,"saveTask",[T],Object.getOwnPropertyDescriptor(G.prototype,"saveTask"),G.prototype),me(G.prototype,"fetchOfferTask",[l.task],Object.getOwnPropertyDescriptor(G.prototype,"fetchOfferTask"),G.prototype),me(G.prototype,"portalPreviewInserted",[z],Object.getOwnPropertyDescriptor(G.prototype,"portalPreviewInserted"),G.prototype),me(G.prototype,"portalPreviewDestroyed",[x],Object.getOwnPropertyDescriptor(G.prototype,"portalPreviewDestroyed"),G.prototype),me(G.prototype,"updatePortalPreview",[S],Object.getOwnPropertyDescriptor(G.prototype,"updatePortalPreview"),G.prototype),me(G.prototype,"save",[C],Object.getOwnPropertyDescriptor(G.prototype,"save"),G.prototype),me(G.prototype,"setup",[M],Object.getOwnPropertyDescriptor(G.prototype,"setup"),G.prototype),me(G.prototype,"setProperty",[D],Object.getOwnPropertyDescriptor(G.prototype,"setProperty"),G.prototype),me(G.prototype,"setDiscountType",[A],Object.getOwnPropertyDescriptor(G.prototype,"setDiscountType"),G.prototype),me(G.prototype,"setDiscountAmount",[I],Object.getOwnPropertyDescriptor(G.prototype,"setDiscountAmount"),G.prototype),me(G.prototype,"setTrialDuration",[L],Object.getOwnPropertyDescriptor(G.prototype,"setTrialDuration"),G.prototype),me(G.prototype,"setOfferName",[R],Object.getOwnPropertyDescriptor(G.prototype,"setOfferName"),G.prototype),me(G.prototype,"setPortalTitle",[N],Object.getOwnPropertyDescriptor(G.prototype,"setPortalTitle"),G.prototype),me(G.prototype,"setPortalDescription",[U],Object.getOwnPropertyDescriptor(G.prototype,"setPortalDescription"),G.prototype),me(G.prototype,"setOfferCode",[F],Object.getOwnPropertyDescriptor(G.prototype,"setOfferCode"),G.prototype),me(G.prototype,"setDurationInMonths",[B],Object.getOwnPropertyDescriptor(G.prototype,"setDurationInMonths"),G.prototype),me(G.prototype,"openConfirmArchiveModal",[V],Object.getOwnPropertyDescriptor(G.prototype,"openConfirmArchiveModal"),G.prototype),me(G.prototype,"openConfirmUnarchiveModal",[H],Object.getOwnPropertyDescriptor(G.prototype,"openConfirmUnarchiveModal"),G.prototype),me(G.prototype,"updateDurations",[q],Object.getOwnPropertyDescriptor(G.prototype,"updateDurations"),G.prototype),me(G.prototype,"changeType",[$],Object.getOwnPropertyDescriptor(G.prototype,"changeType"),G.prototype),me(G.prototype,"updateCadence",[Y],Object.getOwnPropertyDescriptor(G.prototype,"updateCadence"),G.prototype),me(G.prototype,"updateDuration",[W],Object.getOwnPropertyDescriptor(G.prototype,"updateDuration"),G.prototype),G)
|
|
2793
2796
|
e.default=he})),define("ghost-admin/controllers/offers",["exports","ghost-admin/components/modals/offers/link","ember-concurrency"],(function(e,t,i){var n,r,a,s,o,l,u,d,c,p,m,h,b,g,f,v
|
|
2794
2797
|
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function w(e,t,i,n,r){var a={}
|
|
2795
2798
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -2850,7 +2853,7 @@ e.default=d})),define("ghost-admin/controllers/settings/design",["exports"],(fun
|
|
|
2850
2853
|
class t extends Ember.Controller{}e.default=t})),define("ghost-admin/controllers/settings/design/change-theme",["exports"],(function(e){var t,i,n,r,a,s,o,l,u,d,c
|
|
2851
2854
|
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t,i,n,r){var a={}
|
|
2852
2855
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2853
|
-
let b=(t=Ember.inject.service,i=Ember.inject.service,n=Ember.inject.service,r=Ember._tracked,a=Ember._action,s=Ember._action,o=class extends Ember.Controller{constructor(){super(...arguments),p(this,"router",l,this),p(this,"store",u,this),p(this,"themeManagement",d,this),p(this,"showAdvanced",c,this),m(this,"themes",this.store.peekAll("theme")),m(this,"officialThemes",[{name:"Casper",category:"Blog",previewUrl:"https://demo.ghost.io/",ref:"default",image:"assets/img/themes/Casper-
|
|
2856
|
+
let b=(t=Ember.inject.service,i=Ember.inject.service,n=Ember.inject.service,r=Ember._tracked,a=Ember._action,s=Ember._action,o=class extends Ember.Controller{constructor(){super(...arguments),p(this,"router",l,this),p(this,"store",u,this),p(this,"themeManagement",d,this),p(this,"showAdvanced",c,this),m(this,"themes",this.store.peekAll("theme")),m(this,"officialThemes",[{name:"Casper",category:"Blog",previewUrl:"https://demo.ghost.io/",ref:"default",image:"assets/img/themes/Casper-9a0ce71df3a1c589c1414ad2aa5b8aeb.png"},{name:"Headline",category:"News",url:"https://github.com/TryGhost/Headline",previewUrl:"https://headline.ghost.io",ref:"TryGhost/Headline",image:"assets/img/themes/Headline-f70eaf49b9fcae1ddfe3d4496d8be54d.png"},{name:"Edition",category:"Newsletter",url:"https://github.com/TryGhost/Edition",previewUrl:"https://edition.ghost.io/",ref:"TryGhost/Edition",image:"assets/img/themes/Edition-10111a2b8458168dcff81b7fb151be70.png"},{name:"Solo",category:"Blog",url:"https://github.com/TryGhost/Solo",previewUrl:"https://solo.ghost.io",ref:"TryGhost/Solo",image:"assets/img/themes/Solo-0292eb9ae0ca7b578cff50824d40cc86.png"},{name:"Taste",category:"Blog",url:"https://github.com/TryGhost/Taste",previewUrl:"https://taste.ghost.io",ref:"TryGhost/Taste",image:"assets/img/themes/Taste-a24d2a786900d9caff7e773ca0040991.png"},{name:"Episode",category:"Podcast",url:"https://github.com/TryGhost/Episode",previewUrl:"https://episode.ghost.io",ref:"TryGhost/Episode",image:"assets/img/themes/Episode-e4c86d1f75ef1d8a77791d7fd519fdd4.png"},{name:"Digest",category:"Newsletter",url:"https://github.com/TryGhost/Digest",previewUrl:"https://digest.ghost.io/",ref:"TryGhost/Digest",image:"assets/img/themes/Digest-698e78d8e8481daff8ae4a8647528dc9.png"},{name:"Bulletin",category:"Newsletter",url:"https://github.com/TryGhost/Bulletin",previewUrl:"https://bulletin.ghost.io/",ref:"TryGhost/Bulletin",image:"assets/img/themes/Bulletin-d66dec818ad0ba2965dd7eb3130c621c.png"},{name:"Alto",category:"Blog",url:"https://github.com/TryGhost/Alto",previewUrl:"https://alto.ghost.io",ref:"TryGhost/Alto",image:"assets/img/themes/Alto-0dfe76694ed222d6d96fc9c8db979a38.png"},{name:"Dope",category:"Magazine",url:"https://github.com/TryGhost/Dope",previewUrl:"https://dope.ghost.io",ref:"TryGhost/Dope",image:"assets/img/themes/Dope-d099dfca697adae16baa76f89520c5b3.png"},{name:"Wave",category:"Podcast",url:"https://github.com/TryGhost/Wave",previewUrl:"https://wave.ghost.io",ref:"TryGhost/Wave",image:"assets/img/themes/Wave-b98fadfd3ed16e8b2e383dd8e8e5dca2.png"},{name:"Edge",category:"Photography",url:"https://github.com/TryGhost/Edge",previewUrl:"https://edge.ghost.io",ref:"TryGhost/Edge",image:"assets/img/themes/Edge-1e5e0eec6941d7bdca02cebb66187357.png"},{name:"Dawn",category:"Newsletter",url:"https://github.com/TryGhost/Dawn",previewUrl:"https://dawn.ghost.io/",ref:"TryGhost/Dawn",image:"assets/img/themes/Dawn-302fbfdbc352098a256137159bd83dd8.png"},{name:"Ease",category:"Documentation",url:"https://github.com/TryGhost/Ease",previewUrl:"https://ease.ghost.io",ref:"TryGhost/Ease",image:"assets/img/themes/Ease-7075f809892f10c58892e15a57a4aae4.png"},{name:"Ruby",category:"Magazine",url:"https://github.com/TryGhost/Ruby",previewUrl:"https://ruby.ghost.io",ref:"TryGhost/Ruby",image:"assets/img/themes/Ruby-b896885448e0f28ca62c6dcd56c732aa.png"},{name:"London",category:"Photography",url:"https://github.com/TryGhost/London",previewUrl:"https://london.ghost.io",ref:"TryGhost/London",image:"assets/img/themes/London-4e042390da16fecef947f3a7001d03db.png"},{name:"Journal",category:"Newsletter",url:"https://github.com/TryGhost/Journal",previewUrl:"https://journal.ghost.io/",ref:"TryGhost/Journal",image:"assets/img/themes/Journal-07d35b2311501d2738bad1907ba2f7e1.png"}])}get themesList(){const e=this.themes.findBy("active",!0)
|
|
2854
2857
|
let t=this.officialThemes.map((t=>{const i=Object.assign({},t)
|
|
2855
2858
|
return"default"===t.ref&&(i.isDefault=!0),void 0!==e&&t.name.toLowerCase()===e.name&&(i.isActive=!0),i}))
|
|
2856
2859
|
t.sort(((e,t)=>t.isDefault?1:0))
|
|
@@ -2939,11 +2942,11 @@ function a(e,t,i,n,r){var a={}
|
|
|
2939
2942
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2940
2943
|
let s=(t=Ember.inject.service,i=Ember._action,n=class extends Ember.Controller{constructor(){var e,t,i,n
|
|
2941
2944
|
super(...arguments),e=this,t="router",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}close(){this.router.transitionTo("settings.labs")}},r=a(n.prototype,"router",[t],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a(n.prototype,"close",[i],Object.getOwnPropertyDescriptor(n.prototype,"close"),n.prototype),n)
|
|
2942
|
-
e.default=s})),define("ghost-admin/controllers/settings/membership",["exports","ghost-admin/components/modals/confirm-unsaved-changes","ghost-admin/config/environment","ghost-admin/utils/currency","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r,a){var s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
2945
|
+
e.default=s})),define("ghost-admin/controllers/settings/membership",["exports","ghost-admin/components/modals/confirm-unsaved-changes","ghost-admin/config/environment","ghost-admin/utils/currency","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r,a){var s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue,de,ce,pe,me,he,be,ge,fe,ve,ye
|
|
2943
2946
|
function we(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function ke(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ee(e,t,i,n,r){var a={}
|
|
2944
2947
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2945
2948
|
const Oe=n.currencies.map((e=>({value:e.isoCode.toLowerCase(),label:`${e.isoCode} - ${e.name}`,isoCode:e.isoCode})))
|
|
2946
|
-
let Pe=(s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,d=Ember.inject.service,c=Ember.inject.service,p=Ember._tracked,m=Ember._tracked,h=Ember._tracked,b=Ember._tracked,g=Ember._tracked,f=Ember._tracked,v=Ember._tracked,y=Ember._tracked,w=Ember._tracked,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=Ember._tracked,j=Ember._tracked,T=Ember._action,z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=(0,a.task)({drop:!0}),K=(0,a.task)({drop:!0}),
|
|
2949
|
+
let Pe=(s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,d=Ember.inject.service,c=Ember.inject.service,p=Ember._tracked,m=Ember._tracked,h=Ember._tracked,b=Ember._tracked,g=Ember._tracked,f=Ember._tracked,v=Ember._tracked,y=Ember._tracked,w=Ember._tracked,k=Ember._tracked,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=Ember._tracked,j=Ember._tracked,T=Ember._action,z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=Ember._action,q=Ember._action,$=Ember._action,Y=Ember._action,W=Ember._action,G=(0,a.task)({drop:!0}),K=(0,a.task)({drop:!0}),Z=Ember._action,J=class extends Ember.Controller{constructor(){super(...arguments),we(this,"feature",X,this),we(this,"membersUtils",Q,this),we(this,"modals",ee,this),we(this,"settings",te,this),we(this,"store",ie,this),we(this,"session",ne,this),we(this,"config",re,this),we(this,"showPortalSettings",ae,this),we(this,"showStripeConnect",se,this),we(this,"showTierModal",oe,this),we(this,"tier",le,this),we(this,"tiers",ue,this),we(this,"tierModel",de,this),we(this,"paidSignupRedirect",ce,this),we(this,"freeSignupRedirect",pe,this),we(this,"welcomePageURL",me,this),we(this,"stripeMonthlyAmount",he,this),we(this,"stripeYearlyAmount",be,this),we(this,"currency",ge,this),we(this,"stripePlanError",fe,this),we(this,"portalPreviewUrl",ve,this),ke(this,"portalPreviewGuid",Date.now().valueOf()),ke(this,"queryParams",["showPortalSettings","verifyEmail"]),we(this,"verifyEmail",ye,this)}get freeTier(){return this.tiers?.find((e=>"free"===e.type))}get paidTiers(){return this.tiers?.filter((e=>"paid"===e.type))}get allCurrencies(){return(0,n.getCurrencyOptions)()}get siteUrl(){return this.config.blogUrl}get selectedCurrency(){return Oe.findBy("value",this.currency)}get isConnectDisallowed(){const e=this.config.blogUrl
|
|
2947
2950
|
return"development"!==i.default.environment&&!/^https:/.test(e)}get hasChangedPrices(){if(this.tier){const e=this.tier.get("monthlyPrice"),t=this.tier.get("yearlyPrice")
|
|
2948
2951
|
if(e?.amount&&parseFloat(this.stripeMonthlyAmount)!==e.amount/100)return!0
|
|
2949
2952
|
if(t?.amount&&parseFloat(this.stripeYearlyAmount)!==t.amount/100)return!0}return!1}setup(){this.fetchTiers.perform(),this.updatePortalPreview()}get isDirty(){return this.settings.hasDirtyAttributes||this.hasChangedPrices}async membersSubscriptionAccessChanged(){const e=this.settings.changedAttributes().membersSignupAccess?.[0]
|
|
@@ -2970,7 +2973,7 @@ return await this.tier.save()}}reset(){this.settings.rollbackAttributes(),this.r
|
|
|
2970
2973
|
this.stripeMonthlyAmount=e?e.amount/100:5,this.stripeYearlyAmount=t?t.amount/100:50}_validateSignupRedirect(e,t){const i=this.config.blogUrl
|
|
2971
2974
|
if(this.settings.errors.remove(t),this.settings.hasValidated.removeObject(t),null===e)return this.settings.errors.add(t,"Please enter a valid URL"),this.settings.hasValidated.pushObject(t),!1
|
|
2972
2975
|
if(void 0!==e)if(e.href.startsWith(i)){const n=e.href.replace(i,"")
|
|
2973
|
-
this.settings[t]=n}else this.settings[t]=e.href}},X=Ee(
|
|
2976
|
+
this.settings[t]=n}else this.settings[t]=e.href}},X=Ee(J.prototype,"feature",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=Ee(J.prototype,"membersUtils",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=Ee(J.prototype,"modals",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=Ee(J.prototype,"settings",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=Ee(J.prototype,"store",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=Ee(J.prototype,"session",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=Ee(J.prototype,"config",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=Ee(J.prototype,"showPortalSettings",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),se=Ee(J.prototype,"showStripeConnect",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oe=Ee(J.prototype,"showTierModal",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le=Ee(J.prototype,"tier",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=Ee(J.prototype,"tiers",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),de=Ee(J.prototype,"tierModel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce=Ee(J.prototype,"paidSignupRedirect",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Ee(J.prototype,"freeSignupRedirect",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Ee(J.prototype,"welcomePageURL",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Ee(J.prototype,"stripeMonthlyAmount",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),be=Ee(J.prototype,"stripeYearlyAmount",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),ge=Ee(J.prototype,"currency",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"usd"}}),fe=Ee(J.prototype,"stripePlanError",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ve=Ee(J.prototype,"portalPreviewUrl",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ye=Ee(J.prototype,"verifyEmail",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ee(J.prototype,"setup",[T],Object.getOwnPropertyDescriptor(J.prototype,"setup"),J.prototype),Ee(J.prototype,"membersSubscriptionAccessChanged",[z],Object.getOwnPropertyDescriptor(J.prototype,"membersSubscriptionAccessChanged"),J.prototype),Ee(J.prototype,"setStripePlansCurrency",[x],Object.getOwnPropertyDescriptor(J.prototype,"setStripePlansCurrency"),J.prototype),Ee(J.prototype,"setPaidSignupRedirect",[S],Object.getOwnPropertyDescriptor(J.prototype,"setPaidSignupRedirect"),J.prototype),Ee(J.prototype,"setFreeSignupRedirect",[C],Object.getOwnPropertyDescriptor(J.prototype,"setFreeSignupRedirect"),J.prototype),Ee(J.prototype,"setWelcomePageURL",[M],Object.getOwnPropertyDescriptor(J.prototype,"setWelcomePageURL"),J.prototype),Ee(J.prototype,"validatePaidSignupRedirect",[D],Object.getOwnPropertyDescriptor(J.prototype,"validatePaidSignupRedirect"),J.prototype),Ee(J.prototype,"validateFreeSignupRedirect",[A],Object.getOwnPropertyDescriptor(J.prototype,"validateFreeSignupRedirect"),J.prototype),Ee(J.prototype,"validateWelcomePageURL",[I],Object.getOwnPropertyDescriptor(J.prototype,"validateWelcomePageURL"),J.prototype),Ee(J.prototype,"validateStripePlans",[L],Object.getOwnPropertyDescriptor(J.prototype,"validateStripePlans"),J.prototype),Ee(J.prototype,"openStripeConnect",[R],Object.getOwnPropertyDescriptor(J.prototype,"openStripeConnect"),J.prototype),Ee(J.prototype,"closeStripeConnect",[N],Object.getOwnPropertyDescriptor(J.prototype,"closeStripeConnect"),J.prototype),Ee(J.prototype,"openEditTier",[U],Object.getOwnPropertyDescriptor(J.prototype,"openEditTier"),J.prototype),Ee(J.prototype,"openNewTier",[F],Object.getOwnPropertyDescriptor(J.prototype,"openNewTier"),J.prototype),Ee(J.prototype,"closeTierModal",[B],Object.getOwnPropertyDescriptor(J.prototype,"closeTierModal"),J.prototype),Ee(J.prototype,"openPortalSettings",[V],Object.getOwnPropertyDescriptor(J.prototype,"openPortalSettings"),J.prototype),Ee(J.prototype,"closePortalSettings",[H],Object.getOwnPropertyDescriptor(J.prototype,"closePortalSettings"),J.prototype),Ee(J.prototype,"updatePortalPreview",[q],Object.getOwnPropertyDescriptor(J.prototype,"updatePortalPreview"),J.prototype),Ee(J.prototype,"portalPreviewInserted",[$],Object.getOwnPropertyDescriptor(J.prototype,"portalPreviewInserted"),J.prototype),Ee(J.prototype,"portalPreviewDestroyed",[Y],Object.getOwnPropertyDescriptor(J.prototype,"portalPreviewDestroyed"),J.prototype),Ee(J.prototype,"confirmTierSave",[W],Object.getOwnPropertyDescriptor(J.prototype,"confirmTierSave"),J.prototype),Ee(J.prototype,"switchFromNoneTask",[a.task],Object.getOwnPropertyDescriptor(J.prototype,"switchFromNoneTask"),J.prototype),Ee(J.prototype,"fetchTiers",[G],Object.getOwnPropertyDescriptor(J.prototype,"fetchTiers"),J.prototype),Ee(J.prototype,"saveSettingsTask",[K],Object.getOwnPropertyDescriptor(J.prototype,"saveSettingsTask"),J.prototype),Ee(J.prototype,"reset",[Z],Object.getOwnPropertyDescriptor(J.prototype,"reset"),J.prototype),J)
|
|
2974
2977
|
e.default=Pe})),define("ghost-admin/controllers/settings/navigation",["exports","ghost-admin/models/navigation-item","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n){var r,a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_
|
|
2975
2978
|
function j(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function T(e,t,i,n,r){var a={}
|
|
2976
2979
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -2994,10 +2997,10 @@ let r=(t=Ember.inject.service,i=class extends Ember.Controller{constructor(){var
|
|
|
2994
2997
|
super(...arguments),e=this,t="session",r=this,(i=n)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}},a=i.prototype,s="session",o=[t],l={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(l).forEach((function(e){d[e]=l[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=o.slice().reverse().reduce((function(e,t){return t(a,s,e)||e}),d),u&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(u):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(a,s,d),d=null),n=d,i)
|
|
2995
2998
|
var a,s,o,l,u,d
|
|
2996
2999
|
e.default=r}))
|
|
2997
|
-
define("ghost-admin/controllers/settings/staff/user",["exports","ghost-admin/components/settings/staff/modals/delete-user","ghost-admin/components/settings/staff/modals/regenerate-staff-token","ghost-admin/components/settings/staff/modals/select-role","ghost-admin/components/settings/staff/modals/suspend-user","ghost-admin/components/settings/staff/modals/transfer-ownership","ghost-admin/components/settings/staff/modals/unsuspend-user","ghost-admin/components/settings/staff/modals/upload-image","ghost-admin/utils/copy-text-to-clipboard","ghost-admin/utils/isNumber","ghost-admin/utils/window-proxy","tracked-built-ins","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l,u,d,c,p,m){var h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,J,
|
|
3000
|
+
define("ghost-admin/controllers/settings/staff/user",["exports","ghost-admin/components/settings/staff/modals/delete-user","ghost-admin/components/settings/staff/modals/regenerate-staff-token","ghost-admin/components/settings/staff/modals/select-role","ghost-admin/components/settings/staff/modals/suspend-user","ghost-admin/components/settings/staff/modals/transfer-ownership","ghost-admin/components/settings/staff/modals/unsuspend-user","ghost-admin/components/settings/staff/modals/upload-image","ghost-admin/utils/copy-text-to-clipboard","ghost-admin/utils/isNumber","ghost-admin/utils/window-proxy","tracked-built-ins","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l,u,d,c,p,m){var h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D,A,I,L,R,N,U,F,B,V,H,q,$,Y,W,G,K,Z,J,X,Q,ee,te,ie,ne,re,ae,se,oe,le,ue
|
|
2998
3001
|
function de(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function ce(e,t,i,n,r){var a={}
|
|
2999
3002
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
3000
|
-
let pe=(h=Ember.inject.service,b=Ember.inject.service,g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember.inject.service,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=Ember._tracked,j=Ember._tracked,T=Ember._action,z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=(0,m.taskGroup)({enqueue:!0}),q=(0,m.task)({group:"saveHandlers"}),$=(0,m.task)({group:"saveHandlers"}),Y=Ember._action,W=Ember._action,G=class extends Ember.Controller{constructor(){super(...arguments),de(this,"ajax",K,this),de(this,"ghostPaths",
|
|
3003
|
+
let pe=(h=Ember.inject.service,b=Ember.inject.service,g=Ember.inject.service,f=Ember.inject.service,v=Ember.inject.service,y=Ember.inject.service,w=Ember.inject.service,k=Ember.inject.service,E=Ember._tracked,O=Ember._tracked,P=Ember._tracked,_=Ember._tracked,j=Ember._tracked,T=Ember._action,z=Ember._action,x=Ember._action,S=Ember._action,C=Ember._action,M=Ember._action,D=Ember._action,A=Ember._action,I=Ember._action,L=Ember._action,R=Ember._action,N=Ember._action,U=Ember._action,F=Ember._action,B=Ember._action,V=Ember._action,H=(0,m.taskGroup)({enqueue:!0}),q=(0,m.task)({group:"saveHandlers"}),$=(0,m.task)({group:"saveHandlers"}),Y=Ember._action,W=Ember._action,G=class extends Ember.Controller{constructor(){super(...arguments),de(this,"ajax",K,this),de(this,"ghostPaths",Z,this),de(this,"membersUtils",J,this),de(this,"modals",X,this),de(this,"notifications",Q,this),de(this,"session",ee,this),de(this,"slugGenerator",te,this),de(this,"utils",ie,this),de(this,"config",ne,this),de(this,"dirtyAttributes",re,this),de(this,"personalToken",ae,this),de(this,"personalTokenRegenerated",se,this),de(this,"scratchValues",oe,this),de(this,"slugValue",le,this),de(this,"saveHandlers",ue,this)}get user(){return this.model}get currentUser(){return this.session.user}get isOwnProfile(){return this.currentUser.id===this.user.id}get isAdminUserOnOwnProfile(){return this.currentUser.isAdminOnly&&this.isOwnProfile}get isAdminUserOnOwnerProfile(){return this.currentUser.isAdminOnly&&this.user.isOwnerOnly}get canChangeEmail(){return!this.isAdminUserOnOwnerProfile}get canChangePassword(){return!this.isAdminUserOnOwnerProfile}get canMakeOwner(){return this.currentUser.isOwnerOnly&&!this.isOwnProfile&&this.user.isAdminOnly&&!this.user.isSuspended}get canToggleMemberAlerts(){return this.currentUser.isOwnerOnly||this.isAdminUserOnOwnProfile}get rolesDropdownIsVisible(){return this.currentUser.isAdmin&&!this.isOwnProfile&&!this.user.isOwnerOnly}get userActionsAreVisible(){return this.deleteUserActionIsVisible||this.canMakeOwner}get deleteUserActionIsVisible(){return!this.isOwnProfile&&!!(this.currentUser.isAdmin&&!this.user.isOwnerOnly||this.currentUser.isEditor&&this.user.isAuthorOrContributor)}setModelProperty(e,t){const i=t.target.value
|
|
3001
3004
|
this.user[e]=i}validateModelProperty(e){this.user.validate({property:e})}clearModelErrors(e){this.user.hasValidated.removeObject(e),this.user.errors.remove(e)}setSlugValue(e){this.slugValue=e.target.value}async deleteUser(){await this.modals.open(t.default,{user:this.model})}async suspendUser(){await this.modals.open(r.default,{user:this.model,saveTask:this.saveTask})}async unsuspendUser(){await this.modals.open(s.default,{user:this.model,saveTask:this.saveTask})}async transferOwnership(){await this.modals.open(a.default,{user:this.model})}async regenerateStaffToken(){const e=await this.modals.open(i.default)
|
|
3002
3005
|
e&&(this.personalToken=e,this.personalTokenRegenerated=!0)}async selectRole(){const e=await this.modals.open(n.default,{currentRole:this.model.role})
|
|
3003
3006
|
e&&(this.user.role=e,this.dirtyAttributes=!0)}async changeCoverImage(){await this.modals.open(o.default,{model:this.model,modelProperty:"coverImage"})}async changeProfileImage(){await this.modals.open(o.default,{model:this.model,modelProperty:"profileImage"})}setScratchValue(e,t){this.scratchValues[e]=t}reset(){this.user.rollbackAttributes(),this.user.password="",this.user.newPassword="",this.user.ne2Password="",this.slugValue=this.user.slug,this.dirtyAttributes=!1,this.clearScratchValues()}toggleCommentNotifications(e){this.user.commentNotifications=e.target.checked}toggleMemberEmailAlerts(e,t){"free-signup"===e?this.user.freeMemberSignupNotification=t.target.checked:"paid-started"===e?this.user.paidSubscriptionStartedNotification=t.target.checked:"paid-canceled"===e&&(this.user.paidSubscriptionCanceledNotification=t.target.checked)}*updateSlugTask(e){let t=e.target.value,i=this.user.slug
|
|
@@ -3009,7 +3012,7 @@ return(0,u.default)(a)&&a>0&&i===r.join("-")&&n!==t?(this.slugValue=i,!0):(this.
|
|
|
3009
3012
|
t.slug!==i&&(e=!0,t.slug=i)
|
|
3010
3013
|
try{if(t=yield t.save(),this.clearScratchValues(),e){let e=window.location.hash.split("/")
|
|
3011
3014
|
e[e.length-1]=t.get("slug"),e=e.join("/"),d.default.replaceState({path:e},"",e)}return this.dirtyAttributes=!1,this.notifications.closeAlerts("user.update"),t}catch(n){n&&this.notifications.showAPIError(n,{key:"user.update"})}}*saveNewPasswordTask(){yield this.user.saveNewPasswordTask.perform(),document.querySelector("#password-reset")?.reset()}submitPasswordForm(e){e.preventDefault(),this._blurAndTrigger((()=>this.saveNewPasswordTask.perform()))}saveViaKeyboard(e){e.preventDefault(),this._blurAndTrigger((()=>this.saveTask.perform()))}*copyContentKeyTask(){(0,l.default)(this.personalToken),yield(0,m.timeout)(this.isTesting?50:3e3)}clearScratchValues(){this.scratchValues=new c.TrackedObject}_blurAndTrigger(e){const t=document.activeElement
|
|
3012
|
-
t?.blur(),Ember.run.schedule("actions",this,(function(){t?.focus(),e()}))}},K=ce(G.prototype,"ajax",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),
|
|
3015
|
+
t?.blur(),Ember.run.schedule("actions",this,(function(){t?.focus(),e()}))}},K=ce(G.prototype,"ajax",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=ce(G.prototype,"ghostPaths",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=ce(G.prototype,"membersUtils",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=ce(G.prototype,"modals",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=ce(G.prototype,"notifications",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=ce(G.prototype,"session",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=ce(G.prototype,"slugGenerator",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=ce(G.prototype,"utils",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=ce(G.prototype,"config",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=ce(G.prototype,"dirtyAttributes",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae=ce(G.prototype,"personalToken",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),se=ce(G.prototype,"personalTokenRegenerated",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oe=ce(G.prototype,"scratchValues",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new c.TrackedObject}}),le=ce(G.prototype,"slugValue",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ce(G.prototype,"setModelProperty",[T],Object.getOwnPropertyDescriptor(G.prototype,"setModelProperty"),G.prototype),ce(G.prototype,"validateModelProperty",[z],Object.getOwnPropertyDescriptor(G.prototype,"validateModelProperty"),G.prototype),ce(G.prototype,"clearModelErrors",[x],Object.getOwnPropertyDescriptor(G.prototype,"clearModelErrors"),G.prototype),ce(G.prototype,"setSlugValue",[S],Object.getOwnPropertyDescriptor(G.prototype,"setSlugValue"),G.prototype),ce(G.prototype,"deleteUser",[C],Object.getOwnPropertyDescriptor(G.prototype,"deleteUser"),G.prototype),ce(G.prototype,"suspendUser",[M],Object.getOwnPropertyDescriptor(G.prototype,"suspendUser"),G.prototype),ce(G.prototype,"unsuspendUser",[D],Object.getOwnPropertyDescriptor(G.prototype,"unsuspendUser"),G.prototype),ce(G.prototype,"transferOwnership",[A],Object.getOwnPropertyDescriptor(G.prototype,"transferOwnership"),G.prototype),ce(G.prototype,"regenerateStaffToken",[I],Object.getOwnPropertyDescriptor(G.prototype,"regenerateStaffToken"),G.prototype),ce(G.prototype,"selectRole",[L],Object.getOwnPropertyDescriptor(G.prototype,"selectRole"),G.prototype),ce(G.prototype,"changeCoverImage",[R],Object.getOwnPropertyDescriptor(G.prototype,"changeCoverImage"),G.prototype),ce(G.prototype,"changeProfileImage",[N],Object.getOwnPropertyDescriptor(G.prototype,"changeProfileImage"),G.prototype),ce(G.prototype,"setScratchValue",[U],Object.getOwnPropertyDescriptor(G.prototype,"setScratchValue"),G.prototype),ce(G.prototype,"reset",[F],Object.getOwnPropertyDescriptor(G.prototype,"reset"),G.prototype),ce(G.prototype,"toggleCommentNotifications",[B],Object.getOwnPropertyDescriptor(G.prototype,"toggleCommentNotifications"),G.prototype),ce(G.prototype,"toggleMemberEmailAlerts",[V],Object.getOwnPropertyDescriptor(G.prototype,"toggleMemberEmailAlerts"),G.prototype),ue=ce(G.prototype,"saveHandlers",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce(G.prototype,"updateSlugTask",[q],Object.getOwnPropertyDescriptor(G.prototype,"updateSlugTask"),G.prototype),ce(G.prototype,"saveTask",[$],Object.getOwnPropertyDescriptor(G.prototype,"saveTask"),G.prototype),ce(G.prototype,"saveNewPasswordTask",[m.task],Object.getOwnPropertyDescriptor(G.prototype,"saveNewPasswordTask"),G.prototype),ce(G.prototype,"submitPasswordForm",[Y],Object.getOwnPropertyDescriptor(G.prototype,"submitPasswordForm"),G.prototype),ce(G.prototype,"saveViaKeyboard",[W],Object.getOwnPropertyDescriptor(G.prototype,"saveViaKeyboard"),G.prototype),ce(G.prototype,"copyContentKeyTask",[m.task],Object.getOwnPropertyDescriptor(G.prototype,"copyContentKeyTask"),G.prototype),G)
|
|
3013
3016
|
e.default=pe})),define("ghost-admin/controllers/settings/tier",["exports","ghost-admin/decorators/inject","ember-concurrency"],(function(e,t,i){var n,r,a,s,o,l,u,d,c,p,m,h,b,g,f,v,y,w,k,E,O,P,_,j,T,z,x,S,C,M,D
|
|
3014
3017
|
function A(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function I(e,t,i,n,r){var a={}
|
|
3015
3018
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -3703,10 +3706,10 @@ let r=(i=Ember._action,n=class extends t.default{modify(e){e.addEventListener("c
|
|
|
3703
3706
|
var a,s,o,l,u,d
|
|
3704
3707
|
e.default=r})),define("ghost-admin/modifiers/style",["exports","ember-style-modifier/modifiers/style"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ghost-admin/modifiers/validation-status",["exports","ember-modifier"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
3705
3708
|
const i="error",n="success"
|
|
3706
|
-
class r extends t.default{modify(e,t,r){let{errors:a,property:s,hasValidated:o}=r
|
|
3707
|
-
const
|
|
3708
|
-
|
|
3709
|
-
|
|
3709
|
+
class r extends t.default{modify(e,t,r){let{errors:a,property:s,hasValidated:o,errorClass:l=i,successClass:u=n}=r
|
|
3710
|
+
const d=this.hasError(a,s,o)
|
|
3711
|
+
let c=""
|
|
3712
|
+
s&&!o?.includes(s)||(c=d?l:u),e.classList.remove(l),e.classList.remove(u),c&&e.classList.add(c)}hasError(e,t,i){return!(t||!e||e.get("isEmpty"))||!(!i||!i.includes(t))&&!(!e||Ember.isEmpty(e.errorsFor(t)))}}e.default=r})),define("ghost-admin/modifiers/will-destroy",["exports","@ember/render-modifiers/modifiers/will-destroy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ghost-admin/router",["exports","ghost-admin/config/environment","ghost-admin/utils/ghost-paths"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
3710
3713
|
const n=Ember.Router.extend({location:t.default.locationType,rootURL:(0,i.default)().adminRoot})
|
|
3711
3714
|
n.map((function(){this.route("home",{path:"/"}),this.route("setup"),this.route("setup.done",{path:"/setup/done"}),this.route("signin"),this.route("signout"),this.route("signup",{path:"/signup/:token"}),this.route("reset",{path:"/reset/:token"}),this.route("whatsnew"),this.route("site"),this.route("dashboard"),this.route("launch"),this.route("pro",(function(){this.route("pro-sub",{path:"/*sub"})})),this.route("posts"),this.route("posts.analytics",{path:"/posts/analytics/:post_id"}),this.route("posts.debug",{path:"/posts/analytics/:post_id/debug"}),this.route("pages"),this.route("editor",(function(){this.route("new",{path:":type"}),this.route("edit",{path:":type/:post_id"})})),this.route("lexical-editor",(function(){this.route("new",{path:":type"}),this.route("edit",{path:":type/:post_id"})})),this.route("lexicalsandbox"),this.route("tags"),this.route("tag.new",{path:"/tags/new"}),this.route("tag",{path:"/tags/:tag_slug"}),this.route("settings"),this.route("settings.general",{path:"/settings/general"}),this.route("settings.membership",{path:"/settings/members"}),this.route("settings.code-injection",{path:"/settings/code-injection"}),this.route("settings.history",{path:"/settings/history"}),this.route("settings.analytics",{path:"/settings/analytics"}),this.route("settings.members-email",{path:"/settings/members-email"}),this.route("settings.newsletters",{path:"/settings/newsletters"},(function(){this.route("new-newsletter",{path:"new"}),this.route("edit-newsletter",{path:":newsletter_id"})}))
|
|
3712
3715
|
this.route("settings.design",{path:"/settings/design"},(function(){this.route("change-theme",(function(){this.route("view",{path:":theme_name"}),this.route("install")})),this.route("no-theme")})),this.route("settings.theme-install",{path:"/settings/theme/install"}),this.route("settings.staff",{path:"/settings/staff"},(function(){this.route("user",{path:":user_slug"})})),this.route("explore",(function(){this.route("connect"),this.route("explore-sub",{path:"/*sub"},(function(){this.route("explore-query",{path:"/*query"})}))})),this.route("settings.integrations",{path:"/settings/integrations"},(function(){this.route("new")})),this.route("settings.integration",{path:"/settings/integrations/:integration_id"},(function(){this.route("webhooks.new",{path:"webhooks/new"}),this.route("webhooks.edit",{path:"webhooks/:webhook_id"})})),this.route("settings.integrations.slack",{path:"/settings/integrations/slack"}),this.route("settings.integrations.amp",{path:"/settings/integrations/amp"}),this.route("settings.integrations.firstpromoter",{path:"/settings/integrations/firstpromoter"}),this.route("settings.integrations.unsplash",{path:"/settings/integrations/unsplash"}),this.route("settings.integrations.zapier",{path:"/settings/integrations/zapier"}),this.route("settings.navigation",{path:"/settings/navigation"}),this.route("settings.labs",{path:"/settings/labs"},(function(){this.route("import")})),this.route("members",(function(){this.route("import")})),this.route("member.new",{path:"/members/new"}),this.route("member",{path:"/members/:member_id"}),this.route("members-activity"),this.route("offers"),this.route("offer.new",{path:"/offers/new"}),this.route("offer",{path:"/offers/:offer_id"}),this.route("error404",{path:"/*path"}),this.route("designsandbox")}))
|
|
@@ -4685,7 +4688,7 @@ var t=Ember.HTMLBars.template({id:"s/vE59zL",block:'{"symbols":["member","column
|
|
|
4685
4688
|
e.default=t})),define("ghost-admin/templates/members/import",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
4686
4689
|
var t=Ember.HTMLBars.template({id:"oWi45bKX",block:'{"symbols":[],"statements":[[8,"gh-fullscreen-modal",[],[["@modal","@confirm","@close","@modifier"],["import-members",[32,0,["refreshMembers"]],[32,0,["close"]],"action import-members"]],null],[2,"\\n"]],"hasEval":false,"upvars":[]}',moduleName:"ghost-admin/templates/members/import.hbs"})
|
|
4687
4690
|
e.default=t})),define("ghost-admin/templates/offer",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
4688
|
-
var t=Ember.HTMLBars.template({id:"fncFyYKd",block:'{"symbols":[],"statements":[[11,"section"],[24,0,"gh-canvas gh-offer circle-bg"],[4,[38,7],[[32,0,["setup"]]],null],[12],[2,"\\n "],[8,"gh-canvas-header",[[24,0,"gh-canvas-header"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex flex-column"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-canvas-breadcrumb"],[12],[2,"\\n "],[8,"link-to",[[24,"data-test-link","offers-back"]],[["@route"],["offers"]],[["default"],[{"statements":[[2,"\\n Offers\\n "]],"parameters":[]}]]],[2,"\\n "],[1,[30,[36,6],["arrow-right-small"],null]],[2," "],[1,[30,[36,5],[[32,0,["offer","isNew"]],"New offer","Edit offer"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"h2"],[14,0,"gh-canvas-title"],[14,"data-test-screen-title",""],[12],[2,"\\n"],[6,[37,5],[[32,0,["offer","isNew"]]],null,[["default","else"],[{"statements":[[2," New Offer\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,0,["offer","name"]]],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","status"]],"archived"],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge gh-badge-title"],[12],[2,"Archived"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"section"],[14,0,"view-actions"],[12],[2,"\\n "],[8,"gh-task-button",[],[["@class","@type","@task","@data-test-button"],["gh-btn gh-btn-primary gh-btn-icon","button",[32,0,["saveTask"]],"save"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"section"],[14,0,"view-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-layout content-preview"],[12],[2,"\\n "],[10,"form"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section gh-offer-form"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block no-margin"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Basic"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[8,"gh-form-group",[[24,0,"no-margin"]],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"name",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","name"],[14,0,"fw6"],[12],[2,"Name"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","offer-name"]],[["@name","@placeholder","@id","@value","@input","@class"],["name","Black Friday","name",[32,0,["offer","name"]],[32,0,["setOfferName"]],"gh-input"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"name"]],null],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"Visible to members on Stripe Checkout page."],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header gh-main-section-header-with-info small bn"],[12],[2,"\\n "],[10,"span"],[12],[2,"Discount information"],[13],[2,"\\n "],[10,"span"],[14,0,"midgrey gh-main-section-header-info tooltip-left"],[14,"data-tooltip","Once saved, this cannot be changed"],[12],[1,[30,[36,6],["info"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[8,"gh-form-group",[],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6"],[12],[2,"Offer type"],[13],[2,"\\n "],[10,"div"],[15,0,[31,["gh-offer-type-container ",[30,[36,5],[[32,0,["isDiscountSectionDisabled"]],"disabled"],null]]]],[12],[2,"\\n "],[11,"button"],[16,0,[31,["gh-radio ",[30,[36,5],[[32,0,["isDiscountOffer"]],"active"],null]]]],[16,"disabled",[32,0,["isDiscountSectionDisabled"]]],[24,4,"button"],[4,[38,0],["click",[30,[36,8],[[32,0,["changeType"]],"discount"],null]],null],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-button"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-label"],[12],[2,"Discount"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-desc"],[12],[2,"Offer a special reduced price."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[11,"button"],[16,0,[31,["gh-radio ",[30,[36,5],[[32,0,["isTrialOffer"]],"active"],null]]]],[16,"disabled",[32,0,["isDiscountSectionDisabled"]]],[24,4,"button"],[4,[38,0],["click",[30,[36,8],[[32,0,["changeType"]],"trial"],null]],null],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-button"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-label"],[12],[2,"Free trial"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-desc"],[12],[2,"Give free access for a limited time."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,5],[[32,0,["isTrialOffer"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-offer-tier-and-trial"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","product-cadence"],[14,0,"fw6"],[12],[2,"Tier – cadence"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-select gh-select-product-cadence"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@optionLabelPath","@optionTargetPath","@title","@disabled","@update"],[[32,0,["cadence"]],[32,0,["cadences"]],"name","label","name",[31,[[32,0,["offer","tier","name"]]," - ",[30,[36,5],[[30,[36,4],[[32,0,["offer","cadence"]],"month"],null],"Monthly","Yearly"],null]]],[32,0,["isDiscountSectionDisabled"]],[32,0,["updateCadence"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-offer-trial-duration"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["offer","errors"]],"trialDuration"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","trial-duration"],[14,0,"fw6"],[12],[2,"Trial duration"],[13],[2,"\\n "],[10,"div"],[14,0,"trial-duration"],[12],[2,"\\n "],[8,"gh-text-input",[[4,[38,0],["input",[32,0,["setTrialDuration"]]],null]],[["@name","@type","@placeholder","@disabled","@value","@id","@class"],["trial-duration","number","",[32,0,["isDiscountSectionDisabled"]],[30,[36,2],[[32,0,["offer","amount"]]],null],"trial-duration","gh-input"]],null],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"amount"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"gh-offer-trial-info"],[12],[2,"Members will be subscribed at full price once the trial ends. "],[10,"a"],[14,0,"green"],[14,6,"https://ghost.org/help/free-trials"],[12],[2,"Learn more"],[13],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"gh-offer-tier-and-trial"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","product-cadence"],[14,0,"fw6"],[12],[2,"Tier – cadence"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-select gh-select-product-cadence"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@optionLabelPath","@optionTargetPath","@title","@disabled","@update"],[[32,0,["cadence"]],[32,0,["cadences"]],"name","label","name",[31,[[32,0,["offer","tier","name"]]," - ",[30,[36,5],[[30,[36,4],[[32,0,["offer","cadence"]],"month"],null],"Monthly","Yearly"],null]]],[32,0,["isDiscountSectionDisabled"]],[32,0,["updateCadence"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-offer-discount"],[12],[2,"\\n "],[10,"label"],[14,"for","amount"],[14,0,"fw6 mb1"],[12],[2,"Amount off"],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"amount",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"gh-offer-value percentage"],[12],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","type"]],"fixed"],null]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-text-input",[],[["@name","@type","@placeholder","@disabled","@value","@input","@id","@class"],["amount","number","",[32,0,["isDiscountSectionDisabled"]],[30,[36,2],[[30,[36,3],[[32,0,["offer","amount"]]],null]],null],[32,0,["setDiscountAmount"]],"amount","gh-input"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"gh-text-input",[],[["@name","@type","@placeholder","@disabled","@value","@input","@id","@class"],["amount","number","",[32,0,["isDiscountSectionDisabled"]],[30,[36,2],[[32,0,["offer","amount"]]],null],[32,0,["setDiscountAmount"]],"amount","gh-input"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"amount"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-offer-type"],[12],[2,"\\n "],[8,"gh-form-group",[[24,0,"no-margin"]],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"type",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-select"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@disabled","@optionLabelPath","@optionTargetPath","@update"],[[32,0,["offer","type"]],[32,0,["offertypes"]],"offertype",[32,0,["isDiscountSectionDisabled"]],"label","offertype",[32,0,["setDiscountType"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"type"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-offer-duration"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["errors"]],"duration"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","product-cadence"],[14,0,"fw6"],[12],[2,"Duration"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-select"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@disabled","@optionLabelPath","@optionTargetPath","@update"],[[32,0,["offer","duration"]],[32,0,["durations"]],"duration",[32,0,["isDiscountSectionDisabled"]],"label","duration",[32,0,["updateDuration"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"duration"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","duration"]],"repeating"],null]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["offer","errors"]],"durationInMonths"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","duration-months"],[14,0,"fw6"],[12],[2,"Number of months"],[13],[2,"\\n "],[10,"div"],[14,0,"duration-months"],[12],[2,"\\n "],[8,"gh-text-input",[],[["@name","@value","@input","@disabled","@id","@class"],["duration-months",[30,[36,2],[[32,0,["offer","durationInMonths"]]],null],[32,0,["setDurationInMonths"]],[32,0,["isDiscountSectionDisabled"]],"duration-months","gh-input"]],null],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"durationInMonths"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Portal settings"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"div"],[14,0,"form-col2 gh-offer-title-and-code"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"displayTitle",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","display-title"],[14,0,"fw6"],[12],[2,"Display title"],[13],[2,"\\n "],[8,"gh-text-input",[],[["@name","@value","@input","@placeholder","@id","@class"],["display-title",[30,[36,2],[[32,0,["offer","displayTitle"]]],null],[32,0,["setPortalTitle"]],"Black Friday Special","display-title","gh-input"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"displayTitle"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"code",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","code"],[14,0,"fw6"],[12],[2,"Offer code"],[13],[2,"\\n "],[8,"gh-text-input",[],[["@name","@placeholder","@value","@input","@id","@class"],["code","black-friday",[30,[36,2],[[32,0,["offer","code"]]],null],[32,0,["setOfferCode"]],"code","gh-input"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"code"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["offer","errors"]],"displayDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","description"],[14,0,"fw6"],[12],[2,"Display description"],[13],[2,"\\n "],[8,"gh-textarea",[],[["@id","@name","@placeholder","@value","@input","@stopEnterKeyDownPropagation"],["description","description","Take advantage of this limited-time offer.",[30,[36,2],[[32,0,["offer","displayDescription"]]],null],[32,0,["setPortalDescription"]],"true"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"displayDescription"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-form-group",[[24,0,"gh-offer-url no-margin"]],[["@errors","@property"],[[32,0,["errors"]],"url"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","url"],[14,0,"fw6"],[12],[2,"URL"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-input-group"],[12],[2,"\\n "],[8,"gh-text-input",[],[["@name","@value","@id","@disabled","@placeholder","@class"],["url",[30,[36,2],[[32,0,["offerUrl"]]],null],"url","disabled",[32,0,["defaultSiteUrl"]],"gh-input"]],null],[2,"\\n\\n "],[8,"gh-task-button",[],[["@type","@buttonText","@task","@successText","@class"],["button","Copy link",[32,0,["copyOfferUrl"]],"Link copied","gh-btn gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"url"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-offer-portal-preview"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-setting-members-portalpreview"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-setting-members-portal-mock"],[12],[2,"\\n "],[8,"gh-site-iframe",[[24,"scrolling","no"]],[["@src","@invisibleUntilLoaded","@onInserted","@onDestroyed"],[[32,0,["portalPreviewUrl"]],"portal-ready",[32,0,["portalPreviewInserted"]],[32,0,["portalPreviewDestroyed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-main-section"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block gh-offer-archive-container"],[12],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","status"]],"active"],null]],null,[["default","else"],[{"statements":[[6,[37,1],[[32,0,["offer","isNew"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-black gh-btn-icon"],[24,4,"button"],[4,[38,0],["click",[32,0,["openConfirmArchiveModal"]]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Archive offer"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"span"],[12],[2,"Archiving an offer ensures it is no longer available for use. Don’t worry, existing members remain unchanged and the offer can be reactivated anytime."],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-black gh-btn-icon"],[24,4,"button"],[4,[38,0],["click",[32,0,["openConfirmUnarchiveModal"]]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Reactivate offer"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["on","unless","readonly","gh-price-amount","eq","if","svg-jar","did-insert","fn"]}',moduleName:"ghost-admin/templates/offer.hbs"})
|
|
4691
|
+
var t=Ember.HTMLBars.template({id:"z+pYQ2of",block:'{"symbols":[],"statements":[[11,"section"],[24,0,"gh-canvas gh-offer circle-bg"],[4,[38,7],[[32,0,["setup"]]],null],[12],[2,"\\n "],[8,"gh-canvas-header",[[24,0,"gh-canvas-header"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex flex-column"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-canvas-breadcrumb"],[12],[2,"\\n "],[8,"link-to",[[24,"data-test-link","offers-back"]],[["@route"],["offers"]],[["default"],[{"statements":[[2,"\\n Offers\\n "]],"parameters":[]}]]],[2,"\\n "],[1,[30,[36,6],["arrow-right-small"],null]],[2," "],[1,[30,[36,5],[[32,0,["offer","isNew"]],"New offer","Edit offer"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"h2"],[14,0,"gh-canvas-title"],[14,"data-test-screen-title",""],[12],[2,"\\n"],[6,[37,5],[[32,0,["offer","isNew"]]],null,[["default","else"],[{"statements":[[2," New Offer\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,0,["offer","name"]]],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","status"]],"archived"],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-badge gh-badge-title"],[12],[2,"Archived"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"section"],[14,0,"view-actions"],[12],[2,"\\n "],[8,"gh-task-button",[],[["@class","@type","@task","@data-test-button"],["gh-btn gh-btn-primary gh-btn-icon","button",[32,0,["saveTask"]],"save"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"section"],[14,0,"view-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-layout content-preview"],[12],[2,"\\n "],[10,"form"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section gh-offer-form"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block no-margin"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Basic"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[8,"gh-form-group",[[24,0,"no-margin"]],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"name",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","name"],[14,0,"fw6"],[12],[2,"Name"],[13],[2,"\\n "],[8,"gh-text-input",[[24,"data-test-input","offer-name"]],[["@name","@placeholder","@id","@value","@input","@class"],["name","Black Friday","name",[32,0,["offer","name"]],[32,0,["setOfferName"]],"gh-input"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"name"]],null],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"Visible to members on Stripe Checkout page."],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header gh-main-section-header-with-info small bn"],[12],[2,"\\n "],[10,"span"],[12],[2,"Discount information"],[13],[2,"\\n "],[10,"span"],[14,0,"midgrey gh-main-section-header-info tooltip-left"],[14,"data-tooltip","Once saved, this cannot be changed"],[12],[1,[30,[36,6],["info"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[8,"gh-form-group",[],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"label"],[14,0,"fw6"],[12],[2,"Offer type"],[13],[2,"\\n "],[10,"div"],[15,0,[31,["gh-offer-type-container ",[30,[36,5],[[32,0,["isDiscountSectionDisabled"]],"disabled"],null]]]],[12],[2,"\\n "],[11,"button"],[16,0,[31,["gh-radio ",[30,[36,5],[[32,0,["isDiscountOffer"]],"active"],null]]]],[16,"disabled",[32,0,["isDiscountSectionDisabled"]]],[24,4,"button"],[4,[38,0],["click",[30,[36,8],[[32,0,["changeType"]],"discount"],null]],null],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-button"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-label"],[12],[2,"Discount"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-desc"],[12],[2,"Offer a special reduced price."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[11,"button"],[16,0,[31,["gh-radio ",[30,[36,5],[[32,0,["isTrialOffer"]],"active"],null]]]],[16,"disabled",[32,0,["isDiscountSectionDisabled"]]],[24,4,"button"],[4,[38,0],["click",[30,[36,8],[[32,0,["changeType"]],"trial"],null]],null],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-button"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-content"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-radio-label"],[12],[2,"Free trial"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-radio-desc"],[12],[2,"Give free access for a limited time."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,5],[[32,0,["isTrialOffer"]]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-offer-tier-and-trial"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","product-cadence"],[14,0,"fw6"],[12],[2,"Tier – cadence"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-select gh-select-product-cadence"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@optionLabelPath","@optionTargetPath","@title","@disabled","@update"],[[32,0,["cadence"]],[32,0,["cadences"]],"name","label","name",[31,[[32,0,["offer","tier","name"]]," - ",[30,[36,5],[[30,[36,4],[[32,0,["offer","cadence"]],"month"],null],"Monthly","Yearly"],null]]],[32,0,["isDiscountSectionDisabled"]],[32,0,["updateCadence"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-offer-trial-duration"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["offer","errors"]],"trialDuration"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","trial-duration"],[14,0,"fw6"],[12],[2,"Trial duration"],[13],[2,"\\n "],[10,"div"],[14,0,"trial-duration"],[12],[2,"\\n "],[8,"gh-text-input",[[4,[38,0],["input",[32,0,["setTrialDuration"]]],null]],[["@name","@type","@placeholder","@disabled","@value","@id","@class"],["trial-duration","number","",[32,0,["isDiscountSectionDisabled"]],[30,[36,2],[[32,0,["offer","amount"]]],null],"trial-duration","gh-input"]],null],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"amount"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"gh-offer-trial-info"],[12],[2,"Members will be subscribed at full price once the trial ends. "],[10,"a"],[14,0,"green"],[14,6,"https://ghost.org/help/free-trials"],[12],[2,"Learn more"],[13],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"gh-offer-tier-and-trial"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","product-cadence"],[14,0,"fw6"],[12],[2,"Tier – cadence"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-select gh-select-product-cadence"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@optionLabelPath","@optionTargetPath","@title","@disabled","@update"],[[32,0,["cadence"]],[32,0,["cadences"]],"name","label","name",[31,[[32,0,["offer","tier","name"]]," - ",[30,[36,5],[[30,[36,4],[[32,0,["offer","cadence"]],"month"],null],"Monthly","Yearly"],null]]],[32,0,["isDiscountSectionDisabled"]],[32,0,["updateCadence"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"product-cadence"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-offer-discount"],[12],[2,"\\n "],[10,"label"],[14,"for","amount"],[14,0,"fw6 mb1"],[12],[2,"Amount off"],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-start"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"amount",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"gh-offer-value percentage"],[12],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","type"]],"fixed"],null]],null,[["default","else"],[{"statements":[[2," "],[8,"gh-text-input",[],[["@name","@type","@placeholder","@disabled","@value","@input","@id","@class"],["amount","number","",[32,0,["isDiscountSectionDisabled"]],[30,[36,2],[[30,[36,3],[[32,0,["offer","amount"]]],null]],null],[32,0,["setDiscountAmount"]],"amount","gh-input"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"gh-text-input",[],[["@name","@type","@placeholder","@disabled","@value","@input","@id","@class"],["amount","number","",[32,0,["isDiscountSectionDisabled"]],[30,[36,2],[[32,0,["offer","amount"]]],null],[32,0,["setDiscountAmount"]],"amount","gh-input"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"amount"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-offer-type"],[12],[2,"\\n "],[8,"gh-form-group",[[24,0,"no-margin"]],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"type",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-select"],[12],[2,"\\n "],[8,"one-way-select",[],[["@value","@options","@optionValuePath","@disabled","@optionLabelPath","@optionTargetPath","@update"],[[32,0,["offer","type"]],[32,0,["offertypes"]],"offertype",[32,0,["isDiscountSectionDisabled"]],"label","offertype",[32,0,["setDiscountType"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"type"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-offer-duration"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["errors"]],"duration"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","product-cadence"],[14,0,"fw6"],[12],[2,"Duration"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-select"],[12],[2,"\\n "],[8,"one-way-select",[],[["@data-test-select","@value","@options","@optionValuePath","@disabled","@optionLabelPath","@optionTargetPath","@update"],["offer-duration",[32,0,["offer","duration"]],[32,0,["durations"]],"duration",[32,0,["isDiscountSectionDisabled"]],"label","duration",[32,0,["updateDuration"]]]],null],[2,"\\n "],[1,[30,[36,6],["arrow-down-small"],null]],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"duration"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","duration"]],"repeating"],null]],null,[["default"],[{"statements":[[2," "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["offer","errors"]],"durationInMonths"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","duration-months"],[14,0,"fw6"],[12],[2,"Number of months"],[13],[2,"\\n "],[10,"div"],[14,0,"duration-months"],[12],[2,"\\n "],[8,"gh-text-input",[],[["@name","@value","@input","@disabled","@id","@class"],["duration-months",[30,[36,2],[[32,0,["offer","durationInMonths"]]],null],[32,0,["setDurationInMonths"]],[32,0,["isDiscountSectionDisabled"]],"duration-months","gh-input"]],null],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"durationInMonths"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Portal settings"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"div"],[14,0,"form-col2 gh-offer-title-and-code"],[12],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"displayTitle",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","display-title"],[14,0,"fw6"],[12],[2,"Display title"],[13],[2,"\\n "],[8,"gh-text-input",[],[["@name","@value","@input","@placeholder","@id","@class"],["display-title",[30,[36,2],[[32,0,["offer","displayTitle"]]],null],[32,0,["setPortalTitle"]],"Black Friday Special","display-title","gh-input"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"displayTitle"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property","@hasValidated"],[[32,0,["offer","errors"]],"code",[32,0,["offer","hasValidated"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","code"],[14,0,"fw6"],[12],[2,"Offer code"],[13],[2,"\\n "],[8,"gh-text-input",[],[["@name","@placeholder","@value","@input","@id","@class"],["code","black-friday",[30,[36,2],[[32,0,["offer","code"]]],null],[32,0,["setOfferCode"]],"code","gh-input"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"code"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@property"],[[32,0,["offer","errors"]],"displayDescription"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","description"],[14,0,"fw6"],[12],[2,"Display description"],[13],[2,"\\n "],[8,"gh-textarea",[],[["@id","@name","@placeholder","@value","@input","@stopEnterKeyDownPropagation"],["description","description","Take advantage of this limited-time offer.",[30,[36,2],[[32,0,["offer","displayDescription"]]],null],[32,0,["setPortalDescription"]],"true"]],null],[2,"\\n "],[10,"span"],[14,0,"error"],[12],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["offer","errors"]],"displayDescription"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-form-group",[[24,0,"gh-offer-url no-margin"]],[["@errors","@property"],[[32,0,["errors"]],"url"]],[["default"],[{"statements":[[2,"\\n "],[10,"label"],[14,"for","url"],[14,0,"fw6"],[12],[2,"URL"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-input-group"],[12],[2,"\\n "],[8,"gh-text-input",[],[["@name","@value","@id","@disabled","@placeholder","@class"],["url",[30,[36,2],[[32,0,["offerUrl"]]],null],"url","disabled",[32,0,["defaultSiteUrl"]],"gh-input"]],null],[2,"\\n\\n "],[8,"gh-task-button",[],[["@type","@buttonText","@task","@successText","@class"],["button","Copy link",[32,0,["copyOfferUrl"]],"Link copied","gh-btn gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n "],[8,"gh-error-message",[],[["@errors","@property"],[[32,0,["errors"]],"url"]],null],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-offer-portal-preview"],[12],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-main-section-header small bn"],[12],[2,"Preview"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-setting-members-portalpreview"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-setting-members-portal-mock"],[12],[2,"\\n "],[8,"gh-site-iframe",[[24,"scrolling","no"]],[["@src","@invisibleUntilLoaded","@onInserted","@onDestroyed"],[[32,0,["portalPreviewUrl"]],"portal-ready",[32,0,["portalPreviewInserted"]],[32,0,["portalPreviewDestroyed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-main-section"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block gh-offer-archive-container"],[12],[2,"\\n"],[6,[37,5],[[30,[36,4],[[32,0,["offer","status"]],"active"],null]],null,[["default","else"],[{"statements":[[6,[37,1],[[32,0,["offer","isNew"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-black gh-btn-icon"],[24,4,"button"],[4,[38,0],["click",[32,0,["openConfirmArchiveModal"]]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Archive offer"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"span"],[12],[2,"Archiving an offer ensures it is no longer available for use. Don’t worry, existing members remain unchanged and the offer can be reactivated anytime."],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-black gh-btn-icon"],[24,4,"button"],[4,[38,0],["click",[32,0,["openConfirmUnarchiveModal"]]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"Reactivate offer"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["on","unless","readonly","gh-price-amount","eq","if","svg-jar","did-insert","fn"]}',moduleName:"ghost-admin/templates/offer.hbs"})
|
|
4689
4692
|
e.default=t})),define("ghost-admin/templates/offers",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
4690
4693
|
var t=Ember.HTMLBars.template({id:"UQh2iVYa",block:'{"symbols":["offer","type"],"statements":[[10,"section"],[14,0,"gh-canvas gh-offers"],[12],[2,"\\n "],[8,"gh-canvas-header",[[24,0,"gh-canvas-header sticky"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"h2"],[14,0,"gh-canvas-title"],[14,"data-test-screen-title",""],[12],[2,"Offers"],[13],[2,"\\n "],[10,"section"],[14,0,"gh-offers-actions view-actions"],[12],[2,"\\n"],[6,[37,3],[[32,0,["membersUtils","hasActiveTiers"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[12],[2,"\\n "],[10,"div"],[15,0,[31,["gh-contentfilter-menu gh-contentfilter-type ",[30,[36,3],[[30,[36,6],[[30,[36,2],[[32,0,["selectedType","value"]],"active"],null]],null],"gh-contentfilter-selected"],null]]]],[14,"data-test-type-select","true"],[12],[2,"\\n "],[8,"power-select",[],[["@selected","@options","@searchEnabled","@onChange","@triggerComponent","@triggerClass","@dropdownClass","@matchTriggerWidth"],[[32,0,["selectedType"]],[32,0,["availableTypes"]],false,[32,0,["onTypeChange"]],[30,[36,13],["gh-power-select/trigger"],null],"gh-contentfilter-menu-trigger","gh-contentfilter-menu-dropdown",false]],[["default"],[{"statements":[[2,"\\n "],[6,[37,3],[[32,2,["name"]]],null,[["default","else"],[{"statements":[[1,[32,2,["name"]]],[2," offers"]],"parameters":[]},{"statements":[[10,"span"],[14,0,"red"],[12],[2,"Unknown type"],[13]],"parameters":[]}]]],[2,"\\n "]],"parameters":[2]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[8,"link-to",[[24,0,"gh-btn gh-btn-primary"]],[["@route"],["offer.new"]],[["default"],[{"statements":[[10,"span"],[12],[2,"New offer"],[13]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"section"],[14,0,"view-container"],[12],[2,"\\n"],[6,[37,3],[[30,[36,6],[[32,0,["membersUtils","hasActiveTiers"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-offers-list-cta missing-tiers"],[12],[2,"\\n "],[1,[30,[36,1],["discount-bubble"],[["class"],["discount-bubble"]]]],[2,"\\n "],[10,"h4"],[12],[2,"You must have an active tier to create offers"],[13],[2,"\\n "],[8,"link-to",[[24,0,"gh-btn gh-btn-green"]],[["@route"],["settings.membership"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"Manage tiers"],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[30,[36,12],[[32,0,["offersExist"]],[32,0,["filteredOffers","length"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"table"],[14,0,"gh-list gh-offers-list"],[12],[2,"\\n "],[10,"tr"],[14,0,"gh-list-row header"],[12],[2,"\\n "],[10,"th"],[14,0,"gh-list-header"],[12],[2,"\\n"],[6,[37,3],[[30,[36,2],[[32,0,["selectedType","value"]],"active"],null]],null,[["default","else"],[{"statements":[[2," "],[1,[30,[36,9],[[32,0,["filteredOffers","length"]],"active offer"],null]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[30,[36,9],[[32,0,["filteredOffers","length"]],"archived offer"],null]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"th"],[14,0,"gh-list-header"],[12],[2,"Tier"],[13],[2,"\\n "],[10,"th"],[14,0,"gh-list-header"],[12],[2,"Terms"],[13],[2,"\\n "],[10,"th"],[14,0,"gh-list-header"],[12],[2,"Price"],[13],[2,"\\n "],[10,"th"],[14,0,"gh-list-header"],[12],[2,"Redemptions"],[13],[2,"\\n "],[10,"th"],[14,0,"gh-list-header gh-list-cellwidth-10"],[12],[13],[2,"\\n "],[13],[2,"\\n"],[6,[37,11],[[30,[36,10],[[30,[36,10],[[32,0,["filteredOffers"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"tr"],[14,0,"gh-list-row"],[14,"data-test-list","offers-list-item"],[12],[2,"\\n "],[8,"link-to",[[24,0,"gh-list-data"],[24,"data-test-list","offer-name"]],[["@route","@model"],["offer",[32,1]]],[["default"],[{"statements":[[2,"\\n "],[10,"h3"],[12],[1,[32,1,["name"]]],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-list-data"]],[["@route","@model"],["offer",[32,1]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[1,[32,1,["tier","name"]]],[13],[2,"\\n "],[10,"span"],[14,0,"midgrey"],[12],[2,"-"],[13],[2,"\\n "],[10,"span"],[14,0,"midgrey"],[12],[1,[30,[36,3],[[30,[36,2],[[32,1,["cadence"]],"month"],null],"Monthly","Yearly"],null]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-list-data"]],[["@route","@model"],["offer",[32,1]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"offer-value"],[12],[2,"\\n"],[6,[37,3],[[30,[36,2],[[32,1,["type"]],"percent"],null]],null,[["default"],[{"statements":[[2," "],[1,[30,[36,1],["offer"],null]],[2,"\\n "],[10,"span"],[14,0,"green fw6"],[12],[1,[32,1,["amount"]]],[2,"% OFF"],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,3],[[30,[36,2],[[32,1,["type"]],"fixed"],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"blue"],[12],[1,[30,[36,1],["offer"],null]],[13],[2,"\\n "],[10,"span"],[14,0,"blue fw6"],[12],[1,[30,[36,5],[[32,1,["amount"]]],null]],[2," "],[10,"span"],[14,0,"ttu"],[12],[1,[32,1,["currency"]]],[13],[2," OFF"],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,3],[[30,[36,2],[[32,1,["type"]],"trial"],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"pink"],[12],[1,[30,[36,1],["offer"],null]],[13],[2,"\\n "],[10,"span"],[14,0,"pink fw6"],[12],[10,"span"],[14,0,"ttu"],[12],[1,[32,1,["amount"]]],[13],[2," DAYS FREE"],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,3],[[30,[36,6],[[30,[36,2],[[32,1,["type"]],"trial"],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"dib ml1 midgrey ttc"],[12],[2," –\\n "],[1,[30,[36,3],[[30,[36,2],[[32,1,["duration"]],"once"],null],"First-payment","Repeating"],null]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-list-data"]],[["@route","@model"],["offer",[32,1]]],[["default"],[{"statements":[[2,"\\n"],[6,[37,3],[[30,[36,2],[[32,1,["type"]],"trial"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"span"],[12],[1,[30,[36,4],[[32,1,["finalCurrency"]]],null]],[1,[30,[36,5],[[32,1,["originalPrice"]]],null]],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[12],[1,[30,[36,4],[[32,1,["finalCurrency"]]],null]],[1,[30,[36,5],[[32,1,["updatedPrice"]]],null]],[13],[2,"\\n "],[10,"span"],[14,0,"midgrey strike ml2"],[12],[1,[30,[36,4],[[32,1,["finalCurrency"]]],null]],[1,[30,[36,5],[[32,1,["originalPrice"]]],null]],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-list-data"]],[["@route","@model"],["offer",[32,1]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"midgrey"],[12],[1,[32,1,["redemptionCount"]]],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[10,"div"],[14,0,"gh-list-data gh-list-cellwidth-10 gh-list-chevron"],[12],[2,"\\n "],[10,"div"],[14,0,"flex items-center justify-end w-100 h-100"],[12],[2,"\\n "],[11,"div"],[24,0,"gh-btn gh-btn-icon gh-btn-text gh-offer-link-button"],[24,"data-tooltip","Get shareable link"],[4,[38,8],["click",[30,[36,7],[[32,0,["openLinkDialog"]],[32,1]],null]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["link"],null]],[13],[2,"\\n "],[13],[2,"\\n "],[8,"link-to",[],[["@route","@model"],["offer",[32,1]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"nr2 lh-1"],[12],[1,[30,[36,1],["arrow-right"],[["class"],["w6 h6 fill-midgrey pa1"]]]],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,3],[[30,[36,2],[[32,0,["selectedType","value"]],"active"],null]],null,[["default","else"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-offers-list-cta"],[12],[2,"\\n "],[1,[30,[36,1],["discount-bubble"],[["class"],["discount-bubble"]]]],[2,"\\n "],[10,"h4"],[12],[2,"Provide special offers to new signups"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Boost your subscriptions by creating targeted discounts to potential members.\\n "],[13],[2,"\\n "],[8,"link-to",[[24,0,"gh-btn gh-btn-green gh-btn-icon"]],[["@route"],["offer.new"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["plus"],null]],[2," Add offer"],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"div"],[14,0,"no-posts-box"],[12],[2,"\\n "],[10,"div"],[14,0,"no-posts"],[12],[2,"\\n "],[10,"h4"],[12],[2,"You have no archived offers."],[13],[2,"\\n "],[8,"link-to",[[24,0,"gh-btn gh-btn-lg"]],[["@route","@query"],["offers",[30,[36,0],null,[["type","author","tag"],[null,null,null]]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[12],[2,"Show active offers"],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[30,[36,2],[[32,0,["selectedType","value"]],"active"],null]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"gh-main-section gh-offers-help"],[12],[2,"\\n "],[10,"h2"],[14,0,"gh-main-section-header small bn"],[12],[2,"Get the most out of offers"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-block"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-main-section-content grey"],[12],[2,"\\n "],[10,"a"],[14,6,"https://ghost.org/help/offers"],[14,"target","_blank"],[14,0,"gh-offers-help-card"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-offers-help-content"],[12],[2,"\\n "],[10,"div"],[14,0,"thumbnail"],[14,5,"background-image: url(assets/img/marketing/offers-1-f2e1b653c4d5bb90eea9d7a2862530f9.jpg);"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"text"],[12],[2,"\\n "],[10,"h3"],[12],[2,"How to create offers in Ghost"],[13],[2,"\\n "],[10,"p"],[12],[2,"Find out how to create and promote offers to increase your subscriptions."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-btn"],[12],[10,"span"],[12],[2,"Read more"],[13],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"a"],[14,6,"https://ghost.org/resources/proven-discount-strategies"],[14,"target","_blank"],[14,0,"gh-offers-help-card"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-offers-help-content"],[12],[2,"\\n "],[10,"div"],[14,0,"thumbnail"],[14,5,"background-image: url(assets/img/marketing/offers-3-2094c91ab21a16c37fbe6ec16c140160.jpg);"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"text"],[12],[2,"\\n "],[10,"h3"],[12],[2,"Proven discount strategies for publishers"],[13],[2,"\\n "],[10,"p"],[12],[2,"Setting up the right timing for your offers is as critical as finding the right amount."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-btn"],[12],[10,"span"],[12],[2,"Read more"],[13],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"a"],[14,6,"https://ghost.org/resources/conversion-vs-retention-offers"],[14,"target","_blank"],[14,0,"gh-offers-help-card"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-offers-help-content"],[12],[2,"\\n "],[10,"div"],[14,0,"thumbnail"],[14,5,"background-image: url(assets/img/marketing/offers-2-28a225d34cc39d133748431536961d00.jpg)"],[12],[13],[2,"\\n "],[10,"div"],[14,0,"text"],[12],[2,"\\n "],[10,"h3"],[12],[2,"Offer pricing: Conversion vs retention"],[13],[2,"\\n "],[10,"p"],[12],[2,"As your business evolves, your discount strategy should too."],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"gh-btn"],[12],[10,"span"],[12],[2,"Read more"],[13],[13],[2,"\\n "],[13],[2,"\\n\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["hash","svg-jar","eq","if","currency-symbol","gh-price-amount","not","fn","on","gh-pluralize","-track-array","each","and","component"]}',moduleName:"ghost-admin/templates/offers.hbs"})
|
|
4691
4694
|
e.default=t})),define("ghost-admin/templates/pages-loading",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -4705,7 +4708,7 @@ var t=Ember.HTMLBars.template({id:"Lp81F1w7",block:'{"symbols":[],"statements":[
|
|
|
4705
4708
|
e.default=t})),define("ghost-admin/templates/reset",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
4706
4709
|
var t=Ember.HTMLBars.template({id:"cWiQ/FSv",block:'{"symbols":[],"statements":[[10,"div"],[14,0,"gh-flow"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-flow-content-wrap"],[12],[2,"\\n "],[10,"section"],[14,0,"gh-flow-content fade-in"],[12],[2,"\\n "],[11,"form"],[24,1,"reset"],[24,0,"gh-signin"],[24,"method","post"],[24,"novalidate","novalidate"],[4,[38,1],["submit",[30,[36,0],[[32,0,["resetPasswordTask"]]],null]],null],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-site-icon"],[15,5,[34,2]],[12],[13],[2,"\\n "],[10,"h1"],[12],[2,"Reset your password."],[13],[2,"\\n "],[13],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["errors"]],[32,0,["hasValidated"]],"newPassword"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-input-icon gh-icon-lock"],[12],[2,"\\n "],[11,"input"],[24,3,"newPassword"],[24,"placeholder","New password"],[24,"aria-label","New password"],[24,0,"gh-input password reset-password"],[24,"autocorrect","off"],[16,2,[32,0,["newPassword"]]],[24,4,"password"],[4,[38,3],null,null],[4,[38,1],["input",[32,0,["handleInput"]]],null],[12],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"gh-form-group",[],[["@errors","@hasValidated","@property"],[[32,0,["errors"]],[32,0,["hasValidated"]],"ne2Password"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-input-icon gh-icon-lock"],[12],[2,"\\n "],[11,"input"],[24,3,"ne2Password"],[24,"placeholder","Confirm new password"],[24,"aria-label","Confirm new password"],[24,0,"gh-input password reset-password"],[24,"autocorrect","off"],[16,2,[32,0,["ne2Password"]]],[24,4,"password"],[4,[38,1],["input",[32,0,["handleInput"]]],null],[12],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"gh-task-button",[],[["@buttonText","@task","@class","@type","@autoWidth"],["Save new password",[32,0,["resetPasswordTask"]],"gh-btn gh-btn-reset gh-btn-block gh-btn-icon","submit","false"]],null],[2,"\\n "],[13],[2,"\\n\\n "],[10,"p"],[14,0,"main-error"],[12],[1,[32,0,["flowErrors"]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["perform","on","site-icon-style","autofocus"]}',moduleName:"ghost-admin/templates/reset.hbs"})
|
|
4707
4710
|
e.default=t})),define("ghost-admin/templates/settings",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
4708
|
-
var t=Ember.HTMLBars.template({id:"
|
|
4711
|
+
var t=Ember.HTMLBars.template({id:"vV3EtwTL",block:'{"symbols":[],"statements":[[10,"section"],[14,0,"gh-canvas"],[12],[2,"\\n "],[8,"gh-canvas-header",[[24,0,"gh-canvas-header"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"h2"],[14,0,"gh-canvas-title"],[14,"data-test-screen-title",""],[12],[2,"\\n Settings\\n "],[13],[2,"\\n "],[10,"section"],[14,0,"view-actions"],[12],[2,"\\n"],[6,[37,3],[[32,0,["upgradeStatus","message"]]],null,[["default","else"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-with-notification"],[24,"data-tooltip","Update available!"],[24,4,"button"],[4,[38,2],["click",[30,[36,1],[[32,0,["openAbout"]],null],null]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"About Ghost"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-btn-notification-dot green"],[12],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[11,"button"],[24,0,"gh-btn gh-btn-with-notification"],[24,4,"button"],[4,[38,2],["click",[30,[36,1],[[32,0,["openAbout"]],null],null]],null],[12],[2,"\\n "],[10,"span"],[12],[2,"About Ghost"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"section"],[14,0,"view-container"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-setting-header gh-first-header"],[12],[2,"Website"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-settings-main-grid"],[12],[2,"\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","general"]],[["@route"],["settings.general"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"yellow"],[12],[1,[30,[36,0],["settings"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"General"],[13],[2,"\\n "],[10,"p"],[12],[2,"Basic publication details and site metadata"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","design"]],[["@route"],["settings.design"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"blue"],[12],[1,[30,[36,0],["paint-palette"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Design"],[13],[2,"\\n "],[10,"p"],[12],[2,"Customize your site and manage themes"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","navigation"]],[["@route"],["settings.navigation"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"pink"],[12],[1,[30,[36,0],["compass"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Navigation"],[13],[2,"\\n "],[10,"p"],[12],[2,"Set up primary and secondary menus"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","staff"]],[["@route"],["settings.staff"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"green"],[12],[1,[30,[36,0],["staff"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Staff"],[13],[2,"\\n "],[10,"p"],[12],[2,"Manage authors, editor and collaborators"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-setting-header"],[12],[2,"Members"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-settings-main-grid"],[12],[2,"\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","members-membership"]],[["@route"],["settings.membership"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"blue"],[12],[1,[30,[36,0],["members"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Membership"],[13],[2,"\\n "],[10,"p"],[12],[2,"Access, subscription, and pricing options"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","members-email"]],[["@route"],["settings.newsletters"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"yellow"],[12],[1,[30,[36,0],["email-stroke"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Email newsletter"],[13],[2,"\\n "],[10,"p"],[12],[2,"Customize emails and set email addresses"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"],[6,[37,3],[[30,[36,4],["sourceAttribution"],null]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","members-analytics"]],[["@route"],["settings.analytics"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"green"],[12],[1,[30,[36,0],["chart"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Analytics"],[13],[2,"\\n "],[10,"p"],[12],[2,"Decide what data you collect"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"gh-setting-header"],[12],[2,"Advanced"],[13],[2,"\\n "],[10,"div"],[14,0,"gh-settings-main-grid"],[12],[2,"\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","integrations"]],[["@route"],["settings.integrations"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"yellow"],[12],[1,[30,[36,0],["module"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Integrations"],[13],[2,"\\n "],[10,"p"],[12],[2,"Make Ghost work with apps and tools"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","code-injection"]],[["@route"],["settings.code-injection"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"green"],[12],[1,[30,[36,0],["brackets"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Code injection"],[13],[2,"\\n "],[10,"p"],[12],[2,"Add code to your publication"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","labs"]],[["@route"],["settings.labs"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"blue"],[12],[1,[30,[36,0],["labs"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"Labs"],[13],[2,"\\n "],[10,"p"],[12],[2,"Testing ground for new features"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,"link-to",[[24,0,"gh-setting-group"],[24,"data-test-nav","history"]],[["@route"],["settings.history"]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"pink"],[12],[1,[30,[36,0],["calendar-stroke"],null]],[13],[2,"\\n "],[10,"div"],[12],[2,"\\n "],[10,"h4"],[12],[2,"History"],[13],[2,"\\n "],[10,"p"],[12],[2,"View system event log"],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["svg-jar","fn","on","if","feature"]}',moduleName:"ghost-admin/templates/settings.hbs"})
|
|
4709
4712
|
e.default=t})),define("ghost-admin/templates/settings/analytics",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
4710
4713
|
var t=Ember.HTMLBars.template({id:"JYcNdhWS",block:'{"symbols":[],"statements":[[10,"section"],[14,0,"gh-canvas"],[12],[2,"\\n "],[8,"gh-canvas-header",[[24,0,"gh-canvas-header"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex flex-column"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-canvas-breadcrumb"],[12],[2,"\\n "],[8,"link-to",[],[["@route"],["settings"]],[["default"],[{"statements":[[2,"\\n Settings\\n "]],"parameters":[]}]]],[2,"\\n "],[1,[30,[36,0],["arrow-right-small"],null]],[2," Analytics\\n "],[13],[2,"\\n "],[10,"h2"],[14,0,"gh-canvas-title"],[14,"data-test-screen-title",""],[12],[2,"\\n Analytics\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"section"],[14,0,"view-actions"],[12],[2,"\\n "],[8,"gh-task-button",[[24,"data-test-button","save-analytics-settings"],[4,[38,1],["cmd+s"],null]],[["@buttonText","@task","@successText","@runningText","@class"],["Save",[32,0,["saveSettings"]],"Saved","Saving","gh-btn gh-btn-primary gh-btn-icon"]],null],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[10,"div"],[12],[2,"\\n "],[8,"settings/analytics",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"],[1,[30,[36,3],[[30,[36,2],null,null]],null]]],"hasEval":false,"upvars":["svg-jar","on-key","-outlet","component"]}',moduleName:"ghost-admin/templates/settings/analytics.hbs"})
|
|
4711
4714
|
e.default=t})),define("ghost-admin/templates/settings/code-injection-loading",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
@@ -4980,4 +4983,4 @@ var t=Ember.Component.extend({})
|
|
|
4980
4983
|
e.default=t})),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))}
|
|
4981
4984
|
return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("ghost-admin/app").default.create({version:"5.25",name:"ghost-admin"})
|
|
4982
4985
|
|
|
4983
|
-
//# sourceMappingURL=ghost-
|
|
4986
|
+
//# sourceMappingURL=ghost-04991abb5f64c0b3442a093dbfa55a67.map
|