{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.string.trim.js","webpack:///./node_modules/core-js/internals/whitespaces.js","webpack:///./node_modules/core-js/internals/string-trim.js","webpack:///./src/core/Configuration.ts","webpack:///./src/views/Success.vue?4b07","webpack:///./src/views/Success.vue?8faf","webpack:///./src/views/Success.vue?20cc","webpack:///./src/views/Success.vue","webpack:///./node_modules/core-js/internals/string-trim-forced.js"],"names":["$","$trim","trim","forcedStringTrimMethod","target","proto","forced","this","module","exports","requireObjectCoercible","whitespaces","whitespace","ltrim","RegExp","rtrim","createMethod","TYPE","$this","string","String","replace","start","end","Configuration","subscriptionType","urlKey","urlReason","subscriptionTypeId","resourceId","resourceValue","email","errorMessage","loggedIn","brandName","wasGloballyUnsubscribed","instance","hdnUrlKey","document","getElementById","value","remove","hdnUrlReason","hdnSubscriptionType","hdnSubscriptionTypeId","hdnResourceId","hdnResourceValue","hdnResourceEmail","hdnResourceErrorMessage","hdnLoggedIn","JSON","parse","toLowerCase","hdnBrandName","hdnWasGloballyUnsubscribed","undefined","loadDataFromDOM","render","_vm","_h","$createElement","_c","_self","staticClass","_v","_s","subscriptionTypeText","_e","attrs","on","goToPreferences","staticRenderFns","Instance","BrandName","SubscriptionType","ResourceValue","ErrorMessage","noError","preferencesKey","UrlKey","WasGloballyUnsubscribed","length","window","location","href","encodeURIComponent","components","Button","component","fails","non","METHOD_NAME","name"],"mappings":"kHACA,IAAIA,EAAI,EAAQ,QACZC,EAAQ,EAAQ,QAA4BC,KAC5CC,EAAyB,EAAQ,QAIrCH,EAAE,CAAEI,OAAQ,SAAUC,OAAO,EAAMC,OAAQH,EAAuB,SAAW,CAC3ED,KAAM,WACJ,OAAOD,EAAMM,U,mBCPjBC,EAAOC,QAAU,iD,uBCFjB,IAAIC,EAAyB,EAAQ,QACjCC,EAAc,EAAQ,QAEtBC,EAAa,IAAMD,EAAc,IACjCE,EAAQC,OAAO,IAAMF,EAAaA,EAAa,KAC/CG,EAAQD,OAAOF,EAAaA,EA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ourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","// a string of all valid unicode whitespaces\n// eslint-disable-next-line max-len\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar whitespaces = require('../internals/whitespaces');\n\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","export default class Configuration {\r\n\r\n public static get Instance(): Configuration {\r\n if (Configuration.instance === undefined) {\r\n Configuration.instance = new Configuration();\r\n Configuration.loadDataFromDOM(Configuration.instance);\r\n }\r\n return Configuration.instance;\r\n }\r\n\r\n public get SubscriptionType(): string { return this.subscriptionType; }\r\n public get UrlKey(): string { return this.urlKey; }\r\n public get UrlReason(): string { return this.urlReason; }\r\n public get SubscriptionTypeId(): string { return this.subscriptionTypeId; }\r\n public get ResourceId(): string { return this.resourceId; }\r\n public get ResourceValue(): string { return this.resourceValue; }\r\n public get Email(): string { return this.email; }\r\n public get ErrorMessage(): string { return this.errorMessage; }\r\n\r\n public get LoggedIn(): boolean { return this.loggedIn; }\r\n public get BrandName(): string { return this.brandName; }\r\n\r\n public get WasGloballyUnsubscribed(): boolean { return this.wasGloballyUnsubscribed; }\r\n\r\n private static instance: Configuration;\r\n\r\n private static loadDataFromDOM(instance: Configuration): void {\r\n const hdnUrlKey = document.getElementById('hdn-url-key') as HTMLInputElement;\r\n if (hdnUrlKey) {\r\n instance.urlKey = hdnUrlKey.value;\r\n hdnUrlKey.remove();\r\n }\r\n\r\n const hdnUrlReason = document.getElementById('hdn-url-reason') as HTMLInputElement;\r\n if (hdnUrlReason) {\r\n instance.urlReason = hdnUrlReason.value;\r\n hdnUrlReason.remove();\r\n }\r\n\r\n const hdnSubscriptionType = document.getElementById('hdn-subscription-type') as HTMLInputElement;\r\n if (hdnSubscriptionType) {\r\n instance.subscriptionType = hdnSubscriptionType.value;\r\n hdnSubscriptionType.remove();\r\n }\r\n\r\n const hdnSubscriptionTypeId = document.getElementById('hdn-subscription-type-id') as HTMLInputElement;\r\n if (hdnSubscriptionTypeId) {\r\n instance.subscriptionTypeId = hdnSubscriptionTypeId.value;\r\n hdnSubscriptionTypeId.remove();\r\n }\r\n\r\n const hdnResourceId = document.getElementById('hdn-resource-id') as HTMLInputElement;\r\n if (hdnResourceId) {\r\n instance.resourceId = hdnResourceId.value;\r\n hdnResourceId.remove();\r\n }\r\n\r\n const hdnResourceValue = document.getElementById('hdn-resource-value') as HTMLInputElement;\r\n if (hdnResourceValue) {\r\n instance.resourceValue = hdnResourceValue.value;\r\n hdnResourceValue.remove();\r\n }\r\n\r\n const hdnResourceEmail = document.getElementById('hdn-email') as HTMLInputElement;\r\n if (hdnResourceEmail) {\r\n instance.email = hdnResourceEmail.value;\r\n hdnResourceEmail.remove();\r\n }\r\n\r\n const hdnResourceErrorMessage = document.getElementById('hdn-error-message') as HTMLInputElement;\r\n if (hdnResourceErrorMessage) {\r\n instance.errorMessage = hdnResourceErrorMessage.value;\r\n hdnResourceErrorMessage.remove();\r\n }\r\n\r\n const hdnLoggedIn = document.getElementById('hdn-logged-in') as HTMLInputElement;\r\n if (hdnLoggedIn) {\r\n instance.loggedIn = JSON.parse(hdnLoggedIn.value.toLowerCase());\r\n hdnLoggedIn.remove();\r\n }\r\n\r\n const hdnBrandName = document.getElementById('hdn-brand-name') as HTMLInputElement;\r\n if (hdnBrandName) {\r\n instance.brandName = hdnBrandName.value;\r\n hdnBrandName.remove();\r\n }\r\n\r\n const hdnWasGloballyUnsubscribed = document.getElementById('hdn-was-globally-unsubscribed') as HTMLInputElement;\r\n if (hdnWasGloballyUnsubscribed) {\r\n instance.wasGloballyUnsubscribed = JSON.parse(hdnWasGloballyUnsubscribed.value.toLowerCase());\r\n hdnWasGloballyUnsubscribed.remove();\r\n }\r\n }\r\n\r\n private subscriptionType!: string;\r\n private urlKey!: string;\r\n private urlReason!: string;\r\n private subscriptionTypeId!: string;\r\n private resourceId!: string;\r\n private resourceValue!: string;\r\n private email!: string;\r\n private errorMessage!: string;\r\n\r\n private loggedIn!: boolean;\r\n private brandName!: string;\r\n private wasGloballyUnsubscribed!: boolean;\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"subscribe-page\"},[_c('div',{staticClass:\"FormPage\"},[(_vm.noError)?[_c('div',{staticClass:\"FormPage__iconSubscribe\"}),_c('div',{staticClass:\"FormPage__title\"},[_vm._v(\" Success! \")]),_c('div',{staticClass:\"FormPage__text Subscribe__success\"},[_vm._v(\" You will now receive \"+_vm._s(_vm.subscriptionTypeText)+\". You can also subscribe to new updates and invitations in your email preferences. \")]),(_vm.wasGloballyUnsubscribed)?_c('div',{staticClass:\"FormPage__text Subscribe__success\"},[_vm._v(\" Please note that you previously decided not to receive any email from \"+_vm._s(_vm.brandName)+\". This behaviour has been changed with your new subscription. \")]):_vm._e()]:[_c('div',{staticClass:\"FormPage__iconUnsubscribed\"}),_c('div',{staticClass:\"FormPage__title\"},[_vm._v(\" Something went wrong \")]),_c('div',{staticClass:\"FormPage__text\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")])],_c('Button',{attrs:{\"text\":\"Email Preferences\"},on:{\"click\":_vm.goToPreferences}})],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport '../scss/index.scss';\nimport { Vue, Component, Prop } from 'vue-property-decorator';\nimport { Button } from '@frontiers-vue/button';\nimport Configuration from '../core/Configuration';\n\n@Component({\n components: { Button },\n})\nexport default class Success extends Vue {\n\n private brandName: string = Configuration.Instance.BrandName;\n private subscriptionType: string = Configuration.Instance.SubscriptionType;\n private resourceValue: string = Configuration.Instance.ResourceValue;\n private errorMessage: string = Configuration.Instance.ErrorMessage;\n private noError: boolean = true;\n private preferencesKey: string = Configuration.Instance.UrlKey;\n private subscriptionTypeText: string = '';\n private wasGloballyUnsubscribed: boolean = Configuration.Instance.WasGloballyUnsubscribed;\n\n private created(): void {\n\n if (this.errorMessage !== undefined && this.errorMessage !== null && this.errorMessage !== '' && this.errorMessage.trim().length > 0) {\n this.noError = false;\n }\n else {\n this.noError = true;\n if (this.resourceValue !== undefined && this.resourceValue !== null && this.resourceValue.trim().length > 0) {\n this.subscriptionTypeText = this.subscriptionType + ' for ' + this.resourceValue;\n } else {\n this.subscriptionTypeText = this.subscriptionType;\n }\n }\n }\n \n private goToPreferences(): void {\n window.location.href = '/emails/preferences/' + encodeURIComponent(this.preferencesKey);\n }\n\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Success.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Success.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Success.vue?vue&type=template&id=1aa4d07c&\"\nimport script from \"./Success.vue?vue&type=script&lang=ts&\"\nexport * from \"./Success.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n"],"sourceRoot":""}