import{ao as t,ba as d,bZ as i,b_ as b,ap as s}from"./app-k0jcl5PQ.js";const r="_dateItem_1ny8z_1",y="_label_1ny8z_4",m="_body_1ny8z_11",g="_bodyDay_1ny8z_19",h="_bodyRange_1ny8z_22",_="_bodyMonth_1ny8z_25",x="_month_1ny8z_29",n={dateItem:r,label:y,body:m,bodyDay:g,bodyRange:h,bodyMonth:_,month:x};function N(e){var l,a,o;function c(){switch(e.body.type){case"range":return n.bodyRange;case"day":return n.bodyDay;case"month":return n.bodyMonth}}return t.jsx(d,{appLink:(l=e.getAppLink)==null?void 0:l.call(e),className:`text-decoration-none text-center bg-white text-dark border border-3 ${(a=e.theme)==null?void 0:a.border} rounded-3 d-block fw-semibold ${e.className}`,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,children:t.jsxs("div",{className:`position-relative ${n.dateItem}`,children:[t.jsx("div",{className:`${(o=e.theme)==null?void 0:o.background} py-1 ${n.label} d-flex align-items-center justify-content-center`,children:e.label?e.label:t.jsx(t.Fragment,{children:" "})}),t.jsx("div",{className:`${c()} ${n.body} my-2`,children:e.body.text}),t.jsx("div",{className:`mb-0 ${n.month}`,children:e.month})]})})}function f(e){var a,o;const c=i(e.name,b),l={backgroundImage:e.logoUrl?`url('${e.logoUrl}')`:null,backgroundColor:e.bgColor};return t.jsx("div",{className:s("rounded-3 w-100 h-full","ratio ratio-16x9 bg-no-repeat bg-contain bg-center bg-clip-padding",!e.bgColor&&c,(a=e.classNames)==null?void 0:a.container),style:l,children:!e.logoUrl&&t.jsx("div",{className:"d-flex align-items-center justify-content-center w-100 h-100",children:t.jsx("span",{className:s("text-white text-center fs-5 fw-semibold text-decoration-none text-truncate p-2",(o=e.classNames)==null?void 0:o.text),children:e.name})})})}export{N as G,f as R};
//# sourceMappingURL=CA48zo75.chunk.js.map
