PageSourceSearch

https://kazaarfragrances.com/_next/static/chunks/1e07nj60rah7f.js

js kazaarfragrances.com collected 2026-10-07 06:57:05 UTC 27,219 bytes, 58 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ef13ec54-8dad-4c38-14da-bd99a8aad9ec")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,484253,e=>{"use strict";let t=new Set(["product","preview","placeholder","image","slide","zerstauber","product-image"]);function r(e,t=""){let a=e?.trim()||"Kazaar product",l=t?.trim();return l?`${a} – ${l} – Kazaar`:`${a} – Kazaar`}e.s(["productImageAlt",0,r,"resolveProductImageAlt",0,function({productName:e,galleryName:a,context:l="",fallback:n="Kazaar Fragrances product"}){return a&&!(!a||t.has(String(a).trim().toLowerCase()))?a:e?r(e,l):n}])},382544,e=>{"use strict";var t=e.i(484253);let r=e=>e?.xlarge||e?.path||null,a=e=>e?.blurDataUrl??null;e.s(["selectPreviewImages",0,function(e,{galleryLimit:l=3,variant:n=null}={}){let s=e?.name??"",i=e?.scent??null,u=n??function(e){let t=e?.variations??[];if(0===t.length)return null;let r=t.filter(e=>Number(e.price)>0);return[...r.length>0?r:t].sort((e,t)=>Number(e.price)-Number(t.price))[0]??null}(e),c=u&&r(u.packshot)?[{key:`variant-${u.id}-packshot`,src:r(u.packshot),name:u.packshot?.name,blur:a(u.packshot)}]:[],o=(e?.gallery??[]).length>0?(e?.gallery??[]).map((e,t)=>e&&r(e)?{key:`own-${e.id??t}`,src:r(e),name:e.name,blur:a(e)}:null):(e?.images??[]).map((e,t)=>{let r;return(r=e?.gallery?.xlarge||e?.gallery?.path||null)?{key:`legacy-${e?.id??t}`,src:r,name:e?.gallery?.name}:null}),d=i?.origin?.image&&r(i.origin.image)?[{key:`origin-${i.origin.image.id??"1"}`,src:r(i.origin.image),name:i.origin.name,blur:a(i.origin.image)}]:[],m=(i?.feeling_images??[]).map((e,t)=>r(e)?{key:`feeling-${e.id??t}`,src:r(e),name:e.name,blur:a(e)}:null),f=new Set,x=(e,r)=>{let a=[];for(let l of e){if(a.length>=r)break;!l||f.has(l.src)||(f.add(l.src),a.push({key:l.key,src:l.src,alt:(0,t.resolveProductImageAlt)({productName:s,galleryName:l.name}),blurDataURL:l.blur}))}return a},h=x([...c,...o],1)[0]??null;!h&&e?.first_image_url&&(h={key:"first_image_url",src:e.first_image_url,alt:(0,t.resolveProductImageAlt)({productName:s,galleryName:null})});let p=x(d,1),g=[...p,...x(m,l-p.length)],b=new Set((e?.variations??[]).map(e=>r(e.packshot)).filter(Boolean));return{prime:h,gallery:[...g,...x(o.filter(e=>e&&!b.has(e.src)),Math.max(0,l-g.length))].slice(0,l)}}])},900711,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let a=(0,r.createContext)(null);e.s(["CartDrawerProvider",0,function({children:e}){let[l,n]=(0,r.useState)(!1),s=(0,r.useCallback)(()=>n(!0),[]),i=(0,r.useCallback)(()=>n(!1),[]),u=(0,r.useMemo)(()=>({isOpen:l,open:s,close:i}),[l,s,i]);return(0,t.jsx)(a.Provider,{value:u,children:e})},"useCartDrawer",0,function(){return(0,r.useContext)(a)}])},369311,632845,480051,634969,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function a(e){return(e??[]).reduce((e,t)=>{let r=t.attribute?.name;return r&&(e[r]??=[]).push(t),e},{})}function l(e){return(e??[]).find(e=>Number(e.stock??0)>0||e.sell_when_out_of_stock)??e?.[0]??null}e.s(["findInitialVariation",0,l,"groupAttributeTerms",0,a,"preferredVariation",0,function(e){let t=e??[];if(0===t.length)return null;let r=t.filter(e=>Number(e.price)>0),a=r.length>0?r:t,n=a.filter(e=>Number(e.stock??0)>0||e.sell_when_out_of_stock),s=n.length>0?n:a;return s.find(e=>((e?.attributes??[]).find(e=>e?.attribute?.name==="Size")?.name??null)==="30ml")??l(s)}],632845);let n="Menge",s=(e,t)=>`${e}\0${t}`,i=e=>Number(e.stock??0)>0||!!e.sell_when_out_of_stock;function u(e){let t={};for(let r of e?.attributes??[]){let e=r.attribute?.name;e&&r.name&&(t[e]=r.name)}return t}function c(e){let t=e.variations??[],r=new Set;for(let e of t)for(let[t,a]of Object.entries(u(e)))r.add(s(t,a));return Object.entries(a(e.attributeTerms?.length?e.attributeTerms:t.flatMap(e=>e.attributes??[]))).map(([e,t])=>{let a=new Set,l=[];for(let n of t)!(!n.name||a.has(n.name))&&r.has(s(e,n.name))&&(a.add(n.name),l.push(n.name));return{name:e,terms:l}}).filter(e=>e.terms.length>0)}function o(e,t){if(null==t||""===t)return null;let r=String(t);return e.find(e=>String(e.shopify_product_id)===r)??e.find(e=>String(e.id)===r)??null}function d(e,t){return o(e,t)??l(e)}function m(e,t,r,a){let l=e.filter(e=>u(e)[r]===a);if(0===l.length)return null;let n=Object.entries(t).filter(([e])=>e!==r),s=e=>{let t=u(e);return n.reduce((e,[r,a])=>e+ +(t[r]===a),0)},c=e=>e.reduce((e,t)=>
2null===e||s(t)>s(e)?t:e,null);return c(l.filter(i))??c(l)}function f(e,t,r,a){return e.some(e=>{var l;let n;return l={...t,[r]:a},n=u(e),Object.entries(l).every(([e,t])=>n[e]===t)})}e.s(["OIL_AXIS",0,"Oil","SLOT_AXIS",0,n,"deriveAxes",0,c,"findByShopifyId",0,o,"initialVariation",0,d,"isAvailable",0,f,"selectVariation",0,m,"slotCountOf",0,function(e){return Number((e?.[n]??"").replace(/\D/g,""))||0},"termsOf",0,u],480051);var x=e.i(618566);function h(e){let t=(0,x.usePathname)(),a=(0,x.useSearchParams)();return[a.get(e),(0,r.useCallback)(r=>{let l=new URLSearchParams(a.toString());null===r||""===r?l.delete(e):l.set(e,r);let n=l.toString();window.history.replaceState(null,"",n?`${t}?${n}`:t)},[e,t,a])]}e.s(["useUrlParam",0,h],634969);let p=(0,r.createContext)(null);e.s(["ProductSelectionProvider",0,function({product:e,renderedAt:a,children:l,shareable:n=!0,initialVariant:s}){let[i]=(0,r.useState)(()=>a?new Date(a):new Date),[x,g]=h("variant"),b=n?x:null,j=b??(null==s?null:String(s)),v=(0,r.useMemo)(()=>e.variations??[],[e.variations]),N=(0,r.useMemo)(()=>c(e),[e]),[y,w]=(0,r.useState)(()=>({variation:d(v,j),touched:!1})),k=y.variation,S=e.id??e.slug??null,[P,D]=(0,r.useState)(S);P!==S&&(D(S),w({variation:d(v,j),touched:!1}));let[_,C]=(0,r.useState)(b);if(_!==b){C(b);let e=o(v,b);e&&e.id!==k?.id&&w(t=>({...t,variation:e}))}(0,r.useEffect)(()=>{if(!y.touched||!n)return;let e=y.variation?.shopify_product_id;null!=e&&String(e)!==b&&g(String(e))},[y,b,g,n]);let O=(0,r.useCallback)(e=>{w({variation:e,touched:!0})},[]),z=(0,r.useCallback)((e,t)=>{w(r=>({variation:m(v,u(r.variation),e,t)??r.variation,touched:!0}))},[v]),$=(0,r.useMemo)(()=>{let e=u(k);return{variations:v,axes:N,selected:k,selectedTerms:e,select:O,selectTerm:z,isAvailable:(t,r)=>f(v,e,t,r),renderedAt:i}},[v,N,k,O,z,i]);return(0,t.jsx)(p.Provider,{value:$,children:l})},"useProductSelection",0,function(){return(0,r.useContext)(p)}],369311)},972249,e=>{"use strict";e.s(["deliveryWindow",0,function(e=new Date){let t=new Date(e);t.setDate(t.getDate()+2);let r=new Date(e);return r.setDate(r.getDate()+3),{from:t,to:r}},"formatDayMonth",0,function(e,t="de-DE"){let r=new Intl.DateTimeFormat(t,{day:"numeric",month:"long",timeZone:"Europe/Zurich"}).formatToParts(e),a=r.find(e=>"day"===e.type)?.value??String(e.getDate()),l=r.find(e=>"month"===e.type)?.value??"";return`${a}. ${l}`}])},123287,e=>{"use strict";let t=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},490586,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(174080),l=e.i(643531),n=e.i(522016),s=e.i(618566),i=e.i(900711);e.s(["default",0,function({name:e,onDismiss:u}){let c=(0,i.useCartDrawer)(),o=(0,s.usePathname)(),d=!!c&&"/cart"!==o,[m,f]=(0,r.useState)(!1);if((0,r.useEffect)(()=>f(!0),[]),!e||!m)return null;let x="Zum Warenkorb",h="text-body-md font-medium underline underline-offset-4";return(0,a.createPortal)((0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"fixed inset-x-0 top-0 z-50 flex h-10.5 items-center justify-between gap-6 bg-base-foreground px-4 text-base-background",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-body-md font-medium",children:[(0,t.jsx)(l.Check,{size:10,strokeWidth:3,"aria-hidden":"true"}),e," im Warenkorb"]}),d?(0,t.jsx)("button",{type:"button",onClick:()=>{c?.open(),u()},className:`cursor-pointer ${h}`,children:x}):(0,t.jsx)(n.default,{href:"/cart",onClick:u,className:h,children:x})]}),document.body)}])},832064,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(475254).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var a=e.i(123287),a=a,l=e.i(972249);function n(e){if(!e||e.sell_when_out_of_stock)return!0;let t=null==e.stock?null:Number(e.stock);return null==t||Number.isNaN(t)||t>0}e.s(["default",0,function({variation:e,now:s}){let i=n(e),{from:u,to:c}=(0,l.deliveryWindow)(s),o=i?a.default:r;return(0,t.jsxs)("p",{className:"flex items-center gap-1 text-caption text-base-foreground",children:[(0,t.jsx)(o,{size:9,strokeWidth:2.1,"aria-hidden":"true",className:"shrink-0"}),i?(0,t.jsxs)("span",{children:["Auf Lager – Lieferung zwischen"," ",(0,t.jsxs)("span",{className:"font-medium",children:[(0,l.formatDayMonth)(u)," und ",(0,l.formatDayMonth)(c)]})]}):(0,t.jsx)("span",{children:"Derzeit ausverkauft"})]})},"isOrderable",0,n],832064)}
2,354364,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(43880),l=e.i(733209),n=e.i(480051),s=e.i(952571),i=e.i(148108),u=e.i(504902);let c={20:{hours:"8 Stunden",copy:" Ausstrahlung. Täglicher Signature-Duft."},30:{hours:"12 Stunden",copy:" Ausstrahlung. Ihr perfekter Duft für jeden Anlass."},50:{hours:"16 Stunden",copy:" intensive Sillage. Ultimativer Ganztags-Duft."}},o=e=>{let t=/(\d+)\s*%/.exec(e);return t?Number(t[1]):null};function d({terms:e}){let[a,l]=(0,r.useState)(!1),n=e.map(o).filter(e=>null!==e&&e in c);return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>l(!0),"aria-label":"Was der Duftölanteil bedeutet",className:"cursor-pointer text-base-foreground",children:(0,t.jsx)(s.Info,{size:12,"aria-hidden":"true"})}),(0,t.jsx)(u.default,{isOpen:a,onClose:()=>l(!1),title:"Duftölanteil ⓘ",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-caption text-base-muted",children:"Die Prozentangabe steht für die Duftölkonzentration. Ein höherer Ölanteil sorgt für einen intensiveren, länger anhaltenden Duft."}),(0,t.jsx)("div",{className:"flex flex-col",children:n.map(e=>{let r=[20,30,50].includes(e)?`/icons/full-redesign/faq-oil-drop-${e}.svg`:null;return(0,t.jsxs)("div",{className:"flex h-8.25 items-center justify-between gap-4 border-b border-base-line",children:[(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[r&&(0,t.jsx)(i.default,{src:r,alt:"","aria-hidden":!0,width:8,height:11}),(0,t.jsxs)("span",{className:"text-body-md font-medium text-base-foreground",children:[e," % Duftöl"]})]}),(0,t.jsxs)("span",{className:"text-micro text-base-foreground",children:[(0,t.jsx)("span",{className:"font-medium",children:c[e].hours}),c[e].copy]})]},e)})})]})})]})}let m={Size:"Grösse",Oil:"Duftölanteil",Menge:"Menge"};e.s(["default",0,function({axis:e,selected:s,onSelect:i,isAvailable:u,isOffered:c,chipClassName:o,fill:f=!1}){let x=(0,r.useId)();return(0,t.jsxs)("div",{role:"group","aria-labelledby":x,className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("span",{id:x,className:(0,l.cn)("flex items-center gap-1 text-body-md text-base-foreground",f&&"sr-only"),children:[m[e.name]??e.name,e.name===n.OIL_AXIS&&(0,t.jsx)(d,{terms:e.terms})]}),(0,t.jsx)("div",{className:(0,l.cn)("flex flex-wrap justify-end gap-1",f&&"w-full"),children:e.terms.map(e=>{let r=s===e,n=c?.(e)??!0;return(0,t.jsx)(a.default,{variant:"light","aria-pressed":r,disabled:!n,onClick:()=>i(e),className:(0,l.cn)("h-9.5 border text-base-foreground",f&&"flex-1",o,r?"border-base-foreground":"border-base-line",!r&&(!n||u?.(e)===!1)&&"text-base-subtle"),children:(e=>{let t=/^(\d+)\s*(ml)\b/i.exec(e);if(t)return`${t[1]} ${t[2]}`;let r=/^EUR (\d+)(?:\.00)?$/.exec(e);return r?`${r[1]}€`:e})(e)},e)})})]})}],354364)},358308,e=>{"use strict";var t=e.i(271645),r=e.i(865431);e.s(["useAddToCart",0,function(e){let{addToCart:a}=(0,r.useCart)(),[l,n]=(0,t.useState)(!1),[s,i]=(0,t.useState)(null),u=(0,t.useRef)(null),c=(0,t.useCallback)(()=>{u.current&&clearTimeout(u.current),u.current=null,i(null)},[]);return(0,t.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),{add:(0,t.useCallback)(async(t,r)=>{if(l||null==e.id)return!1;n(!0);try{let l=!!await a(Number(e.id),t?.id!=null?Number(t.id):null,1,r?.bundleProductIds??[],"",!1,!1,null,null,!1,!1,r?.bundleVariantIds??[]);return l&&(c(),i(e.name??"Produkt"),u.current=setTimeout(()=>i(null),5e3)),l}finally{n(!1)}},[a,c,l,e.id,e.name]),pending:l,added:s,dismiss:c}}])},258023,e=>{"use strict";e.s(["campaignOf",0,function(e){let t=e?.activeSchedule?.discount_percent;if(!t)return null;let r=e?.activeSchedule?.original_price;return{percent:Number(t),was:null==r?null:Number(r)}}])},504902,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(326999),l=e.i(37727),n=e.i(733209);e.s(["default",0,function({isOpen:e,onClose:s,title:i,children:u,titleAs:c="h2",titleAside:o,titleClassName:d="text-body-md text-base-foreground",panelClassName:m="",overlayClassName:f="",showCloseButton:x=!0,closeClassName:h="text-base-foreground",closeOnOutsideClick:p=!0}){let g=(0,r.useRef)(null);return(0,r.useEffect)(()=>{e&&(g.current=document.activeElement)},[e]),(0,t.jsx)(a.Root,{open:e,onOpenChange:e=>!e&&s(),children:(0,t.jsx)(a.Portal,{children:(0,t.jsx)(a.Overlay,{className:(0,n.cn)("fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-inverse-background/45 p-4",f),children:(0,t.jsxs)(a.Content,{"aria-modal":"true",onCloseAutoFocus:e=>{e.preventDefault(),g.current?.focus()},onPointerDownOutside:e=>{p||e.preventDefault()},className:(0,n.cn)("flex w-full max-w-89.5 flex-col gap-3 bg-base-background p-4",m),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-baseline gap-2",children:[(0,t.jsx)(a.Title,{asChild:!0,children:(0,t.jsx)(c,{className:d,children:i})}),o]}),x&&(0,t.jsx)(a.Close,{"aria-label":"Schließen",className:(0,n.cn)("shrink-0 cursor-pointer",h),children:(0,t.jsx)(l.X,{size:16,strokeWidth:1,"aria-hidden":"true"})})]}),u]})})})})}])},952571,e=>{"use strict";let t=(0,e.i(475254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],952571)},433577,e=>{"use strict";var t=e.i(843476),r=e.i(733209),a=e.i(261847);e.s(["default",0,function({price:e,children:l,compact:n=!1}){return(0,t.jsxs)("p",{className:(0,r.cn)("flex items-baseline gap-3 text-body-lg text-base-foreground",!n&&"py-2 lg:py-4"),children:[(0,t.jsx)("span",{className:(0,r.cn)("font-medium",!n&&"lg:text-heading-lg"),children:(0,a.formatStorefrontPrice)(e,"suffix")}),l]})}])},40641,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(952571),l=e.i(504902),n=e.i(258023),s=e.i(261847),i=e.i(369311),u=e.i(433577);e.s(["default",0,function({price:e,brand:c,compact:o}){let d=(0,i.useProductSelection)(),[m,f]=(0,r.useState)(!1),x=d?.selected,h=x?.price??e,p=x?.originPrice,g=!!x?.originPriceIsEstimated,b=(0,n.campaignOf)(x),j=b?.was&&b.was>
2Number(h)?b.was-Number(h):0;if(!(0,s.isPositivePrice)(h))return null;let v=(0,s.isPositivePrice)(p)?`${g?"~":""}${(0,s.formatStorefrontPrice)(p,"suffix")}`:null,N=c?.trim()||"Die Marke";return b?(0,t.jsxs)(u.default,{price:h,compact:o,children:[(0,s.isPositivePrice)(b.was)&&(0,t.jsx)("span",{className:"text-body-lg font-medium text-emphasis line-through",children:(0,s.formatStorefrontPrice)(b.was,"suffix")}),j>0&&(0,t.jsxs)("span",{className:"text-body-lg text-base-muted",children:["spare ",(0,s.formatStorefrontPrice)(j,"suffix")]})]}):(0,t.jsx)(u.default,{price:h,compact:o,children:v&&(0,t.jsxs)("span",{className:"flex items-baseline gap-1 text-base-muted",children:[(0,t.jsx)("span",{children:g?"Unsere Schätzung":"Original"}),(0,t.jsx)("span",{children:v}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>f(!0),"aria-label":`Wie wir ${v} sch\xe4tzen`,className:"cursor-pointer self-center text-base-muted",children:(0,t.jsx)(a.Info,{size:14,"aria-hidden":"true"})}),(0,t.jsx)(l.default,{isOpen:m,onClose:()=>f(!1),title:`Unsere Sch\xe4tzung ${v}`,children:(0,t.jsxs)("span",{className:"text-caption text-base-muted",children:[N," bietet dieses Produkt nicht an. Die ",v," sind unsere eigene Schätzung, was es kosten würde, wenn sie es anbieten würden. Basierend auf den Produktionskosten und der Preisgestaltung von ",N," im gesamten Sortiment."]})})]})]})})}])},967323,662335,e=>{"use strict";var t=e.i(843476),r=e.i(733209);function a({size:e=16,className:r}){return(0,t.jsx)("svg",{width:e,height:14*e/16,viewBox:"0 0 16 14","aria-hidden":"true",className:r,children:(0,t.jsx)("path",{d:"M7.81962 0L9.66574 5.34752H15.6399L10.8067 8.65248L12.6528 14L7.81962 10.695L2.98644 14L4.83255 8.65248L-0.000625866 5.34752H5.97351L7.81962 0Z",fill:"currentColor"})})}e.s(["default",0,a],662335),e.s(["default",0,function({rating:e,size:l=12,className:n}){let s=Math.min(5,Math.max(0,e)),i="number"==typeof l?`${l}px`:l;return(0,t.jsx)("span",{className:(0,r.cn)("inline-flex shrink-0 gap-px",n),role:"img","aria-label":`${e} von 5 Sternen`,children:Array.from({length:5},(e,r)=>{let l=Math.min(1,Math.max(0,s-r));return(0,t.jsxs)("span",{className:"relative block",style:{width:i,height:`calc(${i} * 14 / 16)`},children:[(0,t.jsx)("span",{className:"absolute inset-0 text-base-line",children:(0,t.jsx)(a,{size:16,className:"h-full w-full"})}),(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 overflow-hidden",style:{width:`${100*l}%`},children:(0,t.jsx)(a,{size:16,className:"h-full w-auto"})})]},r)})})}],967323)},53341,e=>{"use strict";var t=e.i(843476),r=e.i(733209),a=e.i(967323);let l=new Intl.NumberFormat("en-US");e.s(["default",0,function({summary:e,size:n,count:s=!0,className:i,starsClassName:u,figuresClassName:c}){let o=e&&e.review_count>=5?e:null,d=o&&(s?`${o.rating} \xb7 ${l.format(o.review_count)}`:String(o.rating));return(0,t.jsxs)("span",{className:(0,r.cn)("flex items-center gap-1.5 text-base-foreground",i),children:[o&&(0,t.jsx)(a.default,{rating:o.rating,size:n??"1em",className:u}),(0,t.jsx)("span",{className:c,children:d||" "})]})}])},382063,e=>{"use strict";var t=e.i(843476),r=e.i(148108),a=e.i(504902),l=e.i(373527),n=e.i(527701),s=e.i(354364),i=e.i(632845),u=e.i(832064),c=e.i(358308),o=e.i(369311),d=e.i(522016);function m({product:e}){let r=e.scent??null,a=r?.origin??null,l=a?.brand?.name?.trim()||null,n=a?.name?.trim()||null;if(!l&&!n)return null;let s=a?.brand?.collection?.slug?`/collections/${a.brand.collection.slug}`:null,i=(r?.products??[]).some(t=>String(t.id)!==String(e.id)),u=r?.collection?.slug?`/collections/${r.collection.slug}`:i?"#duft-formate":null,c="text-body-md text-base-foreground underline";return(0,t.jsxs)("p",{className:"pt-2 text-body-md text-base-foreground",children:[l&&(s?(0,t.jsx)(d.default,{href:s,className:c,children:l}):(0,t.jsx)("span",{children:l})),l&&n&&" · ",n&&(u?(0,t.jsx)(d.default,{href:u,className:c,children:n}):(0,t.jsx)("span",{children:n}))]})}var f=e.i(40641),x=e.i(261847);function h({product:e,onAdded:a}){let i=(0,o.useProductSelection)(),d=(0,c.useAddToCart)(e);if(!i)return null;
2let p=i.selected,g=p?.withOrigin??p?.packshot??null,b=g?.xlarge||g?.path||null,j=p?.price??e.price,v=(0,u.isOrderable)(p),N=async()=>{await d.add(p)&&a(e.name??"Produkt")};return(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("span",{className:"relative block aspect-square w-full overflow-hidden bg-base-surface",children:b&&(0,t.jsx)(r.default,{src:b,alt:e.name??"",fill:!0,sizes:"288px",className:"object-cover",placeholder:"blur",blurDataURL:g?.blurDataUrl??void 0})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(m,{product:e}),(0,t.jsx)("p",{className:"text-heading-lg uppercase text-base-foreground",children:e.name}),(0,t.jsx)(f.default,{price:e.price,brand:e.scent?.origin?.brand?.name,compact:!0})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[i.axes.filter(e=>e.terms.length>1).map(e=>(0,t.jsx)(s.default,{axis:e,selected:i.selectedTerms[e.name]??null,onSelect:t=>i.selectTerm(e.name,t),isAvailable:t=>i.isAvailable(e.name,t),chipClassName:"px-4 text-label-md"},e.name)),(0,t.jsx)(l.default,{slot:n.SLOTS.BUY_BUTTON,onClick:N,disabled:!v||d.pending,"aria-busy":d.pending||void 0,className:"h-8.75 w-full px-4 text-label-md",children:v?`In den Warenkorb • ${(0,x.formatStorefrontPrice)(j,"suffix")}`:"Ausverkauft"})]})]})}e.s(["Options",0,h,"default",0,function({product:e,onClose:r,onAdded:l}){return(0,t.jsx)(a.default,{isOpen:null!==e,onClose:r,title:"Optionen auswählen",panelClassName:"max-w-80 gap-2",children:e&&(0,t.jsx)(o.ProductSelectionProvider,{product:e,shareable:!1,initialVariant:(0,i.preferredVariation)(e.variations)?.shopify_product_id?.toString()??null,children:(0,t.jsx)(h,{product:e,onAdded:l})})})}],382063)},296178,218059,e=>{"use strict";var t=e.i(702807);let r=t.gql`
3  fragment RailProductFields on Product {
4    id
5    shopify_product_id
6    name
7    slug
8    kind
9    price
10    review_summary {
11      rating
12      review_count
13    }
14    gallery {
15      path
16      xlarge
17      blurDataUrl
18    }
19    images {
20      gallery {
21        path
22        xlarge
23      }
24    }
25    defaultVariant {
26      id
27      activeSchedule {
28        discount_percent
29        original_price
30      }
31      packshot {
32        path
33        xlarge
34        blurDataUrl
35      }
36      withOrigin {
37        path
38        xlarge
39        blurDataUrl
40      }
41    }
42    scent {
43      name
44      gender_label
45      origin {
46        name
47        brand {
48          name
49        }
50      }
51    }
52    vendor {
53      name
54    }
55  }
56`;e.s(["RAIL_PRODUCT_FIELDS",0,r,"cardImage",0,function(e){for(let t of[e?.withOrigin,e?.packshot]){let e=t?.xlarge||t?.path;if(e)return{src:e,blur:t.blurDataUrl}}return null},"productSlug",0,function(e){return(e.slug||e.url_handle||"").trim()||null}],296178);var a=e.i(843476),l=e.i(733209),n=e.i(261847);e.s(["default",0,function({price:e,was:t,saving:r=!0}){let s=Number(e),i=(0,n.isPositivePrice)(t)&&Number(t)>s?Number(t)-s:0;return(0,a.jsxs)("p",{className:"flex flex-wrap items-baseline gap-2",children:[(0,a.jsx)("span",{className:"text-body-lg font-medium text-base-foreground",children:(0,n.formatStorefrontPrice)(e,"suffix")}),(0,a.jsxs)("span",{className:"flex items-baseline gap-1",children:[(0,n.isPositivePrice)(t)&&(0,a.jsx)("span",{className:(0,l.cn)("text-caption text-emphasis line-through",!r&&"font-medium"),children:(0,n.formatStorefrontPrice)(t,"suffix")}),r&&i>0&&(0,a.jsxs)("span",{className:"text-caption text-base-muted",children:["spare ",(0,n.formatStorefrontPrice)(i,"suffix")]})]})]})}],218059)},879706,839336,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(107233),l=e.i(148108),n=e.i(373527),s=e.i(43880),i=e.i(832064),u=e.i(296178),c=e.i(632845),o=e.i(382544),d=e.i(218059),m=e.i(53341),f=e.i(258023),x=e.i(733209),h=e.i(527701),p=e.i(261847);e.s(["default",0,function({product:e,onChoose:g,wide:b=!1}){let j=(0,u.productSlug)(e);if(!j)return null;let v=`/products/${j}`,N=(0,c.preferredVariation)(e.variations),y=(0,f.campaignOf)(N??e.defaultVariant),{prime:w,gallery:k}=(0,o.selectPreviewImages)(e,{variant:N}),S=!y||b?k:[],P=y&&!b?(0,u.cardImage)(N):null,D=P?{key:"paired",src:P.src,alt:e.name??"",blurDataURL:P.blur??null}:w,_=N?.price??e.price,C=e.scent?.origin?.bottle_price,O=N?(0,i.isOrderable)(N):!e.variations;return(0,t.jsxs)("li",{className:(0,x.cn)("flex snap-start flex-col",y&&!b?"gap-4":"gap-6"),children:[(0,t.jsxs)(r.default,{href:v,className:"flex flex-col gap-1.75",children:[(0,t.jsxs)("span",{className:"relative block aspect-square w-full overflow-hidden bg-base-surface",children:[O&&(0,t.jsx)("span",{className:(0,x.cn)("absolute z-10",b?"left-4 top-4":"left-2 top-2"),children:(0,t.jsx)(n.default,{slot:h.SLOTS.SALE_BADGE,percent:y?.percent})}),D&&(0,t.jsx)(l.default,{src:D.src,alt:D.alt,fill:!0,sizes:"(min-width: 1024px) 25vw, 80vw",quality:75,className:"object-cover",placeholder:"blur",blurDataURL:D.blurDataURL??void 0})]}),S.length>0&&(0,t.jsx)("span",{className:"grid grid-cols-3 gap-1.75",children:S.map(e=>(0,t.jsx)("span",{className:"relative block aspect-square overflow-hidden bg-base-surface",children:(0,t.jsx)(l.default,{src:e.src,alt:"","aria-hidden":!0,fill:!0,sizes:"(min-width: 1024px) 8vw, 25vw",className:"object-cover",placeholder:"blur",blurDataURL:e.blurDataURL??void 0})},e.key))})]}),(0,t.jsxs)("div",{className:(0,x.cn)("flex flex-col",y?"gap-1":"gap-4"),children:[y?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[e.scent?.origin?.name&&(0,t.jsx)(r.default,{href:v,className:"min-w-0 flex-1 truncate text-caption text-base-muted",children:e.scent.origin.name}),(0,t.jsx)("button",{type:"button",onClick:()=>g(e),disabled:!O,"aria-label":`${e.name??"Produkt"} — Optionen ausw\xe4hlen`,className:"-m-2 shrink-0 cursor-pointer p-2 text-base-muted disabled:cursor-not-allowed disabled:opacity-40",children:(0,t.jsx)("span",{className:"flex size-3.5 items-center justify-center",children:(0,t.jsx)(a.Plus,{size:24,strokeWidth:.68,"aria-hidden":"true",className:"shrink-0"})})})]}),(0,t.jsxs)(r.default,{href:v,className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-heading-sm font-medium uppercase text-base-foreground",children:e.name}
56),(0,t.jsx)(m.default,{summary:e.review_summary,size:10,className:"h-3.5 gap-1.25 text-caption",figuresClassName:"leading-none"})]}),(0,t.jsx)(d.default,{price:_,was:y.was})]}):(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)(r.default,{href:v,className:"flex min-w-0 flex-col gap-0.75",children:[e.scent?.origin?.name&&(0,t.jsx)("span",{className:"truncate text-body-md text-base-muted",children:e.scent.origin.name}),(0,t.jsx)("span",{className:"truncate text-heading-md font-medium uppercase text-base-foreground",children:e.name}),(0,t.jsx)(m.default,{summary:e.review_summary,size:9,className:"h-3.5 gap-1.25 text-body-md",figuresClassName:"leading-none"})]}),(0,t.jsxs)("span",{className:"flex shrink-0 flex-col items-end gap-1 pt-4.75",children:[(0,p.isPositivePrice)(C)&&(0,t.jsx)("span",{className:"text-body-md font-medium leading-normal text-base-subtle line-through",children:(0,p.formatStorefrontPrice)(C,"suffix")}),(0,p.isPositivePrice)(_)&&(0,t.jsx)("span",{className:"text-heading-sm font-medium leading-normal text-base-foreground",children:(0,p.formatStorefrontPrice)(_,"suffix")})]})]}),!y&&(0,t.jsx)(s.default,{onClick:()=>g(e),disabled:!O,className:"h-7.5 w-full px-3 text-caption normal-case",children:O?"In den Warenkorb":"Ausverkauft"})]})]})}],879706);var g=e.i(271645);e.s(["useQuickAdd",0,function(){let[e,t]=(0,g.useState)(null),[r,a]=(0,g.useState)(null),l=(0,g.useRef)(null),n=()=>{l.current&&clearTimeout(l.current),l.current=null,a(null)};return{choosing:e,choose:t,close:()=>t(null),added:r,dismiss:n,onAdded:e=>{t(null),n(),a(e),l.current=setTimeout(()=>a(null),5e3)}}}],839336)}]);
57
58//# debugId=ef13ec54-8dad-4c38-14da-bd99a8aad9ec

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.