{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./cartridges/app_icebreaker/cartridge/js/pages/account.js","webpack:///./cartridges/app_icebreaker/cartridge/js/components/marketingpreferences.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","9","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_siteID","_postalMasks","_shipToCountry","$address1","$address2","$zip","$city","$country","$state","Cleave","require","util","validator","formPrepare","address","facilemodal","inputs","ccTypePattern","signupProcess","marketingPreferences","passwordVisibilityToggle","addressSuggest","initAddressForm","init","continueSelector","formSelector","$addressbox","$","mask","selectedCountry","val","_stateProvince","updateState","changePostalCode","changePostalMask","hasClass","initGoogleAutocomplete","shipToCountry","address1","address2","city","postalCode","state","country","onSelection","forEach","$this","focus","blur","checkInputVal","initDirectSignupPage","$directSignupForm","valid","toggleClass","passwordFields","find","on","off","initializeEvents","e","preventDefault","base64Str","this","type","openBase64Document","$passwordResetForm","_action","array","_data","serializeArray","each","ajax","url","success","hide","show","error","$form","closest","append","submit","pendingTimeout","resetForm","countryCode","unmask","setCountry","enable","disable","CB","showModal","Urls","addAddress","validateGenericForm","submitForm","isValid","isPending","validate","pendingRequest","clearTimeout","setTimeout","_continueURL","attr","serialize","dataType","done","html","$container","empty","closeFmModal","location","addressesList","_actionURL","href","$ccType","$ccNo","$ccMonth","$ccYear","date","datePattern","onValueChanged","rawValue","target","Number","substring","initCreditCardForm","addPaymentInstrument","replace","paymentsList","pageEntry","el","resize","is","fadeOut","animate","scrollTop","offset","top","$accountNewPassword","tabs","$signinForm","$signinBtn","$loginRegisterBox","active","$loginLoyalty","initializeDOM","appPages","account","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,WACXpJ,OAAOoJ,SAAW,IAGnBpJ,OAAOoJ,SAASC,QAAUlB,G,iCCrgB1B,IAAImB,EAAWzI,EAAQ,IAwCvB,MAAMS,EAAuB,CAC5BI,KAAM,YAvCP,WACC,MAAMsD,EAAQlD,EAAE,6BAChBkD,EAAMrB,GAAG,QAAS,eAAe,SAAU4F,GAS1C,GARAA,EAAMxF,iBACNjC,EAAE,uBAAuB2C,MAAK,WAC7B,IAAI+E,EAAc,GAClB1H,EAAEmC,MAAMP,KAAK,0BAA0Be,MAAK,WAC3C+E,EAAYrM,KAAK8G,KAAK9E,UAEvB2C,EAAEmC,MAAMP,KAAK,sBAAsBzB,IAAIuH,EAAYC,KAAK,SAErDzE,EAAMzB,QAAS,CAClB+F,EAASxE,KAAKE,GAEd,IAAIV,EAAQU,EAAMR,iBACdkF,EAAS1E,EAAM3I,KAAK,UACpBsN,EAAa,GACjB7H,EAAE2C,KAAKH,GAAO,WACbqF,EAAW1F,KAAKvF,MAAQuF,KAAK9E,OAAS,MAGvC2C,EAAE4C,KAAK,CACNR,KAAM,OACNS,IAAK+E,EACLrN,KAAMsN,EACN/E,QAAS,WACR9C,EAAE,8BAA8B+C,OAChC/C,EAAE,iCAAiCgD,QAEpCC,MAAO,WACNjD,EAAE,8BAA8B+C,OAChC/C,EAAE,iCAAiCgD,cAStCjB,KAKFxF,EAAOD,QAAUkD","file":"page_account.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t9: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"appWebpackJsonp\"] = window[\"appWebpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([259,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","'use strict';\n\nvar Cleave = require('cleave.js/dist/cleave.js');\n\nvar util = require('../components/util');\nvar validator = require('../components/validator');\nvar formPrepare = require('../components/formPrepare');\nvar address = require('../components/address');\nvar facilemodal = require('../components/facile-modal');\nvar inputs = require('../components/inputs');\nvar ccTypePattern = require('../components/cc-type-pattern');\nvar signupProcess = require('../components/signup-process');\nvar marketingPreferences = require('../components/marketingpreferences');\nvar passwordVisibilityToggle = require('../components/passwordvisibilitytoggle');\nvar addressSuggest = require('../components/address-suggest');\n\nvar _siteID;\nvar _postalMasks;\nvar _shipToCountry;\n\nvar $address1;\nvar $address2;\nvar $zip;\nvar $city;\nvar $country;\nvar $state;\n\n/**\n * @private\n * @function\n * @description Password Reset\n */\n\n// ON CHECKOUT SIGNIN AND ACCOUNT LOGIN PAGE\nvar passwordReset = function () {\n\n\tvar $passwordResetForm = $(\"#PasswordResetForm\");\n\tvar _action = $passwordResetForm.data(\"action\");\n\tvar array = $passwordResetForm.serializeArray();\n\tvar _data = {};\n\t$.each(array, function () {\n\t\t_data[this.name] = this.value || \"\";\n\t});\n\tvar $email = $(\"input.resetemail\");\n\tif ($email.valid()) {\n\t\t$.ajax({\n\t\t\ttype: \"POST\",\n\t\t\turl: _action,\n\t\t\tdata: _data,\n\t\t\tsuccess: function (data) {\n\t\t\t\t$(\".password-reset\").hide();\n\t\t\t\t$(\"#confirmationcontainer\").show();\n\t\t\t},\n\t\t\terror: function () {\n\t\t\t\t$(\".password-reset\").hide();\n\t\t\t\t$(\"#confirmationcontainer\").hide();\n\t\t\t\t$(\".password-reset-500error\").show();\n\t\t\t}\n\t\t});\n\t}\n};\n\n/**\n * @private\n * @function initAddressForm\n * @description\n */\nvar initAddressForm = function () {\n\n\tinputs.init();\n\tvalidator.init();\n\tformPrepare.init({\n\t\tcontinueSelector: 'button.apply',\n\t\tformSelector: '[id$=\"EditAddressForm\"]'\n\t});\n\n\tvar $addressbox = $(\".account-addresses\");\n\n\t$address1 = $(\"input[name$='_address1']\");\n\t$address2 = $(\"input[name$='_address2']\");\n\t$zip = $(\"input[name$='_zip']\");\n\t$city = $(\"input[name$='_city']\");\n\t$country = $(\"select[name$='_country']\");\n\t$state = $(\"select[name$='_states_state']\");\n\n\t_siteID = $addressbox.data(\"siteid\");\n\t_postalMasks = $addressbox.data(\"postalmasking\");\n\t_shipToCountry = $addressbox.data(\"shiptocountry\");\n\n\tif (_siteID == \"US\" || _siteID == \"CA\") {\n\t\t$(\".phone\").mask('000-000-0000');\n\t}\n\n\tvar selectedCountry = $country.val() || _shipToCountry;\n\tif (selectedCountry != 'GB') {\n\t\t$(\".country\").val(selectedCountry);\n\t}\n\t// update state label upon entering page\n\tvar _stateProvince = $(\"#EditAddressForm\").data(\"stateprovince\");\n\taddress.updateState(selectedCountry, _stateProvince);\n\n\taddress.changePostalCode(selectedCountry, _postalMasks);\n\n\tif (_postalMasks != null && _postalMasks.length > 0) {\n\t\taddress.changePostalMask(selectedCountry, _postalMasks);\n\t}\n\n\tif ($address1.hasClass(\"googleautocomplete\")) {\n\t\tinitGoogleAutocomplete();\n\t}\n\n};\n\n/**\n * @function initGoogleAutocomplete\n * @description Initialize Google address suggestions\n */\nvar initGoogleAutocomplete = function () {\n\tvar $addressbox = $(\".account-addresses\");\n\taddressSuggest.init({\n\t\tshipToCountry: $addressbox.data(\"shiptocountry\"),\n\t\taddress1: $address1,\n\t\taddress2: $address2,\n\t\tcity: $city,\n\t\tpostalCode: $zip,\n\t\tstate: $state,\n\t\tcountry: $country,\n\t\tonSelection: () => {\n\t\t\t// Run validation on all address fields, except [phone]\n\t\t\t[$state, $zip, $city, $address2, $address1].forEach(function ($this) {\n\t\t\t\t$this.focus().blur();\n\t\t\t\tutil.checkInputVal($this);\n\t\t\t});\n\t\t}\n\t});\n};\n\n/**\n * @private\n * @function initCreditCardForm\n * @description\n */\nvar initCreditCardForm = function () {\n\tinputs.init();\n\tvalidator.init();\n\n\tvar $ccType = $(\"select[name$='paymentinstruments_creditcards_newcreditcard_type']\");\n\tvar $ccNo = $(\"input[name*='paymentinstruments_creditcards_newcreditcard_number']\");\n\n\t// init credit card form for pattern matching and card type check\n\tccTypePattern.init($ccNo, $ccType);\n\n\tvar $ccMonth = $(\"input[name$='paymentinstruments_creditcards_newcreditcard_month']\");\n\tvar $ccYear = $(\"input[name$='paymentinstruments_creditcards_newcreditcard_year']\");\n\n\tnew Cleave(\"input[name$='paymentinstruments_creditcards_newcreditcard_monthAndYear']\", {\n\t\tdate: true,\n\t\tdatePattern: ['m', 'y'],\n\t\tonValueChanged: function (e) {\n\t\t\tvar rawValue = e.target.rawValue;\n\t\t\tif (rawValue.length == 4) {\n\t\t\t\t$ccMonth.val(Number(rawValue.substring(0, 2)));\n\t\t\t\t$ccYear.val(Number('20' + rawValue.substring(2)));\n\t\t\t}\n\t\t}\n\t});\n\n\tformPrepare.init({\n\t\tcontinueSelector: 'button.apply',\n\t\tformSelector: '[id$=\"CreditCardForm\"]'\n\t});\n};\n\n/**\n * @private\n * @function\n * @description init events for the loginPage\n */\nvar initializeDOM = function (el) {\n\n\t$(window).resize(function () {\n\t\t$('.myaccount-banner-box img').each(function () {\n\t\t\tif ($(this).is(\":visible\")) {\n\t\t\t\t$(this).attr(\"src\", $(this).data(\"source\"));\n\t\t\t}\n\t\t});\n\t});\n\n\t// EDIT PROFILE PAGE\n\tif ($(\".profile\").length > 0) {\n\n\t\tif ($(\".success-msg\").length > 0) {\n\t\t\tsetTimeout(function () {\n\t\t\t\t$(\".success-msg\").fadeOut(1000);\n\t\t\t}, 5000);\n\t\t}\n\n\t\tif ($(\".change-password .error-msg\").length > 0 || $(\".change-password .success-msg\").length > 0) {\n\t\t\t$('html, body').animate({\n\t\t\t\tscrollTop: $(\".change-password\").offset().top\n\t\t\t}, 2000);\n\t\t}\n\n\t\tpasswordVisibilityToggle.init($accountNewPassword);\n\t}\n\n\t// Direct signup page\n\tinitDirectSignupPage();\n\n\t// Make sure password fields are blank at all times upon page load for setting a new password form.\n\tvar $accountNewPassword = $(\".account-newpassword\");\n\tif ($accountNewPassword.length > 0) {\n\t\t$accountNewPassword.find(\".value input\").val(\"\");\n\t\tpasswordVisibilityToggle.init($accountNewPassword);\n\t}\n\n\t// Order Details Invoice Tabbing\n\t$('#order-invoice-section').tabs();\n\n\t// avoid submitting the sign in button more than once. This only checks for login in /account page. It won't check on modal windows.\n\tvar $signinForm = $(\".pt_account .signin-form\");\n\tvar $signinBtn = $signinForm.find(\".btn\");\n\t$signinForm.submit(function (e) {\n\t\t// Check if the form has been submitted\n\t\tif ( $signinBtn.attr('attempted') == 'true' ) {\n\t\t// stop submitting the form if submit has already been submitted.\n\t\t\te.preventDefault();\n\t\t} else if ($signinForm.valid()) {\n\t\t\t$signinBtn.attr(\"attempted\", 'true');\n\t\t}\n\t});\n\n\t// LOGIN / REGISTRATION PAGE\n\tvar $loginRegisterBox = $('.login-register-box', el);\n\tif ($loginRegisterBox && $loginRegisterBox.length) {\n\t\t$loginRegisterBox.tabs({active: $loginRegisterBox.data('tab-active')});\n\t\tpasswordVisibilityToggle.init($loginRegisterBox);\n\t}\n\n\t// LOYALTY LOGIN / REGISTRATION PAGE\n\tvar $loginLoyalty = $('.join-rewards-panel', el);\n\tif ($loginLoyalty && $loginLoyalty.length) {\n\t\tpasswordVisibilityToggle.init($loginLoyalty);\n\t}\n};\n\n/**\n * Initializes the direct signup page, which a customer who did\n * retail signup will be taken to from Emarsys emails.\n *\n */\nvar initDirectSignupPage = function () {\n\t// Direct signup (with retail signup)\n\tvar $directSignupForm = $('.direct-signup');\n\tif ($directSignupForm && $directSignupForm.length) {\n\n\t\t// Check email address validity\n\t\tif (!$(\"input[name$='_customer_email']\").valid()) {\n\t\t\t$directSignupForm.toggleClass('has-invalid-email', true);\n\t\t}\n\n\t\t// Listen for focus event on the primary password field, reveal the\n\t\t// secondary password field and the submit button upon focus in.\n\t\tvar passwordFields = $directSignupForm.find(\"input[type=password]\");\n\t\tpasswordFields.on(\"focus\", function () {\n\t\t\t$directSignupForm.toggleClass('show-secondary-section', true);\n\t\t\tpasswordFields.off(\"focus\");\n\t\t});\n\t}\n};\n\n/**\n * @private\n * @function\n * @description Binds the events of the order, address and payment pages\n */\nvar initializeEvents = function () {\n\n\t// Open return label pdf\n\t$(\".pt_account .label-download\").on(\"click\", \"button.open-pdf-file\", function (e) {\n\t\te.preventDefault();\n\t\tconst base64Str = $(this).data(\"attachment-content\");\n\t\tconst type = $(this).data(\"attachment-type\");\n\t\tif (base64Str && type) {\n\t\t\tutil.openBase64Document(base64Str, type);\n\t\t}\n\t});\n\n\t// Password Resets\n\t$(\".password-reset-page\").on(\"click\", \".reset-email-btn\", function (e) {\n\t\te.preventDefault();\n\t\tpasswordReset();\n\n\t\tvar $form = $(this).closest(\"form\");\n\n\t\tif ($form && $form.valid()) {\n\n\t\t\tif ($(\"[name$='\" + $form.data(\"action\") + \"']\").length == 0) {\n\t\t\t\t$form.append(\"\");\n\t\t\t}\n\n\t\t\t$form.submit();\n\t\t}\n\t});\n\n\t// ADD/EDIT ADDRESS PAGE\n\tif ($(\".address-list\").length > 0) {\n\n\t\t// update state label upon country selection\n\t\t// and update google suggest to supported countries or disable if not.\n\t\t$(\".pt_account\").on(\"change\", \".country\", function () {\n\n\t\t\tformPrepare.resetForm();\n\n\t\t\tvar countryCode = $(this).val();\n\t\t\taddress.updateState(countryCode, \"\");\n\n\t\t\taddress.changePostalCode(countryCode, _postalMasks);\n\n\t\t\tif (countryCode == \"US\" || countryCode == \"CA\") {\n\t\t\t\t$('.textinput.phone').mask('000-000-0000');\n\t\t\t} else {\n\t\t\t\t$('.textinput.phone').unmask();\n\t\t\t}\n\n\t\t\tif ($address1.hasClass(\"googleautocomplete\")) {\n\t\t\t\tif ( countryCode == \"AU\" || countryCode == \"NZ\" ) {\n\t\t\t\t\taddressSuggest.setCountry(countryCode);\n\t\t\t\t\taddressSuggest.enable();\n\t\t\t\t} else {\n\t\t\t\t\taddressSuggest.disable();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\t$(\".pt_account\").on(\"click\", \"button.create-address\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar CB = {\n\t\t\t\tcall: function () {\n\t\t\t\t\tinitAddressForm();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tfacilemodal.showModal(\"#EditAddressModal\", Urls.addAddress, null, null, null, null, null, CB);\n\t\t});\n\n\t\t$(\".pt_account\").on(\"click\", \"#EditAddressForm .apply\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tformPrepare.validateGenericForm();\n\n\t\t\tvar $form = $(this).closest(\"form\");\n\n\t\t\tsubmitForm($form);\n\t\t});\n\n\t\tvar pendingTimeout;\n\t\tvar submitForm = function ($form) {\n\t\t\tvar isValid = $form.valid();\n\t\t\tvar isPending = $form.validate().pendingRequest !== 0;\n\n\t\t\tif (isPending) {\n\t\t\t\tif (typeof pendingTimeout !== \"undefined\") {\n\t\t\t\t\tclearTimeout(pendingTimeout);\n\t\t\t\t}\n\t\t\t\tpendingTimeout = setTimeout(submitForm, 50, $form);\n\t\t\t}\n\n\t\t\tif (!isValid || isPending) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ($(\"[name$='\" + $form.data(\"action\") + \"']\").length == 0) {\n\t\t\t\t$form.append(\"\");\n\t\t\t}\n\t\t\tvar _continueURL = $form.attr(\"action\");\n\t\t\tvar _data = $form.serialize();\n\n\t\t\tvar _req = $.ajax({\n\t\t\t\ttype: \"POST\",\n\t\t\t\turl: _continueURL,\n\t\t\t\tdata: _data,\n\t\t\t\tdataType: \"html\"\n\t\t\t});\n\n\t\t\t_req.done(function (html) {\n\t\t\t\tvar $container = $form.closest(\".fm.modal\");\n\t\t\t\t$container.empty().html(html);\n\n\t\t\t\t// Re-initialize the address form.\n\t\t\t\tinitAddressForm();\n\n\t\t\t\tif ($container.find(\".response\").length > 0) {\n\t\t\t\t\tfacilemodal.closeFmModal();\n\t\t\t\t\twindow.location = Urls.addressesList;\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\n\t\t$(\".pt_account\").on(\"click\", \".select-default\", function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar _actionURL = $(this).data(\"action\");\n\t\t\twindow.location.href = _actionURL;\n\t\t});\n\n\t\t$(\".pt_account\").on(\"click\", \".edit-address\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar _actionURL = $(this).attr(\"href\");\n\n\t\t\tvar CB = {\n\t\t\t\tcall: function () {\n\t\t\t\t\tinitAddressForm();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tfacilemodal.showModal(\"#EditAddressModal\", _actionURL, null, null, null, null, null, CB);\n\t\t});\n\n\t\t$('.pt_account').on(\"click\", \".delete-address\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar _actionURL = $(this).attr(\"href\");\n\t\t\twindow.location.href = _actionURL;\n\t\t});\n\n\t}\n\n\t// ADD/EDIT CREDIT CARDS\n\tif ($(\".account-paymentinstruments\").length > 0) {\n\n\t\t$(\".pt_account\").on(\"click\", \"button.create-creditcard\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar CB = {\n\t\t\t\tcall: function () {\n\t\t\t\t\tinitCreditCardForm();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tfacilemodal.showModal(\"#AddCreditCardModal\", Urls.addPaymentInstrument, null, null, null, null, null, CB);\n\t\t});\n\n\t\t$(\".pt_account\").on(\"click\", \"#CreditCardForm .apply\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\t// clear all space before submit the card number\n\t\t\tvar $ccNo = $(\".ccnumber\");\n\t\t\t$ccNo.val($ccNo.val().replace(/ /g, ''));\n\n\t\t\tformPrepare.validateGenericForm();\n\n\t\t\tvar $form = $(this).closest(\"form\");\n\n\t\t\tif ($form && $form.valid()) {\n\n\t\t\t\tif ($(\"[name$='\" + $form.data(\"action\") + \"']\").length == 0) {\n\t\t\t\t\t$form.append(\"\");\n\t\t\t\t}\n\n\t\t\t\tvar _continueURL = $form.attr(\"action\");\n\t\t\t\tvar _data = $form.serialize();\n\n\t\t\t\tvar _req = $.ajax({\n\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\turl: _continueURL,\n\t\t\t\t\tdata: _data,\n\t\t\t\t\tdataType: \"html\"\n\t\t\t\t});\n\n\t\t\t\t_req.done(function (html) {\n\t\t\t\t\tvar $container = $form.closest(\".fm.modal\");\n\t\t\t\t\t$container.empty().html(html);\n\n\t\t\t\t\tif ($container.find(\".response\").length > 0) {\n\t\t\t\t\t\tfacilemodal.closeFmModal();\n\t\t\t\t\t\twindow.location = Urls.paymentsList;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t$('.pt_account').on(\"click\", \".delete-card\", function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar $form = $(this).closest(\"form\");\n\n\t\t\tif ($(\"[name$='\" + $form.data(\"action\") + \"']\").length == 0) {\n\t\t\t\t$form.append(\"\");\n\t\t\t}\n\n\t\t\tif ($form) {\n\t\t\t\t$form.submit();\n\t\t\t}\n\t\t});\n\n\t}\n\n};\n\nconst pageEntry = {\n\tinit: function () {\n\t\tinitializeDOM();\n\t\tinitializeEvents();\n\n\t\tsignupProcess.init();\n\t\tmarketingPreferences.init();\n\t}\n};\n\nif (!window.appPages) {\n\twindow.appPages = {};\n}\n\nwindow.appPages.account = pageEntry;\n","var progress = require('../components/progress');\n\nfunction initializeEvents() {\n\tconst $form = $('form.marketingpreferences');\n\t$form.on('click', 'button.save', function (event) {\n\t\tevent.preventDefault();\n\t\t$('.multichoices-field').each(function() {\n\t\t\tlet fieldValues = [];\n\t\t\t$(this).find('input.checkbox:checked').each(function() {\n\t\t\t\tfieldValues.push(this.value);\n\t\t\t});\n\t\t\t$(this).find('input.hidden-field').val(fieldValues.join('|'));\n\t\t});\n\t\tif ($form.valid()) {\n\t\t\tprogress.show($form);\n\n\t\t\tvar array = $form.serializeArray();\n\t\t\tvar action = $form.data(\"action\");\n\t\t\tvar submitData = {};\n\t\t\t$.each(array, function () {\n\t\t\t\tsubmitData[this.name] = this.value || \"\";\n\t\t\t});\n\n\t\t\t$.ajax({\n\t\t\t\ttype: \"POST\",\n\t\t\t\turl: action,\n\t\t\t\tdata: submitData,\n\t\t\t\tsuccess: function () {\n\t\t\t\t\t$(\".marketingpreferences-main\").hide();\n\t\t\t\t\t$(\".marketingpreferences-success\").show();\n\t\t\t\t},\n\t\t\t\terror: function () {\n\t\t\t\t\t$(\".marketingpreferences-main\").hide();\n\t\t\t\t\t$(\".marketingpreferences-failure\").show();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}\n\nconst marketingPreferences = {\n\tinit: function () {\n\t\tinitializeEvents();\n\t}\n};\n\n\nmodule.exports = marketingPreferences;\n"],"sourceRoot":""}