1"use strict";(self.webpackChunk_jmc_janssen_medical_cloud_frontend=self.webpackChunk_jmc_janssen_medical_cloud_frontend||[]).push([[6975],{86547:function(e,t,n){n.d(t,{Y:function(){return m}});var l=n(38777),o=n(25113),r=n(77034),i=n(15621),a=n(54853),u=n(91689),c=n(2784),s=n(76814),d="style-module--onetrust-webform--e13d0";const m=e=>{let{id:t,buttonId:m,thankYouUrl:v}=e;const{0:p,1:f}=(0,c.useState)(!0);let _;const g=(0,c.useRef)(null),{t:b}=(0,s.$G)(),y=(0,r.bU)(),E=(0,l.Z)(m.matchAll(/(?:ot-)?(.+)/g));return(0,c.useEffect)((()=>{_=document.createElement("script"),_.src="https://privacyportal-de.onetrust.com/consent-embedded-forms/consent-receipt-scripts/OtFormStub.js",_.type="text/javascript",_.setAttribute("dataId",t),g.current=_,document.head.appendChild(_);const e=document.createElement("div");return e.setAttribute("class","errorDiv"),_.onload=()=>{setTimeout((()=>{var e,t,n;null===(e=window)||void 0===e||null===(t=e.OneTrust)||void 0===t||null===(n=t.webform)||void 0===n||n.InstallCP(E[0][1],{})}),2e3),setTimeout((()=>{const t=document.querySelector(".ot-phone"),l=document.querySelector(".ot-submit");t&&!document.getElementsByClassName("errorDiv")[0]&&t.appendChild(e);let o="",r="",i=!1;const a={attributes:!0};function u(){i&&v()}function c(){u()}function s(e){const t=/[^0-9]/gi;t.test(e.target.value)&&(e.target.value=e.target.value.replace(t,"")),r=e.target.value,u()}function d(){l.style.display="none";const e=document.createElement("button");e.innerText=l.innerHTML,e.setAttribute("class","dupButton"),e.disabled=!0,e.ariaDisabled="true";const t=document.getElementsByClassName("ot-btns")[0];!document.getElementsByClassName("dupButton")[0]&&t.appendChild(e)}function m(){l.style.display="inline",document.getElementsByClassName("dupButton")[0]&&document.getElementsByClassName("dupButton")[0].remove()}function v(){const e=`${o}${r||""}`;n.e(4431).then(n.bind(n,11448)).then((t=>{let{parsePhoneNumber:n}=t;const l=n(e);l&&l.valid?(m(),document.getElementsByClassName("errorDiv")[0].innerHTML=""):(d(),document.getElementsByClassName("errorDiv")[0].innerHTML=b("common:Please provide a valid phone number"))}))}if(t){const e=document.querySelectorAll("select");for(const t of e)t.onchange=()=>{u()};const n=document.querySelectorAll('input[type="text"]');for(const t of n)t.addEventListener("keyup",c);new MutationObserver((function(e){for(const t of e)if("attributes"===t.type&&"class"===t.attributeName){const e=t.target.classList.contains("ot-n");if(i=!1,m(),!e){i=!0,d();const e=document.querySelector('input[type="tel"]');e.addEventListener("keyup",s);const t=document.querySelector(".ot_cc_list");r=e.value,o=t.value,v()}}})).observe(t,a)}}),5e3)},f(!1),()=>{g.current&&document.head.removeChild(g.current)}}),[]),(0,c.useEffect)((()=>{const e=()=>{setTimeout((()=>{window.location.assign(`${u.ZP.stripTrailing("https://www.jnjmedicalcloud.nl/")}/${u.ZP.strip(y)}/${u.ZP.strip(v)}`)}),1e3)};return window.addEventListener("OneTrustWebFormSubmitted",e),()=>{window.removeEventListener("OneTrustWebFormSubmitted",e)}}),[y,v]),React.createElement("div",{id:"onetrustwebform",className:d},p&&React.createElement(a.$,null),!p&&React.createElement(o.zN,{eventType:i.G.TOOL_STEP,name:"embedded_form",type:"onetrust_consent",stepnumber:"0",stepname:"stay_in_touch",targeturl:v}),React.createElement("div",{id:"ot-container"}))}},40571:function(e,t,n){n.r(t),n.d(t,{Head:function(){return b},MyJMCPreferences:function(){return _},default:function(){return g}});var l=n(19947),o=n(13755),r=n(86547),i=n(58848),a=n(85606),u=n(91689),c=n(23322),s=n(2784),d=n(76814),m="myjmcPreferences-module--myjmc--98f55",v="myjmcPreferences-module--body--dafe5",p="myjmcPreferences-module--imrContainer--74fc0",f=n(90921);const _=e=>{let{title:t,onetrustId:n,onetrustButtonId:c,url:f,locale:_,multiLocale:g,imr:b}=e;const{t:y}=(0,d.$G)(),E=()=>{if(g){return JSON.parse('{"NL-NL": "690d94ee-035f-4d1e-aeac-1b3ff1786cee", "EN-US": "1f97c844-d68b-4c85-a1b0-8a800743cc26"}')[null==_?void 0:_.toUpperCase()]||{}.GATSBY_OT_CONSENT_ID}if({}.GATSBY_OT_CONSENT_ID)return{}.GATSBY_OT_CONSENT_ID};return(0,s.useEffect)((()=>{n&&c&&f||(E()?window.location.href=`https://privacyportal-de.onetrust.com/hosted-webform/consent/67ad883b-cc39-4c48-9764-d4b94a6e301e/${E()}`:window.location.assign(`${u.ZP.stripTrailing("https://www.jnjmedicalcloud.nl")}/${u.ZP.strip(_)}/404`))}),[n,c,f]),React.createElement("div",{id:"my_jmc_preferences",className:m},React.createElement(i.m,{title:t,marginXl:!0,renderBreadcrumb:()=>
1React.createElement(l.c,null),headerBackground:"primary",headerSize:"auto"}),React.createElement("div",{className:v},n&&c&&f?React.createElement(r.Y,{id:n,buttonId:c,thankYouUrl:f}):React.createElement(a.Z,null,y(" redirecting...",{ns:"common"})),(null==b?void 0:b.code)&&React.createElement("div",{className:p},React.createElement(o.I,{imr:b,simple:!0,noPadding:!0}))))};var g=e=>{var t,n,l,o,r,i,a,u,c,s,d,m,v,p,f,g;let{data:b,pageContext:y}=e;const{availableLocales:E,locale:h}=y,w=(null==E?void 0:E.length)>1;return React.createElement(_,{title:null==b||null===(t=b.page)||void 0===t||null===(n=t.my_preferences)||void 0===n?void 0:n.title,onetrustId:null==b||null===(l=b.page)||void 0===l||null===(o=l.my_preferences)||void 0===o?void 0:o.onetrust_id,onetrustButtonId:null==b||null===(r=b.page)||void 0===r||null===(i=r.my_preferences)||void 0===i?void 0:i.onetrust_button_id,url:null==b||null===(a=b.page)||void 0===a||null===(u=a.my_preferences)||void 0===u||null===(c=u.thank_you_page[0])||void 0===c?void 0:c.page_url,locale:h,multiLocale:w,imr:(null==b||null===(s=b.page)||void 0===s||null===(d=s.my_preferences)||void 0===d||null===(m=d.imedical_review)||void 0===m||null===(v=m.imr)||void 0===v?void 0:v[0])||(null==b||null===(p=b.page)||void 0===p||null===(f=p.imedical_review)||void 0===f||null===(g=f.imr)||void 0===g?void 0:g[0])})};function b(e){let{data:t,pageContext:n}=e;return React.createElement(f.f,function(e){var t,n,l,o,r,i,a,u,s,d,m,v,p,f,_;let{data:g,pageContext:b}=e;return{title:(null==g||null===(t=g.page)||void 0===t||null===(n=t.my_preferences)||void 0===n||null===(l=n.seo_settings)||void 0===l?void 0:l.meta_title)||(null==g||null===(o=g.page)||void 0===o||null===(r=o.seo_settings)||void 0===r?void 0:r.meta_title)||(null==b||null===(i=b.page)||void 0===i||null===(a=i.seo_settings)||void 0===a?void 0:a.meta_title),description:(null==g||null===(u=g.page)||void 0===u||null===(s=u.my_preferences)||void 0===s||null===(d=s.seo_settings)||void 0===d?void 0:d.meta_description)||(null==g||null===(m=g.page)||void 0===m||null===(v=m.seo_settings)||void 0===v?void 0:v.meta_description)||(null==b||null===(p=b.page)||void 0===p||null===(f=p.seo_settings)||void 0===f?void 0:f.meta_description),level:c.AccessLevel.level1,availableLocale:(null==b||null===(_=b.availableLocales)||void 0===_?void 0:_.length)>1?{locale:null==b?void 0:b.availableLocales,url:null==b?void 0:b.url}:null,context:{...b,purpose:"support"},service:!0}}({data:t,pageContext:n}))}}}]); 2//# sourceMappingURL=component---src-templates-services-myjmc-myjmc-preferences-tsx-dedbe8a658b9dc6db7a5.js.map
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.