1import{b as N}from"/build/_shared/chunk-3GZ5KIRH.js";import{d as h}from"/build/_shared/chunk-6E4F4CYW.js";import{c as k}from"/build/_shared/chunk-PE2RAMGK.js";import{a as u}from"/build/_shared/chunk-UXJUA2QE.js";import{a as y}from"/build/_shared/chunk-YUUKFOQM.js";import{a as b}from"/build/_shared/chunk-DEVQKMWM.js";import{a as m}from"/build/_shared/chunk-5OBEDPFR.js";import{a as x}from"/build/_shared/chunk-H6S7FWVP.js";import{d as a}from"/build/_shared/chunk-T36URGAI.js";var R=a(x());var s=a(m()),L={"fr-FR":"Recommandations","de-DE":"Empfehlungen","nl-NL":"Aanbevelingen"},D="Recommendations",A="verbolia-links-ssr",B="#verbolia-linking{display:none!important}",H=({links:e})=>{var o,t;let n=(0,R.useContext)(b);return e.length?(0,s.jsxs)("div",{id:A,className:"verbolia-links-container mx-4 my-16 max-w-[2000px]",children:[(0,s.jsx)("style",{children:B}),(0,s.jsx)("h2",{className:"verbolia-links-header pb-4 text-center font-semibold",children:(t=L[(o=n==null?void 0:n.locale)!=null?o:""])!=null?t:D}),(0,s.jsx)("div",{className:"verbolia-links-list flex flex-row flex-wrap justify-center gap-4 text-center font-light",children:e.map(r=>(0,s.jsx)("a",{className:"verbolia-link-item hover:underline",href:r.url,children:r.displayName},r.url))})]}):null};function P(e){return/\d/.test(e)?e:(e==null?void 0:e.charAt(0).toUpperCase())+(e==null?void 0:e.slice(1))}var d=a(x());var i=a(m()),F={["foundation"]:"foundation_finder",["makeup"]:"makeup_advisor",["haircare"]:"haircare_advisor",["skincare"]:"skincare_advisor"},z=({version:e,checkType:n})=>{h();let{trackUserInteraction:o}=k(),{translate:t}=y(),r=N(n!=null?n:""),v=r?F[r]:void 0,f=(0,d.useRef)(o);f.current=o;let p=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{if(!v)return;let g=()=>{p.current&&(p.current=!1,f.current({section:"beauty_advisor",action:"close",label:v}))};return window.addEventListener("revieveClosed",g),()=>window.removeEventListener("revieveClosed",g)},[v]),!r&&!v)return null;let _=r==="skincare",E=r==="haircare",I=r==="foundation",T=r==="makeup",c,l;_?(c=t("revieve.skincare.title"),l=t("revieve.skincare.message")):E?(c=t("revieve.haircare.title"),l=t("revieve.haircare.message")):I?(c=t("revieve.foundation.title"),l=t("revieve.foundation.message")):T&&(c=t("revieve.makeup.title"),l=t("revieve.makeup.message"));let w=e==="pdpBanner",C=`linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://mediahub.debenhams.com/dbz_prod_revieve_${r}_plp)`;return(0,i.jsxs)("div",{className:`flex w-full gap-6 items-center p-6 bg-cover rounded bg-center mb-4 justify-between ${w?"":"md:justify-center"}`,style:{backgroundImage:C},children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2 text-white",children:[(0,i.jsx)(u,{className:"text-2xl leading-none uppercase tracking-tight font-bold",style:{fontFamily:"antonio"},children:c}),(0,i.jsx)(u,{className:"text-xs font-light",children:l})]}),(0,i.jsx)("div",{children:(0,i.jsx)("button",{className:"px-4 py-2 text-sm bg-site-background rounded cursor-pointer",onClick:()=>{p.current=!0,o({section:"beauty_advisor",action:"open",label:v})},children:t("pdp.revieve.startButton")})})]})};export{P as a,H as b,z as c};
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.