{"version":3,"file":"js/marketing/paymentOptions-51f60f886cf9043d6a1d.js","mappings":"6FAAA,IAAIA,EAAM,CACT,gCAAiC,CAChC,KACA,EACA,MAED,iCAAkC,CACjC,KACA,EACA,MAED,sCAAuC,CACtC,KACA,EACA,MAED,yCAA0C,CACzC,KACA,EACA,MAED,0CAA2C,CAC1C,KACA,EACA,MAED,6CAA8C,CAC7C,KACA,EACA,MAED,yCAA0C,CACzC,KACA,EACA,MAED,4CAA6C,CAC5C,KACA,EACA,MAED,sDAAuD,CACtD,KACA,EACA,MAED,yDAA0D,CACzD,KACA,EACA,MAED,6DAA8D,CAC7D,KACA,EACA,MAED,gEAAiE,CAChE,KACA,EACA,MAED,mDAAoD,CACnD,KACA,EACA,MAED,sDAAuD,CACtD,KACA,EACA,MAED,+CAAgD,CAC/C,KACA,EACA,MAED,kDAAmD,CAClD,KACA,EACA,MAED,qDAAsD,CACrD,KACA,EACA,MAED,wDAAyD,CACxD,KACA,EACA,MAED,iCAAkC,CACjC,IACA,EACA,MAED,oCAAqC,CACpC,IACA,EACA,MAED,wCAAyC,CACxC,KACA,EACA,MAED,2CAA4C,CAC3C,KACA,EACA,MAED,uCAAwC,CACvC,KACA,EACA,MAED,0CAA2C,CAC1C,KACA,EACA,MAED,8CAA+C,CAC9C,KACA,EACA,MAED,iDAAkD,CACjD,KACA,EACA,MAED,qCAAsC,CACrC,IACA,EACA,MAED,wCAAyC,CACxC,IACA,EACA,MAED,mCAAoC,CACnC,KACA,EACA,MAED,sCAAuC,CACtC,KACA,EACA,MAED,sDAAuD,CACtD,KACA,EACA,MAED,yDAA0D,CACzD,KACA,EACA,MAED,iDAAkD,CACjD,KACA,EACA,MAED,oDAAqD,CACpD,KACA,EACA,MAED,sBAAuB,CACtB,KACA,EACA,MAED,yBAA0B,CACzB,KACA,EACA,MAED,2BAA4B,CAC3B,IACA,EACA,KAED,8BAA+B,CAC9B,IACA,EACA,KAED,qCAAsC,CACrC,KACA,EACA,MAED,wCAAyC,CACxC,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T,EAAeF,EAAfE,gBAAiBE,EAAWJ,EAAXI,YACnBQ,EAAWb,EAAMY,UAAUR,QAAQ,SAAU,IAAIA,QAAQ,KAAM,IAAIA,QAAQ,MAAO,IAElFU,EAAU,CAAEC,gBAAiB,QAC/BV,IAAeS,EAAQE,sBAAwB,GACnD,IAAMC,EAAiBC,KAAKC,aAAavB,EAAQkB,GAASM,OAAOjB,GAE9C,MAAbU,IACJb,EAAMY,UAAYC,EAAWI,EAEjC,GACF,CACD,C,oEC1CM,IAAMI,EAAY,SAACC,GACxB,IAAMC,EAAUpD,SAASqD,OAEnBC,EAAWF,EAAQG,QAAQJ,GAEjC,OAAIG,GAAY,EACPF,EAAQI,UAAUF,GAAUhB,MAAM,KAAK,GAAGA,MAAM,KAAK,GAEvD,EACT,C,kDCWA,IAV+B,SAACnB,GAC9B,IAAI+B,EAAAA,EAAAA,GAAU,oBACZ,MAAM,IAAI/D,MAAMgC,EAAMC,OAVA,WACxB,IAAMqC,EAAO,IAAIC,KACjBD,EAAKE,QAAQF,EAAKG,UAAY,GAE9B,IAAMC,EAAO,aAAAC,OAAgBL,EAAKM,eAClC/D,SAASqD,OAAM,kCAAAS,OAAqCD,EAAO,WAC7D,CAOEG,GAEAC,OAAOC,SAASC,QAAO,EACzB,C,4DCfMC,EAAW,YAGbC,EAAAA,EAAAA,MAKFC,EAAAA,EAAAA,GAAa,8BACbA,EAAAA,EAAAA,GAAa,oBACf,EAE4B,YAAxBtE,SAASuE,WACXvE,SAASwE,iBAAiB,oBAAoB,kBAAMJ,GAAU,IAE9DA,G","sources":["webpack://Emeritus/./app/javascript/chunks/ lazy ^\\.\\/.*$ chunkName: pageChunk namespace object","webpack://Emeritus/./app/javascript/modules/bootstrapper/index.js","webpack://Emeritus/./app/javascript/modules/lazyChunks/index.js","webpack://Emeritus/./app/javascript/modules/marketing/formattingNumberLocalized.js","webpack://Emeritus/./app/javascript/modules/utils/cookie.js","webpack://Emeritus/./app/javascript/modules/utils/importRejectionHandler.js","webpack://Emeritus/./app/javascript/packs/marketing/paymentOptions.js"],"sourcesContent":["var map = {\n\t\"./landing_page_template_latam\": [\n\t\t3865,\n\t\t9,\n\t\t1032\n\t],\n\t\"./landing_page_template_latam/\": [\n\t\t3865,\n\t\t9,\n\t\t1032\n\t],\n\t\"./landing_page_template_latam/index\": [\n\t\t3865,\n\t\t9,\n\t\t1032\n\t],\n\t\"./landing_page_template_latam/index.js\": [\n\t\t3865,\n\t\t9,\n\t\t1032\n\t],\n\t\"./marketing/addCountryCodeToPhoneNumber\": [\n\t\t3253,\n\t\t9,\n\t\t7222\n\t],\n\t\"./marketing/addCountryCodeToPhoneNumber.js\": [\n\t\t3253,\n\t\t9,\n\t\t7222\n\t],\n\t\"./marketing/autoPrefilledCountrySelect\": [\n\t\t1422,\n\t\t9,\n\t\t7983\n\t],\n\t\"./marketing/autoPrefilledCountrySelect.js\": [\n\t\t1422,\n\t\t9,\n\t\t7983\n\t],\n\t\"./marketing/b2b_enterprise_offering/info_bar_scroll\": [\n\t\t7145,\n\t\t7,\n\t\t2481\n\t],\n\t\"./marketing/b2b_enterprise_offering/info_bar_scroll.js\": [\n\t\t7145,\n\t\t7,\n\t\t2481\n\t],\n\t\"./marketing/b2b_enterprise_offering/inquiring_radio_button\": [\n\t\t4223,\n\t\t9,\n\t\t3263\n\t],\n\t\"./marketing/b2b_enterprise_offering/inquiring_radio_button.js\": [\n\t\t4223,\n\t\t9,\n\t\t3263\n\t],\n\t\"./marketing/b2b_user_experience/copyEditableText\": [\n\t\t7438,\n\t\t9,\n\t\t8060\n\t],\n\t\"./marketing/b2b_user_experience/copyEditableText.js\": [\n\t\t7438,\n\t\t9,\n\t\t8060\n\t],\n\t\"./marketing/b2b_user_experience/eventTracker\": [\n\t\t8201,\n\t\t9,\n\t\t2445\n\t],\n\t\"./marketing/b2b_user_experience/eventTracker.js\": [\n\t\t8201,\n\t\t9,\n\t\t2445\n\t],\n\t\"./marketing/b2b_user_experience/shareSheetEditable\": [\n\t\t7193,\n\t\t9,\n\t\t5886\n\t],\n\t\"./marketing/b2b_user_experience/shareSheetEditable.js\": [\n\t\t7193,\n\t\t9,\n\t\t5886\n\t],\n\t\"./marketing/consentRadiobutton\": [\n\t\t690,\n\t\t9,\n\t\t3748\n\t],\n\t\"./marketing/consentRadiobutton.js\": [\n\t\t690,\n\t\t9,\n\t\t3748\n\t],\n\t\"./marketing/halfsiesForm/anchorOffset\": [\n\t\t2575,\n\t\t9,\n\t\t8953\n\t],\n\t\"./marketing/halfsiesForm/anchorOffset.js\": [\n\t\t2575,\n\t\t9,\n\t\t8953\n\t],\n\t\"./marketing/halfsiesForm/prefillForm\": [\n\t\t1577,\n\t\t9,\n\t\t6813\n\t],\n\t\"./marketing/halfsiesForm/prefillForm.js\": [\n\t\t1577,\n\t\t9,\n\t\t6813\n\t],\n\t\"./marketing/halfsiesForm/stickyMicrositeNav\": [\n\t\t4313,\n\t\t9,\n\t\t3002\n\t],\n\t\"./marketing/halfsiesForm/stickyMicrositeNav.js\": [\n\t\t4313,\n\t\t9,\n\t\t3002\n\t],\n\t\"./marketing/halfsiesForm/stickyNav\": [\n\t\t161,\n\t\t9,\n\t\t8667\n\t],\n\t\"./marketing/halfsiesForm/stickyNav.js\": [\n\t\t161,\n\t\t9,\n\t\t8667\n\t],\n\t\"./marketing/handleLeadCustomForm\": [\n\t\t6013,\n\t\t9,\n\t\t8738\n\t],\n\t\"./marketing/handleLeadCustomForm.js\": [\n\t\t6013,\n\t\t9,\n\t\t8738\n\t],\n\t\"./marketing/landingPageTemplateGroupEnrollmentModal\": [\n\t\t2978,\n\t\t9,\n\t\t8096\n\t],\n\t\"./marketing/landingPageTemplateGroupEnrollmentModal.js\": [\n\t\t2978,\n\t\t9,\n\t\t8096\n\t],\n\t\"./marketing/landingPageTemplateProgressiveForm\": [\n\t\t8362,\n\t\t9,\n\t\t5849\n\t],\n\t\"./marketing/landingPageTemplateProgressiveForm.js\": [\n\t\t8362,\n\t\t9,\n\t\t5849\n\t],\n\t\"./marketing/loadGtm\": [\n\t\t6058,\n\t\t9,\n\t\t8536\n\t],\n\t\"./marketing/loadGtm.js\": [\n\t\t6058,\n\t\t9,\n\t\t8536\n\t],\n\t\"./marketing/openTypeForm\": [\n\t\t866,\n\t\t9,\n\t\t679\n\t],\n\t\"./marketing/openTypeForm.js\": [\n\t\t866,\n\t\t9,\n\t\t679\n\t],\n\t\"./marketing/removeEnrollNowButtons\": [\n\t\t3744,\n\t\t9,\n\t\t9122\n\t],\n\t\"./marketing/removeEnrollNowButtons.js\": [\n\t\t3744,\n\t\t9,\n\t\t9122\n\t],\n\t\"./marketing/rounds_version_2\": [\n\t\t1503,\n\t\t9,\n\t\t3330\n\t],\n\t\"./marketing/rounds_version_2/\": [\n\t\t1503,\n\t\t9,\n\t\t3330\n\t],\n\t\"./marketing/rounds_version_2/index\": [\n\t\t1503,\n\t\t9,\n\t\t3330\n\t],\n\t\"./marketing/rounds_version_2/index.js\": [\n\t\t1503,\n\t\t9,\n\t\t3330\n\t],\n\t\"./marketing/trackCheckoutSuccessTooltip\": [\n\t\t8717,\n\t\t9,\n\t\t538\n\t],\n\t\"./marketing/trackCheckoutSuccessTooltip.js\": [\n\t\t8717,\n\t\t9,\n\t\t538\n\t],\n\t\"./marketing/video_on_hero/video_on_hero\": [\n\t\t3510,\n\t\t9,\n\t\t1339\n\t],\n\t\"./marketing/video_on_hero/video_on_hero.js\": [\n\t\t3510,\n\t\t9,\n\t\t1339\n\t],\n\t\"./module_tasks\": [\n\t\t4113,\n\t\t9,\n\t\t9823,\n\t\t2904\n\t],\n\t\"./module_tasks/\": [\n\t\t4113,\n\t\t9,\n\t\t9823,\n\t\t2904\n\t],\n\t\"./module_tasks/index\": [\n\t\t4113,\n\t\t9,\n\t\t9823,\n\t\t2904\n\t],\n\t\"./module_tasks/index.js\": [\n\t\t4113,\n\t\t9,\n\t\t9823,\n\t\t2904\n\t],\n\t\"./profiles\": [\n\t\t1105,\n\t\t9,\n\t\t4849,\n\t\t8188\n\t],\n\t\"./profiles/\": [\n\t\t1105,\n\t\t9,\n\t\t4849,\n\t\t8188\n\t],\n\t\"./profiles/index\": [\n\t\t1105,\n\t\t9,\n\t\t4849,\n\t\t8188\n\t],\n\t\"./profiles/index.js\": [\n\t\t1105,\n\t\t9,\n\t\t4849,\n\t\t8188\n\t],\n\t\"./referrals/advocateParams\": [\n\t\t2248,\n\t\t9,\n\t\t4512\n\t],\n\t\"./referrals/advocateParams.js\": [\n\t\t2248,\n\t\t9,\n\t\t4512\n\t],\n\t\"./referrals/referralsCustomFormText\": [\n\t\t9431,\n\t\t9,\n\t\t4769\n\t],\n\t\"./referrals/referralsCustomFormText.js\": [\n\t\t9431,\n\t\t9,\n\t\t4769\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 2611;\nmodule.exports = webpackAsyncContext;","const create = () => {\n const bootstrapper = {};\n const data = document.head.dataset || {};\n\n Object.keys(data).forEach((key) => {\n const val = data[key];\n if (val.length > 0) {\n try {\n bootstrapper[key] = JSON.parse(val);\n } catch (_) {\n bootstrapper[key] = val;\n }\n }\n });\n\n return bootstrapper;\n};\n\nconst bootstrapper = create();\n\nexport default bootstrapper;\n","import importRejectionHandler from '../utils/importRejectionHandler';\n\nconst getComponent = (controllerName, ...args) => {\n /*\n Adding this because template strings cause the linter to explode and stop linting\n string concatenation actually works in this case.\n */\n // eslint-disable-next-line prefer-template\n import(/* webpackChunkName: \"pageChunk\" */ '../../chunks/' + controllerName)\n .then(({ default: pageChunk }) => {\n pageChunk(...args);\n }).catch((error) => {\n if (error.name === 'ChunkLoadError') {\n importRejectionHandler(error);\n }\n // eslint-disable-next-line no-console\n console.log(error.message);\n });\n};\n\nexport default getComponent;\n","import bootstrapper from '../bootstrapper';\n\nconst formatAmount = (amount) => {\n let formattedAmount = amount.replace(/[^0-9.,]/g, '');\n let decimalPart = false;\n const lastComma = formattedAmount.lastIndexOf(',');\n const lastPoint = formattedAmount.lastIndexOf('.');\n\n if (lastComma > lastPoint) {\n if (formattedAmount.split(',').at(-1).length === 2) { decimalPart = true; }\n formattedAmount = formattedAmount.replace(/\\./g, '').replace(/,/, '.');\n } else if (lastPoint > lastComma) {\n if (formattedAmount.split('.').at(-1).length === 2) { decimalPart = true; }\n formattedAmount = formattedAmount.replace(/,/g, '');\n } else {\n formattedAmount = formattedAmount.replace(/[.,]/g, '');\n }\n if (!decimalPart) { formattedAmount = formattedAmount.replace(/\\./g, ''); }\n\n return { formattedAmount, decimalPart };\n};\n\nexport default () => {\n const { numberLocalizedEnabled } = bootstrapper;\n\n if (numberLocalizedEnabled) {\n const locale = navigator.language;\n const prices = document.querySelectorAll('.js-number-localized');\n\n prices.forEach((price) => {\n const { formattedAmount, decimalPart } = formatAmount(price.innerHTML);\n const currency = price.innerHTML.replace(/[0-9]/g, '').replace(/,/g, '').replace(/\\./g, '');\n\n const options = { numberingSystem: 'latn' };\n if (decimalPart) { options.minimumFractionDigits = 2; }\n const formattedPrice = Intl.NumberFormat(locale, options).format(formattedAmount);\n\n if (!(currency === '%')) {\n price.innerHTML = currency + formattedPrice;\n }\n });\n }\n};\n","export const getCookie = (cookieName) => {\n const cookies = document.cookie;\n\n const startsAt = cookies.indexOf(cookieName);\n\n if (startsAt >= 0) {\n return cookies.substring(startsAt).split(';')[0].split('=')[1];\n }\n return '';\n};\n\nexport default getCookie;\n","import { getCookie } from './cookie';\n\nconst setAttemptsCookie = () => {\n const date = new Date();\n date.setDate(date.getDate() + 1); // 1 day\n\n const expires = `; expires=${date.toUTCString()}`;\n document.cookie = `previous_attempt=true; expires=${expires}; path=/`;\n};\n\nconst importRejectionHandler = (error) => {\n if (getCookie('previous_attempt')) {\n throw new Error(error.name);\n }\n\n setAttemptsCookie();\n // Hard reload will refresh user cache and try again.\n window.location.reload(true);\n};\n\nexport default importRejectionHandler;\n","import getPageChunk from '../../modules/lazyChunks';\nimport formattingNumberLocalized from '../../modules/marketing/formattingNumberLocalized';\n\nconst initPage = () => {\n const loadHandler = () => {\n // Formatting numbers localized for the country\n formattingNumberLocalized();\n };\n\n loadHandler();\n\n getPageChunk('marketing/trackpoint/load');\n getPageChunk('marketing/loadGtm');\n};\n\nif (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', () => initPage());\n} else {\n initPage();\n}\n"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","all","slice","t","keys","Object","module","exports","bootstrapper","data","document","head","dataset","forEach","key","val","length","JSON","parse","_","create","controllerName","_len","arguments","args","Array","_key","_ref","apply","error","name","importRejectionHandler","console","log","message","locale","navigator","language","querySelectorAll","price","_formatAmount","amount","formattedAmount","replace","decimalPart","lastComma","lastIndexOf","lastPoint","split","at","formatAmount","innerHTML","currency","options","numberingSystem","minimumFractionDigits","formattedPrice","Intl","NumberFormat","format","getCookie","cookieName","cookies","cookie","startsAt","indexOf","substring","date","Date","setDate","getDate","expires","concat","toUTCString","setAttemptsCookie","window","location","reload","initPage","formattingNumberLocalized","getPageChunk","readyState","addEventListener"],"sourceRoot":""}