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C,CAEAT,EAAqBrK,UAAUyK,KAAO,WAClC,OAAOzL,EAAAA,EAAAA,GAAgB,sCAAuC,CAC1DS,QAAS,CACL,OAAU,mBACV,eAAgB,oBAEpB+L,KAAMC,KAAKC,UAAU,CACjB,MAASX,KAAKnB,QACd,UAAamB,KAAKM,qBAvBE,QAwBpB,OAAUN,KAAKE,iBACf,mBAAsBF,KAAKI,kBAC3B,2BAA8BJ,KAAKQ,0BACnC,OAAUR,KAAKrB,WAGtB3G,MAAK,SAASwF,GACX,OAAOA,EAASC,MACpB,IAAE,OACK,WAEHmD,QAAQC,MAAM,yDAClB,GACJ,EAEA,qBC1CAC,EAAOC,QAAUC,kBCAjBF,EAAOC,QAAUxB","sources":["webpack://front-end-build-system/./src/smartpak/httpstatus.js","webpack://front-end-build-system/./src/smartpak/url.js","webpack://front-end-build-system/./src/utils/fetch.js","webpack://front-end-build-system/./src/validation/unobtrusivehelpers.js","webpack://front-end-build-system/./src/views/emailsignup/captureemaillead.js","webpack://front-end-build-system/./src/views/emailsignup/emailsignupdata.js","webpack://front-end-build-system/./src/views/emailsignup/emailsignuppage.js","webpack://front-end-build-system/./src/views/emailsignup/viewmodels/emailsignupviewmodel.js","webpack://front-end-build-system/external var \"jQuery\"","webpack://front-end-build-system/external var \"ko\""],"sourcesContent":[" \nexport const HTTP_STATUS_OK = 200;\nexport const HTTP_STATUS_CREATED = 201;\nexport const HTTP_STATUS_NOCONTENT = 204;\nexport const HTTP_STATUS_BADREQUEST = 400;\nexport const HTTP_STATUS_UNAUTHORIZED = 401;\nexport const HTTP_STATUS_NOTFOUND = 404;\nexport const HTTP_STATUS_INTERNALSERVERERROR = 500;\nexport const HTTP_STATUS_SERVICEUNAVAILABLE = 503;\n","export function parseQueryString(queryStr) {\n var queryString = {},\n parts,\n i,\n item;\n\n if (typeof queryStr === 'undefined' || queryStr === null) {\n return queryString;\n }\n\n parts = queryStr\n .split('?')\n .pop()\n .split('&');\n i = parts.length;\n\n while (i--) {\n item = parts[i].split('=');\n queryString[item[0]] = decodeURI(item[1]);\n }\n\n return queryString;\n}\n","export function antiForgeryPost(url, options){\n let opts = {\n method: 'POST',\n ...(options || {})\n };\n\n if(smartPak.pageData && smartPak.pageData.antiForgeryToken){\n opts.headers = {\n ...opts.headers,\n 'x-requestverificationtoken': smartPak.pageData.antiForgeryToken\n };\n }\n\n return fetch(url, opts);\n}\n","import $ from 'jquery';\n\nexport async function ensureUnobtrusiveValidation() {\n if (!$?.validator?.unobtrusive?.parse) {\n await import('./unobtrusive');\n }\n}\n\nexport function clearErrors($form) {\n if ($form.valid()) {\n return;\n }\n\n $form.data('validator').resetForm();\n $form\n .find('.validation-summary-errors')\n .removeClass('validation-summary-errors')\n .addClass('validation-summary-valid');\n}\n\nexport function parseDynamicFormElements($form) {\n if (!$form || !$form.length) {\n return;\n }\n\n $form\n .removeData('validator') /* added by the raw jquery.validate plugin */\n .removeData('unobtrusiveValidation'); /* added by the jquery unobtrusive plugin*/\n\n $.validator.setDefaults({\n ignore: []\n });\n $.validator.unobtrusive.parse($form);\n}\n\nexport function isDynamicFormValid($form) {\n if (!$form || !$form.length) {\n return false;\n }\n\n parseDynamicFormElements($form);\n\n return $form.valid();\n}\n\nexport function isValidShipDate(inputDate) {\n const shipDate = new Date(inputDate);\n const todaysDate = new Date();\n const sunday = 0;\n const saturday = 6;\n const maxYearThreshold = 5;\n\n shipDate.setHours(0, 0, 0, 0);\n todaysDate.setHours(0, 0, 0, 0);\n\n if (new RegExp(`${saturday}|${sunday}`).test(shipDate.getDay())) {\n return false;\n }\n\n if (shipDate.getFullYear() - todaysDate.getFullYear() > maxYearThreshold) {\n return false;\n }\n\n return shipDate >= todaysDate;\n}\n\nexport async function wrapUnobtrusiveValidationForm($formElement) {\n const $form = ensurejQueryElement($formElement);\n\n await ensureUnobtrusiveValidation();\n\n parseDynamicFormElements($form);\n\n return {\n valid: () => $form.valid(),\n clear: () => clearErrors($form)\n };\n}\n\nfunction ensurejQueryElement($element) {\n return $element.jQuery ? $element : $($element);\n}\n","export default function captureEmailLeadEvent() {\n if (window.dataLayer) {\n window.dataLayer.push({\n event: 'NewEmailLead'\n });\n }\n}","export function getFormData(){\n return fetch('/api/CustomerContact/GetEmarsysChoiceData')\n .then(function(response){\n return response.json();\n })\n .then(function(response){\n return {\n ...response,\n content: format(response.content)\n };\n });\n}\n\nexport function getContent(){\n return fetch('/api/CustomerContact/EmailSignUp').then(r => r.text());\n}\n\nexport function format(content){\n return (content || []).reduce(function(obj, item){\n var key = item.section.substring(0, 1).toLowerCase() + item.section.substring(1);\n if(!obj[key]){\n obj[key] = [];\n }\n\n obj[key].push(item);\n\n return obj;\n }, {});\n}"," \nimport $ from 'jquery';\nimport ko from 'knockout';\nimport EmailSignupViewModel from './viewmodels/emailsignupviewmodel';\nimport { getFormData } from './emailsignupdata';\nimport { HTTP_STATUS_OK, HTTP_STATUS_NOCONTENT } from '../../smartpak/httpstatus';\nimport { isDynamicFormValid } from '../../validation/unobtrusivehelpers';\nimport { parseQueryString } from '../../smartpak/url';\nimport captureEmailLeadEvent from './captureemaillead';\n\nfunction onDocReady() {\n const $container = document.getElementById('email-sign-up-form'),\n parameters = parseQueryString(location.search),\n source = parameters.from === 'catalog' ? 'CatalogRequest' : '',\n email = parameters.email || smartPak?.cdProfileCookie?.CustomerEmail || '';\n\n if ($container) {\n const $form = $container.querySelector('form'),\n $success = document.getElementById('email-sign-up-success');\n\n $success.style.display = 'none';\n\n if ($form && $success) {\n getFormData().then(response => {\n if (response.status === HTTP_STATUS_OK) {\n const emailSignupViewModel = new EmailSignupViewModel(response.content, email, source);\n\n if ($container) {\n ko.applyBindings(emailSignupViewModel, $container);\n\n $form.addEventListener('submit', e => {\n e.preventDefault();\n if (isDynamicFormValid($($form))) {\n emailSignupViewModel.save().then(response => {\n if (response.Status === HTTP_STATUS_NOCONTENT) {\n $form.style.display = 'none';\n $success.style.display = 'block';\n }\n\n captureEmailLeadEvent();\n });\n }\n });\n }\n }\n });\n }\n }\n}\n\nif (document.attachEvent ? document.readyState === 'complete' : document.readyState !== 'loading') {\n onDocReady();\n} else {\n window.addEventListener('DOMContentLoaded', onDocReady);\n}\n","import {antiForgeryPost} from '../../../utils/fetch';\nimport ko from 'knockout';\n\nconst DEFAULT_FREQUENCY_VALUE = 'Daily';\n\nfunction EmailSignupViewModel(data, userEmail, sourceOverride){\n this.email = ko.observable(userEmail);\n this.gender = ko.observableArray(data.gender);\n this.selectedGender = ko.observable();\n this.primary = ko.observableArray(data.primary);\n this.selectedPrimary = ko.observable();\n this.frequency = ko.observableArray(data.frequency);\n this.selectedFrequency = ko.observable();\n this.specificPrimary = ko.observableArray(data.specificPrimary);\n this.selectedSpecificPrimary = ko.observable();\n this.source = sourceOverride || 'Equine Sign-Up';\n}\n\nEmailSignupViewModel.prototype.save = function(){\n return antiForgeryPost('/api/CustomerContact/EmailSubscribe', {\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n 'email': this.email(),\n 'frequency': this.selectedFrequency() || DEFAULT_FREQUENCY_VALUE,\n 'gender': this.selectedGender(),\n 'primaryRidingStyle': this.selectedPrimary(),\n 'specificPrimaryRidingStyle': this.selectedSpecificPrimary(),\n 'source': this.source\n })\n })\n .then(function(response){\n return response.json();\n })\n .catch(function(){\n // eslint-disable-next-line no-console\n console.error('A call to \\'/api/CustomerContact/EmailSubscribe\\' failed');\n });\n};\n\nexport default EmailSignupViewModel;","module.exports = jQuery;","module.exports = ko;"],"names":["HTTP_STATUS_OK","HTTP_STATUS_CREATED","HTTP_STATUS_NOCONTENT","HTTP_STATUS_BADREQUEST","HTTP_STATUS_UNAUTHORIZED","HTTP_STATUS_NOTFOUND","HTTP_STATUS_INTERNALSERVERERROR","HTTP_STATUS_SERVICEUNAVAILABLE","parseQueryString","queryStr","parts","i","item","queryString","split","pop","length","decodeURI","antiForgeryPost","url","options","opts","_objectSpread","method","smartPak","pageData","antiForgeryToken","headers","fetch","_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","asyncGeneratorStep","ensureUnobtrusiveValidation","_ensureUnobtrusiveValidation","apply","arguments","_callee","_$$validator","_context","$","unobtrusive","parse","_next","_throw","clearErrors","$form","valid","data","resetForm","find","removeClass","addClass","parseDynamicFormElements","removeData","setDefaults","ignore","isDynamicFormValid","isValidShipDate","inputDate","shipDate","Date","todaysDate","setHours","RegExp","concat","test","getDay","getFullYear","captureEmailLeadEvent","window","dataLayer","event","getFormData","response","json","content","reduce","obj","key","section","substring","toLowerCase","getContent","text","onDocReady","_smartPak","$container","document","getElementById","parameters","location","search","source","from","email","cdProfileCookie","CustomerEmail","querySelector","$success","style","display","status","emailSignupViewModel","EmailSignupViewModel","ko","addEventListener","preventDefault","save","Status","attachEvent","readyState","userEmail","sourceOverride","this","gender","selectedGender","primary","selectedPrimary","frequency","selectedFrequency","specificPrimary","selectedSpecificPrimary","body","JSON","stringify","console","error","module","exports","jQuery"],"sourceRoot":""}