import{r as u,a as y,b as w,w as L,f as h,I as M,P as $,O as B,e as D,o as f,c as _,z as p,A as m,L as g,B as I,k as P}from"./entry.fc95190e.js";import{_ as R}from"./nuxt-link.a0d0b389.js";const v=u(!1);function q({detect:t=!1}={}){if(t){let e;const o=()=>{v.value=e.matches};y(()=>{e=matchMedia("(prefers-reduced-motion)"),e.addListener(o),o()}),w(()=>{e.removeListener(o)})}return v}function z(t,e={}){const o=u(!1);return j(t,a=>{e.once&&o.value||(o.value=a)},e),o}function j(t,e,{enabled:o=void 0,rootMargin:a="0px",threshold:n=0,once:i=!1}={}){const s=u();L([t,o||u(!0),s],([r,c,d])=>{if(d&&(d.disconnect(),!(!c||!r))){r=[r].flat().filter(Boolean);for(const C of r)d.observe(C)}}),y(()=>{let r;s.value=new IntersectionObserver(c=>{for(r of c)e(r.isIntersecting,r.target);i&&s.value.disconnect()},{rootMargin:a,threshold:n}),s.value.observe=s.value.observe.bind(s.value)}),w(()=>{s.value&&s.value.disconnect(),s.value=void 0})}const l=u({}),A=h(()=>{if(!Object.keys(l).length)return!0;for(const t in l.value)if(!l.value[t])return!0;return!1});function F(...t){const e=`l${~~(Math.random()*1e6)}`,o=(...n)=>{for(const i of n)l.value[`${e}-${i}`]=!1},a=(...n)=>{console.log(n);for(const i of n)l.value[`${e}-${i}`]=!0};return o(...t),{loading:A,register:o,complete:a}}let k=!1,x=u({});function b(t){t={...x.value,...t},k&&console.log("gtm",t),typeof window<"u"&&window.dataLayer&&window.dataLayer.push(t)}function G(){if(typeof window>"u")return;const{locale:t}=M(),e=$(),o=B();window.dataLayer=window.dataLayer||[],k=o.public.environment==="development",x=h(()=>{const[a,n="international"]=t.value.toLowerCase().split("_");return{website_language:a,website_country:n,univers:"PCD",page:"le baume - immersive page",top_category:"beauty",mid_category:"skincare",sub_category:"cremes",page_type:"Dior_PCD_Minisite"}}),L(()=>e.path,a=>requestAnimationFrame(()=>{b({event:"page_view"}),b({event:"gtm.js","gtm.start":new Date().getTime()})}),{immediate:!0})}const O=D({__name:"Button",props:{to:null,tag:{default:"button"},ariaLabel:null},setup(t){const e=t;return(o,a)=>{const n=R;return e.to?(f(),_(n,g({key:0},e.ariaLabel?{"aria-label":e.ariaLabel}:{},{class:"button",to:e.to}),{default:p(()=>[m(o.$slots,"default",{},void 0,!0)]),_:3},16,["to"])):(f(),_(I(e.tag),g({key:1},e.ariaLabel?{"aria-label":e.ariaLabel}:{},{class:"button"}),{default:p(()=>[m(o.$slots,"default",{},void 0,!0)]),_:3},16))}}});const Q=P(O,[["__scopeId","data-v-0e5f8be9"]]);export{Q as _,z as a,F as b,G as c,b as g,q as u};