"use strict";const i=require("react/jsx-runtime"),d=require("./provider.js"),c=d.styled_default("div")({name:"Container",class:"c5b6wdg",propsAsIs:!1}),p="a1rlj479",m="s35f1di",u="sj4471g",h="b12050d8",b="b1d5ybek",g=e=>e==="left"||e==="right"?m:h,f=e=>e==="left"||e==="right"?u:b,y=e=>e==="left"?"avdxyl3":e==="right"?"a1bisd08":e==="top"?"a1u9y2aj":"a1qqaks",o=({children:e,style:l,className:r,enabled:s=!0,hiding:n,direction:t="left",onAnimationEnd:a})=>i.jsx(c,{style:l,className:d.cx_default(r,p,y(t),s&&!n&&g(t),s&&n&&f(t)),onAnimationEnd:a,children:e}),j=d.styled_default("a")({name:"Link",class:"l1sgte8c",propsAsIs:!1}),k=d.styled_default("div")({name:"BannerContainer",class:"b7yfc72",propsAsIs:!1}),x=()=>j,B=d.styled_default(x())({name:"BannerLink",class:"bejjq94",propsAsIs:!0}),A=({promotion:e,promotionId:l,hiding:r,direction:s="bottom"})=>{var n,t;if(!((n=e.additionalBanner)!=null&&n.imageUrl))return null;let a=(t=e.additionalBanner)==null?void 0:t.url;return a&&a.indexOf("http")!==0&&(a=`https://${a}`),i.jsx(o,{direction:s,hiding:r,children:i.jsx(k,{className:"BannerContainer",children:i.jsx(B,{as:a?"a":"span",className:"BannerLink",href:a,style:{backgroundImage:`url(${e.additionalBanner.imageUrl})`,cursor:a?"pointer":"default"},"data-promo-id":l,"data-promo-type":e.type,"data-a":"banner",target:"_blank"})})})},v=d.styled_default("div")({name:"SidebarContainer",class:"s1abskp8",propsAsIs:!1}),I=({children:e,direction:l,style:r,className:s,hiding:n})=>i.jsx(o,{direction:l,style:r,hiding:n,className:s,children:i.jsx(v,{children:e})});exports.B=A;exports.b=I;exports.k=o;
