PageSourceSearch

https://www.europeanspermbank.com/_next/static/chunks/8813.2d852c62e1925121.js

js europeanspermbank.com collected 2026-09-24 23:20:31 UTC 31,912 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8813],{51085:function(e,t,a){"use strict";var n=a(52322),i=a(12524),l=a.n(i),o=a(2784),r=a(1786),s=a(17289),c=a(41883),d=a.n(c);let m=(0,o.forwardRef)((e,t)=>{let{boldText:a=!1,checked:i,children:c,className:m,disabled:u,error:_,iconName:h,label:v,topAlign:p=!1,variant:g="primary",...f}=e,x=(0,o.useId)(),N="".concat(x,"-error");return(0,n.jsxs)("div",{className:l()(d().component,m,{[d().hasError]:!!_,[d().isChecked]:i,[d().isDisabled]:u,[d().isSecondary]:"secondary"===g,[d().isTopAligned]:p}),children:[(0,n.jsx)("label",{className:d().label,htmlFor:x,children:(0,n.jsxs)("span",{className:d().labelWrapper,children:[(0,n.jsx)("input",{...f,"aria-describedby":_?N:void 0,"aria-invalid":_?"true":"false",checked:i,className:d().input,disabled:u,id:x,ref:t,type:"checkbox"}),(0,n.jsx)("span",{className:d().field,children:(0,n.jsx)(r.Z,{className:d().icon,name:"Checkmark"})}),h&&(0,n.jsx)(r.Z,{className:d().checkboxIcon,name:h,size:16}),(0,n.jsxs)(s.Z,{tagStyle:a?"bodyMediumBold":"bodyMedium",children:[v," ",c]})]})}),_&&(0,n.jsx)(s.Z,{className:d().error,id:N,role:"alert",tag:"div",tagStyle:"bodySmall",children:_})]})});m.displayName="Checkbox",t.Z=m},2212:function(e,t,a){"use strict";var n=a(52322),i=a(12524),l=a.n(i),o=a(50639),r=a(1786),s=a(78167),c=a(79207),d=a(17289),m=a(27858),u=a(2354),_=a.n(u);let EditBox=e=>{let{actionBtnIcon:t="Edit",actionBtnLabel:a,children:i,className:u,icon:h,image:v,onClick:p,fields:g,readOnly:f=!1,text:x,title:N,titleSize:y="bodyMediumBold",visual:b}=e,{t:C}=(0,o.QT)();return(0,n.jsxs)("div",{className:l()(_().component,u),children:[N&&(0,n.jsxs)("div",{className:l()(_().header),children:[f&&v&&(0,n.jsx)("div",{className:_().image,children:(0,n.jsx)("div",{className:_().imageContainer,children:(0,n.jsx)(s.Z,{alt:"",fill:!0,src:v})})}),f&&b&&(0,n.jsx)("div",{className:_().image,children:(0,n.jsx)("div",{className:_().imageContainer,children:(0,n.jsx)(m.Z,{name:b})})}),h&&(0,n.jsx)("div",{className:_().iconContainer,children:(0,n.jsx)(r.Z,{className:_().icon,name:h})}),(0,n.jsx)(d.Z,{className:_().title,tagStyle:y,children:N}),!f&&!!t&&(0,n.jsxs)("button",{"aria-label":C("accessibility.ariaLabels.edit"),className:_().actionBtn,onClick:p,children:[a&&(0,n.jsx)(d.Z,{className:_().actionBtnLabel,children:a}),(0,n.jsx)(r.Z,{className:_().actionBtnIcon,name:t})]})]}),(!!g.length||x||i)&&(0,n.jsxs)("div",{className:_().content,children:[x&&(0,n.jsx)(d.Z,{className:_().contentText,tag:"p",tagStyle:"bodySmall",children:x}),(0,n.jsx)("div",{className:_().items,children:null==g?void 0:g.map((e,t)=>{if(" "!==e.value.charAt(0)&&""!==e.value)return(0,n.jsxs)("div",{children:[(0,n.jsx)(d.Z,{className:_().fieldItemLabel,tag:"h5",tagStyle:"bodyXSmall",text:e.label}),(0,n.jsx)(c.Z,{className:_().fieldItemValue,text:e.value})]},t)})}),i&&(0,n.jsx)("div",{className:_().footer,children:i})]})]})};EditBox.displayName="EditBox",t.Z=EditBox},75935:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eo}});var n=a(52322),i=a(12524),l=a.n(i),o=a(28879),r=a.n(o),s=a(5632),c=a(23848),d=a(50639),m=a(2784),u=a(63955),_=a(62202),h=a(14235),v=a(1786),p=a(76456),g=a(17289),f=a(27858),x=a(51085),N=a(96416),y=a(2212),b=a(37386),C=a(83529),S=a(3212),j=a(97381),k=a(31110),D=a(42141),T=a(9991),I=a(60245),P=a(28143),M=a.n(P),pregnancy_slot_agreement_overlay=e=>{var t,a,i,l;let{isOpen:o,customerDetails:r,onClose:s,onSaveAdditionalPartner:c}=e,{t:_}=(0,d.QT)(),{state:p}=(0,T.w6)(),{formState:{errors:f},handleSubmit:x,getValues:N,setValue:y,register:C,setError:S}=(0,u.cI)();return(0,m.useEffect)(()=>{var e,t,a,n;y("additionalFirstName",(null===(e=p.treatmentData)||void 0===e?void 0:e.additional_first_name)?null===(t=p.treatmentData)||void 0===t?void 0:t.additional_first_name:r.firstname),y("additionalLastName",(null===(a=p.treatmentData)||void 0===a?void 0:a.additional_last_name)?null===(n=p.treatmentData)||void 0===n?void 0:n.additional_last_name:r.lastname)},[p.treatmentData,y,r.firstname,r.lastname]),(0,n.jsxs)(D.Z,{className:M().component,isOpen:o,onClose:()=>s(),position:"right",children:[(0,n.jsx)("button",{"aria-label":_("accessibility.ariaLabels.closeOverlay"),className:M().close,onClick:()=>s(),children:(0,n.jsx)(v.Z,{name:"Close"})}),(0,n.jsxs)("div",{className:M().pregnancySlotContainer,children:[(0,n.jsx)(g.Z,{className:M().headline,tag:"h3",tagStyle:"headlineMedium",children:_("commons.partner")}),(0,n.jsxs)("form",{className:M().content,onSubmit:x(()=>{let e=N("additionalFirstName"),t=N("additionalLastName");c({firstName:e,lastName:t}),e&&!t||!e&&t?(e||S("additionalFirstName",{message:_("form.firstName.error")}),t||S("additionalLastName",{message:_("form.lastName.error")})):s()}),children:[(0,n.jsx)(g.Z,{tag:"p",tagStyle:"bodySmall",children:_("checkoutPage.treatment.pregnancySlotAgreement.ifYouWishToAddAnAdditionalName")}),(0,n.jsx)(b.Z,{"aria-invalid":f.additionalFirstName?"true":"false",...C("additionalFirstName",{pattern:I.o}),className:M().field,error:(null===(t=f.additionalFirstName)||void 0===t?void 0:t.type)==="pattern"?_("form.generic.invalidCharacters"):null===(a=f.additionalFirstName)||void 0===a?void 0:a.message,placeholder:_("form.firstName.placeholder")}),(0,n.jsx)(b.Z,{"aria-invalid":f.additionalLastName?"true":"false",...C("additionalLastName",{pattern:I.o}),className:M().field,error:(null===(i=f.additionalLastName)||void 0===i?void 0:i.type)==="pattern"?_("form.generic.invalidCharacters"):null===(l=f.additionalLastName)||void 0===l?void 0:l.message,placeholder:_("form.lastName.placeholder"),type:"text"}),(0,n.jsx)(h.Z,{className:M().pregnancySlotButton,text:_("commons.save"),type:"submit"})]})]})]})},Z=a(8578),B=a(24450),w=a(35936),A=a(28184),E=a(82066),L=a(68569),O=a(70850);let useMutationClinicCompatibility=(e,t)=>{let a=(0,E.useMutation)(async a=>{let n=await L.Z.fetch("en/rest/en/V2/clinic/".concat(a.clinicId),{body:JSON.stringify({cartItems:a.cartItems}),headers:{"Accept-Language":(0,O.D)(t),Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},method:"POST"}).then(e=>{if(e.ok)return e.json();throw Error("".concat(e.status," - ").concat(e.statusText))}).catch(e=>{throw console.error("commerce.useMutationClinicCompatibility",e),e});return n},{onError:async e=>e});return a};var q=a(11775),Y=a(52781),R=a(52791),F=a(31871);let useQueryClinicCompatibility=function(e,t,a){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4?arguments[4]:void 0,l=(0,E.useQuery)([F.MJ.CLINIC_COMPATIBILITY,t,e,n,a,i],async()=>{let n=await L.Z.fetch("en/rest/en/V2/clinic/".concat(e,"?checkCompatibility=").concat(t),{headers:{"Accept-Language":(0,O.D)(i),Authorization:"Bearer ".concat(a),"Content-Type":"application/json"},method:"GET"}).then(e=>{if(e.ok)return e.json();throw Error("".concat(e.status," - ").concat(e.statusText))}).catch(e=>{throw console.error("commerce.useQueryClinicCompatibility",e),e});return n},{enabled:!!a&&n,keepPreviousData:!0,staleTime:F.ip});return l};
1var H=a(47343),G=a(47482),V=a(2601),Q=a(81752),z=a(61521),J=a(94387),W=a(30909),U=a(50087),K=a(75306),X=a.n(K),$=a(61047),ee=a(67723),et=a(18077),ea=a(73286),en=a(45085),ei=a(98862),el=a.n(ei);let Treatment=e=>{var t,a,i,o,D,P,M,E,L,O,K;let{clinicIncompatibilityReasons:ei,customerDetails:eo}=e,er=(0,s.useRouter)(),{dispatch:es,state:ec}=(0,T.w6)(),{data:ed}=(0,c.useSession)(),{settings:em,storageDonorItems:eu,handleInvalidateQueries:e_}=(0,w.lO)(),eh=null==ed?void 0:null===(t=ed.user)||void 0===t?void 0:t.bearer_token,{...ev}=function(e){var t;let{t:a}=(0,d.QT)(),{data:n}=(0,c.useSession)(),i=null==n?void 0:null===(t=n.user)||void 0===t?void 0:t.bearer_token,l=(0,s.useRouter)(),{data:o,isFetching:u,isSuccess:_}=(0,$.B)(),{data:h}=(0,ee.r)(i,!!o,l.locale),{data:v}=(0,et.G)(r()().format("YYYY-MM-DD"),"",i,l.locale),p=(0,m.useMemo)(()=>!(0,F.$4)(h)&&!!(null==h?void 0:h.length)&&!!(null==h?void 0:h.find(e=>"pregnancy_slot"===e.product_type)),[h]),g=(0,m.useMemo)(()=>!(0,F.$4)(h)&&!!(null==h?void 0:h.length)&&!!(null==h?void 0:h.find(e=>"shipment_from_storage"===e.sku)),[h]),f=(0,m.useMemo)(()=>{var t;return ea.G.questionRelationPatient===(null==e?void 0:null===(t=e.signup_questions.find(e=>e.question===ea.G.questionRelation))||void 0===t?void 0:t.selected_answer)},[e]),x=(0,m.useMemo)(()=>{var t;return ea.G.questionRelationPartner===(null==e?void 0:null===(t=e.signup_questions.find(e=>e.question===ea.G.questionRelation))||void 0===t?void 0:t.selected_answer)},[e]),N=(0,m.useMemo)(()=>{var t;return ea.G.questionCircumstancesSingle===(null==e?void 0:null===(t=e.signup_questions.find(e=>e.question===ea.G.questionCircumstances))||void 0===t?void 0:t.selected_answer)},[e]),y=(0,m.useMemo)(()=>{var t;let a=null==e?void 0:null===(t=e.signup_questions.find(e=>e.question===ea.G.questionRelation))||void 0===t?void 0:t.selected_answer;return a===ea.G.questionRelationRelative||null===a},[e]),b=v&&(0,en.T)()>=(null==v?void 0:v.treatment_dates.after.time)?"after":"until",C=(0,m.useMemo)(()=>{var e,t;return null==v?void 0:null===(t=v.treatment_dates)||void 0===t?void 0:null===(e=t[b])||void 0===e?void 0:e.not_selectable},[null==v?void 0:v.treatment_dates]),S=(0,m.useMemo)(()=>{var e,t;return null==v?void 0:null===(t=v.treatment_dates)||void 0===t?void 0:null===(e=t[b])||void 0===e?void 0:e.selectable_with_warning},[null==v?void 0:v.treatment_dates]),j=(0,m.useMemo)(()=>null==e?void 0:e.firstname,[e]),k=(0,m.useMemo)(()=>null==e?void 0:e.lastname,[e]),D=(0,m.useMemo)(()=>null==e?void 0:e.associated_clinic_id,[e]),T=(0,m.useMemo)(()=>y||x?{firstName:"",lastName:""}:{firstName:f||N?j:a("checkoutPage.treatment.pregnancySlotAgreement.whoIsBeingTreated"),lastName:f||N?k:""},[x,j,k,y,f,N]),I=(0,m.useMemo)(()=>y?{firstName:"",lastName:""}:{firstName:x?j:"",lastName:x?k:""},[x,j,y,k]),P=(0,m.useMemo)(()=>null==o?void 0:o.id,[null==o?void 0:o.id]);return{accountFirstName:j,accountLastName:k,cartMine:o,cartMineItems:h,customerAssociatedClinicId:D,customerCartId:P,disabledDates:C,hasPregnancySlot:p,hasShipmentFromStorage:g,isLoadingCartMine:u,isPartner:x,isPatient:f,isRelative:y,isSingle:N,isSuccessCartMine:_,pregnancySlotPersonOneInitialValues:T,pregnancySlotPersonTwoInitialValues:I,warningDates:S}}(eo),{data:ep,isFetching:eg}=(0,R.M)(ev.customerAssociatedClinicId,er.locale,eh),[ef,ex]=(0,m.useState)(!1),{data:eN,isFetching:ey,refetch:eb}=useQueryClinicCompatibility(ev.customerAssociatedClinicId,1,eh,!!ev.customerAssociatedClinicId&&!!ep,er.locale),{data:eC,isFetching:eS}=(0,G.q)(eh,er.locale),{isSuccess:ej,mutate:ek}=(0,q.d)(eh,er.locale),{data:eD}=(0,H.t2)(eh,er.locale),{isLoading:eT,isSuccess:eI,mutate:eP}=(0,Y.S)(eh,er.locale),{data:eM,isLoading:eZ,mutate:eB}=useMutationClinicCompatibility(eh,er.locale),{t:ew}=(0,d.QT)(),eA=(0,U.i)(parseInt(X().tablet)),[eE,eL]=(0,m.useState)(!1),[eO,eq]=(0,m.useState)(!1),[,eY]=(0,m.useState)(),[eR,eF]=(0,m.useState)("none"),[eH,eG]=(0,m.useState)({label:"",name:"",value:""}),[eV,eQ]=(0,m.useState)(!1),[ez,eJ]=(0,m.useState)(!1),[eW,eU]=(0,m.useState)({firstName:ev.pregnancySlotPersonOneInitialValues.firstName,lastName:ev.pregnancySlotPersonOneInitialValues.lastName}),[eK,eX]=(0,m.useState)(0),[e$,e0]=(0,m.useState)(!1),[e2,e1]=(0,m.useState)(null),e8=(0,m.useMemo)(()=>{let e=eo.firstname===eW.firstName&&eo.lastname===eW.lastName,t=""!==eH.value;return(!ev.isPatient||!ev.isSingle||!e)&&(!ev.isPatient||!!ev.isSingle||!e||!!t)&&(!!eW.firstName||!!eW.lastName)&&(!e||!!t)},[ev.isSingle,ev.isPatient,eW,eo,eH.value]);(0,m.useEffect)(()=>{!ev.isRelative&&((ev.isPatient||ev.isSingle||ev.isRelative)&&eU({f
1irstName:ev.pregnancySlotPersonOneInitialValues.firstName,lastName:ev.pregnancySlotPersonOneInitialValues.lastName}),ev.isPartner&&eG({label:"Name",name:"Name",value:"".concat(null==eo?void 0:eo.firstname," ").concat(null==eo?void 0:eo.lastname)}))},[ev.pregnancySlotPersonOneInitialValues,ev.pregnancySlotPersonTwoInitialValues,ev.isPartner,ev.isSingle,ev.isRelative]),(0,m.useEffect)(()=>{navigator&&navigator.geolocation.getCurrentPosition(function(e){eX((0,Q.N)({latitude:Number(e.coords.latitude),longitude:Number(e.coords.longitude)},{latitude:Number(null==ep?void 0:ep.latitude),longitude:Number(null==ep?void 0:ep.longitude)}))}),ep&&eb()},[ep]);let{formState:{errors:e3},handleSubmit:e5,getValues:e6,register:e7,setValue:e4,clearErrors:e9}=(0,u.cI)(),getLastShipmentDateForNoTreatment=()=>{let e=r()();return e.add(7,"day").format("YYYY-MM-DD")},te=(0,m.useMemo)(()=>{let e;let t=eu?eM:eN;return(null==t?void 0:t.is_compatible)?null:((null==t?void 0:t.incompatible_reason)&&(e=null==ei?void 0:ei.find(e=>e.reasonCode==="".concat(null==t?void 0:t.incompatible_reason))),e)?e:null==ei?void 0:ei.find(e=>"fallback"===e.reasonCode)},[eu,ei,eN,eM]),handleRemoveExistingClinic=()=>{eo&&(ek({customer:{...eo,associated_clinic_id:null}}),ex(!0))};(0,m.useEffect)(()=>{var e;if((null===(e=ec.treatmentData)||void 0===e?void 0:e.treatment_date)&&r()().isAfter(ec.treatmentData.treatment_date)){let e={...ec.treatmentData,treatment_date:null};es({treatmentData:e,type:"setTreatmentData"})}},[null===(a=ec.treatmentData)||void 0===a?void 0:a.treatment_date]),(0,m.useEffect)(()=>{var e;if((null===(e=ec.treatmentData)||void 0===e?void 0:e.last_ship_date)&&r()().isAfter(ec.treatmentData.last_ship_date)){let e={...ec.treatmentData,last_ship_date:null};es({treatmentData:e,type:"setTreatmentData"})}},[null===(i=ec.treatmentData)||void 0===i?void 0:i.last_ship_date]),(0,m.useEffect)(()=>{eI&&(e_([F.MJ.CLINIC,F.MJ.CART,F.MJ.SHIPPING_METHODS,F.MJ.SHIPPING_STORAGE_DISCOUNT]),es({nextStep:"shippingAndStorage",type:"nextStep"}))},[eI]),(0,m.useEffect)(()=>{if(!ec.treatmentData||!eo)return;let{additional_first_name:e,additional_last_name:t,date_of_birth:a,first_name:n,last_name:i,treatment_date:l}=ec.treatmentData;l&&""===e6("treatmentDate")&&e4("treatmentDate",l),(ev.isPatient||ev.isPartner&&n!==eo.firstname&&i!==eo.lastname||ev.isRelative)&&(n&&""===e6("firstName")&&e4("firstName",n),i&&""===e6("lastName")&&e4("lastName",i),a&&""===e6("dateOfBirth")&&e4("dateOfBirth",a),n&&""===e6("firstName")&&i&&""===e6("lastName")&&eU({firstName:n,lastName:i})),(ev.isPatient&&e!==eo.firstname&&t!==eo.lastname||ev.isPartner||ev.isRelative)&&e&&t&&eG({label:"Name",name:"Name",value:"".concat(e," ").concat(t)})}
1,[eo,ev.isPartner,ev.isPatient,ev.isRelative,ec.treatmentData]);let tt=!!((null==ep?void 0:ep.clinic_discount_shipment)||(null==ep?void 0:ep.clinic_discount_straw)),ta=(0,m.useMemo)(()=>{var e,t;return(0,J.S)(null==em?void 0:em.clinicAdvantages.clinicDiscountInformation,null==ep?void 0:null===(e=ep.clinic_discount_straw)||void 0===e?void 0:e.discount_percent,null==ep?void 0:null===(t=ep.clinic_discount_shipment)||void 0===t?void 0:t.discount_percent)},[null==em?void 0:em.clinicAdvantages.clinicDiscountInformation,ep]);return((0,m.useEffect)(()=>{var e,t,a,n;ev.isSuccessCartMine&&es({treatmentData:(null===(t=ev.cartMine)||void 0===t?void 0:null===(e=t.extension_attributes)||void 0===e?void 0:e.esb_treatment_data)||(null===(n=ev.cartMine)||void 0===n?void 0:null===(a=n.extension_attributes)||void 0===a?void 0:a.esb_last_treatment_data)||{additional_first_name:"",additional_last_name:"",date_of_birth:"",date_status:Y.r.ok,first_name:"",last_name:"",sales_entity_id:Number(ev.customerCartId),sales_entity_type:"quote"},type:"setTreatmentData"})},[ev.isSuccessCartMine]),(0,m.useEffect)(()=>{ec.clinic?ex(!0):ex(!1)},[ec.clinic]),(0,m.useEffect)(()=>{ej&&e_([F.MJ.CUSTOMER])},[ej]),(0,m.useEffect)(()=>{if(!ep||!eC||!ev.cartMine||!eu)return;let e=ev.cartMine.id.toString();if(!e)return;let t=eu.map(t=>({product_option:{extension_attributes:{custom_options:[{option_id:"donor_number",option_value:t.donor_id},{option_id:"mot",option_value:t.mot},{option_id:"treatment_country_id",option_value:t.treatment_country},{option_id:"straw_qty",option_value:t.strawQty},{option_id:"straw_type",option_value:t.type},{option_id:"donor_alias",option_value:t.donor_alias},{option_id:"ejaculate_id",option_value:t.ejaculate_id},{option_id:"storage_id",option_value:eC.storage_id},{option_id:"purchase_type",option_value:t.purchase_type}]}},qty:t.strawQty,quote_id:e,sku:"shipment_from_storage"}));eB({cartItems:t,clinicId:ep.esb_m2_id})},[eu,ev.cartMine,eC,ep]),(0,m.useEffect)(()=>{e3.noClinic&&(0,_.ZP)(e=>(0,n.jsx)(S.Z,{headline:ew("checkoutPage.treatment.clinicToastError.headline"),id:e.id,message:ew("checkoutPage.treatment.clinicToastError.text"),type:"error"}),{className:S.a.notificationsError,duration:5e3,position:"bottom-left"})},[e3.noClinic]),(0,m.useEffect)(()=>{e3.consentBox&&(0,_.ZP)(e=>(0,n.jsx)(S.Z,{headline:ew("checkoutPage.treatment.consentBoxToastError.headline"),id:e.id,message:ew("checkoutPage.treatment.consentBoxToastError.text"),type:"error"}),{className:S.a.notificationsError,duration:5e3,position:"bottom-left"})},[e3.consentBox]),(0,m.useEffect)(()=>{ev.disabledDates&&ec.treatmentData&&setTimeout(()=>{eU({firstName:e6("firstName"),lastName:e6("lastName")})},500)},[ev.disabledDates,ec.treatmentData]),(0,m.useEffect)(()=>{e0(ey||eS||eZ||eT)},[ey,eS,eZ,eT]),ev.disabledDates&&ec.treatmentData)?(0,n.jsxs)("div",{className:l()(el().component,{[el().hasError]:e3.noTreatment}),children:[(0,n.jsxs)("div",{className:el().header,children:[(0,n.jsx)(g.Z,{tag:"h3",tagStyle:"headlineMedium",children:ew("checkoutPage.treatment.treatmentInformation.headline")}),(0,n.jsx)(g.Z,{tag:"p",children:ew("checkoutPage.treatment.treatmentInformation.text")})]}),(0,n.jsxs)("div",{className:el().wrapper,children:[ef&&(0,n.jsxs)("div",{className:el().map,onClick:()=>eQ(!0),children:[(0,n.jsx)("div",{className:el().clinicImage,children:(0,n.jsx)(f.Z,{className:el().c
1ardChooseClinic,name:"ContentCardChooseClinic"})}),(0,n.jsxs)("div",{className:el().mapText,children:[(0,n.jsx)(g.Z,{className:el().headline,tag:"h4",tagStyle:"headlineXSmall",children:null===(o=ec.clinic)||void 0===o?void 0:o.clinic.firstname}),(0,n.jsx)(g.Z,{className:el().address,tag:"p",children:(0,z.T)({city:"".concat(null===(D=ec.clinic)||void 0===D?void 0:D.clinic.city),postalCode:"".concat(null===(P=ec.clinic)||void 0===P?void 0:P.clinic.postcode),street:"".concat(null===(M=ec.clinic)||void 0===M?void 0:M.clinic.street[0])})})]}),(0,n.jsx)(v.Z,{name:"Edit"})]}),(ep||eg)&&!ef&&(0,n.jsxs)("div",{className:el().map,onClick:()=>eQ(!0),children:[!!ep&&(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(C.Z,{address:ep.address.city,className:el().mapImage,height:200,latitude:ep.latitude,longitude:ep.longitude,name:"".concat(ep.address.postcode," ").concat(ep.address.street," ").concat(ep.address.city),width:200}),(0,n.jsxs)("div",{className:el().mapText,children:[(0,n.jsx)(g.Z,{className:el().headline,tag:"h4",tagStyle:"headlineXSmall",children:ep.address.firstname}),(0,n.jsx)(g.Z,{className:el().address,tag:"p",children:(0,z.T)({city:"".concat(null==ep?void 0:ep.address.city),postalCode:"".concat(null==ep?void 0:ep.address.postcode),street:"".concat(null==ep?void 0:ep.address.street[0])})})]}),(0,n.jsxs)("div",{className:el().kmContainer,children:[(0,n.jsx)("button",{"aria-label":ew("accessibility.ariaLabels.openTreatmentClinicSelector"),className:el().openTreatmentClinicSelectorButton,children:(0,n.jsx)(v.Z,{name:"Edit"})}),eK>0&&(0,n.jsx)(g.Z,{className:el().km,tag:"p",tagStyle:"bodySmall",children:"".concat(eK," ").concat(ew("commons.km"))})]})]}),eg&&(0,n.jsx)(p.Z,{})]}),!ep&&!eg&&!ef&&(0,n.jsx)(y.Z,{actionBtnIcon:"Plus",actionBtnLabel:ew("commons.add"),fields:[],onClick:()=>eQ(!0),title:ew("commons.myClinic"),titleSize:"headlineXSmall"}),!ep&&!eg&&!ev.hasShipmentFromStorage&&!ef&&!eu&&(0,n.jsx)(k.Z,{...e7("noClinic",{required:!0}),checked:eE,onClick:()=>eL(e=>!e),children:(0,n.jsx)(g.Z,{className:el().mapText,tag:"p",children:ew("checkoutPage.treatment.treatmentInformation.iDontHaveAClinic")})}),te&&ep&&!ey&&!eg&&(0,n.jsx)(j.Z,{backgroundColor:"black",className:el().clinicIncompatibilityNotification,headline:te.headline,isOpen:!!te,richText:(0,W.m)(te.text,{value:"".concat(null==eD?void 0:eD.first_order_straw_moq)})}),tt&&(null==em?void 0:em.clinicAdvantages.clinicDiscountInformation)&&(0,n.jsx)(j.Z,{backgroundColor:"white",headline:(0,W.m)(null==em?void 0:em.clinicAdvantages.clinicDiscountInformation.headline,{clinic:String(null==ep?void 0:ep.clinic_name)}),isOpen:tt,text:1===ta.length?ta:void 0,variant:"clinicDiscount",children:ta.length>1&&(0,n.jsx)("ul",{className:el().list,children:ta.map((e,t)=>(0,n.jsx)("li",{className:el().listItem,children:(0,n.jsx)(g.Z,{children:e})},t))})})]}),(0,n.jsxs)("div",{className:el().wrapper,children:[(0,n.jsxs)("div",{className:el().title,children:[(0,n.jsx)(g.Z,{tag:"h5",tagStyle:"bodyLargeBold",children:ew("checkoutPage.treatment.whenIsYourTreatmentDate.headline")}),(0,n.jsx)(g.Z,{tag:"p",children:ew("checkoutPage.treatment.whenIsYourTreatmentDate.text")||"Please provide your treatment date if you already know it."})]}),(0,n.jsx)(N.Z,{...e7("treatmentDate",{required:!ez,value:ec.treatmentData.treatment_date||void 0}),className:el().datePicker,defaultValue:ev.disabledDates.length?r()(ev.disabledDates.slice(-1)[0]).add(1,"day").format("YYYY-MM-DD"):r()().add(1,"day").format("YYYY-MM-DD"),disableDates:ev.disabledDates,disablePast:!0,error:e3.treatmentDate?ew("form.treatment.error"):"",label:ew("checkoutPage.treatment.whenIsYourTreatmentDate.headline"),onChange:e=>
1{e4("treatmentDate",e),eJ(!1),e9("treatmentDate")},title:ew("checkoutPage.treatment.whenIsYourTreatmentDate.treatmentDate"),value:e6("treatmentDate")}),(0,n.jsx)(k.Z,{...e7("noTreatment",{required:!e6("treatmentDate")}),checked:ez,className:el().calendarToggle,onClick:()=>{e6("treatmentDate")&&!1===ez&&e4("treatmentDate",""),eJ(!ez)},children:(0,n.jsx)(g.Z,{tag:"p",children:ew("checkoutPage.treatment.whenIsYourTreatmentDate.iDontKnowMyTreatmentDateYet")})})]}),(0,n.jsxs)("div",{className:l()(el().wrapper,el().isTreatmentWrapper),children:[(0,n.jsxs)("div",{className:el().title,children:[(0,n.jsx)(g.Z,{tag:"h5",tagStyle:"bodyLargeBold",children:ew("checkoutPage.treatment.whoIsToBeTreated.headline")}),(0,n.jsx)(g.Z,{tag:"p",children:ew("checkoutPage.treatment.whoIsToBeTreated.text")})]}),(0,n.jsxs)(A.Z,{className:el().nameRow,children:[(0,n.jsx)(B.Z,{width:{tablet:6},children:(0,n.jsx)(b.Z,{"aria-invalid":e3.firstName?"true":"false",...e7("firstName",{pattern:I.o,required:!0,value:ev.isPatient||ev.isSingle?ev.pregnancySlotPersonOneInitialValues.firstName:""}),autoComplete:"off",className:el().field,error:(null===(E=e3.firstName)||void 0===E?void 0:E.type)==="required"?ew("form.firstName.error"):(null===(L=e3.firstName)||void 0===L?void 0:L.type)==="pattern"?ew("form.generic.invalidCharacters"):"",onChange:e=>{e9("firstName"),eU({...eW,firstName:e.target.value})},placeholder:ew("form.firstName.placeholder"),type:"text"})}),(0,n.jsx)(B.Z,{width:{tablet:6},children:(0,n.jsx)(b.Z,{"aria-invalid":e3.lastName?"true":"false",...e7("lastName",{pattern:I.o,required:!0,value:ev.isPatient||ev.isSingle?ev.pregnancySlotPersonOneInitialValues.lastName:""}),autoComplete:"off",className:el().field,error:(null===(O=e3.lastName)||void 0===O?void 0:O.type)==="required"?ew("form.lastName.error"):(null===(K=e3.lastName)||void 0===K?void 0:K.type)==="pattern"?ew("form.generic.invalidCharacters"):"",onChange:e=>{e9("lastName"),eU({...eW,lastName:e.target.value})},placeholder:ew("form.lastName.placeholder"),type:"text"})})]}),(0,n.jsx)(N.Z,{...e7("dateOfBirth",{required:!0,value:ec.treatmentData.date_of_birth||void 0}),className:el().datePicker,defaultValue:r()().subtract(30,"year").format("YYYY-MM-DD"),disableFuture:!0,error:e3.dateOfBirth?ew("form.dateOfBirth.error")||"Date of birth is missing":"",isDateOfBirth:!0,label:ew("form.dateOfBirth.placeholder"),minDate:r()().subtract(60,"year").format("YYYY-MM-DD"),onChange:e=>{e4("dateOfBirth",e),e9("dateOfBirth")},title:ew("form.dateOfBirth.placeholder"),value:e6("dateOfBirth")})]}),(0,n.jsxs)("div",{className:el().wrapper,children:[ev.hasPregnancySlot&&(ev.isPatient&&!ev.isSingle||ev.isPartner||ev.isRelative)&&!eu&&(0,n.jsxs)(m.Fragment,{children:[(0,n.jsxs)("div",{className:el().pregnancySlotHeadline,children:[(0,n.jsx)(g.Z,{tag:"h3",tagStyle:"headlineMedium",children:ew("checkoutPage.treatment.pregnancySlotAgreement.headline")}),(0,n.jsx)(g.Z,{tag:"p",children:ew("checkoutPage.treatment.pregnancySlotAgreement.text")})]}),(0,n.jsxs)(A.Z,{className:el().treatmentCardsRow,children:[(0,n.jsx)(B.Z,{width:{tablet:6},children:(0,n.jsx)(y.Z,{fields:[{label:"Name",name:"name",value:"".concat(eW.firstName&&eW.lastName?eW.firstName.trim()+" "+eW.lastName.trim():ew("checkoutPage.treatment.pregnancySlotAgreement.whoIsBeingTreated"))}],icon:"User",readOnly:!0,title:eA?ew("checkoutPage.treatment.pregnancySlotAgreement.treatedPerson")||"[Treated Person]":ew("checkoutPage.treatment.pregnancySlotAgreement.person1"),titleSize:"headlineXSmall"})}),(0,n.jsx)(B.Z,{width:{tablet:6},children:(0,n.jsx)(y.Z,{actionBtnIcon:eH.value===ew("checkoutPage.treatment.pregnancySlotAgreement.ifYouWishToAddAnAdditionalName")?"Plus":"Edit",actionBtnLabel:eH.value===ew("checkoutPage.treatment.pregnancySlotAgreement.ifYouWishToAddAnAdditionalName")?ew("commons.add"):"",fields:[{label:eH.label,name:eH.name,value:eH.value.trim()}],icon:"User",onClick:()=>{eF("pregnancySlot")},title:ev.isPartner||ev.isPatient?ew("checkoutPage.treatment.pregnancySlotAgreement.person2"):ew("checkoutPage.treatment.pregnancySlotAgreement.partnerToAgreement"),titleSize:"headlineXSmall"})})]})]}),e8&&(0,n.jsxs)("div",{className:el().consent,children:[(0,n.jsx)(x.Z,{...e7("consentBox",{required:!0}),checked:eO,className:el().consentCheckbox,error:!!e3.consentBox,onClick:()=>eq(!eO)}),(0,n.jsx)(g.Z,{className:el().consentHeadline,tag:"p",tagStyle:"bodySmallBold",children:ew("checkoutPage.treatment.personOfTreatmentConsent.headline")}),(0,n.jsx)(g.Z,{className:el().consentText,tag:"p",tagStyle:"bodySmall",children:ew("checkoutPage.treatment.personOfTreatmentConsent.text")})]})]}),(0,n.jsx)(Z.Z,{cartMineItemsDetails:ev.cartMineItems,headline:ew("commons.myClinic"),isDisabledDropdown:!0,isOpen:eV,onClose:()=>eQ(!1),onFormSubmit:()=>handleRemoveExistingClinic(),onGeoDataReceived:e=>{eY(e)},onNewClinicHide:()=>{ex(!1),es({type:"removeNewClinic"})},pageIndicator:"checkoutTreatment"}),(0,n.jsx)(pregnancy_slot_agreement_overlay,{customerDetails:eo,isOpen:"pregnancySlot"===eR,onClose:()=>eF("none"),onSaveAdditionalPartner:e=>{e1(e),eG({label:"Name",name:"Name",value:"".concat(e.firstName," ").concat(e.lastName)})}}),(0,n.jsx)(h.Z,{className:el().continueBtn,isLoading:e$,onClick:e5(e=>{var t,a,n,i,l,o,r,s,c;if(!eo||!(null==eN?void 0:eN.is_compatible)&&!eu&&!ef&&!e.noClinic||!(null==eM?void 0:eM.is_compatible)&&eu&&!ef&&!e.noClinic)return;let d=null===(a=ev.cartMine)||void 0===a?void 0:null===(t=a.extension_attributes)||void 0===t?void 0:t.esb_treatment_data,m=null!==(r=null!==(o=null==e2?void 0:e2.firstName)&&void 0!==o?o:null===(n=ec.treatmentData)||void 0===n?void 0:n.additional_first_name)&&void 0!==r?r:"",u=null!==(c=null!==(s=null==e2?void 0:e2.lastName)&&void 0!==s?s:null===(i=ec.treatmentData)||void 0===i?void 0:i.additional_last_name)&&void 0!==c?c:"";eE&&!ep&&ek({customer:{...eo,associated_clinic_id:null}});let _=getLastShipmentDateForNoTreatment();e.treatmentDate&&(_=null),(null==d?void 0:d.last_ship_date)&&(_=null==d?void 0:d.last_ship_date);let h={additional_first_name:m.trim(),additional_last_name:u.trim(),date_of_birth:e.dateOfBirth,date_status:(null===(l=ev.warningDates)||void 0===l?void 0:l.find(t=>t===e.treatmentDate))?Y.r.warning:Y.r.ok,first_name:e.firstName.trim(),last_name:e.lastName.trim(),last_ship_date:_,sales_entity_id:Number(ev.customerCartId),sales_entity_type:"quote",treatment_date:e.treatmentDate?e.treatmentDate:null};es({treatmentData:h,type:"setTreatmentData"}),(0,V.ge)({treatment_clinic:ep?ep.clinic_name:void 0,treatment_date:e.treatmentDate?e.treatmentDate:void 0,treatment_page:"checkout"}),e$||eP({treatmentData:h})}),text:ew("commons.continue"),variant:"tertiary"})]}):(0,n.jsx)(p.Z,{})};Treatment.displayName="Treatment";var eo=Treatment}
1,41883:function(e){e.exports={component:"checkbox_component__rLH2T",labelWrapper:"checkbox_labelWrapper__CB4oX",input:"checkbox_input___M5Tn",field:"checkbox_field__FfmQq",label:"checkbox_label__HBE06",icon:"checkbox_icon__DTmM_",checkboxIcon:"checkbox_checkboxIcon__iT2b5",error:"checkbox_error__RdHt_",isChecked:"checkbox_isChecked__bVLRb",isSecondary:"checkbox_isSecondary__Ar9K6",isDisabled:"checkbox_isDisabled__UgIH0",hasError:"checkbox_hasError__V3UzM",termsAndConditionsText:"checkbox_termsAndConditionsText__kn3Qi",isTopAligned:"checkbox_isTopAligned__nxeau"}},2354:function(e){e.exports={component:"edit-box_component__jd0zJ",header:"edit-box_header__vnsqV",image:"edit-box_image__hv22O",iconContainer:"edit-box_iconContainer__eHvlG",title:"edit-box_title__F_NxN",visualContainer:"edit-box_visualContainer__k8Tcv",imageContainer:"edit-box_imageContainer__a3z6E",icon:"edit-box_icon__nseiW",actionBtn:"edit-box_actionBtn__E8mNG",actionBtnLabel:"edit-box_actionBtnLabel__aE0oH",actionBtnIcon:"edit-box_actionBtnIcon__pwE_2",content:"edit-box_content__MNDkp",contentText:"edit-box_contentText__Zzoqn",items:"edit-box_items__naXMT",footer:"edit-box_footer__LoHxc",fieldItemLabel:"edit-box_fieldItemLabel__VKqx2",fieldItemValue:"edit-box_fieldItemValue__zjvjK",input:"edit-box_input__HGhLy"}},28143:function(e){e.exports={component:"pregnancy-slot-agreement-overlay_component__fxqLk",close:"pregnancy-slot-agreement-overlay_close__2R4TP",pregnancySlotContainer:"pregnancy-slot-agreement-overlay_pregnancySlotContainer__8g6Ve",headline:"pregnancy-slot-agreement-overlay_headline__iArGb",content:"pregnancy-slot-agreement-overlay_content__Oa1s6",field:"pregnancy-slot-agreement-overlay_field__lo586",pregnancySlotButton:"pregnancy-slot-agreement-overlay_pregnancySlotButton__KeFrx"}},98862:function(e){e.exports={component:"treatment_component__nnhcr",close:"treatment_close__nwBwN",clinicIncompatibilityNotification:"treatment_clinicIncompatibilityNotification__ysZBc",header:"treatment_header__WG80v",title:"treatment_title__D3AU3",pregnancySlotHeadline:"treatment_pregnancySlotHeadline__GTaxJ",datePicker:"treatment_datePicker__Shfts",wrapper:"treatment_wrapper__eFZK_",isTreatmentWrapper:"treatment_isTreatmentWrapper__iMsYN",nameRow:"treatment_nameRow__vIWQP",treatmentCardsRow:"treatment_treatmentCardsRow__aGO1d",map:"treatment_map__QhBuX",address:"treatment_address__AOInA",km:"treatment_km__BALfA",clinicImage:"treatment_clinicImage__6Rg3b",cardChooseClinic:"treatment_cardChooseClinic__D1m3i",mapImage:"treatment_mapImage___YHL_",mapText:"treatment_mapText__RHM4F",headline:"treatment_headline__1HInp",kmContainer:"treatment_kmContainer__Pn3yb",clinicLimitation:"treatment_clinicLimitation__mPcCe",clinicLimitationHeadline:"treatment_clinicLimitationHeadline__KSb5B",clinicLimitationIcon:"treatment_clinicLimitationIcon__A62Sv",clinicLimitationText:"treatment_clinicLimitationText__0MwC6",calendarContainer:"treatment_calendarContainer__xphep",openTreatmentClinicSelectorButton:"treatment_openTreatmentClinicSelectorButton__VUaRj",calendarIndicators:"treatment_calendarIndicators__3fO5g",calendarValue:"treatment_calendarValue__iwYlr",calendarOverlayButton:"treatment_calendarOverlayButton__l6JJq",calendarToggle:"treatment_calendarToggle___7AUK",consent:"treatment_consent__zsU7Y",consentCheckbox:"treatment_consentCheckbox__AeISA",consentHeadline:"treatment_consentHeadline__KqkCm",consentText:"treatment_consentText__TjPcL",dateOfBirth:"treatment_dateOfBirth__sU0Jc",field:"treatment_field__w9_Nz",calendarIcon:"treatment_calendarIcon__9zlMd",continueBtn:"treatment_continueBtn__0poTO",errorMessage:"treatment_errorMessage__DoQSG",list:"treatment_list__2YLDN",listItem:"treatment_listItem__tGuxl",hasError:"treatment_hasError__NsQeJ",calendarButton:"treatment_calendarButton__Q131x"}}}]);

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.