PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.7
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.7
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
← All changes | build/event-card/view.js +1 -1 2.1.3 → 2.1.7 View file →
@@ -1 +1 @@
1 -(()=>{"use strict";const t=window.ReactDOM;window.React;const e=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),n=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}},o="@media only screen and (max-width: 1024px)",s="@media only screen and (max-width: 640px)",a="linear-gradient(135deg, #0040E3, #18D4FD)",r=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},i=(t,n)=>e(n)?`${t}: ${n};`:"",l=(t,e=!0,n=!0,o=!0)=>{const{type:s="solid",color:l="",gradient:c=a,image:d={},position:u="center center",attachment:b="",repeat:M="no-repeat",size:$="",overlayColor:p=""}=t||{};return"gradient"===s&&n?i("background",c):"image"===s&&o?`background: ${r(d?.url)};\n\t\t\t\t${i("background-color",p)}\n\t\t\t\t${i("background-position",u)}\n\t\t\t\t${i("background-size",$)}\n\t\t\t\t${i("background-repeat",M)}\n\t\t\t\t${i("background-attachment",b)}\n\t\t\t\t${i("background-repeat",M)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&i("background",l)},c=t=>{const{width:e="",style:n="solid",color:o="",side:s="all",radius:a=""}=t||{},r=t=>{const e=s?.toLowerCase();return e?.includes("all")||e?.includes(t)},l=`${e} ${n} ${o}`,c=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>r(t)?`border-${t}: ${l};`:"")).join(""):""}\n\t\t${i("border-radius",a)}\n\t`;return c},d=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:o="0px"}=t;return`${o} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():i("border",e(t))},u=(t,e,n=!0)=>{const{fontFamily:a="Default",fontCategory:r="sans-serif",fontVariant:l=400,fontWeight:c,isUploadFont:d=!0,fontSize:u={desktop:null,tablet:null,mobile:null},fontStyle:b,textTransform:M,textDecoration:$,lineHeight:p,letterSpace:m}=e||{},g=!n||!a||"Default"===a,y=u?.desktop||u,j=u?.tablet||y,N=u?.mobile||j,h=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},k=`\n\t\t${g?"":`font-family: '${a}', ${r};`}\n\t\t${i("font-weight",c)}\n\t\t${i("font-size",h(y))}\n\t\t${i("font-style",b)}\n\t\t${i("text-transform",M)}\n\t\t${i("text-decoration",$)}\n\t\t${i("line-height",p)}\n\t\t${i("letter-spacing",m)}\n\t`,v=l&&400!==l?"400i"===l?":ital@1":l?.includes("00i")?`: ital, wght@1, ${l?.replace("00i","00")} `:`: wght@${l} `:"",x=g?"":`https://fonts.googleapis.com/css2?family=${a?.split(" ").join("+")}${v.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||g?"":`@import url(${x});`,styles:`${t}{\n\t\t\t${k}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${i("font-size",h(j))}\n\t\t\t}\n\t\t}\n\t\t${s} {\n\t\t\t${t}{\n\t\t\t\t${i("font-size",h(N))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},b=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},M=t=>{const{position:n="center center",xPosition:o=0,yPosition:s=0,attachment:a="",repeat:r="no-repeat",size:i="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${o} ${s}`:n};`:""}\n\t\t${a&&c(a)?`background-attachment: ${a};`:""}\n\t\t${c(r)?`background-repeat: ${r};`:""}\n\t\t${c(i)?`background-size: ${"custom"===i?`${l} auto`:i};`:""}\n\t`},$=(t={})=>t?{desktop:e(t.url)?`background-image: ${r(t.url)}; ${M(t?.desktop)}`:"",tablet:e(t.url)?M(t?.tablet):"",mobile:e(t.url)?M(t?.mobile):""}:"",p=(t,a,r=!1)=>{const{type:l="color",color:c,gradient:d,img:u,video:b}=t||{},M="color"===l?i("background",c):"gradient"===l?(t=>{const{type:n="linear",radialType:o="ellipse",colors:s=[],centerPositions:a={x:0,y:0},angel:r=0}=t||{};if(e(t)){const t=s?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${r}deg, ${t})`;return i("background","radial"===n?`radial-gradient(${o} at ${a?.x}% ${a?.y}%,${t})`:e)}return""})(d):"image"===l?$(u).desktop:"",p="image"===l?$(u).tablet:"",m="image"===l?$(u).mobile:"",g=r?`${a}:hover`:a;return`\n\t\t${"video"===l?((t,e)=>{const{url:o,loop:s}=t||{},a=document.querySelector(e),r=a?.querySelector(".bPlVideo"),i=document.createElement("video");if(i.muted=!0,i.autoplay=!0,i.classList.add("bPlVideo"),!r&&a&&o){const t=n(o);if(t){const e=document.createElement("source");e.src=t,i.appendChild(e),a.appendChild(i)}}return i.loop=s,i.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(b,a):""}\n\n\t\t${M?`${g}{\n\t\t\t${M}\n\t\t}`:""}\n\n\t\t${p?`${o} {\n\t\t\t${g}{\n\t\t\t\t${p}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${m?`${s} {\n\t\t\t${g}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},m=(t,n,o=!1)=>{const{isEnabled:s,colors:a,opacity:r=1,blend:l,filter:c="",blur:d=0,brightness:u=100,contrast:b=100,saturation:M=100,hue:$=0,position:m={top:0,right:0,bottom:0,left:0},zIndex:g=-1}=t||{},y=`${100!==u?`brightness(${u}%)`:""} ${100!==b?`contrast(${b}%)`:""} ${100!==M?`saturate(${M}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,j=`${c}: ${c?y:""}; -webkit-${c}: ${c?y:""};`,N=o?`${n}:hover::after`:`${n}::after`;return s?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(m.top)?m.top:0};\n\t\t\tright:${e(m.right)?m.right:0};\n\t\t\tbottom:${e(m.bottom)?m.bottom:0};\n\t\t\tleft:${e(m.left)?m.left:0};\n\t\t\tz-index:${g};\n\t\t}\n\t\t${p(a,N,!1)}\n\t\t${N}{\n\t\t\t${i("opacity",r)}\n\t\t\t${i("mix-blend-mode",l)}\n\t\t\t${j}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},g=(t,n,a=!1)=>{const r=(t,n="desktop")=>{if(!e(t))return"";const{skew:o,scale:s,rotate:a,offset:r,flipX:l,flipY:c}=t,{threeDRotate:d}=a||{},{isProportion:u}=s||{},b=[];return e(o)&&(e(o?.[n]?.x)&&b.push(`skewX(${o[n].x}deg)`),e(o?.[n]?.y)&&b.push(`skewY(${o[n].y}deg)`)),u?e(s?.[n]?.scale)&&b.push(`scale(${s[n].scale})`):(e(s?.[n]?.x)&&b.push(`scaleX(${s[n].x})`),e(s?.[n]?.y)&&b.push(`scaleY(${s[n].y})`)),e(a)&&(e(a?.[n]?.z)&&b.push(`rotateZ(${a[n].z}deg)`),d&&(e(a?.[n]?.x)&&b.push(`rotateX(${a[n].x}deg)`),e(a?.[n]?.y)&&b.push(`rotateY(${a[n].y}deg)`))),e(r)&&(e(r?.[n]?.x)&&b.push(`translateX(${r[n].x})`),e(r?.[n]?.y)&&b.push(`translateY(${r[n].y})`)),e(l)&&b.push(l?"scaleX(-1)":""),e(c)&&b.push(c?"scaleY(-1)":""),0===b.length?"":i("transform",b.join(" "))},l=a?`${n}:hover`:n;return`\n\t\t${l} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${o}{\n\t\t\t${l} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${s}{\n\t\t\t${l} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},y=t=>{const{padding:e,margin:n,height:o,width:s}=t||{},a=(t,e)=>i(t,e),r=(t,e,n)=>a(t,e?.[t]?.[n])+a(`min-${t}`,e?.min?.[n])+a(`max-${t}`,e?.max?.[n]),l=t=>i("padding",b(t)),c=t=>i("margin",b(t));return{desktop:l(e?.desktop)+c(n?.desktop)+r("height",o,"desktop")+r("width",s,"desktop"),tablet:l(e?.tablet)+c(n?.tablet)+r("height",o,"tablet")+r("width",s,"tablet"),mobile:l(e?.mobile)+c(n?.mobile)+r("height",o,"mobile")+r("width",s,"mobile")}},j=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},s=i("border-radius",b(n)),a=i("box-shadow",((t,e="box")=>{let n="";return t?.map(((o,s)=>{const{hOffset:a="0px",vOffset:r="0px",blur:i="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=o||{},u=d?"inset":"",b=`${a} ${r} ${i}`,M=s+1>=t.length?"":", ";n+="text"===e?`${b} ${c}${M}`:`${b} ${l} ${c} ${u}${M}`})),n||""})(o,"box"));return d(e)+s+a};return{normal:o(e),hover:o(n)}},N=t=>{const{zIndex:n,overflow:o}=t||{},s=o?`overflow: ${o};`:"",a=t=>`${i("z-index",n?.[t])} ${i("position",e(n?.[t])?"relative":"")}`;return{desktop:a("desktop")+s,tablet:a("tablet"),mobile:a("mobile")}},h=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:s=!1}=t||{},a=e?"opacity: 0.5;":"display: none;",r=t=>t?a:"";return{desktop:r(n),tablet:r(o),mobile:r(s)}},k=(t,n,a=!1,l=!0)=>{const{dimension:c,transform:d,background:u,borderShadow:b,mask:M,animation:$,visibility:k,responsive:v,css:x=""}=n||{},L=a?`#${t}>div>div${l?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,s=document.querySelector(o);s&&t&&t.type&&(s.setAttribute("data-aos",t.type),s.setAttribute("data-aos-duration",1e3*t.duration||.4),s.setAttribute("data-aos-delay",1e3*t.delay||0),s.classList.contains("aos-init")||(s.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?s.classList.add("aos-animate"):s.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(s)})($,t,a);const D=y(c).desktop+N(k).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:s=.4}=e||{},{transition:a=200}=n||{};return`transition: background ${o}s, border ${s}s, border-radius ${s}s, box-shadow ${s}s, transform ${a}ms ease-in-out;`})(u,b,d)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:s={type:"center center",x:50,y:50},repeat:a="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?r(n.url):`url(${(l=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdm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0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===l))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===s.type?`${i("-webkit-mask-position-x",s.x)}\n\t\t\t${i("-webkit-mask-position-y",s.y)}`:`${i("-webkit-mask-position",s.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${a};`:""}`:"";var l})(M),w=y(c).tablet+N(k).tablet+h(v,a).tablet,z=y(c).mobile+N(k).mobile+h(v,a).mobile,T=j(b).normal,f=j(b).hover,I=h(v,a).desktop;return`\n\t\t${D||T?`${L} {\n\t\t\t${D}\n\t\t\t${T}\n\t\t}`:""}\n\t\t${f?`${L}:hover {\n\t\t\t${f}\n\t\t}`:""}\n\n\t\t${I?`@media only screen and (min-width: 1025px) {\n\t\t\t${L}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${w?`${o} {\n\t\t\t${L}{\n\t\t\t\t${w}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${s} {\n\t\t\t${L}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${p(u?.normal,L)}\n\t\t${p(u?.hover,L,!0)}\n\t\t${m(u?.overlay,L)}\n\t\t${m(u?.hoverOverlay,L,!0)}\n\t\t${e(d?.normal)?g(d?.normal,L):""}\n\t\t${e(d?.hover)?g(d?.hover,L,!0):""}\n\n\t\t${x}\n\t`.replace(/\s+/g," ")},v=window.ReactJSXRuntime,x=(t,e)=>t?"object"==typeof t&&t[e]?b(t[e]):"desktop"===e&&"object"==typeof t&&("top"in t||"right"in t||"bottom"in t||"left"in t)?b(t):"":"",L=(t,e)=>t?"object"==typeof t&&t[e]?c(t[e]):"desktop"===e?c(t):"":"",D=({attributes:t,id:e,isBackend:n=!1})=>{const{card:a={},badge:r={},cta:c={},title:b={},meta:M={},description:$={},location:p={},organizer:m={},status:g={},image:y={},advanced:j={}}=t,{bg:N,maxWidth:h}=a,{color:D,iconColor:w,typo:z={}}=p,{color:T,iconColor:f,typo:I={}}=m,S=c.color||c.text,O=c.hoverColor||c.hoverText||S,C="object"==typeof c.bg?l(c.bg):i("background-color",c.bg||"#146EF5"),E="object"==typeof c.hoverBg?l(c.hoverBg):i("background-color",c.hoverBg||"#0040E3"),A=d(c.border)||(c.border?L(c.border,"desktop"):c.borderRadius?`border-radius: ${parseInt(c.borderRadius,10)||0}px;`:""),Y=i("padding",x(c.padding,"desktop")),Q=i("margin",x(c.margin,"desktop")),U=i("border-radius",x(c.bRadius,"desktop")),_="0px"===h?"100%":h||"640px",P=`#${e} .b-blocks-event-card`,Z=`#${e} .b-blocks-event-card-inner`,H=`#${e} .b-blocks-event-card-badge`,R=`#${e} .b-blocks-event-card-title`,B=`#${e} .b-blocks-event-card-meta`,W=`#${e} .b-blocks-event-card-description`,V=`#${e} .b-blocks-event-card-status`,F=`#${e} .b-blocks-event-card-cover img`,J=`#${e} .b-blocks-event-card-meta-location`,X=`#${e} .b-blocks-event-card-meta-organizer`,G=`#${e} .b-blocks-event-card-btn`,q=(t,e={})=>`\n\t\t${t}{\n\t\t\t${i("color",e.color)}\n\t\t\t${l(e.bg)}\n\t\t\t${d(e.border)||L(e.border,"desktop")}\n\t\t\t${i("border-radius",x(e.bRadius,"desktop"))}\n\t\t\t${i("padding",x(e.padding,"desktop"))}\n\t\t\t${i("margin",x(e.margin,"desktop"))}\n\t\t}\n\t\t${u(t,e.typo||{}).styles}\n\t`,K=(t,e={},n="desktop")=>{const o=x(e.padding,n),s=x(e.margin,n),a=x(e.bRadius,n),r=L(e.border,n);return o||s||a||r?`\n\t\t\t${t}{\n\t\t\t\t${i("padding",o)}\n\t\t\t\t${i("margin",s)}\n\t\t\t\t${i("border-radius",a)}\n\t\t\t\t${r}\n\t\t\t}\n\t\t`:""};return(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${u("",r.typo).googleFontLink}\n\t\t\t${u("",b.typo).googleFontLink}\n\t\t\t${u("",M.typo).googleFontLink}\n\t\t\t${u("",$.typo).googleFontLink}\n\t\t\t${u("",g.typo).googleFontLink}\n\t\t\t${u("",c.typo).googleFontLink}\n\t\t\t${P}{ max-width: ${_}; }\n\t\t\t${Z}{ ${i("background-color",N)} }\n\t\t\t${q(H,r)}\n\t\t\t${G}{\n\t\t\t\t${i("color",S)}\n\t\t\t\t${C}\n\t\t\t\t${A}\n\t\t\t\t${U}\n\t\t\t\t${Y}\n\t\t\t\t${Q}\n\t\t\t\ttransition: all ${c.transition??.3}s ease-in-out;\n\t\t\t\t${!c.typo?.fontSize&&c.fontSize?i("font-size",c.fontSize):""}\n\t\t\t}\n\t\t\t${u(G,c.typo||{}).styles}\n\t\t\t${G}:hover, ${G}:focus{\n\t\t\t\t${E}\n\t\t\t\t${i("color",O)}\n\t\t\t}\n\t\t\t${q(R,b)}\n\t\t\t${q(B,M)}\n\t\t\t${q(W,$)}\n\t\t\t${q(V,g)}\n\t\t\t${q(F,y)}\n\t\t\t${u("",z).googleFontLink}\n\t\t\t${u(J,z).styles}\n\t\t\t${J}{ ${i("color",D)} }\n\t\t\t${J} .b-blocks-event-card-meta-icon{ ${i("color",w)} }\n\t\t\t${u("",I).googleFontLink}\n\t\t\t${u(X,I).styles}\n\t\t\t${X}{ ${i("color",T)} }\n\t\t\t${X} .b-blocks-event-card-meta-icon{ ${i("color",f)} }\n\t\t\t${o}{\n\t\t\t\t${K(H,r,"tablet")}\n\t\t\t\t${K(R,b,"tablet")}\n\t\t\t\t${K(B,M,"tablet")}\n\t\t\t\t${K(W,$,"tablet")}\n\t\t\t\t${K(V,g,"tablet")}\n\t\t\t\t${K(F,y,"tablet")}\n\t\t\t\t${K(G,c,"tablet")}\n\t\t\t}\n\t\t\t${s}{\n\t\t\t\t${K(H,r,"mobile")}\n\t\t\t\t${K(R,b,"mobile")}\n\t\t\t\t${K(B,M,"mobile")}\n\t\t\t\t${K(W,$,"mobile")}\n\t\t\t\t${K(V,g,"mobile")}\n\t\t\t\t${K(F,y,"mobile")}\n\t\t\t\t${K(G,c,"mobile")}\n\t\t\t}\n\t\t\t${k(e,j,n)}\n\t\t\t`.replace(/\s+/g," ").trim()}})},w=window.wp.i18n,z=()=>[(0,w.__)("Jan","b-blocks"),(0,w.__)("Feb","b-blocks"),(0,w.__)("Mar","b-blocks"),(0,w.__)("Apr","b-blocks"),(0,w.__)("May","b-blocks"),(0,w.__)("Jun","b-blocks"),(0,w.__)("Jul","b-blocks"),(0,w.__)("Aug","b-blocks"),(0,w.__)("Sep","b-blocks"),(0,w.__)("Oct","b-blocks"),(0,w.__)("Nov","b-blocks"),(0,w.__)("Dec","b-blocks")],T=(t,e)=>{if(!t)return"";const n=t.split("-");if(3!==n.length)return t;const o=parseInt(n[1],10)-1,s=parseInt(n[2],10);let a=`${z()[o]||""} ${s}, ${n[0]}`;return e&&(a+=` · ${e}`),a.trim()},f=(t,e,n)=>{if(!t)return"";const o=e?`${e}:00`:"00:00:00";let s="";try{const o=new Date(`${t}T${e||"00:00"}:00Z`),a=new Intl.DateTimeFormat("en-US",{timeZone:n||"UTC",timeZoneName:"longOffset"}).formatToParts(o),r=(a.find((t=>"timeZoneName"===t.type))?.value||"").match(/([+-]\d{2}:\d{2})/);s=r?r[1]:"+00:00"}catch(t){s=""}return`${t}T${o}${s}`},I=()=>(0,v.jsx)("svg",{className:"b-blocks-event-card-meta-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,v.jsx)("path",{fill:"currentColor",d:"M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7Zm12 7v10H5V9h14Z"})}),S=()=>(0,v.jsx)("svg",{className:"b-blocks-event-card-meta-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,v.jsx)("path",{fill:"currentColor",d:"M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z"})}),O=()=>(0,v.jsx)("svg",{className:"b-blocks-event-card-meta-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,v.jsx)("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5c0-3-4-5.5-9-5.5Z"})}),C=({attributes:t})=>{const{content:e={},image:n={},datetime:o={},location:s={},organizer:a={},link:r={},card:i={},cta:l={},status:c={}}=t,{url:d,alt:u}=n,{eventName:b,eventDescription:M,titleTag:$}=e,{startDate:p,startTime:m,endDate:g,endTime:y,status:j}=o,{isVirtual:N,virtualUrl:h,venueName:k,venueAddress:x,venueCity:L,venueCountry:D}=s,{label:f,url:C,newTab:E}=r,{showButton:A=!0}=l,{style:Y,alignment:Q,showDateBadge:U=!0}=i,{show:_=!0}=c,P=["h2","h3","h4"].includes($)?$:"h3",Z=["left","center","right"].includes(Q)?Q:"left",H=["default","outlined","flat"].includes(Y)?Y:"default",R=(t=>{const e=(t||(new Date).toISOString().split("T")[0]).split("-");if(3!==e.length)return{month:"JAN",day:"1"};const n=parseInt(e[1],10)-1,o=String(parseInt(e[2],10));return{month:z()[n]||"JAN",day:o}})(p),B=T(p,m),W=T(g,y),V=(t=>({EventCancelled:{label:(0,w.__)("Cancelled","b-blocks"),cls:"is-cancelled"},EventPostponed:{label:(0,w.__)("Postponed","b-blocks"),cls:"is-postponed"},EventMovedOnline:{label:(0,w.__)("Moved Online","b-blocks"),cls:"is-moved-online"}}[t]||null))(j),F=(({isVirtual:t,venueName:e,venueAddress:n,venueCity:o})=>t?(0,w.__)("Online / Virtual","b-blocks"):[e,n,o].filter(Boolean).join(", "))({isVirtual:N,venueName:k,venueAddress:x,venueCity:L}),J=["b-blocks-event-card",`b-blocks-event-card--${H}`,`b-blocks-event-card--align-${Z}`,N?"is-virtual":"",V?V.cls:""].filter(Boolean).join(" "),X=E?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,v.jsx)("div",{className:J,children:(0,v.jsxs)("article",{className:"b-blocks-event-card-inner",children:[d&&(0,v.jsx)("div",{className:"b-blocks-event-card-cover",children:(0,v.jsx)("img",{src:d,alt:u||"",loading:"lazy",decoding:"async"})}),(0,v.jsxs)("div",{className:"b-blocks-event-card-header",children:[U&&R.day&&(0,v.jsxs)("div",{className:"b-blocks-event-card-badge","aria-hidden":"true",children:[(0,v.jsx)("span",{className:"b-blocks-event-card-badge-month",children:R.month}),(0,v.jsx)("span",{className:"b-blocks-event-card-badge-day",children:R.day})]}),(0,v.jsxs)("div",{className:"b-blocks-event-card-heading",children:[(0,v.jsxs)(P,{className:"b-blocks-event-card-title",children:[(0,v.jsx)("span",{children:b||(0,w.__)("Event Name","b-blocks")}),!1!==_&&V&&(0,v.jsx)("span",{className:"b-blocks-event-card-status",children:V.label})]}),B&&(0,v.jsxs)("p",{className:"b-blocks-event-card-meta b-blocks-event-card-meta-date",children:[(0,v.jsx)(I,{}),(0,v.jsx)("time",{children:B}),W&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{className:"b-blocks-event-card-dash","aria-hidden":"true",children:" – "}),(0,v.jsx)("time",{children:W})]})]})]})]}),F&&(0,v.jsxs)("address",{className:"b-blocks-event-card-meta b-blocks-event-card-meta-location",children:[(0,v.jsx)(S,{}),N&&h?(0,v.jsxs)("a",{href:h,target:"_blank",rel:"noopener noreferrer",children:[F,(0,v.jsxs)("span",{className:"screen-reader-text",children:[" ",(0,w.__)("(opens in a new tab)","b-blocks")]})]}):F,!N&&D&&(0,v.jsx)("span",{className:"b-blocks-event-card-country",children:D})]}),a.show&&a.name&&(0,v.jsxs)("p",{className:"b-blocks-event-card-meta b-blocks-event-card-meta-organizer",children:[(0,v.jsx)(O,{}),(0,v.jsx)("span",{className:"b-blocks-event-card-organizer-label",children:(0,w.__)("By","b-blocks")})," ",a.url?(0,v.jsx)("a",{href:a.url,rel:"noopener",children:a.name}):a.name]}),M&&(0,v.jsx)("div",{className:"b-blocks-event-card-description",dangerouslySetInnerHTML:{__html:M}}),A&&(0,v.jsx)("div",{className:"b-blocks-event-card-cta",children:(0,v.jsxs)("a",{className:"b-blocks-event-card-btn",href:C||"#",...X,children:[f||(0,w.__)("Get Tickets","b-blocks"),E&&(0,v.jsxs)("span",{className:"screen-reader-text",children:[" ",(0,w.__)("(opens in a new tab)","b-blocks")]})]})})]})})},E=({attributes:t})=>{const e=(t=>{const{content:e={},datetime:n={},location:o={},organizer:s={},link:a={},schema:r={}}=t||{};if(!r.show)return null;const i=(e.eventName||"").replace(/<[^>]*>/g,"").trim(),l=f(n.startDate,n.startTime,n.timezone),{isVirtual:c,virtualUrl:d,venueName:u,venueAddress:b,venueCity:M,venueCountry:$}=o;if(!i||!l||!(c?d:u||M||b))return null;const p=["EventScheduled","EventCancelled","EventPostponed","EventMovedOnline"].includes(n.status)?n.status:"EventScheduled",m={"@context":"https://schema.org","@type":"Event",name:i,startDate:l},g=f(n.endDate,n.endTime,n.timezone);g&&(m.endDate=g),m.eventStatus=`https://schema.org/${p}`,m.eventAttendanceMode=c?"https://schema.org/OnlineEventAttendanceMode":"https://schema.org/OfflineEventAttendanceMode";const y=(e.eventDescription||"").replace(/<[^>]*>/g,"").trim();if(y&&(m.description=y),c)m.location={"@type":"VirtualLocation",url:d};else{const t={"@type":"Place"};u&&(t.name=u);const e={"@type":"PostalAddress"};b&&(e.streetAddress=b),M&&(e.addressLocality=M),$&&(e.addressCountry=$),Object.keys(e).length>1&&(t.address=e),m.location=t}if(s.name){const t={"@type":"Organization",name:s.name};s.url&&(t.url=s.url),m.organizer=t}return a.url&&(m.offers={"@type":"Offer",url:a.url}),m})(t);if(!e)return null;const n=JSON.stringify(e).replace(/</g,"\\u003c");return(0,v.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:n}})},A=()=>{document.querySelectorAll(".wp-block-b-blocks-event-card").forEach((e=>{if(e.dataset.attributes)try{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(D,{attributes:n,id:e.id}),(0,v.jsx)(C,{attributes:n}),(0,v.jsx)(E,{attributes:n})]})),e.removeAttribute("data-attributes")}catch(t){}}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",A):A()})();
1 +(()=>{"use strict";const t=window.ReactDOM;window.React;const e=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),n=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}},o="@media only screen and (min-width: 1025px)",a="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",i="linear-gradient(135deg, #0040E3, #18D4FD)",s=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},l=(t,n)=>e(n)?`${t}: ${n};`:"",c=(t,e=!0,n=!0,o=!0)=>{const{type:a="solid",color:r="",gradient:c=i,image:d={},position:u="center center",attachment:$="",repeat:b="no-repeat",size:p="",overlayColor:m=""}=t||{};return"gradient"===a&&n?l("background",c):"image"===a&&o?`background: ${s(d?.url)};\n\t\t\t\t${l("background-color",m)}\n\t\t\t\t${l("background-position",u)}\n\t\t\t\t${l("background-size",p)}\n\t\t\t\t${l("background-repeat",b)}\n\t\t\t\t${l("background-attachment",$)}\n\t\t\t\t${l("background-repeat",b)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&l("background",r)},d=t=>{const{width:e="",style:n="solid",color:o="",side:a="all",radius:r=""}=t||{},i=t=>{const e=a?.toLowerCase();return e?.includes("all")||e?.includes(t)},s=`${e} ${n} ${o}`,c=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>i(t)?`border-${t}: ${s};`:"")).join(""):""}\n\t\t${l("border-radius",r)}\n\t`;return c},u=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:o="0px"}=t;return`${o} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():l("border",e(t))},$=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:i="sans-serif",fontVariant:s=400,fontWeight:c,isUploadFont:d=!0,fontSize:u={desktop:null,tablet:null,mobile:null},fontStyle:$,textTransform:b,textDecoration:p,lineHeight:m,letterSpace:M}=e||{},y=!n||!o||"Default"===o,g=u?.desktop||u,h=u?.tablet||g,j=u?.mobile||h,x=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},v=`\n\t\t${y?"":`font-family: '${o}', ${i};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",x(g))}\n\t\t${l("font-style",$)}\n\t\t${l("text-transform",b)}\n\t\t${l("text-decoration",p)}\n\t\t${l("line-height",m)}\n\t\t${l("letter-spacing",M)}\n\t`,k=s&&400!==s?"400i"===s?":ital@1":s?.includes("00i")?`: ital, wght@1, ${s?.replace("00i","00")} `:`: wght@${s} `:"",N=y?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${k.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${N});`,styles:`${t}{\n\t\t\t${v}\n\t\t}\n\t\t${a} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",x(h))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",x(j))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},b=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},p=t=>{const{position:n="center center",xPosition:o=0,yPosition:a=0,attachment:r="",repeat:i="no-repeat",size:s="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${o} ${a}`:n};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(i)?`background-repeat: ${i};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},m=(t={})=>t?{desktop:e(t.url)?`background-image: ${s(t.url)}; ${p(t?.desktop)}`:"",tablet:e(t.url)?p(t?.tablet):"",mobile:e(t.url)?p(t?.mobile):""}:"",M=(t,o,i=!1)=>{const{type:s="color",color:c,gradient:d,img:u,video:$}=t||{},b="color"===s?l("background",c):"gradient"===s?(t=>{const{type:n="linear",radialType:o="ellipse",colors:a=[],centerPositions:r={x:0,y:0},angel:i=0}=t||{};if(e(t)){const t=a?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${i}deg, ${t})`;return l("background","radial"===n?`radial-gradient(${o} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(d):"image"===s?m(u).desktop:"",p="image"===s?m(u).tablet:"",M="image"===s?m(u).mobile:"",y=i?`${o}:hover`:o;return`\n\t\t${"video"===s?((t,e)=>{const{url:o,loop:a}=t||{},r=document.querySelector(e),i=r?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!i&&r&&o){const t=n(o);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=a,s.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})($,o):""}\n\n\t\t${b?`${y}{\n\t\t\t${b}\n\t\t}`:""}\n\n\t\t${p?`${a} {\n\t\t\t${y}{\n\t\t\t\t${p}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M?`${r} {\n\t\t\t${y}{\n\t\t\t\t${M}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},y=(t,n,o=!1)=>{const{isEnabled:a,colors:r,opacity:i=1,blend:s,filter:c="",blur:d=0,brightness:u=100,contrast:$=100,saturation:b=100,hue:p=0,position:m={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},g=`${100!==u?`brightness(${u}%)`:""} ${100!==$?`contrast(${$}%)`:""} ${100!==b?`saturate(${b}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==p?`hue-rotate(${p}deg)`:""}`,h=`${c}: ${c?g:""}; -webkit-${c}: ${c?g:""};`,j=o?`${n}:hover::after`:`${n}::after`;return a?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(m.top)?m.top:0};\n\t\t\tright:${e(m.right)?m.right:0};\n\t\t\tbottom:${e(m.bottom)?m.bottom:0};\n\t\t\tleft:${e(m.left)?m.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${M(r,j,!1)}\n\t\t${j}{\n\t\t\t${l("opacity",i)}\n\t\t\t${l("mix-blend-mode",s)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},g=(t,n,o=!1)=>{const i=(t,n="desktop")=>{if(!e(t))return"";const{skew:o,scale:a,rotate:r,offset:i,flipX:s,flipY:c}=t,{threeDRotate:d}=r||{},{isProportion:u}=a||{},$=[];return e(o)&&(e(o?.[n]?.x)&&$.push(`skewX(${o[n].x}deg)`),e(o?.[n]?.y)&&$.push(`skewY(${o[n].y}deg)`)),u?e(a?.[n]?.scale)&&$.push(`scale(${a[n].scale})`):(e(a?.[n]?.x)&&$.push(`scaleX(${a[n].x})`),e(a?.[n]?.y)&&$.push(`scaleY(${a[n].y})`)),e(r)&&(e(r?.[n]?.z)&&$.push(`rotateZ(${r[n].z}deg)`),d&&(e(r?.[n]?.x)&&$.push(`rotateX(${r[n].x}deg)`),e(r?.[n]?.y)&&$.push(`rotateY(${r[n].y}deg)`))),e(i)&&(e(i?.[n]?.x)&&$.push(`translateX(${i[n].x})`),e(i?.[n]?.y)&&$.push(`translateY(${i[n].y})`)),e(s)&&$.push(s?"scaleX(-1)":""),e(c)&&$.push(c?"scaleY(-1)":""),0===$.length?"":l("transform",$.join(" "))},s=o?`${n}:hover`:n;return`\n\t\t${s} {\n\t\t\t${i(t,"desktop")}\n\t\t}\n\t\t${a}{\n\t\t\t${s} {\n\t\t\t\t${i(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${s} {\n\t\t\t\t${i(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:o,width:a}=t||{},r=(t,e)=>l(t,e),i=(t,e,n)=>r(t,e?.[t]?.[n])+r(`min-${t}`,e?.min?.[n])+r(`max-${t}`,e?.max?.[n]),s=t=>l("padding",b(t)),c=t=>l("margin",b(t));return{desktop:s(e?.desktop)+c(n?.desktop)+i("height",o,"desktop")+i("width",a,"desktop"),tablet:s(e?.tablet)+c(n?.tablet)+i("height",o,"tablet")+i("width",a,"tablet"),mobile:s(e?.mobile)+c(n?.mobile)+i("height",o,"mobile")+i("width",a,"mobile")}},j=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},a=l("border-radius",b(n)),r=l("box-shadow",((t,e="box")=>{let n="";return t?.map(((o,a)=>{const{hOffset:r="0px",vOffset:i="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=o||{},u=d?"inset":"",$=`${r} ${i} ${s}`,b=a+1>=t.length?"":", ";n+="text"===e?`${$} ${c}${b}`:`${$} ${l} ${c} ${u}${b}`})),n||""})(o,"box"));return u(e)+a+r};return{normal:o(e),hover:o(n)}},x=t=>{const{zIndex:n,overflow:o}=t||{},a=o?`overflow: ${o};`:"",r=t=>`${l("z-index",n?.[t])} ${l("position",e(n?.[t])?"relative":"")}`;return{desktop:r("desktop")+a,tablet:r("tablet"),mobile:r("mobile")}},v=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:a=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",i=t=>t?r:"";return{desktop:i(n),tablet:i(o),mobile:i(a)}},k=(t,n,i=!1,c=!0)=>{const{dimension:d,transform:u,background:$,borderShadow:b,mask:p,animation:m,visibility:k,responsive:N,position:f={},floating:w={},motion:L={},css:D=""}=n||{},z=i?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,a=document.querySelector(o);a&&t&&t.type&&(a.setAttribute("data-aos",t.type),a.setAttribute("data-aos-duration",1e3*t.duration||.4),a.setAttribute("data-aos-delay",1e3*t.delay||0),a.classList.contains("aos-init")||(a.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?a.classList.add("aos-animate"):a.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(a)})(m,t,i);const T=h(d).desktop+x(k).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:a=.4}=e||{},{transition:r=200}=n||{};return`transition: background ${o}s, border ${a}s, border-radius ${a}s, box-shadow ${a}s, transform ${r}ms ease-in-out;`})($,b,u)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:a={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?s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I1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===i))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===a.type?`${l("-webkit-mask-position-x",a.x)}\n\t\t\t${l("-webkit-mask-position-y",a.y)}`:`${l("-webkit-mask-position",a.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${r};`:""}`:"";var i})(p),I=h(d).tablet+x(k).tablet+v(N,i).tablet,S=h(d).mobile+x(k).mobile+v(N,i).mobile,O=j(b).normal,E=j(b).hover,A=v(N,i).desktop;return`\n\t\t${T||O?`${z} {\n\t\t\t${T}\n\t\t\t${O}\n\t\t}`:""}\n\t\t${E?`${z}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${A?`${o} {\n\t\t\t${z}{\n\t\t\t\t${A}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${a} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${r} {\n\t\t\t${z}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M($?.normal,z)}\n\t\t${M($?.hover,z,!0)}\n\t\t${y($?.overlay,z)}\n\t\t${y($?.hoverOverlay,z,!0)}\n\t\t${e(u?.normal)?g(u?.normal,z):""}\n\t\t${e(u?.hover)?g(u?.hover,z,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:o={},mobile:i={}}=t,s=(t={})=>`\n\t\t${e}{\n\t\t\t${l("position",t?.type)}\n\t\t\t${l("left",t?.horizontal?.left)}\n\t\t\t${l("right",t?.horizontal?.right)}\n\t\t\t${l("top",t?.vertical?.top)}\n\t\t\t${l("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${n?.type?s(n):""}\n\t\t\n\t\t${a}{\n\t\t\t${o?.type?s(o):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${i?.type?s(i):""}\n\t\t}\n\t`})(f,z)}\n\t\t${((t,n,o="")=>{const{translate:a={},rotate:r={},scale:i={},isEnabled:s=!1}=t||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:a,value:t=>["x","y"].some((n=>e(a?.[n]?.[t])))?`${a?.x?.[t]||0}px ${a?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:t=>["x","y","z"].filter((n=>e(r?.[n]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${r[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:i,value:t=>{const n=i?.y?.[t],o=i?.z?.[t];return e(n)||e(o)?e(o)?`1 ${e(n)?n:1} ${o}`:`1 ${n}`:""}}].forEach((({name:t,property:e,values:n,value:a})=>{const r=a("from"),i=a("to");if(!r||!i)return;const s=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,u=`advFloat${t}${o?`-${o}`:""}`;l.push(`@keyframes ${u}{ from{ ${e}: ${r}; } to{ ${e}: ${i}; } }`),c.push(`${u} ${s}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${n}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(w,z,t)}\n\t\t${((t,n,i)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:u={},rotate:$={},scale:b={},effectsRelativeTo:p="viewport",effectOn:m=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:M=!1,mouseTrack:y={},tilt:g={},sticky:h={}}=t||{},j=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,x="viewport"===p,v=x?"view()":"scroll(nearest block)",k=[],N=[],f=[],w=[],L=String(i??"").replace(/[^a-zA-Z0-9]/g,""),D=(t,e,n)=>{k.push(`@keyframes advMe${t}${L}{ ${e} }`),N.push(`advMe${t}${L}`),f.push(v),w.push((t=>{const e=j(t?.top,0),n=j(t?.bottom,100),o=Math.min(e,n),a=Math.max(e,n);return x?`cover ${o}% ${a>=90?"contain 100%":`cover ${a}%`}`:`min(${3*o}vh, ${o}%) min(${3*a}vh, ${a}%)`})(n))};if(s){const t=l?.direction,e=c?.direction,n=t?100*j(l?.speed,4):0,o=e?100*j(c?.speed,4):0;if(n||o){const a="up"===t?-n:n,r="to-left"===e?-o:o,i=[n&&l,o&&c].filter(Boolean);D("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${a}px; }`,{top:Math.min(...i.map((t=>j(t?.top,0)))),bottom:Math.max(...i.map((t=>j(t?.bottom,100))))})}const a=d?.direction;if(a){const t=Math.max(0,1-j(d?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[a];e&&D("Opacity",e,d)}const r=u?.direction;if(r){const t=3*j(u?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[r];e&&D("Blur",e,u)}const i=$?.direction;if(i){const t=20*j($?.level,4);D("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===i?-t:t}deg; }`,$)}if(b?.direction){const t=.15*j(b?.level,4),e=Math.max(0,1-t),n=1+t,o={"scale-up":`from{ scale: 1; } to{ scale: ${n}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${n}; } 100%{ scale: 1; }`}[b.direction];o&&D("Scale",o,b)}}const z=[];if(M){if(y?.direction){const t="direct"===y?.direction?100:-100;z.push(((e,n)=>`translate(${(e*t).toFixed(2)}px, ${(n*t).toFixed(2)}px)`))}if(g?.direction){const t=12*("direct"===g?.direction?1:-1);z.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,o)=>{if(!t||!t.defaultView)return;const a=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),i=r.items.get(n)||{x:0,y:0};if(i.rate=e,i.build=o,r.items.set(n,i),r.bound)return;r.bound=!0;const s=e=>{const n=r.last?Math.min(e-r.last,100):16.7;r.last=e;let o=!1;r.items.forEach(((e,a)=>{const i=e.el&&e.el.isConnected?e.el:t.querySelector(a);if(!i)return;e.el=i;const s=e.rate*n/1e3,l=r.x-e.x,c=r.y-e.y,d=Math.sqrt(l*l+c*c);d<=s?(e.x=r.x,e.y=r.y):(e.x+=l/d*s,e.y+=c/d*s,o=!0),i.style.transform=e.build(e.x,e.y)})),r.frame=o?a.requestAnimationFrame(s):0,r.last=o?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/a.innerWidth-.5),r.y=2*(t.clientY/a.innerHeight-.5),r.frame||(r.frame=a.requestAnimationFrame(s))}))};if(z.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*j(y?.speed,j(g?.speed,4))),e=(t,e)=>z.map((n=>n(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>h?.[t]||("desktop"===t?h?.undefined:""),S=n.split(">")[0],O=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},E=Array.isArray(m)?m:e(m)?[m]:[],A=t=>!E.length||E.includes(t)?"":`${n}{ animation-name: none; }`;return`\n\t\t${N.length?`\n\t\t${k.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${n}{\n\t\t\t\tanimation-name: ${N.join(", ")};\n\t\t\t\tanimation-duration: ${N.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${N.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${N.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${N.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${f.join(", ")};\n\t\t\t\tanimation-range: ${w.join(", ")};\n\t\t\t}\n\t\t\t${A("desktop")?`${o}{ ${A("desktop")} }`:""}\n\t\t\t${A("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${A("tablet-portrait")} }`:""}\n\t\t\t${A("mobile-portrait")?`${r}{ ${A("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${z.length?`${n}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${O("desktop")?`${S}{ ${O("desktop")} }`:""}\n\t\t${O("tablet")?`${a}{ ${S}{ ${O("tablet")} } }`:""}\n\t\t${O("mobile")?`${r}{ ${S}{ ${O("mobile")} } }`:""}\n\t`})(L,z,t)}\n\t\t${D}\n\t`.replace(/\s+/g," ")},N=window.ReactJSXRuntime,f=(t,e)=>t?"object"==typeof t&&t[e]?b(t[e]):"desktop"===e&&"object"==typeof t&&("top"in t||"right"in t||"bottom"in t||"left"in t)?b(t):"":"",w=(t,e)=>t?"object"==typeof t&&t[e]?d(t[e]):"desktop"===e?d(t):"":"",L=({attributes:t,id:e,isBackend:n=!1})=>{const{card:o={},badge:i={},cta:s={},title:d={},meta:b={},description:p={},location:m={},organizer:M={},status:y={},image:g={},advanced:h={}}=t,{bg:j,maxWidth:x}=o,{color:v,iconColor:L,typo:D={}}=m,{color:z,iconColor:T,typo:I={}}=M,S=s.color||s.text,O=s.hoverColor||s.hoverText||S,E="object"==typeof s.bg?c(s.bg):l("background-color",s.bg||"#146EF5"),A="object"==typeof s.hoverBg?c(s.hoverBg):l("background-color",s.hoverBg||"#0040E3"),C=u(s.border)||(s.border?w(s.border,"desktop"):s.borderRadius?`border-radius: ${parseInt(s.borderRadius,10)||0}px;`:""),Y=l("padding",f(s.padding,"desktop")),Q=l("margin",f(s.margin,"desktop")),U=l("border-radius",f(s.bRadius,"desktop")),_="0px"===x?"100%":x||"640px",P=`#${e} .b-blocks-event-card`,Z=`#${e} .b-blocks-event-card-inner`,H=`#${e} .b-blocks-event-card-badge`,R=`#${e} .b-blocks-event-card-title`,B=`#${e} .b-blocks-event-card-meta`,F=`#${e} .b-blocks-event-card-description`,W=`#${e} .b-blocks-event-card-status`,V=`#${e} .b-blocks-event-card-cover img`,J=`#${e} .b-blocks-event-card-meta-location`,X=`#${e} .b-blocks-event-card-meta-organizer`,G=`#${e} .b-blocks-event-card-btn`,q=(t,e={})=>`\n\t\t${t}{\n\t\t\t${l("color",e.color)}\n\t\t\t${c(e.bg)}\n\t\t\t${u(e.border)||w(e.border,"desktop")}\n\t\t\t${l("border-radius",f(e.bRadius,"desktop"))}\n\t\t\t${l("padding",f(e.padding,"desktop"))}\n\t\t\t${l("margin",f(e.margin,"desktop"))}\n\t\t}\n\t\t${$(t,e.typo||{}).styles}\n\t`,K=(t,e={},n="desktop")=>{const o=f(e.padding,n),a=f(e.margin,n),r=f(e.bRadius,n),i=w(e.border,n);return o||a||r||i?`\n\t\t\t${t}{\n\t\t\t\t${l("padding",o)}\n\t\t\t\t${l("margin",a)}\n\t\t\t\t${l("border-radius",r)}\n\t\t\t\t${i}\n\t\t\t}\n\t\t`:""};return(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${$("",i.typo).googleFontLink}\n\t\t\t${$("",d.typo).googleFontLink}\n\t\t\t${$("",b.typo).googleFontLink}\n\t\t\t${$("",p.typo).googleFontLink}\n\t\t\t${$("",y.typo).googleFontLink}\n\t\t\t${$("",s.typo).googleFontLink}\n\t\t\t${P}{ max-width: ${_}; }\n\t\t\t${Z}{ ${l("background-color",j)} }\n\t\t\t${q(H,i)}\n\t\t\t${G}{\n\t\t\t\t${l("color",S)}\n\t\t\t\t${E}\n\t\t\t\t${C}\n\t\t\t\t${U}\n\t\t\t\t${Y}\n\t\t\t\t${Q}\n\t\t\t\ttransition: all ${s.transition??.3}s ease-in-out;\n\t\t\t\t${!s.typo?.fontSize&&s.fontSize?l("font-size",s.fontSize):""}\n\t\t\t}\n\t\t\t${$(G,s.typo||{}).styles}\n\t\t\t${G}:hover, ${G}:focus{\n\t\t\t\t${A}\n\t\t\t\t${l("color",O)}\n\t\t\t}\n\t\t\t${q(R,d)}\n\t\t\t${q(B,b)}\n\t\t\t${q(F,p)}\n\t\t\t${q(W,y)}\n\t\t\t${q(V,g)}\n\t\t\t${$("",D).googleFontLink}\n\t\t\t${$(J,D).styles}\n\t\t\t${J}{ ${l("color",v)} }\n\t\t\t${J} .b-blocks-event-card-meta-icon{ ${l("color",L)} }\n\t\t\t${$("",I).googleFontLink}\n\t\t\t${$(X,I).styles}\n\t\t\t${X}{ ${l("color",z)} }\n\t\t\t${X} .b-blocks-event-card-meta-icon{ ${l("color",T)} }\n\t\t\t${a}{\n\t\t\t\t${K(H,i,"tablet")}\n\t\t\t\t${K(R,d,"tablet")}\n\t\t\t\t${K(B,b,"tablet")}\n\t\t\t\t${K(F,p,"tablet")}\n\t\t\t\t${K(W,y,"tablet")}\n\t\t\t\t${K(V,g,"tablet")}\n\t\t\t\t${K(G,s,"tablet")}\n\t\t\t}\n\t\t\t${r}{\n\t\t\t\t${K(H,i,"mobile")}\n\t\t\t\t${K(R,d,"mobile")}\n\t\t\t\t${K(B,b,"mobile")}\n\t\t\t\t${K(F,p,"mobile")}\n\t\t\t\t${K(W,y,"mobile")}\n\t\t\t\t${K(V,g,"mobile")}\n\t\t\t\t${K(G,s,"mobile")}\n\t\t\t}\n\t\t\t${k(e,h,n)}\n\t\t\t`.replace(/\s+/g," ").trim()}})},D=window.wp.i18n,z=()=>[(0,D.__)("Jan","b-blocks"),(0,D.__)("Feb","b-blocks"),(0,D.__)("Mar","b-blocks"),(0,D.__)("Apr","b-blocks"),(0,D.__)("May","b-blocks"),(0,D.__)("Jun","b-blocks"),(0,D.__)("Jul","b-blocks"),(0,D.__)("Aug","b-blocks"),(0,D.__)("Sep","b-blocks"),(0,D.__)("Oct","b-blocks"),(0,D.__)("Nov","b-blocks"),(0,D.__)("Dec","b-blocks")],T=(t,e)=>{if(!t)return"";const n=t.split("-");if(3!==n.length)return t;const o=parseInt(n[1],10)-1,a=parseInt(n[2],10);let r=`${z()[o]||""} ${a}, ${n[0]}`;return e&&(r+=` · ${e}`),r.trim()},I=(t,e,n)=>{if(!t)return"";const o=e?`${e}:00`:"00:00:00";let a="";try{const o=new Date(`${t}T${e||"00:00"}:00Z`),r=new Intl.DateTimeFormat("en-US",{timeZone:n||"UTC",timeZoneName:"longOffset"}).formatToParts(o),i=(r.find((t=>"timeZoneName"===t.type))?.value||"").match(/([+-]\d{2}:\d{2})/);a=i?i[1]:"+00:00"}catch(t){a=""}return`${t}T${o}${a}`},S=()=>(0,N.jsx)("svg",{className:"b-blocks-event-card-meta-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,N.jsx)("path",{fill:"currentColor",d:"M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7Zm12 7v10H5V9h14Z"})}),O=()=>(0,N.jsx)("svg",{className:"b-blocks-event-card-meta-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,N.jsx)("path",{fill:"currentColor",d:"M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z"})}),E=()=>(0,N.jsx)("svg",{className:"b-blocks-event-card-meta-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,N.jsx)("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5c0-3-4-5.5-9-5.5Z"})}),A=({attributes:t})=>{const{content:e={},image:n={},datetime:o={},location:a={},organizer:r={},link:i={},card:s={},cta:l={},status:c={}}=t,{url:d,alt:u}=n,{eventName:$,eventDescription:b,titleTag:p}=e,{startDate:m,startTime:M,endDate:y,endTime:g,status:h}=o,{isVirtual:j,virtualUrl:x,venueName:v,venueAddress:k,venueCity:f,venueCountry:w}=a,{label:L,url:I,newTab:A}=i,{showButton:C=!0}=l,{style:Y,alignment:Q,showDateBadge:U=!0}=s,{show:_=!0}=c,P=["h2","h3","h4"].includes(p)?p:"h3",Z=["left","center","right"].includes(Q)?Q:"left",H=["default","outlined","flat"].includes(Y)?Y:"default",R=(t=>{const e=(t||(new Date).toISOString().split("T")[0]).split("-");if(3!==e.length)return{month:"JAN",day:"1"};const n=parseInt(e[1],10)-1,o=String(parseInt(e[2],10));return{month:z()[n]||"JAN",day:o}})(m),B=T(m,M),F=T(y,g),W=(t=>({EventCancelled:{label:(0,D.__)("Cancelled","b-blocks"),cls:"is-cancelled"},EventPostponed:{label:(0,D.__)("Postponed","b-blocks"),cls:"is-postponed"},EventMovedOnline:{label:(0,D.__)("Moved Online","b-blocks"),cls:"is-moved-online"}}[t]||null))(h),V=(({isVirtual:t,venueName:e,venueAddress:n,venueCity:o})=>t?(0,D.__)("Online / Virtual","b-blocks"):[e,n,o].filter(Boolean).join(", "))({isVirtual:j,venueName:v,venueAddress:k,venueCity:f}),J=["b-blocks-event-card",`b-blocks-event-card--${H}`,`b-blocks-event-card--align-${Z}`,j?"is-virtual":"",W?W.cls:""].filter(Boolean).join(" "),X=A?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,N.jsx)("div",{className:J,children:(0,N.jsxs)("article",{className:"b-blocks-event-card-inner",children:[d&&(0,N.jsx)("div",{className:"b-blocks-event-card-cover",children:(0,N.jsx)("img",{src:d,alt:u||"",loading:"lazy",decoding:"async"})}),(0,N.jsxs)("div",{className:"b-blocks-event-card-header",children:[U&&R.day&&(0,N.jsxs)("div",{className:"b-blocks-event-card-badge","aria-hidden":"true",children:[(0,N.jsx)("span",{className:"b-blocks-event-card-badge-month",children:R.month}),(0,N.jsx)("span",{className:"b-blocks-event-card-badge-day",children:R.day})]}),(0,N.jsxs)("div",{className:"b-blocks-event-card-heading",children:[(0,N.jsxs)(P,{className:"b-blocks-event-card-title",children:[(0,N.jsx)("span",{children:$||(0,D.__)("Event Name","b-blocks")}),!1!==_&&W&&(0,N.jsx)("span",{className:"b-blocks-event-card-status",children:W.label})]}),B&&(0,N.jsxs)("p",{className:"b-blocks-event-card-meta b-blocks-event-card-meta-date",children:[(0,N.jsx)(S,{}),(0,N.jsx)("time",{children:B}),F&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{className:"b-blocks-event-card-dash","aria-hidden":"true",children:" – "}),(0,N.jsx)("time",{children:F})]})]})]})]}),V&&(0,N.jsxs)("address",{className:"b-blocks-event-card-meta b-blocks-event-card-meta-location",children:[(0,N.jsx)(O,{}),j&&x?(0,N.jsxs)("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:[V,(0,N.jsxs)("span",{className:"screen-reader-text",children:[" ",(0,D.__)("(opens in a new tab)","b-blocks")]})]}):V,!j&&w&&(0,N.jsx)("span",{className:"b-blocks-event-card-country",children:w})]}),r.show&&r.name&&(0,N.jsxs)("p",{className:"b-blocks-event-card-meta b-blocks-event-card-meta-organizer",children:[(0,N.jsx)(E,{}),(0,N.jsx)("span",{className:"b-blocks-event-card-organizer-label",children:(0,D.__)("By","b-blocks")})," ",r.url?(0,N.jsx)("a",{href:r.url,rel:"noopener",children:r.name}):r.name]}),b&&(0,N.jsx)("div",{className:"b-blocks-event-card-description",dangerouslySetInnerHTML:{__html:b}}),C&&(0,N.jsx)("div",{className:"b-blocks-event-card-cta",children:(0,N.jsxs)("a",{className:"b-blocks-event-card-btn",href:I||"#",...X,children:[L||(0,D.__)("Get Tickets","b-blocks"),A&&(0,N.jsxs)("span",{className:"screen-reader-text",children:[" ",(0,D.__)("(opens in a new tab)","b-blocks")]})]})})]})})},C=({attributes:t})=>{const e=(t=>{const{content:e={},datetime:n={},location:o={},organizer:a={},link:r={},schema:i={}}=t||{};if(!i.show)return null;const s=(e.eventName||"").replace(/<[^>]*>/g,"").trim(),l=I(n.startDate,n.startTime,n.timezone),{isVirtual:c,virtualUrl:d,venueName:u,venueAddress:$,venueCity:b,venueCountry:p}=o;if(!s||!l||!(c?d:u||b||$))return null;const m=["EventScheduled","EventCancelled","EventPostponed","EventMovedOnline"].includes(n.status)?n.status:"EventScheduled",M={"@context":"https://schema.org","@type":"Event",name:s,startDate:l},y=I(n.endDate,n.endTime,n.timezone);y&&(M.endDate=y),M.eventStatus=`https://schema.org/${m}`,M.eventAttendanceMode=c?"https://schema.org/OnlineEventAttendanceMode":"https://schema.org/OfflineEventAttendanceMode";const g=(e.eventDescription||"").replace(/<[^>]*>/g,"").trim();if(g&&(M.description=g),c)M.location={"@type":"VirtualLocation",url:d};else{const t={"@type":"Place"};u&&(t.name=u);const e={"@type":"PostalAddress"};$&&(e.streetAddress=$),b&&(e.addressLocality=b),p&&(e.addressCountry=p),Object.keys(e).length>1&&(t.address=e),M.location=t}if(a.name){const t={"@type":"Organization",name:a.name};a.url&&(t.url=a.url),M.organizer=t}return r.url&&(M.offers={"@type":"Offer",url:r.url}),M})(t);if(!e)return null;const n=JSON.stringify(e).replace(/</g,"\\u003c");return(0,N.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:n}})},Y=()=>{document.querySelectorAll(".wp-block-b-blocks-event-card").forEach((e=>{if(e.dataset.attributes)try{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(L,{attributes:n,id:e.id}),(0,N.jsx)(A,{attributes:n}),(0,N.jsx)(C,{attributes:n})]})),e.removeAttribute("data-attributes")}catch(t){}}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Y):Y()})();