1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c11a130e-d132-4f62-b9c4-e688480641f9",e._sentryDebugIdIdentifier="sentry-dbid-c11a130e-d132-4f62-b9c4-e688480641f9")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"eac998d1bf1295561541b4def793348b8b9b6d74"};(self.webpackChunklavita_shop=self.webpackChunklavita_shop||[]).push([[91],{55:function(e,t,n){n.d(t,{X:function(){return i}});var a=n(4520);const i=[{name:"configuration_countries_germany",id:0,countryCode:"DE",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["Default","Packstation","Postfiliale"],callingCode:"+49",ibanAvailable:!0,flag:a.mD},{name:"configuration_countries_austria",id:1,countryCode:"AT",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["Default"],callingCode:"+43",ibanAvailable:!0,flag:a.K6},{name:"configuration_countries_belgium",id:2,countryCode:"BE",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+32"},{name:"configuration_countries_cyprus",id:3,countryCode:"CY",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+357"},{name:"configuration_countries_denmark",id:4,countryCode:"DK",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+45"},{name:"configuration_countries_estonia",id:5,countryCode:"EE",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+372"},{name:"configuration_countries_spain",id:6,countryCode:"ES",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+34"},{name:"configuration_countries_france",id:7,countryCode:"FR",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+33"},{name:"configuration_countries_great_britain",id:8,countryCode:"GB",regex:/\b[A-Z]{1,2}[0-9R][0-9A-Z]?\s*[0-9][ABD-HJLNP-UW-Z]{2}\b/,length:8,type:"text",addressTypes:["freieEingabe"],callingCode:"+44"},{name:"configuration_countries_croatia",id:9,countryCode:"HR",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+385"},{name:"configuration_countries_ireland",id:10,countryCode:"IE",regex:/\b(?:^[AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}\b/,length:8,type:"text",addressTypes:["freieEingabe"],callingCode:"+353"},{name:"configuration_countries_iceland",id:11,countryCode:"IS",regex:/\b[0-9]{3}\b/,length:3,type:"tel",addressTypes:["freieEingabe"],callingCode:"+354"},{name:"configuration_countries_italy",id:12,countryCode:"IT",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+39"},{name:"configuration_countries_latvia",id:13,countryCode:"LV",regex:/\b[Ll][Vv][- ]{0,1}\d{4}\b/,length:7,type:"text",addressTypes:["freieEingabe"],callingCode:"+371"},{name:"configuration_countries_lichtenstein",id:14,countryCode:"LI",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["Default"],callingCode:"+423"},{name:"configuration_countries_lithuania",id:15,countryCode:"LT",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+370"},{name:"configuration_countries_luxembourg",id:16,countryCode:"LU",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+352"},{name:"configuration_countries_hungary",id:17,countryCode:"HU",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+36"},{name:"configuration_countries_malta",id:18,countryCode:"MT",regex:/\b[A-Za-z]{3}\s{0,1}\d{4}\b/,length:8,type:"text",addressTypes:["freieEingabe"],callingCode:"+356"},{name:"configuration_countries_netherlands",id:19,countryCode:"NL",regex:/\b\d{4}\s{0,1}[A-Za-z]{2}\b/,length:7,type:"text",addressTypes:["freieEingabe"],callingCode:"+31"},{name:"configuration_countries_norway",id:20,countryCode:"NO",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+47"},{name:"configuration_countries_poland",id:21,countryCode:"PL",regex:/\b\d{2}[- ]?\d{3}\b/,length:6,type:"tel",addressTypes:["freieEingabe"],callingCode:"+48"},{name:"configuration_countries_portugal",id:22,countryCode:"PT",regex:/\b\d{4}([- ]{0,1}\d{3}){0,1}\b/,length:8,type:"text",addressTypes:["freieEingabe"],callingCode:"+351"},{name:"configuration_countries_romania",id:23,countryCode:"RO",regex:/\b\d{6}\b/,length:6,type:"tel",addressTypes:["freieEingabe"],callingCode:"+40"},{name:"configuration_countries_slovenia",id:24,countryCode:"SI",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+386"},{name:"configuration_countries_slovakia",id:25,countryCode:"SK",regex:/\b\d{3}\s{0,1}\d{2}\b/,length:6,type:"text",addressTypes:["freieEingabe"],callingCode:"+421"},{name:"configuration_countries_finland",id:26,countryCode:"FI",regex:/\b[0-9]{5}\b/,length:5,type:"tel",addressTypes:["freieEingabe"],callingCode:"+358"},{name:"configuration_countries_sweden",id:27,countryCode:"SE",regex:/\b\d{3}\s?\d{2}\b/,length:6,type:"tel",addressTypes:["freieEingabe"],callingCode:"+46"},{name:"configuration_countries_greece",id:28,countryCode:"GR",regex:/\b[0-9]{3}[ ]?[0-9]{2}\b/,length:6,type:"tel",addressTypes:["freieEingabe"],callingCode:"+30"},{name:"configuration_countries_bulgaria",id:29,countryCode:"BG",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["freieEingabe"],callingCode:"+359"},{name:"configuration_countries_switzerland",id:30,countryCode:"CH",regex:/\b[0-9]{4}\b/,length:4,type:"tel",addressTypes:["Default"],callingCode:"+41",flag:a.i1}]},564:function(e,t,n){n.d(t,{A:function(){return d}});
1var a=n(55),i="l",r=n(2386),l=n(6540),o=n(2807),c=n(8486),s=n(2389);var d=({address:e,strongName:t,compact:n})=>{var d;const{t:u}=(0,s.Bd)("translations"),m=(0,c.Ub)("(max-width: 767px)",{initializeWithValue:!1});if(!e)return null;const{personal:{firstname:g,lastname:p,gender:b},company:_,street:y,street_no:f,street2:E,street_additional:v,post_no:h,packstation:x,postoffice:C,zip:T,city:N,country:q,pattern:k}=e;if(!(g||null!=_&&_.name))return null;const A=a.X.find(e=>e.countryCode===q),w=m||!n?l.createElement("br",null):", ";return l.createElement("p",{className:i},l.createElement(r.A,{condition:t,wrapper:e=>l.createElement("strong",null,e)},(null==_?void 0:_.name)||l.createElement(l.Fragment,null,(null===(d=o.T.find(e=>e.id===b))||void 0===d?void 0:d.visibleInAddress)&&u(o.T.find(e=>e.id===b).name)+" ",g," ",p)),l.createElement("br",null),"Default"===k&&l.createElement(l.Fragment,null,y," ",f,w,v,v&&w),"freieEingabe"===k&&l.createElement(l.Fragment,null,y,w,E,E&&w),["Packstation","Postfiliale"].includes(k)&&l.createElement(l.Fragment,null,h,w,"Packstation"===k&&`${u("configuration_address_packing_station")}: ${x}`,"Postfiliale"===k&&`${u("configuration_address_postal_office")}: ${C}`,w),T," ",N,w,u(null==A?void 0:A.name))}},639:function(e,t,n){n.d(t,{s:function(){return a}});const a=(e,t,n)=>{let a;return function(){const i=this,r=arguments,l=n&&!a;clearTimeout(a),a=setTimeout(()=>{a=null,n||e.apply(i,r)},t),l&&e.apply(i,r)}}},2230:function(e,t,n){n.d(t,{A:function(){return g}});var a=n(6540),i="m",r="n",l="o",o="p",c="q",s="r",d="s",u=n(6942),m=n.n(u);var g=({id:e,title:t,iconAction:n,aside:u,valid:g,footer:p,children:b,disabled:_})=>a.createElement("section",{className:m()(i,{[c]:u,[l]:_}),id:e},a.createElement("div",{className:r},a.createElement("h2",{className:m()({[s]:"boolean"==typeof g,[d]:!0===g})},a.createElement("span",null,t)),!_&&n),!_&&a.createElement(a.Fragment,null,a.createElement("div",{className:o},b),p))},2807:function(e,t,n){n.d(t,{T:function(){return a}});const a=[{id:"female",name:"configuration_gender_female",visibleInAddress:!0},{id:"male",name:"configuration_gender_male",visibleInAddress:!0},{id:"divers",name:"configuration_gender_divers",visibleInAddress:!1}]},6285:function(e,t,n){n.d(t,{O:function(){return o}});var a=n(6540),i=n(2023),r=n(6601),l=n(9926);const o=()=>{const e=(0,i.d4)(e=>e.customer_id),[t,n]=(0,l.r)("guest_customer"),{data:o,error:c}=(0,r.qe)(null==t?void 0:t.id,null==t?void 0:t.access_token,{enabled:!(null==t||!t.id||e)}),s=(0,a.useMemo)(()=>null==o?void 0:o.addresses.sort((e,t)=>parseInt(t.id)-parseInt(e.id)),[o]);return(0,a.useEffect)(()=>{c&&404===c.status&&n(null)},[c,n]),{data:o,addresses:s,guestCustomer:t,setGuestCustomer:n}}},8915:function(e,t,n){n.d(t,{A:function(){return d}});var a=n(9785),i={block:"Zc",control:"_c"},r=n(6540),l=n(5105),o=n(6942),c=n.n(o),s=n(2389);var d=({name:e,control:t,rules:n,defaultValue:o,shouldUnregister:d,disabledIncrease:u,variant:m,maxValue:g,label:p,onChange:b,required:_})=>{const{field:{onChange:y,value:f,ref:E,...v},fieldState:{error:h}}=(0,a.as)({name:e,control:t,rules:n,defaultValue:o,shouldUnregister:d}),{t:x}=(0,s.Bd)("shared");return r.createElement("div",{className:c()(i.block,{[i.error]:h,[m]:m})},r.createElement(l.A,{error:h,id:e},r.createElement("div",{className:i.control},r.createElement("button",{type:"button",disabled:f<=1,onClick:()=>{const e=f-1;y(e),b&&b(e)},"aria-label":x("quantity_decrement")},r.createElement("i",{className:"lavita-icon"},"î°")),r.createElement("input",Object.assign({type:"number",value:f,id:e,readOnly:!0,className:"hiddenInput",ref:E,tabIndex:-1,"aria-invalid":!!h,"aria-errormessage":"err-"+e,required:_},v)),r.createElement("span",null,f),r.createElement("button",{type:"button",disabled:g&&f>=g||u,onClick:()=>{const e=f+1;y(e),b&&b(e)},"aria-label":x("quantity_increment")},r.createElement("i",{className:"lavita-icon"},"î©"))),p&&r.createElement("label",{className:i.label},p)))}},9260:function(e,t,n){n.d(t,{A:function(){return v}});var a=n(4506),i=n(6540),r=n(1954),l=n(9833),o=n(610),c=n(4584),s={block:"w",small:"x",inline:"y",price:"z",image:"A",top:"B",bottom:"C",table:"D",error:"E",delete:"F",quantity:"G",bottomSection:"H",bottomSectionHeader:"I",box:"J",subTable:"K",pill:"L",roundedBase:"M",marginLeft:"N"},d=n(8915),u=n(6942),m=n.n(u),g=n(639),p=n(280),b=n(8398),_=n(3646),y=n(9785),f=n(9992),E=n(2389);var v=({item:e,inline:t,small:n,disableEditQuantity:u,disableEdit:v,disableDelete:h,returnRoute:x,hideText:C,as:T="div",heading:N="h3"})=>{var q,k,A,w,S,L;const{quantity:I,error:$}=e,{t:D}=(0,E.Bd)("translations"),{language:F}=(0,f.y4)(),{control:R,setValue:V}=(0,y.mN)({mode:"onTouched",defaultValues:{[`quantity-${e.product.sku}`]:I},values:{[`quantity-${e.product.sku}`]:I}}),{mutateAsync:B}=(0,l.Vf)(),H=(0,i.useMemo)(()=>(0,g.s)(async t=>{try{return void await B({id:e.id,body:{item:{sku:e.product.sku,quantity:t}}})}catch($){return V(`quantity-${e.product.sku}`,I),void(0,p.A)($)}},250),[e.id,e.product.sku,B,V,I]),P=(0,l.xZ)(),M=(0,i.useMemo)(()=>e.product.configuration.splitted&&["LVVORTEIL","LVKUR"].includes(e.product.sku),[e.product]),{0:z,1:K}=(0,i.useState)(1),G=(0,i.useRef)(null);(0,i.useLayoutEffect)(()=>
1{if(!G.current)return;const e=G.current,t=()=>{const t=parseFloat(getComputedStyle(e).lineHeight),n=parseFloat(getComputedStyle(e).paddingTop)+parseFloat(getComputedStyle(e).paddingBottom);K(Math.round((e.clientHeight-n)/t))};return t(),window.addEventListener("resize",(0,_.n)(t)),()=>{window.removeEventListener("resize",t)}},[]);const U=e.product.marketing.images.find(e=>"main"===e.type),Z=e.product.configuration.splitted;return i.createElement(T,{className:m()(s.block,{[s.inline]:t,[s.small]:n,[s.error]:$})},i.createElement(i.Fragment,null,i.createElement("div",{className:s.image},U&&i.createElement(c._,{url:"assets",path:U.href.replace("https://assets.lavita.io",""),srcSet:[{w:60},{w:100,default:!0},{w:120},{w:200}],sizes:"(max-width: 767px) 60px, 100px",alt:""})),i.createElement("div",{className:s.top},i.createElement("div",null,i.createElement("div",null,i.createElement(N,{},e.product.name.long),"SLP500"===e.product.sku&&i.createElement("p",null,D("slp500_badge",{max_quantity:null===(q=e.product.configuration.subscription)||void 0===q?void 0:q.max_quantity})),e.message&&i.createElement("p",null,e.product.description.short)),!h&&i.createElement("div",null,i.createElement(o.A,{icon:"î§",title:D("cart_item_delete"),action:async()=>{try{await P.mutateAsync({id:e.id})}catch($){return void(0,p.A)($)}},variant:m()(s.delete,s.marginLeft),hideTextMobile:!0,hideText:C,id:"cart_item_delete"}))),!e.subscription&&!(null!==(k=e.splits)&&void 0!==k&&k.length)&&!e.message&&!Z&&(1===e.product.configuration.max_quantity_per_cart||u||v)&&i.createElement("p",null,i.createElement("strong",null,D("cart_item_quantity_label"))," ","bottle"===e.product.category.type?D(`cart_item_quantity_${e.product.category.type}_count`,{count:I}):I,i.createElement("br",null),"bottle"===e.product.category.type||"gift"===e.product.category.type?D(`cart_item_price_per_${e.product.category.type}`):D("cart_item_price_per_instance")," ",(0,b.$)(e.product.price.current.taxed,e.price.currency.name,F))),(e.subscription||!(null===(A=e.splits)||void 0===A||!A.length)||e.message||Z||1!==e.product.configuration.max_quantity_per_cart&&!u&&!v)&&i.createElement("div",{className:s.bottom},e.subscription&&i.createElement("div",{className:s.bottomSection},i.createElement("div",{className:s.bottomSectionHeader},i.createElement("p",null,i.createElement("strong",null,D("cart_item_subscription_title"))),!v&&i.createElement("div",null,i.createElement(o.A,{icon:"î",title:D("cart_item_edit"),to:`/configure/subscription?sku=${e.product.sku}`,state:{returnRoute:x},id:"cart_item_edit",hideTextMobile:!0,variant:s.marginLeft}))),i.createElement("div",{className:s.box},i.createElement("p",null,i.createElement("strong",null,D("cart_item_subscription_quantity_label"))," ",D("cart_item_subscription_quantity",{count:e.subscription.quantity})),i.createElement("p",null,i.createElement("strong",null,D("cart_item_subscription_interval_label"))," ",D(`cart_item_subscription_interval_${e.subscription.interval_unit}`,{count:e.subscription.interval})),i.createElement("p",null,i.createElement("strong",null,D("cart_item_subscription_shipping_date_label"))," ",new Date(e.subscription.start).toLocaleDateString("en"===F?"en-GB":F,{year:"numeric",month:"2-digit",day:"2-digit"}))),(null===(w=e.product.configuration.subscription)||void 0===w?void 0:w.is_plus)&&i.createElement("div",{className:m()(s.pill,{[s.roundedBase]:z>1}),ref:G},D("slp500_pill",{max_quantity:e.product.configuration.subscription.max_quantity,price:(0,b.$)(e.product.price.current.taxed*(e.product.configuration.subscription.max_quantity-1)/e.product.configuration.subscription.max_quantity,e.product.price.currency.name,F)}))),!(null===(S=e.splits)||void 0===S||!S.length)&&i.createElement("div",{className:s.bottomSection},i.createElement("div",{className:s.bottomSectionHeader},i.createElement("p",null,i.createElement("strong",null,D("cart_item_bundle_title",{count:e.splits.length}))),!v&&i.createElement("div",null,i.createElement(o.A,{icon:"î",title:D("cart_item_edit"),to:`/configure/bundle?sku=${e.product.sku}`,state:{returnRoute:x},id:"cart_item_edit",hideTextMobile:!0,variant:s.marginLeft}))),i.createElement("div",{className:s.box},i.createElement("div",{className:s.table},e.splits.map((t,n)=>{var a;return i.createElement(i.Fragment,{key:n},i.createElement("div",null,i.createElement("strong",null,D("cart_item_bundle_part_label",{nr:n+1})),i.createElement("br",null),D("cart_item_bundle_part",{count:t.quantity}),n+1===(null===(a=e.splits)||void 0===a?void 0:a.length)&&` ${D("cart_item_bundle_including_free")}`),i.createElement("div",{className:s.subTable},i.createElement("div",null,(0,r.cK)(t.shipping_date)?D("cart_item_bundle_shipping_today"):new Date(t.shipping_date).toLocaleDateString("en"===F?"en-GB":F,{year:"numeric",month:"2-digit",day:"2-digit"})),i.createElement("div",{className:s.tablePrice},(0,b.$)(t.price,e.price.currency.name,F))))})))),Z&&i.createElement("div",{className:s.bottomSection},1!==e.product.configuration.max_quantity_per_cart&&!u&&!v&&i.createElement("div",{className:s.quantity},i.createElement("form",{name:"quantity"},i.createElement(d.A,{name:`quantity-${e.product.sku}`,control:R,rules:{required:{value:!0,message:D("form_error_required")}},maxValue:e.product.configuration.max_quantity_per_cart||void 0,onChange:H}))),i.createElement("div",{className:s.bottomSectionHeader},i.createElement("p",null,i.createElement("strong",null,D(M?"cart_item_bundle_title_payment_at_end":"cart_item_bundle_title",{count:Z.parts})))),i.createElement("div",{className:s.box},i.createElement("div",{className:s.table},(0,a.A)(Array(Z.parts)).map((t,n)=>i.createElement(i.Fragment,{key:n},i.createElement("div",null,i.createElement("strong",null,D("cart_item_bundle_part_label",{nr:n+1})),I>1&&i.createElement(i.Fragment,null,i.createElement("br",null),D("cart_item_bundle_part",{count:Z.amount_per_split*I}))),i.createElement("div",{className:s.subTable},i.createElement("div",null,0===n?D("cart_item_bundle_shipping_today"):(0,r.Kn)(Z.interval*n).toLocaleDateString("en"===F?"en-GB":F,{year:"numeric",month:"2-digit",day:"2-digit"})),i.createElement("div",{className:s.tablePrice},(0,b.$)(M?Z.parts-1===n?e.price.amount_taxed:0:e.price.amount_taxed/Z.parts,e.price.currency.name,F))))))),"LV2START"===e.product.sku&&i.createElement("div",{className:m()(s.pill,{[s.roundedBase]:z>1}),ref:G},D("lv2start_pill",{splits:e.product.configuration.splitted.parts,price:(0,b.$)(e.product.price.current.taxed/e.product.configuration.splitted.parts*I,e.product.price.currency.name,F)}))),e.message&&i.createElement("div",{className:s.bottomSection},i.createElement("div",{className:s.bottomSectionHeader},i.createElement("p",null,i.createElement("strong",null,D("cart_item_giftbox_title"))),!v&&i.createElement("div",null,i.createElement(o.A,{icon:"î",title:D("cart_item_edit"),to:`/configure/giftbox?sku=${e.product.sku}`,state:{returnRoute:x},id:"cart_item_edit",hideTextMobile:!0,variant:s.alignTop}))),i.createElement("div",{className:s.box},i.createElement("p",null,e.message.recipient,i.createElement("br",null),e.message.body,i.createElement("br",null),e.message.sender))),!e.subscription&&!(null!==(L=e.splits)&&void 0!==L&&L.length)&&!e.message&&!Z&&1!==e.product.configuration.max_quantity_per_cart&&!u&&!v&&i.createElement("div",{className:s.quantity},i.createElement("form",{name:"quantity"},i.createElement(d.A,{name:`quantity-${e.product.sku}`,control:R,rules:{required:{value:!0,message:D("form_error_required")}},label:D("bottle"===e.product.category.type?"cart_item_quantity_bottle":"cart_item_quantity"),maxValue:e.product.configuration.max_quantity_per_cart||void 0,onChange:H})))),i.createElement("div",{className:s.price},e.subscription&&i.createElement("span",null,D("cart_item_price_per_delivery")),(0,b.$)(e.price.amount_taxed,e.price.currency.name,F))))}}}]); 2//# sourceMappingURL=7eb87b13755cd188070882e51a028864a3d43e6c-04accb8f212bb5c12f8d.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.