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AAS,KACZhE,SAAS2B,eAAgB,kBAAiBtB,KAChD6D,UAAUyC,OAAO,UACzBD,EAAIxC,UAAUC,IAAI,UAElB,IAAIyC,EAAS,CACT,MAAS,sBACT,SAAYrF,OAAOsC,eAAeN,MAClC,OAAU,KACV,QAAW,sBACX,cAAiBsD,KACbC,YAAW,KACI9G,SAASC,cAAe,IAAGI,UAAgB0G,QAAQ,GAC/D,KAAK,GAGhBxF,OAAOyF,UAAYzF,OAAOyF,WAAa,GACvCzF,OAAOyF,UAAUC,KAAKL,EAAO,GAErC,CA9EQM,EAAmB,GAE3B,CAhEIC,GAEsB,MAAlB9E,EAAwB,CACxBd,OAAOC,WAAWoB,SAAQ,CAACY,EAAQ4D,KACF,MAAzB7F,OAAOsC,gBAA0BL,EAAOD,MAAMO,WAAWvC,OAAOsC,eAAeN,SAC/EhC,OAAOsC,eAAiBL,EACxB/B,EAAQ6C,cAAgB8C,EACxB3F,EAAQmC,MAAQJ,EAAOlD,GAC3B,IAEJ,IAAI2D,EAAI,IAAIoD,MAAM,UAClB3F,EAAO4F,cAAcrD,EACzB,CACJ,CA/EQsD,CAAqBjG,EAASG,QAAQ,IAEzC+F,OAAOC,QAGPpG,MAAK,QA+Md,CACA,E","sources":["webpack://static/webpack/bootstrap","webpack://static/webpack/runtime/define property getters","webpack://static/webpack/runtime/hasOwnProperty shorthand","webpack://static/./Static/data/country_states.js","webpack://static/./Areas/Honor/Static/js/Components/CareProApplyBlock.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const COUNTRY_STATES = {\r\n \"Canada\": {\r\n \"name\": \"Canada\",\r\n \"altSpellings\": [\r\n \"CA\"\r\n ],\r\n \"ISO\": {\r\n \"alpha2\": \"CA\",\r\n \"alpha3\": \"CAN\"\r\n },\r\n \"states\": [\r\n {\r\n \"abbreviation\": \"AB\",\r\n \"name\": \"Alberta\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"BC\",\r\n \"name\": \"British Columbia\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"MB\",\r\n \"name\": \"Manitoba\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"NB\",\r\n \"name\": \"New Brunswick\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"NL\",\r\n \"name\": \"Newfoundland and Labrador\",\r\n \"country\": \"CA\",\r\n \"alt\": [\r\n \"Newfoundland\",\r\n \"Labrador\"\r\n ]\r\n },\r\n {\r\n \"abbreviation\": \"NS\",\r\n \"name\": \"Nova Scotia\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"NU\",\r\n \"name\": \"Nunavut\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"NW\",\r\n \"name\": \"Northwest Territories\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"ON\",\r\n \"name\": \"Ontario\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"PE\",\r\n \"name\": \"Prince Edward Island\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"QC\",\r\n \"name\": \"Quebec\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"SK\",\r\n \"name\": \"Saskatchewan\",\r\n \"country\": \"CA\"\r\n },\r\n {\r\n \"abbreviation\": \"YU\",\r\n \"name\": \"Yukon\",\r\n \"country\": \"CA\"\r\n }\r\n ]\r\n },\r\n \"USA\": {\r\n \"name\": \"United States\",\r\n \"altSpellings\": [\r\n \"US\",\r\n \"USA\",\r\n \"United States of America\"\r\n ],\r\n \"ISO\": {\r\n \"alpha2\": \"US\",\r\n \"alpha3\": \"USA\"\r\n },\r\n \"states\": [\r\n {\r\n \"abbreviation\": \"AL\",\r\n \"name\": \"Alabama\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"AK\",\r\n \"name\": \"Alaska\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"AZ\",\r\n \"name\": \"Arizona\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"AR\",\r\n \"name\": \"Arkansas\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"CA\",\r\n \"name\": \"California\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"CO\",\r\n \"name\": \"Colorado\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"CT\",\r\n \"name\": \"Connecticut\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"DC\",\r\n \"name\": \"District of Columbia\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"DE\",\r\n \"name\": \"Delaware\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"FL\",\r\n \"name\": \"Florida\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"GA\",\r\n \"name\": \"Georgia\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"HI\",\r\n \"name\": \"Hawaii\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"ID\",\r\n \"name\": \"Idaho\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"IL\",\r\n \"name\": \"Illinois\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"IN\",\r\n \"name\": \"Indiana\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"IA\",\r\n \"name\": \"Iowa\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"KS\",\r\n \"name\": \"Kansas\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"KY\",\r\n \"name\": \"Kentucky\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"LA\",\r\n \"name\": \"Louisiana\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"ME\",\r\n \"name\": \"Maine\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MD\",\r\n \"name\": \"Maryland\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MA\",\r\n \"name\": \"Massachusetts\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MI\",\r\n \"name\": \"Michigan\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MN\",\r\n \"name\": \"Minnesota\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MS\",\r\n \"name\": \"Mississippi\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MO\",\r\n \"name\": \"Missouri\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MT\",\r\n \"name\": \"Montana\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NE\",\r\n \"name\": \"Nebraska\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NV\",\r\n \"name\": \"Nevada\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NH\",\r\n \"name\": \"New Hampshire\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NJ\",\r\n \"name\": \"New Jersey\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NM\",\r\n \"name\": \"New Mexico\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NY\",\r\n \"name\": \"New York\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"NC\",\r\n \"name\": \"North Carolina\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"ND\",\r\n \"name\": \"North Dakota\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"OH\",\r\n \"name\": \"Ohio\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"OK\",\r\n \"name\": \"Oklahoma\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"OR\",\r\n \"name\": \"Oregon\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"PA\",\r\n \"name\": \"Pennsylvania\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"RI\",\r\n \"name\": \"Rhode Island\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"SC\",\r\n \"name\": \"South Carolina\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"SD\",\r\n \"name\": \"South Dakota\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"TN\",\r\n \"name\": \"Tennessee\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"TX\",\r\n \"name\": \"Texas\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"UT\",\r\n \"name\": \"Utah\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"VT\",\r\n \"name\": \"Vermont\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"VA\",\r\n \"name\": \"Virginia\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"WA\",\r\n \"name\": \"Washington\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"WV\",\r\n \"name\": \"West Virginia\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"WI\",\r\n \"name\": \"Wisconsin\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"WY\",\r\n \"name\": \"Wyoming\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"AS\",\r\n \"name\": \"American Samoa\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"GU\",\r\n \"name\": \"Guam\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"MP\",\r\n \"name\": \"Northern Mariana Islands\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"PR\",\r\n \"name\": \"Puerto Rico\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"UM\",\r\n \"name\": \"United States Minor Outlying Islands\",\r\n \"country\": \"US\"\r\n },\r\n {\r\n \"abbreviation\": \"VI\",\r\n \"name\": \"Virgin Islands\",\r\n \"country\": \"US\"\r\n }\r\n ]\r\n }\r\n};\r\n\r\nexport default COUNTRY_STATES;","import COUNTRY_STATES from '../../../../../Static/data/country_states';\r\n\r\nfunction CareProApplyBlockInitializer() {\r\n let url = document.querySelector('#marketSelect').closest('form').dataset.marketDataUrl;\r\n if (!url)\r\n return;\r\n\r\n let modelID = document.querySelector('#marketSelect').closest('section').id;\r\n\r\n getData(url)\r\n .then((response) => {\r\n window.jobMarkets = response.markets;\r\n populateMarketSelect(response.markets);\r\n })\r\n .catch((error) => {\r\n\r\n })\r\n .then(() => {\r\n\r\n });\r\n\r\n async function getData(url = '') {\r\n const config = {\r\n method: 'GET',\r\n mode: 'cors',\r\n cache: 'no-cache',\r\n credentials: 'same-origin',\r\n headers: { \"Content-Type\": \"application/json; charset=utf-8\" },\r\n redirect: 'follow',\r\n referrerPolicy: 'no-referrer'\r\n };\r\n\r\n const response = await fetch(url, config);\r\n\r\n return response.json();\r\n }\r\n\r\n function populateMarketSelect(markets) {\r\n let select = document.getElementById('marketSelect');\r\n clearMarketSelect();\r\n\r\n if (markets.length == 0)\r\n return;\r\n\r\n let selectedOption = null;\r\n\r\n let countries = [...new Set(markets.map(a => a.country))].sort();\r\n countries.forEach((country) => {\r\n let states = [...new Set(markets.filter(m => m.country === country).map(a => a.state))].sort();\r\n\r\n states.forEach((state) => {\r\n let grpLabel = COUNTRY_STATES[country].states.filter(s => s.abbreviation === state)[0].name ?? state;\r\n let grp = document.createElement('optgroup');\r\n grp.label = grpLabel + (countries.length == 1 ? '' : `, ${country}`);\r\n let marketsInState = [...new Set(markets.filter(m => m.country === country && m.state === state))].sort();\r\n\r\n marketsInState.forEach((market) => {\r\n if (!isNullOrWhitespace(market.publishDate)) {\r\n let pubDate = new Date(market.publishDate);\r\n if (pubDate > new Date())\r\n return;\r\n }\r\n\r\n let option = document.createElement('option');\r\n option.value = market.id;\r\n option.innerHTML = market.label;\r\n grp.appendChild(option);\r\n\r\n if (window.SelectedMarket != null && market.label.startsWith(window.SelectedMarket.label)) {\r\n selectedOption = option;\r\n option.selected = true;\r\n }\r\n });\r\n\r\n select.appendChild(grp);\r\n });\r\n });\r\n\r\n addMarketSelectListeners();\r\n\r\n if (selectedOption != null) {\r\n window.jobMarkets.forEach((market, i) => {\r\n if (window.SelectedMarket != null && market.label.startsWith(window.SelectedMarket.label)) {\r\n window.SelectedMarket = market;\r\n markets.selectedIndex = i;\r\n markets.value = market.id;\r\n }\r\n });\r\n let e = new Event('change');\r\n select.dispatchEvent(e);\r\n }\r\n }\r\n\r\n function clearMarketSelect() {\r\n let select = document.getElementById('marketSelect');\r\n\r\n while (select.firstChild)\r\n select.removeChild(select.firstChild);\r\n\r\n let disabled = document.createElement('option');\r\n disabled.selected = true;\r\n disabled.disabled = true;\r\n disabled.innerHTML = \"Select Location\";\r\n select.appendChild(disabled);\r\n }\r\n\r\n function addMarketSelectListeners() {\r\n // Add Care Pro App Event Listeners\r\n let marketSelect = document.getElementById('marketSelect');\r\n marketSelect.addEventListener('change', (e) => {\r\n let formExpanded = document.getElementById('form-expanded');\r\n formExpanded.classList.add('show');\r\n\r\n let form = document.querySelector('.form');\r\n form.classList.add('expanded');\r\n document.querySelector('.care-pro-app').classList.add('expanded');\r\n\r\n let selectedMarket = window.jobMarkets\r\n .filter((market) => {\r\n return market.id == marketSelect[marketSelect.selectedIndex].value;\r\n })[0];\r\n\r\n let details = window.MarketTemplate;\r\n\r\n details = details.replaceAll('{{MARKET}}', selectedMarket.label);\r\n let hourly = '$' + selectedMarket.hourlyMin.toFixed(2) + (selectedMarket.hourlyMax ? ' - $' + selectedMarket.hourlyMax.toFixed(2) : '+');\r\n details = details.replaceAll('{{HOURLY_WAGE}}', hourly);\r\n if (selectedMarket.weekly > 0)\r\n details = details.replaceAll('{{WEEKLY_WAGE}}', '$' + selectedMarket.weekly);\r\n if (selectedMarket.extraPerqs !== undefined && selectedMarket.extraPerqs.length > 0)\r\n details = details.replaceAll('{{EXTRA_PERQS}}', selectedMarket.extraPerqs.join('

