1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="13ed7971-0524-4d17-a45a-d322925d62ad",e._sentryDebugIdIdentifier="sentry-dbid-13ed7971-0524-4d17-a45a-d322925d62ad")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];if(null!=t)for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:pawshake-seo-application-key":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81294],{72184:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/conversation/[bookingId]/checkout",function(){return t(23674)}])},23674:function(e,a,t){"use strict";t.r(a),t.d(a,{StripeRedirectSchema:function(){return eZ},__N_SSP:function(){return e_},default:function(){return eI}});var s=t(5311),n=t(25900),r=t.n(n),l=t(13714),c=t(66840),i=t(69689),o=t(35999);let d=e=>(0,o.M)()((0,i.mW)(a=>({...e,clearRedirectInfo:()=>a({paymentRedirectInfo:null}),updateIntentStatus:e=>a(a=>({intent:{...a.intent,status:e}}))})));var m=t(18770);let u=(0,c.createContext)(null),x=e=>{let{children:a,...t}=e,n=(0,c.useRef)();return n.current||(n.current=d(t)),(0,s.jsx)(u.Provider,{value:n.current,children:a})},p=e=>{let a=(0,c.useContext)(u);if(!a)throw Error("usePaymentStore must be use within PaymentStoreProvider");return(0,m.oR)(a,e)};var h=t(18967),f=t(21433),g=t(81369),j=t(80777),b=t(34749),y=t(13191),N=t(78684),v=t(99924),k=t(93893),w=t(46006),z=t(79217),S=t(23968),P=t(87927),B=t(81271),F=t(7909),C=t(53503),_=t(30020),I=t(34727),E=t(99274),T=t(27962),Z=t(38377),D=t(87755),M=t(68670),U=t(95469),K=t(23433),L=t(56170),R=t(18454),A=t(15457);t(41830);var G=t(34095),H=t(83658);let O=g.z.record(g.z.string(),g.z.unknown());g.z.object({bookingId:g.z.string(),bookableService:A.Ew,suburb:g.z.string().nullable(),petOwner:g.z.object({firstName:g.z.string(),lastName:g.z.string(),email:g.z.string().email()}),petSitter:g.z.object({sitterId:g.z.string(),firstName:g.z.string(),lastName:g.z.string(),email:g.z.string(),profileUrl:g.z.string().url()}),cancellationPolicy:H.No,dates:g.z.array(g.z.string()),location:g.z.enum(["petOwner","petSitter"]),intentId:g.z.string(),priceBreakdown:H.Ot,analyticsProperties:g.z.object({purchaseEvent:O})});let W=g.z.enum(["payment","setup"]),q=g.z.object({brand:g.z.string().optional(),last4:g.z.string().optional()}),J=g.z.enum(["requires_payment_method","requires_confirmation","requires_action","processing","requires_capture","canceled","succeeded","unknown"]);g.z.object({intentType:W,initialIntentType:W.optional(),intentId:g.z.string().nullable(),status:J,paymentSucceeded:g.z.boolean(),cardDetails:q.optional(),shouldBeConfirmedBy:g.z.string().nullish()}),g.z.object({intentType:W,intentId:g.z.string().nullable(),intentClientSecret:g.z.string(),status:J.catch(J.enum.unknown)});let Y=g.z.enum(["amex","diners","discover","eftpos_au","jcb","mastercard","unionpay","visa","unknown"]),$=g.z.object({id:g.z.string(),type:g.z.string(),created:g.z.number(),card:g.z.object({fingerprint:g.z.string().optional().nullable(),brand:Y.catch(Y.enum.unknown),last4:g.z.string().optional(),expMonth:g.z.number().optional(),expYear:g.z.number().optional()})}),X=g.z.array($),V=async e=>{try{let a=await G.hi.get({url:"/customers/payment-methods",user:e,config:{baseUrl:"https://api.production.pawshake.io"}}),t=await a.json();return X.parse(t)}catch(e){R.k.error("dashboard.api.tsx - fetchPaymentMethods - try/catch",{error:e});return}},Q=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let{user:e}=(0,K.f)();return(0,L.a)({queryKey:["fetch-payment-methods"],queryFn:()=>V(e)})};var ee=t(28522),ea=t(86376),et=t(80333),es=t(33997),en=t(24890),er=t(45119),el=t(78127),ec=t(82415),ei=t(76696),eo=t(75692),ed=t(3654);let em=e=>{switch(e){case"nl-BE":case"nl-NL":return"nl";case"fr-BE":case"fr-CH":case"fr-LU":case"fr-CA":return"fr";case"fr-FR":return"fr-FR";case"de-BE":case"de-CH":case"de-DE":case"de-LU":case"de-AT":return"de";case"en-BE":case"en-DE":case"en-FR":case"en-LU":case"en-NL":case"en-HK":case"en-SG":case"en-IE":case"en-JP":case"en-AT":case"en-DK":case"en-IT":case"en-NO":case"en-SE":case"en-FI":case"en-CH":return"en";case"en-CA":return"en-CA";case"en-NZ":return"en-NZ";case"en-GB":default:return"en-GB";case"en-AU":return"en-AU";case"it-CH":return"it";case"it-IT":return"it-IT";case"da-DK":return"da";case"fi-FI":return"fi";case"no-NO":return"nb";case"sv-SE":return"sv"}},eu=e=>{switch(e){case"visa":return eo.Ov;case"mastercard":return eo.DN;case"amex":return eo.dN;default:return S.p}},ex=e=>{if(!e.expMonth||!e.expYear)return;let a=new Date(e.expYear,e.expMonth-1);return(0,ed.Z)(a,"MM/yy")},ep={layout:"tabs"},eh=(0,en.J)("pk_live_51Hw8pxLTwGqApUMx4ey61cY7uSW4wJpKnKeSHJGvq2BufnCg1xhxkOFeUqKrjNxKqpFO246FxdWdQjqRBRWavr0v00Uho4QIBH"),ef=e=>{let a={appearance:{theme:"stripe",variables:{fontSizeBase:"1rem",colorPrimary:er.c.brand[600],c
1olorText:er.c.gray[700],colorDanger:er.c.red[500],fontFamily:"Roboto, Arial, sans-serif",borderRadius:".5rem",spacingAccordionItem:".5rem"}},clientSecret:e.clientSecret,locale:em(e.locale)};return(0,s.jsx)("div",{translate:"no",children:(0,s.jsx)(es.Elements,{stripe:eh,options:a,children:e.children})})},eg=e=>{let{t:a}=(0,l.Z)("features"),{locale:t}=(0,N.bU)(),n=(0,es.useStripe)(),r=(0,es.useElements)(),{info:i}=(0,K.f)(),{data:o}=Q();(0,et.gV)();let[d,m]=(0,c.useState)(!1),[u,x]=(0,c.useState)(!1),[h,f]=(0,c.useState)(void 0),[g,y]=(0,c.useState)(!1),[v,k]=(0,c.useState)(!1),[w,z]=(0,c.useState)(void 0),[_,I]=(0,c.useState)((null==o?void 0:o.length)===0),{price:E,children:Z,redirectUrl:M,intent:U}=e,L=p(e=>e.clearRedirectInfo),A=p(e=>e.updateIntentStatus),G=async e=>{let t;if(e.preventDefault(),n&&r){if(f(void 0),!w&&!1===_){f(a("features.booking.payment.selectPaymentMethod"));return}switch(x(!0),L(),U.intentType){case"payment":if(w){let{error:e}=await n.confirmPayment({clientSecret:U.intentClientSecret,confirmParams:{return_url:M,payment_method:w,save_payment_method:!0===g&&v}});t=e}else{let{error:e}=await n.confirmPayment({elements:r,confirmParams:{return_url:M,save_payment_method:!0===g&&v}});t=e}break;case"setup":if(w){let{error:e}=await n.confirmSetup({clientSecret:U.intentClientSecret,confirmParams:{return_url:M,payment_method:w}});t=e}else{let{error:e}=await n.confirmSetup({elements:r,confirmParams:{return_url:M}});t=e}}if(x(!1),"invalid_request_error"===t.type){var s,l;"payment_intent_unexpected_state"===t.code&&(null===(s=t.payment_intent)||void 0===s?void 0:s.status)==="succeeded"&&A("succeeded"),"setup_intent_unexpected_state"===t.code&&(null===(l=t.setup_intent)||void 0===l?void 0:l.status)==="succeeded"&&A("succeeded")}"validation_error"!==t.type&&(R.k.error("Payment - CheckoutForm - handleSubmit",{error:t}),f(t.message))}},H=i.fullName||i.email?{billingDetails:{...i.fullName?{name:i.fullName}:{},...i.email?{email:i.email}:{}}}:{};return(0,s.jsxs)(F.a,{className:"flex-col gap-lg",children:[h&&(0,s.jsx)(C.a,{colorScheme:"danger",children:h}),(0,s.jsx)(ej,{savedPaymentMethods:o,selectedPaymentMethod:w,setSelectedPaymentMethod:z,showPaymentElement:_,setShowPaymentElement:I,setMessage:f}),(0,s.jsxs)("form",{id:"payment-form",onSubmit:G,className:"flex flex-col",children:[(0,s.jsxs)(F.a,{className:(0,j.b)("h-full flex-col",{"-z-[1] h-0 opacity-0":!1===_}),children:[(0,s.jsx)(T.i,{}),(0,s.jsx)(es.PaymentElement,{options:{...ep,defaultValues:H},onReady:()=>{m(!0)},onChange:e=>{y("card"===e.value.type)},className:"py-lg md:px lg:p-lg xl:p-xl xl:pb-lg"}),g&&!w&&(0,s.jsx)(el.d,{className:"mb-lg w-auto md:mx lg:mx-lg xl:mx-xl",checked:v,onCheckedChange:e=>{k(!0===e)},children:a("features.booking.information.savePaymentMethod")})]}),d&&(0,s.jsxs)(F.a,{className:"z-[1] flex-col gap-lg",children:[(0,s.jsx)(T.i,{}),Z,"setup"===U.intentType&&(0,s.jsxs)("small",{children:[(0,s.jsx)(T.i,{className:"mb-lg hidden md:block"}),(0,s.jsx)(b.Z,{i18nKey:"features:features.booking.payment.info.setupIntentSupport",components:{readMoreLink:(0,s.jsxs)(D.F,{className:"inline-flex items-center gap-xs",variant:"outline",href:ec._j.zendesk.article(t,ei.Hf.setupIntent),target:"_blank",rel:"noreferrer","data-test-id":"checkoutForm.supportInfo.readMoreLink",children:[a("common:generic.readMore"),(0,s.jsx)(S.v,{className:"h w"})]})}})]}),(0,s.jsx)(P.a,{className:"flex-col gap",children:(0,s.jsx)(B.d,{buttonClassName:"w-full",colorScheme:"brand","data-test-id":"checkoutForm.submit",disabled:!n||!r,isLoading:u,children:a("features.booking.information.submit",{amount:(0,ee.xG)((0,ee.og)(E.value),E.currency,t,2)})})})]})]})]})},ej=e=>{let{t:a}=(0,l.Z)("features"),{savedPaymentMethods:t,selectedPaymentMethod:n,setSelectedPaymentMethod:r,showPaymentElement:c,setShowPaymentElement:i,setMessage:o}=e;return t&&0!==t.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F.a,{className:"flex-col gap-sm md:flex-row md:flex-wrap md:gap-lg",children:t.map(e=>{var t;let l=eu(e.card.brand),c=ex(e.card);return(0,s.jsx)(F.a,{className:(0,j.b)("group w-full select-none gap-lg rounded border border-card p hover:cursor-pointer hover:border-transparent hover:outline hover:outline-2 hover:outline-gray-400 md:w-fit md:flex-col md:gap-sm",{"border-transparent outline outline-2 outline-primary hover:outline-primary":n===e.id}),onClick:()=>{n===e.id?r(void 0):(r(e.id),i(!1),o(void 0))},children:(0,s.jsxs)(F.a,{className:"w-full items-start gap-lg",children:[(0,s.jsx)(l,{className:"aspect-square w-lg shrink-0 transition-transform group-hover:scale-110"}),(0,s.jsxs)(F.a,{className:"w-full items-center justify-between gap-sm md:flex-col md:justify-normal",children:[(0,s.jsxs)(F.a,{className:"items-center gap-sm",children:[(0,s.jsxs)(F.a,{className:"items-center gap-xs",children:[(0,s.jsx)(P.c,{className:"size-sm bg-gray-700"}),(0,s.jsx)(P.c,{className:"size-sm bg-gray-700"}),(0,s.jsx)(P.c,{className:"size-sm bg-gray-700"}),(0,s.jsx)(P.c,{className:"size-sm bg-gray-700"})]}),null===(t=e.card)||void 0===t?void 0:t.last4]}),c&&(0,s.jsx)("small",{children:a("features.booking.payment.cardExpiration",{date:c})})]})]})},e.id)})}
1),!1===c&&(0,s.jsxs)(B.d,{"data-test-id":"checkoutForm.differentPaymentMethod",buttonClassName:"w-fit",variant:"ghost",colorScheme:"default",onClick:()=>{i(!0),r(void 0)},children:[a("features.booking.payment.differentPaymentMethod"),(0,s.jsx)(z.e,{})]})]}):null},eb=e=>{let{t:a}=(0,l.Z)("features"),{info:t}=(0,K.f)(),{booking:n,isBookingAtUser:r,intentByBooking:i}=e,o=p(e=>e.paymentRedirectInfo),d=p(e=>e.intent);if((0,c.useEffect)(()=>{("succeeded"===d.status||"processing"===d.status)&&t.userId&&(0,y.L9)({key:y.mF.Enum.purchase,props:{user_id:t.userId,email_address:t.email},fullEvent:n.analyticsProperties.purchaseEvent})},[d]),"succeeded"===d.status||"processing"===d.status){let e="payment"===d.intentType?"features.booking.payment.success.paymentIntent":"features.booking.payment.success.setupIntent";return(0,s.jsxs)("div",{className:"relative z-[0] h-fit w-full bg",children:[(0,s.jsx)(v.a,{className:"fixed top-0 -z-[1] h-screen min-w-full opacity-40"}),(0,s.jsxs)(P.a,{className:"mx h-fit flex-col gap-lg rounded-lg bg p-lg shadow-sm max-md:mt md:mx-auto md:mt-xl md:max-w-screen-sm md:p-xl",children:[(0,s.jsx)("h1",{className:"h2 text-center",children:a("features.booking.payment.success.title")}),(0,s.jsx)("div",{children:a("".concat(e,".subtitle"))}),(0,s.jsx)(k.b,{className:"h-[160px]"}),(0,s.jsx)("p",{className:"text-center",children:a("".concat(e,".description"))}),(0,s.jsx)(eF,{booking:n,intent:i}),(0,s.jsx)(Z._1,{label:"confirm",parentClassName:"w-full p",className:"items-center"}),(0,s.jsx)(B.f,{variant:"primary","data-test-id":"paymentContainer.success.goBackToConversationButton",asChild:!0,children:(0,s.jsx)(D.F,{variant:"ghost",parentClassName:"w-full",href:"/conversation/".concat(n.bookingId),"data-test-id":"paymentContainer.success.goBackToConversationLink",children:a("features.booking.payment.success.cta")})})]})]})}return"canceled"===d.status?(0,s.jsxs)("div",{className:"relative z-[0] h-fit min-h-[calc(100vh-64px)] w-full bg p",children:[(0,s.jsx)(v.a,{className:"fixed left-0 top-0 -z-[1] h-screen min-w-full opacity-40"}),(0,s.jsxs)(F.a,{className:"container flex-col gap px-0 md:gap-lg md:px",children:[(0,s.jsx)(ey,{introClassName:"hidden md:block",bookingId:n.bookingId}),(0,s.jsxs)(F.a,{className:"flex-col-reverse gap md:flex-row md:gap-lg",children:[(0,s.jsxs)(P.a,{className:"mt-xl w-full flex-col gap-xl p-lg md:mt-0 md:max-w-screen-sm md:rounded-lg md:bg md:p-xl md:shadow-sm",children:[(0,s.jsx)("h2",{className:"text-center",children:a("features.booking.payment.cancelled.title")}),(0,s.jsx)(w.c,{className:"h-[200px]"}),(0,s.jsx)(D.F,{className:"py-xs text-center",variant:"solid",colorScheme:"brand","data-test-id":"paymentContainer.cancelled.goBackToConversation",href:"/conversation/".concat(n.bookingId),children:a("features.booking.payment.success.cta")})]}),(0,s.jsx)(F.a,{className:"hidden w-full flex-col gap self-start md:sticky md:top-[calc(64px+1.5rem)] md:flex md:w-[320px] md:shrink-0",children:(0,s.jsx)(ek,{booking:n,isBookingAtUser:r})})]})]})]}):(0,s.jsxs)("div",{className:"relative z-[0] h-auto min-h-[calc(100vh-64px)] w-full bg pb-2xl pt-lg",children:[(0,s.jsx)(v.a,{className:"fixed top-0 -z-[1] h-screen min-w-full opacity-40"}),(0,s.jsxs)(F.a,{className:"container flex-col gap md:gap-lg",children:[(0,s.jsx)(ey,{bookingId:n.bookingId}),(0,s.jsxs)(F.a,{className:"flex-col-reverse gap md:flex-row md:gap-lg",children:[(0,s.jsxs)(F.a,{className:"w-full flex-col items-center gap",children:[(0,s.jsx)(ev,{...e,paymentRedirectInfo:o}),(0,s.jsx)("div",{className:"px text-center text-light",children:(0,s.jsx)(b.Z,{i18nKey:"common:cancellationPolicy.policy",components:[(0,s.jsx)(D.F,{variant:"outline",className:"inline leading-normal text-inherit underline",href:"/pawshake-guarantee",target:"_blank","data-test-id":"paymentContainer.guaranteeLink"},"link")]})})]}),(0,s.jsxs)(F.a,{className:"w-full flex-col gap-sm self-start md:sticky md:top-[calc(64px+1.5rem)] md:w-[320px] md:shrink-0 md:flex-col md:gap",children:[(0,s.jsx)(eN,{className:"mb md:hidden",paymentRedirectInfo:o}),(0,s.jsx)(ek,{booking:n,isBookingAtUser:r})]})]})]})]})},ey=e=>{let{t:a}=(0,l.Z)("features"),{bookingId:t,introClassName:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(F.a,{className:"hidden items-center gap px pt-lg md:flex",children:[(0,s.jsx)(D.F,{className:"py-xs text-center",colorScheme:"brand","data-test-id":"paymentContainer.cancelled.goBackToConversation",href:"/conversation/".concat(t),children:(0,s.jsx)(B.e,{variant:"ghost",colorScheme:"default",ariaLabel:"go back",isRound:!0,icon:z.f,"data-test-id":"paymentContainer.goBackButton"})}),(0,s.jsx)("h1",{children:a("common:pages.titles.checkout")})]}),(0,s.jsx)("p",{className:(0,j.b)("md:px-lg md:pt-0",n),children:a("features.booking.payment.subtitle")})]})},eN=e=>{let{t:a}=(0,l.Z)("common"),{paymentRedirectInfo:t,className:n}=e;return(null==t?void 0:t.redirectStatus)==="failed"?(0,s.jsx)("div",{className:(0,j.b)(n),children:(0,s.jsx)(C.a,{colorScheme:"danger",children:a("errors.payment.failed")})}):null},ev=e=>{let{booking:a,intent:t,paymentRedirectInfo:n,redirectUrl:r,applicationInfo:c}=e,{t:i}=(0,l.Z)("features");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.R5,{className:"size-full",children:(0,s.jsxs)(M.$,{className:"size-full",title:i("features.booking.information.title"),children:[(0,s.jsx)(eN,{paymentRedirectInfo:n}),(0,s.jsx)(ef,{clientSecret:t.intentClientSecret,locale:c.locale,children:(0,s.jsx)(eg,{price:a.priceBreakdown.totalWithFees,intent:t,redirectUrl:r,children:(0,s.jsx)(eB,{dates:(0,ee.Em)(a.dates),policy:a.cancellationPolicy})})})]})}),(0,s.jsx)(ea.mZ,{children:(0,s.jsxs)(F.a,{className:"flex-col gap",children:[(0,s.jsx)(M.$,{className:"size-full",title:i("features.booking.summary.cancellation"),children:(0,s.jsx)(eB,{dates:(0,ee.Em)(a.dates),policy:a.cancellationPolicy,showTitle:!1})}),(0,s.jsxs)(_.a,{children:[(0,s.jsx)(_.a.Trigger,{asChild:!0,children:(0,s.jsx)(B.d,{size:"lg","data-test-id":"paymentContainer.openPaymentDialogButton",children:i("features.booking.information.selectPaymentMethod")})}),(0,s.jsxs)(_.a.Content,{type:"modal",className:"h-full",children:[(0,s.jsx)(_.a.Header,{children:i("features.booking.information.title")}),(0,s.jsx)(ef,{clientSecret:t.intentClientSecret,locale:c.locale,children:(0,s.jsx)(eg,{price:a.priceBreakdown.totalWithFees,intent:t,redirectUrl:r})})]})]})]})})]})},ek=e=>{let{booking:a,isBookingAtUser:t}=e;return(0,s.jsx)(ew,{booking:a,isBookingAtUser:t})},ew=e=>{let{booking:a,isBookingAtUser:t}=e,{t:n}=(0,l.Z)("features");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eS,{booking:a}),(0,s.jsx)(eP,{booking:a,isBookingAtUser:t}),(0,s.jsx)(M.$,{title:n("features.booking.summary.priceDetails"),children:(0,s.jsx)(ez,{priceBreakdown:a.priceBreakdown})}),(0,s.jsxs)(F.a,{className:"mt-sm gap-sm px-sm md:mt-0 md:px",children:[(0,s.jsx)(S.ma,{className:"size-lg"}),(0,s.jsx)("div",{children:(0,s.jsx)(b.Z,{i18nKey:"features:features.booking.payment.safeCheckout",components:{b:(0,s.jsx)("b",{})}})})]})]})},ez=e=>{let{t:a}=(0,l.Z)("common"),{locale:t}=(0,N.bU)(),{priceBreakdown:n}=e;return(0,s.jsxs)(s.Fragment,{children:[n.items.pets.map(e=>0===e.petNames.length?null:(0,s.jsxs)(F.a,{className:"justify-between gap-sm",children:[(0,s.jsxs)(F.a,{className:"flex-col",children:[(0,s.jsx)("span",{children:(0,ee.CZ)(e.petNames)}),(0,s.jsx)(F.a,{className:"flex-col text-light",children:e.prices.sort(e=>e.type.toLowerCase().includes("baserate")?-1:1).map(e=>(0,s.jsxs)("span",{children:[(0,ee.aO)(e,t.toString(),a("units.".concat(n.unit,".").concat(1==e.amountOfUnits?"one":"other"))),("adjustedBaseRate"===e.type||"adjustedAdditionalRate"===e.type)&&(0,s.jsxs)(s.Fragment,{children:[" ",a("features:features.booking.summary.adjustedRate")]})]},"booking-pet-price-".concat(e.type,"-").concat(e.unitRate)))})]}),(0,ee.xG)((0,ee.og)(e.total.value),e.total.currency,t.toString(),2)
1]},"booking-pet-".concat(e.petNames[0]))),n.items.vas.map(e=>(0,s.jsxs)(F.a,{className:"justify-between gap-sm",children:[(0,s.jsxs)(F.a,{className:"flex-col",children:[(0,s.jsx)("span",{children:a("services.vas.".concat(e.type,".title"),{unit:n.unit})}),(0,s.jsx)(F.a,{className:"flex-col text-light",children:e.prices.map(r=>(0,s.jsxs)(c.Fragment,{children:[e.description&&(0,s.jsx)("span",{className:"[overflow-wrap:anywhere]",children:e.description}),(0,s.jsx)("span",{children:"serviceUnit"===e.applicableTo&&(0,ee.aO)(r,t.toString(),a("units.".concat(n.unit,".").concat(1==r.amountOfUnits?"one":"other")))},"booking-vas-price-".concat(r.type,"-").concat(r.unitRate))]},"booking-vas-price-".concat(e.type)))})]}),0===e.total.value?a("generic.free"):(0,ee.xG)((0,ee.og)(e.total.value),e.total.currency,t.toString(),2)]},"booking-vas-".concat(e.type))),n.discount&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T.i,{}),(0,s.jsxs)(F.a,{className:"flex-col gap-sm",children:[(0,s.jsxs)(F.a,{className:"items-center justify-between gap font-bold",children:[(0,s.jsx)("span",{children:a("features:features.booking.summary.subtotal")}),(0,s.jsx)("span",{children:(0,ee.xG)((0,ee.og)(n.subtotal.value),n.subtotal.currency,t,2)})]}),(0,s.jsxs)(F.a,{className:"items-center justify-between gap",children:[(0,s.jsx)("span",{children:a("features:features.booking.summary.discount",{value:(0,ee.rl)(n.discount.percentage,t)})}),(0,s.jsxs)("span",{children:["-"," ",(0,ee.xG)((0,ee.og)(n.discount.value),n.discount.currency,t,2)]})]})]})]}),n.ownerFee&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T.i,{}),(0,s.jsxs)(F.a,{className:"flex-col gap-sm",children:[(0,s.jsxs)(F.a,{className:"items-center justify-between gap font-bold",children:[(0,s.jsx)("span",{children:a("features:features.booking.priceBreakdown.bookingPrice")}),(0,s.jsx)("span",{children:(0,ee.xG)((0,ee.og)(n.total.value),n.total.currency,t,2)})]}),(0,s.jsxs)(F.a,{className:"items-center justify-between gap",children:[(0,s.jsxs)(F.a,{className:"gap-sm",children:[(0,s.jsx)("span",{children:a("features:features.booking.priceBreakdown.ownerFee")}),(0,s.jsxs)(_.a,{children:[(0,s.jsx)(_.a.Trigger,{children:(0,s.jsx)(S.N,{className:"h w"})}),(0,s.jsxs)(_.a.Content,{type:"modal",children:[(0,s.jsx)(_.a.Header,{children:a("features:features.booking.priceBreakdown.ownerFee")}),(0,s.jsx)(_.a.Body,{className:"min-h-4xl",children:(0,s.jsx)("span",{children:n.ownerFee.info.fallback})})]})]})]}),(0,s.jsx)("span",{children:(0,ee.xG)((0,ee.og)(n.ownerFee.price.value),n.ownerFee.price.currency,t,2)})]})]})]}),(0,s.jsx)(T.i,{}),(0,s.jsxs)(F.a,{className:"flex-col",children:[(0,s.jsxs)(F.a,{className:"items-center justify-between gap font-bold",children:[(0,s.jsx)("span",{children:a("features:features.booking.priceBreakdown.total")}),(0,s.jsx)("span",{children:(0,ee.xG)((0,ee.og)(n.totalWithFees.value),n.totalWithFees.currency,t,2)})]}),n.ownerFee&&(0,s.jsx)(F.a,{className:"justify-end",children:(0,s.jsx)("span",{className:"text-sm text-light",children:a("features:features.booking.priceBreakdown.tax.included")})})]})]})},eS=e=>{let{booking:a}=e,{t}=(0,l.Z)("common"),n=(0,A.Sj)(a.bookableService);return(0,s.jsxs)(M.$,{className:"flex-row",children:[(0,s.jsx)(U.A,{service:n}),(0,s.jsxs)(F.a,{className:"flex-col",children:[(0,s.jsx)("span",{className:"font-bold",children:t(n.label)}),(0,s.jsx)("small",{className:"text",children:(0,s.jsx)(b.Z,{i18nKey:"features:features.booking.summary.offeredBy",values:{firstName:a.petSitter.firstName},components:{petSitterLink:(0,s.jsxs)(D.F,{className:"inline-flex items-center gap-xs",variant:"outline",href:a.petSitter.profileUrl,target:"_blank","data-test-id":"paymentContainer.petSitterProfileUrlLink",children:[a.petSitter.firstName,(0,s.jsx)(S.v,{className:"h w"})]})}})})]})]})},eP=e=>{let{booking:a,isBookingAtUser:t}=e,{t:n}=(0,l.Z)("features"),{locale:r}=(0,N.bU)();return(0,s.jsx)(M.$,{title:n("features.booking.summary.details"),children:(0,s.jsxs)(F.a,{className:"flex-col gap-sm",children:[(0,s.jsx)("span",{children:(0,ee.XW)(a.dates,a.priceBreakdown.amount,a.priceBreakdown.unit,r,n)}),t?(0,s.jsx)("span",{children:n("features.booking.summary.location.your")}):(0,s.jsx)("span",{children:n("features.booking.summary.location.other",{name:a[a.location].firstName})})]})})},eB=e=>{let{dates:a,policy:t,showTitle:n=!0}=e,{t:r}=(0,l.Z)("features"),{locale:c}=(0,N.bU)(),i="flexible"===t?1:7,o=new Date("".concat(a[0],"T00:00:00")),d=new Date(o.getTime()-864e5*i);return d.setHours(12),(0,s.jsxs)(F.a,{className:"flex-col gap-sm",children:[(0,s.jsxs)(F.a,{className:"gap-sm text-light",children:[n&&(0,s.jsxs)(s.Fragment,{children:[r("features.booking.summary.cancellation"),(0,s.jsx)("span",{children:"-"})]}),(0,s.jsx)("span",{children:r("common:cancellationPolicy.".concat(t,".title.short"))}),(0,s.jsx)(I.G,{policy:t})]}),(0,s.jsx)("span",{children:r("features.booking.summary.cancellationExample",{dateRefund:d.toLocaleStr
1ing(c,{...E.AW,weekday:"long",hour:"numeric",minute:"numeric"}),dateBooking:o.toLocaleString(c,{...E.AW,weekday:"long",hour:"numeric",minute:"numeric"})})})]})},eF=e=>{var a;let{booking:t,intent:n}=e,{t:r}=(0,l.Z)("features"),{locale:c}=(0,N.bU)();if(!n||n.intentType===W.enum.payment)return null;let i=Y.safeParse(null===(a=n.cardDetails)||void 0===a?void 0:a.brand),o=i.success?eu(i.data):void 0;return(0,s.jsxs)(F.a,{className:"w-full flex-col gap rounded border border-card p",children:[(0,s.jsx)("h3",{className:"text-center",children:r("features.booking.payment.success.details.title")}),(0,s.jsxs)(F.a,{className:"flex-col gap-xs",children:[(0,s.jsxs)(F.a,{className:"justify-between gap-sm",children:[(0,s.jsx)("span",{className:"text-light",children:r("features.booking.payment.success.details.booking")}),(0,s.jsx)("span",{children:t.bookingId})]}),(0,s.jsxs)(F.a,{className:"justify-between gap-sm",children:[(0,s.jsx)("span",{className:"text-light",children:r("features.booking.payment.success.details.total")}),(0,s.jsx)("span",{children:(0,ee.xG)((0,ee.og)(t.priceBreakdown.totalWithFees.value),t.priceBreakdown.totalWithFees.currency,c,2)})]}),n.cardDetails&&(0,s.jsxs)(F.a,{className:"justify-between gap-sm",children:[(0,s.jsx)("span",{className:"text-light",children:r("features.booking.payment.success.details.method")}),(0,s.jsxs)(F.a,{className:"items-center gap-sm",children:[o&&(0,s.jsx)(o,{className:"size"}),(0,s.jsx)("span",{children:"****".concat(n.cardDetails.last4)})]})]}),n.shouldBeConfirmedBy&&(0,s.jsxs)(F.a,{className:"justify-between gap-sm",children:[(0,s.jsx)("span",{className:"text-light",children:r("features.booking.payment.success.details.charge")}),(0,s.jsx)("span",{className:"shrink-0",children:(0,E.NL)(n.shouldBeConfirmedBy,c,"PP")})]})]})]})};var eC=t(97554),e_=!0,eI=(0,f.Y)()(e=>{let{t:a}=(0,l.Z)("common"),{booking:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:(0,eC.pz)(a("pages.titles.checkout"))}),(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,s.jsx)(h.Z,{className:(0,j.b)({"hidden md:flex":"succeeded"===e.intent.status}),canGoBack:!0,canGoBackUrl:"/conversation/".concat(t.bookingId)}),(0,s.jsx)(x,{...e,children:(0,s.jsx)(eb,{...e})})]})});let eE=["succeeded","failed","pending","unknown"],eT=g.z.enum(eE),eZ=g.z.object({redirectStatus:g.z.enum(eE).catch(eT.enum.unknown)})},52671:function(e,a,t){"use strict";t.d(a,{H:function(){return x}});var s=t(5311),n=t(34749),r=t(13714),l=t(23968),c=t(7909),i=t(46409),o=t(80777),d=t(53503),m=t(87927);let u={flexible:["w-[75%]","ml-[75%] w-[5%]","ml-[80%] w-[20%]"],moderate:["w-[15%]","ml-[15%] w-[65%]","ml-[80%] w-[20%]"]},x=e=>{let{policy:a,isCurrentPolicy:t,showExample:m=!0,onFlexibleClicked:x,className:h=""}=e,{t:f}=(0,r.Z)("common");return(0,s.jsxs)(s.Fragment,{children:[void 0!==t&&(0,s.jsxs)(c.a,{className:"mb-lg items-center gap",children:[(0,s.jsx)("span",{className:"block font-bold",children:f("cancellationPolicy.".concat(a,".title.short"))}),t&&(0,s.jsx)(i.a,{variant:"solid",colorScheme:"success",icon:l.j,children:f("cancellationPolicy.current")})]}),(0,s.jsx)(n.Z,{i18nKey:"common:cancellationPolicy.".concat(a,".description.full"),components:{div:(0,s.jsx)("div",{className:(0,o.b)("mt-sm flex gap",{"mt-xs":!1===m})}),block1:(0,s.jsx)("div",{className:(0,o.b)("mt-xs h w shrink-0 rounded-sm bg-brand-500 md:ml",{"mt-sm size-sm rounded-[.125rem]":!1===m})}),block2:(0,s.jsx)("div",{className:(0,o.b)("mt-xs h w shrink-0 rounded-sm bg-orange-400 md:ml",{"mt-sm size-sm rounded-[.125rem]":!1===m})}),block3:(0,s.jsx)("div",{className:(0,o.b)("mt-xs h w shrink-0 rounded-sm bg-red-400 md:ml",{"mt-sm size-sm rounded-[.125rem]":!1===m})})}}),"moderate"===a&&!1===m&&(0,s.jsxs)(c.a,{className:"mt-sm items-center gap text-warning md:ml",children:[(0,s.jsx)(l.N,{className:"h w"}),(0,s.jsx)("div",{children:(0,s.jsx)(n.Z,{i18nKey:"common:cancellationPolicy.moderate.exception",components:{linkFlexible:(0,s.jsx)("b",{className:"underline"})}})})]}),!0===m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:(0,o.b)("mb mt-lg rounded-lg border border-card p-lg !pb md:p-xl md:pb",h),children:[(0,s.jsxs)("div",{className:"relative mb-lg",children:[(0,s.jsxs)(c.a,{className:"relative z-[1] h-[144px]",children:[(0,s.jsx)(p,{day:6,showEvent:!0}),(0,s.jsx)(p,{day:7}),(0,s.jsx)(p,{day:8}),(0,s.jsx)(p,{day:9}),(0,s.jsx)(p,{day:10}),(0,s.jsx)(p,{day:11}),(0,s.jsx)(p,{day:12}),(0,s.jsx)(p,{day:13}),(0,s.jsx)(p,{day:14,showEvent:!0}),(0,s.jsx)(p,{day:15})]}),(0,s.jsx)("div",{className:"absolute top-xs h-xs w-full rounded bg-gray-700"}),(0,s.jsx)(c.a,{className:"absolute top-lg w-full flex-col gap-sm",children:u[a].map((e,a)=>
1(0,s.jsx)("div",{className:"-ml-xs h-lg w-[calc(100%+.5rem)] rounded bg-dark p-xs",children:(0,s.jsx)("div",{className:(0,o.b)("relative z-[1] h w-[75%] rounded bg-brand-500",e,{"bg-brand-500":0===a,"bg-orange-400":1===a,"bg-red-400":2===a})})},"timeline-"+e))})]}),(0,s.jsx)("small",{children:f("cancellationPolicy.".concat(a,".example"))})]}),"moderate"===a&&(0,s.jsx)(d.a,{colorScheme:"warning",children:(0,s.jsx)("div",{children:(0,s.jsx)(n.Z,{i18nKey:"common:cancellationPolicy.moderate.exception",components:{linkFlexible:(0,s.jsx)("b",{className:"cursor-pointer underline",onClick:x})}})})})]})]})},p=e=>{let{day:a,showEvent:t=!1}=e;return(0,s.jsxs)(c.a,{className:"h-full w-[10%] flex-col",children:[(0,s.jsx)("div",{className:"-ml-1 h w-[3px] rounded bg-gray-700"}),(0,s.jsx)("div",{className:"h-full w-1 bg-gray-100"}),(0,s.jsx)("small",{className:(0,o.b)("-ml-xxs mt-xs",{"-ml-sm":a>=10}),children:a}),t&&(0,s.jsx)(m.c,{className:"absolute -bottom-sm bg-gray-700",size:"xs"})]})}},34727:function(e,a,t){"use strict";t.d(a,{G:function(){return m}});var s=t(5311),n=t(66840),r=t(13714),l=t(23968),c=t(30020),i=t(98219),o=t(80777),d=t(52671);let m=e=>{let{policy:a,children:t}=e,{t:n}=(0,r.Z)("common");return(0,s.jsxs)(c.a,{children:[(0,s.jsx)(c.a.Trigger,{children:t||(0,s.jsx)(l.N,{className:"h w"})}),(0,s.jsxs)(c.a.Content,{type:"modal",children:[(0,s.jsx)(c.a.Header,{children:n("cancellationPolicy.title")}),(0,s.jsx)(c.a.Body,{className:"flex flex-col gap-0",children:(0,s.jsx)(u,{policy:a})})]})]})},u=e=>{let{policy:a,onValueChanged:t}=e,{t:l}
1=(0,r.Z)("common"),[c,m]=(0,n.useState)(a),u=e=>{m(e),t&&t(e)};return(0,s.jsxs)(i.a,{value:c,onValueChange:u,children:[(0,s.jsxs)(i.a.List,{children:[(0,s.jsx)(i.a.Item,{className:(0,o.b)({underline:"flexible"===c}),value:"flexible",children:l("cancellationPolicy.flexible.title.short")}),(0,s.jsx)(i.a.Item,{className:(0,o.b)({underline:"moderate"===c}),value:"moderate",children:l("cancellationPolicy.moderate.title.short")})]}),(0,s.jsxs)(i.a.Content,{children:[(0,s.jsx)(i.a.Panel,{value:"flexible",children:(0,s.jsx)(d.H,{policy:"flexible",isCurrentPolicy:"flexible"===a})}),(0,s.jsx)(i.a.Panel,{value:"moderate",children:(0,s.jsx)(d.H,{policy:"moderate",isCurrentPolicy:"moderate"===a,onFlexibleClicked:()=>u("flexible")})})]})]})}},38377:function(e,a,t){"use strict";t.d(a,{JN:function(){return g},_1:function(){return f},yZ:function(){return j}});var s=t(5311),n=t(66840),r=t(34749),l=t(13714),c=t(75692),i=t(46006),o=t(23968),d=t(7909),m=t(80777),u=t(27962),x=t(87755),p=t(23417),h=t(82415);let f=e=>{let{className:a,parentClassName:t,label:o,isExpandable:u=!1,children:f}=e,{t:g}=(0,l.Z)("common"),[j,b]=(0,n.useState)(!1),y=()=>{u&&b(e=>!e)};return(0,s.jsxs)(d.a,{className:(0,m.b)("group relative z-0 flex-col gap overflow-hidden rounded-lg bg-teal-50 px py-sm text-teal-700 transition-all !duration-200 !ease-out",{"cursor-pointer":u,pb:j||!u},t),onClick:y,...u&&{role:"button",tabIndex:0,"aria-expanded":j,onKeyDown:e=>{e.currentTarget===e.target&&u&&("Enter"===e.key&&(e.preventDefault(),y())," "===e.key&&e.preventDefault())},onKeyUp:e=>{e.currentTarget===e.target&&u&&" "===e.key&&y()}},children:[(0,s.jsxs)(d.a,{className:(0,m.b)("items-start gap",a),children:[(0,s.jsx)(i.w,{className:"size-xl shrink-0"}),(0,s.jsxs)("div",{className:"relative flex-1",children:["discover"===o&&(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.label.discover",components:p.v}),"engage"===o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.label.engage",components:p.v})}),(0,s.jsx)(c.Wd,{className:"absolute -bottom-sm right-0 w-[2rem]"})]}),"confirm"===o&&(0,s.jsx)("b",{className:"w-full",children:(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.label.confirm",components:{link:(0,s.jsx)(x.F,{variant:"outline",href:h._j.guarantee.index,target:"_blank",rel:"noopener noreferrer","data-test-id":"onPlatformEducation.confirm.guaranteeLink"})}})}),u&&!j&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("span",{className:"group-hover:underline",children:g("generic.readMore")})]})]})]}),"discover"!==o&&(0,s.jsx)(i.x,{className:"absolute right-0 top-lg z-[-1] size-[22rem] translate-x-1/2 opacity-60"}),(0,s.jsx)("div",{className:(0,m.b)("grid grid-rows-[0fr] overflow-hidden opacity-0 transition-all !duration-200",{"-mt":!u&&void 0===f||u&&!j,"grid-rows-[1fr] opacity-100":j||!u}),children:(0,s.jsx)("div",{className:"min-h-0",children:f})})]})},g=()=>{let{t:e}=(0,l.Z)("common");return(0,s.jsxs)(d.a,{className:"flex-col gap",children:[(0,s.jsxs)(d.a,{className:"flex-col gap-xs pl-2xl",children:[(0,s.jsxs)(d.a,{className:"items-center gap-sm pl-sm",children:[(0,s.jsx)(o.j,{className:"size"}),(0,s.jsx)("small",{className:"text-inherit",children:e("education.onPlatform.why.payments")})]}),(0,s.jsxs)(d.a,{className:"items-center gap-sm pl-sm",children:[(0,s.jsx)(o.j,{className:"size"}),(0,s.jsx)("small",{className:"text-inherit",children:e("education.onPlatform.why.support")})]}),(0,s.jsxs)(d.a,{className:"items-center gap-sm pl-sm",children:[(0,s.jsx)(o.j,{className:"size"}),(0,s.jsx)("small",{className:"text-inherit",children:e("education.onPlatform.why.guarantee")})]})]}),(0,s.jsx)(u.i,{}),(0,s.jsx)("small",{className:"text-center text-inherit",children:(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.caption",components:{link:(0,s.jsx)(x.F,{variant:"outline",href:h._j.guarantee.index,target:"_blank","data-test-id":"onPlatformEducation.confirm.guaranteeLink",onClick:e=>e.stopPropagation()})}})})]})},j=()=>{let{t:e}=(0,l.Z)("common");return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(d.a,{className:"flex-col gap-sm md:pl-3xl",children:[(0,s.jsxs)(d.a,{className:"gap max-md:gap-[2.25rem] max-md:pl-[0.75rem]",children:[(0,s.jsx)(c.pr,{className:"mt-xs size"}),(0,s.jsxs)(d.a,{className:"flex-col",children:[(0,s.jsx)("div",{children:(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.stay.title",components:p.v})}),(0,s.jsx)("small",{children:e("education.onPlatform.stay.description")})]})]}),(0,s.jsxs)(d.a,{className:"gap max-md:gap-[2.25rem] max-md:pl-[0.75rem]",children:[(0,s.jsx)(c.tS,{className:"mt-xs size"}),(0,s.jsxs)(d.a,{className:"flex-col",children:[(0,s.jsx)("div",{children:(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.book.title",components:p.v})}),(0,s.jsx)("small",{children:e("education.onPlatform.book.description")})]})]}),(0,s.jsxs)(d.a,{className:"gap max-md:gap-[2.25rem] max-md:pl-[0.75rem]",children:[(0,s.jsx)(c.tq,{className:"mt-xs size"}),(0,s.jsxs)(d.a,{className:"flex-col",children:[(0,s.jsx)("div",{children:(0,s.jsx)(r.Z,{i18nKey:"common:education.onPlatform.pay.title",components:p.v})}),(0,s.jsx)("small",{children:e("education.onPlatform.pay.description")})]})]})]})})}},68670:function(e,a,t){"use strict";t.d(a,{$:function(){return i}});var s=t(5311),n=t(13714),r=t(7909),l=t(80777),c=t(87755);let i=e=>{let{className:a="",children:t,title:i,url:o,urlButtonText:d}=e,{t:m}=(0,n.Z)("common");return(0,s.jsxs)(r.a,{className:(0,l.b)("flex-col gap rounded-lg bg p md:p-lg",{relative:void 0!==o},a),children:[i&&(0,s.jsx)("h2",{className:"mb-sm",children:i}),(0,s.jsx)("div",{className:"absolute right top-[.875rem] md:right-lg md:top-lg",children:o&&(0,s.jsx)(c.F,{variant:"solid",href:o,className:"h-[2rem] min-h-0 border border-gray-700 bg-transparent text-gray-700 hover:bg-gray-100 active:bg-gray-200","data-test-id":"widget.viewAll[".concat(o,"]"),children:d||m("generic.viewAll")})}),t]})}},28522:function(e,a,t){"use strict";t.d(a,{Bb:function(){return r},CZ:function(){return b},Em:function(){return h},XW:function(){return p},aO:function(){return y},jK:function(){return m},og:function(){return j},p6:function(){return d},rl:function(){return i},td:function(){return u},uf:function(){return c},xG:function(){return o},xh:function(){return f},zB:function(){return l}});var s=t(39464),n=t(99274);let r=e=>"".concat(e.amount," ").concat(e.system),l=e=>e?"- ".concat(e):"",c=(e,a)=>new Intl.NumberFormat(a).format(e),i=(e,a)=>new Intl.NumberFormat(a,{style:"percent"}).format(e/100),o=function(e,a,t){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=g(t);return new Intl.NumberFormat(n,{style:"currency",currencyDisplay:"symbol",currency:a,minimumFractionDigits:s}).format(e)},d=function(e,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Date(e).toLocaleDateString(a,{year:"2-digit",month:"2-digit",day:"2-digit",...t})},m=(e,a)=>{let t;return new Intl.NumberFormat(a,{style:"currency",currency:e}
1).formatToParts(0).forEach(e=>{let{type:a,value:s}=e;"currency"===a&&(t=s)}),t},u=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,t)).toFixed(a<0?0:a))," ").concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t])},x=(e,a,t,s)=>{let n=c(e,t);return"".concat(n," ").concat(s("common:units.".concat(a,".").concat(e>1?"other":"one")))},p=(e,a,t,s,r)=>{if(0===e.length)return"";if(1===e.length)return(0,n.fG)(new Date(e[0]+"T00:00:00"));let l=h(e),c=new Date(l[0]+"T00:00:00").toLocaleString(s,n.AW),i=new Date(l[l.length-1]+"T00:00:00").toLocaleString(s,n.AW);return"".concat(c," - ").concat(i," (").concat(x(a,t,s,r),")")},h=e=>e.sort((e,a)=>new Date(e).getTime()-new Date(a).getTime()),f=(e,a)=>{let t=(0,n.BJ)(a);return(0,s.Z)(0,e<0?0:1e3*e,{roundingMethod:"floor",unit:e>3600?"hour":"minute",locale:t})},g=e=>{switch(e){case"nl-BE":case"fr-BE":case"de-DE":case"fr-FR":case"nl-NL":case"en-CA":case"fr-CA":case"en-GB":case"en-AU":case"da-DK":case"fi-FI":case"en-IE":case"it-IT":case"no-NO":case"sv-SE":case"en-NZ":return e;case"de-CH":case"de-BE":case"de-LU":case"de-AT":return"de-DE";case"en-BE":case"en-DE":case"en-FR":case"en-LU":case"en-NL":case"en-HK":case"en-SG":case"en-JP":case"en-AT":case"en-DK":case"en-IT":case"en-NO":case"en-SE":case"en-FI":case"en-CH":default:return"en-GB";case"fr-CH":case"fr-LU":return"fr-FR";case"it-CH":return"it-IT"}},j=e=>e?e/100:0,b=e=>{let a="";return e.map((t,s)=>{a+=t,s<e.length-1&&(a+=", ")}),a},y=(e,a,t)=>{let s=o(e.unitRate/100,e.currency,a,2),n="".concat(e.amountOfUnits," ").concat(t);return"".concat(s," x ").concat(n)}},23417:function(e,a,t){"use strict";t.d(a,{v:function(){return n}});var s=t(5311);let n={b:(0,s.jsx)("b",{}),i:(0,s.jsx)("i",{}),u:(0,s.jsx)("u",{}),br:(0,s.jsx)("br",{}),p:(0,s.jsx)("p",{}),ul:(0,s.jsx)("ul",{className:"ml-lg list-disc"}),li:(0,s.jsx)("li",{}),ol:(0,s.jsx)("ol",{className:"ml-lg list-decimal"})}}},function(e){e.O(0,[47929,56503,79556,39544,92546,98133,65608,84693,7477,33115,12883,17508,55710,39338,30035,42293,27396,97554,92888,49774,40179],function(){return e(e.s=72184)}),_N_E=e.O()}]);
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.