forked from bombastictranz/token-lists
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hosted-site-134dbce2c7b578f586484b3d38306068165668c3094b305585ff221e8287a62e.br.js.download
56 lines (54 loc) · 32.1 KB
/
hosted-site-134dbce2c7b578f586484b3d38306068165668c3094b305585ff221e8287a62e.br.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
define("discourse/plugins/hosted-site/discourse/components/ca-province-select",["exports","@ember/object","I18n","select-kit/components/combo-box"],(function(e,i,t,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=a.default.extend({pluginApiIdentifiers:["province-select"],classNames:["hs-state-select"],nameProperty:"name",valueProperty:"value",selectKitOptions:{filterable:!0,allowAny:!1,translatedNone:t.default.t("hosted_site.invoice_details.province_select")},content:(0,i.computed)((function(){return[["AB","Alberta"],["BC","British Columbia"],["MB","Manitoba"],["NB","New Brunswick"],["NL","Newfoundland and Labrador"],["NT","Northwest Territories"],["NS","Nova Scotia"],["NU","Nunavut"],["ON","Ontario"],["PE","Prince Edward Island"],["QC","Quebec"],["SK","Saskatchewan"],["YT","Yukon"]].map((e=>({value:e[0],name:e[1]})))}))})})),define("discourse/plugins/hosted-site/discourse/components/country-select",["exports","@ember/object","I18n","select-kit/components/combo-box"],(function(e,i,t,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=a.default.extend({pluginApiIdentifiers:["country-select"],classNames:["hs-country-select"],nameProperty:"name",valueProperty:"value",selectKitOptions:{filterable:!0,allowAny:!1,translatedNone:t.default.t("hosted_site.po_number.country")},content:(0,i.computed)((function(){return[["AF","Afghanistan"],["AX","Åland Islands"],["AL","Albania"],["DZ","Algeria"],["AS","American Samoa"],["AD","Andorra"],["AO","Angola"],["AI","Anguilla"],["AQ","Antarctica"],["AG","Antigua and Barbuda"],["AR","Argentina"],["AM","Armenia"],["AW","Aruba"],["AU","Australia"],["AT","Austria"],["AZ","Azerbaijan"],["BS","Bahamas"],["BH","Bahrain"],["BD","Bangladesh"],["BB","Barbados"],["BY","Belarus"],["BE","Belgium"],["BZ","Belize"],["BJ","Benin"],["BM","Bermuda"],["BT","Bhutan"],["BO","Bolivia, Plurinational State of"],["BQ","Bonaire, Sint Eustatius and Saba"],["BA","Bosnia and Herzegovina"],["BW","Botswana"],["BV","Bouvet Island"],["BR","Brazil"],["IO","British Indian Ocean Territory"],["BN","Brunei Darussalam"],["BG","Bulgaria"],["BF","Burkina Faso"],["BI","Burundi"],["KH","Cambodia"],["CM","Cameroon"],["CA","Canada"],["CV","Cape Verde"],["KY","Cayman Islands"],["CF","Central African Republic"],["TD","Chad"],["CL","Chile"],["CN","China"],["CX","Christmas Island"],["CC","Cocos (Keeling) Islands"],["CO","Colombia"],["KM","Comoros"],["CG","Congo"],["CD","Congo, the Democratic Republic of the"],["CK","Cook Islands"],["CR","Costa Rica"],["CI","Côte d'Ivoire"],["HR","Croatia"],["CU","Cuba"],["CW","Curaçao"],["CY","Cyprus"],["CZ","Czech Republic"],["DK","Denmark"],["DJ","Djibouti"],["DM","Dominica"],["DO","Dominican Republic"],["EC","Ecuador"],["EG","Egypt"],["SV","El Salvador"],["GQ","Equatorial Guinea"],["ER","Eritrea"],["EE","Estonia"],["ET","Ethiopia"],["FK","Falkland Islands (Malvinas)"],["FO","Faroe Islands"],["FJ","Fiji"],["FI","Finland"],["FR","France"],["GF","French Guiana"],["PF","French Polynesia"],["TF","French Southern Territories"],["GA","Gabon"],["GM","Gambia"],["GE","Georgia"],["DE","Germany"],["GH","Ghana"],["GI","Gibraltar"],["GR","Greece"],["GL","Greenland"],["GD","Grenada"],["GP","Guadeloupe"],["GU","Guam"],["GT","Guatemala"],["GG","Guernsey"],["GN","Guinea"],["GW","Guinea-Bissau"],["GY","Guyana"],["HT","Haiti"],["HM","Heard Island and McDonald Islands"],["VA","Holy See (Vatican City State)"],["HN","Honduras"],["HK","Hong Kong"],["HU","Hungary"],["IS","Iceland"],["IN","India"],["ID","Indonesia"],["IR","Iran, Islamic Republic of"],["IQ","Iraq"],["IE","Ireland"],["IM","Isle of Man"],["IL","Israel"],["IT","Italy"],["JM","Jamaica"],["JP","Japan"],["JE","Jersey"],["JO","Jordan"],["KZ","Kazakhstan"],["KE","Kenya"],["KI","Kiribati"],["KP","Korea, Democratic People's Republic of"],["KR","Korea, Republic of"],["KW","Kuwait"],["KG","Kyrgyzstan"],["LA","Lao People's Democratic Republic"],["LV","Latvia"],["LB","Lebanon"],["LS","Lesotho"],["LR","Liberia"],["LY","Libya"],["LI","Liechtenstein"],["LT","Lithuania"],["LU","Luxembourg"],["MO","Macao"],["MK","Macedonia, the former Yugoslav Republic of"],["MG","Madagascar"],["MW","Malawi"],["MY","Malaysia"],["MV","Maldives"],["ML","Mali"],["MT","Malta"],["MH","Marshall Islands"],["MQ","Martinique"],["MR","Mauritania"],["MU","Mauritius"],["YT","Mayotte"],["MX","Mexico"],["FM","Micronesia, Federated States of"],["MD","Moldova, Republic of"],["MC","Monaco"],["MN","Mongolia"],["ME","Montenegro"],["MS","Montserrat"],["MA","Morocco"],["MZ","Mozambique"],["MM","Myanmar"],["NA","Namibia"],["NR","Nauru"],["NP","Nepal"],["NL","Netherlands"],["NC","New Caledonia"],["NZ","New Zealand"],["NI","Nicaragua"],["NE","Niger"],["NG","Nigeria"],["NU","Niue"],["NF","Norfolk Island"],["MP","Northern Mariana Islands"],["NO","Norway"],["OM","Oman"],["PK","Pakistan"],["PW","Palau"],["PS","Palestinian Territory, Occupied"],["PA","Panama"],["PG","Papua New Guinea"],["PY","Paraguay"],["PE","Peru"],["PH","Philippines"],["PN","Pitcairn"],["PL","Poland"],["PT","Portugal"],["PR","Puerto Rico"],["QA","Qatar"],["RE","Réunion"],["RO","Romania"],["RU","Russian Federation"],["RW","Rwanda"],["BL","Saint Barthélemy"],["SH","Saint Helena, Ascension and Tristan da Cunha"],["KN","Saint Kitts and Nevis"],["LC","Saint Lucia"],["MF","Saint Martin (French part)"],["PM","Saint Pierre and Miquelon"],["VC","Saint Vincent and the Grenadines"],["WS","Samoa"],["SM","San Marino"],["ST","Sao Tome and Principe"],["SA","Saudi Arabia"],["SN","Senegal"],["RS","Serbia"],["SC","Seychelles"],["SL","Sierra Leone"],["SG","Singapore"],["SX","Sint Maarten (Dutch part)"],["SK","Slovakia"],["SI","Slovenia"],["SB","Solomon Islands"],["SO","Somalia"],["ZA","South Africa"],["GS","South Georgia and the South Sandwich Islands"],["SS","South Sudan"],["ES","Spain"],["LK","Sri Lanka"],["SD","Sudan"],["SR","Suriname"],["SJ","Svalbard and Jan Mayen"],["SZ","Swaziland"],["SE","Sweden"],["CH","Switzerland"],["SY","Syrian Arab Republic"],["TW","Taiwan, Province of China"],["TJ","Tajikistan"],["TZ","Tanzania, United Republic of"],["TH","Thailand"],["TL","Timor-Leste"],["TG","Togo"],["TK","Tokelau"],["TO","Tonga"],["TT","Trinidad and Tobago"],["TN","Tunisia"],["TR","Turkey"],["TM","Turkmenistan"],["TC","Turks and Caicos Islands"],["TV","Tuvalu"],["UG","Uganda"],["UA","Ukraine"],["AE","United Arab Emirates"],["GB","United Kingdom"],["US","United States"],["UM","United States Minor Outlying Islands"],["UY","Uruguay"],["UZ","Uzbekistan"],["VU","Vanuatu"],["VE","Venezuela, Bolivarian Republic of"],["VN","Viet Nam"],["VG","Virgin Islands, British"],["VI","Virgin Islands, U.S."],["WF","Wallis and Futuna"],["EH","Western Sahara"],["YE","Yemen"],["ZM","Zambia"],["ZW","Zimbabwe"]].map((e=>({value:e[0],name:e[1]})))}))})})),define("discourse/plugins/hosted-site/discourse/components/invoice-detail-error",["exports","@glimmer/component","discourse-common/helpers/d-icon","@ember/component","@ember/template-factory"],(function(e,i,t,a,n){"use strict"
var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends i.default{get validationError(){return this.args.validationErrors?.[this.args.fieldName]}}e.default=r,s=r,(0,a.setComponentTemplate)((0,n.createTemplateFactory)({id:"daFSBs1a",block:'[[[1,"\\n"],[41,[30,0,["validationError"]],[[[1," "],[10,0],[14,0,"invoice-details-error"],[12],[1,"\\n "],[1,[28,[32,0],["times"],null]],[1,"\\n "],[1,[30,0,["validationError"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/plugins/hosted-site/discourse/components/invoice-detail-error.js",scope:()=>[t.default],isStrictMode:!0}),s)})),define("discourse/plugins/hosted-site/discourse/components/us-state-select",["exports","@ember/object","I18n","select-kit/components/combo-box"],(function(e,i,t,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=a.default.extend({pluginApiIdentifiers:["us-state-select"],classNames:["hs-state-select"],nameProperty:"name",valueProperty:"value",selectKitOptions:{filterable:!0,allowAny:!1,translatedNone:t.default.t("hosted_site.invoice_details.state_select")},content:(0,i.computed)((function(){return[["AL","Alabama"],["AK","Alaska"],["AZ","Arizona"],["AR","Arkansas"],["CA","California"],["CO","Colorado"],["CT","Connecticut"],["DE","Delaware"],["DC","District of Columbia"],["FL","Florida"],["GA","Georgia"],["HI","Hawaii"],["ID","Idaho"],["IL","Illinois"],["IN","Indiana"],["IA","Iowa"],["KS","Kansas"],["KY","Kentucky"],["LA","Louisiana"],["ME","Maine"],["MD","Maryland"],["MA","Massachusetts"],["MI","Michigan"],["MN","Minnesota"],["MS","Mississippi"],["MO","Missouri"],["MT","Montana"],["NE","Nebraska"],["NV","Nevada"],["NH","New Hampshire"],["NJ","New Jersey"],["NM","New Mexico"],["NY","New York"],["NC","North Carolina"],["ND","North Dakota"],["OH","Ohio"],["OK","Oklahoma"],["OR","Oregon"],["PA","Pennsylvania"],["RI","Rhode Island"],["SC","South Carolina"],["SD","South Dakota"],["TN","Tennessee"],["TX","Texas"],["UT","Utah"],["VT","Vermont"],["VA","Virginia"],["WA","Washington"],["WV","West Virginia"],["WI","Wisconsin"],["WY","Wyoming"]].map((e=>({value:e[0],name:e[1]})))}))})})),define("discourse/plugins/hosted-site/discourse/controllers/admin-invite",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse/lib/ajax","discourse/lib/url","discourse/lib/waving-hand-url","discourse/mixins/name-validation","discourse/mixins/password-validation","discourse-common/lib/get-url","discourse-common/utils/decorators","I18n"],(function(e,i,t,a,n,s,r,o,l,u,d,c){"use strict"
var p,m,h,b,f,g,v,y,w,M,k,S,_
function T(e,i,t,a){t&&Object.defineProperty(e,i,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(a):void 0})}function I(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var a=t.call(e,i||"default")
if("object"!=typeof a)return a
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string")
return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function P(e,i,t,a,n){var s={}
return Object.keys(a).forEach((function(e){s[e]=a[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=t.slice().reverse().reduce((function(t,a){return a(e,i,t)||t}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,i,s),s=null),s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(p=(0,a.alias)("model.admin"),m=(0,a.alias)("model.username"),h=(0,a.alias)("model.name"),b=(0,a.or)("passwordValidation.failed","nameValidation.failed","usernameErrorMessage"),f=(0,d.default)("accountUsername","usernameError"),g=(0,d.default)(),v=(0,d.default)("model.email"),y=(0,d.default)("redirectTo"),w=class extends(i.default.extend(l.default,o.default)){constructor(){super(...arguments),I(this,"passwordRequired",!0),I(this,"redirected",!1),I(this,"usernameError",void 0),I(this,"lastAttemptedUsername",void 0),T(this,"admin",M,this),T(this,"accountUsername",k,this),T(this,"accountName",S,this),T(this,"submitDisabled",_,this)}usernameErrorMessage(e,i){if(i&&e===this.lastAttemptedUsername)return i}wavingHandURL(){return(0,r.wavingHandURL)()}welcomeTitle(){return c.default.t("invites.welcome_to",{site_name:this.siteSettings.title})}yourEmailMessage(e){return c.default.t("admin_invite.your_email",{email:e})}redirectHref(e){return(0,u.default)(e||"/")}async submit(){this.lastAttemptedUsername=this.accountUsername
const e=await(0,n.ajax)({url:(0,s.userPath)(`admin-invite/${this.get("model.token")}.json`),type:"PUT",data:{username:this.accountUsername,name:this.accountName,password:this.accountPassword,timezone:moment.tz.guess()}})
e.success?(this.set("redirectTo",e.redirect_to),this.set("redirected",!0),s.default.redirectTo(this.redirectHref)):(e.errors&&e.errors.password&&e.errors.password.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors.password[0])),e.errors&&e.errors.username&&e.errors.username.length>0&&this.set("usernameError",e.errors.username[0]))}},M=P(w.prototype,"admin",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=P(w.prototype,"accountUsername",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=P(w.prototype,"accountName",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=P(w.prototype,"submitDisabled",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(w.prototype,"usernameErrorMessage",[f],Object.getOwnPropertyDescriptor(w.prototype,"usernameErrorMessage"),w.prototype),P(w.prototype,"wavingHandURL",[g],Object.getOwnPropertyDescriptor(w.prototype,"wavingHandURL"),w.prototype),P(w.prototype,"welcomeTitle",[d.default],Object.getOwnPropertyDescriptor(w.prototype,"welcomeTitle"),w.prototype),P(w.prototype,"yourEmailMessage",[v],Object.getOwnPropertyDescriptor(w.prototype,"yourEmailMessage"),w.prototype),P(w.prototype,"redirectHref",[y],Object.getOwnPropertyDescriptor(w.prototype,"redirectHref"),w.prototype),P(w.prototype,"submit",[t.action],Object.getOwnPropertyDescriptor(w.prototype,"submit"),w.prototype),w)})),define("discourse/plugins/hosted-site/discourse/helpers/dollars-and-cents",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return e>=0?`$${e.toFixed(2)}`:`-$${(-1*e).toFixed(2)}`}})),define("discourse/plugins/hosted-site/discourse/hosted-site-route-map",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){this.route("admin-invite",{path:"/u/admin-invite/:token"})}})),define("discourse/plugins/hosted-site/discourse/initializers/anon-init",["exports","@ember/runloop","jquery","discourse-common/lib/get-owner","discourse-common/utils/decorators"],(function(e,i,t,a,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"apply-anon-init",initialize(){const e=(0,a.getRegister)(this).lookupFactory("component:global-notice")
var s,r,o,l,u,d,c,p
e&&e.class.reopen((s=(0,n.on)("didInsertElement"),o=r={_hideOtherAlerts(){(0,i.schedule)("afterRender",(()=>{((0,t.default)(".alert .trial-expired-message").length>0||(0,t.default)(".alert .discourse-hosting-readonly").length>0)&&((0,t.default)(".alert-read-only").hide(),(0,t.default)(".alert-too-few-topics").hide())}))}},l="_hideOtherAlerts",u=[s],d=Object.getOwnPropertyDescriptor(r,"_hideOtherAlerts"),c=r,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,i){return i(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))}}})),define("discourse/plugins/hosted-site/discourse/initializers/extend-admin-customize",["exports","discourse/lib/plugin-api"],(function(e,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"extend-admin-customize",initialize(e){(0,i.withPluginApi)("0.8.40",(e=>function(e){e.getCurrentUser()?.admin&&e.modifyClass("route:admin-customize-index",{pluginId:"hosted-site",beforeModel(){this.currentUser.admin?this.siteSettings.hide_admin_customize_themes?this.siteSettings.hide_admin_customize_colors?this.router.transitionTo("adminSiteText"):this.router.transitionTo("adminCustomize.colors"):this.router.transitionTo("adminCustomizeThemes"):this.router.transitionTo("adminWatchedWords")}})}(e)))}}})),define("discourse/plugins/hosted-site/discourse/initializers/extend-admin-start-backup",["exports","discourse/lib/plugin-api","discourse-common/lib/icon-library","I18n"],(function(e,i,t,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"extend-admin-start-backup",initialize(e){(0,i.withPluginApi)("0.8.40",(e=>function(e){const i=e.getCurrentUser()
i?.admin&&e.modifyClass("component:modal/start-backup",{pluginId:"hosted-site",get canManageUploadsInBackup(){return!1},get warningMessage(){return this.siteSettings.include_s3_uploads_in_backups?"":(0,t.iconHTML)("exclamation-triangle")+a.default.t("hosted_site.admin_backup_upload_warning")+(0,t.iconHTML)("exclamation-triangle")},get warningCssClasses(){return this.siteSettings.include_s3_uploads_in_backups?"":"alert alert-warning"}})}(e)))}}})),define("discourse/plugins/hosted-site/discourse/initializers/extend-invited",["exports","discourse/lib/plugin-api","discourse-common/utils/decorators"],(function(e,i,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
function a(e){var i,a,n,s,r,o,l,u
e.modifyClass("controller:user-invited-show",(i=(0,t.default)("currentUser.admin","model.remaining_users"),n=a={pluginId:"hosted-site",canBulkInvite:(e,i)=>e&&(void 0===i||Number(i)>1)},s="canBulkInvite",r=[i],o=Object.getOwnPropertyDescriptor(a,"canBulkInvite"),l=a,u={},Object.keys(o).forEach((function(e){u[e]=o[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce((function(e,i){return i(n,s,e)||e}),u),l&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(l):void 0,u.initializer=void 0),void 0===u.initializer&&(Object.defineProperty(n,s,u),u=null),a))}e.default={name:"extend-invited",initialize(e){(0,i.withPluginApi)("0.8.40",(e=>a(e)))}}})),define("discourse/plugins/hosted-site/discourse/initializers/overdue-notice",["exports","@ember/utils","discourse/lib/plugin-api"],(function(e,i,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"overdue-notice",after:"inject-objects",initialize(e){const a=e.lookup("service:current-user"),n=e.lookup("service:site")
a&&!(0,i.isBlank)(n.overdue_notice)&&(0,t.withPluginApi)("0.8.37",(e=>{e.addGlobalNotice(n.overdue_notice,"overdue-payment-notice",{level:"error",dismissable:!1})}))}}})),define("discourse/plugins/hosted-site/discourse/routes/admin-invite",["exports","discourse/lib/ajax","discourse/lib/preload-store","discourse/lib/url","discourse/routes/discourse","discourse-common/lib/object","I18n"],(function(e,i,t,a,n,s,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class o extends n.default{titleToken(){return r.default.t("admin_invite.title")}async model(e){if(t.default.get("admin_invite")){const i=await t.default.getAndRemove("admin_invite")
return(0,s.deepMerge)(e,i)}}afterModel(e){if(e)return(0,i.ajax)({url:(0,a.userPath)(`confirm-email-token/${e.token}.json`),dataType:"json"})}activate(){super.activate(...arguments),this.controllerFor("application").setProperties({showSiteHeader:!1})}deactivate(){super.deactivate(...arguments),this.controllerFor("application").setProperties({showSiteHeader:!0})}}e.default=o})),define("discourse/plugins/hosted-site/discourse/templates/admin-invite",["exports","ember-this-fallback/is-component","ember-this-fallback/this-fallback-helper","ember-this-fallback/try-lookup-helper","ember-this-fallback/deprecations-helper","@ember/template-factory"],(function(e,i,t,a,n,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,s.createTemplateFactory)({id:"vyuo/m4V",block:'[[[1,[28,[35,0],["admin-invite-page"],null]],[1,"\\n"],[41,[28,[32,0],["hide-application-sidebar"],null],[[[8,[39,2],null,null,null]],[]],[[[44,[[28,[37,4],null,[["hide-application-sidebar"],[[28,[32,1],["hide-application-sidebar"],null]]]]],[[[1,[52,[30,1,["hide-application-sidebar"]],[28,[30,1,["hide-application-sidebar"]],null,null],[28,[32,2],[[30,0],"hide-application-sidebar","[\\"The `hide-application-sidebar` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.hide-application-sidebar}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}]"],null]]]],[1]]]],[]]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container invites-show clearfix"],[12],[1,"\\n "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,0,["welcomeTitle"]]],[13],[1,"\\n "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n"],[41,[51,[30,0,["successMessage"]]],[[[1," "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,6],["create_account.subheader_title"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"col-form invite-form"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,7],[[30,0,["yourEmailMessage"]]],null]],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n\\n "],[10,0],[14,0,"input username-input input-group"],[12],[1,"\\n "],[8,[39,8],[[24,3,"username"],[24,"autofocus","autofocus"],[24,1,"new-account-username"],[16,0,[28,[37,9],[[30,0,["accountUsername"]]],null]]],[["@type","@value"],["email",[30,0,["accountUsername"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,[28,[35,6],["user.username.title"],null]],[13],[1,"\\n"],[41,[30,0,["usernameErrorMessage"]],[[[1," "],[10,0],[14,0,"tip bad"],[12],[41,[28,[32,0],["usernameErrorMessage"],null],[[[8,[39,10],null,null,null]],[]],[[[44,[[28,[37,4],null,[["usernameErrorMessage"],[[28,[32,1],["usernameErrorMessage"],null]]]]],[[[1,[52,[30,2,["usernameErrorMessage"]],[28,[30,2,["usernameErrorMessage"]],null,null],[28,[32,2],[[30,0],"usernameErrorMessage","[\\"The `usernameErrorMessage` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.usernameErrorMessage}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}]"],null]]]],[2]]]],[]]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,6],["user.username.instructions"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"input name-input input-group"],[12],[1,"\\n "],[8,[39,8],[[24,3,"name"],[24,"autofocus","autofocus"],[24,1,"new-account-name"],[16,0,[28,[37,9],[[30,0,["accountName"]]],null]]],[["@type","@value"],["name",[30,0,["accountName"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,[28,[35,6],["invites.name_label"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[41,[28,[32,0],["nameInstructions"],null],[[[8,[39,11],null,null,null]],[]],[[[44,[[28,[37,4],null,[["nameInstructions"],[[28,[32,1],["nameInstructions"],null]]]]],[[[1,[52,[30,3,["nameInstructions"]],[28,[30,3,["nameInstructions"]],null,null],[28,[32,2],[[30,0],"nameInstructions","[\\"The `nameInstructions` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.nameInstructions}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}]"],null]]]],[3]]]],[]]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"input password-input input-group"],[12],[1,"\\n "],[8,[39,12],[[16,0,[28,[37,9],[[30,0,["accountPassword"]]],null]]],[["@value","@type","@capsLockOn","@id"],[[30,0,["accountPassword"]],"password",[30,0,["capsLockOn"]],"new-account-password"]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,[28,[35,6],["invites.password_label"],null]],[13],[1,"\\n "],[1,[28,[35,13],null,[["validation"],[[30,0,["passwordValidation"]]]]]],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[41,[28,[32,0],["passwordInstructions"],null],[[[8,[39,14],null,null,null]],[]],[[[44,[[28,[37,4],null,[["passwordInstructions"],[[28,[32,1],["passwordInstructions"],null]]]]],[[[1,[52,[30,4,["passwordInstructions"]],[28,[30,4,["passwordInstructions"]],null,null],[28,[32,2],[[30,0],"passwordInstructions","[\\"The `passwordInstructions` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.passwordInstructions}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}]"],null]]]],[4]]]],[]]],[1,"\\n "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"invisible"]]]],[12],[1,"\\n "],[1,[28,[35,15],["exclamation-triangle"],null]],[1,"\\n "],[1,[28,[35,6],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[1,[28,[35,16],null,[["action","label","disabled","type","id","class"],[[28,[37,17],[[30,0],"submit"],null],"admin_invite.save",[30,0,["submitDisabled"]],"submit","accept-admin-invite-btn","btn-primary"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,[28,[32,3],["[[\\"The `yourEmailMessage` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.yourEmailMessage}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}],[\\"The `usernameErrorMessage` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.usernameErrorMessage}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}],[\\"The `passwordValidation` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.passwordValidation}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}],[\\"The `capsLockOn` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.capsLockOn}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}],[\\"The `submitDisabled` property path was used in the `discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.submitDisabled}}\\",false,{\\"id\\":\\"ember-this-fallback.this-property-fallback\\",\\"until\\":\\"n/a\\",\\"for\\":\\"ember-this-fallback\\",\\"url\\":\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\",\\"since\\":{\\"available\\":\\"0.2.0\\"}}]]"],null]]],["maybeHelpers","maybeHelpers","maybeHelpers","maybeHelpers"],false,["body-class","if","hide-application-sidebar","let","hash","unless","i18n","html-safe","input","value-entered","username-error-message","name-instructions","password-field","input-tip","password-instructions","d-icon","d-button","action"]]',moduleName:"discourse/plugins/hosted-site/discourse/templates/admin-invite.hbs",scope:()=>[i.default,a.default,t.default,n.default],isStrictMode:!1})})),define("discourse/plugins/hosted-site/discourse/templates/connectors/below-wizard-extra-description/basic-plan-approve-user-warning",["exports","@ember/template-factory"],(function(e,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,i.createTemplateFactory)({id:"x0sarV2p",block:'[[[41,[28,[37,1],[[28,[37,2],[[30,0,["value"]]],null],[28,[37,3],[[30,0,["id"]],"must_approve_users"],null]],null],[[[1," "],[10,0],[14,0,"wizard-container__description hosted-site-warning"],[12],[1,"\\n "],[1,[28,[35,4],["warning"],null]],[1,"\\n "],[10,"strong"],[12],[1,"\\n We recommend requiring approval for new users\\n "],[13],[1,"\\n to help you stay within Basic plan\'s 100 user limit.\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","and","not","eq","emoji"]]',moduleName:"discourse/plugins/hosted-site/discourse/templates/connectors/below-wizard-extra-description/basic-plan-approve-user-warning.hbs",isStrictMode:!1})})),define("discourse/plugins/hosted-site/discourse/templates/connectors/wizard-checkbox/basic-plan-tooltip",["exports","@ember/template-factory"],(function(e,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,i.createTemplateFactory)({id:"zI3AAdii",block:'[[[41,[30,0,["disabled"]],[[[1," "],[8,[39,1],null,[["@triggers"],["hover"]],[["trigger","content"],[[[[1,"\\n "],[18,1,null],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"wizard-checkbox-tooltip"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["basic_plan.tooltip.headline"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,3],["basic_plan.tooltip.description"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","d-tooltip","yield","i18n"]]',moduleName:"discourse/plugins/hosted-site/discourse/templates/connectors/wizard-checkbox/basic-plan-tooltip.hbs",isStrictMode:!1})})),define("discourse/plugins/hosted-site/lib/downgrade",["exports","rsvp","discourse/lib/ajax","discourse-common/lib/get-owner"],(function(e,i,t,a){"use strict"
async function n(e){const i=(0,a.getOwner)(this).lookup("service:dialog")
try{const a=await function(e){return(0,t.ajax)("/admin/downgrade.json",{type:"POST",data:{plan_id:e.plan_id,add_on_ids:e.add_on_ids,coupon_id:e.coupon_id,qty:e.qty}})}(e)
return a.success?i.alert(a.message||"Your plan has been successfully changed. Your site will reflect the changes soon."):i.alert(`Your plan change could not be completed. ${a.message}`)}catch{return i.alert("There was an error submitting your request. Please send an email to [email protected] so we can look into it.")}}Object.defineProperty(e,"__esModule",{value:!0}),e.downgrade=n,e.downgradeWithConfirmation=async function(e){return await function(e){const t=(0,a.getOwner)(this).lookup("service:dialog")
return new i.Promise(((i,a)=>{t.confirm({message:e,didConfirm:()=>{i()},didCancel:()=>{a()}})}))}("Are you sure you want to change plans?"),n(e)}}))
//# sourceMappingURL=hosted-site-c80de34e641434b744d9a1d407af5c19a14eb01fc850fcdccc255b46ccc2cc5d.map
//!
;