'));\r\n else\r\n details = details.replaceAll('{{EXTRA_PERQS}}', '');\r\n\r\n let jobDetails = document.getElementById('jobDetails');\r\n jobDetails.innerHTML = details;\r\n\r\n window.SelectedMarket = selectedMarket;\r\n\r\n updateFormValues(form.querySelector('form'));\r\n addButtonListener();\r\n });\r\n }\r\n\r\n function removeEmptyParamsFromUrl(url) {\r\n const urlObj = new URL(url);\r\n const params = new URLSearchParams(urlObj.search);\r\n\r\n // Remove empty parameters from the search params\r\n for (let [key, value] of params.entries()) {\r\n if (!value) {\r\n params.delete(key);\r\n }\r\n }\r\n\r\n // Update the search params on the URL object and return the updated URL\r\n urlObj.search = params.toString();\r\n return urlObj.toString();\r\n }\r\n\r\n function updateFormValues(form) {\r\n // Get the currently Select Market\r\n let serviceArea = window.SelectedMarket.label.split(\", \")[0];\r\n\r\n let url = window.SelectedMarket.jobApplicationURL[window.env] || window.jobApplicationURL;\r\n\r\n // Reset the utm_source & utm_campaign based on the ATS being utilized\r\n // Fountain ATS - Pass the Care Pro Referral through UTM Variables\r\n if (url.includes(\"fountain.com\") && !isNullOrWhitespace(window.referringCP)) {\r\n window.utm_source = 'care_pro_referral';\r\n document.getElementsByName('utm_source')[0].value = 'care_pro_referral';\r\n window.utm_campaign = window.referringCP;\r\n document.getElementsByName('utm_campaign')[0].value = window.referringCP;\r\n }\r\n // All other ATS - Pass the original UTM Variables Normally\r\n else {\r\n window.utm_source = window.original_utm_source;\r\n document.getElementsByName('utm_source')[0].value = window.original_utm_source;\r\n window.utm_campaign = window.original_utm_campaign;\r\n document.getElementsByName('utm_campaign')[0].value = window.original_utm_campaign;\r\n }\r\n\r\n // Generate the Action URL\r\n let action = url + \"?service_area=\" + encodeURIComponent(serviceArea);\r\n action += \"&funnel_id=\" + encodeURIComponent(serviceArea);\r\n action += isNullOrWhitespace(window.utm_source) ? '' : `&utm_source=${window.utm_source}`;\r\n action += isNullOrWhitespace(window.utm_medium) ? '' : `&utm_medium=${window.utm_medium}`;\r\n action += isNullOrWhitespace(window.utm_campaign) ? '' : `&utm_campaign=${window.utm_campaign}`;\r\n action += isNullOrWhitespace(window.referringCP) ? '' : `&short_url_referring_cp_id=${window.referringCP}`;\r\n action += '&int_source=mkting_website';\r\n form.action = removeEmptyParamsFromUrl(action);\r\n\r\n // Reset the Hidden Fields\r\n document.getElementsByName('funnel_id')[0].value = serviceArea;\r\n document.getElementsByName('service_area')[0].value = serviceArea;\r\n }\r\n\r\n function addButtonListener() {\r\n let btn = document.getElementById(`btn-submit-${modelID}`);\r\n btn.addEventListener('click', () => {\r\n let spinner = document.getElementById(`spinner-submit-${modelID}`);\r\n spinner.classList.remove('d-none');\r\n btn.classList.add('d-none');\r\n\r\n let dlData = {\r\n 'event': 'carepro-form-submit',\r\n 'location': window.SelectedMarket.label,\r\n 'job_id': null,\r\n 'form_id': 'carepro-form-submit',\r\n 'eventCallback': () => {\r\n setTimeout(() => {\r\n let form = document.querySelector(`#${modelID} form`).submit();\r\n }, 1500);\r\n }\r\n };\r\n window.dataLayer = window.dataLayer || [];\r\n window.dataLayer.push(dlData);\r\n });\r\n }\r\n\r\n function isNullOrWhitespace(input) {\r\n return !input || !input.trim();\r\n }\r\n\r\n}\r\nexport default CareProApplyBlockInitializer();"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","url","document","querySelector","closest","dataset","marketDataUrl","modelID","id","isNullOrWhitespace","input","trim","async","fetch","method","mode","cache","credentials","headers","redirect","referrerPolicy","json","getData","then","response","window","jobMarkets","markets","select","getElementById","firstChild","removeChild","disabled","createElement","selected","innerHTML","appendChild","clearMarketSelect","length","selectedOption","countries","Set","map","a","country","sort","forEach","filter","m","state","grpLabel","COUNTRY_STATES","states","s","abbreviation","name","grp","label","market","publishDate","Date","option","value","SelectedMarket","startsWith","marketSelect","addEventListener","e","classList","add","form","selectedMarket","selectedIndex","details","MarketTemplate","replaceAll","hourly","hourlyMin","toFixed","hourlyMax","weekly","undefined","extraPerqs","join","serviceArea","split","jobApplicationURL","env","includes","referringCP","utm_source","getElementsByName","utm_campaign","original_utm_source","original_utm_campaign","action","encodeURIComponent","utm_medium","urlObj","URL","params","URLSearchParams","search","entries","delete","toString","removeEmptyParamsFromUrl","updateFormValues","btn","remove","dlData","eventCallback","setTimeout","submit","dataLayer","push","addButtonListener","addMarketSelectListeners","i","Event","dispatchEvent","populateMarketSelect","catch","error"],"sourceRoot":""}