1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9906],{19906:function(e,t,n){n.r(t),n.d(t,{default:function(){return C}});var r=n(34051),o=n.n(r),a=n(85893),u=n(67294),i=n(11163),l=n(80074),c=n.n(l),d=n(76097),f=n(31834),s=n(62335),v=n(79730),p=n(50286);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n,r,o,a,u){try{var i=e[a](u),l=i.value}catch(c){return void n(c)}i.done?t(l):Promise.resolve(l).then(r,o)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var w=function(e){var t=(0,i.useRouter)(),n=(0,u.useContext)(d.Z).pageProps,r=n.slug,l=n.localeId,m=n.extraData.usDocLocData,y=e.item.fields.custom,w=(0,u.useMemo)((function(){return l.split("-")[1]}),[l]),C=(0,u.useMemo)((function(){return s.Z.createIdFromLocaleAndSlug(n)}),[n]),S="submitted_form_".concat(C),k=v.Z.getCookie(S),D=k?JSON.parse(k):void 0,j={},F={},I=(null===y||void 0===y?void 0:y.language)?f.Z.toMap(null===y||void 0===y?void 0:y.language,(function(e){return e.language})):void 0,Z=(null===y||void 0===y?void 0:y.countryData)?f.Z.toMap(null===y||void 0===y?void 0:y.countryData,(function(e){return e.country})):void 0,_=Boolean(v.Z.getCookie("fadFromNav")),A=(0,u.useState)(Boolean(v.Z.getCookie("universalFadSearch"))),P=A[0],U=A[1],x=(0,u.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=function(){return"/"===e.charAt(0)?e:"/".concat(e)},u=function(){return n?"?"===n.charAt(0)?n:"?".concat(n):""},i=a(),l=u(),c="".concat(i).concat(l);try{window.location.href=c}catch(d){console.log(d),t.push(c,void 0,{scroll:!0})}o&&o()}),[r]),M=function(){var e,t=(e=o().mark((function e(t){var r,a,u,i,c,d,f,m,g,C,S,k;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.leadSource,u=b(t,["leadSource"]),a){e.next=4;break}return e.abrupt("return",null);case 4:return i=s.Z.fetchUtmDataFromPageProps(n)||v.Z.getUTMCookie(),c=v.Z.getGCLIDCookie(),d=(null===i||void 0===i?void 0:i.utm_campaign)||null,f=(null===i||void 0===i?void 0:i.utm_medium)||null,m=(null===i||void 0===i?void 0:i.utm_source)||null,g=(null===i||void 0===i?void 0:i.utm_term)||null,C=(null===i||void 0===i?void 0:i.utm_content)||null,S=(null===c||void 0===c?void 0:c.gclid)||null,k=h({},u,s.Z.heeetData(),{age:(0,p.md)(t.age,null===y||void 0===y||null===(r=y.dobUtility)||void 0===r?void 0:r.mask.toUpperCase()),language:l.split("-")[0],hideDOB:!1,hideZip:!1,optinMandatory:!1,OptionalDOB:!1,localeId:l,leadUrlCampaign:d,leadUrlMedium:f,leadUrlSource:m,leadUtmTerm:g,leadUtmContent:C,GCLID_c:S,country_code:w,includeAccounts:!0}),e.next=15,(0,p.NK)(k,a,"commonForm",void 0,{pageProps:n,cookieValue:{profileIds:O((null===D||void 0===D?void 0:D.profileIds)||[]).concat([Str
1ing(u.docID)])}});case 15:return e.abrupt("return",e.sent);case 16:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function u(e){g(a,r,o,u,i,"next",e)}function i(e){g(a,r,o,u,i,"throw",e)}u(void 0)}))});return function(e){return t.apply(this,arguments)}}();I&&Object.entries(I).forEach((function(e){var t=e[0],n=e[1].languageData;j[t]=n})),Z&&Object.entries(Z).forEach((function(e){var t=e[0],n=e[1].countryData;F[t]=n}));var N=h({},y,m,{slug:r,language:l.split("-")[0].toLowerCase(),languageData:j,fadFromNav:_,universalFadSearch:P,heetFormId:C,appointmentFormCookie:D,localeId:l,country:w.toLowerCase(),countryData:F,setFadFromNav:function(e){return v.Z.putCookie("fadFromNav",e)},setUniversalFadSearch:function(e){v.Z.putCookie("universalFadSearch",e),U(e)},sendAppointment:M,changeView:x});return(0,a.jsx)(c(),h({},N))},C=w}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.