PageSourceSearch

https://www.jnjmedicalcloud.fr/90859099b52c2f6a6bc201eac812dd71558a0cd0-4bd82d4c189dac64a416.js

js jnjmedicalcloud.fr collected 2026-10-09 21:48:09 UTC 35,473 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_jmc_janssen_medical_cloud_frontend=self.webpackChunk_jmc_janssen_medical_cloud_frontend||[]).push([[2551,3721],{63721:function(e,t,n){n.r(t),n.d(t,{EventCard:function(){return F},default:function(){return $}});var l=n(22069),a=n(95946),i=n(60991),r=n(65100),o=n(43720),s=n(1884),c=n(34880),d=n(85606),u=n(90780),m=n(46235),v=n(33830),f=n(23322),p=n(73281),y=n(40667),E=n(77960),g=n.n(E),h=n(2784),b=n(76814),R=n(98165),w=n(71321),_=n(42582),S=n.p+"static/fallback_image_branded-99aaac2a9d60cf1bf71c4748c71b7cdb.png",x=n.p+"static/defaultQuickEventImage-74ef65dc83d8ce2176ad134e45eda6f5.jpg",C="style-module--flag--2346c",T="style-module--date--a4e5b",L="style-module--title--0540c",N="style-module--location--fbe98",A="style-module--location_container--d1a91",O="style-module--tags--f68fb",k="style-module--event-card-body--60d0f",Z=n(3283);const P=(e,t)=>g()(e).isSame(g()(t),"day")?(0,v.P)("ll",e):`${(0,v.P)("ll",e)} - ${(0,v.P)("ll",t)}`,F=e=>{var t,n,E;let{event:g,onClickTag:F,footnotes:$,fullLengthFootnotes:D=!1,loading:z="lazy",...I}=e;const{t:B}=(0,b.$G)(),M=(0,R.Z)(),{title:j,date:W,location:U,image:q}=(e=>{const{t:t}=(0,b.$G)(),n=S;if("Contentstack_event"===e.internal.type){const l=e;switch(l.type){case f.EventType.LIVE:{const{startDateTime:e,endDateTime:a}=p.ZP.getStartAndEndDate(l);return{title:l.display_title||l.eventTitle,date:e&&a?P(e,a):t("No date available",{ns:"events"}),location:t("Online",{ns:"events"}),image:l.visual||{url:n}}}case f.EventType.ON_DEMAND:{const{unpublishDate:e,onDemandEndDate:a}=l,i=(0,v.P)("LL",null!=a?a:e);return{title:l.display_title||l.eventTitle,date:`${t("Available until",{ns:"events"})} ${i}`,location:t("Online",{ns:"events"}),image:l.visual||{url:n}}}default:return{title:null,date:null,location:null,image:null}}}if("Contentstack_cvent"===e.internal.type){const l=e,{startDate:a,endDate:i,style:r}=l;return{title:l.eventTitle,date:P(a,i),location:r===f.CventStyle.VIRTUAL?t("Online",{ns:"events"}):void 0,image:l.visual||{url:n}}}if("quick_event"===e.internal.type){const n=e,{startTime:l,endTime:a}=n;return{title:n.name,date:P(l,a),location:t("Online",{ns:"events"}),image:{url:x}}}return{title:"",date:"",location:"",image:{url:n}}})(g),{0:V,1:G}=(0,h.useState)(p.ZP.getEventStatus(g)),J=(0,Z.Pc)(),H="iconnect_event_number"in g?g.iconnect_event_number:void 0,K="image_focus"in g&&null!==(t=g.image_focus)&&void 0!==t&&t.image_focus?g.image_focus.image_focus:u.Or.CENTER_CENTER;if("Contentstack_cvent"===g.internal.type&&!J.isAuthorized(f.AccessLevel.level3,m.Z.getNonLocalizedPathname(M.pathname),H)||"Contentstack_cvent"!==g.internal.type&&!J.isAuthorized(f.AccessLevel.level3,m.Z.getNonLocalizedPathname(M.pathname),H))return null;"Contentstack_event"===g.internal.type&&(0,y.RN)(g,V,(e=>{G(e)}),"Virtual Attendee");const Q=React.createElement("div",{className:O,"data-test-id":"EventCard.Tags"},null===(n=g.related_to)||void 0===n?void 0:n.map(((e,t)=>{{const t=(null==e?void 0:e.productTitle)||(null==e?void 0:e.specialtyTitle);return F?React.createElement("button",{type:"button",key:t,"data-test-id":`EventCard.Tag.${t}`,onClick:e=>{F(t),e.preventDefault(),e.stopPropagation()},style:{background:"none",border:"none",padding:0,cursor:"pointer"}},React.createElement(c.V,null,React.createElement(d.Z,{size:"xs",weight:"400",variant:"span"},t))):React.createElement(i.ju,{key:t,"data-test-id":`EventCard.Tag.${t}`,external:!1,url:w.ec,fullWidth:!1,params:{value:t},warnAbout201Links:!1},React.createElement(c.V,null,React.createElement(d.Z,{size:"xs",weight:"400",variant:"span"},t)))}})));return React.createElement(_.J.Provider,{value:{status:V}},React.createElement(r.Z,Object.assign({image:q,imageFocus:K,banner:void 0,loading:z,title:React.createElement(React.Fragment,null,React.createElement(d.Z,{"data-test-id":"EventCard.Date",className:T,component:"p",size:"s"},W),React.createElement(a.o,{footnotes:$,fullLengthFootnotes:D,className:L,"data-test-id":"EventCard.Title"},j)),footer:React.createElement(o.z,{"data-test-id":"EventCard.Button",variant:"naked",color:"primary-550",accessoryRight:React.createElement(u.Zb.CTAIconArrow,null)},B("View details",{ns:"events"}))},I,{isTransparent:!0,isClickable:!0,tags:(null===(E=g.related_to)||void 0===E?void 0:E.length)>0?Q:void 0}),React.createElement("div",{className:k},U&&React.createElement("div",{className:A},React.createElement(s.JO,{"data-test-id":"eventLocation",icon:s.jz,type:"jnj",size:"medium"}),React.createElement(d.Z,{"data-test-id":"EventCard.Location",className:N,component:"p",size:"s"},U)),React.createElement(l.E,{status:V,className:C}))))};var $=F},22069:function(e,t,n){n.d(t,{E:function(){return d}});var l=n(85606),a=n(73281),i=n(95553),r=n.n(i),o=n(2784),s=n(76814),c={element:"style-module--element--16548",small:"style-module--small--d6b1d",default:"style-module--default--bd4fc",rounded:"style-module--rounded--a2
16f3",LIVE_NOW:"style-module--LIVE_NOW--cc4d6",icon:"style-module--icon--b197d",LIVE_SOON:"style-module--LIVE_SOON--c525d",UPCOMING_LIVE:"style-module--UPCOMING_LIVE--37b47",LIVE_FINALISED:"style-module--LIVE_FINALISED--797ea",ON_DEMAND:"style-module--ON_DEMAND--c079c"};const d=e=>{let{status:t,className:n,size:i="default",rounded:d=!1,textOnly:u=!1,shortened:m=!0}=e;const{t:v}=(0,s.$G)(),{0:f,1:p}=(0,o.useState)(a.ZP.getLiveStatusString(t,v,m));return(0,o.useEffect)((()=>{p(a.ZP.getLiveStatusString(t,v,m))}),[t,v,m]),React.createElement("div",{className:r()(c.element,c[t],u?null:c.icon,c[i],d?c.rounded:null,n),"data-test-id":"EventFlag"},React.createElement(l.Z,{component:"span",color:"inherit",weight:"700",size:"small"===i?"xs":"s"},f))}},75101:function(e,t,n){n.r(t),n.d(t,{EventOverviewBlock:function(){return K},MyEventOverviewBlock:function(){return H},default:function(){return Q}});var l=n(38777),a=n(63721),i=n(95946),r=n(60991),o=n(12550),s=n(72340),c=n(9152),d=n(77034),u=n(54853),m=n(85606),v=n(99756),f=n(46235),p=n(40578),y=n(58701),E=n(44821),g=n(3383),h=n(23322),b=n(73281),R=n(61550),w=n(95553),_=n.n(w),S=n(77960),x=n.n(S),C=n(44073),T=n.n(C),L=n(40031),N=n(35676),A=n.n(N),O=n(18149),k=n.n(O),Z=n(2784),P=n(76814),F=n(57975),$=n(98165),D=n(71321),z=n(49092),I=n(16420);x().extend(T());const B=e=>{var t,n;let{cvent:l,title:i,footnotes:o,index:s,placement:d,loading:u,fullLengthFootnotes:m}=e;const{0:v,1:p}=(0,Z.useState)(!1),{0:y,1:E}=(0,Z.useState)(null);(0,Z.useEffect)((()=>{p(!0),I.Z.get(`${f.Z.getApiBaseUrl()}events/${l.iconnect_event_number}/personalized`).then((e=>{let{data:t}=e;p(!1),E(null==t?void 0:t.personalizedLink)})).catch((()=>{p(!1)}))}),[l]);const g=y||l.registrationLink;return v?null:React.createElement(c.r,{key:l.id,type:"event",category:null===(t=l.type)||void 0===t||null===(n=t.replace(" ",""))||void 0===n?void 0:n.toLowerCase(),eventstatus:b.ZP.getTrackingStatus(l),eventpurpose:l.medical?"medical":"promote",name:i,placement:d||`event-overview:${l.iconnect_event_number}`,position:s+1,targeturl:g},React.createElement(r.ju,{url:g,commercial:!0,external:!0,fullWidth:!0,isEvent:!0},React.createElement(a.EventCard,{"data-test-id":`EventOverviewBlock.Event.${s}.${l.iconnect_event_number}`,event:l,footnotes:o,fullLengthFootnotes:m,loading:u,onClickTag:()=>{}})))};var M=function(e,t,n){void 0===n&&(n=!0);let l=e;return(null==t?void 0:t.length)>0&&(l=l.map((e=>{const n=t.find((t=>t.iconnect_event_number===e.iconnect_event_number));return n||e}))),n?l:l.filter((e=>e.medical))},j=(e,t,n,l,a,i,r)=>null==e?void 0:e.reduce(((e,o)=>{var s,c;if("Contentstack_event"===(null==o||null===(s=o.internal)||void 0===s?void 0:s.type)){if(!i.isAuthorized(h.AccessLevel.level3,r,o.iconnect_event_number))return"undefined"!=typeof window&&console.info(`Not displaying eligible event ${o.iconnect_event_number} because the user is not authorized to see this event`),e;const t=null==n?void 0:n.find((e=>(null==e?void 0:e.eventNumber)===(null==o?void 0:o.iconnect_event_number))),s=null==l?void 0:l.find((e=>(null==e?void 0:e.eventNumber)===(null==o?void 0:o.iconnect_event_number)));if(t)if(b.ZP.isClosedOnDemandEventAndUserIsNotEligible({...o,registered:!!s,attended:null==s?void 0:s.attended}))console.info(`Not displaying eligible event ${o.iconnect_event_number} because it is an on demand event with closed registration, and the user hasn't attended or registered`);else{b.ZP.isExpiredOnDemandEvent(o,a)?console.info(`Not displaying eligible event ${o.iconnect_event_number} because it is an on demand event outside of publish limit`):e.push({...o,unpublishDate:t.publicationEndDate,medical:t.medical})}}else if("Contentstack_cvent"===(null==o||null===(c=o.internal)||void 0===c?void 0:c.type)){if(!i.isAuthorized(h.AccessLevel.level3,r,o.iconnect_event_number))return"undefined"!=typeof window&&console.info(`Not displaying eligible event ${o.iconnect_event_number} because the user is not authorized to see this cevent`),e;const n=null==t?void 0:t.find((e=>e.eventNumber===o.iconnect_event_number));n?e.push({...o,startDate:n.startDate,endDate:n.endDate,summaryLink:n.summaryLink,location:n.location,style:n.style,type:h.EventType.LIVE}):console.info("Not displaying cvent because it isn't available in iConnect")}else{if(!i.isAuthorized(h.AccessLevel.level3))return"undefined"!=typeof window&&console.info(`Not displaying eligible event ${o.iconnect_event_number} because the user is not authorized to see this event`),e;const t=null==n?void 0:n.find((e=>e.id===(null==o?void 0:o.id)));t?b.ZP.isPublishedQuickEvent(o)?e.push({...o,medical:["Medical Educational Event","Medical Education Event","Medical_Educational_Event_JJ"].includes(null==o?void 0:o.eventType),type:h.EventType.LIVE,related_to:[],internal:{type:"quick_event"}}):console.info(`Not displaying eligible quick event ${null==o?void 0:o.id} because it is outside the publication period`,t):console.info("Not displaying eligible quick event because it isn't published in iConnect")}return e}),[]),W=n(62559),U=n(93508),q="style-module--overviewBlock--4a73b",V="style-module--cards--d0c
15f",G="style-module--list--1dc79",J=n(3283);x().extend(T());const H=e=>{var t;let{title:n,type:u,displayMode:p="Cards",showDisplayTitle:y=!0,linkToFullOverviewPage:E=!0,relatedTo:h=null,events:w,commercial:S=!0,footnotes:x,placement:C,loading:T="lazy",enableSlider:L=!0,displayedFilters:N=[]}=e;const{0:O,1:k}=(0,Z.useState)(w),{t:$}=(0,P.$G)(),z=(0,v.a)(v.R.sm),I=(0,F.I0)(),M=(0,d.bU)();if((0,Z.useEffect)((()=>{I((0,g.ZH)())}),[]),!w||0===w.length)return null;(0,Z.useEffect)((()=>{let e=[],t=[];for(const l of w){var n;e=e.concat(l.related_to.filter((e=>"Contentstack_product"===e.__typename))),(null==l||null===(n=l.smpc_reference)||void 0===n?void 0:n.length)>0&&(t=t.concat(l.smpc_reference))}const a=(0,l.Z)(new Map(e.map((e=>[e.uid,e]))).values());return I((0,g.t8)({products:a,refs:t})),function(){I((0,g.ZH)())}}),[]);const j=()=>{const e=[];return null!=N&&N.includes("Product")&&e.push({name:$("Product",{ns:"common"}),id:"product",getFilterOptions:e=>A()(null==e?void 0:e.map((e=>e.related_to.map((e=>{let{productTitle:t}=e;return t})))))}),null!=N&&N.includes("Specialty")&&e.push({name:$("Specialty",{ns:"common"}),id:"specialty",getFilterOptions:e=>A()(null==e?void 0:e.map((e=>e.related_to.map((e=>{let{specialtyTitle:t}=e;return t})))))}),null!=N&&N.includes("Type")&&e.push({name:$("Type of event",{ns:"common"}),id:"eventtype",getFilterOptions:e=>A()(null==e?void 0:e.map((e=>$(e.type,{ns:"events"}))))}),e},{0:J,1:H}=(0,Z.useState)(R.Z.generateOptions((null==w?void 0:w.filter((e=>{var t;return"quick_event"!==(null==e||null===(t=e.internal)||void 0===t?void 0:t.type)})))||[],j()));(0,Z.useEffect)((()=>{const e=R.Z.onFilterOptionsChange(J,w,j());k(e)}),[J]);const K=()=>O.map(((e,t)=>{var n,l,i,o,s;const d="Static"===u?x:null===(n=e.fields)||void 0===n?void 0:n.footnotes,m=(null==d||null===(l=d.find((t=>t.mapped_text===e.display_title)))||void 0===l?void 0:l.text_without_footnotes)||(null==e?void 0:e.display_title)||(null==e?void 0:e.eventTitle)||(null==e?void 0:e.name),v="quick_event"===(null==e||null===(i=e.internal)||void 0===i?void 0:i.type)?e.eventNumber:e.iconnect_event_number;return"Contentstack_cvent"===(null==e?void 0:e.internal.type)?React.createElement(B,{key:e.id,cvent:e,title:m,footnotes:d,index:t,placement:C,loading:T,fullLengthFootnotes:"Dynamic"===u}):React.createElement(c.r,{key:e.id,type:"event",category:null===(o=e.type)||void 0===o||null===(s=o.replace(" ",""))||void 0===s?void 0:s.toLowerCase(),eventstatus:b.ZP.getTrackingStatus(e),eventpurpose:e.medical?"medical":"promote",name:m,placement:C||`event-overview:${v}`,position:t+1,targeturl:f.Z.getFullUrl(`${D.ec}/${v}`,M,!1)},React.createElement(r.ju,{url:`${D.ec}/${v}`,commercial:!e.medical,fullWidth:!0,isEvent:!0,eventNumber:v},React.createElement(a.EventCard,{"data-test-id":`EventOverviewBlock.Event.${t}.${v}`,event:e,footnotes:d,fullLengthFootnotes:"Dynamic"===u,loading:T,onClickTag:()=>{}})))})),Q=(null==x||null===(t=x.find((e=>e.mapped_text===n)))||void 0===t?void 0:t.text_without_footnotes)||n;return L?React.createElement(o.T,{id:`EventOverviewBlock.${Q}`,title:n,titleWithoutFootnotes:Q,showDisplayTitle:y,displayMode:p,seeAllButton:E&&S?React.createElement(r.ju,{external:!1,url:D.ec,"data-test-id":"EventOverviewBlock.SeeAll",fullWidth:z,params:h&&{value:h.map((e=>e.title))}},React.createElement(s.j,{fullWidth:z,type:u,staticLiteral:$("See all events",{ns:"common"}),dynamicLiteral:$("See all events",{ns:"common"})})):void 0,footnotes:x},K()):React.createElement("div",{"data-test-id":`EventOverviewBlock.${Q}`},y&&React.createElement(m.Z,{"data-test-id":`${Q}.Title`,variant:"h3"},React.createElement(i.o,{footnotes:x},n)),React.createElement(W.h,null,React.createElement(U.F,{productTagsEnabled:!0,id:"EventOverviewBlock.FilterControlPanel",filter:J,showLabelBelowFilter:!0,onChangeFilter:(e,t)=>{H(Array.isArray(t)?R.Z.onResetFilter(J,e):R.Z.onChangeFilter(J,e,t))},onRemoveFilter:e=>{H(R.Z.onFilterByTags(J,[e.value],!1))},onResetFilters:()=>{H(R.Z.generateOptions((null==w?void 0:w.filter((e=>{var t;return"quick_event"!==(null==e||null===(t=e.internal)||void 0===t?void 0:t.type)})))||[],j()))}})),React.createElement("div",{className:_()(q,"Cards"===p?V:G),"data-test-id":"EventOverviewBlock.Events"},K()),E&&React.createElement(r.ju,{external:!1,url:D.ec,"data-test-id":"EventOverviewBlock.SeeAll",params:[]},React.createElement(s.j,{type:"Dynamic",staticLiteral:$("See all events",{ns:"common"}),dynamicLiteral:$("See all events",{ns:"common"})})))},K=e=>{let{type:t,events:n,filter:a,relatedEvent:i,numberOfResults:r,commercial:o=!0,placement:s=null,loading:c="lazy",cvents:m=[],setNumberOfRelatedEvents:v,enableSlider:g=!0,displayedFilters:R=[],...w}=e;const _=(0,F.I0)(),S=(0,F.v9)((e=>e.eligibleEvents),k()),x=(0,F.v9)((e=>
1e.eventsAttendance),k()),C=(0,F.v9)((e=>e.profile.data),k()),T=(0,J.Pc)(),N=(0,$.Z)(),A=(0,d.bU)()||"en-us",O=(0,Z.useContext)(z.f)||[],{allContentstackEvent:P}=(0,L.useStaticQuery)("2274142531");if((0,Z.useEffect)((()=>{_((0,p.zD)()),_((0,y.zD)()),_((0,E.zD)())})),null!=S&&S.loading||null!=x&&x.loading)return React.createElement(u.$,null);const D="Static"===t?M(j(n,m,S.data,x.data,C,T,f.Z.getNonLocalizedPathname(N.pathname)),m,o):(()=>{const e=j([].concat((0,l.Z)(P.nodes),(0,l.Z)(m),(0,l.Z)(O)),m,S.data,x.data,C,T,f.Z.getNonLocalizedPathname(N.pathname)).filter((e=>{var t,n,l,r;return(!i||e.id!==i.id)&&(("quick_event"===e.internal.type||!A||(null===(t=e.publish_details)||void 0===t?void 0:t.locale)===A)&&(!(null!=a&&null!==(n=a.relatedTo)&&void 0!==n&&n.length&&(null==a||null===(l=a.relatedTo)||void 0===l||!l.some((t=>{var n;return null===(n=e.related_to)||void 0===n?void 0:n.some((e=>e.id===t.id))}))))&&((null==a||!a.regulatoryStatusFilter||!((null==a?void 0:a.regulatoryStatusFilter)===h.CMS_PROMOTIONAL_CONTENT&&e.medical||(null==a?void 0:a.regulatoryStatusFilter)===h.CMS_MEDICAL_CONTENT&&!e.medical))&&(!(!o&&!e.medical)&&!(null!=a&&null!==(r=a.eventType)&&void 0!==r&&r.length&&(null==a?void 0:a.eventType.indexOf(e.type))<0)))))}));return b.ZP.sortEvents(e).slice(0,r||e.length)})();return v&&v(D.length),D.length>0?React.createElement(H,Object.assign({},w,{type:t,events:D,relatedTo:"Dynamic"===t?null==a?void 0:a.relatedTo:null,commercial:o,placement:s,loading:c,enableSlider:g,displayedFilters:R})):null};var Q=K},87200:function(e,t,n){n.r(t),n.d(t,{FormAssemblyBlock:function(){return T},default:function(){return L}});var l=n(38777),a=n(80972),i=n.n(a),r=n(25113),o=n(15621),s=n(49525),c=n(17029);const d=e=>{const t=document.querySelectorAll(e);null!=t&&t.length&&(0,l.Z)(t).forEach((t=>{const n=t.getElementsByTagName("select")[0];n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width="1px",n.style.height="1px",n.style.padding="0",n.style.margin="-1px",n.style.overflow="hidden",n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="nowrap",n.style.border="0";const a=(0,l.Z)(n.options).map((e=>({value:e.value,text:e.text,id:e.id,isSelected:e.selected}))),i=t.getElementsByTagName("div");for(;i.length>0;)i[0].remove();const r=document.createElement("div");t.appendChild(r);(0,c.createRoot)(r).render(React.createElement(s.ZP,{name:n.name,onChange:t=>{u(n,t),d(e)}},a.map((e=>React.createElement(s.ZP.Option,{key:e.id,value:e.value,selected:n.value===e.value},e.text)))))}))},u=(e,t)=>{if(!t)return void(e.value="");const n=t.value;e.value=n;const l=new Event("change",{bubbles:!0});e.dispatchEvent(l)};var m=n(54853),v=n(85606),f=n(76093),p=n(91689),y=n(16420),E=n(40853),g=n(2784),h=n(76814),b="form-assembly-module--loading--8b27b",R="form-assembly-module--form-assembly-webform--282ee";const w=1,_=0,S=e=>{let{formAssemblyRestUrl:t,proxyUrl:n="https://www.jnjmedicalcloud.fr",formAssemblyDomain:a="https://janssenpharmaceutica.tfaforms.net",compliance:s=!1,complianceText:c="",params:u,title:S}=e;const x=p.ZP.stripTrailing(n),C=null!=t&&t.match(/^(http|https):\/\//i)?null==t?void 0:t.replace(a,`${x}/formassembly`):"",{0:T,1:L}=(0,g.useState)(new URL(C)),N=null==t?void 0:t.slice(t.lastIndexOf("/")+1),A=(0,f.Z)(`formassembly-${N}`);u&&Object.keys(u).forEach((e=>{T.searchParams.append(e,u[e])}));const{0:O,1:k}=(0,g.useState)(null),{0:Z,1:P}=(0,g.useState)([]),{0:F,1:$}=(0,g.useState)(!1),{0:D,1:z}=(0,g.useState)(null),{0:I,1:B}=(0,g.useState)(!1),{0:M,1:j}=(0,g.useState)(!1),{0:W,1:U}=(0,g.useState)(!1),q=(0,g.useRef)(0),V=(0,g.useRef)(0),G=(0,g.useRef)(!1),{t:J}=(0,h.$G)(),H=e=>{var t;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.src;"load"===e.type&&P((e=>e.map((e=>n===e.script.src?{script:e.script,src:n,status:w}:e))))};function K(){V.current=V.current+1,V.current===q.current&&B(!0)}(0,g.useEffect)((()=>{Z.every((e=>e.status!==_||(document.head.appendChild(e.script),e.src||P((t=>(t[null==t?void 0:t.indexOf(e)]={script:e.script,src:e.src,status:w},(0,l.Z)(t)))),!1))),Z.length>0&&Z.every((e=>e.status===w))&&$(!0)}),[Z]),(0,g.useEffect)((()=>{F&&I&&window.document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0,cancelable:!0}))}),[F,I]),(0,g.useEffect)((()=>
1{if(!I)return;const e=document.getElementById(A),t=null==e?void 0:e.querySelector('[id^="submit_button"]');if(!e||!t)return;const n=()=>{if(G.current)return;const n=e.querySelector('[id^="g-recaptcha-response"]'),l=!W||Boolean(null==n?void 0:n.value);t.disabled=!(F&&l)};n();const l=W?window.setInterval(n,500):void 0;return()=>{void 0!==l&&window.clearInterval(l)}}),[I,F,W,A]),(0,g.useEffect)((()=>{$(!1),B(!1),k(null),P([]),U(!1),G.current=!1,q.current=0,V.current=0;const e=[];return y.Z.get(T.toString()).then((t=>{if(t&&200===(null==t?void 0:t.status)){const{formHeaderRaw:n,formBody:a}=(e=>{var t,n;const a="\x3c!-- FORM: BODY SECTION --\x3e",i=e.includes(a)?e:e.replace('<div class="wFormContainer"',`${a}\n                   <div class="wFormContainer"`),r=i.includes("<head>")&&i.includes("</head>")?i.substring(i.indexOf("<head>")+6,i.indexOf("</head>")-1):i.includes(a)&&(null==i||null===(t=i.split(a))||void 0===t?void 0:t[0])||"",o=i.includes("<body>")&&i.includes("</body>")?i.substring(i.indexOf("<body>")+6,i.indexOf("</body>")-1):i.includes(a)?null==i||null===(n=i.split(a))||void 0===n?void 0:n[1]:i,s=(0,l.Z)(o.matchAll(/(<script[\s\S]*?script>)/gm)).map((e=>e[0])).join(""),c=o.replace(/<script[\s\S]*?script>/gm,"");let d=(0,E.ZP)(c,{trim:!0})||[];return"string"!=typeof d&&Array.isArray(d)||(d=[d]),{formHeaderRaw:r+s,formBody:d}})(null==t?void 0:t.data),i=Array.from((new DOMParser).parseFromString(n,"text/html").head.children),r=i.filter((e=>{var t;return!("SCRIPT"===e.tagName&&null!==(t=e.getAttribute("src"))&&void 0!==t&&t.includes("recaptcha"))})),o=i.filter((e=>{var t;return"SCRIPT"===e.tagName&&(null===(t=e.getAttribute("src"))||void 0===t?void 0:t.includes("recaptcha"))}));U(o.length>0);const c=[];[].concat((0,l.Z)(r),(0,l.Z)(o)).forEach((t=>{var n;if("SCRIPT"===t.tagName)c.push(t),(e=>{if(!s)return;const t=document.createElement("script");t.async=e.async,t.defer=e.defer;const n=e.getAttribute("src");if(n){t.src=n;const l=e.getAttribute("data-for");l&&t.setAttribute("data-for",l),t.addEventListener("load",H)}else{var a;t.text=null!==(a=e.textContent)&&void 0!==a?a:""}P((e=>[].concat((0,l.Z)(e),[{script:t,src:null!=n?n:void 0,status:_}])))})(t);else if("LINK"===t.tagName&&null!==(n=t.getAttribute("rel"))&&void 0!==n&&n.includes("stylesheet")){const n=document.createElement("link");n.rel="stylesheet";const l=t.getAttribute("href");l&&(n.href=l),q.current=q.current+1,e.push(n),n.addEventListener("load",K),n.addEventListener("error",K),document.head.appendChild(n)}else document.head.appendChild(document.adoptNode(t))})),0===c.length&&$(!0),0===q.current&&0===V.current&&B(!0),k(a)}else z(J("An unknown error occurred",{ns:"errors"}))})),()=>{for(const t of e)t.removeEventListener("load",K),t.removeEventListener("error",K),t.remove()}}),[T]);const Q=e=>{G.current=!1,e.disabled=!1,e.value="Submit",e.style.color=""},Y=async(e,t)=>{let n=0;for(;;)try{return await y.Z.put(e.presignedUrl,t.files[0],{headers:{...e.neededHeaders,"Content-Type":t.files[0].type}})}catch(l){if(n++,n>=5)throw z("Something went wrong while uploading the files, exceeded maximum number of tries: 5. Refresh and try again"),l}},X=e=>!Array.from(e.parentElement.classList).some((e=>e.includes("field-hint"))),ee=e=>async t=>{t.preventDefault();if(!await new Promise((e=>setTimeout((()=>{var n;const l=null==t||null===(n=t.target)||void 0===n?void 0:n.querySelectorAll(".errFld");null!=l&&l.length?null==l||l.forEach((t=>{var n,l;const a=null==t||null===(n=t.querySelector("label"))||void 0===n?void 0:n.textContent,r=null==t||null===(l=t.querySelector(".errMsg"))||void 0===l?void 0:l.textContent;i()().trackEvent({event:o.G.TOOL_ERROR,info:{name:S,type:"FormAssembly",stepnumber:"0",stepname:"form",fieldname:a,errormessage:r,errortype:"user"}}),e(!1)})):e(!0)}),500))))return!1;G.current=!0;const n=Array.from(e.elements).filter((e=>e.id.startsWith("submit_button")))[0],a=Array.from(e.elements).filter((e=>e.id.startsWith("tfa_")&&"file"!==e.type&&"radio"!==e.type&&"checkbox"!==e.type&&X(e))),r=Array.from(e.elements).filter((e=>e.id.startsWith("tfa_")&&("radio"===e.type||"checkbox"===e.type)&&X(e))),s=Array.from(e.elements).filter((e=>e.id.startsWith("tfa_")&&"file"===e.type&&X(e))),c={};for(const e of a)"SELECT"==e.tagName?c[e.name]=e.multiple?(d=e,Array.from(d.options).reduce(((e,t)=>t.selected?[].concat((0,l.Z)(e),[t.value]):e),[])):e.value:c[e.name]=e.value;var d;for(const e of r)e.checked&&(c[e.name]=e.value);for(const e of r)e.checked&&(e.id.startsWith("tfa_")&&e.id===e.value||(c[e.id]=e.value));const u=Array.from(e.elements).find((e=>e.id.startsWith("g-recaptcha-response")));let m;if(null!=u&&u.value&&(c["g-recaptcha-response"]=u.value),!M&&s.length>0){if(s.reduce(((e,t)=>{var n,l;return e+((null==t||null===(n=t.files)||void 0===n||null===(l=n[0])||void 0===l?void 0:l.size)||0)}),0)>36700160)return z("Exceeded maximum aggregate file size"),Q(n),!1;const e=await(async e=>{try{const t=e.reduce(((e,t)=>t.files.length>0?[].concat((0,l.Z)(e),[{name:t.files[0].name,size:t.files[0].size}]):e),[]);if(t.length<=0)return[];const{data:n}=await y.Z.post("/v5/files/upload/presigned",{files:t});return n}catch(t){z("Something went wrong while generating the file upload urls. Try submitting again")}})(s),t=await(async(e,t)=>{const n={};t.forEach((t=>{const l=e.find((e=>{var l,a,i,r;return(null===(l=e.files)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.name)===t.name&&(null==e||null===(i=e.files)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.size)===t.size&&!(e.id in n)}));n[t.uniqueIdentifier]=null==l?void 0:l.id}));try{return await Promise.all(t.map((async t=>{await Y(t,e.find((e=>(null==e?void 0:e.id)===n[t.uniqueIdentifier])))}))),j(!0),n}catch(l){z("Something went wrong while uploading the files. Try submitting again")}})(s,e);m=e.map((e=>({name:e.name,uniqueIdentifier:e.uniqueIdentifier,key:t[e.uniqueIdentifier]})))}const v={postBody:c,isMultipart:s.length>0,...m&&m.length>0&&{files:m}},f=await(async(e,t)=>{try{const{data:t}=await y.Z.post("/v5/formassembly/upload",e);return null==t?void 0:t.redirect}catch(n){throw z("Something went wrong while responding to the form. Refresh and try again"),Q(t),n}})(v,n);return f&&!f.includes("forms")?(i()().trackEvent({event:o.G.TOOL_LASTSTEP,info:{name:S,type:"FormAssembly",stepnumber:"1",stepname:"form_laststep"}}),window.location=f):f&&f.includes("forms")?L(new URL(f)):(i()().trackEvent({event:o.G.TOOL_ERROR,info:{name:S,type:"FormAssembly",stepnumber:"0",stepname:"form",errormessage:"Something went wrong while responding to the form",errortype:"user"}}),Q(n)),!1};(0,g.useEffect)((()=>{var e;const t=null===(e=document)||void 0===e?void 0:e.getElementById(A),n=null==t?void 0:t.getElementsByTagName("form")[0],l=ee(n);null==n||n.addEventListener("submit",l);const a=()=>j(!1),i=Array.from((null==n?void 0:n.elements)||[]).filter((e=>e.id.startsWith("tfa_")&&"file"===e.type));
1return i.forEach((e=>{e.addEventListener("change",a)})),()=>{null==n||n.removeEventListener("submit",l),i.forEach((e=>{e.removeEventListener("change",a)}))}})),(0,g.useEffect)((()=>{if(window.location.search.match(/internal=(true|1)/i)&&I){const e=/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i;document.querySelectorAll("input:not([value=''])").forEach((t=>{t.value.toString().match(e)&&(t.value=`${t.value}_internal`)}));const t=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/;document.querySelectorAll("input:not([value=''])").forEach((e=>{e.value.toString().match(t)&&(e.value="PLEASE FILL OUT YOUR TESTING EMAIL ADDRESS HERE")})),alert("We detected you are testing this form submission internally. Please make sure to use a fake email address!\nWe don't want to trigger emails to real people.")}d(".inputWrapper:has(select)")}),[I]);return(0,g.useMemo)((()=>React.createElement("div",{id:A,key:A,className:R},s?React.createElement(React.Fragment,null,O&&I?React.createElement(React.Fragment,null,React.createElement(r.zN,{eventType:o.G.TOOL_STEP,name:S,type:"FormAssembly",stepnumber:"0",stepname:"form"}),React.createElement("div",{key:"form-data"},O)):React.createElement("div",{className:b},React.createElement(m.$,{size:"large"})),D&&React.createElement(v.Z,{key:"error",color:"error"},D)):React.createElement(v.Z,{"data-test-id":"Compliance-Error-Message"},c))),[O,I,D])};var x=n(16974),C=n(57975);const T=e=>{var t,n,l;let{title:a,formAssemblyRestUrl:i,compliance:r=!1,proxyUrl:o}=e;const{t:s}=(0,h.$G)(),c=(0,C.v9)((e=>e.profile)),d="undefined"!=typeof window&&Object.fromEntries(new URLSearchParams(null===(t=window)||void 0===t||null===(n=t.location)||void 0===n?void 0:n.search)),u=(null==c||null===(l=c.data)||void 0===l?void 0:l.webId)||(0,x.Z)("webid",d),m=(0,x.Z)("codsId",d),v={...d,...u&&{webid:u},...m&&{codsid:m}};return!c.loading&&React.createElement(S,{formAssemblyRestUrl:i,proxyUrl:null!=o?o:"https://www.jnjmedicalcloud.fr",compliance:r,complianceText:s("Please update your compliance settings to see the form",{ns:"common"}),params:v,title:a})};var L=T},12550:function(e,t,n){n.d(t,{T:function(){return G}});var l=n(95946),a=n(84633),i=n(62611),r=n(85606),o=n(2784),s=n(1884),c=n(54255),d=n(95553),u=n.n(d),m=n(77034),v=n(52145),f="style-module--element--93d9c",p="style-module--wrapper--cc0d2",y="style-module--arrowButtonLeft--20a1a",E="style-module--arrowButtonRight--a5fc1",g="style-module--disabled--19556",h="style-module--arrowSpacing--a9029",b="style-module--sliderContainer--8af93",R="style-module--sliderSection--d8af2",w="style-module--scrollbarContainer--f07eb",_="style-module--buttonContainer--8320c",S="style-module--rangeSlider--d3ae8",x="style-module--scrollBarColor--a99b8",C="style-module--showScrollBar--1e62d",T="style-module--inActive--7c186",L="style-module--containerWidth--4038b",N=n(14211),A=n(76814);let O=function(e){return e[e.DESKTOP=3]="DESKTOP",e[e.TABLET=2]="TABLET",e[e.MOBILE=1]="MOBILE",e}({});const k=e=>{var t;const{id:n="Slider.Element",children:l,backgroundColor:a=null,fullWidth:i=!1}=e,r=(0,m.bU)(),d=(0,v.V)(r),{0:k,1:Z}=(0,o.useState)(!d),{0:P,1:F}=(0,o.useState)(!!d),{0:$,1:D}=(0,o.useState)(0),{0:z,1:I}=(0,o.useState)(0),B=(0,o.useRef)(null),M=(0,o.useRef)(null),j=(0,o.useRef)(null),W=(0,c.a)(c.R.md),U=(0,c.a)(c.R.lg),q=null==l?void 0:l.length,V=i?40:60,{t:G}=(0,A.$G)(),J=()=>W?O.MOBILE:U?O.TABLET:O.DESKTOP,H=null==B?void 0:B.current,K=null==M||null===(t=M.current)||void 0===t?void 0:t.firstChild,Q=()=>{var e,t,n;return(null==K||null===(e=K.getBoundingClientRect())||void 0===e?void 0:e.width)+("undefined"!=typeof window&&K&&Number.parseFloat(null===(t=window)||void 0===t||null===(n=t.getComputedStyle(K))||void 0===n?void 0:n.marginInlineEnd)||0)},Y=()=>{(d?(null==H?void 0:H.offsetWidth)+V-(null==H?void 0:H.scrollLeft)>=(null==H?void 0:H.scrollWidth)-1:(null==H?void 0:H.scrollLeft)<=V)?Z(!0):Z(!1),(d?(null==H?void 0:H.scrollLeft)>=-1*V:(null==H?void 0:H.scrollLeft)+(null==H?void 0:H.offsetWidth)+V>=(null==H?void 0:H.scrollWidth)-1)?F(!0):F(!1),(()=>{const e=Math.round((null==H?void 0:H.scrollLeft)/Q());(e>z||e<z)&&(I(e),D(e))})()},X=(0,N.Z)(Y,50);(0,o.useEffect)((()=>(Y(),null==H||H.addEventListener("scroll",X,!0),()=>{null==H||H.removeEventListener("scroll",X,!0)}))),(0,o.useEffect)((()=>{const e=null==j?void 0:j.current;if(e&&q){var t;const n=100/(W?q:q-(J()-1))+"%";null==e||null===(t=e.style)||void 0===t||t.setProperty("--scrollbar-thumb-width",n)}}));const ee=Q(),te=ee>0?ee:V;return o.createElement("div",{className:u()(f,i?null:L),"data-test-id":n,style:{"--overflow-width":`${i?te:V}px`}},o.createElement("div",{className:p,"data-test-id":"Slider.Wrapper"},o.createElement("div",{className:b,ref:B,"data-test-id":"Slider.Container"},o.createElement("div",{className:R,ref:M},o.Children.map(l,((e,t)=>
1{const n=t<$||t>$+O.DESKTOP-1;return o.createElement("div",{key:t,className:n?T:null},e)}))))),o.createElement("div",{className:u()(w,W?C:null),"data-test-id":"Slider.ScrollBar"},o.createElement("input",{type:"range",min:"0",max:q-J()||0,value:d?0-$:$,ref:j,className:u()(S,a?x:null),onChange:e=>{var t;const n=Number.parseInt(null==e||null===(t=e.target)||void 0===t?void 0:t.value);var l;D(d?0-n:n),l=d?0-n:n,H&&(H.scrollLeft=l*Q())}}),o.createElement("div",{className:_},o.createElement("button",{className:u()(y,k?g:null,i?null:h),onClick:()=>{H&&(H.scrollLeft=d?Math.max($-1,-1*(q-J()))*Q():Math.max($-1,0)*Q())},"data-test-id":"Slider.LeftArrow",title:G(d?"Next Slides":"Previous Slides",{ns:"common"})},o.createElement(s.JO,{icon:s.MZ,size:"xs",type:"jnj",color:k?"text-gray-500":"white"})),o.createElement("button",{className:u()(E,P?g:null,i?null:h),onClick:()=>{H&&(H.scrollLeft=d?Math.min($+1,0)*Q():Math.min($+1,q-J())*Q())},"data-test-id":"Slider.RightArrow",title:G(d?"Previous Slides":"Next Slides",{ns:"common"})},o.createElement(s.JO,{icon:s.WQ,size:"xs",type:"jnj",color:P?"text-gray-500":"white"})))))};var Z="style-module--element--5a9a8",P="style-module--flexTitle--c76fd",F="style-module--list--7c5c7";const $=(0,n(55740).ZP)((()=>Promise.all([n.e(532),n.e(550)]).then(n.bind(n,10550)))),D=e=>{let{id:t,title:n,children:l,resetAutoPlaySetting:a=!0,seeAll:i,mode:o="Cards",maxThreeCards:s=!1,...c}=e;const d=React.createElement("div",{className:P},React.createElement(r.Z,{"data-test-id":`OverviewBlock.Title.${t}`,variant:"h3"},n)),m=a;return React.createElement("div",Object.assign({className:Z,"data-test-id":`OverviewBlock.${t}`},c),"Cards"===o?React.createElement($,{resetAutoPlaySettingMode:m,title:d,maxThree:s},l):React.createElement("div",null,d,React.createElement("div",{className:u()(F)},l)),i)};var z=n(99756),I=n(77960),B=n.n(I),M=n(44073),j=n.n(M),W="style-module--title--6a55a",U="style-module--overviewBlock--ac2c1",q="style-module--mobile--886e9",V="style-module--desktop--a7e81";B().extend(j());const G=e=>{let{id:t,title:n,titleWithoutFootnotes:s,showDisplayTitle:c=!0,isLearningCenter:d=!1,displayMode:u="Cards",seeAllButton:m,footnotes:v,children:f}=e;const p=(0,z.a)(z.R.lg);return f&&0!==o.Children.count(f)?"Grid"===u?React.createElement(i.D,{fractions:[1],spacing:8,minHeight:!1,noTopSpacing:!0},React.createElement(a.s,{container:!0,overview:!0,"data-test-id":"MediaCenter.MaterialsGrid"},o.Children.map(f,((e,n)=>React.createElement(a.s,{key:`${t}.Card.${n}`},e))))):"Cards"===u?React.createElement(React.Fragment,null,c&&React.createElement(r.Z,{"data-test-id":`${t}.Title`,variant:d?"h2":"h3",className:W},React.createElement(l.o,{footnotes:v},n)),1===o.Children.count(f)&&React.createElement("div",{className:U,"data-test-id":t},React.createElement("div",{className:V,"data-test-id":`${t}.Desktop`},f),React.createElement("div",{className:q,"data-test-id":`${t}.Mobile`},f)),o.Children.count(f)>1&&o.Children.count(f)<=3&&React.createElement("div",{className:U,"data-test-id":t},React.createElement("div",{className:V,"data-test-id":`${t}.Desktop`},f),React.createElement("div",{className:q},React.createElement(k,{id:`${t}.Mobile`},f)),p&&m),o.Children.count(f)>3&&React.createElement("div",{className:U},React.createElement(k,{id:t},f),m)):React.createElement(D,{id:s,className:U,title:c&&React.createElement(l.o,{footnotes:v,"data-test-id":`${t}.Title`},n),"data-test-id":t,resetAutoPlaySetting:!1,mode:"List",number:o.Children.count(f)>15?15:o.Children.count(f),seeAll:m},f):null}},72340:function(e,t,n){n.d(t,{j:function(){return s}});var l=n(77034),a=n(43720),i=n(1884),r=n(52145),o="style-module--button--f491f";const s=e=>{let{fullWidth:t,type:n,staticLiteral:s,dynamicLiteral:c}=e;const d=(0,l.bU)(),u=(0,r.V)(d);return React.createElement(a.z,{className:o,color:"primary",variant:"outlined",fullWidth:t,style:{textDecoration:"none"},accessoryRight:React.createElement(i.JO,{color:"primary",size:"small",icon:u?i.MZ:i.WQ,type:"jnj"})},"Static"===n?s:c," ")}},49092:function(e,t,n){n.d(t,{f:function(){return l}});const l=n(2784).createContext(null)},42582:function(e,t,n){n.d(t,{J:function(){return l}});const l=n(2784).createContext({status:null,setStatus:()=>{}})}}]);
2//# sourceMappingURL=90859099b52c2f6a6bc201eac812dd71558a0cd0-4bd82d4c189dac64a416.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.