"use strict";(globalThis.webpackChunkstec=globalThis.webpackChunkstec||[]).push([[677],{66915:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(8403),c=a(21067);const l=e=>{const t=(0,c.useSettingsAtt)("misc__noanim",!1)||window.stecFilterAccordeonAnimationDisabled?{animationDuration:"0s",animationDelay:"0s"}:{animationDelay:`${e.animationDelay}s`};return React.createElement(n.StecDiv,{style:{perspective:"2000px"}},React.createElement(n.StecDiv,{style:t,className:e.classNameArray.join(" ")},e.children))},r=e=>{const t=e.children.slice(0,e.until||e.children.length),a=e.animateFrom||0;return React.createElement(React.Fragment,null,t.map(((t,n)=>{const c=["stec-accordeon"];a>n&&e.noAnim&&c.push("stec-accordeon-no-animation");const r=a?.17*Math.max(0,n-a):.17*n;return React.createElement(l,{key:n,animationDelay:r,classNameArray:c},t)})))}},60934:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var n=a(52779),c=a(8403),l=a(73772),r=a(26878),s=a(66915);const __=l.__,i=e=>{let t=[];const[a,l]=(0,r.useState)(0);if(t=e.children&&!1===Array.isArray(e.children)?[e.children]:e.children,t.length<=0)return"";const i=e.limit||t.length,o=a*i+i,m=Math.max(0,o-i),d=!!(Array.isArray(t)&&t.length>0),u=!(!(e.moreButtonEnabled??!0)||!d)&&t.slice(o,o+1).length>0;return React.createElement(React.Fragment,null,React.createElement(c.StecDiv,{className:"stec-preview-container"},React.createElement(s.default,{animateFrom:m,until:o},t)),u&&React.createElement(n.default,{onClick:()=>{l(a+1)},label:__("Show more","stachethemes_event_calendar_lite"),style:{marginTop:"10px",width:"100%"}}),!u&&e.onListEnd&&e.onListEnd())}},45088:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var n=a(81604),c=a(6405),l=a(26878),r=a(60934);const s=({events:e,moreButtonEnabled:t=!0,limit:a=!1,onListEnd:s=!1,sortByFeatured:i=!1})=>{const[o,m]=(0,l.useState)(!1);let d=[];return(i?(0,c.sortEventsByFeatured)(e):e).forEach((e=>{const t=`${e.id}-${e.meta.start_date}`;d.push(React.createElement(n.default,{key:t,event:e,active:o===t,onActiveToggle:()=>{m(o!==t&&t)}}))})),React.createElement(r.default,{moreButtonEnabled:t,limit:a,onListEnd:s},d)}},47291:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var n=a(45088),c=a(21067),l=a(8403),r=a(73772);const __=r.__,s=()=>{const[e,t]=(0,c.useLayoutEvents)();let a=[];return t&&(a=e),React.createElement(l.StecDiv,{className:"stec-layout-day"},React.createElement(l.StecDiv,{className:"stec-layout-day-containers"},a.length>0&&React.createElement(n.default,{events:a})),t&&a.length<=0&&React.createElement(l.StecDiv,{className:"stec-no-events-found-text"},__("No events found for this day","stachethemes_event_calendar_lite")))}},52779:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(58168),c=a(8403);const l=React.forwardRef(((e,t)=>{const a=["stec-button"];return Array.isArray(e.className)?a.push(...e.className):e.className&&"string"==typeof e.className&&a.push(e.className),e.disabled&&a.push("stec-button-disabled"),e.href?React.createElement("a",(0,n.default)({},e.extra,{ref:t,style:e.style,target:e.target?e.target:"_SELF",href:e.href,className:a.join(" "),onClick:e.onClick}),Array.isArray(e.label)?e.label.map(((e,t)=>React.createElement(c.StecSpan,{key:t},e))):e.label):React.createElement(c.StecDiv,(0,n.default)({},e.extra,{ref:t,style:e.style,className:a.join(" "),onClick:e.onClick}),Array.isArray(e.label)?e.label.map(((e,t)=>React.createElement(c.StecSpan,{key:t},e))):e.label)}));l.displayName="Button";const r=l}}]);