1import{E as e,e as t,g as l,j as n,b as o,c as a,d as s,I as d}from"./index-C2S2Yysw.js";import{e as r,r as i}from"./vendor-CK00QW4g.js";import"./main-BcBMYSYc.js";const c=e=>{const t={"01":"January","02":"February","03":"March","04":"April","05":"May","06":"June","07":"July","08":"August","09":"September",10:"October",11:"November",12:"December"};const l=null==e?void 0:e.split("-"),n=function(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}(+l[2]),o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=new Date(e).getDay();if(l){const e=t[l[1]];return`${o[a]}, ${e} ${n} ${l[0]}`}return""},u=u=>{var m,v,p;const{colorOptions:x}=r.propsParser(u),{componentDataDispatcher:_,contentModel:h,handleClick:g,visibleCount:b}=(n=>{const{id:o,contentModel:a,modelInternalName:s}=r.propsParser(n),d="webinar-ssr",{componentDataDispatcher:c,setComponentDataDispatcher:u,isComponentLoaded:m}=e({id:o,modelInternalName:s,modelKeyForSSR:d});let v;(null==a?void 0:a.trim().length)&&(v=JSON.parse(a));const[p,x]=i.useState(10);return i.useEffect((()=>{var e;m&&(u({type:t.fetchingData}),(null==(e=null==a?void 0:a.trim())?void 0:e.length)&&(async()=>{u({type:t.dataFetched,data:await l(v,s,d,o)})})())}),[a]),{componentDataDispatcher:c,contentModel:a,handleClick:()=>{var e,t;const l=null==(t=null==(e=null==c?void 0:c.componentData)?void 0:e.webinar_com)?void 0:t.length;p<l&&x((e=>{const t=e+5;return t>=l?l:t}))},visibleCount:p}})(u),{componentData:y,isLoading:j}=_,f=[{width:134}];return n.jsxs(n.Fragment,{children:[n.jsx(o,{loaderClassName:"",contentModel:h,isLoading:j,componentData:y}),(null==y?void 0:y.id)&&!j&&n.jsx("section",{className:"section-gap",children:n.jsxs("div",{className:"container",children:[n.jsxs("div",{className:"section-title-part",children:[(null==y?void 0:y.tagline_et)&&n.jsx("span",{className:`tag-line ${x}`,dangerouslySetInnerHTML:{__html:null==y?void 0:y.tagline_et}}),(null==y?void 0:y.heading_et)&&n.jsx("h2",{className:"mb-0",dangerouslySetInnerHTML:{__html:null==y?void 0:y.heading_et}}),(null==y?void 0:y.description_et)&&n.jsx("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:null==y?void 0:y.description_et}})]}),n.jsxs("div",{className:"border border-e-coolgray-200 border-solid overflow-hidden rounded-lg",children:[n.jsx("div",{className:"w-full",children:null==(v=null==(m=null==y?void 0:y.webinar_com)?void 0:m.slice(0,b))?void 0:v.map(((e,t)=>{var l,o;return n.jsx(n.Fragment,{children:n.jsxs("div",{className:"w-full md:p-[23px] p-4 flex flex-wrap items-center gap-4 border-b border-solid border-coolgray-200 last:border-b-0 md:justify-start justify-center",children:[n.jsx("div",{className:"w-[134px]",children:!!(null==(l=null==e?void 0:e.video_image_emd)?void 0:l.length)&&n.jsx(a,{src:null==(o=null==e?void 0:e.video_image_emd)?void 0:o[0],height:76,width:134,alt:null==e?void 0:e.title,title:null==e?void 0:e.title,name:`ExpWebinar-${t}`,options:f})}),n.jsx("div",{className:"md:w-[calc(100%_-_297px)] w-full",children:n.jsxs("div",{className:"w-full flex flex-wrap gap-3 md:justify-start justify-center",children:[(null==e?void 0:e.video_title_et)&&n.jsx("div",{className:"w-full",children:n.jsx("h3",{className:"md:text-base text-sm m-0 font-semibold md:text-left text-center",dangerouslySetInnerHTML:{__html:null==e?void 0:e.video_title_et}})}),(null==e?void 0:e.video_date_eds)&&n.jsx("span",{className:"border border-coolgray-200 bg-coolgray-50 text-coolgray-900 md:text-sm text-xs rounded border-solid px-[11px] py-[7px]",dangerouslySetInnerHTML:{__html:c(null==e?void 0:e.video_date_eds)}}),(null==e?void 0:e.video_time_et)&&n.jsx("span",{className:"border border-coolgray-200 bg-coolgray-50 text-coolgray-900 md:text-sm text-xs rounded border-solid px-[11px] py-[7px]",dangerouslySetInnerHTML:{__html:null==e?void 0:e.video_time_et}})]})}),(null==e?void 0:e.video_link_et)&&(null==e?void 0:e.video_button_et)&&n.jsx("div",{className:"md:w-[131px] w-full leading-none flex md:justify-start justify-center",children:n.jsx(s,{className:"button-secondary button-small",to:null==e?void 0:e.video_link_et,target:"__blank",dangerouslySetInnerHTML:{__html:null==e?void 0:e.video_button_et}})})]})})}))}),(null==y?void 0:y.load_more_button_et)&&n.jsx("div",{className:""+(b>=(null==(p=y.webinar_com)?void 0:p.length)?"hidden":"py-10 text-center"),children:n.jsxs("span",{className:"inline-flex gap-1 items-center text-blue-600 font-bold group cursor-pointer",onClick:g,children:[" ",null==y?void 0:y.load_more_button_et,n.jsx("i",{className:"[&_path]:stroke-blue-600",children:n.jsx(d,{})})," "]})})]})]})})]})};export{u as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.