import{u as T}from"./6Vr8Mi_2.js";import{i as C,o as t,k as c,w as s,l as o,D as u,L as S,a as p,v as l,q as a,t as i,C as h,c as m,F as O,B as V,H as d,n as g}from"./BDSHAsGJ.js";import{_ as b}from"./DlAUqK2U.js";import{M as n}from"./CpxNBiCX.js";const L=C({__name:"ScreenReaderOnly",props:{as:{default:"span"}},setup(y){return(r,f)=>(t(),c(S(r.as),{class:u(r.$style["miele-screen-reader-only"])},{default:s(()=>[o(r.$slots,"default")]),_:3},8,["class"]))}}),B={"miele-screen-reader-only":"_miele-screen-reader-only_1vncx_1"},N={$style:B},_=b(L,[["__cssModules",N]]),D={small:"footnote-small-regular",large:"footnote-medium-regular"},R=["href"],E=C({__name:"Price",props:{as:{default:"div"},size:{default:"large"},theme:{},price:{},strikethroughPrice:{},srOnlyPriceDesc:{default:"sale price"},srOnlyStrikethroughDesc:{default:"original price"},priceFootnotes:{},priceFootnoteLabel:{}},setup(y){var k;const r=y;r.srOnlyPriceDesc||console.warn("Consider providing srOnlyPriceDesc to ensure accessibility."),!r.srOnlyStrikethroughDesc&&r.strikethroughPrice&&console.warn("Consider providing srOnlyStrikethroughDesc to ensure accessibility."),(k=r.priceFootnotes)!=null&&k.length&&!r.priceFootnoteLabel&&console.warn("Consider providing priceFootnoteLabel to ensure accessibility.");const f=p(()=>r.size==="small"?r.strikethroughPrice?"price-small-bold":"price-small-regular":r.strikethroughPrice?"price-large-bold":"price-large-regular"),q=p(()=>r.size==="small"?"miele-price__strikethrough-price--small":"miele-price__strikethrough-price--large"),w=p(()=>r.size==="small"?"price-small-strikethrough":"price-large-strikethrough"),{theme:M,provideTheme:z}=T(r);return z(),(e,A)=>(t(),c(S(e.as),{theme:g(M),role:"status",class:u(e.$style["miele-price"])},{default:s(()=>[o(e.$slots,"strikethroughPrice",{},()=>[e.strikethroughPrice?(t(),c(n,{key:0,variant:w.value,color:"weakest"},{default:s(()=>[o(e.$slots,"srOnlyStrikethrough",{},()=>[l(_,null,{default:s(()=>[a("span",null,i(e.srOnlyStrikethroughDesc),1)]),_:1})]),a("s",{class:u(e.$style[q.value])},i(e.strikethroughPrice),3)]),_:3},8,["variant"])):h("",!0)]),o(e.$slots,"price",{},()=>[l(n,{variant:f.value,color:"regular"},{default:s(()=>[o(e.$slots,"srOnlyPrice",{},()=>[l(_,null,{default:s(()=>[a("span",null,i(e.srOnlyPriceDesc),1)]),_:1})]),a("span",null,i(e.price),1)]),_:3},8,["variant"])]),o(e.$slots,"footnotes",{},()=>{var v;return[(v=e.priceFootnotes)!=null&&v.length?(t(),m("div",{key:0,class:u(e.$style["miele-price__footnotes"])},[(t(!0),m(O,null,V(e.priceFootnotes,(P,$)=>{var F;return t(),m(O,{key:$},[l(n,{variant:g(D)[e.size],as:"sup"},{default:s(()=>[a("a",{"aria-current":"false",href:`#${P.anchor}`},[l(_,null,{default:s(()=>[d(i(e.priceFootnoteLabel),1)]),_:1}),d(" "+i(P.index),1)],8,R)]),_:2},1032,["variant"]),$<((F=e.priceFootnotes)==null?void 0:F.length)-1?(t(),c(n,{key:0,"aria-hidden":"true",variant:g(D)[e.size],as:"sup"},{default:s(()=>[d(" / ")]),_:1},8,["variant"])):h("",!0)],64)}),128))],2)):h("",!0)]})]),_:3},8,["theme","class"]))}}),H={"miele-price":"_miele-price_qe2qi_1 _cw-price-tokens_1arpp_1 _cw-cards-tokens_97v94_1","miele-price__strikethrough-price--large":"_miele-price__strikethrough-price--large_qe2qi_1","miele-price__strikethrough-price--small":"_miele-price__strikethrough-price--small_qe2qi_1","miele-price__footnotes":"_miele-price__footnotes_qe2qi_1"},j={$style:H},Q=b(E,[["__cssModules",j]]);export{Q as M,_ as S};