1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5615],{11581:(e,t,s)=>{s.d(t,{x:()=>a}),s(81709);let a={basket:{add:"/api/basket/add",quantity:"/api/basket/quantity"},clearRedisCache:"/api/clear-redis-cache",clearCache:"/api/clear-cache",disableDraft:"/api/disable-draft",enableDraft:"/api/draft",products:{byId:"/api/product",byIds:"/api/products"},productDataFeed:"/productDataFeed",search:"/api/search",searchFilters:"/api/search/filters",tracking:"/api/tracking",debug:"/api/debugTool",setOrderCookie:"/api/setOrderCookie",reindexArticles:"/api/reindex-articles",freeShipping:{getThresholds:"/api/freeShipping",getThresholdById:e=>`/api/freeShipping/${e}`,updateThresholdById:e=>`/api/freeShipping/${e}`,deleteThresholdById:e=>`/api/freeShipping/${e}`}}},12407:(e,t,s)=>{s.d(t,{OnClickTrackingWrapper:()=>c});var a=s(95155),n=s(65995),i=s(12115),r=s(33482),o=s(26388),d=s(96990);let u=({tracking:e,children:t})=>{let{consent:s}=(0,d.D)(),{dataLayer:u}=(0,o.i)(),c=(0,n.mQ)(),l=(0,i.useCallback)((t,s)=>{s&&s(t),e&&("select_promotion"===e.event?u.pushPromotionEvent(e):u.pushButtonClickEvent(e))},[u,e]);return c&&t&&t.props&&e&&s!==r.V1.NoConsent?(0,a.jsx)(a.Fragment,{children:i.Children.map(t,e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{onClick:t=>l(t,e.props.onClick)}):e)}):t},c=e=>e.tracking?(0,a.jsx)(u,{...e}):e.children},20905:(e,t,s)=>{s.d(t,{R:()=>n});var a=s(31299);let n=e=>{if(!e)return!1;try{let t=JSON.parse(decodeURIComponent(e));if(!t?.consents_approved?.includes(a.zu.Marketing))return!1}catch{return!1}return!0}},25360:(e,t,s)=>{s.d(t,{U:()=>r});var a=s(12115),n=s(11581);class i{async pushEvent(e,t){try{await fetch(`${n.x.tracking}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventName:e,...t})})}catch(e){console.error("Error sending event",e)}}pushPageViewEvent({packageId:e}){let t="string"==typeof e?parseInt(e):e;this.pushEvent("PageVisit",{packageId:t})}pushItemChangedEvent(){this.pushEvent("ItemChanged",{})}pushItemClickedEvent({packageId:e,raptorModuleName:t}){if(!t||!e)return void console.error("Failed to push event 'ItemClicked' - Module name or package id is missing.");let s="string"==typeof e?parseInt(e):e;this.pushEvent("ItemClicked",{packageId:s,moduleName:t})}}let r=()=>({serverTracking:(0,a.useRef)(new i).current})},31299:(e,t,s)=>{s.d(t,{Lo:()=>n,qJ:()=>a,zu:()=>r});let a="CookieInformationConsent",n="cookieConsentUpdated";var i,r=((i={}).Necessary="cookie_cat_necessary",i.Functional="cookie_cat_functional",i.Statistic="cookie_cat_statistic",i.Marketing="cookie_cat_marketing",i.Unclassified="cookie_cat_unclassified",i)},33287:(e,t,s)=>{s.r(t),s.d(t,{default:()=>A});var a=s(95155),n=s(54921),i=s(12115),r=s(7182),o=s(55317),d=s(44117),u=s(12407),c=s(9339);let l=(0,c.createServerReference)("40e12100a269daa7157e992a37c05b7551337aba75",c.callServer,void 0,c.findSourceMapURL,"applyHiddenVoucher");var m=s(29722),p=s(66609),g=s(68846);let h=({voucherId:e,...t})=>{let[s,n]=(0,i.useState)(),r=async()=>{n("loading");let[t,s]=await l(e);if(!s&&t){p.oR.success(g.u2.discountCodeAddedToBasket),n("success");return}if(s){p.oR.error(s.message),n("fail");return}};return(0,a.jsx)(d.$n,{...t,className:(0,m.A)(t.className,{"!justify-start [&_.arrow]:hidden":"success"===s}),disabled:"success"===s,icon:"success"===s?"Checkmark":null,loading:"loading"===s,onClick:r,children:t.children})};var F=s(73321),v=s(83663);let P=({children:e,authCallback:t,authType:s,authVariant:i,...o})=>{let u=(0,F.usePathname)();return(0,a.jsx)(d.$n,{...o,onClick:((e,t)=>{let s=((e,t)=>{switch(e.authCallback){case"homePage":return r.q.home();case"profilePage":return r.q.profile.overview();case"rxPage":return r.q.profile.prescriptions();default:return t}})(e,t);switch(e.authType){case"signIn":return()=>(0,n.signIn)(v.J,{callbackUrl:s},{prompt:"login",isRxFlow:!0,skipAccountCreation:!0});case"signUpMember":return()=>(0,n.signIn)(v.J,{callbackUrl:r.q.handleLogin(s,s,!0)});case"signUpProfile":return()=>(0,n.signIn)(v.J,{callbackUrl:s});default:return null}})({authCallback:t,authType:s},u),subVariant:d.mV.ButtonLink,variant:i??d.Ak.Primary,children:e})};var N=s(98500),C=s.n(N),I=s(31316),k=s(59722);let f={appStore:{Logo:({color:e,className:t,size:s=I.l.Medium,ariaLabel:n="apple logo"})=>(0,a.jsx)(k.z,{"aria-label":n,className:t,fill:e,size:s,viewBox:"0 0 384 512",children:(0,a.jsx)("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z",fill:"
1currentColor"})}),storeName:"App Store"},googlePlay:{Logo:({size:e,color:t,className:s,ariaLabel:n="google play logo"})=>(0,a.jsxs)(k.z,{"aria-label":n,className:s,fill:t,size:e,viewBox:"30 336.7 120.9 129.2",children:[(0,a.jsx)("path",{d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z",fill:"#FFD400"}),(0,a.jsx)("path",{d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z",fill:"#FF3333"}),(0,a.jsx)("path",{d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z",fill:"#48FF48"}),(0,a.jsx)("path",{d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z",fill:"#3BCCFF"})]}),storeName:"Google Play"}},x=({url:e,newTab:t,label:s,store:n})=>{let{Logo:i,storeName:r}=f[n];return e?(0,a.jsxs)(C(),{className:"flex h-14 w-fit items-center justify-center rounded-xs border border-green-dark-500 bg-black px-4 text-white transition-opacity duration-300 hover:opacity-80",href:e,target:t?"_blank":void 0,children:[(0,a.jsx)("div",{className:"mr-3",children:(0,a.jsx)(i,{className:"h-[40px] w-[30px]"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs",children:s??g.u2.getTheApp}),(0,a.jsx)("div",{className:"-mt-1 font-sansSemiBold text-xl font-medium",children:r})]})]}):null},A=({linkVariant:e,voucherId:t,children:s,tracking:c,modalLinkContent:l,authCallback:m,authType:p,authVariant:g,prescriptionDestination:F,...v})=>{let N=(0,i.useContext)(n.SessionContext),C=!!N?.data?.user?.isMitIdAuthenticated;if("auth"===e)return(0,a.jsx)(u.OnClickTrackingWrapper,{tracking:c,children:(0,a.jsx)(P,{...v,authCallback:m,authType:p,authVariant:g,children:s})});if("mitId"===e)return(0,a.jsx)(u.OnClickTrackingWrapper,{tracking:c,children:(0,a.jsx)(d.$n,{...v,subVariant:d.mV.Button,url:r.q.mitIdLogin(r.q.profile.prescriptions()),variant:d.Ak.MitId,children:s})});if("prescription"===e){let e=F??"rxLanding",t="rxLanding"===e?r.q.rx.landing():r.q.mitIdLogin(r.q.handleLogin(r.q.profile.prescriptions())),n=C?r.q.profile.prescriptions():t,i="rxLanding"===e||C?d.Ak.Primary:d.Ak.MitId;return(0,a.jsx)(u.OnClickTrackingWrapper,{tracking:c,children:(0,a.jsx)(d.$n,{...v,subVariant:d.mV.Button,url:n,variant:i,children:s})})}if("voucher"===e&&t)return(0,a.jsx)(h,{...v,subVariant:d.mV.ButtonLink,url:null,variant:d.Ak.Primary,voucherId:t,children:s});if("modalLink"===e)return(0,a.jsx)(o.default,{content:l,title:v.label,trigger:(0,a.jsx)(d.$n,{...v,subVariant:v.subVariant??d.mV.Link,url:null,children:s}),triggerAsChild:!0});if("dixaChat"===e)return(0,a.jsx)(u.OnClickTrackingWrapper,{tracking:c,children:(0,a.jsx)(d.$n,{...v,onClick:()=>window._dixa_?.invoke("setWidgetOpen",!0),url:null,children:s})});if("appStore"===e||"googlePlay"===e){let t=v?.url,s=v?.newTab,n=v?.label;return(0,a.jsx)(x,{label:n,newTab:s,store:e,url:t})}return(0,a.jsx)(u.OnClickTrackingWrapper,{tracking:c,children:(0,a.jsx)(d.$n,{...v,children:s})})}},33482:(e,t,s)=>{s.d(t,{IZ:()=>r,V1:()=>n,jH:()=>i});var a,n=((a={})[a.NoConsent=0]="NoConsent",a[a.CookieConsentOnly=1]="CookieConsentOnly",a[a.FullConsent=2]="FullConsent",a);let i=(e,t)=>e&&e.hasApoproAccount&&e.isMitIdAuthenticated&&e.id>0?2:+!!t,r=(e,t)=>0!==t&&(2===t||!e.isSensitive)},78410:(e,t,s)=>{s.d(t,{GF:()=>n,Ni:()=>a,XS:()=>i});let a=e=>e?.richText!==void 0,n=e=>!!(e&&"fieldName"in e&&"string"==typeof e.fieldName),i=e=>!!(e&&"validationErrors"in e&&Array.isArray(e.validationErrors))},79285:(e,t,s)=>{s.d(t,{E:()=>l});var a=s(95155),n=s(43146),i=s(29722),r=s(12115),o=s(64826),d=s(68846),u=s(87883),c=s(7470);let l=(0,r.forwardRef)(({className:e,contentClassName:t,id:s,testId:l,children:m,setOpen:p,usePortal:g=!0,title:h,large:F,withCloseButton:v=!0,...P},N)=>{let C=g?n.ZL:r.Fragment;return(0,a.jsxs)(C,{children:[(0,a.jsx)(u.L,{}),(0,a.jsxs)(n.UC,{...(0,o.s1)({testId:l}),className:(0,i.A)("anim-duration-500 fixed bottom-0 z-dialog h-auto text-sand-light outline-none md:container md:bottom-auto md:left-1/2 md:top-1/2 md:-translate-x-1/2 md:-translate-y-1/2 max-md:w-[100vw]","motion-safe:data-[state=open]:animate-in motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=open]:slide-in-from-bottom-1/2 md:motion-safe:data-[state=open]:zoom-in-95","motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:slide-out-to-bottom-1/2 md:motion-safe:data-[state=closed]:zoom-out-95",e),id:s,onInteractOutside:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),ref:N,...P,children:[(0,a.jsx)(n.hE,{className:"sr-only",children:h}),(0,a.jsx)(n.VY,{className:"sr-only",children:h}),(0,a.jsx)("div",{className:"grid10 h-full",children:(0,a.jsxs)("div",{className:(0,i.A)("relative col-span-10 max-h-[calc(100vh-3.5rem)] rounded-t-md bg-green-dark pt-20 md:rounded-bl-md md:rounded-tl-none md:pt-0",F?"md:col-span-8 md:col-start-2 lg:col-span-6 lg:col-start-3 2xl:col-span-4 2xl:col-start-4":"md:col-span-6 md:col-start-3 lg:col-span-4 lg:col-start-4",t),children:[(0,a.jsx)("div",{className:"grid8 h-full max-h-full overflow-auto p-8 pt-0 focus:outline-offset-4 focus:outline-green-light focus:ring-offset-4 md:pb-12 md:pt-6",children:(0,a.jsx)("div",{className:"col-span-8 md:my-auto md:pt-10",children:m})}),v&&(0,a.jsxs)(n.bm,{...(0,o.pg)({testId:l},"close-button"),className:"absolute right-8 top-8 rounded-full hover:bg-green-dark-750 focus:outline-offset-4 focus:outline-green-dark-100 focus:ring-offset-4 active:bg-green-dark-750 disabled:pointer-events-none md:top-6",onClick:()=>p&&p(!1),children:[(0,a.jsx)(c.vf,{size:c.lK.Small}),(0,a.jsx)("span",{className:"sr-only",children:d.u2.close})]})]})})]})]})});l.displayName=n.UC.displayName},81709:(e,t,s)=>{s.d(t,{iL:()=>a,AK:()=>n}),s(88882);s(68846);let a=e=>{if(e)return new URLSearchParams(e.map(e=>["productIds",e])).toString()},n=e=>e.split(/â¢|•|•/).map(e=>e.replace(/â¢|•|•/,"").trim()).filter(e=>!!e)},83663:(e,t,s)=>{s.d(t,{J:()=>a});let a="azure-ad-b2c"},85329:(e,t,s)=>{s.d(t,{SX:()=>n,VM:()=>o,X7:()=>r});var a=s(68846);let n={ApoproAccessTokenExpired:{message:a.u2.apoproAccessTokenExpired,name:"ApoproAccessTokenExpired",status:401},ApoproAccessTokenUnauthorized:{message:a.u2.registerToUseThisFeature,name:"ApoproAccessTokenUnauthorized",status:401},ApoproAccessTokenMissing:{message:a.u2.apoproAccessTokenMissing,name:"ApoproAccessTokenMissing",status:401},FailedToCreateBasket:{message:a.u2.somethingWentWrongMessage,name:"FailedToCreateBasket",status:400},UserNotFound:{message:a.u2.somethingWentWrongMessage,name:"UserNotFound",status:404},AddressInvalidQuery:{message:a.yc.provideValidAddress,name:"AddressInvalidQuery",status:400},AddressLineInvalid:{message:a.yc.provideValidAddress,name:"AddressLineInvalid",status:400},AddressSearchFailed:{message:a.u2.somethingWentWrongMessage,name:"AddressSearchFailed",status:503},BlockInternalServerError:{message:a.u2.defaultErrorMessage,name:"BlockInternalServerError",status:400},CancelOrderTokenInvalid:{message:a.u2.somethingWentWrongMessage,name:"CancelOrderTokenInvalid",status:400},CannotAddNotificationToThisProduct:{message:a.u2.somethingWentWrongMessage,name:"CannotAddNotificationToThisProduct",status:400},CannotFindApoCoreAccount:{message:a.u2.defaultErrorMessage,name:"CannotFindApoCoreAccount",status:404},CannotModifyFreeGifts:{message:a.u2.defaultErrorMessage,name:"CannotModifyFreeGifts",status:400},CannotAddProductFromHandledPrescription:{message:a.u2.prescriptionBeingProcessedMessage,name:"CannotAddProductFromHandledPrescription",status:400}
1,CityInvalid:{message:a.yc.provideValidAddress,name:"CityInvalid",status:400},CompanyNameInvalid:{message:a.yc.provideValidCompanyName,name:"CompanyNameInvalid",status:400},CountryInvalid:{message:a.yc.provideValidAddress,name:"CountryInvalid",status:400},CprAlreadyAdded:{message:a.u2.cprAlreadyAdded,name:"CprAlreadyAdded",status:400},CprInvalid:{message:a.yc.provideValidCprNumber,name:"CprInvalid",status:400},CprMismatch:{message:a.u2.prescriptionCprNotFound,name:"CprMismatch",status:400},CtrStatusNotFound:{name:"CtrStatusNotFound",message:a.u2.failedToGetPrescriptions,status:404},EmailInvalid:{message:a.yc.provideValidEmail,name:"EmailInvalid",status:400},FailedFetchingDrugPrice:{name:"FailedFetchingDrugPrice",message:"{reason}",status:400},FailedToAddToFavorites:{message:a.u2.favorites.addProductFailed,name:"FailedToAddToFavorites",status:400},FailedToChangeConsents:{message:a.u2.consentsPage.updateConsentFailed,name:"ConsentUpdateFailed",status:400},FailedToGetConsents:{message:a.u2.consentsPage.getConsentFailed,name:"ConsentGetFailed",status:400},FailedToGetPrescriptionsForGivenOrder:{message:a.u2.failedToGetPrescriptionsForGivenOrder,name:"FailedToGetPrescriptionsForGivenOrder",status:400},FailedToReadCprNumber:{message:a.u2.prescriptionCprNotFound,name:"FailedToReadCprNumber",status:400},FailedToReadFavorites:{message:a.u2.defaultErrorMessage,name:"FailedToReadFavorites",status:400},InvalidOrderRetrievalDate:{message:a.u2.failedToGetPrescriptions,name:"InvalidOrderRetrievalDate",status:400},FailedToReadPrescriptions:{message:a.u2.failedToGetPrescriptions,name:"FailedToReadPrescriptions",status:400},FailedToRegisterEmailForNotification:{message:a.u2.somethingWentWrongMessage,name:"FailedToRegisterEmailForNotification",status:400},FailedToRemoveFromFavorites:{message:a.u2.favorites.removeProductFailed,name:"FailedToRemoveFromFavorites",status:400},FailedToUpdateOrderAddresses:{message:a.u2.somethingWentWrongMessage,name:"OrderAddressesUpdateFailed",status:400},FailedToValidateCaptcha:{message:a.u2.reCaptchaError,name:"FailedToValidateCaptcha",status:400},FirstNameInvalid:{message:a.yc.provideValidFirstName,name:"FirstNameInvalid",status:400},GenderInvalid:{message:a.yc.provideValidGender,name:"GenderInvalid",status:400},GordonUnavailable:{message:a.u2.somethingWentWrongMessage,name:"GordonUnavailable",status:400},GuardianRoleNotEligible:{message:a.u2.checkCprNumber,name:"GuardianRoleNotEligible",status:400},ParentRoleNotEligible:{message:a.u2.checkCprNumber,name:"ParentRoleNotEligible",status:400},InternalServerError:{message:a.u2.somethingWentWrongMessage,name:"InternalServerError",status:500},InvalidRequest:{message:"Request is invalid",name:"InvalidRequest",status:400},InvalidItemQuantity:{message:a.u2.defaultErrorMessage,name:"InvalidItemQuantity",status:400},ItemExceedsInventory:{name:"ItemExceedsInventory",message:a.u2.notEnoughProductsInStock,status:400},ItemExceedsRxInventory:{name:"ItemExceedsRxInventory",message:a.u2.notEnoughProductsPrescribed,status:400},ItemNotFound:{name:"ItemNotFound",message:a.u2.itemNotFound,status:404},LastNameInvalid:{message:a.yc.provideValidLastName,name:"LastNameInvalid",status:400},FailedToGenerateVoucher:{message:a.u2.failedToGenerateFreeShippingVoucher,name:"FailedToGenerateVoucher",status:400},MedicineCardInvalid:{name:"MedicineCardInvalid",message:a.u2.invalidMedicineCardMessage,status:400},MitIdAccessTokenExpired:{message:a.u2.mitIdTokenExpired,name:"MitIdAccessTokenExpired",status:401},MitIdUnauthorized:{message:a.u2.registerToUseThisFeature,name:"MitIdUnauthorized",status:401},MitIdMissingToken:{message:a.u2.mitIdMissingToken,name:"MitIdTokenMissing",status:401},NameInvalid:{message:a.yc.provideValidName,name:"NameInvalid",status:400},NarcoticsItemQuantity:{message:a.u2.narcoticsItemQuantityError,name:"NarcoticsItemQuantity",status:400},NoOrderInBasketState:{message:a.u2.somethingWentWrongMessage,name:"NoOrderInBasketState",status:404},OrderAddressLineInvalid:{message:a.yc.provideValidAddress,name:"OrderAddressInvalid",status:400},OrderAlreadyCanceled:{message:a.u2.orderAlreadyCanceled,name:"OrderAlreadyCanceled",status:400}
1,OrderIdIsNotValid:{message:a.u2.orderIdNotValid,name:"OrderIdIsNotValid",status:400},OrderNotAvailableForCancel:{message:a.u2.orderNotAvailableForCancel,name:"OrderNotAvailableForCancel",status:400},OrderNotAvailableForCustomerReassignment:{name:"OrderNotAvailableForCustomerReassignment",message:a.u2.somethingWentWrongMessage,status:400},OrderNotEditableByCustomers:{name:"OrderNotEditableByCustomers",message:a.u2.somethingWentWrongMessage,status:400},OrderShippingInvalid:{message:a.u2.orderShippingInvalid,name:"OrderShippingInvalid",status:400},OrderExcessivePurchaseDetected:{message:a.u2.orderExcessivePurchaseDetected,name:"OrderExcessivePurchaseDetected",status:400},OrderProductUnavailable:{message:a.u2.orderExcessivePurchaseDetected,name:"OrderProductUnavailable",status:400},PageNotFound:{message:a.u2.pageNotFound,name:"PageNotFound",status:400},PhoneNumberInvalid:{message:a.yc.provideValidPhone,name:"PhoneNumberInvalid",status:400},PickingLocationForHomeDelivery:{message:a.q0.PickingLocationForHomeDeliveryNotFound,name:"ShippingOptionNotAvailable",status:400},PickingLocationsNotFound:{message:a.q0.pickingLocationsNotFound,name:"PickingLocationsNotFound",status:404},PostcodeInvalid:{message:a.yc.provideValidAddress,name:"PostcodeInvalid",status:400},ApocoreClientTimeout:{message:a.u2.somethingWentWrongMessage,name:"ApocoreClientTimeout",status:400},GrantNotFound:{message:a.u2.powersOfAttorney.grantNotFound,name:"GrantNotFound",status:404},MedicineCardNotRetrieved:{message:a.u2.somethingWentWrongMessage,name:"MedicineCardNotRetrieved",status:409},MedicineCardCprMismatch:{message:a.u2.somethingWentWrongMessage,name:"MedicineCardCprMismatch",status:409},HealthInsuranceCannotBeFetched:{message:a.u2.somethingWentWrongMessage,name:"HealthInsuranceCannotBeFetched",status:502},CannotAcceptGrant:{message:a.u2.powersOfAttorney.cannotAcceptGrant,name:"CannotAcceptGrant",status:400},CannotRevokeGrant:{message:a.u2.powersOfAttorney.cannotRevokeGrant,name:"CannotRevokeGrant",status:400},CannotRejectGrant:{message:a.u2.powersOfAttorney.cannotRejectGrant,name:"CannotRejectGrant",status:400},CannotCreateDuplicateActiveGrant:{message:a.u2.powersOfAttorney.activeGrantAlreadyExists,name:"CannotCreateDuplicateActiveGrant",status:400},InvalidUser:{message:a.u2.powersOfAttorney.wrongGrantParty,name:"InvalidUser",status:400},StateCannotBeChanged:{message:a.u2.powersOfAttorney.cannotChangeGrantState,name:"StateCannotBeChanged",status:400},InvalidCprNumber:{message:a.u2.enterValidCprNumber,name:"InvalidCprNumber",status:400},PowerOfAttorneyUnprivileged:{message:a.u2.powersOfAttorney.genericErrorMessage,name:"PowerOfAttorneyUnprivileged",status:400},PrescriptionNotFoundInExternalSystem:{message:a.u2.prescriptionNotFoundInFmk,name:"PrescriptionNotFoundInExternalSystem",status:404},ProductCannot:{message:a.u2.somethingWentWrongMessage,name:"FailedToRegisterEmailForNotification",status:400},ProductCanNotBeAdded:{name:"ProductCanNotBeAdded",message:a.u2.productCanNotBeAdded,status:400},ProductNotFound:{message:a.u2.productNotAvailable,name:"ProductNotFound",status:404},ProductsNotFound:{message:a.u2.productsNotAvailable,name:"ProductsNotFound",status:404},ProfileCannotBeUpdated:{message:a.u2.profileCannotBeUpdated,name:"ProfileCannotBeUpdated",status:400},ProfileBirthdayInvalid:{message:a.yc.provideValidBirthday,name:"ProfileBirthdayInvalid",status:400},RaptorProductsNotFound:{message:a.u2.raptorProductsNotAvailable,name:"RaptorProductsNotFound",status:404},ReconsentUserNotFound:{message:a.u2.reconsentUserNotFound,name:"ReconsentUserNotFound",status:404},RxTooOld:{message:a.u2.yourBasketHasExpired,name:"RxTooOld",status:400},SearchHasFailed:{message:a.u2.defaultErrorMessage,name:"SearchHasFailed",status:400},ShippingIdNotFound:{message:a.q0.shippingIdNotFound,name:"ShippingIdNotFound",status:404},ShippingOptionsNotFound:{message:a.q0.shippingOptionsNotFound,name:"ShippingOptionNotFound",status:404},Timeout:{message:a.u2.timeoutError,name:"Timeout",status:408},FreeShippingThresholdIdInvalid:{message:a.x3.freeShippingThresholdIdInvalid,name:"FreeShippingThresholdIdInvalid",status:400},FreeShippingThresholdDiscountInvalid:{message:a.x3.freeShippingThresholdDiscountInvalid,name:"FreeShippingThresholdDiscountInvalid",status:400},FreeShippingThresholdShippingLimitInvalid:{message:a.x3.freeShippingThresholdShippingLimitInvalid,name:"FreeShippingThresholdShippingLimitInvalid",status:400},FreeShippingThresholdIdNotFound:{message:a.x3.freeShippingThresholdIdNotFound,name:"FreeShippingThresholdIdNotFound",status:404},FreeShippingThresholdNotRetrieved:{message:a.x3.freeShippingThresholdNotRetrieved,name:"FreeShippingThresholdNotRetrieved",status:400},FreeShippingThresholdNotDeleted:{message:a.x3.freeShippingThresholdNotDeleted,name:"FreeShippingThresholdNotDeleted",status:400},FreeShippingThresholdNotAdded:{message:a.x3.freeShippingThresholdNotAdded,name:"FreeShippingThresholdNotAdded",status:400},FreeShippingThresholdNotUpdated:{message:a.x3.freeShippingThresholdNotUpdated,name:"FreeShippingThresholdNotUpdated",status:400},FreeShippingThresholdNonMemberOnly:{message:a.x3.freeShippingThresholdNonMemberOnly,name:"FreeShippingThresholdNonMemberOnly",status:400},RedisUnavailable:{message:a.u2.somethingWentWrongMessage,name:"RedisUnavailable",status:503},ThatShouldNeverHappen:{message:a.u2.somethingWentWrongMessage,name:"ThatShouldNeverHappen",status:500},TooManyItemsInTheBasket:{name:"TooManyItemsInTheBasket",message:a.u2.youHaveTooManyProductsInTheBasket,status:400},TooManyItemsOfSameTypeInTheBasket:{name:"TooManyItemsOfSameTypeInTheBasket",message:a.u2.youHaveTooManyProductsOfSameTypeInTheBasket,status:400}
1,TooManyProductsWithTheSameActiveSubstanceTheSameDay:{name:"TooManyProductsWithTheSameActiveSubstanceTheSameDay",message:a.u2.youHaveTooManyProductsWithTheSameActiveSubstanceTheSameDay,status:400},UserUnauthorized:{message:a.u2.registerToUseThisFeature,name:"UserUnauthorized",status:401},VoucherInvalid:{message:a.yc.voucherInvalid,name:"VoucherInvalid",status:400},FmkActingPersonNameProtected:{message:a.E$.actingPersonNameProtected,name:"FmkActingPersonNameProtected",status:400},FmkConsentRequired:{message:a.E$.consentRequired,name:"FmkConsentRequired",status:400},FmkCprDoesNotExist:{message:a.E$.cprDoesNotExist,name:"FmkCprDoesNotExist",status:400},FmkCprMismatch:{message:a.E$.cprMismatch,name:"FmkCprMismatch",status:400},FmkDrugMedicationNotFound:{message:a.E$.cannotBeRenewedContactDoctor,name:"FmkDrugMedicationNotFound",status:404},FmkDrugNoLongerValidInCatalog:{message:a.E$.drugNoLongerValidInCatalog,name:"FmkDrugNoLongerValidInCatalog",status:400},FmkMedicineCardLookupOutOfRange:{message:a.E$.medicineCardNotFound,name:"FmkMedicineCardLookupOutOfRange",status:400},FmkMedicineCardNotFound:{message:a.E$.medicineCardNotFound,name:"FmkMedicineCardNotFound",status:404},FmkMedicineCardVersionConflict:{message:a.E$.medicineCardVersionConflict,name:"FmkMedicineCardVersionConflict",status:400},FmkPatientDeceased:{message:a.E$.patientDeceased,name:"FmkPatientDeceased",status:400},FmkPrescribingOrganizationNotPermitted:{message:a.E$.prescribingOrganizationNotPermitted,name:"FmkPrescribingOrganizationNotPermitted",status:400},FmkPrescriptionDateConstraintViolated:{message:a.E$.dateConstraintViolated,name:"FmkPrescriptionDateConstraintViolated",status:400}
1,FmkPrescriptionNotEligibleForRenewal:{message:a.E$.notEligibleForRenewal,name:"FmkPrescriptionNotEligibleForRenewal",status:400},FmkPrescriptionRenewalRequestNotFound:{message:a.E$.renewalRequestNotFound,name:"FmkPrescriptionRenewalRequestNotFound",status:404},FmkPrescriptionRequestAlreadyFulfilled:{message:a.E$.requestAlreadyFulfilled,name:"FmkPrescriptionRequestAlreadyFulfilled",status:400},FmkPrivateMarked:{message:a.E$.privateMarked,name:"FmkPrivateMarked",status:400},FmkRoleConditionsNotMet:{message:a.E$.roleConditionsNotMet,name:"FmkRoleConditionsNotMet",status:400},FmkUnavailable:{message:a.E$.fmkUnavailable,name:"FmkUnavailable",status:503},FmkUnexpected:{message:a.E$.fmkUnavailable,name:"FmkUnexpected",status:503},NspCprMismatch:{message:a.E$.cprMismatch,name:"NspCprMismatch",status:400},NspMitIdAccessTokenExpired:{message:a.E$.mitIdSessionExpired,name:"NspMitIdAccessTokenExpired",status:400},NspNemLoginCommunication:{message:a.E$.nemLoginCommunication,name:"NspNemLoginCommunication",status:400},PatientContextFailedToFetchRelative:{message:a.E$.failedToFetchRelative,name:"PatientContextFailedToFetchRelative",status:500},PatientContextGrantNotFound:{message:a.E$.grantNotFound,name:"PatientContextGrantNotFound",status:404},PatientContextInvalid:{message:a.E$.patientContextInvalid,name:"PatientContextInvalid",status:400},PatientContextInvalidGrantId:{message:a.E$.grantNotFound,name:"PatientContextInvalidGrantId",status:400},PatientContextInvalidRelativeId:{message:a.E$.relativeNotFound,name:"PatientContextInvalidRelativeId",status:400},PatientContextMedicineCardAccessRejected:{message:a.E$.roleConditionsNotMet,name:"PatientContextMedicineCardAccessRejected",status:400},PatientContextProvidedNotAllowed:{message:a.E$.providedNotAllowed,name:"PatientContextProvidedNotAllowed",status:400},PatientContextRelativeNotFound:{message:a.E$.relativeNotFound,name:"PatientContextRelativeNotFound",status:404},PatientContextRepresentativeCprRequired:{message:a.E$.patientCprRequired,name:"PatientContextRepresentativeCprRequired",status:400},PatientContextSessionContextRequiresApocoreUser:{message:a.E$.loginRequired,name:"PatientContextSessionContextRequiresApocoreUser",status:400},PrescriptionsActorAndPatientMustBeDistinct:{message:a.E$.actorAndPatientMustBeDistinct,name:"PrescriptionsActorAndPatientMustBeDistinct",status:400},PrescriptionsCannotRenewOpenPrescription:{message:a.E$.cannotRenewOpenPrescription,name:"PrescriptionsCannotRenewOpenPrescription",status:400},PrescriptionsConflictingActiveDrugMedication:{message:a.E$.conflictingActivePrescription,name:"PrescriptionsConflictingActiveDrugMedication",status:400},PrescriptionsConflictingOpenPrescriptionForSameDrug:{message:a.E$.conflictingActivePrescription,name:"PrescriptionsConflictingOpenPrescriptionForSameDrug",status:400},PrescriptionsConflictingOpenPrescriptionForSubstituteDrug:{message:a.E$.conflictingActivePrescription,name:"PrescriptionsConflictingOpenPrescriptionForSubstituteDrug",status:400},PrescriptionsDoseDispensingStarted:{message:a.E$.doseDispensingStarted,name:"PrescriptionsDoseDispensingStarted",status:400},PrescriptionsDrugForbiddenAtcGroup:{message:a.E$.drugForbiddenAtcGroup,name:"PrescriptionsDrugForbiddenAtcGroup",status:400},PrescriptionsDrugForbiddenProductType:{message:a.E$.drugForbiddenProductType,name:"PrescriptionsDrugForbiddenProductType",status:400},PrescriptionsDrugMedicationForPrescriptionNotFound:{message:a.E$.cannotBeRenewedContactDoctor,name:"PrescriptionsDrugMedicationForPrescriptionNotFound",status:404},PrescriptionsDrugMedicationHasNoDispensing:{message:a.E$.cannotBeRenewedContactDoctor,name:"PrescriptionsDrugMedicationHasNoDispensing",status:400},PrescriptionsDrugMedicationHasNoDrugIdentifier:{message:a.E$.cannotBeRenewedContactDoctor,name:"PrescriptionsDrugMedicationHasNoDrugIdentifier",status:400},PrescriptionsDrugMedicationHasNoInactivePrescriptions:{message:a.E$.cannotRenewOpenPrescription,name:"PrescriptionsDrugMedicationHasNoInactivePrescriptions",status:400},PrescriptionsDrugMedicationHasNoPackageNumber:{message:a.E$.cannotBeRenewedContactDoctor,name:"PrescriptionsDrugMedicationHasNoPackageNumber",status:400},PrescriptionsDrugMedicationNotActive:{message:a.E$.drugMedicationNotActive,name:"PrescriptionsDrugMedicationNotActive",status:400},PrescriptionsDrugNotAvailable:{message:a.E$.drugNotAvailable,name:"PrescriptionsDrugNotAvailable",status:404},PrescriptionsDrugNotFromMedicinPriser:{message:a.E$.drugNotFromMedicinPriser,name:"PrescriptionsDrugNotFromMedicinPriser",status:400},PrescriptionsDrugSubstitutionsNotFound:{message:a.E$.substitutionsNotFound,name:"PrescriptionsDrugSubstitutionsNotFound",status:404},PrescriptionsFailedToFetchDrug:{message:a.E$.failedToFetchDrug,name:"PrescriptionsFailedToFetchDrug",status:500},PrescriptionsFailedToRenewPrescription:{message:a.E$.failedToSendRequest,name:"PrescriptionsFailedToRenewPrescription",status:500},PrescriptionsIncompleteSubstitutionSelection:{message:a.E$.failedToSendRequest,name:"PrescriptionsIncompleteSubstitutionSelection",status:400},PrescriptionsInvalidRole:{message:a.E$.patientContextInvalid,name:"PrescriptionsInvalidRole",status:400},PrescriptionsMedicineCardNotFound:{message:a.E$.medicineCardNotFound,name:"PrescriptionsMedicineCardNotFound",status:404}
1,PrescriptionsNoPrescribingOrganisationFound:{message:a.E$.noPrescribingOrganisationFound,name:"PrescriptionsNoPrescribingOrganisationFound",status:400},PrescriptionsPatientCprRequired:{message:a.E$.patientCprRequired,name:"PrescriptionsPatientCprRequired",status:400},PrescriptionsPendingRenewalRequestExists:{message:a.u2.pendingRenewalRequestExists,name:"PrescriptionsPendingRenewalRequestExists",status:409},PrescriptionsPendingRenewalRequestExistsInAnotherSystem:{message:a.E$.pendingRenewalRequestExistsInAnotherSystem,name:"PrescriptionsPendingRenewalRequestExistsInAnotherSystem",status:409},PrescriptionsPrescriptionIsPrivate:{message:a.E$.prescriptionIsPrivate,name:"PrescriptionsPrescriptionIsPrivate",status:400},PrescriptionsPrescriptionNotFound:{message:a.E$.prescriptionNotFound,name:"PrescriptionsPrescriptionNotFound",status:404},PrescriptionsRenewalRequestNotFound:{message:a.E$.renewalRequestNotFound,name:"PrescriptionsRenewalRequestNotFound",status:404},PrescriptionsRequestedAmountBelowMinimum:{message:a.E$.requestedAmountBelowMinimum,name:"PrescriptionsRequestedAmountBelowMinimum",status:400},PrescriptionsRequestedAmountExceedsMaximum:{message:a.E$.requestedAmountExceedsMaximum,name:"PrescriptionsRequestedAmountExceedsMaximum",status:400},PrescriptionsSelectedSubstitutionIsDiscontinued:{message:a.E$.selectedSubstitutionIsDiscontinued,name:"PrescriptionsSelectedSubstitutionIsDiscontinued",status:400},PrescriptionsSelectedSubstitutionNotFound:{message:a.E$.substitutionsNotFound,name:"PrescriptionsSelectedSubstitutionNotFound",status:400},PrescriptionsSubstitutionNotAllowed:{message:a.E$.substitutionRequired,name:"PrescriptionsSubstitutionNotAllowed",status:400},PrescriptionsNotRetrievedFromFmk:{message:a.E$.fmkUnavailable,name:"PrescriptionsNotRetrievedFromFmk",status:500},StsUnavailable:{message:a.E$.stsUnavailable,name:"StsUnavailable",status:503},StsUnexpected:{message:a.E$.stsUnavailable,name:"StsUnexpected",status:503}},i=[n.FmkUnavailable.name,n.FmkUnexpected.name,n.PrescriptionNotFoundInExternalSystem.name,n.StsUnavailable.name,n.StsUnexpected.name,n.PrescriptionsNotRetrievedFromFmk.name],r=e=>!!e?.name&&i.includes(e.name);class o extends Error{constructor(e){const t=n[e]??n.InternalServerError;super(t.message),this.name=t.name}}},96990:(e,t,s)=>{s.d(t,{D:()=>u});var a=s(54921),n=s(12115),i=s(47287),r=s(31299),o=s(20905),d=s(33482);let u=()=>{let e=(0,a.useSession)(),t=e?.data?.user,[s]=(0,i.A)(r.qJ,{eventName:r.Lo}),u=(0,n.useMemo)(()=>{let e=(0,o.R)(s);return(0,d.jH)(t,e)},[s,t,t?.hasApoproAccount]);return{consent:u,canTrack:e=>(0,d.IZ)(e,u)}}}}]); 2//# sourceMappingURL=5615-aa696117012807db.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.