1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3401],{5313:(e,t,n)=>{"use strict";n.d(t,{L:()=>c,r:()=>l});var r=n(57768),i=n(4039),a=n(29355),o=n(64626);let l=e=>{let{country:t}=(0,i.Ym)(),{status:n}=(0,i.wV)();return(0,a.useNetworkQuery)({queryKey:["blanketOrderDetails",...e],queryFn:({post:n})=>{let r=new AbortController;return Object.assign(n(`/api/price/blanket-order/overview?country=${t}`,{signal:r.signal,headers:(0,o.el)(),credentials:"include",body:JSON.stringify(e)}).then(e=>e.json()),{cancel:r.abort})},enabled:"authenticated"===n&&!!e.length})},c=e=>{let{asBCP47:t,path:n}=(0,i.Ym)(),a=(0,r.J)(t,{maximumFractionDigits:2,currency:e.currency_code}),o=e.blanket_orders.length>1,l=e.blanket_orders.at(0),c=o?`${n}/shop/my-account/blanket-orders?searchTerm=${e.product_id}`:`${n}/shop/my-account/blanket-orders/${l}`;return{price:a.format(e.min_base_price_net),rawPrice:e.min_base_price_net,isMultipleOrders:o,blanketOrderId:l,url:c,hasMultiplePrices:!!e.multiple_prices,quantity:e.sum_available_quantity}}},18343:(e,t,n)=>{"use strict";n.d(t,{iw:()=>r,r9:()=>a,sX:()=>i});let r={event:"click_button",action:"click",subcategory:"",label:""},i={pdp:"PDP",cart:"CART"},a={...i,serp:"SERP",category:"PRODUCTCATEGORY",family:"PRODUCTFAMILY"}},22400:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(90304),i=n(5074);let a={S:"29px",M:"34px",L:"41px"},o=({size:e="L",...t})=>(0,r.Y)(i.I,{...t,name:"payment_topi",sx:{width:a[e]}})},24252:(e,t,n)=>{"use strict";n.d(t,{F:()=>b});var r=n(90304),i=n(87523),a=n(7970),o=n(17431),l=n(16455),c=n(4753),d=n(88858),s=n(20363),p=n(90190),u=n(58960),h=n(5074),m=n(32782),Y=n(97445),g=n(99015),y=n(55688);let v=({children:e})=>{let t=(0,m.Bd)();return(0,r.FD)(i.N,{children:[e,(0,r.Y)(a.cj,{children:(0,r.FD)(a.cj.Content,{variant:"neutral",title:(0,r.Y)(y.q,{translationKey:"topi.info.title"}),children:[(0,r.FD)(a.cj.Body,{children:[(0,r.FD)(o.s,{gap:"6",direction:"column",children:[(0,r.Y)(l.E,{variant:"body-long-02",children:(0,r.Y)(Y.x6,{ns:"topi",i18nKey:"info.about",components:{strong:(0,r.Y)(l.E,{as:"span",variant:"heading-02"})}})}),(0,r.Y)(c.w,{}),(0,r.FD)(o.s,{direction:"column",gap:"2",children:[(0,r.Y)(d.D,{variant:"heading-03",level:3,sx:{marginTop:"4"},children:t("topi.info.faq")}),(0,r.FD)(s.nD,{type:"single",variant:"secondary",children:[(0,r.FD)(s.nD.Item,{value:"q1",children:[(0,r.Y)(s.nD.Trigger,{children:t("topi.info.q1")}),(0,r.Y)(s.nD.Content,{children:t("topi.info.a1")})]}),(0,r.FD)(s.nD.Item,{value:"q2",children:[(0,r.Y)(s.nD.Trigger,{children:t("topi.info.q2")}),(0,r.Y)(s.nD.Content,{children:t("topi.info.a2")})]}),(0,r.FD)(s.nD.Item,{value:"q3",children:[(0,r.Y)(s.nD.Trigger,{children:t("topi.info.q3")}),(0,r.Y)(s.nD.Content,{children:t("topi.info.a3")})]}),(0,r.FD)(s.nD.Item,{value:"q4",children:[(0,r.Y)(s.nD.Trigger,{children:t("topi.info.q4")}),(0,r.Y)(s.nD.Content,{children:t("topi.info.a4")})]}),(0,r.FD)(s.nD.Item,{value:"q5",children:[(0,r.Y)(s.nD.Trigger,{children:t("topi.info.q5")}),(0,r.Y)(s.nD.Content,{children:t("topi.info.a5")})]})]})]})]}),(0,r.Y)(g.j,{sx:{marginTop:"12"}})]}),(0,r.Y)(a.cj.Actions,{children:(0,r.Y)(a.cj.ClosePressResponder,{children:(0,r.Y)(p.$,{variant:"secondary",testId:"topi_info_button_close",children:t("topi.info.btnClose")})})})]})})]})},b=({children:e,...t})=>(0,r.Y)(v,{children:(0,r.Y)(u.K,{testId:"button-topi-info",...t,children:(0,r.Y)(h.I,{color:"info",name:"info_filled"})})})},37469:e=>{e.exports={topi:"Topi_topi__zbKrQ",buyNow:"Topi_buyNow__df4a4"}},45396:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var r=n(32782),i=n(4039);let a=()=>{let{countriesTopi:e,isTopiEnabled:t}=(0,r.BV)(),{country:n}=(0,i.Ym)(),{status:a,data:o}=(0,i.wV)();return"authenticated"===a&&!!o&&o.user.seco&&e.includes(n.toUpperCase())&&t}},55688:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var r=n(90304),i=n(17431),a=n(97445),o=n(19262),l=n(22400);let c=({translationKey:e})=>{let t=(0,o.f)(e);return(0,r.Y)(i.s,{as:"span",gap:"1",align:"center",children:(0,r.Y)(a.x6,{...t,components:{topiIcon:(0,r.Y)(l.u,{})}})})}},57968:(e,t,n)=>{"use strict";n.d(t,{W:()=>Z});var r=n(90304),i=n(62811),a=n(7970),o=n(17431),l=n(4753),c=n(90190),d=n(87523),s=n(33128),p=n(32782),u=n(85721),h=n(10138),m=n(87931),Y=n(96945),g=n(16455),y=n(88858),v=n(81091),b=n(70243),f=n.n(b),_=n(97445),D=n(82895);let F=({pricing:e})=>{let t=(0,p.Bd)();return(0,r.FD)(u.tU,{variant:"secondary",sx:{position:"relative",width:"100%"},children:[(0,r.Y)(h.S,{overflowBehavior:"scroll",testId:"topi-tabs",children:(0,r.Y)(u.tU.List,{children:e.map(e=>(0,r.Y)(u.tU.Tab,{id:e.durationMonths.toString(),children:t("topi.rent.period.month",{count:e.durationMonths})},e.durationMonths))})}),e.map(e=>(0,r.Y)(u.tU.Panel,{id:e.durationMonths.toString(),children:(0,r.FD)(o.s,{direction:"column",gap:"6",align:"center",sx:{marginTop:"6"},children:[(0,r.Y)(m.F,{variant:"info",children:t("topi.rent.alert")}),(0,r.FD)("div",{children:[(0,r.Y)(Y.Ai,{size:"lg",value:e.netMonthlyRate,currency:e.currency,children:(0,r.Y)(_.x6,{ns:"topi",i18nKey:"rent.price.monthly",components:{prefix:(0,r.Y)(Y.CT,{}),suffix:(0,r.Y)(Y.j_,{}),amount:(0,r.Y)(Y.cW,{})}})}),(0,r.Y)(g.E,{variant:"body-short-01",color:"secondary",sx:{marginTop:"2"},children:t("topi.rent.price.footer")})]})]})},e.durationMonths))]})},k=({id:e})=>{let t=(0,p.Bd)(),{data:n,isFetching:i}=(0,D.o)([e]);return(0,r.FD)(o.s,{className:f().wrapper,direction:"column",gap:"6",sx:{padding:"4"},align:"center",children:[(0,r.Y)(y.D,{variant:"heading-03",level:3,children:t("topi.rent.infoTitle")}),i||!n?(0,r.Y)(v.y,{isLoading:!0}):(0,r.Y)(F,{pricing:n})]})};var I=n(99015),w=n(55688),C=n(36258),x=n(62125),P=n(42998);let q={gridColumn:"span 2",marginBlock:"3"}
1,T=({name:e,imagePath:t,pdpUrl:n,children:i})=>(0,r.FD)(o.s,{align:"start",gap:"4",children:[t&&(0,r.Y)(P.R,{src:t,height:48,width:48,objectFit:"contain","aria-hidden":"true"}),(0,r.FD)(C.xA,{gap:"2",columns:"2",children:[n?(0,r.Y)(x.N,{href:n,sx:q,children:(0,r.Y)(y.D,{level:3,variant:"heading-03",children:e})}):(0,r.Y)(y.D,{level:3,variant:"heading-03",sx:q,children:e}),i]})]});var j=n(14232),O=n(2444),B=n(5662);let A=()=>{let e=(0,p.Bd)();return(0,r.FD)(o.s,{direction:"column",gap:"2",children:[(0,r.Y)(g.E,{children:e("topi.rent.steps.title")}),(0,r.FD)(B.B,{children:[(0,r.Y)(B.B.Item,{children:e("topi.rent.steps.step1")}),(0,r.Y)(B.B.Item,{children:e("topi.rent.steps.step2")}),(0,r.Y)(B.B.Item,{children:e("topi.rent.steps.step3")}),(0,r.Y)(B.B.Item,{children:e("topi.rent.steps.step4")})]})]})},E=({quantity:e,setQuantity:t})=>{let n=(0,p.Bd)();return(0,r.FD)(r.FK,{children:[(0,r.FD)(o.s,{align:"center",children:[n("topi.rent.quantity"),(0,r.Y)(O.c,{value:e,onChange:t,sx:{marginLeft:"2"}})]}),(0,r.Y)(l.w,{variant:"light"}),(0,r.Y)(A,{})]})};var M=n(57768),N=n(78836),R=n(19595),S=n(22400),U=n(4039),K=n(99061);let L=({name:e,imagePath:t,pdpUrl:n,quantityAdded:i,addedRecurringNetAmount:d})=>{let{asBCP47:s}=(0,U.Ym)(),u=(0,M.J)(s,{currency:d.amount.currencyIso}),h=(0,p.Bd)(),m=(0,N.h)(),{value:y,currencyIso:v}=d.amount;return(0,r.FD)(a.cj.Content,{variant:"success",icon:"done",title:h("topi.rent.success.title",{count:i}),children:[(0,r.Y)(a.cj.Body,{children:(0,r.FD)(o.s,{gap:"6",direction:"column",children:[(0,r.FD)(T,{name:e,imagePath:t,pdpUrl:n,children:[(0,r.Y)(g.E,{variant:"body-short-02",children:h("topi.rent.quantity")}),(0,r.Y)(g.E,{variant:"body-short-02",weight:"medium",children:i}),(0,r.Y)(K.q,{children:(0,r.Y)(_.x6,{ns:"topi",i18nKey:"rent.success.rent",values:{price:u.format(y)},components:{topiIcon:(0,r.Y)(S.u,{size:"M"})}})}),(0,r.Y)(Y.Ai,{size:"sm",value:y,currency:v,children:(0,r.Y)(_.x6,{ns:"topi",i18nKey:"rent.success.priceMon",components:{prefix:(0,r.Y)(Y.CT,{}),suffix:(0,r.Y)(Y.j_,{}),amount:(0,r.Y)(Y.cW,{emphasis:"medium"})}})})]}),(0,r.Y)(l.w,{variant:"light",startSize:"4"}),(0,r.Y)(R.A,{selector:"Product-2_FO"})]})}),(0,r.FD)(a.cj.Actions,{children:[(0,r.Y)(a.cj.ClosePressResponder,{children:(0,r.Y)(c.$,{variant:"secondary",testId:"topi_button_continue_shopping",children:h("topi.rent.success.continueBtn")})}),(0,r.Y)(c.$,{testId:"topi_button_goto_cart",variant:"conversion",href:m({page:"cart"}),target:"_self",referrerPolicy:"same-origin",children:h("topi.rent.success.cartLink")})]})]})};var $=n(1376),Q=n(71881),G=n(8606),V=n(18343);let z="SEARCH",J={[V.r9.pdp]:{item_list_name:"PDP",item_list_id:"PDP"},[V.r9.serp]:{item_list_name:z,item_list_id:z},[V.r9.cart]:void 0,[V.r9.category]:void 0,[V.r9.family]:void 0},H=(e,t)=>{let n=e.entry?.product?(0,G.t)(e.entry.product):{};(0,Q.h9)("add_to_cart",{items:[{index:0,item_id:e.id,quantity:e.quantity,price_type:"topi",item_brand:e.entry?.product.manufacturer,...n,item_category5:e.entry?.product.stock?.stockLevelStatus??"",billing_period:e.entry?.recurringTotalNetPrice?.billingPeriod,...(e=>{if(!e)return{};let t=J[e];return t||{}})(t)}]})},W=({id:e,name:t,pdpUrl:n,imagePath:d,variant:s,quantity:u,setQuantity:h,setAddToCartInfo:m,pageContext:Y})=>{let g=(0,p.Bd)(),{mutateAsync:y}=(0,$.AP)(),v="info"===s,b=async()=>{let t=await y({request:[{productCode:e,quantity:u,selectedForRent:!0}]});if(!t||0===t.length)return void i.Vv.error(g("topi.rent.error.addToCart.err",{count:u}));for(let r of t){let t=r.products.find(t=>t.id===e);if(t){let{quantityAdded:e,thumbnailUrl:r,name:a,addedRecurringNetAmount:o}=t;if(!o){console.error("TOPI: Price information is missing in the add to cart response"),i.Vv.error(g("topi.rent.error.generic"));return}H(t,Y),m({name:a,imagePath:r,pdpUrl:n,quantityAdded:e,addedRecurringNetAmount:o});return}}i.Vv.error(g("topi.rent.error.addToCart.err",{count:u}))};return(0,r.FD)(a.cj.Content,{variant:"neutral",title:(0,r.Y)(w.q,{translationKey:"topi.rent.title"}),children:[(0,r.Y)(a.cj.Body,{children:(0,r.FD)(o.s,{gap:"6",direction:"column",children:[(0,r.Y)(T,{name:t,imagePath:d,pdpUrl:n}),!v&&(0,r.Y)(E,{quantity:u,setQuantity:h}),(0,r.Y)(k,{id:e}),(0,r.Y)(l.w,{variant:"light"}),(0,r.Y)(I.j,{})]})}),(0,r.FD)(a.cj.Actions,{children:[(0,r.Y)(a.cj.ClosePressResponder,{children:(0,r.Y)(c.$,{variant:"secondary",testId:v?"topi_button_close"
1:"topi_button_cancel",children:v?g("topi.rent.close"):g("topi.rent.cancel")})}),!v&&(0,r.Y)(c.$,{testId:"topi_button_addtocart",variant:"conversion",onPress:b,children:g("topi.rent.addToCart")})]})]})},X=({children:e,...t})=>{let{quantity:n,setQuantity:i,addToCartInfo:o,setAddToCartInfo:l,isOpen:c,setIsOpen:s}=(()=>{let[e,t]=(0,j.useState)(1),[n,r]=(0,j.useState)(null),[i,a]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{i||(r(null),t(1))},[i]),{quantity:e,setQuantity:t,addToCartInfo:n,setAddToCartInfo:r,isOpen:i,setIsOpen:a}})();return(0,r.FD)(d.N,{isOpen:c,onOpenChange:s,children:[e,(0,r.Y)(a.cj,{children:o?(0,r.Y)(L,{...o}):(0,r.Y)(W,{...t,quantity:n,setQuantity:i,setAddToCartInfo:l})})]})},Z=({pageContext:e,id:t,name:n,pdpUrl:i,imagePath:a,children:o,variant:l="primary",buttonProps:c})=>(0,r.Y)(X,{pageContext:e,id:t,name:n,pdpUrl:i,imagePath:a,variant:l,children:(0,r.Y)(s.Q,{testId:"button-topi-rent",variant:"body-short-02",...c,children:o})})},70243:e=>{e.exports={wrapper:"PricingInformation_wrapper__H3UJ_"}},75285:(e,t,n)=>{"use strict";n.d(t,{A:()=>g,h:()=>y});var r=n(90304),i=n(97445),a=n(47246),o=n(87523),l=n(87931),c=n(16455),d=n(33128),s=n(96073),p=n(5662),u=n(70269),h=n(90190),m=n(32782),Y=n(5313);let g=({blanketOrder:e,placement:t="normal"})=>{let n=(0,m.Bd)(),{price:g,url:y,isMultipleOrders:b,blanketOrderId:f,hasMultiplePrices:_,quantity:D,rawPrice:F}=(0,Y.L)(e),k=(0,a.Q)(a.Q.breakpoints.up("M"));return(0,r.FD)(o.N,{children:[(0,r.Y)(l.F,{sx:v[t],variant:"warning",children:(0,r.Y)(c.E,{children:(0,r.FD)(i.x6,{i18nKey:b?"blanketOrder.alert.multiple":"blanketOrder.alert.single",ns:"common",children:["This product is part of",(0,r.Y)(d.Q,{"aria-label":n("common.blanketOrder.alert.ariaLabel"),children:"a blanket order."})]})})}),(0,r.Y)(s.lG,{children:(0,r.FD)(s.lG.Content,{variant:"warning",children:[(0,r.Y)(s.lG.Header,{children:(0,r.Y)(s.lG.Title,{children:b?n("common.blanketOrder.details.title.multiple"):n("common.blanketOrder.details.title.single",{orderId:f})})}),(0,r.FD)(s.lG.Body,{children:[(0,r.FD)(p.B,{variant:"bullet",children:[(0,r.Y)(p.B.Item,{children:(0,r.Y)(c.E,{children:(0,r.FD)(i.x6,{i18nKey:_?"blanketOrder.details.price.multiple":"blanketOrder.details.price.single",ns:"common",values:{price:g}
1,children:["Price:",(0,r.Y)(c.E,{as:"span",weight:"medium",children:F})]})})}),(0,r.Y)(p.B.Item,{children:(0,r.FD)(c.E,{children:[n(b?"common.blanketOrder.details.quantity.multiple":"common.blanketOrder.details.quantity.single")," ",(0,r.Y)(c.E,{as:"span",weight:"medium",children:D})]})})]}),(0,r.Y)(u.z,{href:y,target:"_self",sx:{marginTop:"4"},testId:"blanketOrder-account-link",children:n(b?"common.blanketOrder.details.link.multiple":"common.blanketOrder.details.link.single")})]}),k&&(0,r.Y)(s.lG.Actions,{children:(0,r.Y)(s.lG.ClosePressResponder,{children:(0,r.Y)(h.$,{variant:"secondary",testId:"offcanvas-close-blanketOrder-info-button",children:n("common.blanketOrder.details.close")})})})]})})]})},y=({productId:e,placement:t="normal"})=>{let{data:n}=(0,Y.r)([e]),i=n?.at(0);return i?(0,r.Y)(g,{placement:t,blanketOrder:i}):null},v={normal:{marginBlock:"16"},finder:{marginBottom:"4"},eol:{marginTop:"4"}}},82895:(e,t,n)=>{"use strict";n.d(t,{R:()=>Y,o:()=>m});var r=n(87613),i=n(4039),a=n(29355),o=n(89718),l=n(45396);let c=(e,t,n)=>["topi",n,e,t],d=o.Ik({productId:o.Yj(),currency:o.Yj(),grossMonthlyRate:o.ai(),netMonthlyRate:o.ai()}),s=o.YO(d),p=d.merge(o.Ik({durationMonths:o.ai()})),u=o.YO(p);function h(e=r.B,{queryKey:t}){let[,n="all",i,a]=t,o=new URLSearchParams({productIds:i.join(",")});a&&o.append("customerId",a);let l=new AbortController,c=e.get(`/api/topi/rental-terms/${n}?${o.toString()}`,{signal:l.signal,headers:{accept:"application/json"},credentials:"include"}).then(e=>e.json()).then("all"===n?u.parse:s.parse);return Object.assign(c,{cancel:l.abort}),c}let m=e=>{let t=(0,l.M)(),n=(0,i.wV)(),{xCustomerUuid:r}=(0,i.I6)(),o=r??n.data?.user.customerUuid;return(0,a.useNetworkQuery)(c(e,o,"all"),h,{enabled:t&&!!e.length})},Y=e=>{let t=(0,l.M)(),n=(0,i.wV)(),{xCustomerUuid:r}=(0,i.I6)(),o=r??n.data?.user.customerUuid;return(0,a.useNetworkQuery)(c(e,o,"lowest"),h,{enabled:t&&!!e.length})}},99015:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var r=n(90304),i=n(16455),a=n(70269),o=n(5074),l=n(97445),c=n(78836);let d=({sx:e})=>{let t=(0,c.h)();return(0,r.Y)(i.E,{variant:"body-long-02",sx:e,children:(0,r.Y)(l.x6,{ns:"topi",i18nKey:"faqLink",components:{a:(0,r.Y)(a.z,{iconPosition:"right",href:t({page:"topiFaq"}),icon:(0,r.Y)(o.I,{name:"arrow_above_new"}),target:"_blank",rel:"noopener noreferrer"})}})})}},99061:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var r=n(90304),i=n(16455),a=n(37469),o=n.n(a),l=n(49995);let c=({variant:e="body-short-02",children:t,isBuyNow:n,...a})=>(0,r.Y)(i.E,{variant:e,className:(0,l.A)(o().topi,n&&o().buyNow,a.className),...a,children:t})}}]);
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.