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oF,EAAAA,EAAAA,YAAYZ,EAAKa,OAAQ,YACzBvH,EAAAA,EAAAA,oBAAoB,MAAOmC,EAAa,CACrCmE,GAAW/E,MAAM,IACbqF,EAAAA,EAAAA,cAAcC,EAAAA,EAAAA,oBAAoB,MAAOzE,EAAa,kBAAmB+E,EAAAA,EAAAA,iBAAiBb,GAAW/E,OAAS,iCAAkC,KACjJ8F,EAAAA,EAAAA,oBAAoB,IAAI,GACE,OAA7BpD,EAAmB1C,QACfqF,EAAAA,EAAAA,cAAcC,EAAAA,EAAAA,oBAAoB,OAAQ,CACzCxE,IAAK,EACLpC,MAAO,qBACPiH,aAAaC,EAAAA,EAAAA,iBAAiBlD,EAAmB1C,QAChD,KAAM,EAAGe,KACZ+E,EAAAA,EAAAA,oBAAoB,IAAI,GAC5B9E,GACAvC,EAAAA,EAAAA,oBAAoB,QAAS,CAC3BqB,KAAM,SACNC,KAAM,aACNC,OAAOiG,EAAAA,EAAAA,OAAOzE,IACb,KAAM,EAAGP,GACZC,EACAC,SAIL,MACF,KAAM,CACP,CAACsE,EAAAA,MAA8B,YAAtBnD,EAAYtC,UAEtB,IAEL,ICzSA,MAAMkG,EAAc,EAEpB,O","sources":["webpack://beliefnet-frontend/./src/components/newsletters/signup/Subscribe2.vue?5c0f","webpack://beliefnet-frontend/./src/components/newsletters/signup/Subscribe2.vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, unref as _unref, createStaticVNode as _createStaticVNode } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"col-sm-12\" }, [\n  /*#__PURE__*/_createElementVNode(\"div\", { class: \"box-border-decoration add-more-padding text-center\" }, [\n    /*#__PURE__*/_createElementVNode(\"h3\", null, \"Please wait a moment while we sign you up...\")\n  ])\n], -1)\nconst _hoisted_2 = [\n  _hoisted_1\n]\nconst _hoisted_3 = { class: \"col-sm-12\" }\nconst _hoisted_4 = { class: \"box-border-decoration add-more-padding text-center\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"h3\", null, \"Thank you for your recent subscription request(s).\", -1)\nconst _hoisted_6 = { class: \"add-padding\" }\nconst _hoisted_7 = { class: \"list-unstyled two-column-list single-col-mobile\" }\nconst _hoisted_8 = [\"textContent\"]\nconst _hoisted_9 = { class: \"text-center col-sm-12\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"h2\", null, \"Can't wait for uplifting and inspirational content?\", -1)\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"a\", { href: \"/Columnists.aspx\" }, \"blogs\", -1)\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"a\", { href: \"/Video.aspx\" }, \"videos\", -1)\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"a\", { href: \"/\" }, \"other great stories.\", -1)\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_16 = {\n  method: \"post\",\n  action: \"/newsletter/manage.aspx\"\n}\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"input\", {\n  type: \"hidden\",\n  name: \"step\",\n  value: \"collection\"\n}, null, -1)\nconst _hoisted_18 = [\"value\"]\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"a\", {\n  href: \"#manage-link\",\n  id: \"manage-link\",\n  class: \"serif-link\",\n  onclick: \"javascript:this.parentNode.submit();\"\n}, \" Already Subscribed? Manage my subscription. \", -1)\nconst _hoisted_20 = { class: \"beliefnet-newsletter\" }\nconst _hoisted_21 = { class: \"email-entry-section\" }\nconst _hoisted_22 = { class: \"container\" }\nconst _hoisted_23 = /*#__PURE__*/_createStaticVNode(\"<br><br><strong>Enter your email, select the newsletters that interest you, and click &quot;subscribe&quot; at the bottom of the page.</strong><span class=\\\"newsletter-su-form\\\"><input type=\\\"email\\\" name=\\\"emailAddress\\\" class=\\\"newsletter-su-input\\\" placeholder=\\\"Enter Your Email Address\\\"><input type=\\\"email\\\" name=\\\"emailConfirm\\\" value=\\\"\\\" class=\\\"newsletter-su-input\\\" placeholder=\\\"Re-enter Your Email Address\\\"><input type=\\\"text\\\" name=\\\"firstName\\\" class=\\\"newsletter-su-input\\\" placeholder=\\\"First Name\\\"><input type=\\\"submit\\\" class=\\\"newsletter-su-submit btn-accent-2\\\" value=\\\"SUBSCRIBE\\\"></span><div class=\\\"notice\\\"> From time to time you will also receive Special Offers from our partners that help us make this content free for you. You can opt out of these offers at any time. </div><br>\", 6)\nconst _hoisted_29 = [\"textContent\"]\nconst _hoisted_30 = { class: \"newsletter-list\" }\nconst _hoisted_31 = { class: \"lower-confirm\" }\nconst _hoisted_32 = {\n  key: 0,\n  class: \"call-out\"\n}\nconst _hoisted_33 = [\"textContent\"]\nconst _hoisted_34 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_35 = [\"value\"]\nconst _hoisted_36 = /*#__PURE__*/_createElementVNode(\"input\", {\n  type: \"submit\",\n  class: \"newsletter-su-submit btn-accent-2\",\n  value: \"SUBSCRIBE\"\n}, null, -1)\nconst _hoisted_37 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"manage\" }, [\n  /*#__PURE__*/_createTextVNode(\" ALREADY SUBSCRIBED? \"),\n  /*#__PURE__*/_createElementVNode(\"a\", { href: \"/Newsletter/Manage.aspx\" }, \"MANAGE MY SUBSCRIPTION.\")\n], -1)\n\nimport { ref, toRefs, inject, onMounted } from 'vue';\nimport { useLogger } from 'vue-logger-plugin';\nimport { LocationService } from '../../../services/location.service';\nimport { NewsletterManageService } from '../../../services/newslettermanage.service';\nimport { useIdentityStore } from '../../../stores/identity-store';\nimport useQueryParameter from '@/composables/query-parameter.composable';\nimport { useSessionStore } from '@/stores/SessionStorage';\n\n\nexport default /*#__PURE__*/_defineComponent({\n  __name: 'Subscribe2',\n  props: {\n    sourceDesc: String,\n    title: String,\n    blurb: String\n},\n  setup(__props) {\n\nconst props = __props;\n\nconst newsletterManageService: NewsletterManageService | undefined = inject('NewsletterManageService');\n// inject our locationservice\nconst locationService: LocationService | undefined = inject('LocationService');\n\n// Incoming props\n\n\n// get back video id of what we need\nconst { sourceDesc, title, blurb } = toRefs(props);\n\nconst logger = useLogger();\nconst isCookieLawZone = ref(false);\nconst currentPage = ref('initial');\nconst emailAddress = ref(null);\nconst newsletterNames = ref([]);\nconst topErrorMessage = ref(null);\nconst bottomErrorMessage = ref(null);\nconst isNewsletterError = ref(false);\nconst sessionStore = useSessionStore();\n\nconst onSubmit = (e) => {\n    e.preventDefault();\n    topErrorMessage.value = bottomErrorMessage.value = null;\n    isNewsletterError.value = false;\n\n    // get back all the selected newsletters\n    let newsletters = [];\n    e.target.elements.newsletter.forEach((element) => {\n        if (element.checked) {\n            newsletters.push(element.value);\n        }\n    });\n\n    const firstName = e.target.elements.firstName.value?.trim() ?? '';\n    // run some validation\n    if (firstName.length < 1) {\n        topErrorMessage.value = bottomErrorMessage.value = 'Please enter your first name.';\n    } else if (\n        e.target.elements.emailAddress.value.length < 1 ||\n        e.target.elements.emailAddress.value != e.target.elements.emailConfirm.value\n    ) {\n        topErrorMessage.value = bottomErrorMessage.value = 'Please fill out missing fields.';\n    } else if (newsletters.length < 1) {\n        topErrorMessage.value = 'Please select a free newsletter(s) below.';\n        bottomErrorMessage.value = 'Please select a free newsletter(s) above.';\n        isNewsletterError.value = true;\n    }\n\n    // bail out if we're not submitting\n    if (bottomErrorMessage.value !== null && topErrorMessage.value != null) {\n        return false;\n    }\n\n    // we're submitting the page so let the user know\n    currentPage.value = 'submitting';\n\n    // store email address for next page\n    emailAddress.value = e.target.elements.emailAddress.value;\n\n    // after we capture the email, update the identity store\n    if (emailAddress?.value) {\n        const identity = useIdentityStore();\n        identity.registerEmail(emailAddress.value).then(() => 'Identity Email Registration Complete');\n    }\n    \n    const rsid = sessionStore.rsid;\n    // attempt to call with the data\n    newsletterManageService\n        ?.subscribe(\n            emailAddress.value,\n            firstName,\n            e.target.elements.SourceDesc.value,\n            rsid,\n            newsletters\n        )\n        .then((res) => {\n            if (res.processed == true) {\n                newsletterManageService.confirmation(newsletters).then((res) => {\n                    // store the newsletter names so we can display them\n                    newsletterNames.value = [];\n                    res.message.forEach((element) => {\n                        newsletterNames.value.push(element.DisplayName);\n                    });\n\n                    // we're now on the confirmation page\n                    currentPage.value = 'confirmation';\n                    // scroll to top of page\n                    window.scrollTo(0, 0);\n                });\n            } else {\n                logger.debug('Newsletter subscribe failed with message', res.message);\n            }\n        });\n\n    // always return false\n    return false;\n};\n\nconst formElement = ref<HTMLFormElement>();\nconst countInput = ref(formElement.value?.elements.newsletter.length);\nonMounted(async () => {\n    isCookieLawZone.value = (await locationService?.isCookieLawZone()) || false;\n    logger.debug('Setting cookie zone law', isCookieLawZone.value);\n\n    setInterval(() => {\n        countInput.value = 0;\n        formElement.value?.elements.newsletter.forEach((element) => {\n            if (element.checked) {\n                countInput.value++;\n                // also clear out any errors for now\n                if (isNewsletterError.value == true) {\n                    topErrorMessage.value = bottomErrorMessage.value = null;\n                    isNewsletterError.value = false;\n                }\n            }\n        });\n    }, 500);\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(_Fragment, null, [\n    _withDirectives(_createElementVNode(\"div\", null, _hoisted_2, 512), [\n      [_vShow, currentPage.value === 'submitting']\n    ]),\n    _withDirectives(_createElementVNode(\"div\", null, [\n      _createElementVNode(\"div\", _hoisted_3, [\n        _createElementVNode(\"div\", _hoisted_4, [\n          _hoisted_5,\n          _createTextVNode(\" The first edition of your newsletter(s) will be sent to you shortly. \"),\n          _createElementVNode(\"div\", _hoisted_6, [\n            _createElementVNode(\"ul\", _hoisted_7, [\n              (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(newsletterNames.value, (name) => {\n                return (_openBlock(), _createElementBlock(\"li\", {\n                  class: \"border-list-items\",\n                  key: name,\n                  textContent: _toDisplayString(name)\n                }, null, 8, _hoisted_8))\n              }), 128))\n            ])\n          ])\n        ])\n      ]),\n      _createElementVNode(\"div\", _hoisted_9, [\n        _hoisted_10,\n        _createTextVNode(\" Check out our \"),\n        _hoisted_11,\n        _createTextVNode(\", \"),\n        _hoisted_12,\n        _createTextVNode(\", and \"),\n        _hoisted_13,\n        _hoisted_14,\n        _hoisted_15,\n        _createElementVNode(\"form\", _hoisted_16, [\n          _hoisted_17,\n          _createElementVNode(\"input\", {\n            type: \"hidden\",\n            name: \"emailAddress\",\n            value: emailAddress.value\n          }, null, 8, _hoisted_18),\n          _hoisted_19\n        ])\n      ])\n    ], 512), [\n      [_vShow, currentPage.value === 'confirmation']\n    ]),\n    _withDirectives(_createElementVNode(\"div\", null, [\n      _createElementVNode(\"form\", {\n        onSubmit: onSubmit,\n        ref_key: \"formElement\",\n        ref: formElement\n      }, [\n        _createElementVNode(\"div\", _hoisted_20, [\n          _createElementVNode(\"div\", _hoisted_21, [\n            _createElementVNode(\"div\", _hoisted_22, [\n              _createTextVNode(\" Our email newsletters are a great way to receive the best content Beliefnet.com has to offer. Whether you are new to the site or a frequent visitor, we know we have something to inspire you and help guide you along your faith journey.\"),\n              _hoisted_23,\n              (topErrorMessage.value !== null)\n                ? (_openBlock(), _createElementBlock(\"span\", {\n                    key: 0,\n                    class: \"alert alert-danger\",\n                    textContent: _toDisplayString(topErrorMessage.value)\n                  }, null, 8, _hoisted_29))\n                : _createCommentVNode(\"\", true)\n            ])\n          ]),\n          _createElementVNode(\"div\", _hoisted_30, [\n            _renderSlot(_ctx.$slots, \"default\"),\n            _createElementVNode(\"div\", _hoisted_31, [\n              (countInput.value>0)\n                ? (_openBlock(), _createElementBlock(\"div\", _hoisted_32, \" Confirm your \" + _toDisplayString(countInput.value) + \" Newsletter selections below. \", 1))\n                : _createCommentVNode(\"\", true),\n              (bottomErrorMessage.value !== null)\n                ? (_openBlock(), _createElementBlock(\"span\", {\n                    key: 1,\n                    class: \"alert alert-danger\",\n                    textContent: _toDisplayString(bottomErrorMessage.value)\n                  }, null, 8, _hoisted_33))\n                : _createCommentVNode(\"\", true),\n              _hoisted_34,\n              _createElementVNode(\"input\", {\n                type: \"hidden\",\n                name: \"SourceDesc\",\n                value: _unref(sourceDesc)\n              }, null, 8, _hoisted_35),\n              _hoisted_36,\n              _hoisted_37\n            ])\n          ])\n        ])\n      ], 544)\n    ], 512), [\n      [_vShow, currentPage.value === 'initial']\n    ])\n  ], 64))\n}\n}\n\n})","import script from \"./Subscribe2.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Subscribe2.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","_createElementVNode","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","href","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","method","action","_hoisted_17","type","name","value","_hoisted_18","_hoisted_19","id","onclick","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_createStaticVNode","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","key","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_createTextVNode","_defineComponent","__name","props","sourceDesc","String","title","blurb","setup","__props","newsletterManageService","inject","locationService","toRefs","logger","useLogger","isCookieLawZone","ref","currentPage","emailAddress","newsletterNames","topErrorMessage","bottomErrorMessage","isNewsletterError","sessionStore","useSessionStore","onSubmit","e","preventDefault","newsletters","target","elements","newsletter","forEach","element","checked","push","firstName","_b","_a","trim","length","emailConfirm","identity","useIdentityStore","registerEmail","then","rsid","subscribe","SourceDesc","res","processed","confirmation","message","DisplayName","window","scrollTo","debug","formElement","countInput","onMounted","__awaiter","setInterval","_ctx","_cache","_openBlock","_createElementBlock","_Fragment","_withDirectives","_vShow","_renderList","textContent","_toDisplayString","ref_key","_createCommentVNode","_renderSlot","$slots","_unref","__exports__"],"sourceRoot":""}